Version 1.13.21.
[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-14 15:06+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
24 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
25 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
26 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
27 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
28 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
29 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
30 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
31 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
32 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
33 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
34 #: ../src/guestfs.pod:3 ../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
49 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
50 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
51 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
52 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
53 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
54 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
55 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
56 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
57 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
58 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
59 #: ../test-tool/libguestfs-test-tool.pod:7
60 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
61 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
62 #: ../tools/virt-win-reg.pl:39
63 msgid "SYNOPSIS"
64 msgstr "КОРОТКИЙ ОПИС"
65
66 #. type: verbatim
67 #: ../align/virt-alignment-scan.pod:9
68 #, fuzzy, no-wrap
69 #| msgid ""
70 #| " virt-list-partitions [--options] domname\n"
71 #| "\n"
72 msgid ""
73 " virt-alignment-scan [--options] -d domname\n"
74 "\n"
75 msgstr ""
76 " virt-list-partitions [--параметри] назва_домену\n"
77 "\n"
78
79 #. type: verbatim
80 #: ../align/virt-alignment-scan.pod:11
81 #, fuzzy, no-wrap
82 #| msgid ""
83 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
84 #| "\n"
85 msgid ""
86 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
87 "\n"
88 msgstr ""
89 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
90 "\n"
91
92 #. type: =head1
93 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
94 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
95 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
96 #: ../erlang/examples/guestfs-erlang.pod:16
97 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
98 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
99 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
100 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
101 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
102 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
103 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
104 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
105 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
106 #: ../test-tool/libguestfs-test-tool.pod:11
107 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
108 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
109 #: ../tools/virt-win-reg.pl:63
110 msgid "DESCRIPTION"
111 msgstr "ОПИС"
112
113 #. type: textblock
114 #: ../align/virt-alignment-scan.pod:15
115 msgid ""
116 "When older operating systems install themselves, the partitioning tools "
117 "place partitions at a sector misaligned with the underlying storage "
118 "(commonly the first partition starts on sector C<63>).  Misaligned "
119 "partitions can result in an operating system issuing more I/O than should be "
120 "necessary."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:21
125 msgid ""
126 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
127 "machines and disk images and warns you if there are alignment problems."
128 msgstr ""
129
130 #. type: textblock
131 #: ../align/virt-alignment-scan.pod:25
132 msgid ""
133 "Currently there is no virt tool for fixing alignment problems.  You can only "
134 "reinstall the guest operating system.  The following NetApp document "
135 "summarises the problem and possible solutions: L<http://media.netapp.com/"
136 "documents/tr-3747.pdf>"
137 msgstr ""
138
139 #. type: =head1
140 #: ../align/virt-alignment-scan.pod:30
141 msgid "OUTPUT"
142 msgstr ""
143
144 #. type: textblock
145 #: ../align/virt-alignment-scan.pod:32
146 msgid "To run this tool on a disk image directly, use the I<-a> option:"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:34
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a winxp.img\n"
154 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
155 "\n"
156 msgstr ""
157
158 #. type: verbatim
159 #: ../align/virt-alignment-scan.pod:37
160 #, no-wrap
161 msgid ""
162 " $ virt-alignment-scan -a fedora16.img\n"
163 " /dev/sda1      1048576         1024K   ok\n"
164 " /dev/sda2      2097152         2048K   ok\n"
165 " /dev/sda3    526385152         2048K   ok\n"
166 "\n"
167 msgstr ""
168
169 #. type: textblock
170 #: ../align/virt-alignment-scan.pod:42
171 msgid ""
172 "To run the tool on a guest known to libvirt, use the I<-d> option and "
173 "possibly the I<-c> option:"
174 msgstr ""
175
176 #. type: verbatim
177 #: ../align/virt-alignment-scan.pod:45
178 #, no-wrap
179 msgid ""
180 " # virt-alignment-scan -d RHEL5\n"
181 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
182 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
183 "\n"
184 msgstr ""
185
186 #. type: verbatim
187 #: ../align/virt-alignment-scan.pod:49
188 #, no-wrap
189 msgid ""
190 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
191 " /dev/sda1      1048576         1024K   ok\n"
192 " /dev/sda2    105906176         1024K   ok\n"
193 " /dev/sdb1        65536           64K   ok\n"
194 "\n"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:54
199 msgid ""
200 "The output consists of 4 or more whitespace-separated columns.  Only the "
201 "first 4 columns are signficant if you want to parse this from a program.  "
202 "The columns are:"
203 msgstr ""
204
205 #. type: =item
206 #: ../align/virt-alignment-scan.pod:60
207 msgid "col 1"
208 msgstr ""
209
210 #. type: textblock
211 #: ../align/virt-alignment-scan.pod:62
212 msgid ""
213 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
214 "on the first block device)"
215 msgstr ""
216
217 #. type: =item
218 #: ../align/virt-alignment-scan.pod:65
219 msgid "col 2"
220 msgstr ""
221
222 #. type: textblock
223 #: ../align/virt-alignment-scan.pod:67
224 msgid "the start of the partition in bytes"
225 msgstr ""
226
227 #. type: =item
228 #: ../align/virt-alignment-scan.pod:69
229 msgid "col 3"
230 msgstr ""
231
232 #. type: textblock
233 #: ../align/virt-alignment-scan.pod:71
234 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
235 msgstr ""
236
237 #. type: =item
238 #: ../align/virt-alignment-scan.pod:73
239 msgid "col 4"
240 msgstr ""
241
242 #. type: textblock
243 #: ../align/virt-alignment-scan.pod:75
244 msgid ""
245 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
246 "can cause performance problems"
247 msgstr ""
248
249 #. type: =item
250 #: ../align/virt-alignment-scan.pod:78
251 msgid "cols 5+"
252 msgstr ""
253
254 #. type: textblock
255 #: ../align/virt-alignment-scan.pod:80
256 msgid "optional free-text explanation."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:84
261 msgid ""
262 "The exit code from the program changes depending on whether poorly aligned "
263 "partitions were found.  See L</EXIT STATUS> below."
264 msgstr ""
265
266 #. type: textblock
267 #: ../align/virt-alignment-scan.pod:87
268 msgid "If you just want the exit code with no output, use the I<-q> option."
269 msgstr ""
270
271 #. type: =head1
272 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
273 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
274 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
275 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
276 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
277 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
278 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
279 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
280 #: ../test-tool/libguestfs-test-tool.pod:36
281 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
282 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
283 #: ../tools/virt-win-reg.pl:96
284 msgid "OPTIONS"
285 msgstr "ПАРАМЕТРИ"
286
287 #. type: =item
288 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
289 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
290 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
291 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
292 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
293 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
294 #: ../test-tool/libguestfs-test-tool.pod:40
295 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
296 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
297 #: ../tools/virt-win-reg.pl:104
298 msgid "B<--help>"
299 msgstr "B<--help>"
300
301 #. type: textblock
302 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
303 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
304 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
305 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
306 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
307 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
308 #: ../tools/virt-win-reg.pl:106
309 msgid "Display brief help."
310 msgstr ""
311
312 #. type: =item
313 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
314 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
315 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
316 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
317 #, fuzzy
318 #| msgid "B<-f file>"
319 msgid "B<-a> file"
320 msgstr "B<-f файл>"
321
322 #. type: =item
323 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
324 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
325 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
326 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
327 #, fuzzy
328 #| msgid "B<--add image>"
329 msgid "B<--add> file"
330 msgstr "B<--add образ>"
331
332 #. type: textblock
333 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
334 msgid "Add I<file> which should be a disk image from a virtual machine."
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
339 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
340 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
341 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
342 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
343 msgid ""
344 "The format of the disk image is auto-detected.  To override this and force a "
345 "particular format use the I<--format=..> option."
346 msgstr ""
347
348 #. type: =item
349 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
350 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
351 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
352 #: ../rescue/virt-rescue.pod:107
353 #, fuzzy
354 #| msgid "B<-c URI>"
355 msgid "B<-c> URI"
356 msgstr "B<-c адреса>"
357
358 #. type: =item
359 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
360 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
361 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
362 #: ../rescue/virt-rescue.pod:109
363 #, fuzzy
364 #| msgid "B<--connect URI>"
365 msgid "B<--connect> URI"
366 msgstr "B<--connect адреса>"
367
368 #. type: textblock
369 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
370 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
371 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
372 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
373 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
374 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
375 msgid ""
376 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
377 "to the default libvirt hypervisor."
378 msgstr ""
379
380 #. type: textblock
381 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
382 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
383 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
384 #: ../rescue/virt-rescue.pod:114
385 msgid ""
386 "If you specify guest block devices directly (I<-a>), then libvirt is not "
387 "used at all."
388 msgstr ""
389
390 #. type: =item
391 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
392 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
393 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
394 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
395 msgid "B<-d> guest"
396 msgstr ""
397
398 #. type: =item
399 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
400 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
401 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
402 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
403 msgid "B<--domain> guest"
404 msgstr ""
405
406 #. type: textblock
407 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
408 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
409 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
410 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
411 msgid ""
412 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
413 "instead of names."
414 msgstr ""
415
416 #. type: =item
417 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
418 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
419 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
420 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
421 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
422 msgid "B<--format=raw|qcow2|..>"
423 msgstr "B<--format=raw|qcow2|..>"
424
425 #. type: =item
426 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
427 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
428 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
429 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
430 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
431 #: ../rescue/virt-rescue.pod:126
432 msgid "B<--format>"
433 msgstr "B<--format>"
434
435 #. type: textblock
436 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
437 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
438 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
439 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
440 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
441 msgid ""
442 "The default for the I<-a> option is to auto-detect the format of the disk "
443 "image.  Using this forces the disk format for I<-a> options which follow on "
444 "the command line.  Using I<--format> with no argument switches back to auto-"
445 "detection for subsequent I<-a> options."
446 msgstr ""
447
448 #. type: textblock
449 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
450 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
451 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
452 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
453 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
454 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
455 msgid "For example:"
456 msgstr "Приклад:"
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:134
460 #, fuzzy, no-wrap
461 #| msgid ""
462 #| " guestfish --format=raw -a disk.img\n"
463 #| "\n"
464 msgid ""
465 " virt-alignment-scan --format=raw -a disk.img\n"
466 "\n"
467 msgstr ""
468 " guestfish --format=raw -a disk.img\n"
469 "\n"
470
471 #. type: textblock
472 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
473 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
474 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
475 #: ../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:138
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:140 ../cat/virt-cat.pod:122
495 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
496 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
497 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
498 #: ../rescue/virt-rescue.pod:141
499 msgid ""
500 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
501 "detection for C<another.img>."
502 msgstr ""
503
504 #. type: textblock
505 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
506 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
507 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
508 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
509 msgid ""
510 "If you have untrusted raw-format guest disk images, you should use this "
511 "option to specify the disk format.  This avoids a possible security problem "
512 "with malicious guests (CVE-2010-3851)."
513 msgstr ""
514
515 #. type: =item
516 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414
517 #: ../sparsify/virt-sparsify.pod:153
518 msgid "B<-q>"
519 msgstr ""
520
521 #. type: =item
522 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416
523 #: ../sparsify/virt-sparsify.pod:155
524 #, fuzzy
525 #| msgid "B<--live>"
526 msgid "B<--quiet>"
527 msgstr "B<--live>"
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:151
531 msgid ""
532 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
533 "below)."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
538 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
539 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
540 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
541 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
542 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
543 msgid "B<-v>"
544 msgstr "B<-v>"
545
546 #. type: =item
547 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
548 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
549 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
550 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
551 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
552 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
553 msgid "B<--verbose>"
554 msgstr "B<--verbose>"
555
556 #. type: textblock
557 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
558 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
559 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
560 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
561 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
562 msgid "Enable verbose messages for debugging."
563 msgstr ""
564
565 #. type: =item
566 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
567 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
568 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
569 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
570 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
571 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
572 #: ../sparsify/virt-sparsify.pod:165
573 msgid "B<-V>"
574 msgstr "B<-V>"
575
576 #. type: =item
577 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
578 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
579 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
580 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
581 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
582 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
583 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
584 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
585 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
586 msgid "B<--version>"
587 msgstr "B<--version>"
588
589 #. type: textblock
590 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
591 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
592 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
593 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
594 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488
595 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
596 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
597 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
598 msgid "Display version number and exit."
599 msgstr "Показати дані щодо версії і завершити роботу."
600
601 #. type: =item
602 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
603 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
604 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
605 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
606 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
607 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
608 #: ../tools/virt-tar.pl:158
609 msgid "B<-x>"
610 msgstr "B<-x>"
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
614 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
615 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
616 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
617 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
618 msgid "Enable tracing of libguestfs API calls."
619 msgstr ""
620
621 #. type: =head1
622 #: ../align/virt-alignment-scan.pod:172
623 msgid "RECOMMENDED ALIGNMENT"
624 msgstr ""
625
626 #. type: textblock
627 #: ../align/virt-alignment-scan.pod:174
628 msgid ""
629 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
630 "first sector of the first partition at sector 63, with a 512 byte sector "
631 "size.  This happens because of a historical accident.  Drives have to report "
632 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
633 "completely meaningless on modern drives, but it happens that the geometry "
634 "reported always has 63 sectors per track.  The operating system therefore "
635 "places the first partition at the start of the second \"track\", at sector "
636 "63."
637 msgstr ""
638
639 #. type: textblock
640 #: ../align/virt-alignment-scan.pod:183
641 msgid ""
642 "When the guest OS is virtualized, the host operating system and hypervisor "
643 "may prefer accesses aligned to one of:"
644 msgstr ""
645
646 #. type: =item
647 #: ../align/virt-alignment-scan.pod:188
648 msgid "* 512 bytes"
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:190
653 msgid ""
654 "if the host OS uses local storage directly on hard drive partitions, and the "
655 "hard drive has 512 byte physical sectors."
656 msgstr ""
657
658 #. type: =item
659 #: ../align/virt-alignment-scan.pod:193
660 msgid "* 4 Kbytes"
661 msgstr ""
662
663 #. type: textblock
664 #: ../align/virt-alignment-scan.pod:195
665 msgid ""
666 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
667 "backed storage on filesystems with 4Kbyte block size; or for some types of "
668 "network-attached storage."
669 msgstr ""
670
671 #. type: =item
672 #: ../align/virt-alignment-scan.pod:199
673 msgid "* 64 Kbytes"
674 msgstr ""
675
676 #. type: textblock
677 #: ../align/virt-alignment-scan.pod:201
678 msgid ""
679 "for high-end network-attached storage.  This is the optimal block size for "
680 "some NetApp hardware."
681 msgstr ""
682
683 #. type: =item
684 #: ../align/virt-alignment-scan.pod:204
685 msgid "* 1 Mbyte"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:206
690 msgid "see L</1 MB PARTITION ALIGNMENT> below."
691 msgstr ""
692
693 #. type: textblock
694 #: ../align/virt-alignment-scan.pod:210
695 msgid ""
696 "Partitions which are not aligned correctly to the underlying storage cause "
697 "extra I/O.  For example:"
698 msgstr ""
699
700 #. type: verbatim
701 #: ../align/virt-alignment-scan.pod:213
702 #, no-wrap
703 msgid ""
704 "                       sect#63\n"
705 "                       +--------------------------+------\n"
706 "                       |         guest            |\n"
707 "                       |    filesystem block      |\n"
708 " ---+------------------+------+-------------------+-----+---\n"
709 "    |  host block             |  host block             |\n"
710 "    |                         |                         |\n"
711 " ---+-------------------------+-------------------------+---\n"
712 "\n"
713 msgstr ""
714
715 #. type: textblock
716 #: ../align/virt-alignment-scan.pod:222
717 msgid ""
718 "In this example, each time a 4K guest block is read, two blocks on the host "
719 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
720 "written, two host blocks must first be read, the old and new data combined, "
721 "and the two blocks written back (4x I/O)."
722 msgstr ""
723
724 #. type: =head2
725 #: ../align/virt-alignment-scan.pod:227
726 msgid "LINUX HOST BLOCK AND I/O SIZE"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:229
731 msgid ""
732 "New versions of the Linux kernel expose the physical and logical block size, "
733 "and minimum and recommended I/O size."
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:232
738 msgid "For a typical hard drive with 512 byte sectors:"
739 msgstr ""
740
741 #. type: verbatim
742 #: ../align/virt-alignment-scan.pod:234
743 #, no-wrap
744 msgid ""
745 " $ cat /sys/block/sda/queue/physical_block_size\n"
746 " 512\n"
747 " $ cat /sys/block/sda/queue/logical_block_size\n"
748 " 512\n"
749 " $ cat /sys/block/sda/queue/minimum_io_size\n"
750 " 512\n"
751 " $ cat /sys/block/sda/queue/optimal_io_size\n"
752 " 0\n"
753 "\n"
754 msgstr ""
755
756 #. type: textblock
757 #: ../align/virt-alignment-scan.pod:243
758 msgid "For a NetApp LUN:"
759 msgstr ""
760
761 #. type: verbatim
762 #: ../align/virt-alignment-scan.pod:245
763 #, no-wrap
764 msgid ""
765 " $ cat /sys/block/sdc/queue/logical_block_size\n"
766 " 512\n"
767 " $ cat /sys/block/sdc/queue/physical_block_size\n"
768 " 512\n"
769 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
770 " 4096\n"
771 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
772 " 65536\n"
773 "\n"
774 msgstr ""
775
776 #. type: textblock
777 #: ../align/virt-alignment-scan.pod:254
778 msgid ""
779 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
780 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
781 msgstr ""
782
783 #. type: textblock
784 #: ../align/virt-alignment-scan.pod:258
785 msgid ""
786 "For detailed information about what these numbers mean, see L<http://docs."
787 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
788 "Storage_Administration_Guide/newstorage-iolimits.html>"
789 msgstr ""
790
791 #. type: textblock
792 #: ../align/virt-alignment-scan.pod:261
793 msgid ""
794 "[Thanks to Mike Snitzer for providing NetApp data and additional "
795 "information.]"
796 msgstr ""
797
798 #. type: =head2
799 #: ../align/virt-alignment-scan.pod:264
800 #, fuzzy
801 #| msgid "PARTITIONING"
802 msgid "1 MB PARTITION ALIGNMENT"
803 msgstr "ПОДІЛ НА РОЗДІЛИ"
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:266
807 msgid ""
808 "Microsoft picked 1 MB as the default alignment for all partitions starting "
809 "with Windows 2008 Server, and Linux has followed this."
810 msgstr ""
811
812 #. type: textblock
813 #: ../align/virt-alignment-scan.pod:269
814 msgid ""
815 "Assuming 512 byte sectors in the guest, you will now see the first partition "
816 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
817 "multiple of 2048 sectors."
818 msgstr ""
819
820 #. type: textblock
821 #: ../align/virt-alignment-scan.pod:273
822 msgid ""
823 "1 MB alignment is compatible with all current alignment requirements (4K, "
824 "64K) and provides room for future growth in physical block sizes."
825 msgstr ""
826
827 #. type: =head2
828 #: ../align/virt-alignment-scan.pod:276
829 msgid "SETTING ALIGNMENT"
830 msgstr ""
831
832 #. type: textblock
833 #: ../align/virt-alignment-scan.pod:278
834 msgid ""
835 "Currently there is no virt tool for fixing alignment problems in guests.  "
836 "This is a difficult problem to fix because simply moving partitions around "
837 "breaks the bootloader, necessitating either manual reinstallation of the "
838 "bootloader using a rescue disk, or complex and error-prone hacks."
839 msgstr ""
840
841 #. type: textblock
842 #: ../align/virt-alignment-scan.pod:284
843 msgid ""
844 "L<virt-resize(1)> does not change the alignment of the first partition, but "
845 "it does align the second and subsequent partitions to a multiple of 64 or "
846 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
847 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
848 "virt-resize could be used to align the main OS partition, so that the "
849 "majority of OS accesses except at boot will be aligned."
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:292
854 msgid ""
855 "The easiest way to correct partition alignment problems is to reinstall your "
856 "guest operating systems.  If you install operating systems from templates, "
857 "ensure these have correct partition alignment too."
858 msgstr ""
859
860 #. type: textblock
861 #: ../align/virt-alignment-scan.pod:297
862 msgid ""
863 "For older versions of Windows, the following NetApp document contains useful "
864 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
865 msgstr ""
866
867 #. type: textblock
868 #: ../align/virt-alignment-scan.pod:300
869 msgid ""
870 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
871 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
872 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
873 "contains an example."
874 msgstr ""
875
876 #. type: =head1
877 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
878 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
879 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
880 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
881 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
882 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
883 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
884 #: ../tools/virt-win-reg.pl:733
885 msgid "SHELL QUOTING"
886 msgstr ""
887
888 #. type: textblock
889 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
890 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
891 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
892 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
893 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
894 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
895 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
896 #: ../tools/virt-win-reg.pl:741
897 msgid ""
898 "Libvirt guest names can contain arbitrary characters, some of which have "
899 "meaning to the shell such as C<#> and space.  You may need to quote or "
900 "escape these characters on the command line.  See the shell manual page L<sh"
901 "(1)> for details."
902 msgstr ""
903
904 #. type: =head1
905 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
906 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
907 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
908 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
909 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
910 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
911 #: ../test-tool/libguestfs-test-tool.pod:90
912 msgid "EXIT STATUS"
913 msgstr ""
914
915 #. type: textblock
916 #: ../align/virt-alignment-scan.pod:314
917 msgid "This program returns:"
918 msgstr ""
919
920 #. type: =item
921 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
922 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
923 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
924 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
925 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
926 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
927 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
928 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
929 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
930 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
931 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
932 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
933 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
934 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
935 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
936 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
937 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
938 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
939 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
940 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
941 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
942 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
943 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
944 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
945 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
946 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
947 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
948 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
949 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
950 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2019
951 #: ../fish/guestfish-actions.pod:2027 ../fish/guestfish-actions.pod:2034
952 #: ../fish/guestfish-actions.pod:2041 ../fish/guestfish.pod:445
953 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
954 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
955 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
956 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
957 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
958 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
959 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
960 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
961 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
962 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
963 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
964 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
965 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
966 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
967 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
968 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
969 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
970 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
971 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
972 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
973 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
974 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3026
975 #: ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:3041
976 #: ../src/guestfs-actions.pod:3048 ../src/guestfs.pod:388
977 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
978 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
979 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
980 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
981 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
982 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
983 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
984 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
985 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
986 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
987 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
988 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
989 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
990 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
991 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
992 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
993 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
994 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
995 #: ../tools/virt-win-reg.pl:722
996 msgid "*"
997 msgstr "*"
998
999 #. type: textblock
1000 #: ../align/virt-alignment-scan.pod:320
1001 msgid "0"
1002 msgstr ""
1003
1004 #. type: textblock
1005 #: ../align/virt-alignment-scan.pod:322
1006 msgid ""
1007 "successful exit, all partitions are aligned E<ge> 64K for best performance"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:326
1012 #, fuzzy
1013 #| msgid "1."
1014 msgid "1"
1015 msgstr "1."
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:328
1019 msgid "an error scanning the disk image or guest"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:332
1024 #, fuzzy
1025 #| msgid "2."
1026 msgid "2"
1027 msgstr "2."
1028
1029 #. type: textblock
1030 #: ../align/virt-alignment-scan.pod:334
1031 msgid ""
1032 "successful exit, some partitions have alignment E<lt> 64K which can result "
1033 "in poor performance on high end network storage"
1034 msgstr ""
1035
1036 #. type: textblock
1037 #: ../align/virt-alignment-scan.pod:339
1038 #, fuzzy
1039 #| msgid "3."
1040 msgid "3"
1041 msgstr "3."
1042
1043 #. type: textblock
1044 #: ../align/virt-alignment-scan.pod:341
1045 msgid ""
1046 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1047 "poor performance on most hypervisors"
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1052 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1053 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1054 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1055 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1056 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1057 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1058 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1059 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1060 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1061 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1062 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1063 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1064 #: ../test-tool/libguestfs-test-tool.pod:100
1065 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1066 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1067 #: ../tools/virt-win-reg.pl:746
1068 msgid "SEE ALSO"
1069 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1070
1071 #. type: textblock
1072 #: ../align/virt-alignment-scan.pod:348
1073 #, fuzzy
1074 #| msgid ""
1075 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1076 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1077 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1078 msgid ""
1079 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1080 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1081 msgstr ""
1082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1083 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1084 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1085
1086 #. type: =head1
1087 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1088 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1089 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1090 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1091 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1092 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1093 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1094 #: ../tools/virt-win-reg.pl:772
1095 msgid "AUTHOR"
1096 msgstr "АВТОР"
1097
1098 #. type: textblock
1099 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1100 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1101 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1102 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1103 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1104 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1105 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1106 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1107 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1108 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1109
1110 #. type: =head1
1111 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1112 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1113 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1114 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1115 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1116 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1117 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1118 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1119 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1120 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1121 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1122 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1123 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1124 #: ../test-tool/libguestfs-test-tool.pod:110
1125 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1126 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1127 #: ../tools/virt-win-reg.pl:776
1128 msgid "COPYRIGHT"
1129 msgstr "АВТОРСЬКІ ПРАВА"
1130
1131 #. type: textblock
1132 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:507
1133 #: ../sparsify/virt-sparsify.pod:270
1134 #, fuzzy
1135 #| msgid "Copyright (C) 2009 Red Hat Inc."
1136 msgid "Copyright (C) 2011 Red Hat Inc."
1137 msgstr "© Red Hat Inc., 2009"
1138
1139 #. type: textblock
1140 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1141 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1142 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1143 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1144 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1145 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1146 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1147 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1148 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1149 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1150 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1151 #: ../tools/virt-win-reg.pl:780
1152 msgid ""
1153 "This program is free software; you can redistribute it and/or modify it "
1154 "under the terms of the GNU General Public License as published by the Free "
1155 "Software Foundation; either version 2 of the License, or (at your option) "
1156 "any later version."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1161 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1162 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1163 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1164 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1165 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1166 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1167 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1168 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1169 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1170 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1171 #: ../tools/virt-win-reg.pl:785
1172 msgid ""
1173 "This program is distributed in the hope that it will be useful, but WITHOUT "
1174 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1175 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1176 "more details."
1177 msgstr ""
1178 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1179 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1180 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1181 "дізнатися з GNU General Public License."
1182
1183 #. type: textblock
1184 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1185 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1186 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1187 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1188 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1189 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1190 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1191 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1192 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1193 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1194 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1195 #: ../tools/virt-win-reg.pl:790
1196 msgid ""
1197 "You should have received a copy of the GNU General Public License along with "
1198 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1199 "Ave, Cambridge, MA 02139, USA."
1200 msgstr ""
1201
1202 #. type: textblock
1203 #: ../cat/virt-cat.pod:5
1204 msgid "virt-cat - Display files in a virtual machine"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-cat.pod:9
1209 #, fuzzy, no-wrap
1210 #| msgid ""
1211 #| " virt-list-partitions [--options] domname\n"
1212 #| "\n"
1213 msgid ""
1214 " virt-cat [--options] -d domname file [file ...]\n"
1215 "\n"
1216 msgstr ""
1217 " virt-list-partitions [--параметри] назва_домену\n"
1218 "\n"
1219
1220 #. type: verbatim
1221 #: ../cat/virt-cat.pod:11
1222 #, fuzzy, no-wrap
1223 #| msgid ""
1224 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1225 #| "\n"
1226 msgid ""
1227 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1228 "\n"
1229 msgstr ""
1230 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1231 "\n"
1232
1233 #. type: textblock
1234 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1235 #: ../inspector/virt-inspector.pod:13
1236 msgid "Old-style:"
1237 msgstr ""
1238
1239 #. type: verbatim
1240 #: ../cat/virt-cat.pod:15
1241 #, no-wrap
1242 msgid ""
1243 " virt-cat domname file\n"
1244 "\n"
1245 msgstr ""
1246
1247 #. type: verbatim
1248 #: ../cat/virt-cat.pod:17
1249 #, no-wrap
1250 msgid ""
1251 " virt-cat disk.img file\n"
1252 "\n"
1253 msgstr ""
1254
1255 #. type: textblock
1256 #: ../cat/virt-cat.pod:21
1257 msgid ""
1258 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1259 "C<file> exists in the named virtual machine (or disk image)."
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../cat/virt-cat.pod:24
1264 msgid ""
1265 "Multiple filenames can be given, in which case they are concatenated "
1266 "together.  Each filename must be a full path, starting at the root directory "
1267 "(starting with '/')."
1268 msgstr ""
1269
1270 #. type: textblock
1271 #: ../cat/virt-cat.pod:28
1272 msgid ""
1273 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1274 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1275 "(see L</USING GUESTFISH> below)."
1276 msgstr ""
1277
1278 #. type: =head1
1279 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1280 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1281 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1282 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1283 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1284 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1285 #: ../tools/virt-tar.pl:50
1286 msgid "EXAMPLES"
1287 msgstr "ПРИКЛАДИ"
1288
1289 #. type: textblock
1290 #: ../cat/virt-cat.pod:34
1291 msgid ""
1292 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1293 msgstr ""
1294
1295 #. type: verbatim
1296 #: ../cat/virt-cat.pod:37
1297 #, no-wrap
1298 msgid ""
1299 " virt-cat -d mydomain /etc/fstab\n"
1300 "\n"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-cat.pod:39
1305 msgid "List syslog messages from a VM disk image file:"
1306 msgstr ""
1307
1308 #. type: verbatim
1309 #: ../cat/virt-cat.pod:41
1310 #, no-wrap
1311 msgid ""
1312 " virt-cat -a disk.img /var/log/messages | tail\n"
1313 "\n"
1314 msgstr ""
1315
1316 #. type: textblock
1317 #: ../cat/virt-cat.pod:43
1318 msgid "Find out what DHCP IP address a VM acquired:"
1319 msgstr ""
1320
1321 #. type: verbatim
1322 #: ../cat/virt-cat.pod:45
1323 #, no-wrap
1324 msgid ""
1325 " virt-cat -d mydomain /var/log/messages | \\\n"
1326 "   grep 'dhclient: bound to' | tail\n"
1327 "\n"
1328 msgstr ""
1329
1330 #. type: textblock
1331 #: ../cat/virt-cat.pod:48
1332 msgid "Find out what packages were recently installed:"
1333 msgstr ""
1334
1335 #. type: verbatim
1336 #: ../cat/virt-cat.pod:50
1337 #, no-wrap
1338 msgid ""
1339 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1340 "\n"
1341 msgstr ""
1342
1343 #. type: textblock
1344 #: ../cat/virt-cat.pod:52
1345 msgid "Find out who is logged on inside a virtual machine:"
1346 msgstr ""
1347
1348 #. type: verbatim
1349 #: ../cat/virt-cat.pod:54
1350 #, no-wrap
1351 msgid ""
1352 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1353 " who /tmp/utmp\n"
1354 "\n"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-cat.pod:57
1359 msgid "or who was logged on:"
1360 msgstr ""
1361
1362 #. type: verbatim
1363 #: ../cat/virt-cat.pod:59
1364 #, no-wrap
1365 msgid ""
1366 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1367 " last -f /tmp/wtmp\n"
1368 "\n"
1369 msgstr ""
1370
1371 #. type: textblock
1372 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1373 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1374 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1375 msgid ""
1376 "Add I<file> which should be a disk image from a virtual machine.  If the "
1377 "virtual machine has multiple block devices, you must supply all of them with "
1378 "separate I<-a> options."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1383 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1384 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1385 msgid "B<--echo-keys>"
1386 msgstr "B<--echo-keys>"
1387
1388 #. type: textblock
1389 #: ../cat/virt-cat.pod:100
1390 msgid ""
1391 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1392 "so you cannot see what you are typing.  If you are not worried about Tempest "
1393 "attacks and there is no one else in the room you can specify this flag to "
1394 "see what you are typing."
1395 msgstr ""
1396
1397 #. type: verbatim
1398 #: ../cat/virt-cat.pod:116
1399 #, fuzzy, no-wrap
1400 #| msgid ""
1401 #| " guestfish --format=raw -a disk.img\n"
1402 #| "\n"
1403 msgid ""
1404 " virt-cat --format=raw -a disk.img file\n"
1405 "\n"
1406 msgstr ""
1407 " guestfish --format=raw -a disk.img\n"
1408 "\n"
1409
1410 #. type: verbatim
1411 #: ../cat/virt-cat.pod:120
1412 #, fuzzy, no-wrap
1413 #| msgid ""
1414 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1415 #| "\n"
1416 msgid ""
1417 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1418 "\n"
1419 msgstr ""
1420 " guestfish --format=raw -a disk.img --format -a another.img\n"
1421 "\n"
1422
1423 #. type: =item
1424 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1425 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1426 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1427 msgid "B<--keys-from-stdin>"
1428 msgstr "B<--keys-from-stdin>"
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1432 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1433 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1434 msgid ""
1435 "Read key or passphrase parameters from stdin.  The default is to try to read "
1436 "passphrases from the user by opening C</dev/tty>."
1437 msgstr ""
1438
1439 #. type: =head1
1440 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1441 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1442 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1443 msgstr ""
1444
1445 #. type: textblock
1446 #: ../cat/virt-cat.pod:154
1447 msgid "Previous versions of virt-cat allowed you to write either:"
1448 msgstr ""
1449
1450 #. type: verbatim
1451 #: ../cat/virt-cat.pod:156
1452 #, fuzzy, no-wrap
1453 #| msgid ""
1454 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1455 #| "\n"
1456 msgid ""
1457 " virt-cat disk.img [disk.img ...] file\n"
1458 "\n"
1459 msgstr ""
1460 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1461 "\n"
1462
1463 #. type: textblock
1464 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1465 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1466 #, fuzzy
1467 #| msgid "or:"
1468 msgid "or"
1469 msgstr "або:"
1470
1471 #. type: verbatim
1472 #: ../cat/virt-cat.pod:160
1473 #, no-wrap
1474 msgid ""
1475 " virt-cat guestname file\n"
1476 "\n"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1481 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1482 msgid ""
1483 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1484 "the confusing case where a disk image might have the same name as a guest."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1489 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1490 msgid "For compatibility the old style is still supported."
1491 msgstr ""
1492
1493 #. type: =head1
1494 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1495 msgid "USING GUESTFISH"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-cat.pod:170
1500 msgid ""
1501 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1502 "C<virt-cat> doesn't work."
1503 msgstr ""
1504
1505 #. type: textblock
1506 #: ../cat/virt-cat.pod:173
1507 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1508 msgstr ""
1509
1510 #. type: verbatim
1511 #: ../cat/virt-cat.pod:175
1512 #, fuzzy, no-wrap
1513 #| msgid ""
1514 #| " guestfish --ro -d myguest -i\n"
1515 #| "\n"
1516 msgid ""
1517 " guestfish --ro -i -d domname download file -\n"
1518 "\n"
1519 msgstr ""
1520 " guestfish --ro -d myguest -i\n"
1521 "\n"
1522
1523 #. type: textblock
1524 #: ../cat/virt-cat.pod:177
1525 msgid ""
1526 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1527 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-cat.pod:181
1532 msgid ""
1533 "The command above uses libguestfs's guest inspection feature and so does not "
1534 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1535 "disk images that don't contain guests.  To display a file from a disk image "
1536 "directly, use:"
1537 msgstr ""
1538
1539 #. type: verbatim
1540 #: ../cat/virt-cat.pod:186
1541 #, fuzzy, no-wrap
1542 #| msgid ""
1543 #| " guestfish [--ro] -i disk.img\n"
1544 #| "\n"
1545 msgid ""
1546 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1547 "\n"
1548 msgstr ""
1549 " guestfish [--ro] -i disk.img\n"
1550 "\n"
1551
1552 #. type: textblock
1553 #: ../cat/virt-cat.pod:188
1554 msgid ""
1555 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1556 "the disk image, and C<file> is the full path to the file."
1557 msgstr ""
1558
1559 #. type: textblock
1560 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1561 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1562 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1563 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1564 msgid ""
1565 "This program returns 0 if successful, or non-zero if there was an error."
1566 msgstr ""
1567
1568 #. type: textblock
1569 #: ../cat/virt-cat.pod:205
1570 #, fuzzy
1571 #| msgid ""
1572 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1573 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1574 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1575 msgid ""
1576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1577 "tar-out(1)>, L<http://libguestfs.org/>."
1578 msgstr ""
1579 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1580 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1581 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1582
1583 #. type: textblock
1584 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1585 #: ../resize/virt-resize.pod:641
1586 #, fuzzy
1587 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
1588 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1589 msgstr "© Red Hat Inc., 2009–2010"
1590
1591 #. type: textblock
1592 #: ../cat/virt-filesystems.pod:5
1593 msgid ""
1594 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1595 "virtual machine or disk image"
1596 msgstr ""
1597
1598 #. type: verbatim
1599 #: ../cat/virt-filesystems.pod:9
1600 #, fuzzy, no-wrap
1601 #| msgid ""
1602 #| " virt-list-partitions [--options] domname\n"
1603 #| "\n"
1604 msgid ""
1605 " virt-filesystems [--options] -d domname\n"
1606 "\n"
1607 msgstr ""
1608 " virt-list-partitions [--параметри] назва_домену\n"
1609 "\n"
1610
1611 #. type: verbatim
1612 #: ../cat/virt-filesystems.pod:11
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1622 "\n"
1623
1624 #. type: textblock
1625 #: ../cat/virt-filesystems.pod:15
1626 msgid ""
1627 "This tool allows you to discover filesystems, partitions, logical volumes, "
1628 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1629 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:20
1634 msgid ""
1635 "One use for this tool is from shell scripts to iterate over all filesystems "
1636 "from a disk image:"
1637 msgstr ""
1638
1639 #. type: verbatim
1640 #: ../cat/virt-filesystems.pod:23
1641 #, no-wrap
1642 msgid ""
1643 " for fs in $(virt-filesystems -a disk.img); do\n"
1644 "   # ...\n"
1645 " done\n"
1646 "\n"
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:27
1651 msgid ""
1652 "Another use is to list partitions before using another tool to modify those "
1653 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1654 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:32
1659 msgid ""
1660 "Various command line options control what this program displays.  You need "
1661 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1662 "guest respectively.  If you just specify that then the program shows "
1663 "filesystems found, one per line, like this:"
1664 msgstr ""
1665
1666 #. type: verbatim
1667 #: ../cat/virt-filesystems.pod:37
1668 #, no-wrap
1669 msgid ""
1670 " $ virt-filesystems -a disk.img\n"
1671 " /dev/sda1\n"
1672 " /dev/vg_guest/lv_root\n"
1673 "\n"
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:41
1678 msgid ""
1679 "If you add I<-l> or I<--long> then the output includes extra information:"
1680 msgstr ""
1681
1682 #. type: verbatim
1683 #: ../cat/virt-filesystems.pod:44
1684 #, no-wrap
1685 msgid ""
1686 " $ virt-filesystems -a disk.img -l\n"
1687 " Name                   Type         VFS   Label  Size\n"
1688 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1689 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1690 "\n"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../cat/virt-filesystems.pod:49
1695 msgid ""
1696 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1697 "shown as well:"
1698 msgstr ""
1699
1700 #. type: verbatim
1701 #: ../cat/virt-filesystems.pod:52
1702 #, no-wrap
1703 msgid ""
1704 " $ virt-filesystems -a disk.img --extra\n"
1705 " /dev/sda1\n"
1706 " /dev/vg_guest/lv_root\n"
1707 " /dev/vg_guest/lv_swap\n"
1708 " /dev/vg_guest/lv_data\n"
1709 "\n"
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:58
1714 msgid ""
1715 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1716 msgstr ""
1717
1718 #. type: verbatim
1719 #: ../cat/virt-filesystems.pod:60
1720 #, no-wrap
1721 msgid ""
1722 " $ virt-filesystems -a disk.img --partitions\n"
1723 " /dev/sda1\n"
1724 " /dev/sda2\n"
1725 "\n"
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../cat/virt-filesystems.pod:64
1730 msgid ""
1731 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1732 "volumes>, I<--block-devices> to list those items."
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../cat/virt-filesystems.pod:67
1737 msgid ""
1738 "You can use these options in combination as well (if you want a combination "
1739 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1740 "items fall into several categories (eg. C</dev/sda1> might be both a "
1741 "partition and a filesystem).  These items are listed several times.  To get "
1742 "a list which includes absolutely everything that virt-filesystems knows "
1743 "about, use the I<--all> option."
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:74
1748 msgid ""
1749 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1750 "uuid> option to display device and filesystem UUIDs in the long output."
1751 msgstr ""
1752
1753 #. type: textblock
1754 #: ../cat/virt-filesystems.pod:78
1755 msgid ""
1756 "I<--all --long --uuid> is a useful combination to display all possible "
1757 "information about everything."
1758 msgstr ""
1759
1760 #. type: verbatim
1761 #: ../cat/virt-filesystems.pod:81
1762 #, no-wrap
1763 msgid ""
1764 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1765 " Name      Type       VFS  Label           Size Parent   UUID\n"
1766 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1767 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1768 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1769 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1770 " /dev/sda  device     -    -               20G  -        -\n"
1771 "\n"
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../cat/virt-filesystems.pod:89
1776 msgid ""
1777 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1778 msgstr ""
1779
1780 #. type: =item
1781 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1782 #, fuzzy
1783 #| msgid "B<--help>"
1784 msgid "B<--all>"
1785 msgstr "B<--help>"
1786
1787 #. type: textblock
1788 #: ../cat/virt-filesystems.pod:112
1789 msgid ""
1790 "Display everything.  This is currently the same as specifying these options: "
1791 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1792 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1793 "added to this list in future)."
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-filesystems.pod:117
1798 #, fuzzy
1799 #| msgid "See also L</is-lv>."
1800 msgid "See also I<--long>."
1801 msgstr "Див. також L</is-lv>."
1802
1803 #. type: =item
1804 #: ../cat/virt-filesystems.pod:119
1805 #, fuzzy
1806 #| msgid "B<--live>"
1807 msgid "B<--blkdevs>"
1808 msgstr "B<--live>"
1809
1810 #. type: =item
1811 #: ../cat/virt-filesystems.pod:121
1812 #, fuzzy
1813 #| msgid "is-blockdev"
1814 msgid "B<--block-devices>"
1815 msgstr "is-blockdev"
1816
1817 #. type: textblock
1818 #: ../cat/virt-filesystems.pod:123
1819 #, fuzzy
1820 #| msgid "is-blockdev"
1821 msgid "Display block devices."
1822 msgstr "is-blockdev"
1823
1824 #. type: =item
1825 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1826 #, fuzzy
1827 #| msgid "B<--csh>"
1828 msgid "B<--csv>"
1829 msgstr "B<--csh>"
1830
1831 #. type: textblock
1832 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1833 msgid ""
1834 "Write out the results in CSV format (comma-separated values).  This format "
1835 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1836 "ABOUT CSV FORMAT> below."
1837 msgstr ""
1838
1839 #. type: textblock
1840 #: ../cat/virt-filesystems.pod:150
1841 msgid ""
1842 "When prompting for keys and passphrases, virt-filesystems normally turns "
1843 "echoing off so you cannot see what you are typing.  If you are not worried "
1844 "about Tempest attacks and there is no one else in the room you can specify "
1845 "this flag to see what you are typing."
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:155
1850 #, fuzzy
1851 #| msgid "B<--ro>"
1852 msgid "B<--extra>"
1853 msgstr "B<--ro>"
1854
1855 #. type: textblock
1856 #: ../cat/virt-filesystems.pod:157
1857 msgid ""
1858 "This causes filesystems that are not ordinary, mountable filesystems to be "
1859 "displayed.  This category includes swapspace, and filesystems that are empty "
1860 "or contain unknown data."
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../cat/virt-filesystems.pod:161
1865 msgid "This option implies I<--filesystems>."
1866 msgstr ""
1867
1868 #. type: =item
1869 #: ../cat/virt-filesystems.pod:163
1870 #, fuzzy
1871 #| msgid "list-filesystems"
1872 msgid "B<--filesystems>"
1873 msgstr "list-filesystems"
1874
1875 #. type: textblock
1876 #: ../cat/virt-filesystems.pod:165
1877 msgid ""
1878 "Display mountable filesystems.  If no display option was selected then this "
1879 "option is implied."
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-filesystems.pod:168
1884 msgid "With I<--extra>, non-mountable filesystems are shown too."
1885 msgstr ""
1886
1887 #. type: verbatim
1888 #: ../cat/virt-filesystems.pod:181
1889 #, fuzzy, no-wrap
1890 #| msgid ""
1891 #| " guestfish --format=raw -a disk.img\n"
1892 #| "\n"
1893 msgid ""
1894 " virt-filesystems --format=raw -a disk.img\n"
1895 "\n"
1896 msgstr ""
1897 " guestfish --format=raw -a disk.img\n"
1898 "\n"
1899
1900 #. type: verbatim
1901 #: ../cat/virt-filesystems.pod:185
1902 #, fuzzy, no-wrap
1903 #| msgid ""
1904 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1905 #| "\n"
1906 msgid ""
1907 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1908 "\n"
1909 msgstr ""
1910 " guestfish --format=raw -a disk.img --format -a another.img\n"
1911 "\n"
1912
1913 #. type: =item
1914 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1915 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1916 #: ../tools/virt-list-partitions.pl:109
1917 msgid "B<-h>"
1918 msgstr "B<-h>"
1919
1920 #. type: =item
1921 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1922 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1923 #, fuzzy
1924 #| msgid "B<-h> | B<--human-readable>"
1925 msgid "B<--human-readable>"
1926 msgstr "B<-h> | B<--human-readable>"
1927
1928 #. type: textblock
1929 #: ../cat/virt-filesystems.pod:198
1930 msgid "In I<--long> mode, display sizes in human-readable format."
1931 msgstr ""
1932
1933 #. type: =item
1934 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1935 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1936 msgid "B<-l>"
1937 msgstr ""
1938
1939 #. type: =item
1940 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1941 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1942 #, fuzzy
1943 #| msgid "B<--ro>"
1944 msgid "B<--long>"
1945 msgstr "B<--ro>"
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:213
1959 msgid ""
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions.  Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1963 "programs."
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../cat/virt-filesystems.pod:218
1968 msgid ""
1969 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1970 "default is to show raw numbers of I<bytes>."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-filesystems.pod:223
1980 #, fuzzy
1981 #| msgid "B<--live>"
1982 msgid "B<--lvs>"
1983 msgstr "B<--live>"
1984
1985 #. type: =item
1986 #: ../cat/virt-filesystems.pod:225
1987 #, fuzzy
1988 #| msgid "B<--live>"
1989 msgid "B<--logvols>"
1990 msgstr "B<--live>"
1991
1992 #. type: =item
1993 #: ../cat/virt-filesystems.pod:227
1994 #, fuzzy
1995 #| msgid "B<--live>"
1996 msgid "B<--logical-volumes>"
1997 msgstr "B<--live>"
1998
1999 #. type: textblock
2000 #: ../cat/virt-filesystems.pod:229
2001 msgid ""
2002 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
2003 "of whether the LVs contain filesystems."
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:232
2008 #, fuzzy
2009 #| msgid "B<--listen>"
2010 msgid "B<--no-title>"
2011 msgstr "B<--listen>"
2012
2013 #. type: textblock
2014 #: ../cat/virt-filesystems.pod:234
2015 msgid "In I<--long> mode, don't add a title row."
2016 msgstr ""
2017
2018 #. type: textblock
2019 #: ../cat/virt-filesystems.pod:236
2020 msgid ""
2021 "Note that the order of the columns is not fixed, and may change in future "
2022 "versions of virt-filesystems, so using this option may give you unexpected "
2023 "surprises."
2024 msgstr ""
2025
2026 #. type: =item
2027 #: ../cat/virt-filesystems.pod:240
2028 #, fuzzy
2029 #| msgid "B<--partition>"
2030 msgid "B<--parts>"
2031 msgstr "B<--partition>"
2032
2033 #. type: =item
2034 #: ../cat/virt-filesystems.pod:242
2035 #, fuzzy
2036 #| msgid "B<--partition>"
2037 msgid "B<--partitions>"
2038 msgstr "B<--partition>"
2039
2040 #. type: textblock
2041 #: ../cat/virt-filesystems.pod:244
2042 msgid ""
2043 "Display partitions.  In this mode, these are displayed irrespective of "
2044 "whether the partitions contain filesystems."
2045 msgstr ""
2046
2047 #. type: =item
2048 #: ../cat/virt-filesystems.pod:247
2049 #, fuzzy
2050 #| msgid "B<--csh>"
2051 msgid "B<--pvs>"
2052 msgstr "B<--csh>"
2053
2054 #. type: =item
2055 #: ../cat/virt-filesystems.pod:249
2056 #, fuzzy
2057 #| msgid "B<--verbose>"
2058 msgid "B<--physvols>"
2059 msgstr "B<--verbose>"
2060
2061 #. type: =item
2062 #: ../cat/virt-filesystems.pod:251
2063 msgid "B<--physical-volumes>"
2064 msgstr ""
2065
2066 #. type: textblock
2067 #: ../cat/virt-filesystems.pod:253
2068 msgid "Display LVM physical volumes."
2069 msgstr ""
2070
2071 #. type: =item
2072 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2073 #, fuzzy
2074 #| msgid "B<--live>"
2075 msgid "B<--uuid>"
2076 msgstr "B<--live>"
2077
2078 #. type: =item
2079 #: ../cat/virt-filesystems.pod:257
2080 #, fuzzy
2081 #| msgid "B<--csh>"
2082 msgid "B<--uuids>"
2083 msgstr "B<--csh>"
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:259
2087 msgid "In I<--long> mode, display UUIDs as well."
2088 msgstr ""
2089
2090 #. type: =item
2091 #: ../cat/virt-filesystems.pod:273
2092 #, fuzzy
2093 #| msgid "B<--csh>"
2094 msgid "B<--vgs>"
2095 msgstr "B<--csh>"
2096
2097 #. type: =item
2098 #: ../cat/virt-filesystems.pod:275
2099 #, fuzzy
2100 #| msgid "B<--verbose>"
2101 msgid "B<--volgroups>"
2102 msgstr "B<--verbose>"
2103
2104 #. type: =item
2105 #: ../cat/virt-filesystems.pod:277
2106 #, fuzzy
2107 #| msgid "B<--verbose>"
2108 msgid "B<--volume-groups>"
2109 msgstr "B<--verbose>"
2110
2111 #. type: textblock
2112 #: ../cat/virt-filesystems.pod:279
2113 msgid "Display LVM volume groups."
2114 msgstr ""
2115
2116 #. type: =head1
2117 #: ../cat/virt-filesystems.pod:287
2118 msgid "COLUMNS"
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-filesystems.pod:289
2123 msgid ""
2124 "Note that columns in the output are subject to reordering and change in "
2125 "future versions of this tool."
2126 msgstr ""
2127
2128 #. type: =item
2129 #: ../cat/virt-filesystems.pod:294
2130 msgid "B<Name>"
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../cat/virt-filesystems.pod:296
2135 msgid "The filesystem, partition, block device or LVM name."
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../cat/virt-filesystems.pod:298
2140 msgid ""
2141 "For device and partition names these are displayed as canonical libguestfs "
2142 "names, so that for example C</dev/sda2> is the second partition on the first "
2143 "device."
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../cat/virt-filesystems.pod:302
2148 msgid ""
2149 "If the I<--long> option is B<not> specified, then only the name column is "
2150 "shown in the output."
2151 msgstr ""
2152
2153 #. type: =item
2154 #: ../cat/virt-filesystems.pod:305
2155 #, fuzzy
2156 #| msgid "B<-N type>"
2157 msgid "B<Type>"
2158 msgstr "B<-N тип>"
2159
2160 #. type: textblock
2161 #: ../cat/virt-filesystems.pod:307
2162 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2163 msgstr ""
2164
2165 #. type: =item
2166 #: ../cat/virt-filesystems.pod:309
2167 msgid "B<VFS>"
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../cat/virt-filesystems.pod:311
2172 msgid ""
2173 "If there is a filesystem, then this column displays the filesystem type if "
2174 "one could be detected, eg. C<ext4>."
2175 msgstr ""
2176
2177 #. type: =item
2178 #: ../cat/virt-filesystems.pod:314
2179 msgid "B<Label>"
2180 msgstr ""
2181
2182 #. type: textblock
2183 #: ../cat/virt-filesystems.pod:316
2184 msgid ""
2185 "If the object has a label (used for identifying and mounting filesystems) "
2186 "then this column contains the label."
2187 msgstr ""
2188
2189 #. type: =item
2190 #: ../cat/virt-filesystems.pod:319
2191 #, fuzzy
2192 #| msgid "B<part_size>"
2193 msgid "B<Size>"
2194 msgstr "B<part_size>"
2195
2196 #. type: textblock
2197 #: ../cat/virt-filesystems.pod:321
2198 msgid ""
2199 "The size of the object in bytes.  If the I<--human> option is used then the "
2200 "size is displayed in a human-readable form."
2201 msgstr ""
2202
2203 #. type: =item
2204 #: ../cat/virt-filesystems.pod:324
2205 msgid "B<Parent>"
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-filesystems.pod:326
2210 msgid ""
2211 "The parent column records the parent relationship between objects.  For "
2212 "example, if the object is a partition, then this column contains the name of "
2213 "the containing device.  If the object is a logical volume, then this column "
2214 "is the name of the volume group."
2215 msgstr ""
2216
2217 #. type: =item
2218 #: ../cat/virt-filesystems.pod:331
2219 msgid "B<UUID>"
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-filesystems.pod:333
2224 msgid ""
2225 "If the object has a UUID (used for identifying and mounting filesystems and "
2226 "block devices) then this column contains the UUID as a string."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-filesystems.pod:337
2231 msgid "The UUID is only displayed if the I<--uuid> option is given."
2232 msgstr ""
2233
2234 #. type: =head1
2235 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2236 #: ../df/virt-df.pod:191
2237 msgid "NOTE ABOUT CSV FORMAT"
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2242 #: ../df/virt-df.pod:193
2243 msgid ""
2244 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2245 "should be easy to parse, but it is definitely not easy to parse."
2246 msgstr ""
2247
2248 #. type: textblock
2249 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2250 #: ../df/virt-df.pod:196
2251 msgid ""
2252 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2253 "reliably.  This example has two columns:"
2254 msgstr ""
2255
2256 #. type: verbatim
2257 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2258 #: ../df/virt-df.pod:199
2259 #, no-wrap
2260 msgid ""
2261 " \"foo,bar\",baz\n"
2262 "\n"
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2267 #: ../df/virt-df.pod:201
2268 msgid ""
2269 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2270 "reliably.  This example has one row:"
2271 msgstr ""
2272
2273 #. type: verbatim
2274 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2275 #: ../df/virt-df.pod:204
2276 #, no-wrap
2277 msgid ""
2278 " \"foo\n"
2279 " bar\",baz\n"
2280 "\n"
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2285 #: ../df/virt-df.pod:207
2286 msgid ""
2287 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2288 "packaged in major Linux distributions)."
2289 msgstr ""
2290
2291 #. type: textblock
2292 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2293 #: ../df/virt-df.pod:210
2294 msgid ""
2295 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2296 "or Python's built-in csv library)."
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2301 #: ../df/virt-df.pod:213
2302 msgid "Most spreadsheets and databases can import CSV directly."
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../cat/virt-filesystems.pod:379
2307 #, fuzzy
2308 #| msgid ""
2309 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
2310 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
2311 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2312 msgid ""
2313 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2314 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2315 "libguestfs.org/>."
2316 msgstr ""
2317 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
2318 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
2319 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2320
2321 #. type: textblock
2322 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2323 #: ../tools/virt-win-reg.pl:778
2324 msgid "Copyright (C) 2010 Red Hat Inc."
2325 msgstr ""
2326
2327 #. type: textblock
2328 #: ../cat/virt-ls.pod:5
2329 msgid "virt-ls - List files in a virtual machine"
2330 msgstr ""
2331
2332 #. type: verbatim
2333 #: ../cat/virt-ls.pod:9
2334 #, no-wrap
2335 msgid ""
2336 " virt-ls [--options] -d domname directory [directory ...]\n"
2337 "\n"
2338 msgstr ""
2339
2340 #. type: verbatim
2341 #: ../cat/virt-ls.pod:11
2342 #, fuzzy, no-wrap
2343 #| msgid ""
2344 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2345 #| "\n"
2346 msgid ""
2347 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2348 "\n"
2349 msgstr ""
2350 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2351 "\n"
2352
2353 #. type: textblock
2354 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2355 msgid "Old style:"
2356 msgstr ""
2357
2358 #. type: verbatim
2359 #: ../cat/virt-ls.pod:15
2360 #, fuzzy, no-wrap
2361 #| msgid ""
2362 #| " virt-list-partitions [--options] domname\n"
2363 #| "\n"
2364 msgid ""
2365 " virt-ls [--options] domname directory\n"
2366 "\n"
2367 msgstr ""
2368 " virt-list-partitions [--параметри] назва_домену\n"
2369 "\n"
2370
2371 #. type: verbatim
2372 #: ../cat/virt-ls.pod:17
2373 #, fuzzy, no-wrap
2374 #| msgid ""
2375 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2376 #| "\n"
2377 msgid ""
2378 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2379 "\n"
2380 msgstr ""
2381 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2382 "\n"
2383
2384 #. type: textblock
2385 #: ../cat/virt-ls.pod:21
2386 msgid ""
2387 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2388 "more from a virtual machine or disk image."
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../cat/virt-ls.pod:24
2393 msgid ""
2394 "Multiple directory names can be given, in which case the output from each is "
2395 "concatenated."
2396 msgstr ""
2397
2398 #. type: textblock
2399 #: ../cat/virt-ls.pod:27
2400 msgid ""
2401 "To list directories from a libvirt guest use the I<-d> option to specify the "
2402 "name of the guest.  For a disk image, use the I<-a> option."
2403 msgstr ""
2404
2405 #. type: textblock
2406 #: ../cat/virt-ls.pod:31
2407 msgid ""
2408 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2409 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2410 "(3)> API."
2411 msgstr ""
2412
2413 #. type: textblock
2414 #: ../cat/virt-ls.pod:37
2415 msgid "Get a list of all files and directories in a virtual machine:"
2416 msgstr ""
2417
2418 #. type: verbatim
2419 #: ../cat/virt-ls.pod:39
2420 #, fuzzy, no-wrap
2421 #| msgid ""
2422 #| " guestfish --ro -d myguest -i\n"
2423 #| "\n"
2424 msgid ""
2425 " virt-ls -R -d guest /\n"
2426 "\n"
2427 msgstr ""
2428 " guestfish --ro -d myguest -i\n"
2429 "\n"
2430
2431 #. type: textblock
2432 #: ../cat/virt-ls.pod:41
2433 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2434 msgstr ""
2435
2436 #. type: verbatim
2437 #: ../cat/virt-ls.pod:43
2438 #, no-wrap
2439 msgid ""
2440 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2441 "\n"
2442 msgstr ""
2443
2444 #. type: textblock
2445 #: ../cat/virt-ls.pod:45
2446 msgid "List all public-writable directories in a Linux virtual machine:"
2447 msgstr ""
2448
2449 #. type: verbatim
2450 #: ../cat/virt-ls.pod:47
2451 #, no-wrap
2452 msgid ""
2453 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2454 "\n"
2455 msgstr ""
2456
2457 #. type: textblock
2458 #: ../cat/virt-ls.pod:49
2459 msgid "List all Unix domain sockets in a Linux virtual machine:"
2460 msgstr ""
2461
2462 #. type: verbatim
2463 #: ../cat/virt-ls.pod:51
2464 #, no-wrap
2465 msgid ""
2466 " virt-ls -lR -d guest / | grep '^s'\n"
2467 "\n"
2468 msgstr ""
2469
2470 #. type: textblock
2471 #: ../cat/virt-ls.pod:53
2472 msgid "List all regular files with filenames ending in '.png':"
2473 msgstr ""
2474
2475 #. type: verbatim
2476 #: ../cat/virt-ls.pod:55
2477 #, no-wrap
2478 msgid ""
2479 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2480 "\n"
2481 msgstr ""
2482
2483 #. type: textblock
2484 #: ../cat/virt-ls.pod:57
2485 msgid "To display files larger than 10MB in home directories:"
2486 msgstr ""
2487
2488 #. type: verbatim
2489 #: ../cat/virt-ls.pod:59
2490 #, no-wrap
2491 msgid ""
2492 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2493 "\n"
2494 msgstr ""
2495
2496 #. type: textblock
2497 #: ../cat/virt-ls.pod:61
2498 msgid "Find everything modified in the last 7 days:"
2499 msgstr ""
2500
2501 #. type: verbatim
2502 #: ../cat/virt-ls.pod:63
2503 #, no-wrap
2504 msgid ""
2505 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2506 "\n"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:65
2511 msgid "Find regular files modified in the last 24 hours:"
2512 msgstr ""
2513
2514 #. type: verbatim
2515 #: ../cat/virt-ls.pod:67
2516 #, no-wrap
2517 msgid ""
2518 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2519 "\n"
2520 msgstr ""
2521
2522 #. type: =head2
2523 #: ../cat/virt-ls.pod:69
2524 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../cat/virt-ls.pod:71
2529 msgid ""
2530 "Find the differences between files in a guest and an earlier snapshot of the "
2531 "same guest."
2532 msgstr ""
2533
2534 #. type: verbatim
2535 #: ../cat/virt-ls.pod:74
2536 #, no-wrap
2537 msgid ""
2538 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2539 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2540 " diff -u old new | less\n"
2541 "\n"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../cat/virt-ls.pod:78
2546 msgid ""
2547 "The commands above won't find files where the content has changed but the "
2548 "metadata (eg. file size and modification date) is the same.  To do that, you "
2549 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2550 "checksum> can be quite slow since it has to read and compute a checksum of "
2551 "every regular file in the virtual machine."
2552 msgstr ""
2553
2554 #. type: =head1
2555 #: ../cat/virt-ls.pod:84
2556 msgid "OUTPUT MODES"
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:86
2561 msgid ""
2562 "C<virt-ls> has four output modes, controlled by different combinations of "
2563 "the I<-l> and I<-R> options."
2564 msgstr ""
2565
2566 #. type: =head2
2567 #: ../cat/virt-ls.pod:89
2568 msgid "SIMPLE LISTING"
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../cat/virt-ls.pod:91
2573 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2574 msgstr ""
2575
2576 #. type: verbatim
2577 #: ../cat/virt-ls.pod:93
2578 #, no-wrap
2579 msgid ""
2580 " $ virt-ls -d guest /\n"
2581 " bin\n"
2582 " boot\n"
2583 " [etc.]\n"
2584 "\n"
2585 msgstr ""
2586
2587 #. type: =head2
2588 #: ../cat/virt-ls.pod:98
2589 #, fuzzy
2590 #| msgid "MOUNTING"
2591 msgid "LONG LISTING"
2592 msgstr "МОНТУВАННЯ"
2593
2594 #. type: textblock
2595 #: ../cat/virt-ls.pod:100
2596 msgid ""
2597 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2598 "(more specifically, like the C<guestfs_ll> function)."
2599 msgstr ""
2600
2601 #. type: verbatim
2602 #: ../cat/virt-ls.pod:103
2603 #, no-wrap
2604 msgid ""
2605 " $ virt-ls -l -d guest /\n"
2606 " total 204\n"
2607 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2608 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2609 " [etc.]\n"
2610 "\n"
2611 msgstr ""
2612
2613 #. type: textblock
2614 #: ../cat/virt-ls.pod:109
2615 msgid ""
2616 "Note that while this is useful for displaying a directory, do not try "
2617 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2618 "instead."
2619 msgstr ""
2620
2621 #. type: =head2
2622 #: ../cat/virt-ls.pod:113
2623 msgid "RECURSIVE LISTING"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:115
2628 msgid ""
2629 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2630 "and directories recursively:"
2631 msgstr ""
2632
2633 #. type: verbatim
2634 #: ../cat/virt-ls.pod:118
2635 #, no-wrap
2636 msgid ""
2637 " $ virt-ls -R -d guest /tmp\n"
2638 " foo\n"
2639 " foo/bar\n"
2640 " [etc.]\n"
2641 "\n"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../cat/virt-ls.pod:123
2646 msgid ""
2647 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2648 "converts C<\\0> characters to C<\\n>."
2649 msgstr ""
2650
2651 #. type: =head2
2652 #: ../cat/virt-ls.pod:126
2653 msgid "RECURSIVE LONG LISTING"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../cat/virt-ls.pod:128
2658 msgid ""
2659 "Using I<-lR> options together changes the output to display directories "
2660 "recursively, with file stats, and optionally other features such as "
2661 "checksums and extended attributes."
2662 msgstr ""
2663
2664 #. type: textblock
2665 #: ../cat/virt-ls.pod:132
2666 msgid ""
2667 "Most of the interesting features of C<virt-ls> are only available when using "
2668 "I<-lR> mode."
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../cat/virt-ls.pod:135
2673 msgid ""
2674 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2675 "you cannot use the output in another program (because filenames can contain "
2676 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2677 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2678 "on you by creating filenames with embedded newline characters.  To B<safely> "
2679 "parse the output in another program, use the I<--csv> (Comma-Separated "
2680 "Values) option."
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:143
2685 msgid ""
2686 "Note that this output format is completely unrelated to the C<ls -lR> "
2687 "command."
2688 msgstr ""
2689
2690 #. type: verbatim
2691 #: ../cat/virt-ls.pod:146
2692 #, no-wrap
2693 msgid ""
2694 " $ virt-ls -lR -d guest /bin\n"
2695 " d 0555       4096 /bin\n"
2696 " - 0755        123 /bin/alsaunmute\n"
2697 " - 0755      28328 /bin/arch\n"
2698 " l 0777          4 /bin/awk -> gawk\n"
2699 " - 0755      27216 /bin/basename\n"
2700 " - 0755     943360 /bin/bash\n"
2701 " [etc.]\n"
2702 "\n"
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:155
2707 msgid "These basic fields are always shown:"
2708 msgstr ""
2709
2710 #. type: =item
2711 #: ../cat/virt-ls.pod:159
2712 #, fuzzy
2713 #| msgid "vfs-type"
2714 msgid "type"
2715 msgstr "vfs-type"
2716
2717 #. type: textblock
2718 #: ../cat/virt-ls.pod:161
2719 msgid ""
2720 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2721 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2722 "link), C<s> (socket) or C<u> (unknown)."
2723 msgstr ""
2724
2725 #. type: =item
2726 #: ../cat/virt-ls.pod:171
2727 #, fuzzy
2728 #| msgid "version"
2729 msgid "permissions"
2730 msgstr "version"
2731
2732 #. type: textblock
2733 #: ../cat/virt-ls.pod:173
2734 msgid "The Unix permissions, displayed as a 4 digit octal number."
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../cat/virt-ls.pod:175
2739 #, fuzzy
2740 #| msgid "filesize"
2741 msgid "size"
2742 msgstr "filesize"
2743
2744 #. type: textblock
2745 #: ../cat/virt-ls.pod:177
2746 msgid ""
2747 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2748 "readable> option is given, in which case this is shown as a human-readable "
2749 "number."
2750 msgstr ""
2751
2752 #. type: =head2
2753 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4258
2754 msgid "path"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../cat/virt-ls.pod:183
2759 msgid "The full path of the file or directory."
2760 msgstr ""
2761
2762 #. type: =item
2763 #: ../cat/virt-ls.pod:185
2764 #, fuzzy
2765 #| msgid "readlink"
2766 msgid "link"
2767 msgstr "readlink"
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:187
2771 msgid "For symbolic links only, the link target."
2772 msgstr ""
2773
2774 #. type: textblock
2775 #: ../cat/virt-ls.pod:191
2776 msgid ""
2777 "In I<-lR> mode, additional command line options enable the display of more "
2778 "fields."
2779 msgstr ""
2780
2781 #. type: textblock
2782 #: ../cat/virt-ls.pod:194
2783 msgid ""
2784 "With the I<--uids> flag, these additional fields are displayed before the "
2785 "path:"
2786 msgstr ""
2787
2788 #. type: =item
2789 #: ../cat/virt-ls.pod:199
2790 #, fuzzy
2791 #| msgid "lvuuid"
2792 msgid "uid"
2793 msgstr "lvuuid"
2794
2795 #. type: =item
2796 #: ../cat/virt-ls.pod:201
2797 #, fuzzy
2798 #| msgid "vguuid"
2799 msgid "gid"
2800 msgstr "vguuid"
2801
2802 #. type: textblock
2803 #: ../cat/virt-ls.pod:203
2804 msgid ""
2805 "The UID and GID of the owner of the file (displayed numerically).  Note "
2806 "these only make sense in the context of a Unix-like guest."
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../cat/virt-ls.pod:208
2811 msgid "With the I<--times> flag, these additional fields are displayed:"
2812 msgstr ""
2813
2814 #. type: =item
2815 #: ../cat/virt-ls.pod:212
2816 #, fuzzy
2817 #| msgid "time"
2818 msgid "atime"
2819 msgstr "time"
2820
2821 #. type: textblock
2822 #: ../cat/virt-ls.pod:214
2823 msgid "The time of last access."
2824 msgstr ""
2825
2826 #. type: =item
2827 #: ../cat/virt-ls.pod:216
2828 #, fuzzy
2829 #| msgid "time"
2830 msgid "mtime"
2831 msgstr "time"
2832
2833 #. type: textblock
2834 #: ../cat/virt-ls.pod:218
2835 msgid "The time of last modification."
2836 msgstr ""
2837
2838 #. type: =item
2839 #: ../cat/virt-ls.pod:220
2840 #, fuzzy
2841 #| msgid "time"
2842 msgid "ctime"
2843 msgstr "time"
2844
2845 #. type: textblock
2846 #: ../cat/virt-ls.pod:222
2847 msgid "The time of last status change."
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../cat/virt-ls.pod:226
2852 msgid ""
2853 "The time fields are displayed as string dates and times, unless one of the "
2854 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../cat/virt-ls.pod:229
2859 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2860 msgstr ""
2861
2862 #. type: =item
2863 #: ../cat/virt-ls.pod:233
2864 #, fuzzy
2865 #| msgid "zero-device"
2866 msgid "device"
2867 msgstr "zero-device"
2868
2869 #. type: textblock
2870 #: ../cat/virt-ls.pod:235
2871 msgid ""
2872 "The device containing the file (displayed as major:minor).  This may not "
2873 "match devices as known to the guest."
2874 msgstr ""
2875
2876 #. type: =item
2877 #: ../cat/virt-ls.pod:238
2878 msgid "inode"
2879 msgstr ""
2880
2881 #. type: textblock
2882 #: ../cat/virt-ls.pod:240
2883 msgid "The inode number."
2884 msgstr ""
2885
2886 #. type: =item
2887 #: ../cat/virt-ls.pod:242
2888 #, fuzzy
2889 #| msgid "readlink"
2890 msgid "nlink"
2891 msgstr "readlink"
2892
2893 #. type: textblock
2894 #: ../cat/virt-ls.pod:244
2895 msgid "The number of hard links."
2896 msgstr ""
2897
2898 #. type: =item
2899 #: ../cat/virt-ls.pod:246
2900 msgid "rdev"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../cat/virt-ls.pod:248
2905 msgid ""
2906 "For block and char special files, the device (displayed as major:minor)."
2907 msgstr ""
2908
2909 #. type: =item
2910 #: ../cat/virt-ls.pod:251
2911 #, fuzzy
2912 #| msgid "C<blocksize>"
2913 msgid "blocks"
2914 msgstr "C<blocksize>"
2915
2916 #. type: textblock
2917 #: ../cat/virt-ls.pod:253
2918 msgid "The number of 512 byte blocks allocated to the file."
2919 msgstr ""
2920
2921 #. type: textblock
2922 #: ../cat/virt-ls.pod:257
2923 msgid ""
2924 "With the I<--checksum> flag, the checksum of the file contents is shown "
2925 "(only for regular files).  Computing file checksums can take a considerable "
2926 "amount of time."
2927 msgstr ""
2928
2929 #. type: =item
2930 #: ../cat/virt-ls.pod:280
2931 #, fuzzy
2932 #| msgid "checksum"
2933 msgid "B<--checksum>"
2934 msgstr "checksum"
2935
2936 #. type: =item
2937 #: ../cat/virt-ls.pod:282
2938 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../cat/virt-ls.pod:284
2943 msgid ""
2944 "Display checksum over file contents for regular files.  With no argument, "
2945 "this defaults to using I<md5>.  Using an argument, you can select the "
2946 "checksum type to use."
2947 msgstr ""
2948
2949 #. type: textblock
2950 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2951 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2952 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2953 msgid ""
2954 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2955 "LISTING> above."
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../cat/virt-ls.pod:316
2960 msgid ""
2961 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2962 "so you cannot see what you are typing.  If you are not worried about Tempest "
2963 "attacks and there is no one else in the room you can specify this flag to "
2964 "see what you are typing."
2965 msgstr ""
2966
2967 #. type: =item
2968 #: ../cat/virt-ls.pod:321
2969 #, fuzzy
2970 #| msgid "B<--no-dest-paths>"
2971 msgid "B<--extra-stats>"
2972 msgstr "B<--no-dest-paths>"
2973
2974 #. type: textblock
2975 #: ../cat/virt-ls.pod:323
2976 msgid "Display extra stats."
2977 msgstr ""
2978
2979 #. type: verbatim
2980 #: ../cat/virt-ls.pod:339
2981 #, fuzzy, no-wrap
2982 #| msgid ""
2983 #| " guestfish --format=raw -a disk.img\n"
2984 #| "\n"
2985 msgid ""
2986 " virt-ls --format=raw -a disk.img /dir\n"
2987 "\n"
2988 msgstr ""
2989 " guestfish --format=raw -a disk.img\n"
2990 "\n"
2991
2992 #. type: verbatim
2993 #: ../cat/virt-ls.pod:343
2994 #, fuzzy, no-wrap
2995 #| msgid ""
2996 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2997 #| "\n"
2998 msgid ""
2999 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
3000 "\n"
3001 msgstr ""
3002 " guestfish --format=raw -a disk.img --format -a another.img\n"
3003 "\n"
3004
3005 #. type: textblock
3006 #: ../cat/virt-ls.pod:356
3007 msgid "Display file sizes in human-readable format."
3008 msgstr ""
3009
3010 #. type: =item
3011 #: ../cat/virt-ls.pod:370
3012 msgid "B<-R>"
3013 msgstr ""
3014
3015 #. type: =item
3016 #: ../cat/virt-ls.pod:372
3017 #, fuzzy
3018 #| msgid "B<--live>"
3019 msgid "B<--recursive>"
3020 msgstr "B<--live>"
3021
3022 #. type: textblock
3023 #: ../cat/virt-ls.pod:374
3024 msgid ""
3025 "Select the mode.  With neither of these options, C<virt-ls> produces a "
3026 "simple, flat list of the files in the named directory.  See L</SIMPLE "
3027 "LISTING>."
3028 msgstr ""
3029
3030 #. type: textblock
3031 #: ../cat/virt-ls.pod:378
3032 msgid ""
3033 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
3034 "LONG LISTING>."
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../cat/virt-ls.pod:381
3039 msgid ""
3040 "C<virt-ls -R> produces a recursive list of files starting at the named "
3041 "directory.  See L</RECURSIVE LISTING>."
3042 msgstr ""
3043
3044 #. type: textblock
3045 #: ../cat/virt-ls.pod:384
3046 msgid ""
3047 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
3048 "parsed.  See L</RECURSIVE LONG LISTING>."
3049 msgstr ""
3050
3051 #. type: =item
3052 #: ../cat/virt-ls.pod:387
3053 #, fuzzy
3054 #| msgid "B<--live>"
3055 msgid "B<--times>"
3056 msgstr "B<--live>"
3057
3058 #. type: textblock
3059 #: ../cat/virt-ls.pod:389
3060 msgid "Display time fields."
3061 msgstr ""
3062
3063 #. type: =item
3064 #: ../cat/virt-ls.pod:394
3065 #, fuzzy
3066 #| msgid "B<--echo-keys>"
3067 msgid "B<--time-days>"
3068 msgstr "B<--echo-keys>"
3069
3070 #. type: textblock
3071 #: ../cat/virt-ls.pod:396
3072 msgid "Display time fields as days before now (negative if in the future)."
3073 msgstr ""
3074
3075 #. type: textblock
3076 #: ../cat/virt-ls.pod:398
3077 msgid ""
3078 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3079 "of the file is between 0 and 86399 seconds."
3080 msgstr ""
3081
3082 #. type: =item
3083 #: ../cat/virt-ls.pod:404
3084 #, fuzzy
3085 #| msgid "B<--live>"
3086 msgid "B<--time-relative>"
3087 msgstr "B<--live>"
3088
3089 #. type: textblock
3090 #: ../cat/virt-ls.pod:406
3091 msgid "Display time fields as seconds before now (negative if in the future)."
3092 msgstr ""
3093
3094 #. type: =item
3095 #: ../cat/virt-ls.pod:411
3096 #, fuzzy
3097 #| msgid "I<--timeout N>"
3098 msgid "B<--time-t>"
3099 msgstr "I<--timeout N>"
3100
3101 #. type: textblock
3102 #: ../cat/virt-ls.pod:413
3103 msgid "Display time fields as seconds since the Unix epoch."
3104 msgstr ""
3105
3106 #. type: =item
3107 #: ../cat/virt-ls.pod:418
3108 #, fuzzy
3109 #| msgid "B<--csh>"
3110 msgid "B<--uids>"
3111 msgstr "B<--csh>"
3112
3113 #. type: textblock
3114 #: ../cat/virt-ls.pod:420
3115 msgid "Display UID and GID fields."
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../cat/virt-ls.pod:445
3120 msgid "Previous versions of virt-ls allowed you to write either:"
3121 msgstr ""
3122
3123 #. type: verbatim
3124 #: ../cat/virt-ls.pod:447
3125 #, fuzzy, no-wrap
3126 #| msgid ""
3127 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3128 #| "\n"
3129 msgid ""
3130 " virt-ls disk.img [disk.img ...] /dir\n"
3131 "\n"
3132 msgstr ""
3133 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3134 "\n"
3135
3136 #. type: verbatim
3137 #: ../cat/virt-ls.pod:451
3138 #, fuzzy, no-wrap
3139 #| msgid ""
3140 #| " inspect-get-hostname root\n"
3141 #| "\n"
3142 msgid ""
3143 " virt-ls guestname /dir\n"
3144 "\n"
3145 msgstr ""
3146 " inspect-get-hostname корінь\n"
3147 "\n"
3148
3149 #. type: textblock
3150 #: ../cat/virt-ls.pod:497
3151 #, fuzzy
3152 #| msgid ""
3153 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3154 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3155 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3156 msgid ""
3157 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3158 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3159 "L<http://libguestfs.org/>."
3160 msgstr ""
3161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3162 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3163 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3164
3165 #. type: textblock
3166 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3167 #: ../rescue/virt-rescue.pod:302
3168 #, fuzzy
3169 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
3170 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3171 msgstr "© Red Hat Inc., 2009–2010"
3172
3173 #. type: textblock
3174 #: ../clone/virt-sysprep.pod:5
3175 msgid ""
3176 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3177 msgstr ""
3178
3179 #. type: verbatim
3180 #: ../clone/virt-sysprep.pod:9
3181 #, fuzzy, no-wrap
3182 #| msgid ""
3183 #| " virt-list-partitions [--options] domname\n"
3184 #| "\n"
3185 msgid ""
3186 " virt-sysprep [--options] -d domname\n"
3187 "\n"
3188 msgstr ""
3189 " virt-list-partitions [--параметри] назва_домену\n"
3190 "\n"
3191
3192 #. type: verbatim
3193 #: ../clone/virt-sysprep.pod:11
3194 #, fuzzy, no-wrap
3195 #| msgid ""
3196 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3197 #| "\n"
3198 msgid ""
3199 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3200 "\n"
3201 msgstr ""
3202 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3203 "\n"
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:15
3207 msgid ""
3208 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3209 "can be made from it.  Steps in this process include removing SSH host keys, "
3210 "removing persistent network MAC configuration, and removing user accounts.  "
3211 "Each step can be enabled or disabled as required."
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:21
3216 msgid ""
3217 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3218 "customization by the system administrator."
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../clone/virt-sysprep.pod:24
3223 msgid ""
3224 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3225 "be shut down.  If you want to preserve the existing contents of the guest, "
3226 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../clone/virt-sysprep.pod:29
3231 msgid ""
3232 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3233 "recommend that you don't.  The time you might want to run it as root is when "
3234 "you need root in order to access the disk image, but even in this case it "
3235 "would be better to change the permissions on the disk image to be writable "
3236 "as the non-root user running virt-sysprep."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../clone/virt-sysprep.pod:35
3241 msgid ""
3242 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3243 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3244 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3245 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3246 "Windows sysprepping in a future version, and we already have code to do it."
3247 msgstr ""
3248
3249 #. type: =item
3250 #: ../clone/virt-sysprep.pod:76
3251 #, fuzzy
3252 #| msgid "B<--help>"
3253 msgid "B<--enable=...>"
3254 msgstr "B<--help>"
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:78
3258 msgid ""
3259 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3260 "operations, for example:"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../clone/virt-sysprep.pod:81
3265 #, no-wrap
3266 msgid ""
3267 " --enable=ssh-hostkeys,udev-persistent-net\n"
3268 "\n"
3269 msgstr ""
3270
3271 #. type: textblock
3272 #: ../clone/virt-sysprep.pod:83
3273 msgid ""
3274 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../clone/virt-sysprep.pod:85
3279 msgid ""
3280 "If the I<--enable> option is not given, then we default to trying all "
3281 "possible sysprep operations.  But some sysprep operations are skipped for "
3282 "some guest types."
3283 msgstr ""
3284
3285 #. type: textblock
3286 #: ../clone/virt-sysprep.pod:89
3287 msgid ""
3288 "Use I<--list-operations> to list operations supported by a particular "
3289 "version of virt-sysprep."
3290 msgstr ""
3291
3292 #. type: textblock
3293 #: ../clone/virt-sysprep.pod:92
3294 msgid ""
3295 "See L</OPERATIONS> below for a list and an explanation of each operation."
3296 msgstr ""
3297
3298 #. type: verbatim
3299 #: ../clone/virt-sysprep.pod:106
3300 #, fuzzy, no-wrap
3301 #| msgid ""
3302 #| " guestfish --format=raw -a disk.img\n"
3303 #| "\n"
3304 msgid ""
3305 " virt-sysprep --format=raw -a disk.img\n"
3306 "\n"
3307 msgstr ""
3308 " guestfish --format=raw -a disk.img\n"
3309 "\n"
3310
3311 #. type: verbatim
3312 #: ../clone/virt-sysprep.pod:110
3313 #, fuzzy, no-wrap
3314 #| msgid ""
3315 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3316 #| "\n"
3317 msgid ""
3318 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3319 "\n"
3320 msgstr ""
3321 " guestfish --format=raw -a disk.img --format -a another.img\n"
3322 "\n"
3323
3324 #. type: =item
3325 #: ../clone/virt-sysprep.pod:119
3326 msgid "B<--hostname> newhostname"
3327 msgstr ""
3328
3329 #. type: textblock
3330 #: ../clone/virt-sysprep.pod:121
3331 msgid ""
3332 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3333 "defaults to C<localhost.localdomain>."
3334 msgstr ""
3335
3336 #. type: =item
3337 #: ../clone/virt-sysprep.pod:124
3338 #, fuzzy
3339 #| msgid "B<--listen>"
3340 msgid "B<--list-operations>"
3341 msgstr "B<--listen>"
3342
3343 #. type: textblock
3344 #: ../clone/virt-sysprep.pod:126
3345 msgid "List the operations supported by the virt-sysprep program."
3346 msgstr ""
3347
3348 #. type: =item
3349 #: ../clone/virt-sysprep.pod:128
3350 #, fuzzy
3351 #| msgid "B<--selinux>"
3352 msgid "B<--selinux-relabel>"
3353 msgstr "B<--selinux>"
3354
3355 #. type: =item
3356 #: ../clone/virt-sysprep.pod:130
3357 #, fuzzy
3358 #| msgid "B<--selinux>"
3359 msgid "B<--no-selinux-relabel>"
3360 msgstr "B<--selinux>"
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:132
3364 msgid ""
3365 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3366 "I<--no-selinux-relabel> disables relabelling."
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../clone/virt-sysprep.pod:135
3371 msgid ""
3372 "The default is to try to detect if SELinux relabelling is required.  See L</"
3373 "SELINUX RELABELLING> below for more details."
3374 msgstr ""
3375
3376 #. type: =head1
3377 #: ../clone/virt-sysprep.pod:156
3378 #, fuzzy
3379 #| msgid "OPTIONS"
3380 msgid "OPERATIONS"
3381 msgstr "ПАРАМЕТРИ"
3382
3383 #. type: textblock
3384 #: ../clone/virt-sysprep.pod:158
3385 msgid ""
3386 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3387 "enabled>, although some are skipped depending on the type of guest."
3388 msgstr ""
3389
3390 #. type: textblock
3391 #: ../clone/virt-sysprep.pod:162
3392 msgid ""
3393 "Operations can be individually enabled using the I<--enable> option.  Use a "
3394 "comma-separated list, for example:"
3395 msgstr ""
3396
3397 #. type: verbatim
3398 #: ../clone/virt-sysprep.pod:165
3399 #, no-wrap
3400 msgid ""
3401 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3402 "\n"
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../clone/virt-sysprep.pod:167
3407 msgid ""
3408 "To list the operations supported by the current version of virt-sysprep, use "
3409 "I<--list-operations>."
3410 msgstr ""
3411
3412 #. type: textblock
3413 #: ../clone/virt-sysprep.pod:170
3414 msgid ""
3415 "Future versions of virt-sysprep may add more operations.  If you are using "
3416 "virt-sysprep and want predictable behaviour, specify only the operations "
3417 "that you want to have enabled."
3418 msgstr ""
3419
3420 #. type: =head2
3421 #: ../clone/virt-sysprep.pod:174
3422 msgid "cron-spool"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../clone/virt-sysprep.pod:176
3427 msgid "Remove user at-jobs and cron-jobs."
3428 msgstr ""
3429
3430 #. type: =head2
3431 #: ../clone/virt-sysprep.pod:178
3432 #, fuzzy
3433 #| msgid "get-state"
3434 msgid "dhcp-client-state"
3435 msgstr "get-state"
3436
3437 #. type: textblock
3438 #: ../clone/virt-sysprep.pod:180
3439 msgid "Remove DHCP client leases."
3440 msgstr ""
3441
3442 #. type: =head2
3443 #: ../clone/virt-sysprep.pod:182
3444 msgid "dhcp-server-state"
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../clone/virt-sysprep.pod:184
3449 msgid "Remove DHCP server leases."
3450 msgstr ""
3451
3452 #. type: =head2
3453 #: ../clone/virt-sysprep.pod:186
3454 msgid "hostname"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../clone/virt-sysprep.pod:188
3459 msgid ""
3460 "Changes the hostname of the guest to the value given in the I<--hostname> "
3461 "parameter."
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../clone/virt-sysprep.pod:191
3466 msgid ""
3467 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3468 "C<localhost.localdomain>."
3469 msgstr ""
3470
3471 #. type: =head2
3472 #: ../clone/virt-sysprep.pod:194
3473 #, fuzzy
3474 #| msgid "file"
3475 msgid "logfiles"
3476 msgstr "file"
3477
3478 #. type: textblock
3479 #: ../clone/virt-sysprep.pod:196
3480 msgid "Remove many log files."
3481 msgstr ""
3482
3483 #. type: =head2
3484 #: ../clone/virt-sysprep.pod:198
3485 msgid "mail-spool"
3486 msgstr ""
3487
3488 #. type: textblock
3489 #: ../clone/virt-sysprep.pod:200
3490 msgid "Remove email from the local mail spool directory."
3491 msgstr ""
3492
3493 #. type: =head2
3494 #: ../clone/virt-sysprep.pod:202
3495 msgid "net-hwaddr"
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../clone/virt-sysprep.pod:204
3500 msgid ""
3501 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3502 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3503 msgstr ""
3504
3505 #. type: =head2
3506 #: ../clone/virt-sysprep.pod:207
3507 msgid "random-seed"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../clone/virt-sysprep.pod:209
3512 msgid ""
3513 "Write some random bytes from the host into the random seed file of the guest."
3514 msgstr ""
3515
3516 #. type: textblock
3517 #: ../clone/virt-sysprep.pod:212
3518 msgid "See C</RANDOM SEED> below."
3519 msgstr ""
3520
3521 #. type: =head2
3522 #: ../clone/virt-sysprep.pod:214
3523 msgid "rhn-systemid"
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../clone/virt-sysprep.pod:216
3528 msgid "Remove the RHN system ID."
3529 msgstr ""
3530
3531 #. type: =head2
3532 #: ../clone/virt-sysprep.pod:218
3533 #, fuzzy
3534 #| msgid "set-e2uuid"
3535 msgid "smolt-uuid"
3536 msgstr "set-e2uuid"
3537
3538 #. type: textblock
3539 #: ../clone/virt-sysprep.pod:220
3540 msgid "Remove the Smolt hardware UUID."
3541 msgstr ""
3542
3543 #. type: =head2
3544 #: ../clone/virt-sysprep.pod:222
3545 msgid "ssh-hostkeys"
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../clone/virt-sysprep.pod:224
3550 msgid "Remove the SSH host keys in the guest."
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../clone/virt-sysprep.pod:226
3555 msgid ""
3556 "The SSH host keys are regenerated (differently) next time the guest is "
3557 "booted."
3558 msgstr ""
3559
3560 #. type: textblock
3561 #: ../clone/virt-sysprep.pod:229
3562 msgid ""
3563 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3564 "stark warning about the host key changing:"
3565 msgstr ""
3566
3567 #. type: verbatim
3568 #: ../clone/virt-sysprep.pod:232
3569 #, no-wrap
3570 msgid ""
3571 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3572 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3573 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3574 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3575 "\n"
3576 msgstr ""
3577
3578 #. type: =head2
3579 #: ../clone/virt-sysprep.pod:237
3580 msgid "udev-persistent-net"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../clone/virt-sysprep.pod:239
3585 msgid ""
3586 "Remove udev persistent net rules which map the guest's existing MAC address "
3587 "to a fixed ethernet device (eg. eth0)."
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:242
3592 msgid ""
3593 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3594 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3595 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3596 "Erasing the udev persistent net rules avoids this."
3597 msgstr ""
3598
3599 #. type: =head2
3600 #: ../clone/virt-sysprep.pod:247
3601 msgid "utmp"
3602 msgstr ""
3603
3604 #. type: textblock
3605 #: ../clone/virt-sysprep.pod:249
3606 msgid "Remove the utmp file."
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../clone/virt-sysprep.pod:251
3611 msgid ""
3612 "This records who is currently logged in on a machine.  In modern Linux "
3613 "distros it is stored in a ramdisk and hence not part of the virtual "
3614 "machine's disk, but it was stored on disk in older distros."
3615 msgstr ""
3616
3617 #. type: =head2
3618 #: ../clone/virt-sysprep.pod:255
3619 #, fuzzy
3620 #| msgid "vfs-uuid"
3621 msgid "yum-uuid"
3622 msgstr "vfs-uuid"
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:257
3626 msgid "Remove the yum UUID."
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../clone/virt-sysprep.pod:259
3631 msgid ""
3632 "Yum creates a fresh UUID the next time it runs when it notices that the "
3633 "original UUID has been erased."
3634 msgstr ""
3635
3636 #. type: =head1
3637 #: ../clone/virt-sysprep.pod:262
3638 msgid "COPYING AND CLONING"
3639 msgstr ""
3640
3641 #. type: textblock
3642 #: ../clone/virt-sysprep.pod:264
3643 msgid ""
3644 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3645 "prepare a template from which guests can be cloned.  There are many "
3646 "different ways to achieve this using the virt tools, and this section is "
3647 "just an introduction."
3648 msgstr ""
3649
3650 #. type: textblock
3651 #: ../clone/virt-sysprep.pod:269
3652 msgid "A virtual machine (when switched off) consists of two parts:"
3653 msgstr ""
3654
3655 #. type: =item
3656 #: ../clone/virt-sysprep.pod:273
3657 msgid "I<configuration>"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../clone/virt-sysprep.pod:275
3662 msgid ""
3663 "The configuration or description of the guest.  eg. The libvirt XML (see "
3664 "C<virsh dumpxml>), the running configuration of the guest, or another "
3665 "external format like OVF."
3666 msgstr ""
3667
3668 #. type: textblock
3669 #: ../clone/virt-sysprep.pod:279
3670 msgid "Some configuration items that might need to be changed:"
3671 msgstr ""
3672
3673 #. type: textblock
3674 #: ../clone/virt-sysprep.pod:285
3675 #, fuzzy
3676 #| msgid "lvrename"
3677 msgid "name"
3678 msgstr "lvrename"
3679
3680 #. type: textblock
3681 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3682 msgid "UUID"
3683 msgstr ""
3684
3685 #. type: textblock
3686 #: ../clone/virt-sysprep.pod:293
3687 #, fuzzy
3688 #| msgid "is-blockdev"
3689 msgid "path to block device(s)"
3690 msgstr "is-blockdev"
3691
3692 #. type: textblock
3693 #: ../clone/virt-sysprep.pod:297
3694 msgid "network card MAC address"
3695 msgstr ""
3696
3697 #. type: =item
3698 #: ../clone/virt-sysprep.pod:301
3699 #, fuzzy
3700 #| msgid "is-blockdev"
3701 msgid "I<block device(s)>"
3702 msgstr "is-blockdev"
3703
3704 #. type: textblock
3705 #: ../clone/virt-sysprep.pod:303
3706 msgid ""
3707 "One or more hard disk images, themselves containing files, directories, "
3708 "applications, kernels, configuration, etc."
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../clone/virt-sysprep.pod:306
3713 msgid "Some things inside the block devices that might need to be changed:"
3714 msgstr ""
3715
3716 #. type: textblock
3717 #: ../clone/virt-sysprep.pod:312
3718 msgid "hostname and other net configuration"
3719 msgstr ""
3720
3721 #. type: textblock
3722 #: ../clone/virt-sysprep.pod:320
3723 msgid "SSH host keys"
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../clone/virt-sysprep.pod:324
3728 msgid "Windows unique security ID (SID)"
3729 msgstr ""
3730
3731 #. type: textblock
3732 #: ../clone/virt-sysprep.pod:328
3733 msgid "Puppet registration"
3734 msgstr ""
3735
3736 #. type: =head2
3737 #: ../clone/virt-sysprep.pod:334
3738 msgid "COPYING THE BLOCK DEVICE"
3739 msgstr ""
3740
3741 #. type: textblock
3742 #: ../clone/virt-sysprep.pod:336
3743 msgid ""
3744 "Starting with an original guest, you probably wish to copy the guest block "
3745 "device and its configuration to make a template.  Then once you are happy "
3746 "with the template, you will want to make many clones from it."
3747 msgstr ""
3748
3749 #. type: verbatim
3750 #: ../clone/virt-sysprep.pod:341
3751 #, no-wrap
3752 msgid ""
3753 "                        virt-sysprep\n"
3754 "                             |\n"
3755 "                             v\n"
3756 " original guest --------> template ---------->\n"
3757 "                                      \\------> cloned\n"
3758 "                                       \\-----> guests\n"
3759 "                                        \\---->\n"
3760 "\n"
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../clone/virt-sysprep.pod:349
3765 msgid ""
3766 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3767 "L<dd(1)>."
3768 msgstr ""
3769
3770 #. type: verbatim
3771 #: ../clone/virt-sysprep.pod:352
3772 #, fuzzy, no-wrap
3773 #| msgid ""
3774 #| " int\n"
3775 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3776 #| "                             const char *device,\n"
3777 #| "                             const char *key,\n"
3778 #| "                             int keyslot,\n"
3779 #| "                             const char *cipher);\n"
3780 #| "\n"
3781 msgid ""
3782 "                   dd                 dd\n"
3783 " original guest --------> template ---------->\n"
3784 "                                      \\------> cloned\n"
3785 "                                       \\-----> guests\n"
3786 "                                        \\---->\n"
3787 "\n"
3788 msgstr ""
3789 " int\n"
3790 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3791 "                             const char *device,\n"
3792 "                             const char *key,\n"
3793 "                             int keyslot,\n"
3794 "                             const char *cipher);\n"
3795 "\n"
3796
3797 #. type: textblock
3798 #: ../clone/virt-sysprep.pod:358
3799 msgid "There are some smarter (and faster) ways too:"
3800 msgstr ""
3801
3802 #. type: verbatim
3803 #: ../clone/virt-sysprep.pod:364
3804 #, fuzzy, no-wrap
3805 #| msgid ""
3806 #| " int\n"
3807 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3808 #| "                             const char *device,\n"
3809 #| "                             const char *key,\n"
3810 #| "                             int keyslot,\n"
3811 #| "                             const char *cipher);\n"
3812 #| "\n"
3813 msgid ""
3814 "                          snapshot\n"
3815 "                template ---------->\n"
3816 "                            \\------> cloned\n"
3817 "                             \\-----> guests\n"
3818 "                              \\---->\n"
3819 "\n"
3820 msgstr ""
3821 " int\n"
3822 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3823 "                             const char *device,\n"
3824 "                             const char *key,\n"
3825 "                             int keyslot,\n"
3826 "                             const char *cipher);\n"
3827 "\n"
3828
3829 #. type: textblock
3830 #: ../clone/virt-sysprep.pod:370
3831 msgid ""
3832 "Use the block device as a backing file and create a snapshot on top for each "
3833 "guest.  The advantage is that you don't need to copy the block device (very "
3834 "fast) and only changes are stored (less storage required)."
3835 msgstr ""
3836
3837 #. type: textblock
3838 #: ../clone/virt-sysprep.pod:375
3839 msgid ""
3840 "Note that writing to the backing file once you have created guests on top of "
3841 "it is not possible: you will corrupt the guests."
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../clone/virt-sysprep.pod:378
3846 msgid ""
3847 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3848 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3849 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3850 "also create cheap snapshots from files or LUNs."
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../clone/virt-sysprep.pod:386
3855 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3856 msgstr ""
3857
3858 #. type: textblock
3859 #: ../clone/virt-sysprep.pod:390
3860 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3861 msgstr ""
3862
3863 #. type: =head2
3864 #: ../clone/virt-sysprep.pod:394
3865 msgid "VIRT-CLONE"
3866 msgstr ""
3867
3868 #. type: textblock
3869 #: ../clone/virt-sysprep.pod:396
3870 msgid ""
3871 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3872 "and/or modify the external libvirt configuration of a guest.  It will reset "
3873 "the name, UUID and MAC address of the guest in the libvirt XML."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../clone/virt-sysprep.pod:401
3878 msgid ""
3879 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3880 "image.  This was the original motivation to write virt-sysprep."
3881 msgstr ""
3882
3883 #. type: =head2
3884 #: ../clone/virt-sysprep.pod:404
3885 msgid "SPARSIFY"
3886 msgstr ""
3887
3888 #. type: verbatim
3889 #: ../clone/virt-sysprep.pod:406
3890 #, no-wrap
3891 msgid ""
3892 "              virt-sparsify\n"
3893 " original guest --------> template\n"
3894 "\n"
3895 msgstr ""
3896
3897 #. type: textblock
3898 #: ../clone/virt-sysprep.pod:409
3899 msgid ""
3900 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3901 "it easier to compress and/or faster to copy."
3902 msgstr ""
3903
3904 #. type: textblock
3905 #: ../clone/virt-sysprep.pod:412
3906 msgid ""
3907 "Notice that since virt-sparsify also copies the image, you can use it to "
3908 "make the initial copy (instead of C<dd>)."
3909 msgstr ""
3910
3911 #. type: =head2
3912 #: ../clone/virt-sysprep.pod:415
3913 msgid "RESIZE"
3914 msgstr ""
3915
3916 #. type: verbatim
3917 #: ../clone/virt-sysprep.pod:417
3918 #, fuzzy, no-wrap
3919 #| msgid ""
3920 #| " int\n"
3921 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3922 #| "                             const char *device,\n"
3923 #| "                             const char *key,\n"
3924 #| "                             int keyslot,\n"
3925 #| "                             const char *cipher);\n"
3926 #| "\n"
3927 msgid ""
3928 "                         virt-resize\n"
3929 "                template ---------->\n"
3930 "                            \\------> cloned\n"
3931 "                             \\-----> guests\n"
3932 "                              \\---->\n"
3933 "\n"
3934 msgstr ""
3935 " int\n"
3936 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3937 "                             const char *device,\n"
3938 "                             const char *key,\n"
3939 "                             int keyslot,\n"
3940 "                             const char *cipher);\n"
3941 "\n"
3942
3943 #. type: textblock
3944 #: ../clone/virt-sysprep.pod:423
3945 msgid ""
3946 "If you want to give people cloned guests, but let them pick the size of the "
3947 "guest themselves (eg. depending on how much they are prepared to pay for "
3948 "disk space), then instead of copying the template, you can run L<virt-resize"
3949 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3950 "guests from a template."
3951 msgstr ""
3952
3953 #. type: =head1
3954 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3955 msgid "SECURITY"
3956 msgstr "БЕЗПЕКА"
3957
3958 #. type: textblock
3959 #: ../clone/virt-sysprep.pod:431
3960 msgid ""
3961 "Although virt-sysprep removes some sensitive information from the guest, it "
3962 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3963 "above, and the implementation of the operations in the shell script.  You "
3964 "should also examine the guest afterwards."
3965 msgstr ""
3966
3967 #. type: textblock
3968 #: ../clone/virt-sysprep.pod:436
3969 msgid ""
3970 "Sensitive files are simply removed.  The data they contained may still exist "
3971 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3972 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3973 "(1)> command to get rid of deleted content in directory entries and inodes."
3974 msgstr ""
3975
3976 #. type: =head2
3977 #: ../clone/virt-sysprep.pod:442
3978 msgid "RANDOM SEED"
3979 msgstr ""
3980
3981 #. type: textblock
3982 #: ../clone/virt-sysprep.pod:444
3983 msgid "I<(This section applies to Linux guests only)>"
3984 msgstr ""
3985
3986 #. type: textblock
3987 #: ../clone/virt-sysprep.pod:446
3988 msgid ""
3989 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3990 "from the host into the guest's random seed file."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../clone/virt-sysprep.pod:449
3995 msgid ""
3996 "If this is just done once and the guest is cloned from the same template, "
3997 "then each guest will start with the same entropy, and things like SSH host "
3998 "keys and TCP sequence numbers may be predictable."
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../clone/virt-sysprep.pod:453
4003 msgid ""
4004 "Therefore you should arrange to add more randomness I<after> cloning from a "
4005 "template too, which can be done by just enabling the C<random-seed> "
4006 "operation:"
4007 msgstr ""
4008
4009 #. type: verbatim
4010 #: ../clone/virt-sysprep.pod:457
4011 #, no-wrap
4012 msgid ""
4013 " cp template.img newguest.img\n"
4014 " virt-sysprep --enable=random-seed -a newguest.img\n"
4015 "\n"
4016 msgstr ""
4017
4018 #. type: =head2
4019 #: ../clone/virt-sysprep.pod:460
4020 msgid "SELINUX RELABELLING"
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../clone/virt-sysprep.pod:462
4025 msgid "I<(This section applies to Linux guests using SELinux only)>"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../clone/virt-sysprep.pod:464
4030 msgid ""
4031 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
4032 "autorelabel> so that these will be correctly labelled by SELinux the next "
4033 "time the guest is booted.  This process interrupts boot and can take some "
4034 "time."
4035 msgstr ""
4036
4037 #. type: textblock
4038 #: ../clone/virt-sysprep.pod:469
4039 msgid ""
4040 "You can force relabelling for all guests by supplying the I<--selinux-"
4041 "relabel> option."
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../clone/virt-sysprep.pod:472
4046 msgid ""
4047 "You can disable relabelling entirely by supplying the I<--no-selinux-"
4048 "relabel> option."
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../clone/virt-sysprep.pod:484
4053 msgid "This program returns 0 on success, or 1 if there was an error."
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../clone/virt-sysprep.pod:488
4058 #, fuzzy
4059 #| msgid ""
4060 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
4061 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
4062 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4063 msgid ""
4064 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
4065 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
4066 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
4067 msgstr ""
4068 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
4069 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
4070 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4071
4072 #. type: textblock
4073 #: ../df/virt-df.pod:5
4074 msgid "virt-df - Display free space on virtual filesystems"
4075 msgstr ""
4076
4077 #. type: verbatim
4078 #: ../df/virt-df.pod:9
4079 #, fuzzy, no-wrap
4080 #| msgid ""
4081 #| " virt-list-partitions [--options] domname\n"
4082 #| "\n"
4083 msgid ""
4084 " virt-df [--options]\n"
4085 "\n"
4086 msgstr ""
4087 " virt-list-partitions [--параметри] назва_домену\n"
4088 "\n"
4089
4090 #. type: verbatim
4091 #: ../df/virt-df.pod:11
4092 #, fuzzy, no-wrap
4093 #| msgid ""
4094 #| " virt-list-partitions [--options] domname\n"
4095 #| "\n"
4096 msgid ""
4097 " virt-df [--options] -d domname\n"
4098 "\n"
4099 msgstr ""
4100 " virt-list-partitions [--параметри] назва_домену\n"
4101 "\n"
4102
4103 #. type: verbatim
4104 #: ../df/virt-df.pod:13
4105 #, fuzzy, no-wrap
4106 #| msgid ""
4107 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4108 #| "\n"
4109 msgid ""
4110 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
4111 "\n"
4112 msgstr ""
4113 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4114 "\n"
4115
4116 #. type: verbatim
4117 #: ../df/virt-df.pod:17
4118 #, fuzzy, no-wrap
4119 #| msgid ""
4120 #| " virt-list-partitions [--options] domname\n"
4121 #| "\n"
4122 msgid ""
4123 " virt-df [--options] domname\n"
4124 "\n"
4125 msgstr ""
4126 " virt-list-partitions [--параметри] назва_домену\n"
4127 "\n"
4128
4129 #. type: verbatim
4130 #: ../df/virt-df.pod:19
4131 #, fuzzy, no-wrap
4132 #| msgid ""
4133 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4134 #| "\n"
4135 msgid ""
4136 " virt-df [--options] disk.img [disk.img ...]\n"
4137 "\n"
4138 msgstr ""
4139 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4140 "\n"
4141
4142 #. type: textblock
4143 #: ../df/virt-df.pod:23
4144 msgid ""
4145 "C<virt-df> is a command line tool to display free space on virtual machine "
4146 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
4147 "allocated to a virtual machine, but can look inside disk images to see how "
4148 "much space is really being used."
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../df/virt-df.pod:28
4153 msgid ""
4154 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
4155 "to get a list of all active and inactive guests, and performs a C<df>-type "
4156 "operation on each one in turn, printing out the results."
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../df/virt-df.pod:32
4161 msgid ""
4162 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
4163 "type operation on either the single named libvirt domain, or on the disk "
4164 "image(s) listed on the command line (which must all belong to a single VM).  "
4165 "In this mode (with arguments), C<virt-df> will I<only work for a single "
4166 "guest>.  If you want to run on multiple guests, then you have to invoke "
4167 "C<virt-df> multiple times."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../df/virt-df.pod:39
4172 msgid ""
4173 "Use the I<--csv> option to get a format which can be easily parsed by other "
4174 "programs.  Other options are similar to the standard L<df(1)> command."
4175 msgstr ""
4176
4177 #. type: textblock
4178 #: ../df/virt-df.pod:45
4179 msgid ""
4180 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
4181 "output human-readable:"
4182 msgstr ""
4183
4184 #. type: verbatim
4185 #: ../df/virt-df.pod:48
4186 #, no-wrap
4187 msgid ""
4188 " # virt-df -d F14x64 -h\n"
4189 " Filesystem                       Size     Used  Available  Use%\n"
4190 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
4191 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
4192 "\n"
4193 msgstr ""
4194
4195 #. type: textblock
4196 #: ../df/virt-df.pod:53
4197 msgid "Show disk usage for a disk image file called C<test.img>:"
4198 msgstr ""
4199
4200 #. type: verbatim
4201 #: ../df/virt-df.pod:55
4202 #, no-wrap
4203 msgid ""
4204 " $ virt-df -a test1.img\n"
4205 " Filesystem                  1K-blocks     Used  Available  Use%\n"
4206 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
4207 "\n"
4208 msgstr ""
4209
4210 #. type: verbatim
4211 #: ../df/virt-df.pod:112
4212 #, fuzzy, no-wrap
4213 #| msgid ""
4214 #| " guestfish --format=raw -a disk.img\n"
4215 #| "\n"
4216 msgid ""
4217 " virt-df --format=raw -a disk.img\n"
4218 "\n"
4219 msgstr ""
4220 " guestfish --format=raw -a disk.img\n"
4221 "\n"
4222
4223 #. type: verbatim
4224 #: ../df/virt-df.pod:116
4225 #, fuzzy, no-wrap
4226 #| msgid ""
4227 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4228 #| "\n"
4229 msgid ""
4230 " virt-df --format=raw -a disk.img --format -a another.img\n"
4231 "\n"
4232 msgstr ""
4233 " guestfish --format=raw -a disk.img --format -a another.img\n"
4234 "\n"
4235
4236 #. type: textblock
4237 #: ../df/virt-df.pod:129
4238 msgid "Print sizes in human-readable format."
4239 msgstr ""
4240
4241 #. type: textblock
4242 #: ../df/virt-df.pod:131
4243 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4244 msgstr ""
4245
4246 #. type: =item
4247 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4248 msgid "B<-i>"
4249 msgstr "B<-i>"
4250
4251 #. type: =item
4252 #: ../df/virt-df.pod:135
4253 #, fuzzy
4254 #| msgid "B<--live>"
4255 msgid "B<--inodes>"
4256 msgstr "B<--live>"
4257
4258 #. type: textblock
4259 #: ../df/virt-df.pod:137
4260 msgid "Print inodes instead of blocks."
4261 msgstr ""
4262
4263 #. type: =item
4264 #: ../df/virt-df.pod:139
4265 #, fuzzy
4266 #| msgid "B<--merge>"
4267 msgid "B<--one-per-guest>"
4268 msgstr "B<--merge>"
4269
4270 #. type: textblock
4271 #: ../df/virt-df.pod:141
4272 msgid ""
4273 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4274 "disks from several guests to a single libguestfs appliance."
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../df/virt-df.pod:144
4279 msgid "You might use this option in the following circumstances:"
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../df/virt-df.pod:150
4284 msgid ""
4285 "If you think an untrusted guest might actively try to exploit the libguestfs "
4286 "appliance kernel, then this prevents one guest from interfering with the "
4287 "stats printed for another guest."
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../df/virt-df.pod:156
4292 msgid ""
4293 "If the kernel has a bug which stops it from accessing a filesystem in one "
4294 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4295 "and report stats for further guests."
4296 msgstr ""
4297
4298 #. type: textblock
4299 #: ../df/virt-df.pod:165
4300 msgid ""
4301 "Print UUIDs instead of names.  This is useful for following a guest even "
4302 "when the guest is migrated or renamed, or when two guests happen to have the "
4303 "same name."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../df/virt-df.pod:169
4308 msgid ""
4309 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4310 "images, we still print the disk image name even when this option is "
4311 "specified."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../df/virt-df.pod:229
4316 msgid ""
4317 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4318 "libguestfs.org/>."
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../edit/virt-edit.pod:5
4323 msgid "virt-edit - Edit a file in a virtual machine"
4324 msgstr ""
4325
4326 #. type: verbatim
4327 #: ../edit/virt-edit.pod:9
4328 #, fuzzy, no-wrap
4329 #| msgid ""
4330 #| " virt-list-partitions [--options] domname\n"
4331 #| "\n"
4332 msgid ""
4333 " virt-edit [--options] -d domname file [file ...]\n"
4334 "\n"
4335 msgstr ""
4336 " virt-list-partitions [--параметри] назва_домену\n"
4337 "\n"
4338
4339 #. type: verbatim
4340 #: ../edit/virt-edit.pod:11
4341 #, fuzzy, no-wrap
4342 #| msgid ""
4343 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4344 #| "\n"
4345 msgid ""
4346 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4347 "\n"
4348 msgstr ""
4349 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4350 "\n"
4351
4352 #. type: verbatim
4353 #: ../edit/virt-edit.pod:13
4354 #, no-wrap
4355 msgid ""
4356 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4357 "\n"
4358 msgstr ""
4359
4360 #. type: verbatim
4361 #: ../edit/virt-edit.pod:17
4362 #, no-wrap
4363 msgid ""
4364 " virt-edit domname file\n"
4365 "\n"
4366 msgstr ""
4367
4368 #. type: verbatim
4369 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4370 #, fuzzy, no-wrap
4371 #| msgid ""
4372 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4373 #| "\n"
4374 msgid ""
4375 " virt-edit disk.img [disk.img ...] file\n"
4376 "\n"
4377 msgstr ""
4378 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4379 "\n"
4380
4381 #. type: =head1
4382 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4383 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4384 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4385 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4386 msgid "WARNING"
4387 msgstr "ПОПЕРЕДЖЕННЯ"
4388
4389 #. type: textblock
4390 #: ../edit/virt-edit.pod:23
4391 msgid ""
4392 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4393 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4394 "doing this, but doesn't catch all cases."
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../edit/virt-edit.pod:29
4399 msgid ""
4400 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4401 "exists in the named virtual machine (or disk image)."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:32
4406 msgid ""
4407 "Multiple filenames can be given, in which case they are each edited in "
4408 "turn.  Each filename must be a full path, starting at the root directory "
4409 "(starting with '/')."
4410 msgstr ""
4411
4412 #. type: textblock
4413 #: ../edit/virt-edit.pod:36
4414 msgid "If you want to just view a file, use L<virt-cat(1)>."
4415 msgstr ""
4416
4417 #. type: textblock
4418 #: ../edit/virt-edit.pod:38
4419 msgid ""
4420 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4421 "USING GUESTFISH> below)."
4422 msgstr ""
4423
4424 #. type: textblock
4425 #: ../edit/virt-edit.pod:41
4426 msgid ""
4427 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4428 "that and much more."
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../edit/virt-edit.pod:46
4433 msgid "Edit the named files interactively:"
4434 msgstr ""
4435
4436 #. type: verbatim
4437 #: ../edit/virt-edit.pod:48
4438 #, no-wrap
4439 msgid ""
4440 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4441 "\n"
4442 msgstr ""
4443
4444 #. type: verbatim
4445 #: ../edit/virt-edit.pod:50
4446 #, no-wrap
4447 msgid ""
4448 " virt-edit -d mydomain /etc/passwd\n"
4449 "\n"
4450 msgstr ""
4451
4452 #. type: textblock
4453 #: ../edit/virt-edit.pod:52
4454 msgid "For Windows guests, some Windows paths are understood:"
4455 msgstr ""
4456
4457 #. type: verbatim
4458 #: ../edit/virt-edit.pod:54
4459 #, no-wrap
4460 msgid ""
4461 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../edit/virt-edit.pod:56
4467 msgid ""
4468 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4469 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4470 msgstr ""
4471
4472 #. type: verbatim
4473 #: ../edit/virt-edit.pod:60
4474 #, no-wrap
4475 msgid ""
4476 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4477 "\n"
4478 msgstr ""
4479
4480 #. type: =item
4481 #: ../edit/virt-edit.pod:81
4482 msgid "B<-b> extension"
4483 msgstr ""
4484
4485 #. type: =item
4486 #: ../edit/virt-edit.pod:83
4487 msgid "B<--backup> extension"
4488 msgstr ""
4489
4490 #. type: textblock
4491 #: ../edit/virt-edit.pod:85
4492 msgid ""
4493 "Create a backup of the original file I<in the guest disk image>.  The backup "
4494 "has the original filename with C<extension> added."
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../edit/virt-edit.pod:88
4499 msgid ""
4500 "Usually the first character of C<extension> would be a dot C<.> so you would "
4501 "write:"
4502 msgstr ""
4503
4504 #. type: verbatim
4505 #: ../edit/virt-edit.pod:91
4506 #, no-wrap
4507 msgid ""
4508 " virt-edit -b .orig [etc]\n"
4509 "\n"
4510 msgstr ""
4511
4512 #. type: textblock
4513 #: ../edit/virt-edit.pod:93
4514 msgid "By default, no backup file is made."
4515 msgstr ""
4516
4517 #. type: =item
4518 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4519 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4520 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4521 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4522 msgid "B<-c URI>"
4523 msgstr "B<-c адреса>"
4524
4525 #. type: =item
4526 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4527 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4528 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4529 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4530 msgid "B<--connect URI>"
4531 msgstr "B<--connect адреса>"
4532
4533 #. type: textblock
4534 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4535 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4536 #: ../tools/virt-win-reg.pl:135
4537 msgid ""
4538 "If you specify guest block devices directly, then libvirt is not used at all."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../edit/virt-edit.pod:114
4543 msgid ""
4544 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4545 "off so you cannot see what you are typing.  If you are not worried about "
4546 "Tempest attacks and there is no one else in the room you can specify this "
4547 "flag to see what you are typing."
4548 msgstr ""
4549
4550 #. type: =item
4551 #: ../edit/virt-edit.pod:119
4552 msgid "B<-e> EXPR"
4553 msgstr ""
4554
4555 #. type: =item
4556 #: ../edit/virt-edit.pod:121
4557 #, fuzzy
4558 #| msgid "B<--help>"
4559 msgid "B<--expr> EXPR"
4560 msgstr "B<--help>"
4561
4562 #. type: textblock
4563 #: ../edit/virt-edit.pod:123
4564 msgid ""
4565 "Instead of launching the external editor, non-interactively apply the Perl "
4566 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4567 "EDITING> below."
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../edit/virt-edit.pod:127
4572 msgid ""
4573 "Be careful to properly quote the expression to prevent it from being altered "
4574 "by the shell."
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../edit/virt-edit.pod:130
4579 msgid "Note that this option is only available when Perl 5 is installed."
4580 msgstr ""
4581
4582 #. type: =item
4583 #: ../edit/virt-edit.pod:132
4584 #, fuzzy
4585 #| msgid "B<--format=raw|qcow2|..>"
4586 msgid "B<--format> raw|qcow2|..."
4587 msgstr "B<--format=raw|qcow2|..>"
4588
4589 #. type: verbatim
4590 #: ../edit/virt-edit.pod:143
4591 #, fuzzy, no-wrap
4592 #| msgid ""
4593 #| " guestfish --format=raw -a disk.img\n"
4594 #| "\n"
4595 msgid ""
4596 " virt-edit --format=raw -a disk.img file\n"
4597 "\n"
4598 msgstr ""
4599 " guestfish --format=raw -a disk.img\n"
4600 "\n"
4601
4602 #. type: verbatim
4603 #: ../edit/virt-edit.pod:147
4604 #, fuzzy, no-wrap
4605 #| msgid ""
4606 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4607 #| "\n"
4608 msgid ""
4609 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4610 "\n"
4611 msgstr ""
4612 " guestfish --format=raw -a disk.img --format -a another.img\n"
4613 "\n"
4614
4615 #. type: textblock
4616 #: ../edit/virt-edit.pod:181
4617 msgid "Previous versions of virt-edit allowed you to write either:"
4618 msgstr ""
4619
4620 #. type: verbatim
4621 #: ../edit/virt-edit.pod:187
4622 #, fuzzy, no-wrap
4623 #| msgid ""
4624 #| " edit filename\n"
4625 #| "\n"
4626 msgid ""
4627 " virt-edit guestname file\n"
4628 "\n"
4629 msgstr ""
4630 " edit назва_файла\n"
4631 "\n"
4632
4633 #. type: =head1
4634 #: ../edit/virt-edit.pod:195
4635 msgid "NON-INTERACTIVE EDITING"
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../edit/virt-edit.pod:197
4640 msgid ""
4641 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4642 "administrator can interactively edit the file."
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../edit/virt-edit.pod:200
4647 msgid ""
4648 "There are two ways also to use C<virt-edit> from scripts in order to make "
4649 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4650 "like this, it's less error-prone to write scripts directly using the "
4651 "libguestfs API and Augeas for configuration file editing.)"
4652 msgstr ""
4653
4654 #. type: textblock
4655 #: ../edit/virt-edit.pod:206
4656 msgid ""
4657 "The first method is to temporarily set C<$EDITOR> to any script or program "
4658 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4659 "update C<tmpfile> in place however it likes."
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../edit/virt-edit.pod:210
4664 msgid ""
4665 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4666 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4667 "instances of C<foo> with C<bar> in a file:"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../edit/virt-edit.pod:214
4672 #, no-wrap
4673 msgid ""
4674 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: textblock
4679 #: ../edit/virt-edit.pod:216
4680 msgid ""
4681 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4682 "For example to delete root's password you could do:"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../edit/virt-edit.pod:219
4687 #, no-wrap
4688 msgid ""
4689 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../edit/virt-edit.pod:221
4695 msgid ""
4696 "What really happens is that the snippet is evaluated as a Perl expression "
4697 "for each line of the file.  The line, including the final C<\\n>, is passed "
4698 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../edit/virt-edit.pod:226
4703 msgid ""
4704 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4705 "C<apache> user account from the password file you can do:"
4706 msgstr ""
4707
4708 #. type: verbatim
4709 #: ../edit/virt-edit.pod:229
4710 #, no-wrap
4711 msgid ""
4712 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4713 "\n"
4714 msgstr ""
4715
4716 #. type: textblock
4717 #: ../edit/virt-edit.pod:231
4718 msgid ""
4719 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4720 "the end of the file is rather difficult this way since there is no concept "
4721 "of \"last line of the file\" - your expression just doesn't get called "
4722 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4723 "want to do this."
4724 msgstr ""
4725
4726 #. type: textblock
4727 #: ../edit/virt-edit.pod:237
4728 msgid ""
4729 "The variable C<$lineno> contains the current line number.  As is "
4730 "traditional, the first line in the file is number C<1>."
4731 msgstr ""
4732
4733 #. type: textblock
4734 #: ../edit/virt-edit.pod:240
4735 msgid ""
4736 "The return value from the expression is ignored, but the expression may call "
4737 "C<die> in order to abort the whole program, leaving the original file "
4738 "untouched."
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../edit/virt-edit.pod:244
4743 msgid ""
4744 "Remember when matching the end of a line that C<$_> may contain the final C<"
4745 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4746 "newline then neither of these.  Thus to match or substitute some text at the "
4747 "end of a line, use this regular expression:"
4748 msgstr ""
4749
4750 #. type: verbatim
4751 #: ../edit/virt-edit.pod:249
4752 #, no-wrap
4753 msgid ""
4754 " /some text(\\r?\\n)?$/\n"
4755 "\n"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../edit/virt-edit.pod:251
4760 msgid ""
4761 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4762 "$_> itself (since that would remove all newlines from the file):"
4763 msgstr ""
4764
4765 #. type: verbatim
4766 #: ../edit/virt-edit.pod:255
4767 #, no-wrap
4768 msgid ""
4769 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4770 "\n"
4771 msgstr ""
4772
4773 #. type: =head1
4774 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4775 msgid "WINDOWS PATHS"
4776 msgstr ""
4777
4778 #. type: textblock
4779 #: ../edit/virt-edit.pod:259
4780 msgid ""
4781 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4782 "paths (eg. C<E:\\foo\\bar.txt>)."
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../edit/virt-edit.pod:262
4787 msgid "If and only if the guest is running Windows then:"
4788 msgstr ""
4789
4790 #. type: textblock
4791 #: ../edit/virt-edit.pod:268
4792 msgid ""
4793 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4794 "to the correct filesystem."
4795 msgstr ""
4796
4797 #. type: textblock
4798 #: ../edit/virt-edit.pod:273
4799 msgid ""
4800 "Any backslash (C<\\>) characters in the path are replaced with forward "
4801 "slashes so that libguestfs can process it."
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../edit/virt-edit.pod:278
4806 msgid ""
4807 "The path is resolved case insensitively to locate the file that should be "
4808 "edited."
4809 msgstr ""
4810
4811 #. type: textblock
4812 #: ../edit/virt-edit.pod:283
4813 msgid "There are some known shortcomings:"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../edit/virt-edit.pod:289
4818 msgid "Some NTFS symbolic links may not be followed correctly."
4819 msgstr ""
4820
4821 #. type: textblock
4822 #: ../edit/virt-edit.pod:293
4823 msgid "NTFS junction points that cross filesystems are not followed."
4824 msgstr ""
4825
4826 #. type: textblock
4827 #: ../edit/virt-edit.pod:299
4828 msgid ""
4829 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4830 "C<virt-edit> doesn't work."
4831 msgstr ""
4832
4833 #. type: textblock
4834 #: ../edit/virt-edit.pod:302
4835 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4836 msgstr ""
4837
4838 #. type: verbatim
4839 #: ../edit/virt-edit.pod:304
4840 #, fuzzy, no-wrap
4841 #| msgid ""
4842 #| " guestfish --ro -d myguest -i\n"
4843 #| "\n"
4844 msgid ""
4845 " guestfish --rw -i -d domname edit /file\n"
4846 "\n"
4847 msgstr ""
4848 " guestfish --ro -d myguest -i\n"
4849 "\n"
4850
4851 #. type: textblock
4852 #: ../edit/virt-edit.pod:306
4853 msgid ""
4854 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4855 "path to the file."
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../edit/virt-edit.pod:309
4860 msgid ""
4861 "The command above uses libguestfs's guest inspection feature and so does not "
4862 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4863 "disk images that don't contain guests.  To edit a file on a disk image "
4864 "directly, use:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../edit/virt-edit.pod:314
4869 #, fuzzy, no-wrap
4870 #| msgid ""
4871 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4872 #| "\n"
4873 msgid ""
4874 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4875 "\n"
4876 msgstr ""
4877 " guestfish --format=raw -a disk.img --format -a another.img\n"
4878 "\n"
4879
4880 #. type: textblock
4881 #: ../edit/virt-edit.pod:316
4882 msgid ""
4883 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4884 "the disk image to edit, and C</file> is the full path to the file."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../edit/virt-edit.pod:320
4889 msgid ""
4890 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4891 "C<write> or C<upload> instead:"
4892 msgstr ""
4893
4894 #. type: verbatim
4895 #: ../edit/virt-edit.pod:323
4896 #, fuzzy, no-wrap
4897 #| msgid ""
4898 #| " guestfish --ro -d myguest -i\n"
4899 #| "\n"
4900 msgid ""
4901 " guestfish --rw -i -d domname touch /newfile\n"
4902 "\n"
4903 msgstr ""
4904 " guestfish --ro -d myguest -i\n"
4905 "\n"
4906
4907 #. type: verbatim
4908 #: ../edit/virt-edit.pod:325
4909 #, no-wrap
4910 msgid ""
4911 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4912 "\n"
4913 msgstr ""
4914
4915 #. type: verbatim
4916 #: ../edit/virt-edit.pod:327
4917 #, no-wrap
4918 msgid ""
4919 " guestfish --rw -i -d domname upload localfile /newfile\n"
4920 "\n"
4921 msgstr ""
4922
4923 #. type: =head1
4924 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4925 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4926 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4927 msgid "ENVIRONMENT VARIABLES"
4928 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4929
4930 #. type: =item
4931 #: ../edit/virt-edit.pod:333
4932 #, fuzzy
4933 #| msgid "EDITOR"
4934 msgid "C<EDITOR>"
4935 msgstr "РЕДАКТОР"
4936
4937 #. type: textblock
4938 #: ../edit/virt-edit.pod:335
4939 msgid ""
4940 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4941 "\"emacs -nw\">"
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../edit/virt-edit.pod:338
4946 msgid "If not set, C<vi> is used."
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../edit/virt-edit.pod:356
4951 #, fuzzy
4952 #| msgid ""
4953 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4954 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4955 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4956 msgid ""
4957 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4958 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4959 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4960 msgstr ""
4961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4962 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4963 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4964
4965 #. type: textblock
4966 #: ../erlang/examples/guestfs-erlang.pod:5
4967 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4968 msgstr ""
4969
4970 #. type: verbatim
4971 #: ../erlang/examples/guestfs-erlang.pod:9
4972 #, no-wrap
4973 msgid ""
4974 " {ok, G} = guestfs:create(),\n"
4975 " ok = guestfs:add_drive_opts(G, Disk,\n"
4976 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4977 " ok = guestfs:launch(G),\n"
4978 " [Device] = guestfs:list_devices(G),\n"
4979 " ok = guestfs:close(G).\n"
4980 "\n"
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../erlang/examples/guestfs-erlang.pod:18
4985 msgid ""
4986 "This manual page documents how to call libguestfs from the Erlang "
4987 "programming language.  This page just documents the differences from the C "
4988 "API and gives some examples.  If you are not familiar with using libguestfs, "
4989 "you also need to read L<guestfs(3)>."
4990 msgstr ""
4991
4992 #. type: =head2
4993 #: ../erlang/examples/guestfs-erlang.pod:23
4994 msgid "OPENING AND CLOSING THE HANDLE"
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../erlang/examples/guestfs-erlang.pod:25
4999 msgid ""
5000 "The Erlang bindings are implemented using an external program called C<erl-"
5001 "guestfs>.  This program must be on the current PATH, or else you should "
5002 "specify the full path to the program:"
5003 msgstr ""
5004
5005 #. type: verbatim
5006 #: ../erlang/examples/guestfs-erlang.pod:29
5007 #, fuzzy, no-wrap
5008 #| msgid ""
5009 #| " g = guestfs_create ();\n"
5010 #| " \n"
5011 msgid ""
5012 " {ok, G} = guestfs:create().\n"
5013 "\n"
5014 msgstr ""
5015 " g = guestfs_create ();\n"
5016 " \n"
5017
5018 #. type: verbatim
5019 #: ../erlang/examples/guestfs-erlang.pod:31
5020 #, no-wrap
5021 msgid ""
5022 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
5023 "\n"
5024 msgstr ""
5025
5026 #. type: textblock
5027 #: ../erlang/examples/guestfs-erlang.pod:33
5028 msgid "C<G> is the libguestfs handle which you should pass to other functions."
5029 msgstr ""
5030
5031 #. type: textblock
5032 #: ../erlang/examples/guestfs-erlang.pod:36
5033 msgid "To close the handle:"
5034 msgstr ""
5035
5036 #. type: verbatim
5037 #: ../erlang/examples/guestfs-erlang.pod:38
5038 #, fuzzy, no-wrap
5039 #| msgid ""
5040 #| " g = guestfs_create ();\n"
5041 #| " \n"
5042 msgid ""
5043 " ok = guestfs:close(G).\n"
5044 "\n"
5045 msgstr ""
5046 " g = guestfs_create ();\n"
5047 " \n"
5048
5049 #. type: =head2
5050 #: ../erlang/examples/guestfs-erlang.pod:40
5051 #, fuzzy
5052 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5053 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
5054 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
5055
5056 #. type: textblock
5057 #: ../erlang/examples/guestfs-erlang.pod:42
5058 msgid ""
5059 "For functions that take optional arguments, the first arguments are the non-"
5060 "optional ones.  The last argument is a list of tuples supplying the "
5061 "remaining optional arguments."
5062 msgstr ""
5063
5064 #. type: verbatim
5065 #: ../erlang/examples/guestfs-erlang.pod:46
5066 #, fuzzy, no-wrap
5067 #| msgid ""
5068 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
5069 #| "                                va_list args);\n"
5070 #| "\n"
5071 msgid ""
5072 " ok = guestfs:add_drive_opts(G, Disk,\n"
5073 "                             [{format, \"raw\"}, {readonly, true}]).\n"
5074 "\n"
5075 msgstr ""
5076 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
5077 "                                va_list args);\n"
5078 "\n"
5079
5080 #. type: textblock
5081 #: ../erlang/examples/guestfs-erlang.pod:49
5082 msgid "If the last argument would be an empty list, you can also omit it:"
5083 msgstr ""
5084
5085 #. type: verbatim
5086 #: ../erlang/examples/guestfs-erlang.pod:51
5087 #, fuzzy, no-wrap
5088 #| msgid ""
5089 #| " guestfs_add_drive_opts (g, filename, -1);\n"
5090 #| "\n"
5091 msgid ""
5092 " ok = guestfs:add_drive_opts(G, Disk).\n"
5093 "\n"
5094 msgstr ""
5095 " guestfs_add_drive_opts (g, filename, -1);\n"
5096 "\n"
5097
5098 #. type: =head2
5099 #: ../erlang/examples/guestfs-erlang.pod:53
5100 msgid "RETURN VALUES AND ERRORS"
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../erlang/examples/guestfs-erlang.pod:55
5105 msgid ""
5106 "On success, most functions return a C<Result> term (which could be a list, "
5107 "string, tuple etc.).  If there is nothing for the function to return, then "
5108 "the atom C<ok> is returned."
5109 msgstr ""
5110
5111 #. type: textblock
5112 #: ../erlang/examples/guestfs-erlang.pod:59
5113 msgid "On error, you would see one of the following tuples:"
5114 msgstr ""
5115
5116 #. type: =item
5117 #: ../erlang/examples/guestfs-erlang.pod:63
5118 msgid "C<{error, Msg, Errno}>"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../erlang/examples/guestfs-erlang.pod:65
5123 msgid "This indicates an ordinary error from the function."
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../erlang/examples/guestfs-erlang.pod:67
5128 msgid ""
5129 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
5130 "(integer)."
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../erlang/examples/guestfs-erlang.pod:70
5135 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
5136 msgstr ""
5137
5138 #. type: =item
5139 #: ../erlang/examples/guestfs-erlang.pod:72
5140 msgid "C<{unknown, Function}>"
5141 msgstr ""
5142
5143 #. type: textblock
5144 #: ../erlang/examples/guestfs-erlang.pod:74
5145 msgid ""
5146 "This indicates that the function you called is not known.  Generally this "
5147 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
5148 "which you should not do."
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../erlang/examples/guestfs-erlang.pod:78
5153 msgid "C<Function> is the name of the unknown function."
5154 msgstr ""
5155
5156 #. type: =item
5157 #: ../erlang/examples/guestfs-erlang.pod:80
5158 msgid "C<{unknownarg, Arg}>"
5159 msgstr ""
5160
5161 #. type: textblock
5162 #: ../erlang/examples/guestfs-erlang.pod:82
5163 msgid ""
5164 "This indicates that you called a function with optional arguments, with an "
5165 "unknown argument name."
5166 msgstr ""
5167
5168 #. type: textblock
5169 #: ../erlang/examples/guestfs-erlang.pod:85
5170 msgid "C<Arg> is the name of the unknown argument."
5171 msgstr ""
5172
5173 #. type: =head1
5174 #: ../erlang/examples/guestfs-erlang.pod:89
5175 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
5176 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
5177 #: ../python/examples/guestfs-python.pod:34
5178 #: ../ruby/examples/guestfs-ruby.pod:28
5179 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../erlang/examples/guestfs-erlang.pod:91
5184 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
5185 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
5186 #: ../python/examples/guestfs-python.pod:36
5187 #: ../ruby/examples/guestfs-ruby.pod:30
5188 #, fuzzy
5189 #| msgid "EXAMPLE"
5190 msgid "@EXAMPLE1@"
5191 msgstr "ПРИКЛАД"
5192
5193 #. type: =head1
5194 #: ../erlang/examples/guestfs-erlang.pod:93
5195 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
5196 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
5197 #: ../python/examples/guestfs-python.pod:38
5198 #: ../ruby/examples/guestfs-ruby.pod:32
5199 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../erlang/examples/guestfs-erlang.pod:95
5204 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
5205 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
5206 #: ../python/examples/guestfs-python.pod:40
5207 #: ../ruby/examples/guestfs-ruby.pod:34
5208 #, fuzzy
5209 #| msgid "EXAMPLE"
5210 msgid "@EXAMPLE2@"
5211 msgstr "ПРИКЛАД"
5212
5213 #. type: textblock
5214 #: ../erlang/examples/guestfs-erlang.pod:99
5215 #, fuzzy
5216 #| msgid ""
5217 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5218 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5219 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5220 msgid ""
5221 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5222 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5223 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
5224 msgstr ""
5225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5228
5229 #. type: =head1
5230 #: ../erlang/examples/guestfs-erlang.pod:110
5231 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
5232 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
5233 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
5234 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
5235 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
5236 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
5237 #: ../python/examples/guestfs-python.pod:54
5238 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
5239 #: ../test-tool/libguestfs-test-tool.pod:106
5240 msgid "AUTHORS"
5241 msgstr "АВТОРИ"
5242
5243 #. type: textblock
5244 #: ../erlang/examples/guestfs-erlang.pod:112
5245 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
5246 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
5247 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
5248 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
5249 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
5250 #: ../perl/examples/guestfs-perl.pod:54
5251 #: ../python/examples/guestfs-python.pod:56
5252 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
5253 #: ../test-tool/libguestfs-test-tool.pod:108
5254 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../erlang/examples/guestfs-erlang.pod:116
5259 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
5260 #, fuzzy
5261 #| msgid "Copyright (C) 2009 Red Hat Inc."
5262 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
5263 msgstr "© Red Hat Inc., 2009"
5264
5265 #. type: textblock
5266 #: ../erlang/examples/guestfs-erlang.pod:118
5267 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
5268 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
5269 #: ../perl/examples/guestfs-perl.pod:60
5270 #: ../python/examples/guestfs-python.pod:62
5271 #: ../ruby/examples/guestfs-ruby.pod:56
5272 msgid ""
5273 "The examples in this manual page may be freely copied, modified and "
5274 "distributed without any restrictions."
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../erlang/examples/guestfs-erlang.pod:121
5279 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5280 #: ../java/examples/guestfs-java.pod:69
5281 #: ../ocaml/examples/guestfs-ocaml.pod:102
5282 #: ../perl/examples/guestfs-perl.pod:63
5283 #: ../python/examples/guestfs-python.pod:65
5284 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
5285 msgid ""
5286 "This library is free software; you can redistribute it and/or modify it "
5287 "under the terms of the GNU Lesser General Public License as published by the "
5288 "Free Software Foundation; either version 2 of the License, or (at your "
5289 "option) any later version."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../erlang/examples/guestfs-erlang.pod:126
5294 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5295 #: ../java/examples/guestfs-java.pod:74
5296 #: ../ocaml/examples/guestfs-ocaml.pod:107
5297 #: ../perl/examples/guestfs-perl.pod:68
5298 #: ../python/examples/guestfs-python.pod:70
5299 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
5300 msgid ""
5301 "This library is distributed in the hope that it will be useful, but WITHOUT "
5302 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5303 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5304 "for more details."
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../erlang/examples/guestfs-erlang.pod:131
5309 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5310 #: ../java/examples/guestfs-java.pod:79
5311 #: ../ocaml/examples/guestfs-ocaml.pod:112
5312 #: ../perl/examples/guestfs-perl.pod:73
5313 #: ../python/examples/guestfs-python.pod:75
5314 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
5315 msgid ""
5316 "You should have received a copy of the GNU Lesser General Public License "
5317 "along with this library; if not, write to the Free Software Foundation, "
5318 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-examples.pod:5
5323 msgid "guestfs-examples - Examples of using libguestfs from C"
5324 msgstr ""
5325
5326 #. type: verbatim
5327 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5328 #, no-wrap
5329 msgid ""
5330 " #include <guestfs.h>\n"
5331 " \n"
5332 msgstr ""
5333 " #include <guestfs.h>\n"
5334 " \n"
5335
5336 #. type: verbatim
5337 #: ../examples/guestfs-examples.pod:11
5338 #, no-wrap
5339 msgid ""
5340 " guestfs_h *g = guestfs_create ();\n"
5341 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5342 " guestfs_launch (g);\n"
5343 "\n"
5344 msgstr ""
5345
5346 #. type: verbatim
5347 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5348 #, no-wrap
5349 msgid ""
5350 " cc prog.c -o prog -lguestfs\n"
5351 "or:\n"
5352 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5353 "\n"
5354 msgstr ""
5355 " cc prog.c -o prog -lguestfs\n"
5356 "або:\n"
5357 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5358 "\n"
5359
5360 #. type: textblock
5361 #: ../examples/guestfs-examples.pod:21
5362 msgid ""
5363 "This manual page contains examples of calling libguestfs from the C "
5364 "programming language.  If you are not familiar with using libguestfs, you "
5365 "also need to read L<guestfs(3)>."
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../examples/guestfs-examples.pod:35
5370 #, fuzzy
5371 #| msgid ""
5372 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5373 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5374 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5375 msgid ""
5376 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5377 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5378 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5379 msgstr ""
5380 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5381 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5382 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5383
5384 #. type: textblock
5385 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5386 #: ../python/examples/guestfs-python.pod:60
5387 #: ../ruby/examples/guestfs-ruby.pod:54
5388 #, fuzzy
5389 #| msgid "Copyright (C) 2009 Red Hat Inc."
5390 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5391 msgstr "© Red Hat Inc., 2009"
5392
5393 #. type: =end
5394 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5395 msgid "comment"
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../examples/guestfs-recipes.pod:5
5400 msgid ""
5401 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5402 "here.  The only way which works for both sorts of output is to just write "
5403 "the URL directly.  Do NOT use L<...> for URLs."
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../examples/guestfs-recipes.pod:9
5408 msgid ""
5409 "We break with tradition here and don't use ALL CAPS for the section "
5410 "headings, as this makes them much easier to read."
5411 msgstr ""
5412
5413 #. type: textblock
5414 #: ../examples/guestfs-recipes.pod:16
5415 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:20
5420 msgid ""
5421 "This page contains recipes for and links to things you can do using "
5422 "libguestfs, L<guestfish(1)> and the virt tools."
5423 msgstr ""
5424
5425 #. type: =head1
5426 #: ../examples/guestfs-recipes.pod:23
5427 msgid "Audit a virtual machine for setuid files"
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../examples/guestfs-recipes.pod:25
5432 msgid ""
5433 "The link below contains a small program which can be used to audit a Linux "
5434 "virtual machine to see what setuid and setgid files it contains."
5435 msgstr ""
5436
5437 #. type: textblock
5438 #: ../examples/guestfs-recipes.pod:28
5439 msgid ""
5440 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5441 "files/#content"
5442 msgstr ""
5443
5444 #. type: =head1
5445 #: ../examples/guestfs-recipes.pod:30
5446 msgid "Change the background image in a Windows XP VM"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:32
5451 msgid ""
5452 "The links below explain how to use L<guestfish(1)> to change the background "
5453 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5454 "be substantially different for each version of Windows."
5455 msgstr ""
5456
5457 #. type: textblock
5458 #: ../examples/guestfs-recipes.pod:37
5459 msgid ""
5460 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5461 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5462 msgstr ""
5463
5464 #. type: =head1
5465 #: ../examples/guestfs-recipes.pod:40
5466 msgid "Cloning a virtual machine (Linux)"
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../examples/guestfs-recipes.pod:42
5471 msgid ""
5472 "The guestfish technique described in the link below works well for most "
5473 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5474 "slightly."
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../examples/guestfs-recipes.pod:46
5479 msgid ""
5480 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5481 "vm/#content"
5482 msgstr ""
5483
5484 #. type: textblock
5485 #: ../examples/guestfs-recipes.pod:48
5486 msgid ""
5487 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5488 "discussion."
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../examples/guestfs-recipes.pod:51
5493 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5494 msgstr ""
5495
5496 #. type: =head1
5497 #: ../examples/guestfs-recipes.pod:53
5498 msgid "Cloning a virtual machine (Windows)"
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../examples/guestfs-recipes.pod:55
5503 msgid ""
5504 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5505 "straightforward.  Currently there is code in the Aeolus Oz project which "
5506 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5507 "we may add sysprepping ability."
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:60
5512 msgid ""
5513 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5514 "list/2011-May/msg00019.html"
5515 msgstr ""
5516
5517 #. type: =head1
5518 #: ../examples/guestfs-recipes.pod:63
5519 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../examples/guestfs-recipes.pod:65
5524 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5525 msgstr ""
5526
5527 #. type: verbatim
5528 #: ../examples/guestfs-recipes.pod:67
5529 #, no-wrap
5530 msgid ""
5531 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5532 "\n"
5533 msgstr ""
5534
5535 #. type: textblock
5536 #: ../examples/guestfs-recipes.pod:69
5537 msgid "To export just a subdirectory, eg. C</files>, do:"
5538 msgstr ""
5539
5540 #. type: verbatim
5541 #: ../examples/guestfs-recipes.pod:71
5542 #, no-wrap
5543 msgid ""
5544 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5545 "\n"
5546 msgstr ""
5547
5548 #. type: =head1
5549 #: ../examples/guestfs-recipes.pod:73
5550 msgid "Create empty disk images"
5551 msgstr ""
5552
5553 #. type: textblock
5554 #: ../examples/guestfs-recipes.pod:75
5555 msgid ""
5556 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5557 "The useful guide below explains the options available."
5558 msgstr ""
5559
5560 #. type: textblock
5561 #: ../examples/guestfs-recipes.pod:78
5562 msgid ""
5563 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5564 "#content"
5565 msgstr ""
5566
5567 #. type: =head1
5568 #: ../examples/guestfs-recipes.pod:80
5569 msgid "Dump raw filesystem content from inside a disk image or VM"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../examples/guestfs-recipes.pod:82
5574 msgid ""
5575 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5576 "filesystem content from any filesystem in a disk image or a VM (even one "
5577 "which is encrypted or buried inside an LV):"
5578 msgstr ""
5579
5580 #. type: verbatim
5581 #: ../examples/guestfs-recipes.pod:86
5582 #, fuzzy, no-wrap
5583 #| msgid ""
5584 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
5585 #| "\n"
5586 msgid ""
5587 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5588 "\n"
5589 msgstr ""
5590 " guestfish --format=raw -a disk.img --format -a another.img\n"
5591 "\n"
5592
5593 #. type: verbatim
5594 #: ../examples/guestfs-recipes.pod:88
5595 #, no-wrap
5596 msgid ""
5597 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5598 "\n"
5599 msgstr ""
5600
5601 #. type: textblock
5602 #: ../examples/guestfs-recipes.pod:90
5603 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5604 msgstr ""
5605
5606 #. type: =head1
5607 #: ../examples/guestfs-recipes.pod:92
5608 msgid "Edit grub configuration in a VM"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../examples/guestfs-recipes.pod:94
5613 msgid "You can use this to:"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-recipes.pod:100
5618 msgid "Fix a virtual machine that does not boot."
5619 msgstr ""
5620
5621 #. type: textblock
5622 #: ../examples/guestfs-recipes.pod:104
5623 msgid "Change which kernel is used to boot the VM."
5624 msgstr ""
5625
5626 #. type: textblock
5627 #: ../examples/guestfs-recipes.pod:108
5628 msgid "Change kernel command line options."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:112
5633 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5634 msgstr ""
5635
5636 #. type: verbatim
5637 #: ../examples/guestfs-recipes.pod:114
5638 #, no-wrap
5639 msgid ""
5640 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5641 "\n"
5642 msgstr ""
5643
5644 #. type: textblock
5645 #: ../examples/guestfs-recipes.pod:116
5646 msgid ""
5647 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5648 "this:"
5649 msgstr ""
5650
5651 #. type: verbatim
5652 #: ../examples/guestfs-recipes.pod:119
5653 #, no-wrap
5654 msgid ""
5655 " virt-rescue -d BrokenGuest\n"
5656 "\n"
5657 msgstr ""
5658
5659 #. type: =head1
5660 #: ../examples/guestfs-recipes.pod:121
5661 msgid "Export any directory from a VM"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../examples/guestfs-recipes.pod:123
5666 msgid ""
5667 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5668 msgstr ""
5669
5670 #. type: verbatim
5671 #: ../examples/guestfs-recipes.pod:126
5672 #, fuzzy, no-wrap
5673 #| msgid ""
5674 #| " copy-out /home .\n"
5675 #| "\n"
5676 msgid ""
5677 " virt-copy-out -d Guest /home .\n"
5678 "\n"
5679 msgstr ""
5680 " copy-out /home .\n"
5681 "\n"
5682
5683 #. type: textblock
5684 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5685 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
5686 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:18
5687 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
5688 #: ../src/guestfs-actions.pod:3016 ../src/guestfs.pod:1670
5689 #: ../tools/virt-win-reg.pl:706
5690 msgid "Notes:"
5691 msgstr "Нотатки:"
5692
5693 #. type: textblock
5694 #: ../examples/guestfs-recipes.pod:134
5695 msgid ""
5696 "The final dot of the command is not a printing error.  It means we want to "
5697 "copy out to the current directory."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../examples/guestfs-recipes.pod:139
5702 msgid "This creates a directory called C<home> under the current directory."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:143
5707 msgid ""
5708 "If the guest is a Windows guest then you can use drive letters and "
5709 "backslashes, but you must prefix the path with C<win:> and quote it to "
5710 "protect it from the shell, like this:"
5711 msgstr ""
5712
5713 #. type: verbatim
5714 #: ../examples/guestfs-recipes.pod:147
5715 #, no-wrap
5716 msgid ""
5717 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5718 "\n"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:149
5723 msgid "To get the output as a compressed tarball, do:"
5724 msgstr ""
5725
5726 #. type: verbatim
5727 #: ../examples/guestfs-recipes.pod:151
5728 #, no-wrap
5729 msgid ""
5730 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5731 "\n"
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../examples/guestfs-recipes.pod:153
5736 msgid ""
5737 "Although it sounds tempting, this is usually not a reliable way to get a "
5738 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5739 "org/FAQ.html#backup"
5740 msgstr ""
5741
5742 #. type: =head1
5743 #: ../examples/guestfs-recipes.pod:157
5744 msgid "Find out which user is using the most space"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../examples/guestfs-recipes.pod:159
5749 msgid ""
5750 "This simple script examines a Linux guest to find out which user is using "
5751 "the most space in their home directory:"
5752 msgstr ""
5753
5754 #. type: verbatim
5755 #: ../examples/guestfs-recipes.pod:162
5756 #, fuzzy, no-wrap
5757 #| msgid ""
5758 #| " #!/usr/bin/guestfish -f\n"
5759 #| "\n"
5760 msgid ""
5761 " #!/bin/sh -\n"
5762 " \n"
5763 msgstr ""
5764 " #!/usr/bin/guestfish -f\n"
5765 "\n"
5766
5767 #. type: verbatim
5768 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5769 #, fuzzy, no-wrap
5770 #| msgid ""
5771 #| " set-qemu qemu\n"
5772 #| "\n"
5773 msgid ""
5774 " set -e\n"
5775 " \n"
5776 msgstr ""
5777 " set-qemu qemu\n"
5778 "\n"
5779
5780 #. type: verbatim
5781 #: ../examples/guestfs-recipes.pod:166
5782 #, no-wrap
5783 msgid ""
5784 " vm=\"$1\"\n"
5785 " dir=/home\n"
5786 " \n"
5787 msgstr ""
5788
5789 #. type: verbatim
5790 #: ../examples/guestfs-recipes.pod:169
5791 #, fuzzy, no-wrap
5792 #| msgid ""
5793 #| " guestfish --ro -d myguest -i\n"
5794 #| "\n"
5795 msgid ""
5796 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5797 " \n"
5798 msgstr ""
5799 " guestfish --ro -d myguest -i\n"
5800 "\n"
5801
5802 #. type: verbatim
5803 #: ../examples/guestfs-recipes.pod:171
5804 #, no-wrap
5805 msgid ""
5806 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5807 "     echo -n \"$dir/$d\"\n"
5808 "     echo -ne '\\t'\n"
5809 "     guestfish --remote du \"$dir/$d\";\n"
5810 " done | sort -nr -k 2\n"
5811 " \n"
5812 msgstr ""
5813
5814 #. type: verbatim
5815 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5816 #, no-wrap
5817 msgid ""
5818 " guestfish --remote exit\n"
5819 "\n"
5820 msgstr ""
5821
5822 #. type: =head1
5823 #: ../examples/guestfs-recipes.pod:179
5824 msgid "Get DHCP address from a VM"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../examples/guestfs-recipes.pod:181
5829 msgid ""
5830 "The link below explains the many different possible techniques for getting "
5831 "the last assigned DHCP address of a virtual machine."
5832 msgstr ""
5833
5834 #. type: textblock
5835 #: ../examples/guestfs-recipes.pod:184
5836 msgid ""
5837 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5838 "a-virtual-machine-disk-image/#content"
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-recipes.pod:186
5843 msgid ""
5844 "In the libguestfs source examples directory you will find the latest version "
5845 "of the C<virt-dhcp-address.c> program."
5846 msgstr ""
5847
5848 #. type: =head1
5849 #: ../examples/guestfs-recipes.pod:189
5850 msgid "Get the operating system product name string"
5851 msgstr ""
5852
5853 #. type: textblock
5854 #: ../examples/guestfs-recipes.pod:191
5855 msgid "Save the following script into a file called C<product-name.sh>:"
5856 msgstr ""
5857
5858 #. type: verbatim
5859 #: ../examples/guestfs-recipes.pod:193
5860 #, fuzzy, no-wrap
5861 #| msgid ""
5862 #| " eval \"`guestfish --listen`\"\n"
5863 #| " guestfish --remote add-ro disk.img\n"
5864 #| " guestfish --remote run\n"
5865 #| " guestfish --remote lvs\n"
5866 #| "\n"
5867 msgid ""
5868 " #!/bin/sh -\n"
5869 " set -e\n"
5870 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5871 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5872 " guestfish --remote inspect-get-product-name \"$root\"\n"
5873 " guestfish --remote exit\n"
5874 "\n"
5875 msgstr ""
5876 " eval \"`guestfish --listen`\"\n"
5877 " guestfish --remote add-ro disk.img\n"
5878 " guestfish --remote run\n"
5879 " guestfish --remote lvs\n"
5880 "\n"
5881
5882 #. type: textblock
5883 #: ../examples/guestfs-recipes.pod:200
5884 msgid "Make the script executable and run it on a named guest:"
5885 msgstr ""
5886
5887 #. type: verbatim
5888 #: ../examples/guestfs-recipes.pod:202
5889 #, no-wrap
5890 msgid ""
5891 " # product-name.sh RHEL60x64\n"
5892 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5893 "\n"
5894 msgstr ""
5895
5896 #. type: textblock
5897 #: ../examples/guestfs-recipes.pod:205
5898 msgid ""
5899 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5900 "C<xpath> command line tool or from your favourite programming language:"
5901 msgstr ""
5902
5903 #. type: verbatim
5904 #: ../examples/guestfs-recipes.pod:209
5905 #, no-wrap
5906 msgid ""
5907 " # virt-inspector RHEL60x64 > xml\n"
5908 " # xpath '//product_name' < xml\n"
5909 " Found 1 nodes:\n"
5910 " -- NODE --\n"
5911 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: =head1
5916 #: ../examples/guestfs-recipes.pod:215
5917 msgid "Get the default boot kernel for a Linux VM"
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../examples/guestfs-recipes.pod:217
5922 msgid ""
5923 "The link below contains a program to print the default boot kernel for a "
5924 "Linux VM."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-recipes.pod:220
5929 msgid ""
5930 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5931 "kernel-for-a-vm/#content"
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../examples/guestfs-recipes.pod:222
5936 msgid ""
5937 "It uses Augeas, and the technique is generally applicable for many different "
5938 "tasks, such as:"
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../examples/guestfs-recipes.pod:229
5943 msgid "listing the user accounts in the guest"
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../examples/guestfs-recipes.pod:233
5948 msgid "what repositories is it configured to use"
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../examples/guestfs-recipes.pod:237
5953 msgid "what NTP servers does it connect to"
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../examples/guestfs-recipes.pod:241
5958 msgid "what were the boot messages last time it booted"
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../examples/guestfs-recipes.pod:245
5963 msgid "listing who was logged in recently"
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../examples/guestfs-recipes.pod:249
5968 msgid "http://augeas.net/"
5969 msgstr ""
5970
5971 #. type: =head1
5972 #: ../examples/guestfs-recipes.pod:251
5973 msgid "Install RPMs in a guest"
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../examples/guestfs-recipes.pod:253
5978 msgid ""
5979 "The link below contains a method to install RPMs in a guest.  In fact the "
5980 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5981 "installs them next time the guest is booted.  You could use this technique "
5982 "to install vital security updates in an offline guest."
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../examples/guestfs-recipes.pod:259
5987 msgid ""
5988 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5989 msgstr ""
5990
5991 #. type: =head1
5992 #: ../examples/guestfs-recipes.pod:261
5993 msgid "List applications installed in a VM"
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../examples/guestfs-recipes.pod:263
5998 msgid "Save the following to a file C<list-apps.sh>:"
5999 msgstr ""
6000
6001 #. type: verbatim
6002 #: ../examples/guestfs-recipes.pod:265
6003 #, fuzzy, no-wrap
6004 #| msgid ""
6005 #| " eval \"`guestfish --listen`\"\n"
6006 #| " guestfish --remote add-ro disk.img\n"
6007 #| " guestfish --remote run\n"
6008 #| " guestfish --remote lvs\n"
6009 #| "\n"
6010 msgid ""
6011 " #!/bin/sh -\n"
6012 " set -e\n"
6013 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
6014 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
6015 " guestfish --remote inspect-list-applications \"$root\"\n"
6016 " guestfish --remote exit\n"
6017 "\n"
6018 msgstr ""
6019 " eval \"`guestfish --listen`\"\n"
6020 " guestfish --remote add-ro disk.img\n"
6021 " guestfish --remote run\n"
6022 " guestfish --remote lvs\n"
6023 "\n"
6024
6025 #. type: textblock
6026 #: ../examples/guestfs-recipes.pod:272
6027 msgid ""
6028 "Make the file executable and then you can run it on any named virtual "
6029 "machine:"
6030 msgstr ""
6031
6032 #. type: verbatim
6033 #: ../examples/guestfs-recipes.pod:275
6034 #, no-wrap
6035 msgid ""
6036 " # list-apps.sh WinGuest\n"
6037 " [0] = {\n"
6038 "   app_name: Mozilla Firefox (3.6.12)\n"
6039 "   app_display_name: Mozilla Firefox (3.6.12)\n"
6040 "   app_epoch: 0\n"
6041 "   app_version: 3.6.12 (en-GB)\n"
6042 "   app_release:\n"
6043 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
6044 "   app_trans_path:\n"
6045 "   app_publisher: Mozilla\n"
6046 "   app_url: http://www.mozilla.com/en-GB/\n"
6047 "   app_source_package:\n"
6048 "   app_summary:\n"
6049 "   app_description: Mozilla Firefox\n"
6050 " }\n"
6051 " [1] = {\n"
6052 "   app_name: VLC media player\n"
6053 "   app_display_name: VLC media player 1.1.5\n"
6054 "   app_epoch: 0\n"
6055 "   app_version: 1.1.5\n"
6056 "   app_release:\n"
6057 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
6058 "   app_trans_path:\n"
6059 "   app_publisher: VideoLAN\n"
6060 "   app_url: http://www.videolan.org/\n"
6061 "   app_source_package:\n"
6062 "   app_summary:\n"
6063 "   app_description:\n"
6064 " }\n"
6065 "\n"
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../examples/guestfs-recipes.pod:305
6070 msgid ""
6071 "If you want to run the script on disk images (instead of libvirt virtual "
6072 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
6073 ">."
6074 msgstr ""
6075
6076 #. type: =head1
6077 #: ../examples/guestfs-recipes.pod:309
6078 msgid "List files and directories in a VM"
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../examples/guestfs-recipes.pod:311
6083 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
6084 msgstr ""
6085
6086 #. type: verbatim
6087 #: ../examples/guestfs-recipes.pod:313
6088 #, fuzzy, no-wrap
6089 #| msgid ""
6090 #| " guestfish --ro -d myguest -i\n"
6091 #| "\n"
6092 msgid ""
6093 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
6094 "\n"
6095 msgstr ""
6096 " guestfish --ro -d myguest -i\n"
6097 "\n"
6098
6099 #. type: =head1
6100 #: ../examples/guestfs-recipes.pod:315
6101 msgid "List services in a Windows VM"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../examples/guestfs-recipes.pod:317
6106 msgid ""
6107 "The link below contains a script that can be used to list out the services "
6108 "from a Windows VM, and whether those services run at boot time or are loaded "
6109 "on demand."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../examples/guestfs-recipes.pod:321
6114 msgid ""
6115 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
6116 "#content"
6117 msgstr ""
6118
6119 #. type: =head1
6120 #: ../examples/guestfs-recipes.pod:323
6121 msgid "Make a disk image sparse"
6122 msgstr ""
6123
6124 #. type: textblock
6125 #: ../examples/guestfs-recipes.pod:325
6126 msgid ""
6127 "The link below contains some guides for making a disk image sparse (or "
6128 "reintroducing sparseness)."
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../examples/guestfs-recipes.pod:328
6133 msgid ""
6134 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
6135 msgstr ""
6136
6137 #. type: =head1
6138 #: ../examples/guestfs-recipes.pod:330
6139 msgid "Monitor disk usage over time"
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../examples/guestfs-recipes.pod:332
6144 msgid ""
6145 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
6146 "The link below contains a guide."
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../examples/guestfs-recipes.pod:335
6151 msgid "http://virt-tools.org/learning/advanced-virt-df/"
6152 msgstr ""
6153
6154 #. type: =head1
6155 #: ../examples/guestfs-recipes.pod:337
6156 msgid "Reading the Windows Event Log from Windows Vista (or later)"
6157 msgstr ""
6158
6159 #. type: textblock
6160 #: ../examples/guestfs-recipes.pod:339
6161 msgid ""
6162 "L<guestfish(1)> plus the tools described in the link below can be used to "
6163 "read out the Windows Event Log from any virtual machine running Windows "
6164 "Vista or a later version."
6165 msgstr ""
6166
6167 #. type: textblock
6168 #: ../examples/guestfs-recipes.pod:343
6169 msgid ""
6170 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
6171 "guestfish/#content"
6172 msgstr ""
6173
6174 #. type: =head1
6175 #: ../examples/guestfs-recipes.pod:345
6176 msgid "Remove root password (Linux)"
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../examples/guestfs-recipes.pod:347
6181 msgid ""
6182 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
6183 "files.  One use is to remove the root password from a Linux guest:"
6184 msgstr ""
6185
6186 #. type: verbatim
6187 #: ../examples/guestfs-recipes.pod:350
6188 #, no-wrap
6189 msgid ""
6190 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
6191 "\n"
6192 msgstr ""
6193
6194 #. type: =head1
6195 #: ../examples/guestfs-recipes.pod:352
6196 msgid "Remove Administrator password (Windows)"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../examples/guestfs-recipes.pod:354
6201 msgid ""
6202 "The link below contains one technique for removing the Administrator "
6203 "password from a Windows VM, or to be more precise, it gives you a command "
6204 "prompt the next time you log in which you can use to bypass any security:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../examples/guestfs-recipes.pod:359
6209 msgid ""
6210 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
6211 "administrator-password-with-guestfish/"
6212 msgstr ""
6213
6214 #. type: =head1
6215 #: ../examples/guestfs-recipes.pod:361
6216 msgid "Unpack a live CD"
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../examples/guestfs-recipes.pod:363
6221 msgid ""
6222 "Linux live CDs often contain multiple layers of disk images wrapped like a "
6223 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
6224 "layers, as outlined in the guide below."
6225 msgstr ""
6226
6227 #. type: textblock
6228 #: ../examples/guestfs-recipes.pod:367
6229 msgid ""
6230 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
6231 "cd/#content"
6232 msgstr ""
6233
6234 #. type: =head1
6235 #: ../examples/guestfs-recipes.pod:369
6236 msgid "Uploading and downloading files"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../examples/guestfs-recipes.pod:371
6241 msgid ""
6242 "The link below contains general tips on uploading (copying in)  and "
6243 "downloading (copying out) files from VMs."
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../examples/guestfs-recipes.pod:374
6248 msgid ""
6249 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
6250 msgstr ""
6251
6252 #. type: =head1
6253 #: ../examples/guestfs-recipes.pod:376
6254 msgid "Use libguestfs tools on VMware ESX guests"
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../examples/guestfs-recipes.pod:378
6259 msgid ""
6260 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
6261 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../examples/guestfs-recipes.pod:382
6266 msgid ""
6267 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
6268 "guests/#content"
6269 msgstr ""
6270
6271 #. type: textblock
6272 #: ../examples/guestfs-recipes.pod:386
6273 #, fuzzy
6274 #| msgid ""
6275 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6276 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
6277 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6278 msgid ""
6279 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
6280 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
6281 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
6282 msgstr ""
6283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6284 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
6285 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6286
6287 #. type: textblock
6288 #: ../examples/guestfs-recipes.pod:403
6289 #, fuzzy
6290 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
6291 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
6292 msgstr "© Red Hat Inc., 2009–2010"
6293
6294 #. type: =head2
6295 #: ../fish/guestfish-actions.pod:1
6296 msgid "add-cdrom"
6297 msgstr ""
6298
6299 #. type: verbatim
6300 #: ../fish/guestfish-actions.pod:3
6301 #, no-wrap
6302 msgid ""
6303 " add-cdrom filename\n"
6304 "\n"
6305 msgstr ""
6306
6307 #. type: textblock
6308 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6309 msgid "This function adds a virtual CD-ROM disk image to the guest."
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6314 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6315 msgstr ""
6316
6317 #. type: textblock
6318 #: ../fish/guestfish-actions.pod:15
6319 msgid ""
6320 "This call checks for the existence of C<filename>.  This stops you from "
6321 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6322 "and C<http:> URLs.  To specify those, use the general L</config> call "
6323 "instead."
6324 msgstr ""
6325
6326 #. type: textblock
6327 #: ../fish/guestfish-actions.pod:22
6328 msgid ""
6329 "If you just want to add an ISO file (often you use this as an efficient way "
6330 "to transfer large files into the guest), then you should probably use L</add-"
6331 "drive-ro> instead."
6332 msgstr ""
6333
6334 #. type: textblock
6335 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
6336 #: ../fish/guestfish-actions.pod:177
6337 msgid ""
6338 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6339 "instead."
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
6344 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
6345 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
6346 #: ../fish/guestfish-actions.pod:3170 ../fish/guestfish-actions.pod:3481
6347 #: ../fish/guestfish-actions.pod:3529 ../fish/guestfish-actions.pod:4442
6348 #: ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:4487
6349 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:5174
6350 #: ../fish/guestfish-actions.pod:5280 ../src/guestfs-actions.pod:10
6351 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6352 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
6353 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4784
6354 #: ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5406
6355 #: ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6732
6356 #: ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:6829
6357 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7870
6358 #: ../src/guestfs-actions.pod:8053
6359 msgid ""
6360 "Deprecated functions will not be removed from the API, but the fact that "
6361 "they are deprecated indicates that there are problems with correct use of "
6362 "these functions."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../fish/guestfish-actions.pod:35
6367 msgid "add-domain"
6368 msgstr "add-domain"
6369
6370 #. type: =head2
6371 #: ../fish/guestfish-actions.pod:37
6372 msgid "domain"
6373 msgstr ""
6374
6375 #. type: verbatim
6376 #: ../fish/guestfish-actions.pod:39
6377 #, no-wrap
6378 msgid ""
6379 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
6380 "\n"
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../fish/guestfish-actions.pod:41
6385 msgid ""
6386 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6387 "It works by connecting to libvirt, requesting the domain and domain XML from "
6388 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
6393 msgid ""
6394 "The number of disks added is returned.  This operation is atomic: if an "
6395 "error is returned, then no disks are added."
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
6400 msgid ""
6401 "This function does some minimal checks to make sure the libvirt domain is "
6402 "not running (unless C<readonly> is true).  In a future version we will try "
6403 "to acquire the libvirt lock on each disk."
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
6408 msgid ""
6409 "Disks must be accessible locally.  This often means that adding disks from a "
6410 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6411 "unless those disks are accessible via the same device path locally too."
6412 msgstr ""
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
6416 msgid ""
6417 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6418 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6419 "libvirt URI (or one set through an environment variable, see the libvirt "
6420 "documentation for full details)."
6421 msgstr ""
6422
6423 #. type: textblock
6424 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
6425 msgid ""
6426 "The optional C<live> flag controls whether this call will try to connect to "
6427 "a running virtual machine C<guestfsd> process if it sees a suitable "
6428 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6429 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6430 "DAEMONS> for more information."
6431 msgstr ""
6432
6433 #. type: textblock
6434 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
6435 msgid ""
6436 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6437 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6438 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6439 "as usual."
6440 msgstr ""
6441
6442 #. type: textblock
6443 #: ../fish/guestfish-actions.pod:76
6444 msgid ""
6445 "The other optional parameters are passed directly through to L</add-drive-"
6446 "opts>."
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
6451 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
6452 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2048
6453 #: ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3382
6454 #: ../fish/guestfish-actions.pod:3517
6455 msgid ""
6456 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6457 msgstr ""
6458
6459 #. type: =head2
6460 #: ../fish/guestfish-actions.pod:81
6461 msgid "add-drive"
6462 msgstr "add-drive"
6463
6464 #. type: verbatim
6465 #: ../fish/guestfish-actions.pod:83
6466 #, no-wrap
6467 msgid ""
6468 " add-drive filename\n"
6469 "\n"
6470 msgstr ""
6471 " add-drive назва_файла\n"
6472 "\n"
6473
6474 #. type: textblock
6475 #: ../fish/guestfish-actions.pod:85
6476 msgid ""
6477 "This function is the equivalent of calling L</add-drive-opts> with no "
6478 "optional parameters, so the disk is added writable, with the format being "
6479 "detected automatically."
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:89
6484 msgid ""
6485 "Automatic detection of the format opens you up to a potential security hole "
6486 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6487 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6488 "you should think about replacing calls to this function with calls to L</add-"
6489 "drive-opts>, and specifying the format."
6490 msgstr ""
6491
6492 #. type: =head2
6493 #: ../fish/guestfish-actions.pod:96
6494 msgid "add-drive-opts"
6495 msgstr "add-drive-opts"
6496
6497 #. type: =head2
6498 #: ../fish/guestfish-actions.pod:98
6499 msgid "add"
6500 msgstr "add"
6501
6502 #. type: verbatim
6503 #: ../fish/guestfish-actions.pod:100
6504 #, no-wrap
6505 msgid ""
6506 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
6507 "\n"
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
6512 msgid ""
6513 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6514 "The first time you call this function, the disk appears as C</dev/sda>, the "
6515 "second time as C</dev/sdb>, and so on."
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
6520 msgid ""
6521 "You don't necessarily need to be root when using libguestfs.  However you "
6522 "obviously do need sufficient permissions to access the filename for whatever "
6523 "operations you want to perform (ie. read access if you just want to read the "
6524 "image or write access if you want to modify the image)."
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
6529 msgid "This call checks that C<filename> exists."
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3181
6534 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4821
6535 msgid "The optional arguments are:"
6536 msgstr ""
6537
6538 #. type: =item
6539 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
6540 msgid "C<readonly>"
6541 msgstr "C<readonly>"
6542
6543 #. type: textblock
6544 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
6545 msgid ""
6546 "If true then the image is treated as read-only.  Writes are still allowed, "
6547 "but they are stored in a temporary snapshot overlay which is discarded at "
6548 "the end.  The disk that you add is not modified."
6549 msgstr ""
6550
6551 #. type: =item
6552 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
6553 msgid "C<format>"
6554 msgstr "C<format>"
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:127
6558 msgid ""
6559 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6560 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6561 "include C<raw> and C<qcow2>."
6562 msgstr ""
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
6566 msgid ""
6567 "Automatic detection of the format opens you up to a potential security hole "
6568 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6569 "RHBZ#642934.  Specifying the format closes this security hole."
6570 msgstr ""
6571
6572 #. type: =item
6573 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
6574 msgid "C<iface>"
6575 msgstr "C<iface>"
6576
6577 #. type: textblock
6578 #: ../fish/guestfish-actions.pod:138
6579 msgid ""
6580 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6581 "add-drive-with-if> call (q.v.)"
6582 msgstr ""
6583
6584 #. type: =head2
6585 #: ../fish/guestfish-actions.pod:145
6586 msgid "add-drive-ro"
6587 msgstr "add-drive-ro"
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:147
6591 msgid "add-ro"
6592 msgstr "add-ro"
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:149
6596 #, no-wrap
6597 msgid ""
6598 " add-drive-ro filename\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:151
6604 msgid ""
6605 "This function is the equivalent of calling L</add-drive-opts> with the "
6606 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6607 "is added read-only, with the format being detected automatically."
6608 msgstr ""
6609
6610 #. type: =head2
6611 #: ../fish/guestfish-actions.pod:156
6612 msgid "add-drive-ro-with-if"
6613 msgstr ""
6614
6615 #. type: verbatim
6616 #: ../fish/guestfish-actions.pod:158
6617 #, no-wrap
6618 msgid ""
6619 " add-drive-ro-with-if filename iface\n"
6620 "\n"
6621 msgstr ""
6622
6623 #. type: textblock
6624 #: ../fish/guestfish-actions.pod:160
6625 msgid ""
6626 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6627 "interface emulation to use at run time."
6628 msgstr ""
6629
6630 #. type: =head2
6631 #: ../fish/guestfish-actions.pod:170
6632 msgid "add-drive-with-if"
6633 msgstr ""
6634
6635 #. type: verbatim
6636 #: ../fish/guestfish-actions.pod:172
6637 #, no-wrap
6638 msgid ""
6639 " add-drive-with-if filename iface\n"
6640 "\n"
6641 msgstr ""
6642
6643 #. type: textblock
6644 #: ../fish/guestfish-actions.pod:174
6645 msgid ""
6646 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6647 "interface emulation to use at run time."
6648 msgstr ""
6649
6650 #. type: =head2
6651 #: ../fish/guestfish-actions.pod:184
6652 msgid "aug-clear"
6653 msgstr ""
6654
6655 #. type: verbatim
6656 #: ../fish/guestfish-actions.pod:186
6657 #, no-wrap
6658 msgid ""
6659 " aug-clear augpath\n"
6660 "\n"
6661 msgstr ""
6662
6663 #. type: textblock
6664 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
6665 msgid ""
6666 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6667 "L<augtool(1)> C<clear> command."
6668 msgstr ""
6669
6670 #. type: =head2
6671 #: ../fish/guestfish-actions.pod:191
6672 msgid "aug-close"
6673 msgstr ""
6674
6675 #. type: verbatim
6676 #: ../fish/guestfish-actions.pod:193
6677 #, no-wrap
6678 msgid ""
6679 " aug-close\n"
6680 "\n"
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:195
6685 msgid ""
6686 "Close the current Augeas handle and free up any resources used by it.  After "
6687 "calling this, you have to call L</aug-init> again before you can use any "
6688 "other Augeas functions."
6689 msgstr ""
6690
6691 #. type: =head2
6692 #: ../fish/guestfish-actions.pod:200
6693 msgid "aug-defnode"
6694 msgstr ""
6695
6696 #. type: verbatim
6697 #: ../fish/guestfish-actions.pod:202
6698 #, no-wrap
6699 msgid ""
6700 " aug-defnode name expr val\n"
6701 "\n"
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
6706 msgid ""
6707 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:207
6712 msgid ""
6713 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6714 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6715 "containing that single node."
6716 msgstr ""
6717
6718 #. type: textblock
6719 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
6720 msgid ""
6721 "On success this returns a pair containing the number of nodes in the "
6722 "nodeset, and a boolean flag if a node was created."
6723 msgstr ""
6724
6725 #. type: =head2
6726 #: ../fish/guestfish-actions.pod:215
6727 msgid "aug-defvar"
6728 msgstr ""
6729
6730 #. type: verbatim
6731 #: ../fish/guestfish-actions.pod:217
6732 #, no-wrap
6733 msgid ""
6734 " aug-defvar name expr\n"
6735 "\n"
6736 msgstr ""
6737
6738 #. type: textblock
6739 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
6740 msgid ""
6741 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6742 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6743 msgstr ""
6744
6745 #. type: textblock
6746 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
6747 msgid ""
6748 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6749 "evaluates to something which is not a nodeset."
6750 msgstr ""
6751
6752 #. type: =head2
6753 #: ../fish/guestfish-actions.pod:226
6754 msgid "aug-get"
6755 msgstr ""
6756
6757 #. type: verbatim
6758 #: ../fish/guestfish-actions.pod:228
6759 #, no-wrap
6760 msgid ""
6761 " aug-get augpath\n"
6762 "\n"
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
6767 msgid ""
6768 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6769 "node, the C<value> is returned."
6770 msgstr ""
6771
6772 #. type: =head2
6773 #: ../fish/guestfish-actions.pod:233
6774 msgid "aug-init"
6775 msgstr ""
6776
6777 #. type: verbatim
6778 #: ../fish/guestfish-actions.pod:235
6779 #, no-wrap
6780 msgid ""
6781 " aug-init root flags\n"
6782 "\n"
6783 msgstr ""
6784
6785 #. type: textblock
6786 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
6787 msgid ""
6788 "Create a new Augeas handle for editing configuration files.  If there was "
6789 "any previous Augeas handle associated with this guestfs session, then it is "
6790 "closed."
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:241
6795 msgid "You must call this before using any other L</aug-*> commands."
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
6800 msgid ""
6801 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
6806 msgid ""
6807 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6808 "logical I<or> of the following integers:"
6809 msgstr ""
6810
6811 #. type: =item
6812 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
6813 msgid "C<AUG_SAVE_BACKUP> = 1"
6814 msgstr "C<AUG_SAVE_BACKUP> = 1"
6815
6816 #. type: textblock
6817 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
6818 msgid "Keep the original file with a C<.augsave> extension."
6819 msgstr ""
6820
6821 #. type: =item
6822 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
6823 msgid "C<AUG_SAVE_NEWFILE> = 2"
6824 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
6828 msgid ""
6829 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6830 "original.  Overrides C<AUG_SAVE_BACKUP>."
6831 msgstr ""
6832
6833 #. type: =item
6834 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
6835 msgid "C<AUG_TYPE_CHECK> = 4"
6836 msgstr "C<AUG_TYPE_CHECK> = 4"
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
6840 msgid "Typecheck lenses."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:266
6845 msgid ""
6846 "This option is only useful when debugging Augeas lenses.  Use of this option "
6847 "may require additional memory for the libguestfs appliance.  You may need to "
6848 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6849 msgstr ""
6850
6851 #. type: =item
6852 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
6853 msgid "C<AUG_NO_STDINC> = 8"
6854 msgstr "C<AUG_NO_STDINC> = 8"
6855
6856 #. type: textblock
6857 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
6858 msgid "Do not use standard load path for modules."
6859 msgstr ""
6860
6861 #. type: =item
6862 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
6863 msgid "C<AUG_SAVE_NOOP> = 16"
6864 msgstr "C<AUG_SAVE_NOOP> = 16"
6865
6866 #. type: textblock
6867 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
6868 msgid "Make save a no-op, just record what would have been changed."
6869 msgstr ""
6870
6871 #. type: =item
6872 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
6873 msgid "C<AUG_NO_LOAD> = 32"
6874 msgstr "C<AUG_NO_LOAD> = 32"
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:281
6878 msgid "Do not load the tree in L</aug-init>."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:285
6883 msgid "To close the handle, you can call L</aug-close>."
6884 msgstr ""
6885
6886 #. type: textblock
6887 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
6888 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6889 msgstr ""
6890
6891 #. type: =head2
6892 #: ../fish/guestfish-actions.pod:289
6893 msgid "aug-insert"
6894 msgstr ""
6895
6896 #. type: verbatim
6897 #: ../fish/guestfish-actions.pod:291
6898 #, no-wrap
6899 msgid ""
6900 " aug-insert augpath label true|false\n"
6901 "\n"
6902 msgstr ""
6903
6904 #. type: textblock
6905 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
6906 msgid ""
6907 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6908 "or after C<path> (depending on the boolean flag C<before>)."
6909 msgstr ""
6910
6911 #. type: textblock
6912 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
6913 msgid ""
6914 "C<path> must match exactly one existing node in the tree, and C<label> must "
6915 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6916 msgstr ""
6917
6918 #. type: =head2
6919 #: ../fish/guestfish-actions.pod:301
6920 msgid "aug-load"
6921 msgstr ""
6922
6923 #. type: verbatim
6924 #: ../fish/guestfish-actions.pod:303
6925 #, no-wrap
6926 msgid ""
6927 " aug-load\n"
6928 "\n"
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
6933 msgid "Load files into the tree."
6934 msgstr "Завантажити файли до ієрархії."
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
6938 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6939 msgstr ""
6940
6941 #. type: =head2
6942 #: ../fish/guestfish-actions.pod:310
6943 msgid "aug-ls"
6944 msgstr ""
6945
6946 #. type: verbatim
6947 #: ../fish/guestfish-actions.pod:312
6948 #, no-wrap
6949 msgid ""
6950 " aug-ls augpath\n"
6951 "\n"
6952 msgstr ""
6953
6954 #. type: textblock
6955 #: ../fish/guestfish-actions.pod:314
6956 msgid ""
6957 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6958 "resulting nodes into alphabetical order."
6959 msgstr ""
6960
6961 #. type: =head2
6962 #: ../fish/guestfish-actions.pod:317
6963 msgid "aug-match"
6964 msgstr ""
6965
6966 #. type: verbatim
6967 #: ../fish/guestfish-actions.pod:319
6968 #, no-wrap
6969 msgid ""
6970 " aug-match augpath\n"
6971 "\n"
6972 msgstr ""
6973
6974 #. type: textblock
6975 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
6976 msgid ""
6977 "Returns a list of paths which match the path expression C<path>.  The "
6978 "returned paths are sufficiently qualified so that they match exactly one "
6979 "node in the current tree."
6980 msgstr ""
6981
6982 #. type: =head2
6983 #: ../fish/guestfish-actions.pod:325
6984 msgid "aug-mv"
6985 msgstr ""
6986
6987 #. type: verbatim
6988 #: ../fish/guestfish-actions.pod:327
6989 #, no-wrap
6990 msgid ""
6991 " aug-mv src dest\n"
6992 "\n"
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
6997 msgid ""
6998 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6999 "C<dest> is overwritten if it exists."
7000 msgstr ""
7001
7002 #. type: =head2
7003 #: ../fish/guestfish-actions.pod:332
7004 msgid "aug-rm"
7005 msgstr ""
7006
7007 #. type: verbatim
7008 #: ../fish/guestfish-actions.pod:334
7009 #, no-wrap
7010 msgid ""
7011 " aug-rm augpath\n"
7012 "\n"
7013 msgstr ""
7014
7015 #. type: textblock
7016 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
7017 msgid "Remove C<path> and all of its children."
7018 msgstr ""
7019
7020 #. type: textblock
7021 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
7022 msgid "On success this returns the number of entries which were removed."
7023 msgstr ""
7024
7025 #. type: =head2
7026 #: ../fish/guestfish-actions.pod:340
7027 msgid "aug-save"
7028 msgstr ""
7029
7030 #. type: verbatim
7031 #: ../fish/guestfish-actions.pod:342
7032 #, no-wrap
7033 msgid ""
7034 " aug-save\n"
7035 "\n"
7036 msgstr ""
7037
7038 #. type: textblock
7039 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
7040 msgid "This writes all pending changes to disk."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:346
7045 msgid ""
7046 "The flags which were passed to L</aug-init> affect exactly how files are "
7047 "saved."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:349
7052 msgid "aug-set"
7053 msgstr ""
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:351
7057 #, no-wrap
7058 msgid ""
7059 " aug-set augpath val\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
7065 msgid "Set the value associated with C<path> to C<val>."
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../fish/guestfish-actions.pod:355
7070 msgid ""
7071 "In the Augeas API, it is possible to clear a node by setting the value to "
7072 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7073 "this call.  Instead you must use the L</aug-clear> call."
7074 msgstr ""
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:360
7078 msgid "available"
7079 msgstr ""
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:362
7083 #, no-wrap
7084 msgid ""
7085 " available 'groups ...'\n"
7086 "\n"
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
7091 msgid ""
7092 "This command is used to check the availability of some groups of "
7093 "functionality in the appliance, which not all builds of the libguestfs "
7094 "appliance will be able to provide."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:368
7099 msgid ""
7100 "The libguestfs groups, and the functions that those groups correspond to, "
7101 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7102 "runtime by calling L</available-all-groups>."
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
7107 msgid ""
7108 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7109 "\"]> would check for the availability of the Linux inotify functions and "
7110 "Augeas (configuration file editing) functions."
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
7115 msgid "The command returns no error if I<all> requested groups are available."
7116 msgstr ""
7117
7118 #. type: textblock
7119 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
7120 msgid ""
7121 "It fails with an error if one or more of the requested groups is unavailable "
7122 "in the appliance."
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
7127 msgid ""
7128 "If an unknown group name is included in the list of groups then an error is "
7129 "always returned."
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
7134 msgid "I<Notes:>"
7135 msgstr "I<Нотатки:>"
7136
7137 #. type: textblock
7138 #: ../fish/guestfish-actions.pod:392
7139 msgid "You must call L</launch> before calling this function."
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
7144 msgid ""
7145 "The reason is because we don't know what groups are supported by the "
7146 "appliance/daemon until it is running and can be queried."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
7151 msgid ""
7152 "If a group of functions is available, this does not necessarily mean that "
7153 "they will work.  You still have to check for errors when calling individual "
7154 "API functions even if they are available."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
7159 msgid ""
7160 "It is usually the job of distro packagers to build complete functionality "
7161 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7162 "with all requirements satisfied, will support everything."
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:414
7167 msgid ""
7168 "This call was added in version C<1.0.80>.  In previous versions of "
7169 "libguestfs all you could do would be to speculatively execute a command to "
7170 "find out if the daemon implemented it.  See also L</version>."
7171 msgstr ""
7172
7173 #. type: =head2
7174 #: ../fish/guestfish-actions.pod:421
7175 msgid "available-all-groups"
7176 msgstr ""
7177
7178 #. type: verbatim
7179 #: ../fish/guestfish-actions.pod:423
7180 #, no-wrap
7181 msgid ""
7182 " available-all-groups\n"
7183 "\n"
7184 msgstr ""
7185
7186 #. type: textblock
7187 #: ../fish/guestfish-actions.pod:425
7188 msgid ""
7189 "This command returns a list of all optional groups that this daemon knows "
7190 "about.  Note this returns both supported and unsupported groups.  To find "
7191 "out which ones the daemon can actually support you have to call L</"
7192 "available> on each member of the returned list."
7193 msgstr ""
7194
7195 #. type: textblock
7196 #: ../fish/guestfish-actions.pod:431
7197 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7198 msgstr ""
7199
7200 #. type: =head2
7201 #: ../fish/guestfish-actions.pod:433
7202 msgid "base64-in"
7203 msgstr ""
7204
7205 #. type: verbatim
7206 #: ../fish/guestfish-actions.pod:435
7207 #, no-wrap
7208 msgid ""
7209 " base64-in (base64file|-) filename\n"
7210 "\n"
7211 msgstr ""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
7215 msgid ""
7216 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
7221 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
7222 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
7223 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
7224 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4757
7225 #: ../fish/guestfish-actions.pod:4768 ../fish/guestfish-actions.pod:4779
7226 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4840
7227 #: ../fish/guestfish-actions.pod:4894 ../fish/guestfish-actions.pod:4917
7228 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7229 msgstr ""
7230
7231 #. type: =head2
7232 #: ../fish/guestfish-actions.pod:442
7233 msgid "base64-out"
7234 msgstr ""
7235
7236 #. type: verbatim
7237 #: ../fish/guestfish-actions.pod:444
7238 #, no-wrap
7239 msgid ""
7240 " base64-out filename (base64file|-)\n"
7241 "\n"
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
7246 msgid ""
7247 "This command downloads the contents of C<filename>, writing it out to local "
7248 "file C<base64file> encoded as base64."
7249 msgstr ""
7250
7251 #. type: =head2
7252 #: ../fish/guestfish-actions.pod:451
7253 msgid "blockdev-flushbufs"
7254 msgstr ""
7255
7256 #. type: verbatim
7257 #: ../fish/guestfish-actions.pod:453
7258 #, no-wrap
7259 msgid ""
7260 " blockdev-flushbufs device\n"
7261 "\n"
7262 msgstr ""
7263
7264 #. type: textblock
7265 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
7266 msgid ""
7267 "This tells the kernel to flush internal buffers associated with C<device>."
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
7272 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
7273 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
7274 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
7275 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
7276 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
7277 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
7278 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
7279 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
7280 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
7281 msgid "This uses the L<blockdev(8)> command."
7282 msgstr ""
7283
7284 #. type: =head2
7285 #: ../fish/guestfish-actions.pod:460
7286 msgid "blockdev-getbsz"
7287 msgstr ""
7288
7289 #. type: verbatim
7290 #: ../fish/guestfish-actions.pod:462
7291 #, no-wrap
7292 msgid ""
7293 " blockdev-getbsz device\n"
7294 "\n"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
7299 msgid "This returns the block size of a device."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
7304 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
7305 msgid ""
7306 "(Note this is different from both I<size in blocks> and I<filesystem block "
7307 "size>)."
7308 msgstr ""
7309
7310 #. type: =head2
7311 #: ../fish/guestfish-actions.pod:471
7312 msgid "blockdev-getro"
7313 msgstr ""
7314
7315 #. type: verbatim
7316 #: ../fish/guestfish-actions.pod:473
7317 #, no-wrap
7318 msgid ""
7319 " blockdev-getro device\n"
7320 "\n"
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
7325 msgid ""
7326 "Returns a boolean indicating if the block device is read-only (true if read-"
7327 "only, false if not)."
7328 msgstr ""
7329
7330 #. type: =head2
7331 #: ../fish/guestfish-actions.pod:480
7332 msgid "blockdev-getsize64"
7333 msgstr ""
7334
7335 #. type: verbatim
7336 #: ../fish/guestfish-actions.pod:482
7337 #, no-wrap
7338 msgid ""
7339 " blockdev-getsize64 device\n"
7340 "\n"
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
7345 msgid "This returns the size of the device in bytes."
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../fish/guestfish-actions.pod:486
7350 msgid "See also L</blockdev-getsz>."
7351 msgstr ""
7352
7353 #. type: =head2
7354 #: ../fish/guestfish-actions.pod:490
7355 msgid "blockdev-getss"
7356 msgstr ""
7357
7358 #. type: verbatim
7359 #: ../fish/guestfish-actions.pod:492
7360 #, no-wrap
7361 msgid ""
7362 " blockdev-getss device\n"
7363 "\n"
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
7368 msgid ""
7369 "This returns the size of sectors on a block device.  Usually 512, but can be "
7370 "larger for modern devices."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:497
7375 msgid ""
7376 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7377 msgstr ""
7378
7379 #. type: =head2
7380 #: ../fish/guestfish-actions.pod:502
7381 msgid "blockdev-getsz"
7382 msgstr ""
7383
7384 #. type: verbatim
7385 #: ../fish/guestfish-actions.pod:504
7386 #, no-wrap
7387 msgid ""
7388 " blockdev-getsz device\n"
7389 "\n"
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
7394 msgid ""
7395 "This returns the size of the device in units of 512-byte sectors (even if "
7396 "the sectorsize isn't 512 bytes ... weird)."
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:509
7401 msgid ""
7402 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7403 "blockdev-getsize64> for the more useful I<size in bytes>."
7404 msgstr ""
7405
7406 #. type: =head2
7407 #: ../fish/guestfish-actions.pod:515
7408 msgid "blockdev-rereadpt"
7409 msgstr ""
7410
7411 #. type: verbatim
7412 #: ../fish/guestfish-actions.pod:517
7413 #, no-wrap
7414 msgid ""
7415 " blockdev-rereadpt device\n"
7416 "\n"
7417 msgstr ""
7418
7419 #. type: textblock
7420 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
7421 msgid "Reread the partition table on C<device>."
7422 msgstr ""
7423
7424 #. type: =head2
7425 #: ../fish/guestfish-actions.pod:523
7426 msgid "blockdev-setbsz"
7427 msgstr ""
7428
7429 #. type: verbatim
7430 #: ../fish/guestfish-actions.pod:525
7431 #, no-wrap
7432 msgid ""
7433 " blockdev-setbsz device blocksize\n"
7434 "\n"
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
7439 msgid "This sets the block size of a device."
7440 msgstr ""
7441
7442 #. type: =head2
7443 #: ../fish/guestfish-actions.pod:534
7444 msgid "blockdev-setro"
7445 msgstr ""
7446
7447 #. type: verbatim
7448 #: ../fish/guestfish-actions.pod:536
7449 #, no-wrap
7450 msgid ""
7451 " blockdev-setro device\n"
7452 "\n"
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
7457 msgid "Sets the block device named C<device> to read-only."
7458 msgstr ""
7459
7460 #. type: =head2
7461 #: ../fish/guestfish-actions.pod:542
7462 msgid "blockdev-setrw"
7463 msgstr ""
7464
7465 #. type: verbatim
7466 #: ../fish/guestfish-actions.pod:544
7467 #, no-wrap
7468 msgid ""
7469 " blockdev-setrw device\n"
7470 "\n"
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
7475 msgid "Sets the block device named C<device> to read-write."
7476 msgstr ""
7477
7478 #. type: =head2
7479 #: ../fish/guestfish-actions.pod:550
7480 msgid "btrfs-filesystem-resize"
7481 msgstr ""
7482
7483 #. type: verbatim
7484 #: ../fish/guestfish-actions.pod:552
7485 #, no-wrap
7486 msgid ""
7487 " btrfs-filesystem-resize mountpoint [size:..]\n"
7488 "\n"
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
7493 msgid "This command resizes a btrfs filesystem."
7494 msgstr ""
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
7498 msgid ""
7499 "Note that unlike other resize calls, the filesystem has to be mounted and "
7500 "the parameter is the mountpoint not the device (this is a requirement of "
7501 "btrfs itself)."
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3492
7506 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5345
7507 msgid "The optional parameters are:"
7508 msgstr ""
7509
7510 #. type: =item
7511 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3496
7512 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5349
7513 msgid "C<size>"
7514 msgstr ""
7515
7516 #. type: textblock
7517 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
7518 msgid ""
7519 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7520 "resized to the maximum size."
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
7525 msgid "See also L<btrfs(8)>."
7526 msgstr ""
7527
7528 #. type: =head2
7529 #: ../fish/guestfish-actions.pod:575
7530 msgid "case-sensitive-path"
7531 msgstr ""
7532
7533 #. type: verbatim
7534 #: ../fish/guestfish-actions.pod:577
7535 #, no-wrap
7536 msgid ""
7537 " case-sensitive-path path\n"
7538 "\n"
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
7543 msgid ""
7544 "This can be used to resolve case insensitive paths on a filesystem which is "
7545 "case sensitive.  The use case is to resolve paths which you have read from "
7546 "Windows configuration files or the Windows Registry, to the true path."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
7551 msgid ""
7552 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7553 "(and probably others), which is that although the underlying filesystem is "
7554 "case-insensitive, the driver exports the filesystem to Linux as case-"
7555 "sensitive."
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
7560 msgid ""
7561 "One consequence of this is that special directories such as C<c:\\windows> "
7562 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7563 "precise details of how they were created.  In Windows itself this would not "
7564 "be a problem."
7565 msgstr ""
7566
7567 #. type: textblock
7568 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
7569 msgid ""
7570 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7571 "#posixfilenames1>"
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
7576 msgid ""
7577 "This function resolves the true case of each element in the path and returns "
7578 "the case-sensitive path."
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../fish/guestfish-actions.pod:601
7583 msgid ""
7584 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7585 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7586 "the directories were originally created under Windows)."
7587 msgstr ""
7588
7589 #. type: textblock
7590 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
7591 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:609
7596 msgid "See also L</realpath>."
7597 msgstr ""
7598
7599 #. type: =head2
7600 #: ../fish/guestfish-actions.pod:611
7601 msgid "cat"
7602 msgstr "cat"
7603
7604 #. type: verbatim
7605 #: ../fish/guestfish-actions.pod:613
7606 #, no-wrap
7607 msgid ""
7608 " cat path\n"
7609 "\n"
7610 msgstr ""
7611 " cat шлях\n"
7612 "\n"
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3912
7616 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5988
7617 msgid "Return the contents of the file named C<path>."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:617
7622 msgid ""
7623 "Note that this function cannot correctly handle binary files (specifically, "
7624 "files containing C<\\0> character which is treated as end of string).  For "
7625 "those you need to use the L</read-file> or L</download> functions which have "
7626 "a more complex interface."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
7631 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
7632 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
7633 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
7634 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
7635 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
7636 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
7637 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
7638 #: ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3890
7639 #: ../fish/guestfish-actions.pod:3905 ../fish/guestfish-actions.pod:4586
7640 #: ../fish/guestfish-actions.pod:4632 ../fish/guestfish-actions.pod:4717
7641 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:5138
7642 #: ../fish/guestfish-actions.pod:5150 ../fish/guestfish-actions.pod:5168
7643 #: ../fish/guestfish-actions.pod:5185 ../fish/guestfish-actions.pod:5195
7644 #: ../fish/guestfish-actions.pod:5252 ../fish/guestfish-actions.pod:5262
7645 #: ../fish/guestfish-actions.pod:5291 ../fish/guestfish-actions.pod:5301
7646 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
7647 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
7648 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
7649 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
7650 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
7651 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
7652 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
7653 #: ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5796
7654 #: ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5953
7655 #: ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:6944
7656 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7145
7657 #: ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7834
7658 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7887
7659 #: ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:7925
7660 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8038
7661 #: ../src/guestfs-actions.pod:8084 ../src/guestfs-actions.pod:8103
7662 msgid ""
7663 "Because of the message protocol, there is a transfer limit of somewhere "
7664 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7665 msgstr ""
7666
7667 #. type: =head2
7668 #: ../fish/guestfish-actions.pod:625
7669 msgid "checksum"
7670 msgstr "checksum"
7671
7672 #. type: verbatim
7673 #: ../fish/guestfish-actions.pod:627
7674 #, no-wrap
7675 msgid ""
7676 " checksum csumtype path\n"
7677 "\n"
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
7682 msgid ""
7683 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
7688 msgid ""
7689 "The type of checksum to compute is given by the C<csumtype> parameter which "
7690 "must have one of the following values:"
7691 msgstr ""
7692
7693 #. type: =item
7694 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
7695 msgid "C<crc>"
7696 msgstr "C<crc>"
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
7700 msgid ""
7701 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7702 "C<cksum> command."
7703 msgstr ""
7704
7705 #. type: =item
7706 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
7707 msgid "C<md5>"
7708 msgstr "C<md5>"
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
7712 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7713 msgstr ""
7714
7715 #. type: =item
7716 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
7717 msgid "C<sha1>"
7718 msgstr "C<sha1>"
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
7722 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7723 msgstr ""
7724
7725 #. type: =item
7726 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
7727 msgid "C<sha224>"
7728 msgstr "C<sha224>"
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
7732 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7733 msgstr ""
7734
7735 #. type: =item
7736 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
7737 msgid "C<sha256>"
7738 msgstr "C<sha256>"
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
7742 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7743 msgstr ""
7744
7745 #. type: =item
7746 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
7747 msgid "C<sha384>"
7748 msgstr "C<sha384>"
7749
7750 #. type: textblock
7751 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
7752 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7753 msgstr ""
7754
7755 #. type: =item
7756 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
7757 msgid "C<sha512>"
7758 msgstr "C<sha512>"
7759
7760 #. type: textblock
7761 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
7762 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
7767 msgid "The checksum is returned as a printable string."
7768 msgstr ""
7769
7770 #. type: textblock
7771 #: ../fish/guestfish-actions.pod:670
7772 msgid "To get the checksum for a device, use L</checksum-device>."
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../fish/guestfish-actions.pod:672
7777 msgid "To get the checksums for many files, use L</checksums-out>."
7778 msgstr ""
7779
7780 #. type: =head2
7781 #: ../fish/guestfish-actions.pod:674
7782 msgid "checksum-device"
7783 msgstr "checksum-device"
7784
7785 #. type: verbatim
7786 #: ../fish/guestfish-actions.pod:676
7787 #, no-wrap
7788 msgid ""
7789 " checksum-device csumtype device\n"
7790 "\n"
7791 msgstr ""
7792
7793 #. type: textblock
7794 #: ../fish/guestfish-actions.pod:678
7795 msgid ""
7796 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7797 "device named C<device>.  For the types of checksums supported see the L</"
7798 "checksum> command."
7799 msgstr ""
7800
7801 #. type: =head2
7802 #: ../fish/guestfish-actions.pod:682
7803 msgid "checksums-out"
7804 msgstr ""
7805
7806 #. type: verbatim
7807 #: ../fish/guestfish-actions.pod:684
7808 #, no-wrap
7809 msgid ""
7810 " checksums-out csumtype directory (sumsfile|-)\n"
7811 "\n"
7812 msgstr ""
7813
7814 #. type: textblock
7815 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
7816 msgid ""
7817 "This command computes the checksums of all regular files in C<directory> and "
7818 "then emits a list of those checksums to the local output file C<sumsfile>."
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
7823 msgid ""
7824 "This can be used for verifying the integrity of a virtual machine.  However "
7825 "to be properly secure you should pay attention to the output of the checksum "
7826 "command (it uses the ones from GNU coreutils).  In particular when the "
7827 "filename is not printable, coreutils uses a special backslash syntax.  For "
7828 "more information, see the GNU coreutils info file."
7829 msgstr ""
7830
7831 #. type: =head2
7832 #: ../fish/guestfish-actions.pod:700
7833 msgid "chmod"
7834 msgstr "chmod"
7835
7836 #. type: verbatim
7837 #: ../fish/guestfish-actions.pod:702
7838 #, no-wrap
7839 msgid ""
7840 " chmod mode path\n"
7841 "\n"
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
7846 msgid ""
7847 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7848 "supported."
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
7853 msgid ""
7854 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7855 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7856 "C<700>."
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3145
7861 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3294
7862 #: ../fish/guestfish-actions.pod:3304 ../src/guestfs-actions.pod:1064
7863 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4961
7864 #: ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:4999
7865 msgid "The mode actually set is affected by the umask."
7866 msgstr ""
7867
7868 #. type: =head2
7869 #: ../fish/guestfish-actions.pod:713
7870 msgid "chown"
7871 msgstr "chown"
7872
7873 #. type: verbatim
7874 #: ../fish/guestfish-actions.pod:715
7875 #, no-wrap
7876 msgid ""
7877 " chown owner group path\n"
7878 "\n"
7879 msgstr ""
7880
7881 #. type: textblock
7882 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
7883 msgid "Change the file owner to C<owner> and group to C<group>."
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2580
7888 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3823
7889 msgid ""
7890 "Only numeric uid and gid are supported.  If you want to use names, you will "
7891 "need to locate and parse the password file yourself (Augeas support makes "
7892 "this relatively easy)."
7893 msgstr ""
7894
7895 #. type: =head2
7896 #: ../fish/guestfish-actions.pod:723
7897 msgid "command"
7898 msgstr ""
7899
7900 #. type: verbatim
7901 #: ../fish/guestfish-actions.pod:725
7902 #, no-wrap
7903 msgid ""
7904 " command 'arguments ...'\n"
7905 "\n"
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
7910 msgid ""
7911 "This call runs a command from the guest filesystem.  The filesystem must be "
7912 "mounted, and must contain a compatible operating system (ie. something "
7913 "Linux, with the same or compatible processor architecture)."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:732
7918 msgid ""
7919 "The single parameter is an argv-style list of arguments.  The first element "
7920 "is the name of the program to run.  Subsequent elements are parameters.  The "
7921 "list must be non-empty (ie. must contain a program name).  Note that the "
7922 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
7927 msgid "The return value is anything printed to I<stdout> by the command."
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
7932 msgid ""
7933 "If the command returns a non-zero exit status, then this function returns an "
7934 "error message.  The error message string is the content of I<stderr> from "
7935 "the command."
7936 msgstr ""
7937
7938 #. type: textblock
7939 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
7940 msgid ""
7941 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7942 "bin>.  If you require a program from another location, you should provide "
7943 "the full path in the first parameter."
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
7948 msgid ""
7949 "Shared libraries and data files required by the program must be available on "
7950 "filesystems which are mounted in the correct places.  It is the caller's "
7951 "responsibility to ensure all filesystems that are needed are mounted at the "
7952 "right locations."
7953 msgstr ""
7954
7955 #. type: =head2
7956 #: ../fish/guestfish-actions.pod:760
7957 msgid "command-lines"
7958 msgstr ""
7959
7960 #. type: verbatim
7961 #: ../fish/guestfish-actions.pod:762
7962 #, no-wrap
7963 msgid ""
7964 " command-lines 'arguments ...'\n"
7965 "\n"
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:764
7970 msgid ""
7971 "This is the same as L</command>, but splits the result into a list of lines."
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:767
7976 msgid "See also: L</sh-lines>"
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:772
7981 #, fuzzy
7982 #| msgid "pread-device"
7983 msgid "compress-device-out"
7984 msgstr "pread-device"
7985
7986 #. type: verbatim
7987 #: ../fish/guestfish-actions.pod:774
7988 #, no-wrap
7989 msgid ""
7990 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7991 "\n"
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
7996 msgid ""
7997 "This command compresses C<device> and writes it out to the local file "
7998 "C<zdevice>."
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:779
8003 msgid ""
8004 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8005 "compress-out>."
8006 msgstr ""
8007
8008 #. type: =head2
8009 #: ../fish/guestfish-actions.pod:786
8010 #, fuzzy
8011 #| msgid "copy-out"
8012 msgid "compress-out"
8013 msgstr "copy-out"
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:788
8017 #, no-wrap
8018 msgid ""
8019 " compress-out ctype file (zfile|-) [level:..]\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
8025 msgid ""
8026 "This command compresses C<file> and writes it out to the local file C<zfile>."
8027 msgstr ""
8028
8029 #. type: textblock
8030 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
8031 msgid ""
8032 "The compression program used is controlled by the C<ctype> parameter.  "
8033 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8034 "Some compression types may not be supported by particular builds of "
8035 "libguestfs, in which case you will get an error containing the substring "
8036 "\"not supported\"."
8037 msgstr ""
8038
8039 #. type: textblock
8040 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
8041 msgid ""
8042 "The optional C<level> parameter controls compression level.  The meaning and "
8043 "default for this parameter depends on the compression program being used."
8044 msgstr ""
8045
8046 #. type: =head2
8047 #: ../fish/guestfish-actions.pod:807
8048 msgid "config"
8049 msgstr ""
8050
8051 #. type: verbatim
8052 #: ../fish/guestfish-actions.pod:809
8053 #, no-wrap
8054 msgid ""
8055 " config qemuparam qemuvalue\n"
8056 "\n"
8057 msgstr ""
8058
8059 #. type: textblock
8060 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
8061 msgid ""
8062 "This can be used to add arbitrary qemu command line parameters of the form "
8063 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8064 "setting some parameters which would interfere with parameters that we use."
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
8069 msgid "The first character of C<param> string must be a C<-> (dash)."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
8074 msgid "C<value> can be NULL."
8075 msgstr ""
8076
8077 #. type: =head2
8078 #: ../fish/guestfish-actions.pod:820
8079 msgid "copy-size"
8080 msgstr ""
8081
8082 #. type: verbatim
8083 #: ../fish/guestfish-actions.pod:822
8084 #, no-wrap
8085 msgid ""
8086 " copy-size src dest size\n"
8087 "\n"
8088 msgstr ""
8089
8090 #. type: textblock
8091 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
8092 msgid ""
8093 "This command copies exactly C<size> bytes from one source device or file "
8094 "C<src> to another destination device or file C<dest>."
8095 msgstr ""
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
8099 msgid ""
8100 "Note this will fail if the source is too short or if the destination is not "
8101 "large enough."
8102 msgstr ""
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:830
8106 msgid "cp"
8107 msgstr "cp"
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:832
8111 #, no-wrap
8112 msgid ""
8113 " cp src dest\n"
8114 "\n"
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
8119 msgid ""
8120 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8121 "destination filename or destination directory."
8122 msgstr ""
8123
8124 #. type: =head2
8125 #: ../fish/guestfish-actions.pod:837
8126 msgid "cp-a"
8127 msgstr "cp-a"
8128
8129 #. type: verbatim
8130 #: ../fish/guestfish-actions.pod:839
8131 #, no-wrap
8132 msgid ""
8133 " cp-a src dest\n"
8134 "\n"
8135 msgstr ""
8136
8137 #. type: textblock
8138 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
8139 msgid ""
8140 "This copies a file or directory from C<src> to C<dest> recursively using the "
8141 "C<cp -a> command."
8142 msgstr ""
8143
8144 #. type: =head2
8145 #: ../fish/guestfish-actions.pod:844
8146 msgid "dd"
8147 msgstr "dd"
8148
8149 #. type: verbatim
8150 #: ../fish/guestfish-actions.pod:846
8151 #, no-wrap
8152 msgid ""
8153 " dd src dest\n"
8154 "\n"
8155 msgstr ""
8156
8157 #. type: textblock
8158 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
8159 msgid ""
8160 "This command copies from one source device or file C<src> to another "
8161 "destination device or file C<dest>.  Normally you would use this to copy to "
8162 "or from a device or partition, for example to duplicate a filesystem."
8163 msgstr ""
8164
8165 #. type: textblock
8166 #: ../fish/guestfish-actions.pod:853
8167 msgid ""
8168 "If the destination is a device, it must be as large or larger than the "
8169 "source file or device, otherwise the copy will fail.  This command cannot do "
8170 "partial copies (see L</copy-size>)."
8171 msgstr ""
8172
8173 #. type: =head2
8174 #: ../fish/guestfish-actions.pod:857
8175 msgid "df"
8176 msgstr "df"
8177
8178 #. type: verbatim
8179 #: ../fish/guestfish-actions.pod:859
8180 #, no-wrap
8181 msgid ""
8182 " df\n"
8183 "\n"
8184 msgstr ""
8185 " df\n"
8186 "\n"
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
8190 msgid "This command runs the C<df> command to report disk space used."
8191 msgstr ""
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
8195 msgid ""
8196 "This command is mostly useful for interactive sessions.  It is I<not> "
8197 "intended that you try to parse the output string.  Use L</statvfs> from "
8198 "programs."
8199 msgstr ""
8200
8201 #. type: =head2
8202 #: ../fish/guestfish-actions.pod:867
8203 msgid "df-h"
8204 msgstr "df-h"
8205
8206 #. type: verbatim
8207 #: ../fish/guestfish-actions.pod:869
8208 #, no-wrap
8209 msgid ""
8210 " df-h\n"
8211 "\n"
8212 msgstr ""
8213 " df-h\n"
8214 "\n"
8215
8216 #. type: textblock
8217 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
8218 msgid ""
8219 "This command runs the C<df -h> command to report disk space used in human-"
8220 "readable format."
8221 msgstr ""
8222
8223 #. type: =head2
8224 #: ../fish/guestfish-actions.pod:878
8225 msgid "dmesg"
8226 msgstr "dmesg"
8227
8228 #. type: verbatim
8229 #: ../fish/guestfish-actions.pod:880
8230 #, no-wrap
8231 msgid ""
8232 " dmesg\n"
8233 "\n"
8234 msgstr ""
8235 " dmesg\n"
8236 "\n"
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
8240 msgid ""
8241 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8242 "This is sometimes useful for extended debugging of problems."
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:886
8247 msgid ""
8248 "Another way to get the same information is to enable verbose messages with "
8249 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8250 "before running the program."
8251 msgstr ""
8252
8253 #. type: =head2
8254 #: ../fish/guestfish-actions.pod:891
8255 msgid "download"
8256 msgstr "download"
8257
8258 #. type: verbatim
8259 #: ../fish/guestfish-actions.pod:893
8260 #, no-wrap
8261 msgid ""
8262 " download remotefilename (filename|-)\n"
8263 "\n"
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
8268 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
8269 msgid ""
8270 "Download file C<remotefilename> and save it as C<filename> on the local "
8271 "machine."
8272 msgstr ""
8273
8274 #. type: textblock
8275 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4890
8276 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7404
8277 msgid "C<filename> can also be a named pipe."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:900
8282 msgid "See also L</upload>, L</cat>."
8283 msgstr ""
8284
8285 #. type: =head2
8286 #: ../fish/guestfish-actions.pod:904
8287 msgid "download-offset"
8288 msgstr "download-offset"
8289
8290 #. type: verbatim
8291 #: ../fish/guestfish-actions.pod:906
8292 #, no-wrap
8293 msgid ""
8294 " download-offset remotefilename (filename|-) offset size\n"
8295 "\n"
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
8300 msgid ""
8301 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8302 "region must be within the file or device)."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:914
8307 msgid ""
8308 "Note that there is no limit on the amount of data that can be downloaded "
8309 "with this call, unlike with L</pread>, and this call always reads the full "
8310 "amount unless an error occurs."
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:919
8315 msgid "See also L</download>, L</pread>."
8316 msgstr ""
8317
8318 #. type: =head2
8319 #: ../fish/guestfish-actions.pod:923
8320 msgid "drop-caches"
8321 msgstr ""
8322
8323 #. type: verbatim
8324 #: ../fish/guestfish-actions.pod:925
8325 #, no-wrap
8326 msgid ""
8327 " drop-caches whattodrop\n"
8328 "\n"
8329 msgstr ""
8330
8331 #. type: textblock
8332 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
8333 msgid ""
8334 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8335 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8336 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8337 msgstr ""
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
8341 msgid "Setting C<whattodrop> to 3 should drop everything."
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
8346 msgid ""
8347 "This automatically calls L<sync(2)> before the operation, so that the "
8348 "maximum guest memory is freed."
8349 msgstr ""
8350
8351 #. type: =head2
8352 #: ../fish/guestfish-actions.pod:937
8353 msgid "du"
8354 msgstr "du"
8355
8356 #. type: verbatim
8357 #: ../fish/guestfish-actions.pod:939
8358 #, no-wrap
8359 msgid ""
8360 " du path\n"
8361 "\n"
8362 msgstr ""
8363 " du шлях\n"
8364 "\n"
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
8368 msgid ""
8369 "This command runs the C<du -s> command to estimate file space usage for "
8370 "C<path>."
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
8375 msgid ""
8376 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8377 "estimate includes the contents of the directory and all subdirectories "
8378 "(recursively)."
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
8383 msgid ""
8384 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8385 msgstr ""
8386
8387 #. type: =head2
8388 #: ../fish/guestfish-actions.pod:951
8389 msgid "e2fsck-f"
8390 msgstr "e2fsck-f"
8391
8392 #. type: verbatim
8393 #: ../fish/guestfish-actions.pod:953
8394 #, no-wrap
8395 msgid ""
8396 " e2fsck-f device\n"
8397 "\n"
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
8402 msgid ""
8403 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8404 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8405 "clean (I<-f>)."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:959
8410 msgid ""
8411 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8412 "should use L</fsck>."
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:962
8417 msgid "echo-daemon"
8418 msgstr ""
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:964
8422 #, no-wrap
8423 msgid ""
8424 " echo-daemon 'words ...'\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
8430 msgid ""
8431 "This command concatenates the list of C<words> passed with single spaces "
8432 "between them and returns the resulting string."
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
8437 msgid "You can use this command to test the connection through to the daemon."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:971
8442 msgid "See also L</ping-daemon>."
8443 msgstr ""
8444
8445 #. type: =head2
8446 #: ../fish/guestfish-actions.pod:973
8447 msgid "egrep"
8448 msgstr "egrep"
8449
8450 #. type: verbatim
8451 #: ../fish/guestfish-actions.pod:975
8452 #, no-wrap
8453 msgid ""
8454 " egrep regex path\n"
8455 "\n"
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
8460 msgid ""
8461 "This calls the external C<egrep> program and returns the matching lines."
8462 msgstr ""
8463
8464 #. type: =head2
8465 #: ../fish/guestfish-actions.pod:983
8466 msgid "egrepi"
8467 msgstr "egrepi"
8468
8469 #. type: verbatim
8470 #: ../fish/guestfish-actions.pod:985
8471 #, no-wrap
8472 msgid ""
8473 " egrepi regex path\n"
8474 "\n"
8475 msgstr ""
8476
8477 #. type: textblock
8478 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
8479 msgid ""
8480 "This calls the external C<egrep -i> program and returns the matching lines."
8481 msgstr ""
8482
8483 #. type: =head2
8484 #: ../fish/guestfish-actions.pod:993
8485 msgid "equal"
8486 msgstr "equal"
8487
8488 #. type: verbatim
8489 #: ../fish/guestfish-actions.pod:995
8490 #, no-wrap
8491 msgid ""
8492 " equal file1 file2\n"
8493 "\n"
8494 msgstr ""
8495 " equal файл1 файл2\n"
8496 "\n"
8497
8498 #. type: textblock
8499 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
8500 msgid ""
8501 "This compares the two files C<file1> and C<file2> and returns true if their "
8502 "content is exactly equal, or false otherwise."
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
8507 msgid "The external L<cmp(1)> program is used for the comparison."
8508 msgstr ""
8509
8510 #. type: =head2
8511 #: ../fish/guestfish-actions.pod:1002
8512 msgid "exists"
8513 msgstr "exists"
8514
8515 #. type: verbatim
8516 #: ../fish/guestfish-actions.pod:1004
8517 #, no-wrap
8518 msgid ""
8519 " exists path\n"
8520 "\n"
8521 msgstr ""
8522 " exists шлях\n"
8523 "\n"
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
8527 msgid ""
8528 "This returns C<true> if and only if there is a file, directory (or anything) "
8529 "with the given C<path> name."
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:1009
8534 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8535 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8536
8537 #. type: =head2
8538 #: ../fish/guestfish-actions.pod:1011
8539 msgid "fallocate"
8540 msgstr "fallocate"
8541
8542 #. type: verbatim
8543 #: ../fish/guestfish-actions.pod:1013
8544 #, no-wrap
8545 msgid ""
8546 " fallocate path len\n"
8547 "\n"
8548 msgstr ""
8549 " fallocate шлях довжина\n"
8550 "\n"
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
8554 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
8555 msgid ""
8556 "This command preallocates a file (containing zero bytes) named C<path> of "
8557 "size C<len> bytes.  If the file exists already, it is overwritten."
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
8562 msgid ""
8563 "Do not confuse this with the guestfish-specific C<alloc> command which "
8564 "allocates a file in the host and attaches it as a device."
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../fish/guestfish-actions.pod:1023
8569 msgid ""
8570 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8571 "instead."
8572 msgstr ""
8573
8574 #. type: =head2
8575 #: ../fish/guestfish-actions.pod:1030
8576 msgid "fallocate64"
8577 msgstr "fallocate64"
8578
8579 #. type: verbatim
8580 #: ../fish/guestfish-actions.pod:1032
8581 #, no-wrap
8582 msgid ""
8583 " fallocate64 path len\n"
8584 "\n"
8585 msgstr ""
8586 " fallocate64 шлях довжина\n"
8587 "\n"
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:1038
8591 msgid ""
8592 "Note that this call allocates disk blocks for the file.  To create a sparse "
8593 "file use L</truncate-size> instead."
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1041
8598 msgid ""
8599 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8600 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8601 "maximum size of files created through that call to 1GB."
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
8606 msgid ""
8607 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8608 "commands which create a file in the host and attach it as a device."
8609 msgstr ""
8610
8611 #. type: =head2
8612 #: ../fish/guestfish-actions.pod:1050
8613 msgid "fgrep"
8614 msgstr "fgrep"
8615
8616 #. type: verbatim
8617 #: ../fish/guestfish-actions.pod:1052
8618 #, no-wrap
8619 msgid ""
8620 " fgrep pattern path\n"
8621 "\n"
8622 msgstr ""
8623 " fgrep шаблон шлях\n"
8624 "\n"
8625
8626 #. type: textblock
8627 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
8628 msgid ""
8629 "This calls the external C<fgrep> program and returns the matching lines."
8630 msgstr ""
8631
8632 #. type: =head2
8633 #: ../fish/guestfish-actions.pod:1060
8634 msgid "fgrepi"
8635 msgstr "fgrepi"
8636
8637 #. type: verbatim
8638 #: ../fish/guestfish-actions.pod:1062
8639 #, no-wrap
8640 msgid ""
8641 " fgrepi pattern path\n"
8642 "\n"
8643 msgstr ""
8644 " fgrepi шаблон шлях\n"
8645 "\n"
8646
8647 #. type: textblock
8648 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
8649 msgid ""
8650 "This calls the external C<fgrep -i> program and returns the matching lines."
8651 msgstr ""
8652
8653 #. type: =head2
8654 #: ../fish/guestfish-actions.pod:1070
8655 msgid "file"
8656 msgstr "file"
8657
8658 #. type: verbatim
8659 #: ../fish/guestfish-actions.pod:1072
8660 #, no-wrap
8661 msgid ""
8662 " file path\n"
8663 "\n"
8664 msgstr ""
8665 " file шлях\n"
8666 "\n"
8667
8668 #. type: textblock
8669 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
8670 msgid ""
8671 "This call uses the standard L<file(1)> command to determine the type or "
8672 "contents of the file."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
8677 msgid ""
8678 "This call will also transparently look inside various types of compressed "
8679 "file."
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
8684 msgid ""
8685 "The exact command which runs is C<file -zb path>.  Note in particular that "
8686 "the filename is not prepended to the output (the I<-b> option)."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
8691 msgid ""
8692 "The output depends on the output of the underlying L<file(1)> command and it "
8693 "can change in future in ways beyond our control.  In other words, the output "
8694 "is not guaranteed by the ABI."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1088
8699 msgid ""
8700 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8701 "(etc), L</is-zero>."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:1091
8706 msgid "file-architecture"
8707 msgstr "file-architecture"
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:1093
8711 #, no-wrap
8712 msgid ""
8713 " file-architecture filename\n"
8714 "\n"
8715 msgstr ""
8716 " file-architecture назва_файла\n"
8717 "\n"
8718
8719 #. type: textblock
8720 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
8721 msgid ""
8722 "This detects the architecture of the binary C<filename>, and returns it if "
8723 "known."
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
8728 msgid "Currently defined architectures are:"
8729 msgstr ""
8730
8731 #. type: =item
8732 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
8733 msgid "\"i386\""
8734 msgstr "\"i386\""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
8738 msgid ""
8739 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8740 "irrespective of the precise processor requirements of the binary."
8741 msgstr ""
8742
8743 #. type: =item
8744 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
8745 msgid "\"x86_64\""
8746 msgstr "\"x86_64\""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
8750 msgid "64 bit x86-64."
8751 msgstr ""
8752
8753 #. type: =item
8754 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
8755 msgid "\"sparc\""
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
8760 msgid "32 bit SPARC."
8761 msgstr ""
8762
8763 #. type: =item
8764 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
8765 msgid "\"sparc64\""
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
8770 msgid "64 bit SPARC V9 and above."
8771 msgstr ""
8772
8773 #. type: =item
8774 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
8775 msgid "\"ia64\""
8776 msgstr "\"ia64\""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
8780 msgid "Intel Itanium."
8781 msgstr "Intel Itanium."
8782
8783 #. type: =item
8784 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
8785 msgid "\"ppc\""
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
8790 msgid "32 bit Power PC."
8791 msgstr ""
8792
8793 #. type: =item
8794 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
8795 msgid "\"ppc64\""
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
8800 msgid "64 bit Power PC."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
8805 msgid "Libguestfs may return other architecture strings in future."
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
8810 msgid "The function works on at least the following types of files:"
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
8815 msgid "many types of Un*x and Linux binary"
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
8820 msgid "many types of Un*x and Linux shared library"
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
8825 msgid "Windows Win32 and Win64 binaries"
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
8830 msgid "Windows Win32 and Win64 DLLs"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
8835 msgid "Win32 binaries and DLLs return C<i386>."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
8840 msgid "Win64 binaries and DLLs return C<x86_64>."
8841 msgstr ""
8842
8843 #. type: textblock
8844 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
8845 msgid "Linux kernel modules"
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
8850 msgid "Linux new-style initrd images"
8851 msgstr ""
8852
8853 #. type: textblock
8854 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
8855 msgid "some non-x86 Linux vmlinuz kernels"
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
8860 msgid "What it can't do currently:"
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
8865 msgid "static libraries (libfoo.a)"
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
8870 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8871 msgstr ""
8872
8873 #. type: textblock
8874 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
8875 msgid "x86 Linux vmlinuz kernels"
8876 msgstr ""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
8880 msgid ""
8881 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8882 "compressed code, and are horribly hard to unpack.  If you want to find the "
8883 "architecture of a kernel, use the architecture of the associated initrd or "
8884 "kernel module(s) instead."
8885 msgstr ""
8886
8887 #. type: =head2
8888 #: ../fish/guestfish-actions.pod:1196
8889 msgid "filesize"
8890 msgstr "filesize"
8891
8892 #. type: verbatim
8893 #: ../fish/guestfish-actions.pod:1198
8894 #, no-wrap
8895 msgid ""
8896 " filesize file\n"
8897 "\n"
8898 msgstr ""
8899 " filesize файл\n"
8900 "\n"
8901
8902 #. type: textblock
8903 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
8904 msgid "This command returns the size of C<file> in bytes."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:1202
8909 msgid ""
8910 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8911 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8912 msgstr ""
8913
8914 #. type: =head2
8915 #: ../fish/guestfish-actions.pod:1206
8916 msgid "fill"
8917 msgstr "fill"
8918
8919 #. type: verbatim
8920 #: ../fish/guestfish-actions.pod:1208
8921 #, no-wrap
8922 msgid ""
8923 " fill c len path\n"
8924 "\n"
8925 msgstr ""
8926
8927 #. type: textblock
8928 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
8929 msgid ""
8930 "This command creates a new file called C<path>.  The initial content of the "
8931 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8932 "[0..255]>."
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:1214
8937 msgid ""
8938 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8939 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8940 "L</fill-pattern>."
8941 msgstr ""
8942
8943 #. type: =head2
8944 #: ../fish/guestfish-actions.pod:1219
8945 msgid "fill-pattern"
8946 msgstr "fill-pattern"
8947
8948 #. type: verbatim
8949 #: ../fish/guestfish-actions.pod:1221
8950 #, no-wrap
8951 msgid ""
8952 " fill-pattern pattern len path\n"
8953 "\n"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1223
8958 msgid ""
8959 "This function is like L</fill> except that it creates a new file of length "
8960 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8961 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8962 "bytes."
8963 msgstr ""
8964
8965 #. type: =head2
8966 #: ../fish/guestfish-actions.pod:1228
8967 msgid "find"
8968 msgstr "find"
8969
8970 #. type: verbatim
8971 #: ../fish/guestfish-actions.pod:1230
8972 #, no-wrap
8973 msgid ""
8974 " find directory\n"
8975 "\n"
8976 msgstr ""
8977 " find каталог\n"
8978 "\n"
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
8982 msgid ""
8983 "This command lists out all files and directories, recursively, starting at "
8984 "C<directory>.  It is essentially equivalent to running the shell command "
8985 "C<find directory -print> but some post-processing happens on the output, "
8986 "described below."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
8991 msgid ""
8992 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8993 "structure was:"
8994 msgstr ""
8995
8996 #. type: verbatim
8997 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
8998 #, no-wrap
8999 msgid ""
9000 " /tmp/a\n"
9001 " /tmp/b\n"
9002 " /tmp/c/d\n"
9003 "\n"
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:1244
9008 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9009 msgstr ""
9010
9011 #. type: verbatim
9012 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
9013 #, no-wrap
9014 msgid ""
9015 " a\n"
9016 " b\n"
9017 " c\n"
9018 " c/d\n"
9019 "\n"
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
9024 msgid "If C<directory> is not a directory, then this command returns an error."
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
9029 msgid "The returned list is sorted."
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1257
9034 msgid "See also L</find0>."
9035 msgstr "Див. також L</find0>."
9036
9037 #. type: =head2
9038 #: ../fish/guestfish-actions.pod:1262
9039 msgid "find0"
9040 msgstr "find0"
9041
9042 #. type: verbatim
9043 #: ../fish/guestfish-actions.pod:1264
9044 #, no-wrap
9045 msgid ""
9046 " find0 directory (files|-)\n"
9047 "\n"
9048 msgstr ""
9049 " find0 каталог (файли|-)\n"
9050 "\n"
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
9054 msgid ""
9055 "This command lists out all files and directories, recursively, starting at "
9056 "C<directory>, placing the resulting list in the external file called "
9057 "C<files>."
9058 msgstr ""
9059
9060 #. type: textblock
9061 #: ../fish/guestfish-actions.pod:1270
9062 msgid ""
9063 "This command works the same way as L</find> with the following exceptions:"
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
9068 msgid "The resulting list is written to an external file."
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
9073 msgid ""
9074 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9075 "L<find(1)> option I<-print0>."
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
9080 msgid "This command is not limited in the number of names that it can return."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
9085 msgid "The result list is not sorted."
9086 msgstr ""
9087
9088 #. type: =head2
9089 #: ../fish/guestfish-actions.pod:1297
9090 msgid "findfs-label"
9091 msgstr "findfs-label"
9092
9093 #. type: verbatim
9094 #: ../fish/guestfish-actions.pod:1299
9095 #, no-wrap
9096 msgid ""
9097 " findfs-label label\n"
9098 "\n"
9099 msgstr ""
9100 " findfs-label мітка\n"
9101 "\n"
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
9105 msgid ""
9106 "This command searches the filesystems and returns the one which has the "
9107 "given label.  An error is returned if no such filesystem can be found."
9108 msgstr ""
9109
9110 #. type: textblock
9111 #: ../fish/guestfish-actions.pod:1305
9112 msgid "To find the label of a filesystem, use L</vfs-label>."
9113 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9114
9115 #. type: =head2
9116 #: ../fish/guestfish-actions.pod:1307
9117 msgid "findfs-uuid"
9118 msgstr "findfs-uuid"
9119
9120 #. type: verbatim
9121 #: ../fish/guestfish-actions.pod:1309
9122 #, no-wrap
9123 msgid ""
9124 " findfs-uuid uuid\n"
9125 "\n"
9126 msgstr ""
9127 " findfs-uuid uuid\n"
9128 "\n"
9129
9130 #. type: textblock
9131 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
9132 msgid ""
9133 "This command searches the filesystems and returns the one which has the "
9134 "given UUID.  An error is returned if no such filesystem can be found."
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1315
9139 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9140 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:1317
9144 msgid "fsck"
9145 msgstr "fsck"
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:1319
9149 #, no-wrap
9150 msgid ""
9151 " fsck fstype device\n"
9152 "\n"
9153 msgstr ""
9154 " fsck тип_файлової_системи пристрій\n"
9155 "\n"
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
9159 msgid ""
9160 "This runs the filesystem checker (fsck) on C<device> which should have "
9161 "filesystem type C<fstype>."
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
9166 msgid ""
9167 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9168 "codes from C<fsck>."
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
9173 msgid "Multiple status codes can be summed together."
9174 msgstr ""
9175
9176 #. type: textblock
9177 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
9178 msgid ""
9179 "A non-zero return code can mean \"success\", for example if errors have been "
9180 "corrected on the filesystem."
9181 msgstr ""
9182
9183 #. type: textblock
9184 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
9185 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
9190 msgid ""
9191 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9192 msgstr ""
9193
9194 #. type: =head2
9195 #: ../fish/guestfish-actions.pod:1349
9196 msgid "get-append"
9197 msgstr "get-append"
9198
9199 #. type: verbatim
9200 #: ../fish/guestfish-actions.pod:1351
9201 #, no-wrap
9202 msgid ""
9203 " get-append\n"
9204 "\n"
9205 msgstr ""
9206 " get-append\n"
9207 "\n"
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
9211 msgid ""
9212 "Return the additional kernel options which are added to the guest kernel "
9213 "command line."
9214 msgstr ""
9215
9216 #. type: textblock
9217 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
9218 msgid "If C<NULL> then no options are added."
9219 msgstr ""
9220
9221 #. type: =head2
9222 #: ../fish/guestfish-actions.pod:1358
9223 msgid "get-attach-method"
9224 msgstr "get-attach-method"
9225
9226 #. type: verbatim
9227 #: ../fish/guestfish-actions.pod:1360
9228 #, no-wrap
9229 msgid ""
9230 " get-attach-method\n"
9231 "\n"
9232 msgstr ""
9233 " get-attach-method\n"
9234 "\n"
9235
9236 #. type: textblock
9237 #: ../fish/guestfish-actions.pod:1362
9238 msgid "Return the current attach method.  See L</set-attach-method>."
9239 msgstr ""
9240
9241 #. type: =head2
9242 #: ../fish/guestfish-actions.pod:1364
9243 msgid "get-autosync"
9244 msgstr "get-autosync"
9245
9246 #. type: verbatim
9247 #: ../fish/guestfish-actions.pod:1366
9248 #, no-wrap
9249 msgid ""
9250 " get-autosync\n"
9251 "\n"
9252 msgstr ""
9253 " get-autosync\n"
9254 "\n"
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
9258 msgid "Get the autosync flag."
9259 msgstr ""
9260
9261 #. type: =head2
9262 #: ../fish/guestfish-actions.pod:1370
9263 msgid "get-direct"
9264 msgstr "get-direct"
9265
9266 #. type: verbatim
9267 #: ../fish/guestfish-actions.pod:1372
9268 #, no-wrap
9269 msgid ""
9270 " get-direct\n"
9271 "\n"
9272 msgstr ""
9273 " get-direct\n"
9274 "\n"
9275
9276 #. type: textblock
9277 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
9278 msgid "Return the direct appliance mode flag."
9279 msgstr ""
9280
9281 #. type: =head2
9282 #: ../fish/guestfish-actions.pod:1376
9283 msgid "get-e2label"
9284 msgstr "get-e2label"
9285
9286 #. type: verbatim
9287 #: ../fish/guestfish-actions.pod:1378
9288 #, no-wrap
9289 msgid ""
9290 " get-e2label device\n"
9291 "\n"
9292 msgstr ""
9293 " get-e2label пристрій\n"
9294 "\n"
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
9298 msgid ""
9299 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9300 msgstr ""
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:1383
9304 msgid ""
9305 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9306 "instead."
9307 msgstr ""
9308
9309 #. type: =head2
9310 #: ../fish/guestfish-actions.pod:1390
9311 msgid "get-e2uuid"
9312 msgstr "get-e2uuid"
9313
9314 #. type: verbatim
9315 #: ../fish/guestfish-actions.pod:1392
9316 #, no-wrap
9317 msgid ""
9318 " get-e2uuid device\n"
9319 "\n"
9320 msgstr ""
9321 " get-e2uuid пристрій\n"
9322 "\n"
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
9326 msgid ""
9327 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1397
9332 msgid ""
9333 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9334 "instead."
9335 msgstr ""
9336
9337 #. type: =head2
9338 #: ../fish/guestfish-actions.pod:1404
9339 msgid "get-memsize"
9340 msgstr "get-memsize"
9341
9342 #. type: verbatim
9343 #: ../fish/guestfish-actions.pod:1406
9344 #, no-wrap
9345 msgid ""
9346 " get-memsize\n"
9347 "\n"
9348 msgstr ""
9349 " get-memsize\n"
9350 "\n"
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
9354 msgid ""
9355 "This gets the memory size in megabytes allocated to the qemu subprocess."
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:1411
9360 msgid ""
9361 "If L</set-memsize> was not called on this handle, and if "
9362 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9363 "value for memsize."
9364 msgstr ""
9365
9366 #. type: textblock
9367 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
9368 #: ../fish/guestfish-actions.pod:4238 ../fish/guestfish-actions.pod:4340
9369 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
9370 #: ../src/guestfs-actions.pod:6449 ../src/guestfs-actions.pod:6575
9371 msgid ""
9372 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9373 msgstr ""
9374
9375 #. type: =head2
9376 #: ../fish/guestfish-actions.pod:1418
9377 msgid "get-network"
9378 msgstr "get-network"
9379
9380 #. type: verbatim
9381 #: ../fish/guestfish-actions.pod:1420
9382 #, no-wrap
9383 msgid ""
9384 " get-network\n"
9385 "\n"
9386 msgstr ""
9387 " get-network\n"
9388 "\n"
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
9392 msgid "This returns the enable network flag."
9393 msgstr ""
9394
9395 #. type: =head2
9396 #: ../fish/guestfish-actions.pod:1424
9397 msgid "get-path"
9398 msgstr "get-path"
9399
9400 #. type: verbatim
9401 #: ../fish/guestfish-actions.pod:1426
9402 #, no-wrap
9403 msgid ""
9404 " get-path\n"
9405 "\n"
9406 msgstr ""
9407 " get-path\n"
9408 "\n"
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
9412 msgid "Return the current search path."
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
9417 msgid ""
9418 "This is always non-NULL.  If it wasn't set already, then this will return "
9419 "the default path."
9420 msgstr ""
9421
9422 #. type: =head2
9423 #: ../fish/guestfish-actions.pod:1433
9424 msgid "get-pgroup"
9425 msgstr ""
9426
9427 #. type: verbatim
9428 #: ../fish/guestfish-actions.pod:1435
9429 #, no-wrap
9430 msgid ""
9431 " get-pgroup\n"
9432 "\n"
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
9437 msgid "This returns the process group flag."
9438 msgstr ""
9439
9440 #. type: =head2
9441 #: ../fish/guestfish-actions.pod:1439
9442 msgid "get-pid"
9443 msgstr "get-pid"
9444
9445 #. type: =head2
9446 #: ../fish/guestfish-actions.pod:1441
9447 msgid "pid"
9448 msgstr ""
9449
9450 #. type: verbatim
9451 #: ../fish/guestfish-actions.pod:1443
9452 #, no-wrap
9453 msgid ""
9454 " get-pid\n"
9455 "\n"
9456 msgstr ""
9457 " get-pid\n"
9458 "\n"
9459
9460 #. type: textblock
9461 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
9462 msgid ""
9463 "Return the process ID of the qemu subprocess.  If there is no qemu "
9464 "subprocess, then this will return an error."
9465 msgstr ""
9466
9467 #. type: textblock
9468 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
9469 msgid "This is an internal call used for debugging and testing."
9470 msgstr ""
9471
9472 #. type: =head2
9473 #: ../fish/guestfish-actions.pod:1450
9474 msgid "get-qemu"
9475 msgstr "get-qemu"
9476
9477 #. type: verbatim
9478 #: ../fish/guestfish-actions.pod:1452
9479 #, no-wrap
9480 msgid ""
9481 " get-qemu\n"
9482 "\n"
9483 msgstr ""
9484 " get-qemu\n"
9485 "\n"
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
9489 msgid "Return the current qemu binary."
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
9494 msgid ""
9495 "This is always non-NULL.  If it wasn't set already, then this will return "
9496 "the default qemu binary name."
9497 msgstr ""
9498
9499 #. type: =head2
9500 #: ../fish/guestfish-actions.pod:1459
9501 msgid "get-recovery-proc"
9502 msgstr "get-recovery-proc"
9503
9504 #. type: verbatim
9505 #: ../fish/guestfish-actions.pod:1461
9506 #, no-wrap
9507 msgid ""
9508 " get-recovery-proc\n"
9509 "\n"
9510 msgstr ""
9511 " get-recovery-proc\n"
9512 "\n"
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
9516 msgid "Return the recovery process enabled flag."
9517 msgstr ""
9518
9519 #. type: =head2
9520 #: ../fish/guestfish-actions.pod:1465
9521 msgid "get-selinux"
9522 msgstr "get-selinux"
9523
9524 #. type: verbatim
9525 #: ../fish/guestfish-actions.pod:1467
9526 #, no-wrap
9527 msgid ""
9528 " get-selinux\n"
9529 "\n"
9530 msgstr ""
9531 " get-selinux\n"
9532 "\n"
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:1469
9536 msgid ""
9537 "This returns the current setting of the selinux flag which is passed to the "
9538 "appliance at boot time.  See L</set-selinux>."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:1475
9543 #, fuzzy
9544 #| msgid "get-pid"
9545 msgid "get-smp"
9546 msgstr "get-pid"
9547
9548 #. type: verbatim
9549 #: ../fish/guestfish-actions.pod:1477
9550 #, fuzzy, no-wrap
9551 #| msgid ""
9552 #| " get-pid\n"
9553 #| "\n"
9554 msgid ""
9555 " get-smp\n"
9556 "\n"
9557 msgstr ""
9558 " get-pid\n"
9559 "\n"
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
9563 msgid "This returns the number of virtual CPUs assigned to the appliance."
9564 msgstr ""
9565
9566 #. type: =head2
9567 #: ../fish/guestfish-actions.pod:1481
9568 msgid "get-state"
9569 msgstr "get-state"
9570
9571 #. type: verbatim
9572 #: ../fish/guestfish-actions.pod:1483
9573 #, no-wrap
9574 msgid ""
9575 " get-state\n"
9576 "\n"
9577 msgstr ""
9578 " get-state\n"
9579 "\n"
9580
9581 #. type: textblock
9582 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
9583 msgid ""
9584 "This returns the current state as an opaque integer.  This is only useful "
9585 "for printing debug and internal error messages."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2447
9590 #: ../fish/guestfish-actions.pod:2465 ../fish/guestfish-actions.pod:2503
9591 #: ../fish/guestfish-actions.pod:2519 ../src/guestfs-actions.pod:2281
9592 #: ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3629
9593 #: ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:3717
9594 msgid "For more information on states, see L<guestfs(3)>."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1490
9599 msgid "get-trace"
9600 msgstr "get-trace"
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1492
9604 #, no-wrap
9605 msgid ""
9606 " get-trace\n"
9607 "\n"
9608 msgstr ""
9609 " get-trace\n"
9610 "\n"
9611
9612 #. type: textblock
9613 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
9614 msgid "Return the command trace flag."
9615 msgstr ""
9616
9617 #. type: =head2
9618 #: ../fish/guestfish-actions.pod:1496
9619 msgid "get-umask"
9620 msgstr "get-umask"
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1498
9624 #, no-wrap
9625 msgid ""
9626 " get-umask\n"
9627 "\n"
9628 msgstr ""
9629 " get-umask\n"
9630 "\n"
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:1500
9634 msgid ""
9635 "Return the current umask.  By default the umask is C<022> unless it has been "
9636 "set by calling L</umask>."
9637 msgstr ""
9638
9639 #. type: =head2
9640 #: ../fish/guestfish-actions.pod:1503
9641 msgid "get-verbose"
9642 msgstr "get-verbose"
9643
9644 #. type: verbatim
9645 #: ../fish/guestfish-actions.pod:1505
9646 #, no-wrap
9647 msgid ""
9648 " get-verbose\n"
9649 "\n"
9650 msgstr ""
9651 " get-verbose\n"
9652 "\n"
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
9656 msgid "This returns the verbose messages flag."
9657 msgstr ""
9658
9659 #. type: =head2
9660 #: ../fish/guestfish-actions.pod:1509
9661 msgid "getcon"
9662 msgstr "getcon"
9663
9664 #. type: verbatim
9665 #: ../fish/guestfish-actions.pod:1511
9666 #, no-wrap
9667 msgid ""
9668 " getcon\n"
9669 "\n"
9670 msgstr ""
9671 " getcon\n"
9672 "\n"
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
9676 msgid "This gets the SELinux security context of the daemon."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:1515
9681 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9682 msgstr ""
9683
9684 #. type: =head2
9685 #: ../fish/guestfish-actions.pod:1518
9686 msgid "getxattr"
9687 msgstr "getxattr"
9688
9689 #. type: verbatim
9690 #: ../fish/guestfish-actions.pod:1520
9691 #, no-wrap
9692 msgid ""
9693 " getxattr path name\n"
9694 "\n"
9695 msgstr ""
9696 " getxattr шлях назва\n"
9697 "\n"
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:1522
9701 msgid ""
9702 "Get a single extended attribute from file C<path> named C<name>.  This call "
9703 "follows symlinks.  If you want to lookup an extended attribute for the "
9704 "symlink itself, use L</lgetxattr>."
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2592
9709 msgid ""
9710 "Normally it is better to get all extended attributes from a file in one go "
9711 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9712 "buggy and do not provide a way to list out attributes.  For these "
9713 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9714 "attributes you want in advance and call this function."
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2599
9719 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3850
9720 msgid ""
9721 "Extended attribute values are blobs of binary data.  If there is no extended "
9722 "attribute named C<name>, this returns an error."
9723 msgstr ""
9724
9725 #. type: textblock
9726 #: ../fish/guestfish-actions.pod:1536
9727 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9728 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9729
9730 #. type: =head2
9731 #: ../fish/guestfish-actions.pod:1538
9732 msgid "getxattrs"
9733 msgstr "getxattrs"
9734
9735 #. type: verbatim
9736 #: ../fish/guestfish-actions.pod:1540
9737 #, no-wrap
9738 msgid ""
9739 " getxattrs path\n"
9740 "\n"
9741 msgstr ""
9742 " getxattrs шлях\n"
9743 "\n"
9744
9745 #. type: textblock
9746 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
9747 msgid ""
9748 "This call lists the extended attributes of the file or directory C<path>."
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
9753 msgid ""
9754 "At the system call level, this is a combination of the L<listxattr(2)> and "
9755 "L<getxattr(2)> calls."
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1548
9760 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9761 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9762
9763 #. type: =head2
9764 #: ../fish/guestfish-actions.pod:1550
9765 msgid "glob-expand"
9766 msgstr "glob-expand"
9767
9768 #. type: verbatim
9769 #: ../fish/guestfish-actions.pod:1552
9770 #, no-wrap
9771 msgid ""
9772 " glob-expand pattern\n"
9773 "\n"
9774 msgstr ""
9775 " glob-expand шаблон\n"
9776 "\n"
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
9780 msgid ""
9781 "This command searches for all the pathnames matching C<pattern> according to "
9782 "the wildcard expansion rules used by the shell."
9783 msgstr ""
9784
9785 #. type: textblock
9786 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
9787 msgid ""
9788 "If no paths match, then this returns an empty list (note: not an error)."
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
9793 msgid ""
9794 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9795 "GLOB_BRACE>.  See that manual page for more details."
9796 msgstr ""
9797
9798 #. type: =head2
9799 #: ../fish/guestfish-actions.pod:1565
9800 msgid "grep"
9801 msgstr "grep"
9802
9803 #. type: verbatim
9804 #: ../fish/guestfish-actions.pod:1567
9805 #, no-wrap
9806 msgid ""
9807 " grep regex path\n"
9808 "\n"
9809 msgstr ""
9810 " grepi формальний_вираз шлях\n"
9811 "\n"
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
9815 msgid "This calls the external C<grep> program and returns the matching lines."
9816 msgstr ""
9817
9818 #. type: =head2
9819 #: ../fish/guestfish-actions.pod:1575
9820 msgid "grepi"
9821 msgstr "grepi"
9822
9823 #. type: verbatim
9824 #: ../fish/guestfish-actions.pod:1577
9825 #, no-wrap
9826 msgid ""
9827 " grepi regex path\n"
9828 "\n"
9829 msgstr ""
9830 " grepi формальний_вираз шлях\n"
9831 "\n"
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
9835 msgid ""
9836 "This calls the external C<grep -i> program and returns the matching lines."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:1585
9841 msgid "grub-install"
9842 msgstr "grub-install"
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:1587
9846 #, no-wrap
9847 msgid ""
9848 " grub-install root device\n"
9849 "\n"
9850 msgstr ""
9851 " grub-install кореневий пристрій\n"
9852 "\n"
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
9856 msgid ""
9857 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9858 "with the root directory being C<root>."
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
9863 msgid ""
9864 "There is currently no way in the API to install grub2, which is used by most "
9865 "modern Linux guests.  It is possible to run the grub2 command from the "
9866 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9867 msgstr ""
9868
9869 #. type: textblock
9870 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
9871 msgid ""
9872 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9873 "compatible with itself, so this only works in rather narrow circumstances.  "
9874 "Careful testing with each guest version is advisable."
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
9879 msgid ""
9880 "If grub-install reports the error \"No suitable drive was found in the "
9881 "generated device map.\" it may be that you need to create a C</boot/grub/"
9882 "device.map> file first that contains the mapping between grub device names "
9883 "and Linux device names.  It is usually sufficient to create a file "
9884 "containing:"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
9889 #, no-wrap
9890 msgid ""
9891 " (hd0) /dev/vda\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
9897 msgid "replacing C</dev/vda> with the name of the installation device."
9898 msgstr ""
9899
9900 #. type: =head2
9901 #: ../fish/guestfish-actions.pod:1625
9902 msgid "head"
9903 msgstr "head"
9904
9905 #. type: verbatim
9906 #: ../fish/guestfish-actions.pod:1627
9907 #, no-wrap
9908 msgid ""
9909 " head path\n"
9910 "\n"
9911 msgstr ""
9912 " head шлях\n"
9913 "\n"
9914
9915 #. type: textblock
9916 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
9917 msgid ""
9918 "This command returns up to the first 10 lines of a file as a list of strings."
9919 msgstr ""
9920
9921 #. type: =head2
9922 #: ../fish/guestfish-actions.pod:1635
9923 msgid "head-n"
9924 msgstr "head-n"
9925
9926 #. type: verbatim
9927 #: ../fish/guestfish-actions.pod:1637
9928 #, no-wrap
9929 msgid ""
9930 " head-n nrlines path\n"
9931 "\n"
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
9936 msgid ""
9937 "If the parameter C<nrlines> is a positive number, this returns the first "
9938 "C<nrlines> lines of the file C<path>."
9939 msgstr ""
9940
9941 #. type: textblock
9942 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
9943 msgid ""
9944 "If the parameter C<nrlines> is a negative number, this returns lines from "
9945 "the file C<path>, excluding the last C<nrlines> lines."
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4730
9950 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7163
9951 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9952 msgstr ""
9953
9954 #. type: =head2
9955 #: ../fish/guestfish-actions.pod:1650
9956 msgid "hexdump"
9957 msgstr "hexdump"
9958
9959 #. type: verbatim
9960 #: ../fish/guestfish-actions.pod:1652
9961 #, no-wrap
9962 msgid ""
9963 " hexdump path\n"
9964 "\n"
9965 msgstr ""
9966 " hexdump шлях\n"
9967 "\n"
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
9971 msgid ""
9972 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9973 "readable, canonical hex dump of the file."
9974 msgstr ""
9975
9976 #. type: =head2
9977 #: ../fish/guestfish-actions.pod:1660
9978 msgid "initrd-cat"
9979 msgstr "initrd-cat"
9980
9981 #. type: verbatim
9982 #: ../fish/guestfish-actions.pod:1662
9983 #, no-wrap
9984 msgid ""
9985 " initrd-cat initrdpath filename\n"
9986 "\n"
9987 msgstr ""
9988 " initrd-cat шлях_initrd назва_файла\n"
9989 "\n"
9990
9991 #. type: textblock
9992 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
9993 msgid ""
9994 "This command unpacks the file C<filename> from the initrd file called "
9995 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9996 "character."
9997 msgstr ""
9998
9999 #. type: textblock
10000 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
10001 msgid ""
10002 "For example, in guestfish you could use the following command to examine the "
10003 "boot script (usually called C</init>)  contained in a Linux initrd or "
10004 "initramfs image:"
10005 msgstr ""
10006
10007 #. type: verbatim
10008 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
10009 #, no-wrap
10010 msgid ""
10011 " initrd-cat /boot/initrd-<version>.img init\n"
10012 "\n"
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../fish/guestfish-actions.pod:1674
10017 msgid "See also L</initrd-list>."
10018 msgstr "Див. також L</initrd-list>."
10019
10020 #. type: =head2
10021 #: ../fish/guestfish-actions.pod:1679
10022 msgid "initrd-list"
10023 msgstr "initrd-list"
10024
10025 #. type: verbatim
10026 #: ../fish/guestfish-actions.pod:1681
10027 #, no-wrap
10028 msgid ""
10029 " initrd-list path\n"
10030 "\n"
10031 msgstr ""
10032 " initrd-list шлях\n"
10033 "\n"
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
10037 msgid "This command lists out files contained in an initrd."
10038 msgstr ""
10039
10040 #. type: textblock
10041 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
10042 msgid ""
10043 "The files are listed without any initial C</> character.  The files are "
10044 "listed in the order they appear (not necessarily alphabetical).  Directory "
10045 "names are listed as separate items."
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
10050 msgid ""
10051 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10052 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10053 "files)."
10054 msgstr ""
10055
10056 #. type: =head2
10057 #: ../fish/guestfish-actions.pod:1693
10058 msgid "inotify-add-watch"
10059 msgstr "inotify-add-watch"
10060
10061 #. type: verbatim
10062 #: ../fish/guestfish-actions.pod:1695
10063 #, no-wrap
10064 msgid ""
10065 " inotify-add-watch path mask\n"
10066 "\n"
10067 msgstr ""
10068 " inotify-add-watch шлях маска\n"
10069 "\n"
10070
10071 #. type: textblock
10072 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
10073 msgid "Watch C<path> for the events listed in C<mask>."
10074 msgstr ""
10075
10076 #. type: textblock
10077 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
10078 msgid ""
10079 "Note that if C<path> is a directory then events within that directory are "
10080 "watched, but this does I<not> happen recursively (in subdirectories)."
10081 msgstr ""
10082
10083 #. type: textblock
10084 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
10085 msgid ""
10086 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10087 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10088 msgstr ""
10089
10090 #. type: =head2
10091 #: ../fish/guestfish-actions.pod:1707
10092 msgid "inotify-close"
10093 msgstr "inotify-close"
10094
10095 #. type: verbatim
10096 #: ../fish/guestfish-actions.pod:1709
10097 #, no-wrap
10098 msgid ""
10099 " inotify-close\n"
10100 "\n"
10101 msgstr ""
10102 " inotify-close\n"
10103 "\n"
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
10107 msgid ""
10108 "This closes the inotify handle which was previously opened by inotify_init.  "
10109 "It removes all watches, throws away any pending events, and deallocates all "
10110 "resources."
10111 msgstr ""
10112
10113 #. type: =head2
10114 #: ../fish/guestfish-actions.pod:1715
10115 msgid "inotify-files"
10116 msgstr "inotify-files"
10117
10118 #. type: verbatim
10119 #: ../fish/guestfish-actions.pod:1717
10120 #, no-wrap
10121 msgid ""
10122 " inotify-files\n"
10123 "\n"
10124 msgstr ""
10125 " inotify-files\n"
10126 "\n"
10127
10128 #. type: textblock
10129 #: ../fish/guestfish-actions.pod:1719
10130 msgid ""
10131 "This function is a helpful wrapper around L</inotify-read> which just "
10132 "returns a list of pathnames of objects that were touched.  The returned "
10133 "pathnames are sorted and deduplicated."
10134 msgstr ""
10135
10136 #. type: =head2
10137 #: ../fish/guestfish-actions.pod:1723
10138 msgid "inotify-init"
10139 msgstr "inotify-init"
10140
10141 #. type: verbatim
10142 #: ../fish/guestfish-actions.pod:1725
10143 #, no-wrap
10144 msgid ""
10145 " inotify-init maxevents\n"
10146 "\n"
10147 msgstr ""
10148
10149 #. type: textblock
10150 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
10151 msgid ""
10152 "This command creates a new inotify handle.  The inotify subsystem can be "
10153 "used to notify events which happen to objects in the guest filesystem."
10154 msgstr ""
10155
10156 #. type: textblock
10157 #: ../fish/guestfish-actions.pod:1731
10158 msgid ""
10159 "C<maxevents> is the maximum number of events which will be queued up between "
10160 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10161 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10162 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10163 "but records the fact that it threw them away by setting a flag "
10164 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:1741
10169 msgid ""
10170 "Before any events are generated, you have to add some watches to the "
10171 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10172 "L</inotify-watch-all>."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:1747
10177 msgid ""
10178 "Queued up events should be read periodically by calling L</inotify-read> (or "
10179 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10180 "If you don't read the events out often enough then you risk the internal "
10181 "queue overflowing."
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:1754
10186 msgid ""
10187 "The handle should be closed after use by calling L</inotify-close>.  This "
10188 "also removes any watches automatically."
10189 msgstr ""
10190
10191 #. type: textblock
10192 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
10193 msgid ""
10194 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10195 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10196 "that there is one global inotify handle per libguestfs instance."
10197 msgstr ""
10198
10199 #. type: =head2
10200 #: ../fish/guestfish-actions.pod:1763
10201 msgid "inotify-read"
10202 msgstr "inotify-read"
10203
10204 #. type: verbatim
10205 #: ../fish/guestfish-actions.pod:1765
10206 #, no-wrap
10207 msgid ""
10208 " inotify-read\n"
10209 "\n"
10210 msgstr ""
10211 " inotify-read\n"
10212 "\n"
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
10216 msgid ""
10217 "Return the complete queue of events that have happened since the previous "
10218 "read call."
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
10223 msgid "If no events have happened, this returns an empty list."
10224 msgstr ""
10225
10226 #. type: textblock
10227 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
10228 msgid ""
10229 "I<Note>: In order to make sure that all events have been read, you must call "
10230 "this function repeatedly until it returns an empty list.  The reason is that "
10231 "the call will read events up to the maximum appliance-to-host message size "
10232 "and leave remaining events in the queue."
10233 msgstr ""
10234
10235 #. type: =head2
10236 #: ../fish/guestfish-actions.pod:1778
10237 msgid "inotify-rm-watch"
10238 msgstr "inotify-rm-watch"
10239
10240 #. type: verbatim
10241 #: ../fish/guestfish-actions.pod:1780
10242 #, no-wrap
10243 msgid ""
10244 " inotify-rm-watch wd\n"
10245 "\n"
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../fish/guestfish-actions.pod:1782
10250 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../fish/guestfish-actions.pod:1785
10255 msgid "inspect-get-arch"
10256 msgstr "inspect-get-arch"
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:1787
10260 #, no-wrap
10261 msgid ""
10262 " inspect-get-arch root\n"
10263 "\n"
10264 msgstr ""
10265 " inspect-get-arch корінь\n"
10266 "\n"
10267
10268 #. type: textblock
10269 #: ../fish/guestfish-actions.pod:1789
10270 msgid ""
10271 "This returns the architecture of the inspected operating system.  The "
10272 "possible return values are listed under L</file-architecture>."
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
10277 msgid ""
10278 "If the architecture could not be determined, then the string C<unknown> is "
10279 "returned."
10280 msgstr ""
10281
10282 #. type: textblock
10283 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1891
10284 #: ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1982
10285 #: ../fish/guestfish-actions.pod:2066 ../fish/guestfish-actions.pod:2128
10286 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2163
10287 #: ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2239
10288 #: ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2265
10289 #: ../fish/guestfish-actions.pod:2275 ../fish/guestfish-actions.pod:2285
10290 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2393
10291 #: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:2747
10292 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2953
10293 #: ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:3103
10294 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3215
10295 #: ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3289
10296 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353
10297 #: ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3390
10298 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
10299 #: ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3567
10300 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10301 msgstr ""
10302
10303 #. type: =head2
10304 #: ../fish/guestfish-actions.pod:1798
10305 msgid "inspect-get-distro"
10306 msgstr "inspect-get-distro"
10307
10308 #. type: verbatim
10309 #: ../fish/guestfish-actions.pod:1800
10310 #, no-wrap
10311 msgid ""
10312 " inspect-get-distro root\n"
10313 "\n"
10314 msgstr ""
10315 " inspect-get-distro корінь\n"
10316 "\n"
10317
10318 #. type: textblock
10319 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
10320 msgid ""
10321 "This returns the distro (distribution) of the inspected operating system."
10322 msgstr ""
10323
10324 #. type: textblock
10325 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
10326 msgid "Currently defined distros are:"
10327 msgstr ""
10328
10329 #. type: =item
10330 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
10331 msgid "\"archlinux\""
10332 msgstr "\"archlinux\""
10333
10334 #. type: textblock
10335 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
10336 msgid "Arch Linux."
10337 msgstr "Arch Linux."
10338
10339 #. type: =item
10340 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
10341 msgid "\"centos\""
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
10346 msgid "CentOS."
10347 msgstr ""
10348
10349 #. type: =item
10350 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
10351 msgid "\"debian\""
10352 msgstr "\"debian\""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
10356 msgid "Debian."
10357 msgstr "Debian."
10358
10359 #. type: =item
10360 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
10361 msgid "\"fedora\""
10362 msgstr "\"fedora\""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
10366 msgid "Fedora."
10367 msgstr "Fedora."
10368
10369 #. type: =item
10370 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
10371 msgid "\"gentoo\""
10372 msgstr "\"gentoo\""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
10376 msgid "Gentoo."
10377 msgstr "Gentoo."
10378
10379 #. type: =item
10380 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
10381 msgid "\"linuxmint\""
10382 msgstr "\"linuxmint\""
10383
10384 #. type: textblock
10385 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
10386 msgid "Linux Mint."
10387 msgstr "Linux Mint."
10388
10389 #. type: =item
10390 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
10391 msgid "\"mageia\""
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
10396 msgid "Mageia."
10397 msgstr ""
10398
10399 #. type: =item
10400 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
10401 msgid "\"mandriva\""
10402 msgstr "\"mandriva\""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
10406 msgid "Mandriva."
10407 msgstr "Mandriva."
10408
10409 #. type: =item
10410 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
10411 msgid "\"meego\""
10412 msgstr "\"meego\""
10413
10414 #. type: textblock
10415 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
10416 msgid "MeeGo."
10417 msgstr "MeeGo."
10418
10419 #. type: =item
10420 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
10421 msgid "\"opensuse\""
10422 msgstr ""
10423
10424 #. type: textblock
10425 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
10426 msgid "OpenSUSE."
10427 msgstr ""
10428
10429 #. type: =item
10430 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
10431 msgid "\"pardus\""
10432 msgstr "\"pardus\""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
10436 msgid "Pardus."
10437 msgstr "Pardus."
10438
10439 #. type: =item
10440 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
10441 msgid "\"redhat-based\""
10442 msgstr "\"redhat-based\""
10443
10444 #. type: textblock
10445 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
10446 msgid "Some Red Hat-derived distro."
10447 msgstr "Дистрибутив, що походить від Red Hat."
10448
10449 #. type: =item
10450 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
10451 msgid "\"rhel\""
10452 msgstr "\"rhel\""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
10456 msgid "Red Hat Enterprise Linux."
10457 msgstr ""
10458
10459 #. type: =item
10460 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
10461 msgid "\"scientificlinux\""
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
10466 msgid "Scientific Linux."
10467 msgstr ""
10468
10469 #. type: =item
10470 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
10471 msgid "\"slackware\""
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
10476 msgid "Slackware."
10477 msgstr ""
10478
10479 #. type: =item
10480 #: ../fish/guestfish-actions.pod:1869 ../src/guestfs-actions.pod:2827
10481 #, fuzzy
10482 #| msgid "\"linux\""
10483 msgid "\"ttylinux\""
10484 msgstr "\"linux\""
10485
10486 #. type: textblock
10487 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
10488 #, fuzzy
10489 #| msgid "\"linux\""
10490 msgid "ttylinux."
10491 msgstr "\"linux\""
10492
10493 #. type: =item
10494 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2831
10495 msgid "\"ubuntu\""
10496 msgstr "\"ubuntu\""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
10500 msgid "Ubuntu."
10501 msgstr "Ubuntu."
10502
10503 #. type: =item
10504 #: ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1961
10505 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:2835
10506 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3324
10507 msgid "\"unknown\""
10508 msgstr "\"unknown\""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2837
10512 msgid "The distro could not be determined."
10513 msgstr "Дистрибутив, тип якого не вдалося визначити."
10514
10515 #. type: =item
10516 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2218
10517 #: ../src/guestfs-actions.pod:2839 ../src/guestfs-actions.pod:3312
10518 msgid "\"windows\""
10519 msgstr "\"windows\""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2841
10523 msgid ""
10524 "Windows does not have distributions.  This string is returned if the OS type "
10525 "is Windows."
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../fish/guestfish-actions.pod:1888 ../fish/guestfish-actions.pod:1967
10530 #: ../fish/guestfish-actions.pod:2236 ../src/guestfs-actions.pod:2846
10531 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10532 msgid ""
10533 "Future versions of libguestfs may return other strings here.  The caller "
10534 "should be prepared to handle any string."
10535 msgstr ""
10536
10537 #. type: =head2
10538 #: ../fish/guestfish-actions.pod:1893
10539 msgid "inspect-get-drive-mappings"
10540 msgstr ""
10541
10542 #. type: verbatim
10543 #: ../fish/guestfish-actions.pod:1895
10544 #, no-wrap
10545 msgid ""
10546 " inspect-get-drive-mappings root\n"
10547 "\n"
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:1897 ../src/guestfs-actions.pod:2862
10552 msgid ""
10553 "This call is useful for Windows which uses a primitive system of assigning "
10554 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10555 "Windows Registry to find out how disks/partitions are mapped to drive "
10556 "letters, and returns a hash table as in the example below:"
10557 msgstr ""
10558
10559 #. type: verbatim
10560 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
10561 #, no-wrap
10562 msgid ""
10563 " C      =>     /dev/vda2\n"
10564 " E      =>     /dev/vdb1\n"
10565 " F      =>     /dev/vdc1\n"
10566 "\n"
10567 msgstr ""
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2872
10571 msgid ""
10572 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10573 "and just contains the drive letter, without the customary colon separator "
10574 "character."
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
10579 msgid ""
10580 "In future we may support other operating systems that also used drive "
10581 "letters, but the keys for those might not be case insensitive and might be "
10582 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10583 "C<h1> etc."
10584 msgstr ""
10585
10586 #. type: textblock
10587 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2881
10588 msgid ""
10589 "For Windows guests, currently only hard drive mappings are returned.  "
10590 "Removable disks (eg. DVD-ROMs) are ignored."
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:1919 ../src/guestfs-actions.pod:2884
10595 msgid ""
10596 "For guests that do not use drive mappings, or if the drive mappings could "
10597 "not be determined, this returns an empty hash table."
10598 msgstr ""
10599
10600 #. type: textblock
10601 #: ../fish/guestfish-actions.pod:1922
10602 msgid ""
10603 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10604 "get-mountpoints>, L</inspect-get-filesystems>."
10605 msgstr ""
10606
10607 #. type: =head2
10608 #: ../fish/guestfish-actions.pod:1926
10609 msgid "inspect-get-filesystems"
10610 msgstr "inspect-get-filesystems"
10611
10612 #. type: verbatim
10613 #: ../fish/guestfish-actions.pod:1928
10614 #, no-wrap
10615 msgid ""
10616 " inspect-get-filesystems root\n"
10617 "\n"
10618 msgstr ""
10619 " inspect-get-filesystems корінь\n"
10620 "\n"
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2905
10624 msgid ""
10625 "This returns a list of all the filesystems that we think are associated with "
10626 "this operating system.  This includes the root filesystem, other ordinary "
10627 "filesystems, and non-mounted devices like swap partitions."
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2910
10632 msgid ""
10633 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10634 "to be shared between operating systems."
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:1938
10639 msgid ""
10640 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10641 "get-mountpoints>."
10642 msgstr ""
10643
10644 #. type: =head2
10645 #: ../fish/guestfish-actions.pod:1941
10646 msgid "inspect-get-format"
10647 msgstr "inspect-get-format"
10648
10649 #. type: verbatim
10650 #: ../fish/guestfish-actions.pod:1943
10651 #, no-wrap
10652 msgid ""
10653 " inspect-get-format root\n"
10654 "\n"
10655 msgstr ""
10656 " inspect-get-format корінь\n"
10657 "\n"
10658
10659 #. type: textblock
10660 #: ../fish/guestfish-actions.pod:1945 ../src/guestfs-actions.pod:2928
10661 msgid ""
10662 "This returns the format of the inspected operating system.  You can use it "
10663 "to detect install images, live CDs and similar."
10664 msgstr ""
10665
10666 #. type: textblock
10667 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
10668 msgid "Currently defined formats are:"
10669 msgstr ""
10670
10671 #. type: =item
10672 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2935
10673 msgid "\"installed\""
10674 msgstr "\"installed\""
10675
10676 #. type: textblock
10677 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2937
10678 msgid "This is an installed operating system."
10679 msgstr "Це встановлена операційна система."
10680
10681 #. type: =item
10682 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2939
10683 msgid "\"installer\""
10684 msgstr ""
10685
10686 #. type: textblock
10687 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:2941
10688 msgid ""
10689 "The disk image being inspected is not an installed operating system, but a "
10690 "I<bootable> install disk, live CD, or similar."
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2946
10695 msgid "The format of this disk image is not known."
10696 msgstr ""
10697
10698 #. type: =head2
10699 #: ../fish/guestfish-actions.pod:1972
10700 msgid "inspect-get-hostname"
10701 msgstr "inspect-get-hostname"
10702
10703 #. type: verbatim
10704 #: ../fish/guestfish-actions.pod:1974
10705 #, no-wrap
10706 msgid ""
10707 " inspect-get-hostname root\n"
10708 "\n"
10709 msgstr ""
10710 " inspect-get-hostname корінь\n"
10711 "\n"
10712
10713 #. type: textblock
10714 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2966
10715 msgid ""
10716 "This function returns the hostname of the operating system as found by "
10717 "inspection of the guest's configuration files."
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2969
10722 msgid ""
10723 "If the hostname could not be determined, then the string C<unknown> is "
10724 "returned."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:1984
10729 msgid "inspect-get-icon"
10730 msgstr ""
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:1986
10734 #, no-wrap
10735 msgid ""
10736 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:2995
10742 msgid ""
10743 "This function returns an icon corresponding to the inspected operating "
10744 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10745 "to PNG if necessary)."
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2999
10750 msgid ""
10751 "If it was not possible to get an icon this function returns a zero-length "
10752 "(non-NULL) buffer.  I<Callers must check for this case>."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3002
10757 msgid ""
10758 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10759 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10760 "this file will be returned.  You can disable favicons by passing the "
10761 "optional C<favicon> boolean as false (default is true)."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3008
10766 msgid ""
10767 "If finding the favicon fails, then we look in other places in the guest for "
10768 "a suitable icon."
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:3011
10773 msgid ""
10774 "If the optional C<highquality> boolean is true then only high quality icons "
10775 "are returned, which means only icons of high resolution with an alpha "
10776 "channel.  The default (false) is to return any icon we can, even if it is of "
10777 "substandard quality."
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3022
10782 msgid ""
10783 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10784 "before you call this, since it needs to read information from the guest "
10785 "filesystem during the call."
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
10790 msgid ""
10791 "B<Security:> The icon data comes from the untrusted guest, and should be "
10792 "treated with caution.  PNG files have been known to contain exploits.  "
10793 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10794 "trying to process or display the icon."
10795 msgstr ""
10796
10797 #. type: textblock
10798 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3036
10799 msgid ""
10800 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10801 "tries to return the largest, highest quality icon available.  The "
10802 "application must scale the icon to the required size."
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:2036 ../src/guestfs-actions.pod:3043
10807 msgid ""
10808 "Extracting icons from Windows guests requires the external C<wrestool> "
10809 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10810 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10811 "installed separately."
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:2043 ../src/guestfs-actions.pod:3050
10816 msgid ""
10817 "Operating system icons are usually trademarks.  Seek legal advice before "
10818 "using trademarks in applications."
10819 msgstr ""
10820
10821 #. type: =head2
10822 #: ../fish/guestfish-actions.pod:2050
10823 msgid "inspect-get-major-version"
10824 msgstr "inspect-get-major-version"
10825
10826 #. type: verbatim
10827 #: ../fish/guestfish-actions.pod:2052
10828 #, no-wrap
10829 msgid ""
10830 " inspect-get-major-version root\n"
10831 "\n"
10832 msgstr ""
10833 " inspect-get-major-version корінь\n"
10834 "\n"
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:2054 ../src/guestfs-actions.pod:3091
10838 msgid ""
10839 "This returns the major version number of the inspected operating system."
10840 msgstr ""
10841
10842 #. type: textblock
10843 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3094
10844 msgid ""
10845 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10846 "popular public names used by the operating system.  Notably the operating "
10847 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10848 "1).  You can find out the real versions corresponding to releases of Windows "
10849 "by consulting Wikipedia or MSDN."
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:2064 ../fish/guestfish-actions.pod:2075
10854 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3118
10855 msgid "If the version could not be determined, then C<0> is returned."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../fish/guestfish-actions.pod:2068
10860 msgid "inspect-get-minor-version"
10861 msgstr "inspect-get-minor-version"
10862
10863 #. type: verbatim
10864 #: ../fish/guestfish-actions.pod:2070
10865 #, no-wrap
10866 msgid ""
10867 " inspect-get-minor-version root\n"
10868 "\n"
10869 msgstr ""
10870 " inspect-get-minor-version корінь\n"
10871 "\n"
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3115
10875 msgid ""
10876 "This returns the minor version number of the inspected operating system."
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2077
10881 msgid ""
10882 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10883 "get-major-version>."
10884 msgstr ""
10885
10886 #. type: =head2
10887 #: ../fish/guestfish-actions.pod:2080
10888 msgid "inspect-get-mountpoints"
10889 msgstr "inspect-get-mountpoints"
10890
10891 #. type: verbatim
10892 #: ../fish/guestfish-actions.pod:2082
10893 #, no-wrap
10894 msgid ""
10895 " inspect-get-mountpoints root\n"
10896 "\n"
10897 msgstr ""
10898 " inspect-get-mountpoints корінь\n"
10899 "\n"
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3133
10903 msgid ""
10904 "This returns a hash of where we think the filesystems associated with this "
10905 "operating system should be mounted.  Callers should note that this is at "
10906 "best an educated guess made by reading configuration files such as C</etc/"
10907 "fstab>.  I<In particular note> that this may return filesystems which are "
10908 "non-existent or not mountable and callers should be prepared to handle or "
10909 "ignore failures if they try to mount them."
10910 msgstr ""
10911
10912 #. type: textblock
10913 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3142
10914 msgid ""
10915 "Each element in the returned hashtable has a key which is the path of the "
10916 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10917 "mounted there (eg. C</dev/sda1>)."
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3147
10922 msgid ""
10923 "Non-mounted devices such as swap devices are I<not> returned in this list."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:2101
10928 msgid ""
10929 "For operating systems like Windows which still use drive letters, this call "
10930 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10931 "information about the mapping of drive letters to partitions, see L</inspect-"
10932 "get-drive-mappings>."
10933 msgstr ""
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:2107
10937 msgid ""
10938 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10939 "get-filesystems>."
10940 msgstr ""
10941
10942 #. type: =head2
10943 #: ../fish/guestfish-actions.pod:2110
10944 msgid "inspect-get-package-format"
10945 msgstr "inspect-get-package-format"
10946
10947 #. type: verbatim
10948 #: ../fish/guestfish-actions.pod:2112
10949 #, no-wrap
10950 msgid ""
10951 " inspect-get-package-format root\n"
10952 "\n"
10953 msgstr ""
10954 " inspect-get-package-format корінь\n"
10955 "\n"
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2114
10959 msgid ""
10960 "This function and L</inspect-get-package-management> return the package "
10961 "format and package management tool used by the inspected operating system.  "
10962 "For example for Fedora these functions would return C<rpm> (package format) "
10963 "and C<yum> (package management)."
10964 msgstr ""
10965
10966 #. type: textblock
10967 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3179
10968 msgid ""
10969 "This returns the string C<unknown> if we could not determine the package "
10970 "format I<or> if the operating system does not have a real packaging system "
10971 "(eg. Windows)."
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3183
10976 msgid ""
10977 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10978 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10979 msgstr ""
10980
10981 #. type: =head2
10982 #: ../fish/guestfish-actions.pod:2130
10983 msgid "inspect-get-package-management"
10984 msgstr "inspect-get-package-management"
10985
10986 #. type: verbatim
10987 #: ../fish/guestfish-actions.pod:2132
10988 #, no-wrap
10989 msgid ""
10990 " inspect-get-package-management root\n"
10991 "\n"
10992 msgstr ""
10993 " inspect-get-package-management корінь\n"
10994 "\n"
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2134
10998 msgid ""
10999 "L</inspect-get-package-format> and this function return the package format "
11000 "and package management tool used by the inspected operating system.  For "
11001 "example for Fedora these functions would return C<rpm> (package format) and "
11002 "C<yum> (package management)."
11003 msgstr ""
11004
11005 #. type: textblock
11006 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3206
11007 msgid ""
11008 "This returns the string C<unknown> if we could not determine the package "
11009 "management tool I<or> if the operating system does not have a real packaging "
11010 "system (eg. Windows)."
11011 msgstr ""
11012
11013 #. type: textblock
11014 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3210
11015 msgid ""
11016 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11017 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11018 "versions of libguestfs may return other strings."
11019 msgstr ""
11020
11021 #. type: =head2
11022 #: ../fish/guestfish-actions.pod:2151
11023 msgid "inspect-get-product-name"
11024 msgstr "inspect-get-product-name"
11025
11026 #. type: verbatim
11027 #: ../fish/guestfish-actions.pod:2153
11028 #, no-wrap
11029 msgid ""
11030 " inspect-get-product-name root\n"
11031 "\n"
11032 msgstr ""
11033 " inspect-get-product-name корінь\n"
11034 "\n"
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3228
11038 msgid ""
11039 "This returns the product name of the inspected operating system.  The "
11040 "product name is generally some freeform string which can be displayed to the "
11041 "user, but should not be parsed by programs."
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3233
11046 msgid ""
11047 "If the product name could not be determined, then the string C<unknown> is "
11048 "returned."
11049 msgstr ""
11050
11051 #. type: =head2
11052 #: ../fish/guestfish-actions.pod:2165
11053 msgid "inspect-get-product-variant"
11054 msgstr ""
11055
11056 #. type: verbatim
11057 #: ../fish/guestfish-actions.pod:2167
11058 #, no-wrap
11059 msgid ""
11060 " inspect-get-product-variant root\n"
11061 "\n"
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3249
11066 msgid "This returns the product variant of the inspected operating system."
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
11071 msgid ""
11072 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11073 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11074 "is usually a string such as C<Client> or C<Server> (other values are "
11075 "possible).  This can be used to distinguish consumer and enterprise versions "
11076 "of Windows that have the same version number (for example, Windows 7 and "
11077 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11078 "the latter is C<Server>)."
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3261
11083 msgid ""
11084 "For enterprise Linux guests, in future we intend this to return the product "
11085 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11086 "implemented at present."
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:2185 ../src/guestfs-actions.pod:3265
11091 msgid ""
11092 "If the product variant could not be determined, then the string C<unknown> "
11093 "is returned."
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2188
11098 msgid ""
11099 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11100 "get-product-name>, L</inspect-get-major-version>."
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../fish/guestfish-actions.pod:2192
11105 msgid "inspect-get-roots"
11106 msgstr "inspect-get-roots"
11107
11108 #. type: verbatim
11109 #: ../fish/guestfish-actions.pod:2194
11110 #, no-wrap
11111 msgid ""
11112 " inspect-get-roots\n"
11113 "\n"
11114 msgstr ""
11115 " inspect-get-roots\n"
11116 "\n"
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2196
11120 msgid ""
11121 "This function is a convenient way to get the list of root devices, as "
11122 "returned from a previous call to L</inspect-os>, but without redoing the "
11123 "whole inspection process."
11124 msgstr ""
11125
11126 #. type: textblock
11127 #: ../fish/guestfish-actions.pod:2200
11128 msgid ""
11129 "This returns an empty list if either no root devices were found or the "
11130 "caller has not called L</inspect-os>."
11131 msgstr ""
11132
11133 #. type: =head2
11134 #: ../fish/guestfish-actions.pod:2205
11135 msgid "inspect-get-type"
11136 msgstr "inspect-get-type"
11137
11138 #. type: verbatim
11139 #: ../fish/guestfish-actions.pod:2207
11140 #, no-wrap
11141 msgid ""
11142 " inspect-get-type root\n"
11143 "\n"
11144 msgstr ""
11145 " inspect-get-type корінь\n"
11146 "\n"
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:3303
11150 msgid ""
11151 "This returns the type of the inspected operating system.  Currently defined "
11152 "types are:"
11153 msgstr ""
11154
11155 #. type: =item
11156 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3308
11157 msgid "\"linux\""
11158 msgstr "\"linux\""
11159
11160 #. type: textblock
11161 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3310
11162 msgid "Any Linux-based operating system."
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:2220 ../src/guestfs-actions.pod:3314
11167 msgid "Any Microsoft Windows operating system."
11168 msgstr ""
11169
11170 #. type: =item
11171 #: ../fish/guestfish-actions.pod:2222 ../src/guestfs-actions.pod:3316
11172 msgid "\"freebsd\""
11173 msgstr "\"freebsd\""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:2224 ../src/guestfs-actions.pod:3318
11177 msgid "FreeBSD."
11178 msgstr "FreeBSD."
11179
11180 #. type: =item
11181 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3320
11182 #, fuzzy
11183 #| msgid "\"freebsd\""
11184 msgid "\"netbsd\""
11185 msgstr "\"freebsd\""
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:2228 ../src/guestfs-actions.pod:3322
11189 #, fuzzy
11190 #| msgid "FreeBSD."
11191 msgid "NetBSD."
11192 msgstr "FreeBSD."
11193
11194 #. type: textblock
11195 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3326
11196 msgid "The operating system type could not be determined."
11197 msgstr ""
11198
11199 #. type: =head2
11200 #: ../fish/guestfish-actions.pod:2241
11201 msgid "inspect-get-windows-current-control-set"
11202 msgstr ""
11203
11204 #. type: verbatim
11205 #: ../fish/guestfish-actions.pod:2243
11206 #, no-wrap
11207 msgid ""
11208 " inspect-get-windows-current-control-set root\n"
11209 "\n"
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3346
11214 msgid ""
11215 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11216 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11217 msgstr ""
11218
11219 #. type: textblock
11220 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3349
11221 msgid ""
11222 "This call assumes that the guest is Windows and that the Registry could be "
11223 "examined by inspection.  If this is not the case then an error is returned."
11224 msgstr ""
11225
11226 #. type: =head2
11227 #: ../fish/guestfish-actions.pod:2254
11228 msgid "inspect-get-windows-systemroot"
11229 msgstr "inspect-get-windows-systemroot"
11230
11231 #. type: verbatim
11232 #: ../fish/guestfish-actions.pod:2256
11233 #, no-wrap
11234 msgid ""
11235 " inspect-get-windows-systemroot root\n"
11236 "\n"
11237 msgstr ""
11238 " inspect-get-windows-systemroot корінь\n"
11239 "\n"
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3366
11243 msgid ""
11244 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11245 "is a directory path such as C</WINDOWS>."
11246 msgstr ""
11247
11248 #. type: textblock
11249 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3369
11250 msgid ""
11251 "This call assumes that the guest is Windows and that the systemroot could be "
11252 "determined by inspection.  If this is not the case then an error is returned."
11253 msgstr ""
11254
11255 #. type: =head2
11256 #: ../fish/guestfish-actions.pod:2267
11257 msgid "inspect-is-live"
11258 msgstr "inspect-is-live"
11259
11260 #. type: verbatim
11261 #: ../fish/guestfish-actions.pod:2269
11262 #, no-wrap
11263 msgid ""
11264 " inspect-is-live root\n"
11265 "\n"
11266 msgstr ""
11267 " inspect-is-live корінь\n"
11268 "\n"
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2271
11272 msgid ""
11273 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11274 "then this returns true if a live image was detected on the disk."
11275 msgstr ""
11276
11277 #. type: =head2
11278 #: ../fish/guestfish-actions.pod:2277
11279 msgid "inspect-is-multipart"
11280 msgstr "inspect-is-multipart"
11281
11282 #. type: verbatim
11283 #: ../fish/guestfish-actions.pod:2279
11284 #, no-wrap
11285 msgid ""
11286 " inspect-is-multipart root\n"
11287 "\n"
11288 msgstr ""
11289 " inspect-is-multipart корінь\n"
11290 "\n"
11291
11292 #. type: textblock
11293 #: ../fish/guestfish-actions.pod:2281
11294 msgid ""
11295 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11296 "then this returns true if the disk is part of a set."
11297 msgstr ""
11298
11299 #. type: =head2
11300 #: ../fish/guestfish-actions.pod:2287
11301 msgid "inspect-is-netinst"
11302 msgstr "inspect-is-netinst"
11303
11304 #. type: verbatim
11305 #: ../fish/guestfish-actions.pod:2289
11306 #, no-wrap
11307 msgid ""
11308 " inspect-is-netinst root\n"
11309 "\n"
11310 msgstr ""
11311 " inspect-is-netinst корінь\n"
11312 "\n"
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:2291
11316 msgid ""
11317 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11318 "then this returns true if the disk is a network installer, ie. not a self-"
11319 "contained install CD but one which is likely to require network access to "
11320 "complete the install."
11321 msgstr ""
11322
11323 #. type: =head2
11324 #: ../fish/guestfish-actions.pod:2299
11325 msgid "inspect-list-applications"
11326 msgstr "inspect-list-applications"
11327
11328 #. type: verbatim
11329 #: ../fish/guestfish-actions.pod:2301
11330 #, no-wrap
11331 msgid ""
11332 " inspect-list-applications root\n"
11333 "\n"
11334 msgstr ""
11335 " inspect-list-applications кореневий_каталог\n"
11336 "\n"
11337
11338 #. type: textblock
11339 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3436
11340 msgid "Return the list of applications installed in the operating system."
11341 msgstr ""
11342
11343 #. type: textblock
11344 #: ../fish/guestfish-actions.pod:2305
11345 msgid ""
11346 "I<Note:> This call works differently from other parts of the inspection "
11347 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11348 "then mount up the disks, before calling this.  Listing applications is a "
11349 "significantly more difficult operation which requires access to the full "
11350 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11351 "are just returning data cached in the libguestfs handle, this call actually "
11352 "reads parts of the mounted filesystems during the call."
11353 msgstr ""
11354
11355 #. type: textblock
11356 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3448
11357 msgid ""
11358 "This returns an empty list if the inspection code was not able to determine "
11359 "the list of applications."
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3451
11364 msgid "The application structure contains the following fields:"
11365 msgstr ""
11366
11367 #. type: =item
11368 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
11369 msgid "C<app_name>"
11370 msgstr "C<app_name>"
11371
11372 #. type: textblock
11373 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
11374 msgid ""
11375 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11376 "guests, this is the package name."
11377 msgstr ""
11378
11379 #. type: =item
11380 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
11381 msgid "C<app_display_name>"
11382 msgstr "C<app_display_name>"
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
11386 msgid ""
11387 "The display name of the application, sometimes localized to the install "
11388 "language of the guest operating system."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
11393 msgid ""
11394 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11395 "to display something can use C<app_name> instead."
11396 msgstr ""
11397
11398 #. type: =item
11399 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3468
11400 msgid "C<app_epoch>"
11401 msgstr "C<app_epoch>"
11402
11403 #. type: textblock
11404 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3470
11405 msgid ""
11406 "For package managers which use epochs, this contains the epoch of the "
11407 "package (an integer).  If unavailable, this is returned as C<0>."
11408 msgstr ""
11409
11410 #. type: =item
11411 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
11412 msgid "C<app_version>"
11413 msgstr "C<app_version>"
11414
11415 #. type: textblock
11416 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3475
11417 msgid ""
11418 "The version string of the application or package.  If unavailable this is "
11419 "returned as an empty string C<\"\">."
11420 msgstr ""
11421
11422 #. type: =item
11423 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
11424 msgid "C<app_release>"
11425 msgstr "C<app_release>"
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
11429 msgid ""
11430 "The release string of the application or package, for package managers that "
11431 "use this.  If unavailable this is returned as an empty string C<\"\">."
11432 msgstr ""
11433
11434 #. type: =item
11435 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3484
11436 msgid "C<app_install_path>"
11437 msgstr "C<app_install_path>"
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3486
11441 msgid ""
11442 "The installation path of the application (on operating systems such as "
11443 "Windows which use installation paths).  This path is in the format used by "
11444 "the guest operating system, it is not a libguestfs path."
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
11449 msgid "If unavailable this is returned as an empty string C<\"\">."
11450 msgstr ""
11451
11452 #. type: =item
11453 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
11454 msgid "C<app_trans_path>"
11455 msgstr "C<app_trans_path>"
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:2362 ../src/guestfs-actions.pod:3495
11459 msgid ""
11460 "The install path translated into a libguestfs path.  If unavailable this is "
11461 "returned as an empty string C<\"\">."
11462 msgstr ""
11463
11464 #. type: =item
11465 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
11466 msgid "C<app_publisher>"
11467 msgstr "C<app_publisher>"
11468
11469 #. type: textblock
11470 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3500
11471 msgid ""
11472 "The name of the publisher of the application, for package managers that use "
11473 "this.  If unavailable this is returned as an empty string C<\"\">."
11474 msgstr ""
11475
11476 #. type: =item
11477 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3504
11478 msgid "C<app_url>"
11479 msgstr "C<app_url>"
11480
11481 #. type: textblock
11482 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
11483 msgid ""
11484 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11485 "returned as an empty string C<\"\">."
11486 msgstr ""
11487
11488 #. type: =item
11489 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3509
11490 msgid "C<app_source_package>"
11491 msgstr "C<app_source_package>"
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3511
11495 msgid ""
11496 "For packaging systems which support this, the name of the source package.  "
11497 "If unavailable this is returned as an empty string C<\"\">."
11498 msgstr ""
11499
11500 #. type: =item
11501 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3514
11502 msgid "C<app_summary>"
11503 msgstr "C<app_summary>"
11504
11505 #. type: textblock
11506 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3516
11507 msgid ""
11508 "A short (usually one line) description of the application or package.  If "
11509 "unavailable this is returned as an empty string C<\"\">."
11510 msgstr ""
11511
11512 #. type: =item
11513 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3519
11514 msgid "C<app_description>"
11515 msgstr "C<app_description>"
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3521
11519 msgid ""
11520 "A longer description of the application or package.  If unavailable this is "
11521 "returned as an empty string C<\"\">."
11522 msgstr ""
11523
11524 #. type: =head2
11525 #: ../fish/guestfish-actions.pod:2395
11526 msgid "inspect-os"
11527 msgstr "inspect-os"
11528
11529 #. type: verbatim
11530 #: ../fish/guestfish-actions.pod:2397
11531 #, no-wrap
11532 msgid ""
11533 " inspect-os\n"
11534 "\n"
11535 msgstr ""
11536 " inspect-os\n"
11537 "\n"
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3539
11541 msgid ""
11542 "This function uses other libguestfs functions and certain heuristics to "
11543 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11544 "for operating systems."
11545 msgstr ""
11546
11547 #. type: textblock
11548 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3543
11549 msgid "The list returned is empty if no operating systems were found."
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3545
11554 msgid ""
11555 "If one operating system was found, then this returns a list with a single "
11556 "element, which is the name of the root filesystem of this operating system.  "
11557 "It is also possible for this function to return a list containing more than "
11558 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11559 "element being the root filesystem of one of the operating systems."
11560 msgstr ""
11561
11562 #. type: textblock
11563 #: ../fish/guestfish-actions.pod:2412
11564 msgid ""
11565 "You can pass the root string(s) returned to other L</inspect-get-*> "
11566 "functions in order to query further information about each operating system, "
11567 "such as the name and version."
11568 msgstr ""
11569
11570 #. type: textblock
11571 #: ../fish/guestfish-actions.pod:2417
11572 msgid ""
11573 "This function uses other libguestfs features such as L</mount-ro> and L</"
11574 "umount-all> in order to mount and unmount filesystems and look at the "
11575 "contents.  This should be called with no disks currently mounted.  The "
11576 "function may also use Augeas, so any existing Augeas handle will be closed."
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3563
11581 msgid ""
11582 "This function cannot decrypt encrypted disks.  The caller must do that first "
11583 "(supplying the necessary keys) if the disk is encrypted."
11584 msgstr ""
11585
11586 #. type: textblock
11587 #: ../fish/guestfish-actions.pod:2429 ../fish/guestfish-actions.pod:2627
11588 #: ../fish/guestfish-actions.pod:2686
11589 msgid "See also L</list-filesystems>."
11590 msgstr "Див. також L</list-filesystems>."
11591
11592 #. type: =head2
11593 #: ../fish/guestfish-actions.pod:2431
11594 msgid "is-blockdev"
11595 msgstr "is-blockdev"
11596
11597 #. type: verbatim
11598 #: ../fish/guestfish-actions.pod:2433
11599 #, no-wrap
11600 msgid ""
11601 " is-blockdev path\n"
11602 "\n"
11603 msgstr ""
11604 " is-blockdev шлях\n"
11605 "\n"
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3583
11609 msgid ""
11610 "This returns C<true> if and only if there is a block device with the given "
11611 "C<path> name."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:2438 ../fish/guestfish-actions.pod:2456
11616 #: ../fish/guestfish-actions.pod:2475 ../fish/guestfish-actions.pod:2484
11617 #: ../fish/guestfish-actions.pod:2494 ../fish/guestfish-actions.pod:2528
11618 #: ../fish/guestfish-actions.pod:2537
11619 msgid "See also L</stat>."
11620 msgstr "Див. також L</stat>."
11621
11622 #. type: =head2
11623 #: ../fish/guestfish-actions.pod:2440
11624 msgid "is-busy"
11625 msgstr "is-busy"
11626
11627 #. type: verbatim
11628 #: ../fish/guestfish-actions.pod:2442
11629 #, no-wrap
11630 msgid ""
11631 " is-busy\n"
11632 "\n"
11633 msgstr ""
11634 " is-busy\n"
11635 "\n"
11636
11637 #. type: textblock
11638 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3597
11639 msgid ""
11640 "This returns true iff this handle is busy processing a command (in the "
11641 "C<BUSY> state)."
11642 msgstr ""
11643
11644 #. type: =head2
11645 #: ../fish/guestfish-actions.pod:2449
11646 msgid "is-chardev"
11647 msgstr "is-chardev"
11648
11649 #. type: verbatim
11650 #: ../fish/guestfish-actions.pod:2451
11651 #, no-wrap
11652 msgid ""
11653 " is-chardev path\n"
11654 "\n"
11655 msgstr ""
11656 " is-chardev шлях\n"
11657 "\n"
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3612
11661 msgid ""
11662 "This returns C<true> if and only if there is a character device with the "
11663 "given C<path> name."
11664 msgstr ""
11665
11666 #. type: =head2
11667 #: ../fish/guestfish-actions.pod:2458
11668 msgid "is-config"
11669 msgstr "is-config"
11670
11671 #. type: verbatim
11672 #: ../fish/guestfish-actions.pod:2460
11673 #, no-wrap
11674 msgid ""
11675 " is-config\n"
11676 "\n"
11677 msgstr ""
11678 " is-config\n"
11679 "\n"
11680
11681 #. type: textblock
11682 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3626
11683 msgid ""
11684 "This returns true iff this handle is being configured (in the C<CONFIG> "
11685 "state)."
11686 msgstr ""
11687
11688 #. type: =head2
11689 #: ../fish/guestfish-actions.pod:2467
11690 msgid "is-dir"
11691 msgstr "is-dir"
11692
11693 #. type: verbatim
11694 #: ../fish/guestfish-actions.pod:2469
11695 #, no-wrap
11696 msgid ""
11697 " is-dir path\n"
11698 "\n"
11699 msgstr ""
11700 " is-dir шлях\n"
11701 "\n"
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3641
11705 msgid ""
11706 "This returns C<true> if and only if there is a directory with the given "
11707 "C<path> name.  Note that it returns false for other objects like files."
11708 msgstr ""
11709
11710 #. type: =head2
11711 #: ../fish/guestfish-actions.pod:2477
11712 msgid "is-fifo"
11713 msgstr "is-fifo"
11714
11715 #. type: verbatim
11716 #: ../fish/guestfish-actions.pod:2479
11717 #, no-wrap
11718 msgid ""
11719 " is-fifo path\n"
11720 "\n"
11721 msgstr ""
11722 " is-fifo шлях\n"
11723 "\n"
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3657
11727 msgid ""
11728 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11729 "given C<path> name."
11730 msgstr ""
11731
11732 #. type: =head2
11733 #: ../fish/guestfish-actions.pod:2486
11734 msgid "is-file"
11735 msgstr "is-file"
11736
11737 #. type: verbatim
11738 #: ../fish/guestfish-actions.pod:2488
11739 #, no-wrap
11740 msgid ""
11741 " is-file path\n"
11742 "\n"
11743 msgstr ""
11744 " is-file шлях\n"
11745 "\n"
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3672
11749 msgid ""
11750 "This returns C<true> if and only if there is a regular file with the given "
11751 "C<path> name.  Note that it returns false for other objects like directories."
11752 msgstr ""
11753
11754 #. type: =head2
11755 #: ../fish/guestfish-actions.pod:2496
11756 msgid "is-launching"
11757 msgstr "is-launching"
11758
11759 #. type: verbatim
11760 #: ../fish/guestfish-actions.pod:2498
11761 #, no-wrap
11762 msgid ""
11763 " is-launching\n"
11764 "\n"
11765 msgstr ""
11766 " is-launching\n"
11767 "\n"
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3687
11771 msgid ""
11772 "This returns true iff this handle is launching the subprocess (in the "
11773 "C<LAUNCHING> state)."
11774 msgstr ""
11775
11776 #. type: =head2
11777 #: ../fish/guestfish-actions.pod:2505
11778 msgid "is-lv"
11779 msgstr "is-lv"
11780
11781 #. type: verbatim
11782 #: ../fish/guestfish-actions.pod:2507
11783 #, no-wrap
11784 msgid ""
11785 " is-lv device\n"
11786 "\n"
11787 msgstr ""
11788 " is-lv пристрій\n"
11789 "\n"
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3702
11793 msgid ""
11794 "This command tests whether C<device> is a logical volume, and returns true "
11795 "iff this is the case."
11796 msgstr ""
11797
11798 #. type: =head2
11799 #: ../fish/guestfish-actions.pod:2512
11800 msgid "is-ready"
11801 msgstr "is-ready"
11802
11803 #. type: verbatim
11804 #: ../fish/guestfish-actions.pod:2514
11805 #, no-wrap
11806 msgid ""
11807 " is-ready\n"
11808 "\n"
11809 msgstr ""
11810 " is-ready\n"
11811 "\n"
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3714
11815 msgid ""
11816 "This returns true iff this handle is ready to accept commands (in the "
11817 "C<READY> state)."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2521
11822 msgid "is-socket"
11823 msgstr "is-socket"
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2523
11827 #, no-wrap
11828 msgid ""
11829 " is-socket path\n"
11830 "\n"
11831 msgstr ""
11832 " is-socket шлях\n"
11833 "\n"
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3729
11837 msgid ""
11838 "This returns C<true> if and only if there is a Unix domain socket with the "
11839 "given C<path> name."
11840 msgstr ""
11841
11842 #. type: =head2
11843 #: ../fish/guestfish-actions.pod:2530
11844 msgid "is-symlink"
11845 msgstr "is-symlink"
11846
11847 #. type: verbatim
11848 #: ../fish/guestfish-actions.pod:2532
11849 #, no-wrap
11850 msgid ""
11851 " is-symlink path\n"
11852 "\n"
11853 msgstr ""
11854 " is-symlink шлях\n"
11855 "\n"
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3744
11859 msgid ""
11860 "This returns C<true> if and only if there is a symbolic link with the given "
11861 "C<path> name."
11862 msgstr ""
11863
11864 #. type: =head2
11865 #: ../fish/guestfish-actions.pod:2539
11866 msgid "is-zero"
11867 msgstr ""
11868
11869 #. type: verbatim
11870 #: ../fish/guestfish-actions.pod:2541
11871 #, no-wrap
11872 msgid ""
11873 " is-zero path\n"
11874 "\n"
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3759
11879 msgid ""
11880 "This returns true iff the file exists and the file is empty or it contains "
11881 "all zero bytes."
11882 msgstr ""
11883
11884 #. type: =head2
11885 #: ../fish/guestfish-actions.pod:2546
11886 msgid "is-zero-device"
11887 msgstr ""
11888
11889 #. type: verbatim
11890 #: ../fish/guestfish-actions.pod:2548
11891 #, no-wrap
11892 msgid ""
11893 " is-zero-device device\n"
11894 "\n"
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3772
11899 msgid "This returns true iff the device exists and contains all zero bytes."
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../fish/guestfish-actions.pod:2552 ../src/guestfs-actions.pod:3774
11904 msgid "Note that for large devices this can take a long time to run."
11905 msgstr ""
11906
11907 #. type: =head2
11908 #: ../fish/guestfish-actions.pod:2554
11909 msgid "kill-subprocess"
11910 msgstr "kill-subprocess"
11911
11912 #. type: verbatim
11913 #: ../fish/guestfish-actions.pod:2556
11914 #, no-wrap
11915 msgid ""
11916 " kill-subprocess\n"
11917 "\n"
11918 msgstr ""
11919 " kill-subprocess\n"
11920 "\n"
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3785
11924 msgid "This kills the qemu subprocess.  You should never need to call this."
11925 msgstr ""
11926
11927 #. type: =head2
11928 #: ../fish/guestfish-actions.pod:2560
11929 msgid "launch"
11930 msgstr "launch"
11931
11932 #. type: =head2
11933 #: ../fish/guestfish-actions.pod:2562
11934 msgid "run"
11935 msgstr ""
11936
11937 #. type: verbatim
11938 #: ../fish/guestfish-actions.pod:2564
11939 #, no-wrap
11940 msgid ""
11941 " launch\n"
11942 "\n"
11943 msgstr ""
11944 " launch\n"
11945 "\n"
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3796
11949 msgid ""
11950 "Internally libguestfs is implemented by running a virtual machine using "
11951 "L<qemu(1)>."
11952 msgstr ""
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3799
11956 msgid ""
11957 "You should call this after configuring the handle (eg. adding drives) but "
11958 "before performing any actions."
11959 msgstr ""
11960
11961 #. type: =head2
11962 #: ../fish/guestfish-actions.pod:2572
11963 msgid "lchown"
11964 msgstr "lchown"
11965
11966 #. type: verbatim
11967 #: ../fish/guestfish-actions.pod:2574
11968 #, no-wrap
11969 msgid ""
11970 " lchown owner group path\n"
11971 "\n"
11972 msgstr ""
11973 " lchown власник група шлях\n"
11974 "\n"
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:2576
11978 msgid ""
11979 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11980 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11981 "target."
11982 msgstr ""
11983
11984 #. type: =head2
11985 #: ../fish/guestfish-actions.pod:2584
11986 msgid "lgetxattr"
11987 msgstr "lgetxattr"
11988
11989 #. type: verbatim
11990 #: ../fish/guestfish-actions.pod:2586
11991 #, no-wrap
11992 msgid ""
11993 " lgetxattr path name\n"
11994 "\n"
11995 msgstr ""
11996 " lgetxattr шлях назва\n"
11997 "\n"
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3839
12001 msgid ""
12002 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12003 "is a symlink, then this call returns an extended attribute from the symlink."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2602
12008 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12009 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12010
12011 #. type: =head2
12012 #: ../fish/guestfish-actions.pod:2604
12013 msgid "lgetxattrs"
12014 msgstr "lgetxattrs"
12015
12016 #. type: verbatim
12017 #: ../fish/guestfish-actions.pod:2606
12018 #, no-wrap
12019 msgid ""
12020 " lgetxattrs path\n"
12021 "\n"
12022 msgstr ""
12023 " lgetxattrs шлях\n"
12024 "\n"
12025
12026 #. type: textblock
12027 #: ../fish/guestfish-actions.pod:2608
12028 msgid ""
12029 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12030 "it returns the extended attributes of the link itself."
12031 msgstr ""
12032
12033 #. type: =head2
12034 #: ../fish/guestfish-actions.pod:2612
12035 msgid "list-9p"
12036 msgstr ""
12037
12038 #. type: verbatim
12039 #: ../fish/guestfish-actions.pod:2614
12040 #, no-wrap
12041 msgid ""
12042 " list-9p\n"
12043 "\n"
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:2616 ../src/guestfs-actions.pod:3882
12048 msgid ""
12049 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12050 "returned."
12051 msgstr ""
12052
12053 #. type: =head2
12054 #: ../fish/guestfish-actions.pod:2619
12055 msgid "list-devices"
12056 msgstr "list-devices"
12057
12058 #. type: verbatim
12059 #: ../fish/guestfish-actions.pod:2621
12060 #, no-wrap
12061 msgid ""
12062 " list-devices\n"
12063 "\n"
12064 msgstr ""
12065 " list-devices\n"
12066 "\n"
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3896
12070 msgid "List all the block devices."
12071 msgstr ""
12072
12073 #. type: textblock
12074 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3898
12075 msgid "The full block device names are returned, eg. C</dev/sda>."
12076 msgstr ""
12077
12078 #. type: =head2
12079 #: ../fish/guestfish-actions.pod:2629
12080 msgid "list-dm-devices"
12081 msgstr ""
12082
12083 #. type: verbatim
12084 #: ../fish/guestfish-actions.pod:2631
12085 #, no-wrap
12086 msgid ""
12087 " list-dm-devices\n"
12088 "\n"
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3913
12093 msgid "List all device mapper devices."
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:2635
12098 msgid ""
12099 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12100 "previous call to L</luks-open>."
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:2638
12105 msgid ""
12106 "Device mapper devices which correspond to logical volumes are I<not> "
12107 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12108 msgstr ""
12109
12110 #. type: =head2
12111 #: ../fish/guestfish-actions.pod:2642
12112 msgid "list-filesystems"
12113 msgstr "list-filesystems"
12114
12115 #. type: verbatim
12116 #: ../fish/guestfish-actions.pod:2644
12117 #, no-wrap
12118 msgid ""
12119 " list-filesystems\n"
12120 "\n"
12121 msgstr ""
12122 " list-filesystems\n"
12123 "\n"
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
12127 msgid ""
12128 "This inspection command looks for filesystems on partitions, block devices "
12129 "and logical volumes, returning a list of devices containing filesystems and "
12130 "their type."
12131 msgstr ""
12132
12133 #. type: textblock
12134 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3937
12135 msgid ""
12136 "The return value is a hash, where the keys are the devices containing "
12137 "filesystems, and the values are the filesystem types.  For example:"
12138 msgstr ""
12139
12140 #. type: verbatim
12141 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3941
12142 #, no-wrap
12143 msgid ""
12144 " \"/dev/sda1\" => \"ntfs\"\n"
12145 " \"/dev/sda2\" => \"ext2\"\n"
12146 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12147 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12148 "\n"
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3946
12153 msgid ""
12154 "The value can have the special value \"unknown\", meaning the content of the "
12155 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:2663
12160 msgid ""
12161 "This command runs other libguestfs commands, which might include L</mount> "
12162 "and L</umount>, and therefore you should use this soon after launch and only "
12163 "when nothing is mounted."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2667
12168 msgid ""
12169 "Not all of the filesystems returned will be mountable.  In particular, swap "
12170 "partitions are returned in the list.  Also this command does not check that "
12171 "each filesystem found is valid and mountable, and some filesystems might be "
12172 "mountable but require special options.  Filesystems may not all belong to a "
12173 "single logical operating system (use L</inspect-os> to look for OSes)."
12174 msgstr ""
12175
12176 #. type: =head2
12177 #: ../fish/guestfish-actions.pod:2675
12178 msgid "list-partitions"
12179 msgstr "list-partitions"
12180
12181 #. type: verbatim
12182 #: ../fish/guestfish-actions.pod:2677
12183 #, no-wrap
12184 msgid ""
12185 " list-partitions\n"
12186 "\n"
12187 msgstr ""
12188 " list-partitions\n"
12189 "\n"
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3975
12193 msgid "List all the partitions detected on all block devices."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3977
12198 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:2683
12203 msgid ""
12204 "This does not return logical volumes.  For that you will need to call L</"
12205 "lvs>."
12206 msgstr ""
12207
12208 #. type: =head2
12209 #: ../fish/guestfish-actions.pod:2688
12210 msgid "ll"
12211 msgstr "ll"
12212
12213 #. type: verbatim
12214 #: ../fish/guestfish-actions.pod:2690
12215 #, no-wrap
12216 msgid ""
12217 " ll directory\n"
12218 "\n"
12219 msgstr ""
12220 " ll каталог\n"
12221 "\n"
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:3996
12225 msgid ""
12226 "List the files in C<directory> (relative to the root directory, there is no "
12227 "cwd) in the format of 'ls -la'."
12228 msgstr ""
12229
12230 #. type: textblock
12231 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:3999
12232 msgid ""
12233 "This command is mostly useful for interactive sessions.  It is I<not> "
12234 "intended that you try to parse the output string."
12235 msgstr ""
12236
12237 #. type: =head2
12238 #: ../fish/guestfish-actions.pod:2698
12239 msgid "ln"
12240 msgstr "ln"
12241
12242 #. type: verbatim
12243 #: ../fish/guestfish-actions.pod:2700
12244 #, no-wrap
12245 msgid ""
12246 " ln target linkname\n"
12247 "\n"
12248 msgstr ""
12249 " ln призначення назва_посилання\n"
12250 "\n"
12251
12252 #. type: textblock
12253 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4014
12254 msgid "This command creates a hard link using the C<ln> command."
12255 msgstr ""
12256
12257 #. type: =head2
12258 #: ../fish/guestfish-actions.pod:2704
12259 msgid "ln-f"
12260 msgstr "ln-f"
12261
12262 #. type: verbatim
12263 #: ../fish/guestfish-actions.pod:2706
12264 #, no-wrap
12265 msgid ""
12266 " ln-f target linkname\n"
12267 "\n"
12268 msgstr ""
12269 " ln-f призначення назва_посилання\n"
12270 "\n"
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4027
12274 msgid ""
12275 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12276 "option removes the link (C<linkname>) if it exists already."
12277 msgstr ""
12278
12279 #. type: =head2
12280 #: ../fish/guestfish-actions.pod:2711
12281 msgid "ln-s"
12282 msgstr "ln-s"
12283
12284 #. type: verbatim
12285 #: ../fish/guestfish-actions.pod:2713
12286 #, no-wrap
12287 msgid ""
12288 " ln-s target linkname\n"
12289 "\n"
12290 msgstr ""
12291 " ln-s призначення назва_посилання\n"
12292 "\n"
12293
12294 #. type: textblock
12295 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4041
12296 msgid "This command creates a symbolic link using the C<ln -s> command."
12297 msgstr ""
12298
12299 #. type: =head2
12300 #: ../fish/guestfish-actions.pod:2717
12301 msgid "ln-sf"
12302 msgstr "ln-sf"
12303
12304 #. type: verbatim
12305 #: ../fish/guestfish-actions.pod:2719
12306 #, no-wrap
12307 msgid ""
12308 " ln-sf target linkname\n"
12309 "\n"
12310 msgstr ""
12311 " ln-sf призначення назва_посилання\n"
12312 "\n"
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:2721 ../src/guestfs-actions.pod:4054
12316 msgid ""
12317 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12318 "option removes the link (C<linkname>) if it exists already."
12319 msgstr ""
12320
12321 #. type: =head2
12322 #: ../fish/guestfish-actions.pod:2724
12323 msgid "lremovexattr"
12324 msgstr "lremovexattr"
12325
12326 #. type: verbatim
12327 #: ../fish/guestfish-actions.pod:2726
12328 #, no-wrap
12329 msgid ""
12330 " lremovexattr xattr path\n"
12331 "\n"
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../fish/guestfish-actions.pod:2728
12336 msgid ""
12337 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12338 "it removes an extended attribute of the link itself."
12339 msgstr ""
12340
12341 #. type: =head2
12342 #: ../fish/guestfish-actions.pod:2732
12343 msgid "ls"
12344 msgstr "ls"
12345
12346 #. type: verbatim
12347 #: ../fish/guestfish-actions.pod:2734
12348 #, no-wrap
12349 msgid ""
12350 " ls directory\n"
12351 "\n"
12352 msgstr ""
12353 " ls каталог\n"
12354 "\n"
12355
12356 #. type: textblock
12357 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4082
12358 msgid ""
12359 "List the files in C<directory> (relative to the root directory, there is no "
12360 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:2740
12365 msgid ""
12366 "This command is mostly useful for interactive sessions.  Programs should "
12367 "probably use L</readdir> instead."
12368 msgstr ""
12369
12370 #. type: =head2
12371 #: ../fish/guestfish-actions.pod:2743
12372 msgid "lsetxattr"
12373 msgstr "lsetxattr"
12374
12375 #. type: verbatim
12376 #: ../fish/guestfish-actions.pod:2745
12377 #, no-wrap
12378 msgid ""
12379 " lsetxattr xattr val vallen path\n"
12380 "\n"
12381 msgstr ""
12382
12383 #. type: textblock
12384 #: ../fish/guestfish-actions.pod:2747
12385 msgid ""
12386 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12387 "sets an extended attribute of the link itself."
12388 msgstr ""
12389
12390 #. type: =head2
12391 #: ../fish/guestfish-actions.pod:2751
12392 msgid "lstat"
12393 msgstr "lstat"
12394
12395 #. type: verbatim
12396 #: ../fish/guestfish-actions.pod:2753
12397 #, no-wrap
12398 msgid ""
12399 " lstat path\n"
12400 "\n"
12401 msgstr ""
12402 " lstat шлях\n"
12403 "\n"
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:4565
12407 #: ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:6903
12408 msgid "Returns file information for the given C<path>."
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:2757
12413 msgid ""
12414 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12415 "the link is stat-ed, not the file it refers to."
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:2761 ../src/guestfs-actions.pod:4124
12420 msgid "This is the same as the C<lstat(2)> system call."
12421 msgstr ""
12422
12423 #. type: =head2
12424 #: ../fish/guestfish-actions.pod:2763
12425 msgid "lstatlist"
12426 msgstr "lstatlist"
12427
12428 #. type: verbatim
12429 #: ../fish/guestfish-actions.pod:2765
12430 #, no-wrap
12431 msgid ""
12432 " lstatlist path 'names ...'\n"
12433 "\n"
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../fish/guestfish-actions.pod:2767
12438 msgid ""
12439 "This call allows you to perform the L</lstat> operation on multiple files, "
12440 "where all files are in the directory C<path>.  C<names> is the list of files "
12441 "from this directory."
12442 msgstr ""
12443
12444 #. type: textblock
12445 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4143
12446 msgid ""
12447 "On return you get a list of stat structs, with a one-to-one correspondence "
12448 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12449 "then the C<ino> field of that structure is set to C<-1>."
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:2776
12454 msgid ""
12455 "This call is intended for programs that want to efficiently list a directory "
12456 "contents without making many round-trips.  See also L</lxattrlist> for a "
12457 "similarly efficient call for getting extended attributes.  Very long "
12458 "directory listings might cause the protocol message size to be exceeded, "
12459 "causing this call to fail.  The caller must split up such requests into "
12460 "smaller groups of names."
12461 msgstr ""
12462
12463 #. type: =head2
12464 #: ../fish/guestfish-actions.pod:2784
12465 msgid "luks-add-key"
12466 msgstr "luks-add-key"
12467
12468 #. type: verbatim
12469 #: ../fish/guestfish-actions.pod:2786
12470 #, no-wrap
12471 msgid ""
12472 " luks-add-key device keyslot\n"
12473 "\n"
12474 msgstr ""
12475
12476 #. type: textblock
12477 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4171
12478 msgid ""
12479 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12480 "existing key, and is used to access the device.  C<newkey> is the new key to "
12481 "add.  C<keyslot> is the key slot that will be replaced."
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:2793
12486 msgid ""
12487 "Note that if C<keyslot> already contains a key, then this command will "
12488 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:2797 ../fish/guestfish-actions.pod:2819
12493 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2846
12494 #: ../fish/guestfish-actions.pod:2872 ../fish/guestfish-actions.pod:2882
12495 msgid ""
12496 "This command has one or more key or passphrase parameters.  Guestfish will "
12497 "prompt for these separately."
12498 msgstr ""
12499
12500 #. type: =head2
12501 #: ../fish/guestfish-actions.pod:2800
12502 msgid "luks-close"
12503 msgstr "luks-close"
12504
12505 #. type: verbatim
12506 #: ../fish/guestfish-actions.pod:2802
12507 #, no-wrap
12508 msgid ""
12509 " luks-close device\n"
12510 "\n"
12511 msgstr ""
12512 " luks-close пристрій\n"
12513 "\n"
12514
12515 #. type: textblock
12516 #: ../fish/guestfish-actions.pod:2804
12517 msgid ""
12518 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12519 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12520 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12521 "block device."
12522 msgstr ""
12523
12524 #. type: =head2
12525 #: ../fish/guestfish-actions.pod:2810
12526 msgid "luks-format"
12527 msgstr "luks-format"
12528
12529 #. type: verbatim
12530 #: ../fish/guestfish-actions.pod:2812
12531 #, no-wrap
12532 msgid ""
12533 " luks-format device keyslot\n"
12534 "\n"
12535 msgstr ""
12536
12537 #. type: textblock
12538 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4212
12539 msgid ""
12540 "This command erases existing data on C<device> and formats the device as a "
12541 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12542 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12543 msgstr ""
12544
12545 #. type: textblock
12546 #: ../fish/guestfish-actions.pod:2822 ../fish/guestfish-actions.pod:2835
12547 #: ../fish/guestfish-actions.pod:2922 ../fish/guestfish-actions.pod:3573
12548 #: ../fish/guestfish-actions.pod:4099 ../fish/guestfish-actions.pod:4436
12549 #: ../fish/guestfish-actions.pod:4459 ../fish/guestfish-actions.pod:4481
12550 #: ../fish/guestfish-actions.pod:5227 ../src/guestfs-actions.pod:4219
12551 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4385
12552 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:6266
12553 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6747
12554 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7979
12555 msgid ""
12556 "B<This command is dangerous.  Without careful use you can easily destroy all "
12557 "your data>."
12558 msgstr ""
12559
12560 #. type: =head2
12561 #: ../fish/guestfish-actions.pod:2825
12562 msgid "luks-format-cipher"
12563 msgstr "luks-format-cipher"
12564
12565 #. type: verbatim
12566 #: ../fish/guestfish-actions.pod:2827
12567 #, no-wrap
12568 msgid ""
12569 " luks-format-cipher device keyslot cipher\n"
12570 "\n"
12571 msgstr ""
12572
12573 #. type: textblock
12574 #: ../fish/guestfish-actions.pod:2829
12575 msgid ""
12576 "This command is the same as L</luks-format> but it also allows you to set "
12577 "the C<cipher> used."
12578 msgstr ""
12579
12580 #. type: =head2
12581 #: ../fish/guestfish-actions.pod:2838
12582 msgid "luks-kill-slot"
12583 msgstr "luks-kill-slot"
12584
12585 #. type: verbatim
12586 #: ../fish/guestfish-actions.pod:2840
12587 #, no-wrap
12588 msgid ""
12589 " luks-kill-slot device keyslot\n"
12590 "\n"
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4259
12595 msgid ""
12596 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12597 "device C<device>.  C<key> must be one of the I<other> keys."
12598 msgstr ""
12599
12600 #. type: =head2
12601 #: ../fish/guestfish-actions.pod:2849
12602 msgid "luks-open"
12603 msgstr "luks-open"
12604
12605 #. type: verbatim
12606 #: ../fish/guestfish-actions.pod:2851
12607 #, no-wrap
12608 msgid ""
12609 " luks-open device mapname\n"
12610 "\n"
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4279
12615 msgid ""
12616 "This command opens a block device which has been encrypted according to the "
12617 "Linux Unified Key Setup (LUKS) standard."
12618 msgstr ""
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4282
12622 msgid "C<device> is the encrypted block device or partition."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4284
12627 msgid ""
12628 "The caller must supply one of the keys associated with the LUKS block "
12629 "device, in the C<key> parameter."
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4287
12634 msgid ""
12635 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12636 "writes to this block device are decrypted from and encrypted to the "
12637 "underlying C<device> respectively."
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:2865
12642 msgid ""
12643 "If this block device contains LVM volume groups, then calling L</vgscan> "
12644 "followed by L</vg-activate-all> will make them visible."
12645 msgstr ""
12646
12647 #. type: textblock
12648 #: ../fish/guestfish-actions.pod:2869
12649 msgid "Use L</list-dm-devices> to list all device mapper devices."
12650 msgstr ""
12651
12652 #. type: =head2
12653 #: ../fish/guestfish-actions.pod:2875
12654 msgid "luks-open-ro"
12655 msgstr "luks-open-ro"
12656
12657 #. type: verbatim
12658 #: ../fish/guestfish-actions.pod:2877
12659 #, no-wrap
12660 msgid ""
12661 " luks-open-ro device mapname\n"
12662 "\n"
12663 msgstr ""
12664
12665 #. type: textblock
12666 #: ../fish/guestfish-actions.pod:2879
12667 msgid ""
12668 "This is the same as L</luks-open> except that a read-only mapping is created."
12669 msgstr ""
12670
12671 #. type: =head2
12672 #: ../fish/guestfish-actions.pod:2885
12673 msgid "lvcreate"
12674 msgstr "lvcreate"
12675
12676 #. type: verbatim
12677 #: ../fish/guestfish-actions.pod:2887
12678 #, no-wrap
12679 msgid ""
12680 " lvcreate logvol volgroup mbytes\n"
12681 "\n"
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:2889 ../src/guestfs-actions.pod:4333
12686 msgid ""
12687 "This creates an LVM logical volume called C<logvol> on the volume group "
12688 "C<volgroup>, with C<size> megabytes."
12689 msgstr ""
12690
12691 #. type: =head2
12692 #: ../fish/guestfish-actions.pod:2892
12693 msgid "lvm-canonical-lv-name"
12694 msgstr "lvm-canonical-lv-name"
12695
12696 #. type: verbatim
12697 #: ../fish/guestfish-actions.pod:2894
12698 #, no-wrap
12699 msgid ""
12700 " lvm-canonical-lv-name lvname\n"
12701 "\n"
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:2896 ../src/guestfs-actions.pod:4346
12706 msgid ""
12707 "This converts alternative naming schemes for LVs that you might find to the "
12708 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12709 "LV>."
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4350
12714 msgid ""
12715 "This command returns an error if the C<lvname> parameter does not refer to a "
12716 "logical volume."
12717 msgstr ""
12718
12719 #. type: textblock
12720 #: ../fish/guestfish-actions.pod:2903
12721 msgid "See also L</is-lv>."
12722 msgstr "Див. також L</is-lv>."
12723
12724 #. type: =head2
12725 #: ../fish/guestfish-actions.pod:2905
12726 msgid "lvm-clear-filter"
12727 msgstr "lvm-clear-filter"
12728
12729 #. type: verbatim
12730 #: ../fish/guestfish-actions.pod:2907
12731 #, no-wrap
12732 msgid ""
12733 " lvm-clear-filter\n"
12734 "\n"
12735 msgstr ""
12736 " lvm-clear-filter\n"
12737 "\n"
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:2909
12741 msgid ""
12742 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12743 "block device."
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:2912 ../fish/guestfish-actions.pod:2943
12748 #: ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4410
12749 msgid ""
12750 "This command also clears the LVM cache and performs a volume group scan."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../fish/guestfish-actions.pod:2915
12755 msgid "lvm-remove-all"
12756 msgstr "lvm-remove-all"
12757
12758 #. type: verbatim
12759 #: ../fish/guestfish-actions.pod:2917
12760 #, no-wrap
12761 msgid ""
12762 " lvm-remove-all\n"
12763 "\n"
12764 msgstr ""
12765 " lvm-remove-all\n"
12766 "\n"
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4380
12770 msgid ""
12771 "This command removes all LVM logical volumes, volume groups and physical "
12772 "volumes."
12773 msgstr ""
12774
12775 #. type: =head2
12776 #: ../fish/guestfish-actions.pod:2925
12777 msgid "lvm-set-filter"
12778 msgstr "lvm-set-filter"
12779
12780 #. type: verbatim
12781 #: ../fish/guestfish-actions.pod:2927
12782 #, no-wrap
12783 msgid ""
12784 " lvm-set-filter 'devices ...'\n"
12785 "\n"
12786 msgstr ""
12787 " lvm-set-filter 'пристрої...'\n"
12788 "\n"
12789
12790 #. type: textblock
12791 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4396
12792 msgid ""
12793 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12794 "block devices in the list C<devices>, and will ignore all other attached "
12795 "block devices."
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
12800 msgid ""
12801 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12802 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12803 "there are two types of duplication possible: either cloned PVs/VGs which "
12804 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12805 "same name.  In normal operation you cannot create this situation, but you "
12806 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12807 "inside the LVM metadata."
12808 msgstr ""
12809
12810 #. type: textblock
12811 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
12812 msgid "You can filter whole block devices or individual partitions."
12813 msgstr ""
12814
12815 #. type: textblock
12816 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4415
12817 msgid ""
12818 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12819 "filesystem), even if you are not filtering out that VG."
12820 msgstr ""
12821
12822 #. type: =head2
12823 #: ../fish/guestfish-actions.pod:2952
12824 msgid "lvremove"
12825 msgstr "lvremove"
12826
12827 #. type: verbatim
12828 #: ../fish/guestfish-actions.pod:2954
12829 #, no-wrap
12830 msgid ""
12831 " lvremove device\n"
12832 "\n"
12833 msgstr ""
12834 " lvremove пристрій\n"
12835 "\n"
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4429
12839 msgid ""
12840 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12841 "LV, such as C</dev/VG/LV>."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4432
12846 msgid ""
12847 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12848 "dev/VG>."
12849 msgstr ""
12850
12851 #. type: =head2
12852 #: ../fish/guestfish-actions.pod:2962
12853 msgid "lvrename"
12854 msgstr "lvrename"
12855
12856 #. type: verbatim
12857 #: ../fish/guestfish-actions.pod:2964
12858 #, no-wrap
12859 msgid ""
12860 " lvrename logvol newlogvol\n"
12861 "\n"
12862 msgstr ""
12863
12864 #. type: textblock
12865 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4446
12866 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12867 msgstr ""
12868
12869 #. type: =head2
12870 #: ../fish/guestfish-actions.pod:2968
12871 msgid "lvresize"
12872 msgstr "lvresize"
12873
12874 #. type: verbatim
12875 #: ../fish/guestfish-actions.pod:2970
12876 #, no-wrap
12877 msgid ""
12878 " lvresize device mbytes\n"
12879 "\n"
12880 msgstr ""
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:2972 ../src/guestfs-actions.pod:4459
12884 msgid ""
12885 "This resizes (expands or shrinks) an existing LVM logical volume to "
12886 "C<mbytes>.  When reducing, data in the reduced part is lost."
12887 msgstr ""
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:2976
12891 msgid "lvresize-free"
12892 msgstr "lvresize-free"
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:2978
12896 #, no-wrap
12897 msgid ""
12898 " lvresize-free lv percent\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4474
12904 msgid ""
12905 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12906 "remaining free space in the volume group.  Commonly you would call this with "
12907 "pc = 100 which expands the logical volume as much as possible, using all "
12908 "remaining free space in the volume group."
12909 msgstr ""
12910
12911 #. type: =head2
12912 #: ../fish/guestfish-actions.pod:2986
12913 msgid "lvs"
12914 msgstr "lvs"
12915
12916 #. type: verbatim
12917 #: ../fish/guestfish-actions.pod:2988
12918 #, no-wrap
12919 msgid ""
12920 " lvs\n"
12921 "\n"
12922 msgstr ""
12923 " lvs\n"
12924 "\n"
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4489
12928 msgid ""
12929 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12930 "(8)> command."
12931 msgstr ""
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4492
12935 msgid ""
12936 "This returns a list of the logical volume device names (eg. C</dev/"
12937 "VolGroup00/LogVol00>)."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:2996
12942 msgid "See also L</lvs-full>, L</list-filesystems>."
12943 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12944
12945 #. type: =head2
12946 #: ../fish/guestfish-actions.pod:2998
12947 msgid "lvs-full"
12948 msgstr "lvs-full"
12949
12950 #. type: verbatim
12951 #: ../fish/guestfish-actions.pod:3000
12952 #, no-wrap
12953 msgid ""
12954 " lvs-full\n"
12955 "\n"
12956 msgstr ""
12957 " lvs-full\n"
12958 "\n"
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4508
12962 msgid ""
12963 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12964 "(8)> command.  The \"full\" version includes all fields."
12965 msgstr ""
12966
12967 #. type: =head2
12968 #: ../fish/guestfish-actions.pod:3005
12969 msgid "lvuuid"
12970 msgstr "lvuuid"
12971
12972 #. type: verbatim
12973 #: ../fish/guestfish-actions.pod:3007
12974 #, no-wrap
12975 msgid ""
12976 " lvuuid device\n"
12977 "\n"
12978 msgstr ""
12979 " lvuuid пристрій\n"
12980 "\n"
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4523
12984 msgid "This command returns the UUID of the LVM LV C<device>."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../fish/guestfish-actions.pod:3011
12989 msgid "lxattrlist"
12990 msgstr "lxattrlist"
12991
12992 #. type: verbatim
12993 #: ../fish/guestfish-actions.pod:3013
12994 #, no-wrap
12995 msgid ""
12996 " lxattrlist path 'names ...'\n"
12997 "\n"
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3015 ../src/guestfs-actions.pod:4537
13002 msgid ""
13003 "This call allows you to get the extended attributes of multiple files, where "
13004 "all files are in the directory C<path>.  C<names> is the list of files from "
13005 "this directory."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4541
13010 msgid ""
13011 "On return you get a flat list of xattr structs which must be interpreted "
13012 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13013 "C<attrval> in this struct is zero-length to indicate there was an error "
13014 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13015 "number (the number of following attributes for this file, which could be C<"
13016 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13017 "for the first named file.  This repeats for the second and subsequent files."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:3029
13022 msgid ""
13023 "This call is intended for programs that want to efficiently list a directory "
13024 "contents without making many round-trips.  See also L</lstatlist> for a "
13025 "similarly efficient call for getting standard stats.  Very long directory "
13026 "listings might cause the protocol message size to be exceeded, causing this "
13027 "call to fail.  The caller must split up such requests into smaller groups of "
13028 "names."
13029 msgstr ""
13030
13031 #. type: =head2
13032 #: ../fish/guestfish-actions.pod:3037
13033 msgid "mkdir"
13034 msgstr "mkdir"
13035
13036 #. type: verbatim
13037 #: ../fish/guestfish-actions.pod:3039
13038 #, no-wrap
13039 msgid ""
13040 " mkdir path\n"
13041 "\n"
13042 msgstr ""
13043 " mkdir шлях\n"
13044 "\n"
13045
13046 #. type: textblock
13047 #: ../fish/guestfish-actions.pod:3041 ../src/guestfs-actions.pod:4571
13048 msgid "Create a directory named C<path>."
13049 msgstr ""
13050
13051 #. type: =head2
13052 #: ../fish/guestfish-actions.pod:3043
13053 msgid "mkdir-mode"
13054 msgstr "mkdir-mode"
13055
13056 #. type: verbatim
13057 #: ../fish/guestfish-actions.pod:3045
13058 #, no-wrap
13059 msgid ""
13060 " mkdir-mode path mode\n"
13061 "\n"
13062 msgstr ""
13063 " mkdir-mode шлях режим\n"
13064 "\n"
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
13068 msgid ""
13069 "This command creates a directory, setting the initial permissions of the "
13070 "directory to C<mode>."
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4587
13075 msgid ""
13076 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13077 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13078 "other ways."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3054
13083 msgid "See also L</mkdir>, L</umask>"
13084 msgstr "Див. також L</mkdir>, L</umask>"
13085
13086 #. type: =head2
13087 #: ../fish/guestfish-actions.pod:3056
13088 msgid "mkdir-p"
13089 msgstr "mkdir-p"
13090
13091 #. type: verbatim
13092 #: ../fish/guestfish-actions.pod:3058
13093 #, no-wrap
13094 msgid ""
13095 " mkdir-p path\n"
13096 "\n"
13097 msgstr ""
13098 " mkdir-p шлях\n"
13099 "\n"
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4603
13103 msgid ""
13104 "Create a directory named C<path>, creating any parent directories as "
13105 "necessary.  This is like the C<mkdir -p> shell command."
13106 msgstr ""
13107
13108 #. type: =head2
13109 #: ../fish/guestfish-actions.pod:3063
13110 msgid "mkdtemp"
13111 msgstr "mkdtemp"
13112
13113 #. type: verbatim
13114 #: ../fish/guestfish-actions.pod:3065
13115 #, no-wrap
13116 msgid ""
13117 " mkdtemp template\n"
13118 "\n"
13119 msgstr ""
13120 " mkdtemp шаблон\n"
13121 "\n"
13122
13123 #. type: textblock
13124 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4616
13125 msgid ""
13126 "This command creates a temporary directory.  The C<template> parameter "
13127 "should be a full pathname for the temporary directory name with the final "
13128 "six characters being \"XXXXXX\"."
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4621
13133 msgid ""
13134 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13135 "being suitable for Windows filesystems."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4624
13140 msgid "The name of the temporary directory that was created is returned."
13141 msgstr ""
13142
13143 #. type: textblock
13144 #: ../fish/guestfish-actions.pod:3078 ../src/guestfs-actions.pod:4627
13145 msgid "The temporary directory is created with mode 0700 and is owned by root."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4630
13150 msgid ""
13151 "The caller is responsible for deleting the temporary directory and its "
13152 "contents after use."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4633
13157 msgid "See also: L<mkdtemp(3)>"
13158 msgstr ""
13159
13160 #. type: =head2
13161 #: ../fish/guestfish-actions.pod:3086
13162 msgid "mke2fs-J"
13163 msgstr "mke2fs-J"
13164
13165 #. type: verbatim
13166 #: ../fish/guestfish-actions.pod:3088
13167 #, no-wrap
13168 msgid ""
13169 " mke2fs-J fstype blocksize device journal\n"
13170 "\n"
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4649
13175 msgid ""
13176 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13177 "C<journal>.  It is equivalent to the command:"
13178 msgstr ""
13179
13180 #. type: verbatim
13181 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4653
13182 #, no-wrap
13183 msgid ""
13184 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13185 "\n"
13186 msgstr ""
13187 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13188 "\n"
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3096
13192 msgid "See also L</mke2journal>."
13193 msgstr "Див. також L</mke2journal>."
13194
13195 #. type: =head2
13196 #: ../fish/guestfish-actions.pod:3098
13197 msgid "mke2fs-JL"
13198 msgstr "mke2fs-JL"
13199
13200 #. type: verbatim
13201 #: ../fish/guestfish-actions.pod:3100
13202 #, no-wrap
13203 msgid ""
13204 " mke2fs-JL fstype blocksize device label\n"
13205 "\n"
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4670
13210 msgid ""
13211 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13212 "the journal labeled C<label>."
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:3105
13217 msgid "See also L</mke2journal-L>."
13218 msgstr "Див. також L</mke2journal-L>."
13219
13220 #. type: =head2
13221 #: ../fish/guestfish-actions.pod:3107
13222 msgid "mke2fs-JU"
13223 msgstr "mke2fs-JU"
13224
13225 #. type: verbatim
13226 #: ../fish/guestfish-actions.pod:3109
13227 #, no-wrap
13228 msgid ""
13229 " mke2fs-JU fstype blocksize device uuid\n"
13230 "\n"
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4688
13235 msgid ""
13236 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13237 "the journal with UUID C<uuid>."
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:3114
13242 msgid "See also L</mke2journal-U>."
13243 msgstr "Див. також L</mke2journal-U>."
13244
13245 #. type: =head2
13246 #: ../fish/guestfish-actions.pod:3116
13247 msgid "mke2journal"
13248 msgstr "mke2journal"
13249
13250 #. type: verbatim
13251 #: ../fish/guestfish-actions.pod:3118
13252 #, no-wrap
13253 msgid ""
13254 " mke2journal blocksize device\n"
13255 "\n"
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4704
13260 msgid ""
13261 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13262 "command:"
13263 msgstr ""
13264
13265 #. type: verbatim
13266 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4707
13267 #, no-wrap
13268 msgid ""
13269 " mke2fs -O journal_dev -b blocksize device\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: =head2
13274 #: ../fish/guestfish-actions.pod:3125
13275 msgid "mke2journal-L"
13276 msgstr "mke2journal-L"
13277
13278 #. type: verbatim
13279 #: ../fish/guestfish-actions.pod:3127
13280 #, no-wrap
13281 msgid ""
13282 " mke2journal-L blocksize label device\n"
13283 "\n"
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4721
13288 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13289 msgstr ""
13290
13291 #. type: =head2
13292 #: ../fish/guestfish-actions.pod:3131
13293 msgid "mke2journal-U"
13294 msgstr "mke2journal-U"
13295
13296 #. type: verbatim
13297 #: ../fish/guestfish-actions.pod:3133
13298 #, no-wrap
13299 msgid ""
13300 " mke2journal-U blocksize uuid device\n"
13301 "\n"
13302 msgstr ""
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4735
13306 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13307 msgstr ""
13308
13309 #. type: =head2
13310 #: ../fish/guestfish-actions.pod:3137
13311 msgid "mkfifo"
13312 msgstr "mkfifo"
13313
13314 #. type: verbatim
13315 #: ../fish/guestfish-actions.pod:3139
13316 #, no-wrap
13317 msgid ""
13318 " mkfifo mode path\n"
13319 "\n"
13320 msgstr ""
13321 " mkfifo режим шлях\n"
13322 "\n"
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3141
13326 msgid ""
13327 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13328 "is just a convenient wrapper around L</mknod>."
13329 msgstr ""
13330
13331 #. type: =head2
13332 #: ../fish/guestfish-actions.pod:3147
13333 msgid "mkfs"
13334 msgstr "mkfs"
13335
13336 #. type: verbatim
13337 #: ../fish/guestfish-actions.pod:3149
13338 #, no-wrap
13339 msgid ""
13340 " mkfs fstype device\n"
13341 "\n"
13342 msgstr ""
13343 " mkfs тип_файлової_системи пристрій\n"
13344 "\n"
13345
13346 #. type: textblock
13347 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4765
13348 msgid ""
13349 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13350 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13351 msgstr ""
13352
13353 #. type: =head2
13354 #: ../fish/guestfish-actions.pod:3155
13355 msgid "mkfs-b"
13356 msgstr "mkfs-b"
13357
13358 #. type: verbatim
13359 #: ../fish/guestfish-actions.pod:3157
13360 #, no-wrap
13361 msgid ""
13362 " mkfs-b fstype blocksize device\n"
13363 "\n"
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:3159
13368 msgid ""
13369 "This call is similar to L</mkfs>, but it allows you to control the block "
13370 "size of the resulting filesystem.  Supported block sizes depend on the "
13371 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:3164 ../fish/guestfish-actions.pod:3191
13376 #: ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4831
13377 msgid ""
13378 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13379 "cluster size."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3167
13384 msgid ""
13385 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13386 "instead."
13387 msgstr ""
13388
13389 #. type: =head2
13390 #: ../fish/guestfish-actions.pod:3174
13391 msgid "mkfs-opts"
13392 msgstr "mkfs-opts"
13393
13394 #. type: verbatim
13395 #: ../fish/guestfish-actions.pod:3176
13396 #, no-wrap
13397 msgid ""
13398 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13399 "\n"
13400 msgstr ""
13401
13402 #. type: textblock
13403 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4818
13404 msgid ""
13405 "This function creates a filesystem on C<device>.  The filesystem type is "
13406 "C<fstype>, for example C<ext3>."
13407 msgstr ""
13408
13409 #. type: =item
13410 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
13411 msgid "C<blocksize>"
13412 msgstr "C<blocksize>"
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
13416 msgid ""
13417 "The filesystem block size.  Supported block sizes depend on the filesystem "
13418 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13419 "filesystems."
13420 msgstr ""
13421
13422 #. type: textblock
13423 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
13424 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13425 msgstr ""
13426
13427 #. type: =item
13428 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
13429 msgid "C<features>"
13430 msgstr "C<features>"
13431
13432 #. type: textblock
13433 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4838
13434 msgid "This passes the I<-O> parameter to the external mkfs program."
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4840
13439 msgid ""
13440 "For certain filesystem types, this allows extra filesystem features to be "
13441 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4844
13446 msgid ""
13447 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13448 "type."
13449 msgstr ""
13450
13451 #. type: =item
13452 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4847
13453 msgid "C<inode>"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4849
13458 msgid ""
13459 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13460 "sets the inode size (only for ext2/3/4 filesystems at present)."
13461 msgstr ""
13462
13463 #. type: =item
13464 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4852
13465 msgid "C<sectorsize>"
13466 msgstr ""
13467
13468 #. type: textblock
13469 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4854
13470 msgid ""
13471 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13472 "sets sector size for ufs filesystem."
13473 msgstr ""
13474
13475 #. type: =head2
13476 #: ../fish/guestfish-actions.pod:3221
13477 msgid "mkmountpoint"
13478 msgstr "mkmountpoint"
13479
13480 #. type: verbatim
13481 #: ../fish/guestfish-actions.pod:3223
13482 #, no-wrap
13483 msgid ""
13484 " mkmountpoint exemptpath\n"
13485 "\n"
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3225
13490 msgid ""
13491 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13492 "to create extra mountpoints before mounting the first filesystem."
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4897
13497 msgid ""
13498 "These calls are I<only> necessary in some very limited circumstances, mainly "
13499 "the case where you want to mount a mix of unrelated and/or read-only "
13500 "filesystems together."
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4901
13505 msgid ""
13506 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13507 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13508 "inside that.  You can unpack this as follows in guestfish:"
13509 msgstr ""
13510
13511 #. type: verbatim
13512 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4906
13513 #, no-wrap
13514 msgid ""
13515 " add-ro Fedora-11-i686-Live.iso\n"
13516 " run\n"
13517 " mkmountpoint /cd\n"
13518 " mkmountpoint /sqsh\n"
13519 " mkmountpoint /ext3fs\n"
13520 " mount /dev/sda /cd\n"
13521 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13522 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13523 "\n"
13524 msgstr ""
13525 " add-ro Fedora-11-i686-Live.iso\n"
13526 " run\n"
13527 " mkmountpoint /cd\n"
13528 " mkmountpoint /sqsh\n"
13529 " mkmountpoint /ext3fs\n"
13530 " mount /dev/sda /cd\n"
13531 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13532 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13533 "\n"
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4915
13537 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13538 msgstr ""
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:3249
13542 msgid ""
13543 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13544 "unexpected errors if you try to mix these calls.  It is safest to manually "
13545 "unmount filesystems and remove mountpoints after use."
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:3253
13550 msgid ""
13551 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13552 "for this to work for manual mountpoints, you must ensure that the innermost "
13553 "mountpoints have the longest pathnames, as in the example code above."
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4926
13558 msgid ""
13559 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3260
13564 msgid ""
13565 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13566 "L</umount-all> to be called when the handle is closed which can also trigger "
13567 "these issues."
13568 msgstr ""
13569
13570 #. type: =head2
13571 #: ../fish/guestfish-actions.pod:3264
13572 msgid "mknod"
13573 msgstr "mknod"
13574
13575 #. type: verbatim
13576 #: ../fish/guestfish-actions.pod:3266
13577 #, no-wrap
13578 msgid ""
13579 " mknod mode devmajor devminor path\n"
13580 "\n"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4945
13585 msgid ""
13586 "This call creates block or character special devices, or named pipes (FIFOs)."
13587 msgstr ""
13588
13589 #. type: textblock
13590 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4948
13591 msgid ""
13592 "The C<mode> parameter should be the mode, using the standard constants.  "
13593 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13594 "used when creating block and character special devices."
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3276
13599 msgid ""
13600 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13601 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13602 "regular file).  These constants are available in the standard Linux header "
13603 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13604 "wrappers around this command which bitwise OR in the appropriate constant "
13605 "for you."
13606 msgstr ""
13607
13608 #. type: =head2
13609 #: ../fish/guestfish-actions.pod:3286
13610 msgid "mknod-b"
13611 msgstr "mknod-b"
13612
13613 #. type: verbatim
13614 #: ../fish/guestfish-actions.pod:3288
13615 #, no-wrap
13616 msgid ""
13617 " mknod-b mode devmajor devminor path\n"
13618 "\n"
13619 msgstr ""
13620
13621 #. type: textblock
13622 #: ../fish/guestfish-actions.pod:3290
13623 msgid ""
13624 "This call creates a block device node called C<path> with mode C<mode> and "
13625 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13626 "wrapper around L</mknod>."
13627 msgstr ""
13628
13629 #. type: =head2
13630 #: ../fish/guestfish-actions.pod:3296
13631 msgid "mknod-c"
13632 msgstr "mknod-c"
13633
13634 #. type: verbatim
13635 #: ../fish/guestfish-actions.pod:3298
13636 #, no-wrap
13637 msgid ""
13638 " mknod-c mode devmajor devminor path\n"
13639 "\n"
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:3300
13644 msgid ""
13645 "This call creates a char device node called C<path> with mode C<mode> and "
13646 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13647 "wrapper around L</mknod>."
13648 msgstr ""
13649
13650 #. type: =head2
13651 #: ../fish/guestfish-actions.pod:3306
13652 msgid "mkswap"
13653 msgstr "mkswap"
13654
13655 #. type: verbatim
13656 #: ../fish/guestfish-actions.pod:3308
13657 #, no-wrap
13658 msgid ""
13659 " mkswap device\n"
13660 "\n"
13661 msgstr ""
13662 " mkswap пристрій\n"
13663 "\n"
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5011
13667 msgid "Create a swap partition on C<device>."
13668 msgstr ""
13669
13670 #. type: =head2
13671 #: ../fish/guestfish-actions.pod:3312
13672 msgid "mkswap-L"
13673 msgstr "mkswap-L"
13674
13675 #. type: verbatim
13676 #: ../fish/guestfish-actions.pod:3314
13677 #, no-wrap
13678 msgid ""
13679 " mkswap-L label device\n"
13680 "\n"
13681 msgstr ""
13682 " mkswap-L мітка пристрій\n"
13683 "\n"
13684
13685 #. type: textblock
13686 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5024
13687 msgid "Create a swap partition on C<device> with label C<label>."
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5026
13692 msgid ""
13693 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13694 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13695 "or swap tools."
13696 msgstr ""
13697
13698 #. type: =head2
13699 #: ../fish/guestfish-actions.pod:3322
13700 msgid "mkswap-U"
13701 msgstr "mkswap-U"
13702
13703 #. type: verbatim
13704 #: ../fish/guestfish-actions.pod:3324
13705 #, no-wrap
13706 msgid ""
13707 " mkswap-U uuid device\n"
13708 "\n"
13709 msgstr ""
13710 " mkswap-U uuid пристрій\n"
13711 "\n"
13712
13713 #. type: textblock
13714 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5041
13715 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13716 msgstr ""
13717
13718 #. type: =head2
13719 #: ../fish/guestfish-actions.pod:3328
13720 msgid "mkswap-file"
13721 msgstr "mkswap-file"
13722
13723 #. type: verbatim
13724 #: ../fish/guestfish-actions.pod:3330
13725 #, no-wrap
13726 msgid ""
13727 " mkswap-file path\n"
13728 "\n"
13729 msgstr ""
13730 " mkswap-file шлях\n"
13731 "\n"
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5053
13735 msgid "Create a swap file."
13736 msgstr "Створити файл резервної пам’яті."
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:3334
13740 msgid ""
13741 "This command just writes a swap file signature to an existing file.  To "
13742 "create the file itself, use something like L</fallocate>."
13743 msgstr ""
13744
13745 #. type: =head2
13746 #: ../fish/guestfish-actions.pod:3337
13747 msgid "modprobe"
13748 msgstr "modprobe"
13749
13750 #. type: verbatim
13751 #: ../fish/guestfish-actions.pod:3339
13752 #, no-wrap
13753 msgid ""
13754 " modprobe modulename\n"
13755 "\n"
13756 msgstr ""
13757 " modprobe назва_модуля\n"
13758 "\n"
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:3341 ../src/guestfs-actions.pod:5068
13762 msgid "This loads a kernel module in the appliance."
13763 msgstr ""
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5070
13767 msgid ""
13768 "The kernel module must have been whitelisted when libguestfs was built (see "
13769 "C<appliance/kmod.whitelist.in> in the source)."
13770 msgstr ""
13771
13772 #. type: =head2
13773 #: ../fish/guestfish-actions.pod:3346
13774 msgid "mount"
13775 msgstr "mount"
13776
13777 #. type: verbatim
13778 #: ../fish/guestfish-actions.pod:3348
13779 #, no-wrap
13780 msgid ""
13781 " mount device mountpoint\n"
13782 "\n"
13783 msgstr ""
13784 " mount пристрій точка_монтування\n"
13785 "\n"
13786
13787 #. type: textblock
13788 #: ../fish/guestfish-actions.pod:3350 ../src/guestfs-actions.pod:5084
13789 msgid ""
13790 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13791 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13792 "those block devices contain partitions, they will have the usual names (eg. "
13793 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13794 msgstr ""
13795
13796 #. type: textblock
13797 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5090
13798 msgid ""
13799 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13800 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13801 "mounted on directories which already exist."
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5095
13806 msgid ""
13807 "The mounted filesystem is writable, if we have sufficient permissions on the "
13808 "underlying device."
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:3364
13813 msgid ""
13814 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13815 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13816 "problems for users.  If your program might need to work with older versions "
13817 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13818 "first parameter if you don't want any options)."
13819 msgstr ""
13820
13821 #. type: =head2
13822 #: ../fish/guestfish-actions.pod:3371
13823 msgid "mount-9p"
13824 msgstr ""
13825
13826 #. type: verbatim
13827 #: ../fish/guestfish-actions.pod:3373
13828 #, no-wrap
13829 msgid ""
13830 " mount-9p mounttag mountpoint [options:..]\n"
13831 "\n"
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5124
13836 msgid ""
13837 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13838 "C<mountpoint>."
13839 msgstr ""
13840
13841 #. type: textblock
13842 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5127
13843 msgid ""
13844 "If required, C<trans=virtio> will be automatically added to the options.  "
13845 "Any other options required can be passed in the optional C<options> "
13846 "parameter."
13847 msgstr ""
13848
13849 #. type: =head2
13850 #: ../fish/guestfish-actions.pod:3384
13851 msgid "mount-loop"
13852 msgstr "mount-loop"
13853
13854 #. type: verbatim
13855 #: ../fish/guestfish-actions.pod:3386
13856 #, no-wrap
13857 msgid ""
13858 " mount-loop file mountpoint\n"
13859 "\n"
13860 msgstr ""
13861
13862 #. type: textblock
13863 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5166
13864 msgid ""
13865 "This command lets you mount C<file> (a filesystem image in a file) on a "
13866 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13867 "mountpoint>."
13868 msgstr ""
13869
13870 #. type: =head2
13871 #: ../fish/guestfish-actions.pod:3392
13872 msgid "mount-options"
13873 msgstr "mount-options"
13874
13875 #. type: verbatim
13876 #: ../fish/guestfish-actions.pod:3394
13877 #, no-wrap
13878 msgid ""
13879 " mount-options options device mountpoint\n"
13880 "\n"
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../fish/guestfish-actions.pod:3396
13885 msgid ""
13886 "This is the same as the L</mount> command, but it allows you to set the "
13887 "mount options as for the L<mount(8)> I<-o> flag."
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5186
13892 msgid ""
13893 "If the C<options> parameter is an empty string, then no options are passed "
13894 "(all options default to whatever the filesystem uses)."
13895 msgstr ""
13896
13897 #. type: =head2
13898 #: ../fish/guestfish-actions.pod:3404
13899 msgid "mount-ro"
13900 msgstr "mount-ro"
13901
13902 #. type: verbatim
13903 #: ../fish/guestfish-actions.pod:3406
13904 #, no-wrap
13905 msgid ""
13906 " mount-ro device mountpoint\n"
13907 "\n"
13908 msgstr ""
13909 " mount-ro пристрій точка_монтування\n"
13910 "\n"
13911
13912 #. type: textblock
13913 #: ../fish/guestfish-actions.pod:3408
13914 msgid ""
13915 "This is the same as the L</mount> command, but it mounts the filesystem with "
13916 "the read-only (I<-o ro>) flag."
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:3411
13921 msgid "mount-vfs"
13922 msgstr "mount-vfs"
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:3413
13926 #, no-wrap
13927 msgid ""
13928 " mount-vfs options vfstype device mountpoint\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:3415
13934 msgid ""
13935 "This is the same as the L</mount> command, but it allows you to set both the "
13936 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13937 msgstr ""
13938
13939 #. type: =head2
13940 #: ../fish/guestfish-actions.pod:3419
13941 msgid "mountpoints"
13942 msgstr "mountpoints"
13943
13944 #. type: verbatim
13945 #: ../fish/guestfish-actions.pod:3421
13946 #, no-wrap
13947 msgid ""
13948 " mountpoints\n"
13949 "\n"
13950 msgstr ""
13951 " mountpoints\n"
13952 "\n"
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:3423
13956 msgid ""
13957 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13958 "This one returns a hash table (map) of device name to directory where the "
13959 "device is mounted."
13960 msgstr ""
13961
13962 #. type: =head2
13963 #: ../fish/guestfish-actions.pod:3427
13964 msgid "mounts"
13965 msgstr "mounts"
13966
13967 #. type: verbatim
13968 #: ../fish/guestfish-actions.pod:3429
13969 #, no-wrap
13970 msgid ""
13971 " mounts\n"
13972 "\n"
13973 msgstr ""
13974 " mounts\n"
13975 "\n"
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5247
13979 msgid ""
13980 "This returns the list of currently mounted filesystems.  It returns the list "
13981 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5250
13986 msgid "Some internal mounts are not shown."
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../fish/guestfish-actions.pod:3436
13991 msgid "See also: L</mountpoints>"
13992 msgstr "Див. також L</mountpoints>"
13993
13994 #. type: =head2
13995 #: ../fish/guestfish-actions.pod:3438
13996 msgid "mv"
13997 msgstr "mv"
13998
13999 #. type: verbatim
14000 #: ../fish/guestfish-actions.pod:3440
14001 #, no-wrap
14002 msgid ""
14003 " mv src dest\n"
14004 "\n"
14005 msgstr ""
14006 " mv джерело призначення\n"
14007 "\n"
14008
14009 #. type: textblock
14010 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5267
14011 msgid ""
14012 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14013 "destination filename or destination directory."
14014 msgstr ""
14015
14016 #. type: =head2
14017 #: ../fish/guestfish-actions.pod:3445
14018 msgid "ntfs-3g-probe"
14019 msgstr "ntfs-3g-probe"
14020
14021 #. type: verbatim
14022 #: ../fish/guestfish-actions.pod:3447
14023 #, no-wrap
14024 msgid ""
14025 " ntfs-3g-probe true|false device\n"
14026 "\n"
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5281
14031 msgid ""
14032 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14033 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14034 "write, and some cannot be mounted at all)."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5285
14039 msgid ""
14040 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14041 "can be mounted read-write.  Set it to false if you want to test if the "
14042 "volume can be mounted read-only."
14043 msgstr ""
14044
14045 #. type: textblock
14046 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5289
14047 msgid ""
14048 "The return value is an integer which C<0> if the operation would succeed, or "
14049 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14050 msgstr ""
14051
14052 #. type: =head2
14053 #: ../fish/guestfish-actions.pod:3461
14054 msgid "ntfsresize"
14055 msgstr "ntfsresize"
14056
14057 #. type: verbatim
14058 #: ../fish/guestfish-actions.pod:3463
14059 #, no-wrap
14060 msgid ""
14061 " ntfsresize device\n"
14062 "\n"
14063 msgstr ""
14064 " ntfsresize пристрій\n"
14065 "\n"
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3489
14069 #: ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5342
14070 msgid ""
14071 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14072 "size of the underlying device."
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../fish/guestfish-actions.pod:3468 ../src/guestfs-actions.pod:5313
14077 msgid ""
14078 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14079 "consistency check (for safety).  You have to boot into Windows to perform "
14080 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14081 "resize filesystems which have been marked in this way.  So in effect it is "
14082 "not possible to call ntfsresize multiple times on a single filesystem "
14083 "without booting into Windows between each resize."
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:3476 ../fish/guestfish-actions.pod:3515
14088 #: ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:5368
14089 msgid "See also L<ntfsresize(8)>."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
14094 msgid ""
14095 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14096 "call instead."
14097 msgstr ""
14098
14099 #. type: =head2
14100 #: ../fish/guestfish-actions.pod:3485
14101 msgid "ntfsresize-opts"
14102 msgstr ""
14103
14104 #. type: verbatim
14105 #: ../fish/guestfish-actions.pod:3487
14106 #, no-wrap
14107 msgid ""
14108 " ntfsresize-opts device [size:..] [force:..]\n"
14109 "\n"
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5351
14114 msgid ""
14115 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14116 "resized to fit the container (eg. partition)."
14117 msgstr ""
14118
14119 #. type: =item
14120 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5354
14121 msgid "C<force>"
14122 msgstr ""
14123
14124 #. type: textblock
14125 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5356
14126 msgid ""
14127 "If this option is true, then force the resize of the filesystem even if the "
14128 "filesystem is marked as requiring a consistency check."
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3506
14133 msgid ""
14134 "After the resize operation, the filesystem is always marked as requiring a "
14135 "consistency check (for safety).  You have to boot into Windows to perform "
14136 "this check and clear this condition.  If you I<don't> set the C<force> "
14137 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14138 "a single filesystem without booting into Windows between each resize."
14139 msgstr ""
14140
14141 #. type: =head2
14142 #: ../fish/guestfish-actions.pod:3519
14143 msgid "ntfsresize-size"
14144 msgstr "ntfsresize-size"
14145
14146 #. type: verbatim
14147 #: ../fish/guestfish-actions.pod:3521
14148 #, no-wrap
14149 msgid ""
14150 " ntfsresize-size device size\n"
14151 "\n"
14152 msgstr ""
14153
14154 #. type: textblock
14155 #: ../fish/guestfish-actions.pod:3523
14156 msgid ""
14157 "This command is the same as L</ntfsresize> except that it allows you to "
14158 "specify the new size (in bytes) explicitly."
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../fish/guestfish-actions.pod:3533
14163 msgid "part-add"
14164 msgstr "part-add"
14165
14166 #. type: verbatim
14167 #: ../fish/guestfish-actions.pod:3535
14168 #, no-wrap
14169 msgid ""
14170 " part-add device prlogex startsect endsect\n"
14171 "\n"
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:3537
14176 msgid ""
14177 "This command adds a partition to C<device>.  If there is no partition table "
14178 "on the device, call L</part-init> first."
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5429
14183 msgid ""
14184 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14185 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14186 "C<logical>) and C<e> (or C<extended>) partition types."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5434
14191 msgid ""
14192 "C<startsect> and C<endsect> are the start and end of the partition in "
14193 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14194 "from the end of the disk (C<-1> is the last sector)."
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3549
14199 msgid ""
14200 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14201 "part-disk> to do that."
14202 msgstr ""
14203
14204 #. type: =head2
14205 #: ../fish/guestfish-actions.pod:3552
14206 msgid "part-del"
14207 msgstr "part-del"
14208
14209 #. type: verbatim
14210 #: ../fish/guestfish-actions.pod:3554
14211 #, no-wrap
14212 msgid ""
14213 " part-del device partnum\n"
14214 "\n"
14215 msgstr ""
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5452
14219 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5454
14224 msgid ""
14225 "Note that in the case of MBR partitioning, deleting an extended partition "
14226 "also deletes any logical partitions it contains."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:3562
14231 msgid "part-disk"
14232 msgstr "part-disk"
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:3564
14236 #, no-wrap
14237 msgid ""
14238 " part-disk device parttype\n"
14239 "\n"
14240 msgstr ""
14241 " part-disk пристрій тип_розділу\n"
14242 "\n"
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3566
14246 msgid ""
14247 "This command is simply a combination of L</part-init> followed by L</part-"
14248 "add> to create a single primary partition covering the whole disk."
14249 msgstr ""
14250
14251 #. type: textblock
14252 #: ../fish/guestfish-actions.pod:3570
14253 msgid ""
14254 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14255 "possible values are described in L</part-init>."
14256 msgstr ""
14257
14258 #. type: =head2
14259 #: ../fish/guestfish-actions.pod:3576
14260 msgid "part-get-bootable"
14261 msgstr "part-get-bootable"
14262
14263 #. type: verbatim
14264 #: ../fish/guestfish-actions.pod:3578
14265 #, no-wrap
14266 msgid ""
14267 " part-get-bootable device partnum\n"
14268 "\n"
14269 msgstr ""
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5490
14273 msgid ""
14274 "This command returns true if the partition C<partnum> on C<device> has the "
14275 "bootable flag set."
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:3583
14280 msgid "See also L</part-set-bootable>."
14281 msgstr "Див. також L</part-set-bootable>."
14282
14283 #. type: =head2
14284 #: ../fish/guestfish-actions.pod:3585
14285 msgid "part-get-mbr-id"
14286 msgstr "part-get-mbr-id"
14287
14288 #. type: verbatim
14289 #: ../fish/guestfish-actions.pod:3587
14290 #, no-wrap
14291 msgid ""
14292 " part-get-mbr-id device partnum\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5506
14298 msgid ""
14299 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14300 "partition C<partnum>."
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3736
14305 msgid ""
14306 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14307 "undefined results for other partition table types (see L</part-get-"
14308 "parttype>)."
14309 msgstr ""
14310
14311 #. type: =head2
14312 #: ../fish/guestfish-actions.pod:3596
14313 msgid "part-get-parttype"
14314 msgstr "part-get-parttype"
14315
14316 #. type: verbatim
14317 #: ../fish/guestfish-actions.pod:3598
14318 #, no-wrap
14319 msgid ""
14320 " part-get-parttype device\n"
14321 "\n"
14322 msgstr ""
14323 " part-get-parttype пристрій\n"
14324 "\n"
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5523
14328 msgid ""
14329 "This command examines the partition table on C<device> and returns the "
14330 "partition table type (format) being used."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:3603
14335 msgid ""
14336 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14337 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14338 "possible, although unusual.  See L</part-init> for a full list."
14339 msgstr ""
14340
14341 #. type: =head2
14342 #: ../fish/guestfish-actions.pod:3608
14343 msgid "part-init"
14344 msgstr "part-init"
14345
14346 #. type: verbatim
14347 #: ../fish/guestfish-actions.pod:3610
14348 #, no-wrap
14349 msgid ""
14350 " part-init device parttype\n"
14351 "\n"
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
14356 msgid ""
14357 "This creates an empty partition table on C<device> of one of the partition "
14358 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14359 "(for large disks)."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:3616
14364 msgid ""
14365 "Initially there are no partitions.  Following this, you should call L</part-"
14366 "add> for each partition required."
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5550
14371 msgid "Possible values for C<parttype> are:"
14372 msgstr ""
14373
14374 #. type: =item
14375 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5554
14376 msgid "B<efi>"
14377 msgstr ""
14378
14379 #. type: =item
14380 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5556
14381 msgid "B<gpt>"
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5558
14386 msgid "Intel EFI / GPT partition table."
14387 msgstr ""
14388
14389 #. type: textblock
14390 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5560
14391 msgid ""
14392 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14393 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14394 "the C<mbr> format."
14395 msgstr ""
14396
14397 #. type: =item
14398 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5564
14399 msgid "B<mbr>"
14400 msgstr ""
14401
14402 #. type: =item
14403 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5566
14404 msgid "B<msdos>"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5568
14409 msgid ""
14410 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14411 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14412 "TB.  For large disks we recommend using C<gpt>."
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
14417 msgid ""
14418 "Other partition table types that may work but are not supported include:"
14419 msgstr ""
14420
14421 #. type: =item
14422 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5580
14423 msgid "B<aix>"
14424 msgstr "B<aix>"
14425
14426 #. type: textblock
14427 #: ../fish/guestfish-actions.pod:3651 ../src/guestfs-actions.pod:5582
14428 msgid "AIX disk labels."
14429 msgstr "Мітки дисків AIX."
14430
14431 #. type: =item
14432 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5584
14433 #, fuzzy
14434 #| msgid "B<amiga> | B<rdb>"
14435 msgid "B<amiga>"
14436 msgstr "B<amiga> | B<rdb>"
14437
14438 #. type: =item
14439 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5586
14440 msgid "B<rdb>"
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5588
14445 msgid "Amiga \"Rigid Disk Block\" format."
14446 msgstr "Формат \"Rigid Disk Block\" Amiga."
14447
14448 #. type: =item
14449 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5590
14450 msgid "B<bsd>"
14451 msgstr "B<bsd>"
14452
14453 #. type: textblock
14454 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5592
14455 msgid "BSD disk labels."
14456 msgstr "Мітки дисків BSD."
14457
14458 #. type: =item
14459 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5594
14460 msgid "B<dasd>"
14461 msgstr "B<dasd>"
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5596
14465 msgid "DASD, used on IBM mainframes."
14466 msgstr "DASD, використовувалися у мейнфреймах IBM."
14467
14468 #. type: =item
14469 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5598
14470 msgid "B<dvh>"
14471 msgstr "B<dvh>"
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5600
14475 msgid "MIPS/SGI volumes."
14476 msgstr "Томи MIPS/SGI."
14477
14478 #. type: =item
14479 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5602
14480 msgid "B<mac>"
14481 msgstr "B<mac>"
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:3673 ../src/guestfs-actions.pod:5604
14485 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14486 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14487
14488 #. type: =item
14489 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5606
14490 msgid "B<pc98>"
14491 msgstr "B<pc98>"
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5608
14495 msgid "NEC PC-98 format, common in Japan apparently."
14496 msgstr "Формат NEC PC-98, поширений у Японії."
14497
14498 #. type: =item
14499 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
14500 msgid "B<sun>"
14501 msgstr "B<sun>"
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5612
14505 msgid "Sun disk labels."
14506 msgstr "Мітки дисків Sun."
14507
14508 #. type: =head2
14509 #: ../fish/guestfish-actions.pod:3685
14510 msgid "part-list"
14511 msgstr "part-list"
14512
14513 #. type: verbatim
14514 #: ../fish/guestfish-actions.pod:3687
14515 #, no-wrap
14516 msgid ""
14517 " part-list device\n"
14518 "\n"
14519 msgstr ""
14520 " part-list device\n"
14521 "\n"
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5626
14525 msgid ""
14526 "This command parses the partition table on C<device> and returns the list of "
14527 "partitions found."
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
14532 msgid "The fields in the returned structure are:"
14533 msgstr ""
14534
14535 #. type: =item
14536 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
14537 msgid "B<part_num>"
14538 msgstr "B<part_num>"
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
14542 msgid "Partition number, counting from 1."
14543 msgstr ""
14544
14545 #. type: =item
14546 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5637
14547 msgid "B<part_start>"
14548 msgstr "B<part_start>"
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:3702
14552 msgid ""
14553 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14554 "the device's sector size, see L</blockdev-getss>."
14555 msgstr ""
14556
14557 #. type: =item
14558 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5642
14559 msgid "B<part_end>"
14560 msgstr "B<part_end>"
14561
14562 #. type: textblock
14563 #: ../fish/guestfish-actions.pod:3707 ../src/guestfs-actions.pod:5644
14564 msgid "End of the partition in bytes."
14565 msgstr ""
14566
14567 #. type: =item
14568 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5646
14569 msgid "B<part_size>"
14570 msgstr "B<part_size>"
14571
14572 #. type: textblock
14573 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5648
14574 msgid "Size of the partition in bytes."
14575 msgstr ""
14576
14577 #. type: =head2
14578 #: ../fish/guestfish-actions.pod:3715
14579 msgid "part-set-bootable"
14580 msgstr "part-set-bootable"
14581
14582 #. type: verbatim
14583 #: ../fish/guestfish-actions.pod:3717
14584 #, no-wrap
14585 msgid ""
14586 " part-set-bootable device partnum true|false\n"
14587 "\n"
14588 msgstr ""
14589
14590 #. type: textblock
14591 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5666
14592 msgid ""
14593 "This sets the bootable flag on partition numbered C<partnum> on device "
14594 "C<device>.  Note that partitions are numbered from 1."
14595 msgstr ""
14596
14597 #. type: textblock
14598 #: ../fish/guestfish-actions.pod:3722 ../src/guestfs-actions.pod:5669
14599 msgid ""
14600 "The bootable flag is used by some operating systems (notably Windows) to "
14601 "determine which partition to boot from.  It is by no means universally "
14602 "recognized."
14603 msgstr ""
14604
14605 #. type: =head2
14606 #: ../fish/guestfish-actions.pod:3726
14607 msgid "part-set-mbr-id"
14608 msgstr "part-set-mbr-id"
14609
14610 #. type: verbatim
14611 #: ../fish/guestfish-actions.pod:3728
14612 #, no-wrap
14613 msgid ""
14614 " part-set-mbr-id device partnum idbyte\n"
14615 "\n"
14616 msgstr ""
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5685
14620 msgid ""
14621 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14622 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14623 "documentation are in fact hexadecimal numbers, but usually documented "
14624 "without any leading \"0x\" which might be confusing."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:3740
14629 msgid "part-set-name"
14630 msgstr "part-set-name"
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:3742
14634 #, no-wrap
14635 msgid ""
14636 " part-set-name device partnum name\n"
14637 "\n"
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5707
14642 msgid ""
14643 "This sets the partition name on partition numbered C<partnum> on device "
14644 "C<device>.  Note that partitions are numbered from 1."
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:3747 ../src/guestfs-actions.pod:5710
14649 msgid ""
14650 "The partition name can only be set on certain types of partition table.  "
14651 "This works on C<gpt> but not on C<mbr> partitions."
14652 msgstr ""
14653
14654 #. type: =head2
14655 #: ../fish/guestfish-actions.pod:3750
14656 msgid "part-to-dev"
14657 msgstr "part-to-dev"
14658
14659 #. type: verbatim
14660 #: ../fish/guestfish-actions.pod:3752
14661 #, no-wrap
14662 msgid ""
14663 " part-to-dev partition\n"
14664 "\n"
14665 msgstr ""
14666 " part-to-dev розділ\n"
14667 "\n"
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5723
14671 msgid ""
14672 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14673 "partition number, returning the device name (eg. \"/dev/sdb\")."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:3758
14678 msgid ""
14679 "The named partition must exist, for example as a string returned from L</"
14680 "list-partitions>."
14681 msgstr ""
14682
14683 #. type: =head2
14684 #: ../fish/guestfish-actions.pod:3761
14685 msgid "ping-daemon"
14686 msgstr "ping-daemon"
14687
14688 #. type: verbatim
14689 #: ../fish/guestfish-actions.pod:3763
14690 #, no-wrap
14691 msgid ""
14692 " ping-daemon\n"
14693 "\n"
14694 msgstr ""
14695 " ping-daemon\n"
14696 "\n"
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5740
14700 msgid ""
14701 "This is a test probe into the guestfs daemon running inside the qemu "
14702 "subprocess.  Calling this function checks that the daemon responds to the "
14703 "ping message, without affecting the daemon or attached block device(s) in "
14704 "any other way."
14705 msgstr ""
14706
14707 #. type: =head2
14708 #: ../fish/guestfish-actions.pod:3770
14709 msgid "pread"
14710 msgstr "pread"
14711
14712 #. type: verbatim
14713 #: ../fish/guestfish-actions.pod:3772
14714 #, no-wrap
14715 msgid ""
14716 " pread path count offset\n"
14717 "\n"
14718 msgstr ""
14719
14720 #. type: textblock
14721 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5758
14722 msgid ""
14723 "This command lets you read part of a file.  It reads C<count> bytes of the "
14724 "file, starting at C<offset>, from file C<path>."
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3777 ../fish/guestfish-actions.pod:3792
14729 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
14730 msgid ""
14731 "This may read fewer bytes than requested.  For further details see the "
14732 "L<pread(2)> system call."
14733 msgstr ""
14734
14735 #. type: textblock
14736 #: ../fish/guestfish-actions.pod:3780
14737 msgid "See also L</pwrite>, L</pread-device>."
14738 msgstr "Див. також L</pwrite>, L</pread-device>."
14739
14740 #. type: =head2
14741 #: ../fish/guestfish-actions.pod:3785
14742 msgid "pread-device"
14743 msgstr "pread-device"
14744
14745 #. type: verbatim
14746 #: ../fish/guestfish-actions.pod:3787
14747 #, no-wrap
14748 msgid ""
14749 " pread-device device count offset\n"
14750 "\n"
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5784
14755 msgid ""
14756 "This command lets you read part of a file.  It reads C<count> bytes of "
14757 "C<device>, starting at C<offset>."
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:3795
14762 msgid "See also L</pread>."
14763 msgstr "Див. також L</pread>."
14764
14765 #. type: =head2
14766 #: ../fish/guestfish-actions.pod:3800
14767 msgid "pvcreate"
14768 msgstr "pvcreate"
14769
14770 #. type: verbatim
14771 #: ../fish/guestfish-actions.pod:3802
14772 #, no-wrap
14773 msgid ""
14774 " pvcreate device\n"
14775 "\n"
14776 msgstr ""
14777 " pvcreate пристрій\n"
14778 "\n"
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5807
14782 msgid ""
14783 "This creates an LVM physical volume on the named C<device>, where C<device> "
14784 "should usually be a partition name such as C</dev/sda1>."
14785 msgstr ""
14786
14787 #. type: =head2
14788 #: ../fish/guestfish-actions.pod:3808
14789 msgid "pvremove"
14790 msgstr "pvremove"
14791
14792 #. type: verbatim
14793 #: ../fish/guestfish-actions.pod:3810
14794 #, no-wrap
14795 msgid ""
14796 " pvremove device\n"
14797 "\n"
14798 msgstr ""
14799 " pvremove пристрій\n"
14800 "\n"
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5821
14804 msgid ""
14805 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14806 "it."
14807 msgstr ""
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5824
14811 msgid ""
14812 "The implementation uses the C<pvremove> command which refuses to wipe "
14813 "physical volumes that contain any volume groups, so you have to remove those "
14814 "first."
14815 msgstr ""
14816
14817 #. type: =head2
14818 #: ../fish/guestfish-actions.pod:3819
14819 msgid "pvresize"
14820 msgstr "pvresize"
14821
14822 #. type: verbatim
14823 #: ../fish/guestfish-actions.pod:3821
14824 #, no-wrap
14825 msgid ""
14826 " pvresize device\n"
14827 "\n"
14828 msgstr ""
14829 " pvresize пристрій\n"
14830 "\n"
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5838
14834 msgid ""
14835 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14836 "the new size of the underlying device."
14837 msgstr ""
14838
14839 #. type: =head2
14840 #: ../fish/guestfish-actions.pod:3826
14841 msgid "pvresize-size"
14842 msgstr "pvresize-size"
14843
14844 #. type: verbatim
14845 #: ../fish/guestfish-actions.pod:3828
14846 #, no-wrap
14847 msgid ""
14848 " pvresize-size device size\n"
14849 "\n"
14850 msgstr ""
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:3830
14854 msgid ""
14855 "This command is the same as L</pvresize> except that it allows you to "
14856 "specify the new size (in bytes) explicitly."
14857 msgstr ""
14858
14859 #. type: =head2
14860 #: ../fish/guestfish-actions.pod:3833
14861 msgid "pvs"
14862 msgstr "pvs"
14863
14864 #. type: verbatim
14865 #: ../fish/guestfish-actions.pod:3835
14866 #, no-wrap
14867 msgid ""
14868 " pvs\n"
14869 "\n"
14870 msgstr ""
14871 " pvs\n"
14872 "\n"
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5864
14876 msgid ""
14877 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14878 "(8)> command."
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:3840 ../src/guestfs-actions.pod:5867
14883 msgid ""
14884 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14885 "sda2>)."
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:3843
14890 msgid "See also L</pvs-full>."
14891 msgstr "Див. також L</pvs-full>."
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-actions.pod:3845
14895 msgid "pvs-full"
14896 msgstr "pvs-full"
14897
14898 #. type: verbatim
14899 #: ../fish/guestfish-actions.pod:3847
14900 #, no-wrap
14901 msgid ""
14902 " pvs-full\n"
14903 "\n"
14904 msgstr ""
14905 " pvs-full\n"
14906 "\n"
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5883
14910 msgid ""
14911 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14912 "(8)> command.  The \"full\" version includes all fields."
14913 msgstr ""
14914
14915 #. type: =head2
14916 #: ../fish/guestfish-actions.pod:3852
14917 msgid "pvuuid"
14918 msgstr "pvuuid"
14919
14920 #. type: verbatim
14921 #: ../fish/guestfish-actions.pod:3854
14922 #, no-wrap
14923 msgid ""
14924 " pvuuid device\n"
14925 "\n"
14926 msgstr ""
14927 " pvuuid пристрій\n"
14928 "\n"
14929
14930 #. type: textblock
14931 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5898
14932 msgid "This command returns the UUID of the LVM PV C<device>."
14933 msgstr ""
14934
14935 #. type: =head2
14936 #: ../fish/guestfish-actions.pod:3858
14937 msgid "pwrite"
14938 msgstr "pwrite"
14939
14940 #. type: verbatim
14941 #: ../fish/guestfish-actions.pod:3860
14942 #, no-wrap
14943 msgid ""
14944 " pwrite path content offset\n"
14945 "\n"
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5914
14950 msgid ""
14951 "This command writes to part of a file.  It writes the data buffer C<content> "
14952 "to the file C<path> starting at offset C<offset>."
14953 msgstr ""
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:5917
14957 msgid ""
14958 "This command implements the L<pwrite(2)> system call, and like that system "
14959 "call it may not write the full data requested.  The return value is the "
14960 "number of bytes that were actually written to the file.  This could even be "
14961 "0, although short writes are unlikely for regular files in ordinary "
14962 "circumstances."
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:3871
14967 msgid "See also L</pread>, L</pwrite-device>."
14968 msgstr "Див. також L</pread>, L</pwrite-device>."
14969
14970 #. type: =head2
14971 #: ../fish/guestfish-actions.pod:3876
14972 msgid "pwrite-device"
14973 msgstr "pwrite-device"
14974
14975 #. type: verbatim
14976 #: ../fish/guestfish-actions.pod:3878
14977 #, no-wrap
14978 msgid ""
14979 " pwrite-device device content offset\n"
14980 "\n"
14981 msgstr ""
14982
14983 #. type: textblock
14984 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5941
14985 msgid ""
14986 "This command writes to part of a device.  It writes the data buffer "
14987 "C<content> to C<device> starting at offset C<offset>."
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5944
14992 msgid ""
14993 "This command implements the L<pwrite(2)> system call, and like that system "
14994 "call it may not write the full data requested (although short writes to disk "
14995 "devices and partitions are probably impossible with standard Linux kernels)."
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:3888
15000 msgid "See also L</pwrite>."
15001 msgstr "Див. також L</pwrite>."
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:3893
15005 msgid "read-file"
15006 msgstr "read-file"
15007
15008 #. type: verbatim
15009 #: ../fish/guestfish-actions.pod:3895
15010 #, no-wrap
15011 msgid ""
15012 " read-file path\n"
15013 "\n"
15014 msgstr ""
15015 " read-file шлях\n"
15016 "\n"
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5965
15020 msgid "This calls returns the contents of the file C<path> as a buffer."
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../fish/guestfish-actions.pod:3900
15025 msgid ""
15026 "Unlike L</cat>, this function can correctly handle files that contain "
15027 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15028 "is limited in the total size of file that can be handled."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:3908
15033 msgid "read-lines"
15034 msgstr "read-lines"
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-actions.pod:3910
15038 #, no-wrap
15039 msgid ""
15040 " read-lines path\n"
15041 "\n"
15042 msgstr ""
15043 " read-lines шлях\n"
15044 "\n"
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5990
15048 msgid ""
15049 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15050 "C<CRLF> character sequences are I<not> returned."
15051 msgstr ""
15052
15053 #. type: textblock
15054 #: ../fish/guestfish-actions.pod:3917
15055 msgid ""
15056 "Note that this function cannot correctly handle binary files (specifically, "
15057 "files containing C<\\0> character which is treated as end of line).  For "
15058 "those you need to use the L</read-file> function which has a more complex "
15059 "interface."
15060 msgstr ""
15061
15062 #. type: =head2
15063 #: ../fish/guestfish-actions.pod:3922
15064 msgid "readdir"
15065 msgstr "readdir"
15066
15067 #. type: verbatim
15068 #: ../fish/guestfish-actions.pod:3924
15069 #, no-wrap
15070 msgid ""
15071 " readdir dir\n"
15072 "\n"
15073 msgstr ""
15074 " readdir каталог\n"
15075 "\n"
15076
15077 #. type: textblock
15078 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
15079 msgid "This returns the list of directory entries in directory C<dir>."
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
15084 msgid ""
15085 "All entries in the directory are returned, including C<.> and C<..>.  The "
15086 "entries are I<not> sorted, but returned in the same order as the underlying "
15087 "filesystem."
15088 msgstr ""
15089
15090 #. type: textblock
15091 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
15092 msgid ""
15093 "Also this call returns basic file type information about each file.  The "
15094 "C<ftyp> field will contain one of the following characters:"
15095 msgstr ""
15096
15097 #. type: =item
15098 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6021
15099 msgid "'b'"
15100 msgstr "'b'"
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6023
15104 msgid "Block special"
15105 msgstr "Блоковий особливий"
15106
15107 #. type: =item
15108 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6025
15109 msgid "'c'"
15110 msgstr "'c'"
15111
15112 #. type: textblock
15113 #: ../fish/guestfish-actions.pod:3943 ../src/guestfs-actions.pod:6027
15114 msgid "Char special"
15115 msgstr "Символьний особливий"
15116
15117 #. type: =item
15118 #: ../fish/guestfish-actions.pod:3945 ../src/guestfs-actions.pod:6029
15119 msgid "'d'"
15120 msgstr "'d'"
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6031
15124 msgid "Directory"
15125 msgstr "Каталог"
15126
15127 #. type: =item
15128 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6033
15129 msgid "'f'"
15130 msgstr "'f'"
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:3951 ../src/guestfs-actions.pod:6035
15134 msgid "FIFO (named pipe)"
15135 msgstr "FIFO (іменований канал)"
15136
15137 #. type: =item
15138 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6037
15139 msgid "'l'"
15140 msgstr "'l'"
15141
15142 #. type: textblock
15143 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6039
15144 msgid "Symbolic link"
15145 msgstr "Символічне посилання"
15146
15147 #. type: =item
15148 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6041
15149 msgid "'r'"
15150 msgstr "'r'"
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6043
15154 msgid "Regular file"
15155 msgstr "Звичайний файл"
15156
15157 #. type: =item
15158 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6045
15159 msgid "'s'"
15160 msgstr "'s'"
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6047
15164 msgid "Socket"
15165 msgstr "Сокет"
15166
15167 #. type: =item
15168 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6049
15169 msgid "'u'"
15170 msgstr "'u'"
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-actions.pod:3967 ../src/guestfs-actions.pod:6051
15174 msgid "Unknown file type"
15175 msgstr "Невідомий тип файла"
15176
15177 #. type: =item
15178 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6053
15179 msgid "'?'"
15180 msgstr ""
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6055
15184 msgid ""
15185 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:3976
15190 msgid ""
15191 "This function is primarily intended for use by programs.  To get a simple "
15192 "list of names, use L</ls>.  To get a printable directory for human "
15193 "consumption, use L</ll>."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:3980
15198 msgid "readlink"
15199 msgstr "readlink"
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:3982
15203 #, no-wrap
15204 msgid ""
15205 " readlink path\n"
15206 "\n"
15207 msgstr ""
15208 " readlink шлях\n"
15209 "\n"
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6076
15213 msgid "This command reads the target of a symbolic link."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-actions.pod:3986
15218 msgid "readlinklist"
15219 msgstr "readlinklist"
15220
15221 #. type: verbatim
15222 #: ../fish/guestfish-actions.pod:3988
15223 #, no-wrap
15224 msgid ""
15225 " readlinklist path 'names ...'\n"
15226 "\n"
15227 msgstr ""
15228
15229 #. type: textblock
15230 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6090
15231 msgid ""
15232 "This call allows you to do a C<readlink> operation on multiple files, where "
15233 "all files are in the directory C<path>.  C<names> is the list of files from "
15234 "this directory."
15235 msgstr ""
15236
15237 #. type: textblock
15238 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6094
15239 msgid ""
15240 "On return you get a list of strings, with a one-to-one correspondence to the "
15241 "C<names> list.  Each string is the value of the symbolic link."
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6098
15246 msgid ""
15247 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15248 "result string is the empty string C<\"\">.  However the whole operation is "
15249 "completed even if there were C<readlink(2)> errors, and so you can call this "
15250 "function with names where you don't know if they are symbolic links already "
15251 "(albeit slightly less efficient)."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6105
15256 msgid ""
15257 "This call is intended for programs that want to efficiently list a directory "
15258 "contents without making many round-trips.  Very long directory listings "
15259 "might cause the protocol message size to be exceeded, causing this call to "
15260 "fail.  The caller must split up such requests into smaller groups of names."
15261 msgstr ""
15262
15263 #. type: =head2
15264 #: ../fish/guestfish-actions.pod:4012
15265 msgid "realpath"
15266 msgstr "realpath"
15267
15268 #. type: verbatim
15269 #: ../fish/guestfish-actions.pod:4014
15270 #, no-wrap
15271 msgid ""
15272 " realpath path\n"
15273 "\n"
15274 msgstr ""
15275 " realpath шлях\n"
15276 "\n"
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4016 ../src/guestfs-actions.pod:6124
15280 msgid ""
15281 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15282 "has no C<.>, C<..> or symbolic link path elements."
15283 msgstr ""
15284
15285 #. type: =head2
15286 #: ../fish/guestfish-actions.pod:4019
15287 msgid "removexattr"
15288 msgstr "removexattr"
15289
15290 #. type: verbatim
15291 #: ../fish/guestfish-actions.pod:4021
15292 #, no-wrap
15293 msgid ""
15294 " removexattr xattr path\n"
15295 "\n"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6139
15300 msgid ""
15301 "This call removes the extended attribute named C<xattr> of the file C<path>."
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../fish/guestfish-actions.pod:4026
15306 msgid "See also: L</lremovexattr>, L<attr(5)>."
15307 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15308
15309 #. type: =head2
15310 #: ../fish/guestfish-actions.pod:4028
15311 msgid "resize2fs"
15312 msgstr "resize2fs"
15313
15314 #. type: verbatim
15315 #: ../fish/guestfish-actions.pod:4030
15316 #, no-wrap
15317 msgid ""
15318 " resize2fs device\n"
15319 "\n"
15320 msgstr ""
15321 " resize2fs пристрій\n"
15322 "\n"
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6154
15326 msgid ""
15327 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15328 "underlying device."
15329 msgstr ""
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4035
15333 msgid ""
15334 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15335 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15336 "gives an error about this and sometimes not.  In any case, it is always safe "
15337 "to call L</e2fsck-f> before calling this function."
15338 msgstr ""
15339
15340 #. type: =head2
15341 #: ../fish/guestfish-actions.pod:4041
15342 msgid "resize2fs-M"
15343 msgstr "resize2fs-M"
15344
15345 #. type: verbatim
15346 #: ../fish/guestfish-actions.pod:4043
15347 #, no-wrap
15348 msgid ""
15349 " resize2fs-M device\n"
15350 "\n"
15351 msgstr ""
15352 " resize2fs-M пристрій\n"
15353 "\n"
15354
15355 #. type: textblock
15356 #: ../fish/guestfish-actions.pod:4045
15357 msgid ""
15358 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15359 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15360 "command."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4049
15365 msgid ""
15366 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15367 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15368 "multiplied together, give the resulting size of the minimal filesystem in "
15369 "bytes."
15370 msgstr ""
15371
15372 #. type: =head2
15373 #: ../fish/guestfish-actions.pod:4054
15374 msgid "resize2fs-size"
15375 msgstr "resize2fs-size"
15376
15377 #. type: verbatim
15378 #: ../fish/guestfish-actions.pod:4056
15379 #, no-wrap
15380 msgid ""
15381 " resize2fs-size device size\n"
15382 "\n"
15383 msgstr ""
15384
15385 #. type: textblock
15386 #: ../fish/guestfish-actions.pod:4058
15387 msgid ""
15388 "This command is the same as L</resize2fs> except that it allows you to "
15389 "specify the new size (in bytes) explicitly."
15390 msgstr ""
15391
15392 #. type: =head2
15393 #: ../fish/guestfish-actions.pod:4061
15394 msgid "rm"
15395 msgstr "rm"
15396
15397 #. type: verbatim
15398 #: ../fish/guestfish-actions.pod:4063
15399 #, no-wrap
15400 msgid ""
15401 " rm path\n"
15402 "\n"
15403 msgstr ""
15404 " rm шлях\n"
15405 "\n"
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6206
15409 msgid "Remove the single file C<path>."
15410 msgstr ""
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4067
15414 msgid "rm-rf"
15415 msgstr "rm-rf"
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4069
15419 #, no-wrap
15420 msgid ""
15421 " rm-rf path\n"
15422 "\n"
15423 msgstr ""
15424 " rm-rf шлях\n"
15425 "\n"
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6218
15429 msgid ""
15430 "Remove the file or directory C<path>, recursively removing the contents if "
15431 "its a directory.  This is like the C<rm -rf> shell command."
15432 msgstr ""
15433
15434 #. type: =head2
15435 #: ../fish/guestfish-actions.pod:4075
15436 msgid "rmdir"
15437 msgstr "rmdir"
15438
15439 #. type: verbatim
15440 #: ../fish/guestfish-actions.pod:4077
15441 #, no-wrap
15442 msgid ""
15443 " rmdir path\n"
15444 "\n"
15445 msgstr ""
15446 " rmdir шлях\n"
15447 "\n"
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6232
15451 msgid "Remove the single directory C<path>."
15452 msgstr ""
15453
15454 #. type: =head2
15455 #: ../fish/guestfish-actions.pod:4081
15456 msgid "rmmountpoint"
15457 msgstr "rmmountpoint"
15458
15459 #. type: verbatim
15460 #: ../fish/guestfish-actions.pod:4083
15461 #, no-wrap
15462 msgid ""
15463 " rmmountpoint exemptpath\n"
15464 "\n"
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4085
15469 msgid ""
15470 "This calls removes a mountpoint that was previously created with L</"
15471 "mkmountpoint>.  See L</mkmountpoint> for full details."
15472 msgstr ""
15473
15474 #. type: =head2
15475 #: ../fish/guestfish-actions.pod:4089
15476 msgid "scrub-device"
15477 msgstr "scrub-device"
15478
15479 #. type: verbatim
15480 #: ../fish/guestfish-actions.pod:4091
15481 #, no-wrap
15482 msgid ""
15483 " scrub-device device\n"
15484 "\n"
15485 msgstr ""
15486 " scrub-device пристрій\n"
15487 "\n"
15488
15489 #. type: textblock
15490 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
15491 msgid ""
15492 "This command writes patterns over C<device> to make data retrieval more "
15493 "difficult."
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4111
15498 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6261
15499 #: ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6301
15500 msgid ""
15501 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15502 "more details."
15503 msgstr ""
15504
15505 #. type: =head2
15506 #: ../fish/guestfish-actions.pod:4102
15507 msgid "scrub-file"
15508 msgstr "scrub-file"
15509
15510 #. type: verbatim
15511 #: ../fish/guestfish-actions.pod:4104
15512 #, no-wrap
15513 msgid ""
15514 " scrub-file file\n"
15515 "\n"
15516 msgstr ""
15517 " scrub-file файл\n"
15518 "\n"
15519
15520 #. type: textblock
15521 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6277
15522 msgid ""
15523 "This command writes patterns over a file to make data retrieval more "
15524 "difficult."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6280
15529 msgid "The file is I<removed> after scrubbing."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4114
15534 msgid "scrub-freespace"
15535 msgstr "scrub-freespace"
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4116
15539 #, no-wrap
15540 msgid ""
15541 " scrub-freespace dir\n"
15542 "\n"
15543 msgstr ""
15544 " scrub-freespace каталог\n"
15545 "\n"
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4118
15549 msgid ""
15550 "This command creates the directory C<dir> and then fills it with files until "
15551 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15552 "deletes them.  The intention is to scrub any free space on the partition "
15553 "containing C<dir>."
15554 msgstr ""
15555
15556 #. type: =head2
15557 #: ../fish/guestfish-actions.pod:4127
15558 msgid "set-append"
15559 msgstr "set-append"
15560
15561 #. type: =head2
15562 #: ../fish/guestfish-actions.pod:4129
15563 msgid "append"
15564 msgstr ""
15565
15566 #. type: verbatim
15567 #: ../fish/guestfish-actions.pod:4131
15568 #, no-wrap
15569 msgid ""
15570 " set-append append\n"
15571 "\n"
15572 msgstr ""
15573
15574 #. type: textblock
15575 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6314
15576 msgid ""
15577 "This function is used to add additional options to the guest kernel command "
15578 "line."
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6317
15583 msgid ""
15584 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15585 "environment variable."
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:4139 ../src/guestfs-actions.pod:6320
15590 msgid ""
15591 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15592 "(libguestfs always adds a few of its own)."
15593 msgstr ""
15594
15595 #. type: =head2
15596 #: ../fish/guestfish-actions.pod:4142
15597 msgid "set-attach-method"
15598 msgstr "set-attach-method"
15599
15600 #. type: =head2
15601 #: ../fish/guestfish-actions.pod:4144
15602 msgid "attach-method"
15603 msgstr ""
15604
15605 #. type: verbatim
15606 #: ../fish/guestfish-actions.pod:4146
15607 #, no-wrap
15608 msgid ""
15609 " set-attach-method attachmethod\n"
15610 "\n"
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6333
15615 msgid ""
15616 "Set the method that libguestfs uses to connect to the back end guestfsd "
15617 "daemon.  Possible methods are:"
15618 msgstr ""
15619
15620 #. type: =item
15621 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6338
15622 #: ../src/guestfs.pod:2901
15623 msgid "C<appliance>"
15624 msgstr "C<appliance>"
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6340
15628 msgid ""
15629 "Launch an appliance and connect to it.  This is the ordinary method and the "
15630 "default."
15631 msgstr ""
15632
15633 #. type: =item
15634 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6343
15635 msgid "C<unix:I<path>>"
15636 msgstr "C<unix:I<шлях>>"
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6345
15640 msgid "Connect to the Unix domain socket I<path>."
15641 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15642
15643 #. type: textblock
15644 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6347
15645 msgid ""
15646 "This method lets you connect to an existing daemon or (using virtio-serial) "
15647 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15648 "RUNNING DAEMONS>."
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4168
15653 msgid "set-autosync"
15654 msgstr "set-autosync"
15655
15656 #. type: =head2
15657 #: ../fish/guestfish-actions.pod:4170
15658 msgid "autosync"
15659 msgstr "autosync"
15660
15661 #. type: verbatim
15662 #: ../fish/guestfish-actions.pod:4172
15663 #, no-wrap
15664 msgid ""
15665 " set-autosync true|false\n"
15666 "\n"
15667 msgstr ""
15668 " set-autosync true|false\n"
15669 "\n"
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6363
15673 msgid ""
15674 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15675 "effort attempt to make filesystems consistent and synchronized when the "
15676 "handle is closed (also if the program exits without closing handles)."
15677 msgstr ""
15678
15679 #. type: textblock
15680 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6368
15681 msgid ""
15682 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15683 "disabled by default)."
15684 msgstr ""
15685
15686 #. type: =head2
15687 #: ../fish/guestfish-actions.pod:4182
15688 msgid "set-direct"
15689 msgstr "set-direct"
15690
15691 #. type: =head2
15692 #: ../fish/guestfish-actions.pod:4184
15693 msgid "direct"
15694 msgstr "direct"
15695
15696 #. type: verbatim
15697 #: ../fish/guestfish-actions.pod:4186
15698 #, no-wrap
15699 msgid ""
15700 " set-direct true|false\n"
15701 "\n"
15702 msgstr ""
15703 " set-direct true|false\n"
15704 "\n"
15705
15706 #. type: textblock
15707 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6381
15708 msgid ""
15709 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15710 "passed directly through to the appliance once it is launched."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4192
15715 msgid ""
15716 "One consequence of this is that log messages aren't caught by the library "
15717 "and handled by L</set-log-message-callback>, but go straight to stdout."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6389
15722 msgid "You probably don't want to use this unless you know what you are doing."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6392
15727 msgid "The default is disabled."
15728 msgstr ""
15729
15730 #. type: =head2
15731 #: ../fish/guestfish-actions.pod:4201
15732 msgid "set-e2label"
15733 msgstr "set-e2label"
15734
15735 #. type: verbatim
15736 #: ../fish/guestfish-actions.pod:4203
15737 #, no-wrap
15738 msgid ""
15739 " set-e2label device label\n"
15740 "\n"
15741 msgstr ""
15742
15743 #. type: textblock
15744 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6405
15745 msgid ""
15746 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15747 "C<label>.  Filesystem labels are limited to 16 characters."
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4209
15752 msgid ""
15753 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15754 "label on a filesystem."
15755 msgstr ""
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-actions.pod:4212
15759 msgid "set-e2uuid"
15760 msgstr "set-e2uuid"
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-actions.pod:4214
15764 #, no-wrap
15765 msgid ""
15766 " set-e2uuid device uuid\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6423
15772 msgid ""
15773 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15774 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15775 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15776 msgstr ""
15777
15778 #. type: textblock
15779 #: ../fish/guestfish-actions.pod:4221
15780 msgid ""
15781 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15782 "UUID of a filesystem."
15783 msgstr ""
15784
15785 #. type: =head2
15786 #: ../fish/guestfish-actions.pod:4224
15787 msgid "set-memsize"
15788 msgstr "set-memsize"
15789
15790 #. type: =head2
15791 #: ../fish/guestfish-actions.pod:4226
15792 msgid "memsize"
15793 msgstr ""
15794
15795 #. type: verbatim
15796 #: ../fish/guestfish-actions.pod:4228
15797 #, no-wrap
15798 msgid ""
15799 " set-memsize memsize\n"
15800 "\n"
15801 msgstr ""
15802
15803 #. type: textblock
15804 #: ../fish/guestfish-actions.pod:4230
15805 msgid ""
15806 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15807 "This only has any effect if called before L</launch>."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6445
15812 msgid ""
15813 "You can also change this by setting the environment variable "
15814 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15815 msgstr ""
15816
15817 #. type: =head2
15818 #: ../fish/guestfish-actions.pod:4241
15819 msgid "set-network"
15820 msgstr "set-network"
15821
15822 #. type: =head2
15823 #: ../fish/guestfish-actions.pod:4243
15824 msgid "network"
15825 msgstr "network"
15826
15827 #. type: verbatim
15828 #: ../fish/guestfish-actions.pod:4245
15829 #, no-wrap
15830 msgid ""
15831 " set-network true|false\n"
15832 "\n"
15833 msgstr ""
15834 " set-network true|false\n"
15835 "\n"
15836
15837 #. type: textblock
15838 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6462
15839 msgid ""
15840 "If C<network> is true, then the network is enabled in the libguestfs "
15841 "appliance.  The default is false."
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6465
15846 msgid ""
15847 "This affects whether commands are able to access the network (see L<guestfs"
15848 "(3)/RUNNING COMMANDS>)."
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4253
15853 msgid ""
15854 "You must call this before calling L</launch>, otherwise it has no effect."
15855 msgstr ""
15856
15857 #. type: =head2
15858 #: ../fish/guestfish-actions.pod:4256
15859 msgid "set-path"
15860 msgstr "set-path"
15861
15862 #. type: verbatim
15863 #: ../fish/guestfish-actions.pod:4260
15864 #, no-wrap
15865 msgid ""
15866 " set-path searchpath\n"
15867 "\n"
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6481
15872 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6483
15877 msgid ""
15878 "The default is C<$libdir/guestfs> unless overridden by setting "
15879 "C<LIBGUESTFS_PATH> environment variable."
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6486
15884 msgid "Setting C<path> to C<NULL> restores the default path."
15885 msgstr ""
15886
15887 #. type: =head2
15888 #: ../fish/guestfish-actions.pod:4269
15889 msgid "set-pgroup"
15890 msgstr ""
15891
15892 #. type: =head2
15893 #: ../fish/guestfish-actions.pod:4271
15894 msgid "pgroup"
15895 msgstr ""
15896
15897 #. type: verbatim
15898 #: ../fish/guestfish-actions.pod:4273
15899 #, no-wrap
15900 msgid ""
15901 " set-pgroup true|false\n"
15902 "\n"
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6498
15907 msgid ""
15908 "If C<pgroup> is true, child processes are placed into their own process "
15909 "group."
15910 msgstr ""
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6501
15914 msgid ""
15915 "The practical upshot of this is that signals like C<SIGINT> (from users "
15916 "pressing C<^C>) won't be received by the child process."
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6504
15921 msgid ""
15922 "The default for this flag is false, because usually you want C<^C> to kill "
15923 "the subprocess."
15924 msgstr ""
15925
15926 #. type: =head2
15927 #: ../fish/guestfish-actions.pod:4284
15928 msgid "set-qemu"
15929 msgstr "set-qemu"
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:4286
15933 msgid "qemu"
15934 msgstr "qemu"
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish-actions.pod:4288
15938 #, no-wrap
15939 msgid ""
15940 " set-qemu qemu\n"
15941 "\n"
15942 msgstr ""
15943 " set-qemu qemu\n"
15944 "\n"
15945
15946 #. type: textblock
15947 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6517
15948 msgid "Set the qemu binary that we will use."
15949 msgstr ""
15950
15951 #. type: textblock
15952 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6519
15953 msgid ""
15954 "The default is chosen when the library was compiled by the configure script."
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6522
15959 msgid ""
15960 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15961 "variable."
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6525
15966 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6527
15971 msgid ""
15972 "Note that you should call this function as early as possible after creating "
15973 "the handle.  This is because some pre-launch operations depend on testing "
15974 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15975 "don't retest features, and so you might see inconsistent results.  Using the "
15976 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15977 "the qemu binary at the same time as the handle is created."
15978 msgstr ""
15979
15980 #. type: =head2
15981 #: ../fish/guestfish-actions.pod:4308
15982 msgid "set-recovery-proc"
15983 msgstr "set-recovery-proc"
15984
15985 #. type: =head2
15986 #: ../fish/guestfish-actions.pod:4310
15987 msgid "recovery-proc"
15988 msgstr "recovery-proc"
15989
15990 #. type: verbatim
15991 #: ../fish/guestfish-actions.pod:4312
15992 #, no-wrap
15993 msgid ""
15994 " set-recovery-proc true|false\n"
15995 "\n"
15996 msgstr ""
15997 " set-recovery-proc true|false\n"
15998 "\n"
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4314
16002 msgid ""
16003 "If this is called with the parameter C<false> then L</launch> does not "
16004 "create a recovery process.  The purpose of the recovery process is to stop "
16005 "runaway qemu processes in the case where the main program aborts abruptly."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4319
16010 msgid ""
16011 "This only has any effect if called before L</launch>, and the default is "
16012 "true."
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:4322 ../src/guestfs-actions.pod:6553
16017 msgid ""
16018 "About the only time when you would want to disable this is if the main "
16019 "process will fork itself into the background (\"daemonize\" itself).  In "
16020 "this case the recovery process thinks that the main program has disappeared "
16021 "and so kills qemu, which is not very helpful."
16022 msgstr ""
16023
16024 #. type: =head2
16025 #: ../fish/guestfish-actions.pod:4328
16026 msgid "set-selinux"
16027 msgstr "set-selinux"
16028
16029 #. type: =head2
16030 #: ../fish/guestfish-actions.pod:4330
16031 msgid "selinux"
16032 msgstr "selinux"
16033
16034 #. type: verbatim
16035 #: ../fish/guestfish-actions.pod:4332
16036 #, no-wrap
16037 msgid ""
16038 " set-selinux true|false\n"
16039 "\n"
16040 msgstr ""
16041 " set-selinux true|false\n"
16042 "\n"
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6569
16046 msgid ""
16047 "This sets the selinux flag that is passed to the appliance at boot time.  "
16048 "The default is C<selinux=0> (disabled)."
16049 msgstr ""
16050
16051 #. type: textblock
16052 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6572
16053 msgid ""
16054 "Note that if SELinux is enabled, it is always in Permissive mode "
16055 "(C<enforcing=0>)."
16056 msgstr ""
16057
16058 #. type: =head2
16059 #: ../fish/guestfish-actions.pod:4343
16060 #, fuzzy
16061 #| msgid "set-path"
16062 msgid "set-smp"
16063 msgstr "set-path"
16064
16065 #. type: =head2
16066 #: ../fish/guestfish-actions.pod:4345
16067 msgid "smp"
16068 msgstr ""
16069
16070 #. type: verbatim
16071 #: ../fish/guestfish-actions.pod:4347
16072 #, fuzzy, no-wrap
16073 #| msgid ""
16074 #| " set-qemu qemu\n"
16075 #| "\n"
16076 msgid ""
16077 " set-smp smp\n"
16078 "\n"
16079 msgstr ""
16080 " set-qemu qemu\n"
16081 "\n"
16082
16083 #. type: textblock
16084 #: ../fish/guestfish-actions.pod:4349 ../src/guestfs-actions.pod:6588
16085 msgid ""
16086 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16087 "C<1>.  Increasing this may improve performance, though often it has no "
16088 "effect."
16089 msgstr ""
16090
16091 #. type: textblock
16092 #: ../fish/guestfish-actions.pod:4353
16093 msgid "This function must be called before L</launch>."
16094 msgstr ""
16095
16096 #. type: =head2
16097 #: ../fish/guestfish-actions.pod:4355
16098 msgid "set-trace"
16099 msgstr "set-trace"
16100
16101 #. type: =head2
16102 #: ../fish/guestfish-actions.pod:4357
16103 msgid "trace"
16104 msgstr "trace"
16105
16106 #. type: verbatim
16107 #: ../fish/guestfish-actions.pod:4359
16108 #, no-wrap
16109 msgid ""
16110 " set-trace true|false\n"
16111 "\n"
16112 msgstr ""
16113 " set-trace true|false\n"
16114 "\n"
16115
16116 #. type: textblock
16117 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6604
16118 msgid ""
16119 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16120 "return values are traced."
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish-actions.pod:4364 ../src/guestfs-actions.pod:6607
16125 msgid ""
16126 "If you want to trace C API calls into libguestfs (and other libraries) then "
16127 "possibly a better way is to use the external ltrace(1) command."
16128 msgstr ""
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6611
16132 msgid ""
16133 "Command traces are disabled unless the environment variable "
16134 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:4371
16139 msgid ""
16140 "Trace messages are normally sent to C<stderr>, unless you register a "
16141 "callback to send them somewhere else (see L</set-event-callback>)."
16142 msgstr ""
16143
16144 #. type: =head2
16145 #: ../fish/guestfish-actions.pod:4375
16146 msgid "set-verbose"
16147 msgstr "set-verbose"
16148
16149 #. type: =head2
16150 #: ../fish/guestfish-actions.pod:4377
16151 msgid "verbose"
16152 msgstr ""
16153
16154 #. type: verbatim
16155 #: ../fish/guestfish-actions.pod:4379
16156 #, no-wrap
16157 msgid ""
16158 " set-verbose true|false\n"
16159 "\n"
16160 msgstr ""
16161 " set-verbose true|false\n"
16162 "\n"
16163
16164 #. type: textblock
16165 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6628
16166 msgid "If C<verbose> is true, this turns on verbose messages."
16167 msgstr ""
16168
16169 #. type: textblock
16170 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6630
16171 msgid ""
16172 "Verbose messages are disabled unless the environment variable "
16173 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16174 msgstr ""
16175
16176 #. type: textblock
16177 #: ../fish/guestfish-actions.pod:4386
16178 msgid ""
16179 "Verbose messages are normally sent to C<stderr>, unless you register a "
16180 "callback to send them somewhere else (see L</set-event-callback>)."
16181 msgstr ""
16182
16183 #. type: =head2
16184 #: ../fish/guestfish-actions.pod:4390
16185 msgid "setcon"
16186 msgstr "setcon"
16187
16188 #. type: verbatim
16189 #: ../fish/guestfish-actions.pod:4392
16190 #, no-wrap
16191 msgid ""
16192 " setcon context\n"
16193 "\n"
16194 msgstr ""
16195 " setcon контекст\n"
16196 "\n"
16197
16198 #. type: textblock
16199 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6647
16200 msgid ""
16201 "This sets the SELinux security context of the daemon to the string "
16202 "C<context>."
16203 msgstr ""
16204
16205 #. type: textblock
16206 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6650
16207 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16208 msgstr ""
16209
16210 #. type: =head2
16211 #: ../fish/guestfish-actions.pod:4399
16212 msgid "setxattr"
16213 msgstr "setxattr"
16214
16215 #. type: verbatim
16216 #: ../fish/guestfish-actions.pod:4401
16217 #, no-wrap
16218 msgid ""
16219 " setxattr xattr val vallen path\n"
16220 "\n"
16221 msgstr ""
16222
16223 #. type: textblock
16224 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6665
16225 msgid ""
16226 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16227 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:4407
16232 msgid "See also: L</lsetxattr>, L<attr(5)>."
16233 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16234
16235 #. type: =head2
16236 #: ../fish/guestfish-actions.pod:4409
16237 msgid "sfdisk"
16238 msgstr "sfdisk"
16239
16240 #. type: verbatim
16241 #: ../fish/guestfish-actions.pod:4411
16242 #, no-wrap
16243 msgid ""
16244 " sfdisk device cyls heads sectors 'lines ...'\n"
16245 "\n"
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
16250 msgid ""
16251 "This is a direct interface to the L<sfdisk(8)> program for creating "
16252 "partitions on block devices."
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
16257 msgid "C<device> should be a block device, for example C</dev/sda>."
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6697
16262 msgid ""
16263 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16264 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16265 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16266 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16267 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16268 "the kernel) cannot work out the right geometry and you will need to tell it."
16269 msgstr ""
16270
16271 #. type: textblock
16272 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6705
16273 msgid ""
16274 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16275 "refer to the L<sfdisk(8)> manpage."
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6708
16280 msgid ""
16281 "To create a single partition occupying the whole disk, you would pass "
16282 "C<lines> as a single element list, when the single element being the string "
16283 "C<,> (comma)."
16284 msgstr ""
16285
16286 #. type: textblock
16287 #: ../fish/guestfish-actions.pod:4433
16288 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16289 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462
16293 #: ../fish/guestfish-actions.pod:4484
16294 msgid ""
16295 "I<This function is deprecated.> In new code, use the L</part_add> call "
16296 "instead."
16297 msgstr ""
16298
16299 #. type: =head2
16300 #: ../fish/guestfish-actions.pod:4446
16301 msgid "sfdiskM"
16302 msgstr "sfdiskM"
16303
16304 #. type: verbatim
16305 #: ../fish/guestfish-actions.pod:4448
16306 #, no-wrap
16307 msgid ""
16308 " sfdiskM device 'lines ...'\n"
16309 "\n"
16310 msgstr ""
16311
16312 #. type: textblock
16313 #: ../fish/guestfish-actions.pod:4450
16314 msgid ""
16315 "This is a simplified interface to the L</sfdisk> command, where partition "
16316 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16317 "you don't need to specify the cyls, heads and sectors parameters which were "
16318 "rarely if ever used anyway."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4456
16323 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16324 msgstr ""
16325 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16326
16327 #. type: =head2
16328 #: ../fish/guestfish-actions.pod:4469
16329 msgid "sfdisk-N"
16330 msgstr "sfdisk-N"
16331
16332 #. type: verbatim
16333 #: ../fish/guestfish-actions.pod:4471
16334 #, no-wrap
16335 msgid ""
16336 " sfdisk-N device partnum cyls heads sectors line\n"
16337 "\n"
16338 msgstr ""
16339
16340 #. type: textblock
16341 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6770
16342 msgid ""
16343 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16344 "(note: C<n> counts from 1)."
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:4476
16349 msgid ""
16350 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16351 "cyls/heads/sectors parameters."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish-actions.pod:4479
16356 msgid "See also: L</part-add>"
16357 msgstr "Див. також L</part-add>"
16358
16359 #. type: =head2
16360 #: ../fish/guestfish-actions.pod:4491
16361 msgid "sfdisk-disk-geometry"
16362 msgstr "sfdisk-disk-geometry"
16363
16364 #. type: verbatim
16365 #: ../fish/guestfish-actions.pod:4493
16366 #, no-wrap
16367 msgid ""
16368 " sfdisk-disk-geometry device\n"
16369 "\n"
16370 msgstr ""
16371 " sfdisk-disk-geometry пристрій\n"
16372 "\n"
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-actions.pod:4495
16376 msgid ""
16377 "This displays the disk geometry of C<device> read from the partition table.  "
16378 "Especially in the case where the underlying block device has been resized, "
16379 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16380 "kernel-geometry>)."
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:4500 ../fish/guestfish-actions.pod:4509
16385 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6812
16386 msgid "The result is in human-readable format, and not designed to be parsed."
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../fish/guestfish-actions.pod:4503
16391 msgid "sfdisk-kernel-geometry"
16392 msgstr "sfdisk-kernel-geometry"
16393
16394 #. type: verbatim
16395 #: ../fish/guestfish-actions.pod:4505
16396 #, no-wrap
16397 msgid ""
16398 " sfdisk-kernel-geometry device\n"
16399 "\n"
16400 msgstr ""
16401 " sfdisk-kernel-geometry пристрій\n"
16402 "\n"
16403
16404 #. type: textblock
16405 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6810
16406 msgid "This displays the kernel's idea of the geometry of C<device>."
16407 msgstr ""
16408
16409 #. type: =head2
16410 #: ../fish/guestfish-actions.pod:4512
16411 msgid "sfdisk-l"
16412 msgstr "sfdisk-l"
16413
16414 #. type: verbatim
16415 #: ../fish/guestfish-actions.pod:4514
16416 #, no-wrap
16417 msgid ""
16418 " sfdisk-l device\n"
16419 "\n"
16420 msgstr ""
16421 " sfdisk-l пристрій\n"
16422 "\n"
16423
16424 #. type: textblock
16425 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6833
16426 msgid ""
16427 "This displays the partition table on C<device>, in the human-readable output "
16428 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-actions.pod:4520
16433 msgid "See also: L</part-list>"
16434 msgstr "Див. також L</part-list>"
16435
16436 #. type: textblock
16437 #: ../fish/guestfish-actions.pod:4522
16438 msgid ""
16439 "I<This function is deprecated.> In new code, use the L</part_list> call "
16440 "instead."
16441 msgstr ""
16442
16443 #. type: =head2
16444 #: ../fish/guestfish-actions.pod:4529
16445 msgid "sh"
16446 msgstr "sh"
16447
16448 #. type: verbatim
16449 #: ../fish/guestfish-actions.pod:4531
16450 #, no-wrap
16451 msgid ""
16452 " sh command\n"
16453 "\n"
16454 msgstr ""
16455 " sh команда\n"
16456 "\n"
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6850
16460 msgid ""
16461 "This call runs a command from the guest filesystem via the guest's C</bin/"
16462 "sh>."
16463 msgstr ""
16464
16465 #. type: textblock
16466 #: ../fish/guestfish-actions.pod:4536
16467 msgid "This is like L</command>, but passes the command to:"
16468 msgstr ""
16469
16470 #. type: verbatim
16471 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6855
16472 #, no-wrap
16473 msgid ""
16474 " /bin/sh -c \"command\"\n"
16475 "\n"
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6857
16480 msgid ""
16481 "Depending on the guest's shell, this usually results in wildcards being "
16482 "expanded, shell expressions being interpolated and so on."
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../fish/guestfish-actions.pod:4544
16487 msgid "All the provisos about L</command> apply to this call."
16488 msgstr ""
16489
16490 #. type: =head2
16491 #: ../fish/guestfish-actions.pod:4546
16492 msgid "sh-lines"
16493 msgstr "sh-lines"
16494
16495 #. type: verbatim
16496 #: ../fish/guestfish-actions.pod:4548
16497 #, no-wrap
16498 msgid ""
16499 " sh-lines command\n"
16500 "\n"
16501 msgstr ""
16502 " sh-lines команда\n"
16503 "\n"
16504
16505 #. type: textblock
16506 #: ../fish/guestfish-actions.pod:4550
16507 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-actions.pod:4553
16512 msgid "See also: L</command-lines>"
16513 msgstr "Див. також L</command-lines>"
16514
16515 #. type: =head2
16516 #: ../fish/guestfish-actions.pod:4555
16517 msgid "sleep"
16518 msgstr "sleep"
16519
16520 #. type: verbatim
16521 #: ../fish/guestfish-actions.pod:4557
16522 #, no-wrap
16523 msgid ""
16524 " sleep secs\n"
16525 "\n"
16526 msgstr ""
16527 " sleep час_у_секундах\n"
16528 "\n"
16529
16530 #. type: textblock
16531 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6891
16532 msgid "Sleep for C<secs> seconds."
16533 msgstr ""
16534
16535 #. type: =head2
16536 #: ../fish/guestfish-actions.pod:4561
16537 msgid "stat"
16538 msgstr "stat"
16539
16540 #. type: verbatim
16541 #: ../fish/guestfish-actions.pod:4563
16542 #, no-wrap
16543 msgid ""
16544 " stat path\n"
16545 "\n"
16546 msgstr ""
16547 " stat шлях\n"
16548 "\n"
16549
16550 #. type: textblock
16551 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:6905
16552 msgid "This is the same as the C<stat(2)> system call."
16553 msgstr ""
16554
16555 #. type: =head2
16556 #: ../fish/guestfish-actions.pod:4569
16557 msgid "statvfs"
16558 msgstr "statvfs"
16559
16560 #. type: verbatim
16561 #: ../fish/guestfish-actions.pod:4571
16562 #, no-wrap
16563 msgid ""
16564 " statvfs path\n"
16565 "\n"
16566 msgstr ""
16567 " statvfs шлях\n"
16568 "\n"
16569
16570 #. type: textblock
16571 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6919
16572 msgid ""
16573 "Returns file system statistics for any mounted file system.  C<path> should "
16574 "be a file or directory in the mounted file system (typically it is the mount "
16575 "point itself, but it doesn't need to be)."
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../fish/guestfish-actions.pod:4577 ../src/guestfs-actions.pod:6923
16580 msgid "This is the same as the C<statvfs(2)> system call."
16581 msgstr ""
16582
16583 #. type: =head2
16584 #: ../fish/guestfish-actions.pod:4579
16585 msgid "strings"
16586 msgstr "strings"
16587
16588 #. type: verbatim
16589 #: ../fish/guestfish-actions.pod:4581
16590 #, no-wrap
16591 msgid ""
16592 " strings path\n"
16593 "\n"
16594 msgstr ""
16595 " strings шлях\n"
16596 "\n"
16597
16598 #. type: textblock
16599 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:6937
16600 msgid ""
16601 "This runs the L<strings(1)> command on a file and returns the list of "
16602 "printable strings found."
16603 msgstr ""
16604
16605 #. type: =head2
16606 #: ../fish/guestfish-actions.pod:4589
16607 msgid "strings-e"
16608 msgstr "strings-e"
16609
16610 #. type: verbatim
16611 #: ../fish/guestfish-actions.pod:4591
16612 #, no-wrap
16613 msgid ""
16614 " strings-e encoding path\n"
16615 "\n"
16616 msgstr ""
16617 " strings-e кодування шлях\n"
16618 "\n"
16619
16620 #. type: textblock
16621 #: ../fish/guestfish-actions.pod:4593
16622 msgid ""
16623 "This is like the L</strings> command, but allows you to specify the encoding "
16624 "of strings that are looked for in the source file C<path>."
16625 msgstr ""
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
16629 msgid "Allowed encodings are:"
16630 msgstr "Можливими кодуваннями є:"
16631
16632 #. type: =item
16633 #: ../fish/guestfish-actions.pod:4601 ../src/guestfs-actions.pod:6964
16634 msgid "s"
16635 msgstr "s"
16636
16637 #. type: textblock
16638 #: ../fish/guestfish-actions.pod:4603
16639 msgid ""
16640 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16641 "ISO-8859-X (this is what L</strings> uses)."
16642 msgstr ""
16643
16644 #. type: =item
16645 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6969
16646 msgid "S"
16647 msgstr "S"
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:4608 ../src/guestfs-actions.pod:6971
16651 msgid "Single 8-bit-byte characters."
16652 msgstr "Окремі 8-бітові-байтові символи."
16653
16654 #. type: =item
16655 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:6973
16656 msgid "b"
16657 msgstr "b"
16658
16659 #. type: textblock
16660 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6975
16661 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16662 msgstr ""
16663
16664 #. type: =item
16665 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6978
16666 msgid "l (lower case letter L)"
16667 msgstr ""
16668
16669 #. type: textblock
16670 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
16671 msgid ""
16672 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16673 "examining binaries in Windows guests."
16674 msgstr ""
16675
16676 #. type: =item
16677 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6983
16678 msgid "B"
16679 msgstr "B"
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6985
16683 msgid "32-bit big endian such as UCS-4BE."
16684 msgstr ""
16685
16686 #. type: =item
16687 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:6987
16688 msgid "L"
16689 msgstr "L"
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:4626 ../src/guestfs-actions.pod:6989
16693 msgid "32-bit little endian such as UCS-4LE."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:6993
16698 msgid "The returned strings are transcoded to UTF-8."
16699 msgstr ""
16700
16701 #. type: =head2
16702 #: ../fish/guestfish-actions.pod:4635
16703 msgid "swapoff-device"
16704 msgstr "swapoff-device"
16705
16706 #. type: verbatim
16707 #: ../fish/guestfish-actions.pod:4637
16708 #, no-wrap
16709 msgid ""
16710 " swapoff-device device\n"
16711 "\n"
16712 msgstr ""
16713 " swapoff-device пристрій\n"
16714 "\n"
16715
16716 #. type: textblock
16717 #: ../fish/guestfish-actions.pod:4639
16718 msgid ""
16719 "This command disables the libguestfs appliance swap device or partition "
16720 "named C<device>.  See L</swapon-device>."
16721 msgstr ""
16722
16723 #. type: =head2
16724 #: ../fish/guestfish-actions.pod:4643
16725 msgid "swapoff-file"
16726 msgstr "swapoff-file"
16727
16728 #. type: verbatim
16729 #: ../fish/guestfish-actions.pod:4645
16730 #, no-wrap
16731 msgid ""
16732 " swapoff-file file\n"
16733 "\n"
16734 msgstr ""
16735 " swapoff-file файл\n"
16736 "\n"
16737
16738 #. type: textblock
16739 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7024
16740 msgid "This command disables the libguestfs appliance swap on file."
16741 msgstr ""
16742
16743 #. type: =head2
16744 #: ../fish/guestfish-actions.pod:4649
16745 msgid "swapoff-label"
16746 msgstr "swapoff-label"
16747
16748 #. type: verbatim
16749 #: ../fish/guestfish-actions.pod:4651
16750 #, no-wrap
16751 msgid ""
16752 " swapoff-label label\n"
16753 "\n"
16754 msgstr ""
16755 " swapoff-label мітка\n"
16756 "\n"
16757
16758 #. type: textblock
16759 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7036
16760 msgid ""
16761 "This command disables the libguestfs appliance swap on labeled swap "
16762 "partition."
16763 msgstr ""
16764
16765 #. type: =head2
16766 #: ../fish/guestfish-actions.pod:4656
16767 msgid "swapoff-uuid"
16768 msgstr "swapoff-uuid"
16769
16770 #. type: verbatim
16771 #: ../fish/guestfish-actions.pod:4658
16772 #, no-wrap
16773 msgid ""
16774 " swapoff-uuid uuid\n"
16775 "\n"
16776 msgstr ""
16777 " swapoff-uuid uuid\n"
16778 "\n"
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:4660 ../src/guestfs-actions.pod:7049
16782 msgid ""
16783 "This command disables the libguestfs appliance swap partition with the given "
16784 "UUID."
16785 msgstr ""
16786
16787 #. type: =head2
16788 #: ../fish/guestfish-actions.pod:4663
16789 msgid "swapon-device"
16790 msgstr "swapon-device"
16791
16792 #. type: verbatim
16793 #: ../fish/guestfish-actions.pod:4665
16794 #, no-wrap
16795 msgid ""
16796 " swapon-device device\n"
16797 "\n"
16798 msgstr ""
16799 " swapon-device пристрій\n"
16800 "\n"
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-actions.pod:4667
16804 msgid ""
16805 "This command enables the libguestfs appliance to use the swap device or "
16806 "partition named C<device>.  The increased memory is made available for all "
16807 "commands, for example those run using L</command> or L</sh>."
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7067
16812 msgid ""
16813 "Note that you should not swap to existing guest swap partitions unless you "
16814 "know what you are doing.  They may contain hibernation information, or other "
16815 "information that the guest doesn't want you to trash.  You also risk leaking "
16816 "information about the host to the guest this way.  Instead, attach a new "
16817 "host device to the guest and swap on that."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../fish/guestfish-actions.pod:4679
16822 msgid "swapon-file"
16823 msgstr "swapon-file"
16824
16825 #. type: verbatim
16826 #: ../fish/guestfish-actions.pod:4681
16827 #, no-wrap
16828 msgid ""
16829 " swapon-file file\n"
16830 "\n"
16831 msgstr ""
16832 " swapon-file файл\n"
16833 "\n"
16834
16835 #. type: textblock
16836 #: ../fish/guestfish-actions.pod:4683
16837 msgid ""
16838 "This command enables swap to a file.  See L</swapon-device> for other notes."
16839 msgstr ""
16840
16841 #. type: =head2
16842 #: ../fish/guestfish-actions.pod:4686
16843 msgid "swapon-label"
16844 msgstr "swapon-label"
16845
16846 #. type: verbatim
16847 #: ../fish/guestfish-actions.pod:4688
16848 #, no-wrap
16849 msgid ""
16850 " swapon-label label\n"
16851 "\n"
16852 msgstr ""
16853 " swapon-label мітка\n"
16854 "\n"
16855
16856 #. type: textblock
16857 #: ../fish/guestfish-actions.pod:4690
16858 msgid ""
16859 "This command enables swap to a labeled swap partition.  See L</swapon-"
16860 "device> for other notes."
16861 msgstr ""
16862
16863 #. type: =head2
16864 #: ../fish/guestfish-actions.pod:4693
16865 msgid "swapon-uuid"
16866 msgstr "swapon-uuid"
16867
16868 #. type: verbatim
16869 #: ../fish/guestfish-actions.pod:4695
16870 #, no-wrap
16871 msgid ""
16872 " swapon-uuid uuid\n"
16873 "\n"
16874 msgstr ""
16875 " swapon-uuid uuid\n"
16876 "\n"
16877
16878 #. type: textblock
16879 #: ../fish/guestfish-actions.pod:4697
16880 msgid ""
16881 "This command enables swap to a swap partition with the given UUID.  See L</"
16882 "swapon-device> for other notes."
16883 msgstr ""
16884
16885 #. type: =head2
16886 #: ../fish/guestfish-actions.pod:4700
16887 msgid "sync"
16888 msgstr "sync"
16889
16890 #. type: verbatim
16891 #: ../fish/guestfish-actions.pod:4702
16892 #, no-wrap
16893 msgid ""
16894 " sync\n"
16895 "\n"
16896 msgstr ""
16897 " sync\n"
16898 "\n"
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7122
16902 msgid ""
16903 "This syncs the disk, so that any writes are flushed through to the "
16904 "underlying disk image."
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7125
16909 msgid ""
16910 "You should always call this if you have modified a disk image, before "
16911 "closing the handle."
16912 msgstr ""
16913
16914 #. type: =head2
16915 #: ../fish/guestfish-actions.pod:4710
16916 msgid "tail"
16917 msgstr "tail"
16918
16919 #. type: verbatim
16920 #: ../fish/guestfish-actions.pod:4712
16921 #, no-wrap
16922 msgid ""
16923 " tail path\n"
16924 "\n"
16925 msgstr ""
16926 " tail шлях\n"
16927 "\n"
16928
16929 #. type: textblock
16930 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7138
16931 msgid ""
16932 "This command returns up to the last 10 lines of a file as a list of strings."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:4720
16937 msgid "tail-n"
16938 msgstr "tail-n"
16939
16940 #. type: verbatim
16941 #: ../fish/guestfish-actions.pod:4722
16942 #, no-wrap
16943 msgid ""
16944 " tail-n nrlines path\n"
16945 "\n"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7157
16950 msgid ""
16951 "If the parameter C<nrlines> is a positive number, this returns the last "
16952 "C<nrlines> lines of the file C<path>."
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../fish/guestfish-actions.pod:4727 ../src/guestfs-actions.pod:7160
16957 msgid ""
16958 "If the parameter C<nrlines> is a negative number, this returns lines from "
16959 "the file C<path>, starting with the C<-nrlines>th line."
16960 msgstr ""
16961
16962 #. type: =head2
16963 #: ../fish/guestfish-actions.pod:4735
16964 msgid "tar-in"
16965 msgstr "tar-in"
16966
16967 #. type: verbatim
16968 #: ../fish/guestfish-actions.pod:4737
16969 #, no-wrap
16970 msgid ""
16971 " tar-in (tarfile|-) directory\n"
16972 "\n"
16973 msgstr ""
16974 " tar-in (файл_tar|-) каталог\n"
16975 "\n"
16976
16977 #. type: textblock
16978 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7181
16979 msgid ""
16980 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16981 "tar file) into C<directory>."
16982 msgstr ""
16983
16984 #. type: textblock
16985 #: ../fish/guestfish-actions.pod:4742
16986 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16987 msgstr ""
16988
16989 #. type: =head2
16990 #: ../fish/guestfish-actions.pod:4747
16991 msgid "tar-out"
16992 msgstr "tar-out"
16993
16994 #. type: verbatim
16995 #: ../fish/guestfish-actions.pod:4749
16996 #, no-wrap
16997 msgid ""
16998 " tar-out directory (tarfile|-)\n"
16999 "\n"
17000 msgstr ""
17001 " tar-out каталог (файл tar|-)\n"
17002 "\n"
17003
17004 #. type: textblock
17005 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7198
17006 msgid ""
17007 "This command packs the contents of C<directory> and downloads it to local "
17008 "file C<tarfile>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:4754
17013 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17014 msgstr ""
17015
17016 #. type: =head2
17017 #: ../fish/guestfish-actions.pod:4759
17018 msgid "tgz-in"
17019 msgstr "tgz-in"
17020
17021 #. type: verbatim
17022 #: ../fish/guestfish-actions.pod:4761
17023 #, no-wrap
17024 msgid ""
17025 " tgz-in (tarball|-) directory\n"
17026 "\n"
17027 msgstr ""
17028 " tgz-in (архів tar|-) каталог\n"
17029 "\n"
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7215
17033 msgid ""
17034 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17035 "tar file) into C<directory>."
17036 msgstr ""
17037
17038 #. type: textblock
17039 #: ../fish/guestfish-actions.pod:4766
17040 msgid "To upload an uncompressed tarball, use L</tar-in>."
17041 msgstr ""
17042
17043 #. type: =head2
17044 #: ../fish/guestfish-actions.pod:4770
17045 msgid "tgz-out"
17046 msgstr "tgz-out"
17047
17048 #. type: verbatim
17049 #: ../fish/guestfish-actions.pod:4772
17050 #, no-wrap
17051 msgid ""
17052 " tgz-out directory (tarball|-)\n"
17053 "\n"
17054 msgstr ""
17055 " tgz-out каталог (архів tar|-)\n"
17056 "\n"
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7231
17060 msgid ""
17061 "This command packs the contents of C<directory> and downloads it to local "
17062 "file C<tarball>."
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish-actions.pod:4777
17067 msgid "To download an uncompressed tarball, use L</tar-out>."
17068 msgstr ""
17069
17070 #. type: =head2
17071 #: ../fish/guestfish-actions.pod:4781
17072 msgid "touch"
17073 msgstr "touch"
17074
17075 #. type: verbatim
17076 #: ../fish/guestfish-actions.pod:4783
17077 #, no-wrap
17078 msgid ""
17079 " touch path\n"
17080 "\n"
17081 msgstr ""
17082 " touch шлях\n"
17083 "\n"
17084
17085 #. type: textblock
17086 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7246
17087 msgid ""
17088 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17089 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17090 "length file."
17091 msgstr ""
17092
17093 #. type: textblock
17094 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7250
17095 msgid ""
17096 "This command only works on regular files, and will fail on other file types "
17097 "such as directories, symbolic links, block special etc."
17098 msgstr ""
17099
17100 #. type: =head2
17101 #: ../fish/guestfish-actions.pod:4792
17102 msgid "truncate"
17103 msgstr "truncate"
17104
17105 #. type: verbatim
17106 #: ../fish/guestfish-actions.pod:4794
17107 #, no-wrap
17108 msgid ""
17109 " truncate path\n"
17110 "\n"
17111 msgstr ""
17112 " truncate шлях\n"
17113 "\n"
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:4796 ../src/guestfs-actions.pod:7263
17117 msgid ""
17118 "This command truncates C<path> to a zero-length file.  The file must exist "
17119 "already."
17120 msgstr ""
17121
17122 #. type: =head2
17123 #: ../fish/guestfish-actions.pod:4799
17124 msgid "truncate-size"
17125 msgstr "truncate-size"
17126
17127 #. type: verbatim
17128 #: ../fish/guestfish-actions.pod:4801
17129 #, no-wrap
17130 msgid ""
17131 " truncate-size path size\n"
17132 "\n"
17133 msgstr ""
17134 " truncate-size шлях розмір\n"
17135 "\n"
17136
17137 #. type: textblock
17138 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7277
17139 msgid ""
17140 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17141 "already."
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-actions.pod:4806
17146 msgid ""
17147 "If the current file size is less than C<size> then the file is extended to "
17148 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17149 "blocks are not allocated for the file until you write to it).  To create a "
17150 "non-sparse file of zeroes, use L</fallocate64> instead."
17151 msgstr ""
17152
17153 #. type: =head2
17154 #: ../fish/guestfish-actions.pod:4812
17155 msgid "tune2fs-l"
17156 msgstr "tune2fs-l"
17157
17158 #. type: verbatim
17159 #: ../fish/guestfish-actions.pod:4814
17160 #, no-wrap
17161 msgid ""
17162 " tune2fs-l device\n"
17163 "\n"
17164 msgstr ""
17165 " tune2fs-l пристрій\n"
17166 "\n"
17167
17168 #. type: textblock
17169 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7296
17170 msgid ""
17171 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17172 "C<device>."
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7299
17177 msgid ""
17178 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17179 "for more details.  The list of fields returned isn't clearly defined, and "
17180 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17181 "and the filesystem itself."
17182 msgstr ""
17183
17184 #. type: =head2
17185 #: ../fish/guestfish-actions.pod:4824
17186 msgid "txz-in"
17187 msgstr "txz-in"
17188
17189 #. type: verbatim
17190 #: ../fish/guestfish-actions.pod:4826
17191 #, no-wrap
17192 msgid ""
17193 " txz-in (tarball|-) directory\n"
17194 "\n"
17195 msgstr ""
17196 " txz-in (архів tar|-) каталог\n"
17197 "\n"
17198
17199 #. type: textblock
17200 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7319
17201 msgid ""
17202 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17203 "tar file) into C<directory>."
17204 msgstr ""
17205
17206 #. type: =head2
17207 #: ../fish/guestfish-actions.pod:4833
17208 msgid "txz-out"
17209 msgstr "txz-out"
17210
17211 #. type: verbatim
17212 #: ../fish/guestfish-actions.pod:4835
17213 #, no-wrap
17214 msgid ""
17215 " txz-out directory (tarball|-)\n"
17216 "\n"
17217 msgstr ""
17218 " txz-out каталог (архів tar|-)\n"
17219 "\n"
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7333
17223 msgid ""
17224 "This command packs the contents of C<directory> and downloads it to local "
17225 "file C<tarball> (as an xz compressed tar archive)."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../fish/guestfish-actions.pod:4842
17230 msgid "umask"
17231 msgstr "umask"
17232
17233 #. type: verbatim
17234 #: ../fish/guestfish-actions.pod:4844
17235 #, no-wrap
17236 msgid ""
17237 " umask mask\n"
17238 "\n"
17239 msgstr ""
17240 " umask маска\n"
17241 "\n"
17242
17243 #. type: textblock
17244 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7346
17245 msgid ""
17246 "This function sets the mask used for creating new files and device nodes to "
17247 "C<mask & 0777>."
17248 msgstr ""
17249
17250 #. type: textblock
17251 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7349
17252 msgid ""
17253 "Typical umask values would be C<022> which creates new files with "
17254 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17255 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7354
17260 msgid ""
17261 "The default umask is C<022>.  This is important because it means that "
17262 "directories and device nodes will be created with C<0644> or C<0755> mode "
17263 "even if you specify C<0777>."
17264 msgstr ""
17265
17266 #. type: textblock
17267 #: ../fish/guestfish-actions.pod:4858
17268 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17269 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17270
17271 #. type: textblock
17272 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7361
17273 msgid "This call returns the previous umask."
17274 msgstr ""
17275
17276 #. type: =head2
17277 #: ../fish/guestfish-actions.pod:4863
17278 msgid "umount"
17279 msgstr "umount"
17280
17281 #. type: =head2
17282 #: ../fish/guestfish-actions.pod:4865
17283 msgid "unmount"
17284 msgstr "unmount"
17285
17286 #. type: verbatim
17287 #: ../fish/guestfish-actions.pod:4867
17288 #, no-wrap
17289 msgid ""
17290 " umount pathordevice\n"
17291 "\n"
17292 msgstr ""
17293 " umount шлях_або_пристрій\n"
17294 "\n"
17295
17296 #. type: textblock
17297 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7373
17298 msgid ""
17299 "This unmounts the given filesystem.  The filesystem may be specified either "
17300 "by its mountpoint (path) or the device which contains the filesystem."
17301 msgstr ""
17302
17303 #. type: =head2
17304 #: ../fish/guestfish-actions.pod:4873
17305 msgid "umount-all"
17306 msgstr "umount-all"
17307
17308 #. type: =head2
17309 #: ../fish/guestfish-actions.pod:4875
17310 msgid "unmount-all"
17311 msgstr "unmount-all"
17312
17313 #. type: verbatim
17314 #: ../fish/guestfish-actions.pod:4877
17315 #, no-wrap
17316 msgid ""
17317 " umount-all\n"
17318 "\n"
17319 msgstr ""
17320 " umount-all\n"
17321 "\n"
17322
17323 #. type: textblock
17324 #: ../fish/guestfish-actions.pod:4879 ../src/guestfs-actions.pod:7386
17325 msgid "This unmounts all mounted filesystems."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7388
17330 msgid "Some internal mounts are not unmounted by this call."
17331 msgstr ""
17332
17333 #. type: =head2
17334 #: ../fish/guestfish-actions.pod:4883
17335 msgid "upload"
17336 msgstr "upload"
17337
17338 #. type: verbatim
17339 #: ../fish/guestfish-actions.pod:4885
17340 #, no-wrap
17341 msgid ""
17342 " upload (filename|-) remotefilename\n"
17343 "\n"
17344 msgstr ""
17345 " upload (назва_файла|-) назва_віддаленого_файла\n"
17346 "\n"
17347
17348 #. type: textblock
17349 #: ../fish/guestfish-actions.pod:4887 ../fish/guestfish-actions.pod:4900
17350 #: ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7425
17351 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-actions.pod:4892
17356 msgid "See also L</download>."
17357 msgstr "Див. також L</download>."
17358
17359 #. type: =head2
17360 #: ../fish/guestfish-actions.pod:4896
17361 msgid "upload-offset"
17362 msgstr "upload-offset"
17363
17364 #. type: verbatim
17365 #: ../fish/guestfish-actions.pod:4898
17366 #, no-wrap
17367 msgid ""
17368 " upload-offset (filename|-) remotefilename offset\n"
17369 "\n"
17370 msgstr ""
17371 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17372 "\n"
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7428
17376 msgid ""
17377 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17378 "The intention is to overwrite parts of existing files or devices, although "
17379 "if a non-existant file is specified then it is created with a \"hole\" "
17380 "before C<offset>.  The size of the data written is implicit in the size of "
17381 "the source C<filename>."
17382 msgstr ""
17383
17384 #. type: textblock
17385 #: ../fish/guestfish-actions.pod:4910
17386 msgid ""
17387 "Note that there is no limit on the amount of data that can be uploaded with "
17388 "this call, unlike with L</pwrite>, and this call always writes the full "
17389 "amount unless an error occurs."
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish-actions.pod:4915
17394 msgid "See also L</upload>, L</pwrite>."
17395 msgstr "Див. також L</upload>, L</pwrite>."
17396
17397 #. type: =head2
17398 #: ../fish/guestfish-actions.pod:4919
17399 msgid "utimens"
17400 msgstr "utimens"
17401
17402 #. type: verbatim
17403 #: ../fish/guestfish-actions.pod:4921
17404 #, no-wrap
17405 msgid ""
17406 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17407 "\n"
17408 msgstr ""
17409
17410 #. type: textblock
17411 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
17412 msgid "This command sets the timestamps of a file with nanosecond precision."
17413 msgstr ""
17414
17415 #. type: textblock
17416 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7464
17417 msgid ""
17418 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17419 "from the epoch."
17420 msgstr ""
17421
17422 #. type: textblock
17423 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7467
17424 msgid ""
17425 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17426 "nanoseconds from the epoch."
17427 msgstr ""
17428
17429 #. type: textblock
17430 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7470
17431 msgid ""
17432 "If the C<*nsecs> field contains the special value C<-1> then the "
17433 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17434 "ignored in this case)."
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7474
17439 msgid ""
17440 "If the C<*nsecs> field contains the special value C<-2> then the "
17441 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17442 "in this case)."
17443 msgstr ""
17444
17445 #. type: =head2
17446 #: ../fish/guestfish-actions.pod:4940
17447 msgid "version"
17448 msgstr "version"
17449
17450 #. type: verbatim
17451 #: ../fish/guestfish-actions.pod:4942
17452 #, no-wrap
17453 msgid ""
17454 " version\n"
17455 "\n"
17456 msgstr ""
17457 " version\n"
17458 "\n"
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7487
17462 msgid ""
17463 "Return the libguestfs version number that the program is linked against."
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7490
17468 msgid ""
17469 "Note that because of dynamic linking this is not necessarily the version of "
17470 "libguestfs that you compiled against.  You can compile the program, and then "
17471 "at runtime dynamically link against a completely different C<libguestfs.so> "
17472 "library."
17473 msgstr ""
17474
17475 #. type: textblock
17476 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7495
17477 msgid ""
17478 "This call was added in version C<1.0.58>.  In previous versions of "
17479 "libguestfs there was no way to get the version number.  From C code you can "
17480 "use dynamic linker functions to find out if this symbol exists (if it "
17481 "doesn't, then it's an earlier version)."
17482 msgstr ""
17483
17484 #. type: textblock
17485 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7501
17486 msgid ""
17487 "The call returns a structure with four elements.  The first three (C<major>, "
17488 "C<minor> and C<release>) are numbers and correspond to the usual version "
17489 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17490 "but may be used for distro-specific information."
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7507
17495 msgid ""
17496 "To construct the original version string: C<$major.$minor.$release$extra>"
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7510
17501 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-actions.pod:4969
17506 msgid ""
17507 "I<Note:> Don't use this call to test for availability of features.  In "
17508 "enterprise distributions we backport features from later versions into "
17509 "earlier versions, making this an unreliable way to test for features.  Use "
17510 "L</available> instead."
17511 msgstr ""
17512
17513 #. type: =head2
17514 #: ../fish/guestfish-actions.pod:4975
17515 msgid "vfs-label"
17516 msgstr "vfs-label"
17517
17518 #. type: verbatim
17519 #: ../fish/guestfish-actions.pod:4977
17520 #, no-wrap
17521 msgid ""
17522 " vfs-label device\n"
17523 "\n"
17524 msgstr ""
17525 " vfs-label пристрій\n"
17526 "\n"
17527
17528 #. type: textblock
17529 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7530
17530 msgid "This returns the filesystem label of the filesystem on C<device>."
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7533
17535 msgid "If the filesystem is unlabeled, this returns the empty string."
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../fish/guestfish-actions.pod:4984
17540 msgid "To find a filesystem from the label, use L</findfs-label>."
17541 msgstr ""
17542
17543 #. type: =head2
17544 #: ../fish/guestfish-actions.pod:4986
17545 msgid "vfs-type"
17546 msgstr "vfs-type"
17547
17548 #. type: verbatim
17549 #: ../fish/guestfish-actions.pod:4988
17550 #, no-wrap
17551 msgid ""
17552 " vfs-type device\n"
17553 "\n"
17554 msgstr ""
17555 " vfs-type пристрій\n"
17556 "\n"
17557
17558 #. type: textblock
17559 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7548
17560 msgid ""
17561 "This command gets the filesystem type corresponding to the filesystem on "
17562 "C<device>."
17563 msgstr ""
17564
17565 #. type: textblock
17566 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7551
17567 msgid ""
17568 "For most filesystems, the result is the name of the Linux VFS module which "
17569 "would be used to mount this filesystem if you mounted it without specifying "
17570 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17571 msgstr ""
17572
17573 #. type: =head2
17574 #: ../fish/guestfish-actions.pod:4998
17575 msgid "vfs-uuid"
17576 msgstr "vfs-uuid"
17577
17578 #. type: verbatim
17579 #: ../fish/guestfish-actions.pod:5000
17580 #, no-wrap
17581 msgid ""
17582 " vfs-uuid device\n"
17583 "\n"
17584 msgstr ""
17585 " vfs-uuid пристрій\n"
17586 "\n"
17587
17588 #. type: textblock
17589 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7567
17590 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
17595 msgid "If the filesystem does not have a UUID, this returns the empty string."
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../fish/guestfish-actions.pod:5007
17600 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17601 msgstr ""
17602
17603 #. type: =head2
17604 #: ../fish/guestfish-actions.pod:5009
17605 msgid "vg-activate"
17606 msgstr "vg-activate"
17607
17608 #. type: verbatim
17609 #: ../fish/guestfish-actions.pod:5011
17610 #, no-wrap
17611 msgid ""
17612 " vg-activate true|false 'volgroups ...'\n"
17613 "\n"
17614 msgstr ""
17615
17616 #. type: textblock
17617 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7586
17618 msgid ""
17619 "This command activates or (if C<activate> is false) deactivates all logical "
17620 "volumes in the listed volume groups C<volgroups>."
17621 msgstr ""
17622
17623 #. type: textblock
17624 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7589
17625 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17626 msgstr ""
17627
17628 #. type: textblock
17629 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7591
17630 msgid ""
17631 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17632 "activated or deactivated."
17633 msgstr ""
17634
17635 #. type: =head2
17636 #: ../fish/guestfish-actions.pod:5021
17637 msgid "vg-activate-all"
17638 msgstr "vg-activate-all"
17639
17640 #. type: verbatim
17641 #: ../fish/guestfish-actions.pod:5023
17642 #, no-wrap
17643 msgid ""
17644 " vg-activate-all true|false\n"
17645 "\n"
17646 msgstr ""
17647 " vg-activate-all true|false\n"
17648 "\n"
17649
17650 #. type: textblock
17651 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7604
17652 msgid ""
17653 "This command activates or (if C<activate> is false) deactivates all logical "
17654 "volumes in all volume groups."
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7607
17659 msgid "This command is the same as running C<vgchange -a y|n>"
17660 msgstr ""
17661
17662 #. type: =head2
17663 #: ../fish/guestfish-actions.pod:5030
17664 msgid "vgcreate"
17665 msgstr "vgcreate"
17666
17667 #. type: verbatim
17668 #: ../fish/guestfish-actions.pod:5032
17669 #, no-wrap
17670 msgid ""
17671 " vgcreate volgroup 'physvols ...'\n"
17672 "\n"
17673 msgstr ""
17674
17675 #. type: textblock
17676 #: ../fish/guestfish-actions.pod:5034 ../src/guestfs-actions.pod:7620
17677 msgid ""
17678 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17679 "of physical volumes C<physvols>."
17680 msgstr ""
17681
17682 #. type: =head2
17683 #: ../fish/guestfish-actions.pod:5037
17684 msgid "vglvuuids"
17685 msgstr "vglvuuids"
17686
17687 #. type: verbatim
17688 #: ../fish/guestfish-actions.pod:5039
17689 #, no-wrap
17690 msgid ""
17691 " vglvuuids vgname\n"
17692 "\n"
17693 msgstr ""
17694
17695 #. type: textblock
17696 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7633
17697 msgid ""
17698 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17699 "volumes created in this volume group."
17700 msgstr ""
17701
17702 #. type: textblock
17703 #: ../fish/guestfish-actions.pod:5044
17704 msgid ""
17705 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17706 "logical volumes and volume groups."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish-actions.pod:5047
17711 msgid "See also L</vgpvuuids>."
17712 msgstr "Див. також L</vgpvuuids>."
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-actions.pod:5049
17716 msgid "vgpvuuids"
17717 msgstr "vgpvuuids"
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-actions.pod:5051
17721 #, no-wrap
17722 msgid ""
17723 " vgpvuuids vgname\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish-actions.pod:5053 ../src/guestfs-actions.pod:7653
17729 msgid ""
17730 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17731 "volumes that this volume group resides on."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish-actions.pod:5056
17736 msgid ""
17737 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17738 "physical volumes and volume groups."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish-actions.pod:5059
17743 msgid "See also L</vglvuuids>."
17744 msgstr "Див. також L</vglvuuids>."
17745
17746 #. type: =head2
17747 #: ../fish/guestfish-actions.pod:5061
17748 msgid "vgremove"
17749 msgstr "vgremove"
17750
17751 #. type: verbatim
17752 #: ../fish/guestfish-actions.pod:5063
17753 #, no-wrap
17754 msgid ""
17755 " vgremove vgname\n"
17756 "\n"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7673
17761 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7675
17766 msgid ""
17767 "This also forcibly removes all logical volumes in the volume group (if any)."
17768 msgstr ""
17769
17770 #. type: =head2
17771 #: ../fish/guestfish-actions.pod:5070
17772 msgid "vgrename"
17773 msgstr "vgrename"
17774
17775 #. type: verbatim
17776 #: ../fish/guestfish-actions.pod:5072
17777 #, no-wrap
17778 msgid ""
17779 " vgrename volgroup newvolgroup\n"
17780 "\n"
17781 msgstr ""
17782
17783 #. type: textblock
17784 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7689
17785 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17786 msgstr ""
17787
17788 #. type: =head2
17789 #: ../fish/guestfish-actions.pod:5076
17790 msgid "vgs"
17791 msgstr "vgs"
17792
17793 #. type: verbatim
17794 #: ../fish/guestfish-actions.pod:5078
17795 #, no-wrap
17796 msgid ""
17797 " vgs\n"
17798 "\n"
17799 msgstr ""
17800 " vgs\n"
17801 "\n"
17802
17803 #. type: textblock
17804 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7700
17805 msgid ""
17806 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17807 "> command."
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7703
17812 msgid ""
17813 "This returns a list of just the volume group names that were detected (eg. "
17814 "C<VolGroup00>)."
17815 msgstr ""
17816
17817 #. type: textblock
17818 #: ../fish/guestfish-actions.pod:5086
17819 msgid "See also L</vgs-full>."
17820 msgstr "Див. також L</vgs-full>."
17821
17822 #. type: =head2
17823 #: ../fish/guestfish-actions.pod:5088
17824 msgid "vgs-full"
17825 msgstr "vgs-full"
17826
17827 #. type: verbatim
17828 #: ../fish/guestfish-actions.pod:5090
17829 #, no-wrap
17830 msgid ""
17831 " vgs-full\n"
17832 "\n"
17833 msgstr ""
17834 " vgs-full\n"
17835 "\n"
17836
17837 #. type: textblock
17838 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7719
17839 msgid ""
17840 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17841 "> command.  The \"full\" version includes all fields."
17842 msgstr ""
17843
17844 #. type: =head2
17845 #: ../fish/guestfish-actions.pod:5095
17846 msgid "vgscan"
17847 msgstr "vgscan"
17848
17849 #. type: verbatim
17850 #: ../fish/guestfish-actions.pod:5097
17851 #, no-wrap
17852 msgid ""
17853 " vgscan\n"
17854 "\n"
17855 msgstr ""
17856 " vgscan\n"
17857 "\n"
17858
17859 #. type: textblock
17860 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7733
17861 msgid ""
17862 "This rescans all block devices and rebuilds the list of LVM physical "
17863 "volumes, volume groups and logical volumes."
17864 msgstr ""
17865
17866 #. type: =head2
17867 #: ../fish/guestfish-actions.pod:5102
17868 msgid "vguuid"
17869 msgstr "vguuid"
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-actions.pod:5104
17873 #, no-wrap
17874 msgid ""
17875 " vguuid vgname\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7746
17881 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17882 msgstr ""
17883
17884 #. type: =head2
17885 #: ../fish/guestfish-actions.pod:5108
17886 msgid "wc-c"
17887 msgstr "wc-c"
17888
17889 #. type: verbatim
17890 #: ../fish/guestfish-actions.pod:5110
17891 #, no-wrap
17892 msgid ""
17893 " wc-c path\n"
17894 "\n"
17895 msgstr ""
17896 " wc-c шлях\n"
17897 "\n"
17898
17899 #. type: textblock
17900 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7786
17901 msgid ""
17902 "This command counts the characters in a file, using the C<wc -c> external "
17903 "command."
17904 msgstr ""
17905
17906 #. type: =head2
17907 #: ../fish/guestfish-actions.pod:5115
17908 msgid "wc-l"
17909 msgstr "wc-l"
17910
17911 #. type: verbatim
17912 #: ../fish/guestfish-actions.pod:5117
17913 #, no-wrap
17914 msgid ""
17915 " wc-l path\n"
17916 "\n"
17917 msgstr ""
17918 " wc-l шлях\n"
17919 "\n"
17920
17921 #. type: textblock
17922 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7799
17923 msgid ""
17924 "This command counts the lines in a file, using the C<wc -l> external command."
17925 msgstr ""
17926
17927 #. type: =head2
17928 #: ../fish/guestfish-actions.pod:5122
17929 msgid "wc-w"
17930 msgstr "wc-w"
17931
17932 #. type: verbatim
17933 #: ../fish/guestfish-actions.pod:5124
17934 #, no-wrap
17935 msgid ""
17936 " wc-w path\n"
17937 "\n"
17938 msgstr ""
17939 " wc-w шлях\n"
17940 "\n"
17941
17942 #. type: textblock
17943 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7812
17944 msgid ""
17945 "This command counts the words in a file, using the C<wc -w> external command."
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../fish/guestfish-actions.pod:5129
17950 msgid "write"
17951 msgstr "write"
17952
17953 #. type: verbatim
17954 #: ../fish/guestfish-actions.pod:5131
17955 #, no-wrap
17956 msgid ""
17957 " write path content\n"
17958 "\n"
17959 msgstr ""
17960 " write шлях дані\n"
17961 "\n"
17962
17963 #. type: textblock
17964 #: ../fish/guestfish-actions.pod:5133 ../src/guestfs-actions.pod:7827
17965 msgid ""
17966 "This call creates a file called C<path>.  The content of the file is the "
17967 "string C<content> (which can contain any 8 bit data)."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-actions.pod:5136
17972 msgid "See also L</write-append>."
17973 msgstr ""
17974
17975 #. type: =head2
17976 #: ../fish/guestfish-actions.pod:5141
17977 msgid "write-append"
17978 msgstr ""
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish-actions.pod:5143
17982 #, no-wrap
17983 msgid ""
17984 " write-append path content\n"
17985 "\n"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:7847
17990 msgid ""
17991 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17992 "not exist, then a new file is created."
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish-actions.pod:5148
17997 msgid "See also L</write>."
17998 msgstr ""
17999
18000 #. type: =head2
18001 #: ../fish/guestfish-actions.pod:5153
18002 msgid "write-file"
18003 msgstr "write-file"
18004
18005 #. type: verbatim
18006 #: ../fish/guestfish-actions.pod:5155
18007 #, no-wrap
18008 msgid ""
18009 " write-file path content size\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7874
18015 msgid ""
18016 "This call creates a file called C<path>.  The contents of the file is the "
18017 "string C<content> (which can contain any 8 bit data), with length C<size>."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7878
18022 msgid ""
18023 "As a special case, if C<size> is C<0> then the length is calculated using "
18024 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7882
18029 msgid ""
18030 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18031 "I<not> work, even if the length is specified."
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-actions.pod:5171
18036 msgid ""
18037 "I<This function is deprecated.> In new code, use the L</write> call instead."
18038 msgstr ""
18039
18040 #. type: =head2
18041 #: ../fish/guestfish-actions.pod:5178
18042 msgid "zegrep"
18043 msgstr "zegrep"
18044
18045 #. type: verbatim
18046 #: ../fish/guestfish-actions.pod:5180
18047 #, no-wrap
18048 msgid ""
18049 " zegrep regex path\n"
18050 "\n"
18051 msgstr ""
18052 " zegrep формальний_вираз шлях\n"
18053 "\n"
18054
18055 #. type: textblock
18056 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7899
18057 msgid ""
18058 "This calls the external C<zegrep> program and returns the matching lines."
18059 msgstr ""
18060
18061 #. type: =head2
18062 #: ../fish/guestfish-actions.pod:5188
18063 msgid "zegrepi"
18064 msgstr "zegrepi"
18065
18066 #. type: verbatim
18067 #: ../fish/guestfish-actions.pod:5190
18068 #, no-wrap
18069 msgid ""
18070 " zegrepi regex path\n"
18071 "\n"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7918
18076 msgid ""
18077 "This calls the external C<zegrep -i> program and returns the matching lines."
18078 msgstr ""
18079
18080 #. type: =head2
18081 #: ../fish/guestfish-actions.pod:5198
18082 msgid "zero"
18083 msgstr "zero"
18084
18085 #. type: verbatim
18086 #: ../fish/guestfish-actions.pod:5200
18087 #, no-wrap
18088 msgid ""
18089 " zero device\n"
18090 "\n"
18091 msgstr ""
18092 " zero пристрій\n"
18093 "\n"
18094
18095 #. type: textblock
18096 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7936
18097 msgid "This command writes zeroes over the first few blocks of C<device>."
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7938
18102 msgid ""
18103 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18104 "securely wipe the device).  It should be sufficient to remove any partition "
18105 "tables, filesystem superblocks and so on."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-actions.pod:5208 ../fish/guestfish-actions.pod:5223
18110 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7968
18111 msgid ""
18112 "If blocks are already zero, then this command avoids writing zeroes.  This "
18113 "prevents the underlying device from becoming non-sparse or growing "
18114 "unnecessarily."
18115 msgstr ""
18116
18117 #. type: textblock
18118 #: ../fish/guestfish-actions.pod:5212
18119 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18120 msgstr ""
18121
18122 #. type: =head2
18123 #: ../fish/guestfish-actions.pod:5215
18124 msgid "zero-device"
18125 msgstr "zero-device"
18126
18127 #. type: verbatim
18128 #: ../fish/guestfish-actions.pod:5217
18129 #, no-wrap
18130 msgid ""
18131 " zero-device device\n"
18132 "\n"
18133 msgstr ""
18134 " zero-device пристрій\n"
18135 "\n"
18136
18137 #. type: textblock
18138 #: ../fish/guestfish-actions.pod:5219
18139 msgid ""
18140 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18141 "which just zeroes the first few blocks of a device."
18142 msgstr ""
18143
18144 #. type: =head2
18145 #: ../fish/guestfish-actions.pod:5230
18146 msgid "zerofree"
18147 msgstr "zerofree"
18148
18149 #. type: verbatim
18150 #: ../fish/guestfish-actions.pod:5232
18151 #, no-wrap
18152 msgid ""
18153 " zerofree device\n"
18154 "\n"
18155 msgstr ""
18156 " zerofree пристрій\n"
18157 "\n"
18158
18159 #. type: textblock
18160 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:7990
18161 msgid ""
18162 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18163 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18164 "possible to compress the filesystem more effectively."
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7995
18169 msgid "You should B<not> run this program if the filesystem is mounted."
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7998
18174 msgid ""
18175 "It is possible that using this program can damage the filesystem or data on "
18176 "the filesystem."
18177 msgstr ""
18178
18179 #. type: =head2
18180 #: ../fish/guestfish-actions.pod:5245
18181 msgid "zfgrep"
18182 msgstr "zfgrep"
18183
18184 #. type: verbatim
18185 #: ../fish/guestfish-actions.pod:5247
18186 #, no-wrap
18187 msgid ""
18188 " zfgrep pattern path\n"
18189 "\n"
18190 msgstr ""
18191 " zfgrep шаблон шлях\n"
18192 "\n"
18193
18194 #. type: textblock
18195 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8012
18196 msgid ""
18197 "This calls the external C<zfgrep> program and returns the matching lines."
18198 msgstr ""
18199
18200 #. type: =head2
18201 #: ../fish/guestfish-actions.pod:5255
18202 msgid "zfgrepi"
18203 msgstr "zfgrepi"
18204
18205 #. type: verbatim
18206 #: ../fish/guestfish-actions.pod:5257
18207 #, no-wrap
18208 msgid ""
18209 " zfgrepi pattern path\n"
18210 "\n"
18211 msgstr ""
18212 " zfgrepi шаблон шлях\n"
18213 "\n"
18214
18215 #. type: textblock
18216 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8031
18217 msgid ""
18218 "This calls the external C<zfgrep -i> program and returns the matching lines."
18219 msgstr ""
18220
18221 #. type: =head2
18222 #: ../fish/guestfish-actions.pod:5265
18223 msgid "zfile"
18224 msgstr "zfile"
18225
18226 #. type: verbatim
18227 #: ../fish/guestfish-actions.pod:5267
18228 #, no-wrap
18229 msgid ""
18230 " zfile meth path\n"
18231 "\n"
18232 msgstr ""
18233 " zfile метод шлях\n"
18234 "\n"
18235
18236 #. type: textblock
18237 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8057
18238 msgid ""
18239 "This command runs C<file> after first decompressing C<path> using C<method>."
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish-actions.pod:5272 ../src/guestfs-actions.pod:8060
18244 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/guestfish-actions.pod:5274
18249 msgid ""
18250 "Since 1.0.63, use L</file> instead which can now process compressed files."
18251 msgstr ""
18252
18253 #. type: textblock
18254 #: ../fish/guestfish-actions.pod:5277
18255 msgid ""
18256 "I<This function is deprecated.> In new code, use the L</file> call instead."
18257 msgstr ""
18258
18259 #. type: =head2
18260 #: ../fish/guestfish-actions.pod:5284
18261 msgid "zgrep"
18262 msgstr "zgrep"
18263
18264 #. type: verbatim
18265 #: ../fish/guestfish-actions.pod:5286
18266 #, no-wrap
18267 msgid ""
18268 " zgrep regex path\n"
18269 "\n"
18270 msgstr ""
18271 " zgrep формальний_вираз шлях\n"
18272 "\n"
18273
18274 #. type: textblock
18275 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8077
18276 msgid ""
18277 "This calls the external C<zgrep> program and returns the matching lines."
18278 msgstr ""
18279
18280 #. type: =head2
18281 #: ../fish/guestfish-actions.pod:5294
18282 msgid "zgrepi"
18283 msgstr "zgrepi"
18284
18285 #. type: verbatim
18286 #: ../fish/guestfish-actions.pod:5296
18287 #, no-wrap
18288 msgid ""
18289 " zgrepi regex path\n"
18290 "\n"
18291 msgstr ""
18292 " zgrepi формальний_вираз шлях\n"
18293 "\n"
18294
18295 #. type: textblock
18296 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8096
18297 msgid ""
18298 "This calls the external C<zgrep -i> program and returns the matching lines."
18299 msgstr ""
18300
18301 #. type: =head2
18302 #: ../fish/guestfish-commands.pod:1
18303 msgid "alloc"
18304 msgstr "alloc"
18305
18306 #. type: =head2
18307 #: ../fish/guestfish-commands.pod:3
18308 msgid "allocate"
18309 msgstr ""
18310
18311 #. type: verbatim
18312 #: ../fish/guestfish-commands.pod:5
18313 #, no-wrap
18314 msgid ""
18315 " alloc filename size\n"
18316 "\n"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish-commands.pod:7
18321 msgid ""
18322 "This creates an empty (zeroed) file of the given size, and then adds so it "
18323 "can be further examined."
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18328 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18333 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish-commands.pod:14
18338 msgid ""
18339 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18340 "image, see L</PREPARED DISK IMAGES>."
18341 msgstr ""
18342
18343 #. type: =head2
18344 #: ../fish/guestfish-commands.pod:17
18345 msgid "copy-in"
18346 msgstr "copy-in"
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish-commands.pod:19
18350 #, no-wrap
18351 msgid ""
18352 " copy-in local [local ...] /remotedir\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish-commands.pod:21
18358 msgid ""
18359 "C<copy-in> copies local files or directories recursively into the disk "
18360 "image, placing them in the directory called C</remotedir> (which must "
18361 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18362 "other commands as necessary."
18363 msgstr ""
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-commands.pod:26
18367 msgid ""
18368 "Multiple local files and directories can be specified, but the last "
18369 "parameter must always be a remote directory.  Wildcards cannot be used."
18370 msgstr ""
18371
18372 #. type: =head2
18373 #: ../fish/guestfish-commands.pod:30
18374 msgid "copy-out"
18375 msgstr "copy-out"
18376
18377 #. type: verbatim
18378 #: ../fish/guestfish-commands.pod:32
18379 #, no-wrap
18380 msgid ""
18381 " copy-out remote [remote ...] localdir\n"
18382 "\n"
18383 msgstr ""
18384
18385 #. type: textblock
18386 #: ../fish/guestfish-commands.pod:34
18387 msgid ""
18388 "C<copy-out> copies remote files or directories recursively out of the disk "
18389 "image, placing them on the host disk in a local directory called C<localdir> "
18390 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18391 "download>, L</tar-out> and other commands as necessary."
18392 msgstr ""
18393
18394 #. type: textblock
18395 #: ../fish/guestfish-commands.pod:40
18396 msgid ""
18397 "Multiple remote files and directories can be specified, but the last "
18398 "parameter must always be a local directory.  To download to the current "
18399 "directory, use C<.> as in:"
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish-commands.pod:44
18404 #, no-wrap
18405 msgid ""
18406 " copy-out /home .\n"
18407 "\n"
18408 msgstr ""
18409 " copy-out /home .\n"
18410 "\n"
18411
18412 #. type: textblock
18413 #: ../fish/guestfish-commands.pod:46
18414 msgid ""
18415 "Wildcards cannot be used in the ordinary command, but you can use them with "
18416 "the help of L</glob> like this:"
18417 msgstr ""
18418
18419 #. type: verbatim
18420 #: ../fish/guestfish-commands.pod:49
18421 #, no-wrap
18422 msgid ""
18423 " glob copy-out /home/* .\n"
18424 "\n"
18425 msgstr ""
18426 " glob copy-out /home/* .\n"
18427 "\n"
18428
18429 #. type: =head2
18430 #: ../fish/guestfish-commands.pod:51
18431 msgid "display"
18432 msgstr ""
18433
18434 #. type: verbatim
18435 #: ../fish/guestfish-commands.pod:53
18436 #, no-wrap
18437 msgid ""
18438 " display filename\n"
18439 "\n"
18440 msgstr ""
18441
18442 #. type: textblock
18443 #: ../fish/guestfish-commands.pod:55
18444 msgid ""
18445 "Use C<display> (a graphical display program) to display an image file.  It "
18446 "downloads the file, and runs C<display> on it."
18447 msgstr ""
18448
18449 #. type: textblock
18450 #: ../fish/guestfish-commands.pod:58
18451 msgid ""
18452 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18453 "environment variable.  For example to use the GNOME display program:"
18454 msgstr ""
18455
18456 #. type: verbatim
18457 #: ../fish/guestfish-commands.pod:61
18458 #, no-wrap
18459 msgid ""
18460 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18461 "\n"
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/guestfish-commands.pod:63
18466 msgid "See also L<display(1)>."
18467 msgstr ""
18468
18469 #. type: =head2
18470 #: ../fish/guestfish-commands.pod:65
18471 msgid "echo"
18472 msgstr "echo"
18473
18474 #. type: verbatim
18475 #: ../fish/guestfish-commands.pod:67
18476 #, no-wrap
18477 msgid ""
18478 " echo [params ...]\n"
18479 "\n"
18480 msgstr ""
18481 " echo [параметри...]\n"
18482 "\n"
18483
18484 #. type: textblock
18485 #: ../fish/guestfish-commands.pod:69
18486 msgid "This echos the parameters to the terminal."
18487 msgstr ""
18488
18489 #. type: =head2
18490 #: ../fish/guestfish-commands.pod:71
18491 msgid "edit"
18492 msgstr "edit"
18493
18494 #. type: =head2
18495 #: ../fish/guestfish-commands.pod:73
18496 msgid "vi"
18497 msgstr "vi"
18498
18499 #. type: =head2
18500 #: ../fish/guestfish-commands.pod:75
18501 msgid "emacs"
18502 msgstr "emacs"
18503
18504 #. type: verbatim
18505 #: ../fish/guestfish-commands.pod:77
18506 #, no-wrap
18507 msgid ""
18508 " edit filename\n"
18509 "\n"
18510 msgstr ""
18511 " edit назва_файла\n"
18512 "\n"
18513
18514 #. type: textblock
18515 #: ../fish/guestfish-commands.pod:79
18516 msgid ""
18517 "This is used to edit a file.  It downloads the file, edits it locally using "
18518 "your editor, then uploads the result."
18519 msgstr ""
18520
18521 #. type: textblock
18522 #: ../fish/guestfish-commands.pod:82
18523 msgid ""
18524 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18525 "or C<emacs> you will get those corresponding editors."
18526 msgstr ""
18527
18528 #. type: =head2
18529 #: ../fish/guestfish-commands.pod:86
18530 msgid "glob"
18531 msgstr "glob"
18532
18533 #. type: verbatim
18534 #: ../fish/guestfish-commands.pod:88
18535 #, no-wrap
18536 msgid ""
18537 " glob command args...\n"
18538 "\n"
18539 msgstr ""
18540 " glob команда параметри...\n"
18541 "\n"
18542
18543 #. type: textblock
18544 #: ../fish/guestfish-commands.pod:90
18545 msgid ""
18546 "Expand wildcards in any paths in the args list, and run C<command> "
18547 "repeatedly on each matching path."
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish-commands.pod:93
18552 msgid "See L</WILDCARDS AND GLOBBING>."
18553 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18554
18555 #. type: =head2
18556 #: ../fish/guestfish-commands.pod:95
18557 msgid "hexedit"
18558 msgstr "hexedit"
18559
18560 #. type: verbatim
18561 #: ../fish/guestfish-commands.pod:97
18562 #, no-wrap
18563 msgid ""
18564 " hexedit <filename|device>\n"
18565 " hexedit <filename|device> <max>\n"
18566 " hexedit <filename|device> <start> <max>\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish-commands.pod:101
18572 msgid ""
18573 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18574 "device."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish-commands.pod:104
18579 msgid ""
18580 "This command works by downloading potentially the whole file or device, "
18581 "editing it locally, then uploading it.  If the file or device is large, you "
18582 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18583 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18584 "usual modifiers allowed such as C<1M> (1 megabyte)."
18585 msgstr ""
18586
18587 #. type: textblock
18588 #: ../fish/guestfish-commands.pod:111
18589 msgid "For example to edit the first few sectors of a disk you might do:"
18590 msgstr ""
18591
18592 #. type: verbatim
18593 #: ../fish/guestfish-commands.pod:114
18594 #, no-wrap
18595 msgid ""
18596 " hexedit /dev/sda 1M\n"
18597 "\n"
18598 msgstr ""
18599 " hexedit /dev/sda 1M\n"
18600 "\n"
18601
18602 #. type: textblock
18603 #: ../fish/guestfish-commands.pod:116
18604 msgid ""
18605 "which would allow you to edit anywhere within the first megabyte of the disk."
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish-commands.pod:119
18610 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../fish/guestfish-commands.pod:121
18615 #, no-wrap
18616 msgid ""
18617 " hexedit /dev/sda1 0x400 0x400\n"
18618 "\n"
18619 msgstr ""
18620 " hexedit /dev/sda1 0x400 0x400\n"
18621 "\n"
18622
18623 #. type: textblock
18624 #: ../fish/guestfish-commands.pod:123
18625 msgid "(assuming the superblock is in the standard location)."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish-commands.pod:125
18630 msgid ""
18631 "This command requires the external L<hexedit(1)> program.  You can specify "
18632 "another program to use by setting the C<HEXEDITOR> environment variable."
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish-commands.pod:129
18637 msgid "See also L</hexdump>."
18638 msgstr "Див. також L</hexdump>."
18639
18640 #. type: =head2
18641 #: ../fish/guestfish-commands.pod:131
18642 msgid "lcd"
18643 msgstr "lcd"
18644
18645 #. type: verbatim
18646 #: ../fish/guestfish-commands.pod:133
18647 #, no-wrap
18648 msgid ""
18649 " lcd directory\n"
18650 "\n"
18651 msgstr ""
18652
18653 #. type: textblock
18654 #: ../fish/guestfish-commands.pod:135
18655 msgid ""
18656 "Change the local directory, ie. the current directory of guestfish itself."
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/guestfish-commands.pod:138
18661 msgid "Note that C<!cd> won't do what you might expect."
18662 msgstr ""
18663
18664 #. type: =head2
18665 #: ../fish/guestfish-commands.pod:140
18666 msgid "man"
18667 msgstr "man"
18668
18669 #. type: =head2
18670 #: ../fish/guestfish-commands.pod:142
18671 msgid "manual"
18672 msgstr ""
18673
18674 #. type: verbatim
18675 #: ../fish/guestfish-commands.pod:144
18676 #, no-wrap
18677 msgid ""
18678 "  man\n"
18679 "\n"
18680 msgstr ""
18681 "  man\n"
18682 "\n"
18683
18684 #. type: textblock
18685 #: ../fish/guestfish-commands.pod:146
18686 msgid "Opens the manual page for guestfish."
18687 msgstr ""
18688
18689 #. type: =head2
18690 #: ../fish/guestfish-commands.pod:148
18691 msgid "more"
18692 msgstr "more"
18693
18694 #. type: =head2
18695 #: ../fish/guestfish-commands.pod:150
18696 msgid "less"
18697 msgstr "less"
18698
18699 #. type: verbatim
18700 #: ../fish/guestfish-commands.pod:152
18701 #, no-wrap
18702 msgid ""
18703 " more filename\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: verbatim
18708 #: ../fish/guestfish-commands.pod:154
18709 #, no-wrap
18710 msgid ""
18711 " less filename\n"
18712 "\n"
18713 msgstr ""
18714
18715 #. type: textblock
18716 #: ../fish/guestfish-commands.pod:156
18717 msgid "This is used to view a file."
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fish/guestfish-commands.pod:158
18722 msgid ""
18723 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18724 "C<less> you will get the C<less> command specifically."
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish-commands.pod:161
18729 msgid "reopen"
18730 msgstr "reopen"
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish-commands.pod:163
18734 #, no-wrap
18735 msgid ""
18736 "  reopen\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish-commands.pod:165
18742 msgid ""
18743 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18744 "normally, because the handle is closed properly when guestfish exits.  "
18745 "However this is occasionally useful for testing."
18746 msgstr ""
18747
18748 #. type: =head2
18749 #: ../fish/guestfish-commands.pod:169
18750 msgid "setenv"
18751 msgstr ""
18752
18753 #. type: verbatim
18754 #: ../fish/guestfish-commands.pod:171
18755 #, no-wrap
18756 msgid ""
18757 "  setenv VAR value\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish-commands.pod:173
18763 msgid "Set the environment variable C<VAR> to the string C<value>."
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish-commands.pod:175
18768 msgid ""
18769 "To print the value of an environment variable use a shell command such as:"
18770 msgstr ""
18771
18772 #. type: verbatim
18773 #: ../fish/guestfish-commands.pod:178
18774 #, no-wrap
18775 msgid ""
18776 " !echo $VAR\n"
18777 "\n"
18778 msgstr ""
18779
18780 #. type: =head2
18781 #: ../fish/guestfish-commands.pod:180
18782 msgid "sparse"
18783 msgstr "sparse"
18784
18785 #. type: verbatim
18786 #: ../fish/guestfish-commands.pod:182
18787 #, no-wrap
18788 msgid ""
18789 " sparse filename size\n"
18790 "\n"
18791 msgstr ""
18792
18793 #. type: textblock
18794 #: ../fish/guestfish-commands.pod:184
18795 msgid ""
18796 "This creates an empty sparse file of the given size, and then adds so it can "
18797 "be further examined."
18798 msgstr ""
18799
18800 #. type: textblock
18801 #: ../fish/guestfish-commands.pod:187
18802 msgid ""
18803 "In all respects it works the same as the L</alloc> command, except that the "
18804 "image file is allocated sparsely, which means that disk blocks are not "
18805 "assigned to the file until they are needed.  Sparse disk files only use "
18806 "space when written to, but they are slower and there is a danger you could "
18807 "run out of real disk space during a write operation."
18808 msgstr ""
18809
18810 #. type: =head2
18811 #: ../fish/guestfish-commands.pod:197
18812 msgid "supported"
18813 msgstr "supported"
18814
18815 #. type: verbatim
18816 #: ../fish/guestfish-commands.pod:199
18817 #, no-wrap
18818 msgid ""
18819 " supported\n"
18820 "\n"
18821 msgstr ""
18822 " supported\n"
18823 "\n"
18824
18825 #. type: textblock
18826 #: ../fish/guestfish-commands.pod:201
18827 msgid ""
18828 "This command returns a list of the optional groups known to the daemon, and "
18829 "indicates which ones are supported by this build of the libguestfs appliance."
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish-commands.pod:205
18834 msgid "See also L<guestfs(3)/AVAILABILITY>."
18835 msgstr ""
18836
18837 #. type: =head2
18838 #: ../fish/guestfish-commands.pod:207
18839 msgid "time"
18840 msgstr "time"
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish-commands.pod:209
18844 #, no-wrap
18845 msgid ""
18846 " time command args...\n"
18847 "\n"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish-commands.pod:211
18852 msgid ""
18853 "Run the command as usual, but print the elapsed time afterwards.  This can "
18854 "be useful for benchmarking operations."
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish-commands.pod:214
18859 msgid "unsetenv"
18860 msgstr ""
18861
18862 #. type: verbatim
18863 #: ../fish/guestfish-commands.pod:216
18864 #, no-wrap
18865 msgid ""
18866 "  unsetenv VAR\n"
18867 "\n"
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../fish/guestfish-commands.pod:218
18872 msgid "Remove C<VAR> from the environment."
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/guestfish.pod:5
18877 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18878 msgstr ""
18879
18880 #. type: verbatim
18881 #: ../fish/guestfish.pod:9
18882 #, no-wrap
18883 msgid ""
18884 " guestfish [--options] [commands]\n"
18885 "\n"
18886 msgstr ""
18887
18888 #. type: verbatim
18889 #: ../fish/guestfish.pod:11
18890 #, no-wrap
18891 msgid ""
18892 " guestfish\n"
18893 "\n"
18894 msgstr ""
18895
18896 #. type: verbatim
18897 #: ../fish/guestfish.pod:13
18898 #, no-wrap
18899 msgid ""
18900 " guestfish [--ro|--rw] -a disk.img\n"
18901 "\n"
18902 msgstr ""
18903
18904 #. type: verbatim
18905 #: ../fish/guestfish.pod:15
18906 #, no-wrap
18907 msgid ""
18908 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: verbatim
18913 #: ../fish/guestfish.pod:17
18914 #, no-wrap
18915 msgid ""
18916 " guestfish -d libvirt-domain\n"
18917 "\n"
18918 msgstr ""
18919
18920 #. type: verbatim
18921 #: ../fish/guestfish.pod:19
18922 #, no-wrap
18923 msgid ""
18924 " guestfish [--ro|--rw] -a disk.img -i\n"
18925 "\n"
18926 msgstr ""
18927
18928 #. type: verbatim
18929 #: ../fish/guestfish.pod:21
18930 #, no-wrap
18931 msgid ""
18932 " guestfish -d libvirt-domain -i\n"
18933 "\n"
18934 msgstr ""
18935
18936 #. type: textblock
18937 #: ../fish/guestfish.pod:25
18938 msgid ""
18939 "Using guestfish in read/write mode on live virtual machines can be "
18940 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18941 "option to use guestfish safely if the disk image or virtual machine might be "
18942 "live."
18943 msgstr ""
18944
18945 #. type: textblock
18946 #: ../fish/guestfish.pod:32
18947 msgid ""
18948 "Guestfish is a shell and command-line tool for examining and modifying "
18949 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18950 "functionality of the guestfs API, see L<guestfs(3)>."
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../fish/guestfish.pod:36
18955 msgid ""
18956 "Guestfish gives you structured access to the libguestfs API, from shell "
18957 "scripts or the command line or interactively.  If you want to rescue a "
18958 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18959 "command."
18960 msgstr ""
18961
18962 #. type: =head2
18963 #: ../fish/guestfish.pod:43
18964 msgid "As an interactive shell"
18965 msgstr ""
18966
18967 #. type: verbatim
18968 #: ../fish/guestfish.pod:45
18969 #, no-wrap
18970 msgid ""
18971 " $ guestfish\n"
18972 " \n"
18973 msgstr ""
18974
18975 #. type: verbatim
18976 #: ../fish/guestfish.pod:47
18977 #, no-wrap
18978 msgid ""
18979 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18980 " editing virtual machine filesystems.\n"
18981 " \n"
18982 msgstr ""
18983
18984 #. type: verbatim
18985 #: ../fish/guestfish.pod:50
18986 #, no-wrap
18987 msgid ""
18988 " Type: 'help' for a list of commands\n"
18989 "       'man' to read the manual\n"
18990 "       'quit' to quit the shell\n"
18991 " \n"
18992 msgstr ""
18993
18994 #. type: verbatim
18995 #: ../fish/guestfish.pod:54
18996 #, no-wrap
18997 msgid ""
18998 " ><fs> add-ro disk.img\n"
18999 " ><fs> run\n"
19000 " ><fs> list-filesystems\n"
19001 " /dev/sda1: ext4\n"
19002 " /dev/vg_guest/lv_root: ext4\n"
19003 " /dev/vg_guest/lv_swap: swap\n"
19004 " ><fs> mount /dev/vg_guest/lv_root /\n"
19005 " ><fs> cat /etc/fstab\n"
19006 " # /etc/fstab\n"
19007 " # Created by anaconda\n"
19008 " [...]\n"
19009 " ><fs> exit\n"
19010 "\n"
19011 msgstr ""
19012
19013 #. type: =head2
19014 #: ../fish/guestfish.pod:67
19015 msgid "From shell scripts"
19016 msgstr ""
19017
19018 #. type: textblock
19019 #: ../fish/guestfish.pod:69
19020 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../fish/guestfish.pod:71
19025 #, no-wrap
19026 msgid ""
19027 " guestfish <<_EOF_\n"
19028 " add disk.img\n"
19029 " run\n"
19030 " mount /dev/vg_guest/lv_root /\n"
19031 " write /etc/motd \"Welcome, new users\"\n"
19032 " _EOF_\n"
19033 "\n"
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:78
19038 msgid "List the LVM logical volumes in a disk image:"
19039 msgstr ""
19040
19041 #. type: verbatim
19042 #: ../fish/guestfish.pod:80
19043 #, no-wrap
19044 msgid ""
19045 " guestfish -a disk.img --ro <<_EOF_\n"
19046 " run\n"
19047 " lvs\n"
19048 " _EOF_\n"
19049 "\n"
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../fish/guestfish.pod:85
19054 msgid "List all the filesystems in a disk image:"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../fish/guestfish.pod:87
19059 #, no-wrap
19060 msgid ""
19061 " guestfish -a disk.img --ro <<_EOF_\n"
19062 " run\n"
19063 " list-filesystems\n"
19064 " _EOF_\n"
19065 "\n"
19066 msgstr ""
19067
19068 #. type: =head2
19069 #: ../fish/guestfish.pod:92
19070 msgid "On one command line"
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19075 msgid "Update C</etc/resolv.conf> in a guest:"
19076 msgstr ""
19077
19078 #. type: verbatim
19079 #: ../fish/guestfish.pod:96
19080 #, no-wrap
19081 msgid ""
19082 " guestfish \\\n"
19083 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19084 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19085 "\n"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:100
19090 msgid "Edit C</boot/grub/grub.conf> interactively:"
19091 msgstr ""
19092
19093 #. type: verbatim
19094 #: ../fish/guestfish.pod:102
19095 #, no-wrap
19096 msgid ""
19097 " guestfish --rw --add disk.img \\\n"
19098 "   --mount /dev/vg_guest/lv_root \\\n"
19099 "   --mount /dev/sda1:/boot \\\n"
19100 "   edit /boot/grub/grub.conf\n"
19101 "\n"
19102 msgstr ""
19103
19104 #. type: =head2
19105 #: ../fish/guestfish.pod:107
19106 msgid "Mount disks automatically"
19107 msgstr ""
19108
19109 #. type: textblock
19110 #: ../fish/guestfish.pod:109
19111 msgid ""
19112 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19113 msgstr ""
19114
19115 #. type: verbatim
19116 #: ../fish/guestfish.pod:112
19117 #, no-wrap
19118 msgid ""
19119 " guestfish --ro -a disk.img -i cat /etc/group\n"
19120 "\n"
19121 msgstr ""
19122
19123 #. type: verbatim
19124 #: ../fish/guestfish.pod:114
19125 #, no-wrap
19126 msgid ""
19127 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19128 "\n"
19129 msgstr ""
19130
19131 #. type: textblock
19132 #: ../fish/guestfish.pod:116
19133 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19134 msgstr ""
19135
19136 #. type: verbatim
19137 #: ../fish/guestfish.pod:118
19138 #, no-wrap
19139 msgid ""
19140 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19141 "\n"
19142 msgstr ""
19143
19144 #. type: =head2
19145 #: ../fish/guestfish.pod:120
19146 msgid "As a script interpreter"
19147 msgstr ""
19148
19149 #. type: textblock
19150 #: ../fish/guestfish.pod:122
19151 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19152 msgstr ""
19153
19154 #. type: verbatim
19155 #: ../fish/guestfish.pod:124
19156 #, no-wrap
19157 msgid ""
19158 " #!/usr/bin/guestfish -f\n"
19159 " sparse test1.img 100M\n"
19160 " run\n"
19161 " part-disk /dev/sda mbr\n"
19162 " mkfs ext2 /dev/sda1\n"
19163 "\n"
19164 msgstr ""
19165
19166 #. type: =head2
19167 #: ../fish/guestfish.pod:130
19168 msgid "Start with a prepared disk"
19169 msgstr ""
19170
19171 #. type: textblock
19172 #: ../fish/guestfish.pod:132
19173 msgid ""
19174 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19175 "single ext2-formatted partition:"
19176 msgstr ""
19177
19178 #. type: verbatim
19179 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
19180 #, no-wrap
19181 msgid ""
19182 " guestfish -N fs\n"
19183 "\n"
19184 msgstr ""
19185
19186 #. type: textblock
19187 #: ../fish/guestfish.pod:137
19188 msgid "To list what is available do:"
19189 msgstr ""
19190
19191 #. type: verbatim
19192 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19193 #, no-wrap
19194 msgid ""
19195 " guestfish -N help | less\n"
19196 "\n"
19197 msgstr ""
19198
19199 #. type: =head2
19200 #: ../fish/guestfish.pod:141
19201 msgid "Remote control"
19202 msgstr "Дистанційне керування"
19203
19204 #. type: verbatim
19205 #: ../fish/guestfish.pod:143
19206 #, no-wrap
19207 msgid ""
19208 " eval \"`guestfish --listen`\"\n"
19209 " guestfish --remote add-ro disk.img\n"
19210 " guestfish --remote run\n"
19211 " guestfish --remote lvs\n"
19212 "\n"
19213 msgstr ""
19214 " eval \"`guestfish --listen`\"\n"
19215 " guestfish --remote add-ro disk.img\n"
19216 " guestfish --remote run\n"
19217 " guestfish --remote lvs\n"
19218 "\n"
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:154
19222 msgid "Displays general help on options."
19223 msgstr ""
19224
19225 #. type: =item
19226 #: ../fish/guestfish.pod:158
19227 msgid "B<--cmd-help>"
19228 msgstr "B<--cmd-help>"
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:160
19232 msgid "Lists all available guestfish commands."
19233 msgstr ""
19234
19235 #. type: =item
19236 #: ../fish/guestfish.pod:162
19237 msgid "B<-h cmd>"
19238 msgstr "B<-h команда>"
19239
19240 #. type: =item
19241 #: ../fish/guestfish.pod:164
19242 msgid "B<--cmd-help cmd>"
19243 msgstr "B<--cmd-help команда>"
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:166
19247 msgid "Displays detailed help on a single command C<cmd>."
19248 msgstr ""
19249
19250 #. type: =item
19251 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19252 msgid "B<-a image>"
19253 msgstr "B<-a образ>"
19254
19255 #. type: =item
19256 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19257 msgid "B<--add image>"
19258 msgstr "B<--add образ>"
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:172
19262 msgid "Add a block device or virtual machine image to the shell."
19263 msgstr ""
19264
19265 #. type: textblock
19266 #: ../fish/guestfish.pod:177
19267 msgid ""
19268 "Using this flag is mostly equivalent to using the C<add> command, with "
19269 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19270 "the I<--format=...> flag was given."
19271 msgstr ""
19272
19273 #. type: textblock
19274 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19275 msgid ""
19276 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19277 "URI to use.  The default is to use the default libvirt connection."
19278 msgstr ""
19279
19280 #. type: =item
19281 #: ../fish/guestfish.pod:189
19282 msgid "B<--csh>"
19283 msgstr "B<--csh>"
19284
19285 #. type: textblock
19286 #: ../fish/guestfish.pod:191
19287 msgid ""
19288 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19289 "section L</REMOTE CONTROL AND CSH> below."
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19294 msgid "B<-d libvirt-domain>"
19295 msgstr "B<-d домен-libvirt>"
19296
19297 #. type: =item
19298 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19299 msgid "B<--domain libvirt-domain>"
19300 msgstr "B<--domain домен-libvirt>"
19301
19302 #. type: textblock
19303 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19304 msgid ""
19305 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19306 "used, then any libvirt domain can be used.  However in write mode, only "
19307 "libvirt domains which are shut down can be named here."
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19312 msgid "Domain UUIDs can be used instead of names."
19313 msgstr ""
19314
19315 #. type: textblock
19316 #: ../fish/guestfish.pod:204
19317 msgid ""
19318 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19319 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19320 "if the I<--format:...> flag was given."
19321 msgstr ""
19322
19323 #. type: =item
19324 #: ../fish/guestfish.pod:208
19325 msgid "B<-D>"
19326 msgstr "B<-D>"
19327
19328 #. type: =item
19329 #: ../fish/guestfish.pod:210
19330 msgid "B<--no-dest-paths>"
19331 msgstr "B<--no-dest-paths>"
19332
19333 #. type: textblock
19334 #: ../fish/guestfish.pod:212
19335 msgid ""
19336 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19337 "to hit the tab key to complete paths on the guest filesystem, but this "
19338 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19339 "allow this feature to be disabled."
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19344 msgid ""
19345 "When prompting for keys and passphrases, guestfish normally turns echoing "
19346 "off so you cannot see what you are typing.  If you are not worried about "
19347 "Tempest attacks and there is no one else in the room you can specify this "
19348 "flag to see what you are typing."
19349 msgstr ""
19350
19351 #. type: =item
19352 #: ../fish/guestfish.pod:224
19353 msgid "B<-f file>"
19354 msgstr "B<-f файл>"
19355
19356 #. type: =item
19357 #: ../fish/guestfish.pod:226
19358 msgid "B<--file file>"
19359 msgstr "B<--file файл>"
19360
19361 #. type: textblock
19362 #: ../fish/guestfish.pod:228
19363 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19364 msgstr ""
19365
19366 #. type: verbatim
19367 #: ../fish/guestfish.pod:231
19368 #, no-wrap
19369 msgid ""
19370 " #!/usr/bin/guestfish -f\n"
19371 "\n"
19372 msgstr ""
19373 " #!/usr/bin/guestfish -f\n"
19374 "\n"
19375
19376 #. type: verbatim
19377 #: ../fish/guestfish.pod:244
19378 #, no-wrap
19379 msgid ""
19380 " guestfish --format=raw -a disk.img\n"
19381 "\n"
19382 msgstr ""
19383 " guestfish --format=raw -a disk.img\n"
19384 "\n"
19385
19386 #. type: verbatim
19387 #: ../fish/guestfish.pod:248
19388 #, no-wrap
19389 msgid ""
19390 " guestfish --format=raw -a disk.img --format -a another.img\n"
19391 "\n"
19392 msgstr ""
19393 " guestfish --format=raw -a disk.img --format -a another.img\n"
19394 "\n"
19395
19396 #. type: textblock
19397 #: ../fish/guestfish.pod:253
19398 msgid ""
19399 "If you have untrusted raw-format guest disk images, you should use this "
19400 "option to specify the disk format.  This avoids a possible security problem "
19401 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19402 msgstr ""
19403
19404 #. type: =item
19405 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19406 msgid "B<--inspector>"
19407 msgstr "B<--inspector>"
19408
19409 #. type: textblock
19410 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19411 msgid ""
19412 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19413 "system and mount filesystems as they would be mounted on the real virtual "
19414 "machine."
19415 msgstr ""
19416
19417 #. type: textblock
19418 #: ../fish/guestfish.pod:266
19419 msgid "Typical usage is either:"
19420 msgstr ""
19421
19422 #. type: verbatim
19423 #: ../fish/guestfish.pod:268
19424 #, no-wrap
19425 msgid ""
19426 " guestfish -d myguest -i\n"
19427 "\n"
19428 msgstr ""
19429 " guestfish -d myguest -i\n"
19430 "\n"
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:270
19434 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19435 msgstr ""
19436
19437 #. type: verbatim
19438 #: ../fish/guestfish.pod:272
19439 #, no-wrap
19440 msgid ""
19441 " guestfish --ro -d myguest -i\n"
19442 "\n"
19443 msgstr ""
19444 " guestfish --ro -d myguest -i\n"
19445 "\n"
19446
19447 #. type: textblock
19448 #: ../fish/guestfish.pod:274
19449 msgid "(for active domains, readonly), or specify the block device directly:"
19450 msgstr ""
19451
19452 #. type: verbatim
19453 #: ../fish/guestfish.pod:276
19454 #, no-wrap
19455 msgid ""
19456 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19457 "\n"
19458 msgstr ""
19459 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19460 "\n"
19461
19462 #. type: textblock
19463 #: ../fish/guestfish.pod:278
19464 msgid ""
19465 "Note that the command line syntax changed slightly over older versions of "
19466 "guestfish.  You can still use the old syntax:"
19467 msgstr ""
19468
19469 #. type: verbatim
19470 #: ../fish/guestfish.pod:281
19471 #, no-wrap
19472 msgid ""
19473 " guestfish [--ro] -i disk.img\n"
19474 "\n"
19475 msgstr ""
19476 " guestfish [--ro] -i disk.img\n"
19477 "\n"
19478
19479 #. type: verbatim
19480 #: ../fish/guestfish.pod:283
19481 #, no-wrap
19482 msgid ""
19483 " guestfish [--ro] -i libvirt-domain\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: textblock
19488 #: ../fish/guestfish.pod:285
19489 msgid ""
19490 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19491 "then using other commands to mount the filesystems that were found."
19492 msgstr ""
19493
19494 #. type: =item
19495 #: ../fish/guestfish.pod:294
19496 msgid "B<--listen>"
19497 msgstr "B<--listen>"
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:296
19501 msgid ""
19502 "Fork into the background and listen for remote commands.  See section L</"
19503 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19504 msgstr ""
19505
19506 #. type: =item
19507 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19508 msgid "B<--live>"
19509 msgstr "B<--live>"
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19513 msgid ""
19514 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19515 "ATTACHING TO RUNNING DAEMONS>)."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19520 msgid "B<-m dev[:mountpoint[:options]]>"
19521 msgstr ""
19522
19523 #. type: =item
19524 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19525 msgid "B<--mount dev[:mountpoint[:options]]>"
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:308
19530 msgid "Mount the named partition or logical volume on the given mountpoint."
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:310
19535 msgid "If the mountpoint is omitted, it defaults to C</>."
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../fish/guestfish.pod:312
19540 msgid "You have to mount something on C</> before most commands will work."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:314
19545 msgid ""
19546 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19547 "launched."
19548 msgstr ""
19549
19550 #. type: textblock
19551 #: ../fish/guestfish.pod:317
19552 msgid ""
19553 "If you don't know what filesystems a disk image contains, you can either run "
19554 "guestfish without this option, then list the partitions, filesystems and LVs "
19555 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19556 "commands), or you can use the L<virt-filesystems(1)> program."
19557 msgstr ""
19558
19559 #. type: textblock
19560 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19561 msgid ""
19562 "The third (and rarely used) part of the mount parameter is the list of mount "
19563 "options used to mount the underlying filesystem.  If this is not given, then "
19564 "the mount options are either the empty string or C<ro> (the latter if the "
19565 "I<--ro> flag is used).  By specifying the mount options, you override this "
19566 "default choice.  Probably the only time you would use this is to enable ACLs "
19567 "and/or extended attributes if the filesystem can support them:"
19568 msgstr ""
19569
19570 #. type: verbatim
19571 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19572 #, no-wrap
19573 msgid ""
19574 " -m /dev/sda1:/:acl,user_xattr\n"
19575 "\n"
19576 msgstr ""
19577
19578 #. type: textblock
19579 #: ../fish/guestfish.pod:333
19580 msgid "Using this flag is equivalent to using the C<mount-options> command."
19581 msgstr ""
19582
19583 #. type: =item
19584 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19585 #: ../resize/virt-resize.pod:358
19586 msgid "B<-n>"
19587 msgstr "B<-n>"
19588
19589 #. type: =item
19590 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19591 msgid "B<--no-sync>"
19592 msgstr "B<--no-sync>"
19593
19594 #. type: textblock
19595 #: ../fish/guestfish.pod:339
19596 msgid ""
19597 "Disable autosync.  This is enabled by default.  See the discussion of "
19598 "autosync in the L<guestfs(3)> manpage."
19599 msgstr ""
19600
19601 #. type: =item
19602 #: ../fish/guestfish.pod:342
19603 msgid "B<-N type>"
19604 msgstr "B<-N тип>"
19605
19606 #. type: =item
19607 #: ../fish/guestfish.pod:344
19608 msgid "B<--new type>"
19609 msgstr "B<--new тип>"
19610
19611 #. type: =item
19612 #: ../fish/guestfish.pod:346
19613 msgid "B<-N help>"
19614 msgstr "B<-N help>"
19615
19616 #. type: textblock
19617 #: ../fish/guestfish.pod:348
19618 msgid ""
19619 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19620 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19621 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19622 "IMAGES> below."
19623 msgstr ""
19624
19625 #. type: =item
19626 #: ../fish/guestfish.pod:353
19627 msgid "B<--progress-bars>"
19628 msgstr "B<--progress-bars>"
19629
19630 #. type: textblock
19631 #: ../fish/guestfish.pod:355
19632 msgid "Enable progress bars, even when guestfish is used non-interactively."
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:357
19637 msgid ""
19638 "Progress bars are enabled by default when guestfish is used as an "
19639 "interactive shell."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:360
19644 msgid "B<--no-progress-bars>"
19645 msgstr "B<--no-progress-bars>"
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:362
19649 msgid "Disable progress bars."
19650 msgstr ""
19651
19652 #. type: =item
19653 #: ../fish/guestfish.pod:364
19654 msgid "B<--remote[=pid]>"
19655 msgstr "B<--remote[=pid]>"
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:366
19659 msgid ""
19660 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19661 "CONTROL GUESTFISH OVER A SOCKET> below."
19662 msgstr ""
19663
19664 #. type: =item
19665 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19666 #: ../rescue/virt-rescue.pod:161
19667 msgid "B<-r>"
19668 msgstr "B<-r>"
19669
19670 #. type: =item
19671 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19672 #: ../rescue/virt-rescue.pod:163
19673 msgid "B<--ro>"
19674 msgstr "B<--ro>"
19675
19676 #. type: textblock
19677 #: ../fish/guestfish.pod:373
19678 msgid ""
19679 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19680 "mounts are done read-only."
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19685 msgid ""
19686 "The option must always be used if the disk image or virtual machine might be "
19687 "running, and is generally recommended in cases where you don't need write "
19688 "access to the disk."
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../fish/guestfish.pod:380
19693 msgid ""
19694 "Note that prepared disk images created with I<-N> are not affected by this "
19695 "option.  Also commands like C<add> are not affected - you have to specify "
19696 "the C<readonly:true> option explicitly if you need it."
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:384
19701 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19702 msgstr ""
19703
19704 #. type: =item
19705 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19706 #: ../rescue/virt-rescue.pod:173
19707 msgid "B<--selinux>"
19708 msgstr "B<--selinux>"
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:388
19712 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/guestfish.pod:394
19717 msgid ""
19718 "Enable very verbose messages.  This is particularly useful if you find a bug."
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish.pod:401
19723 msgid "Display the guestfish / libguestfs version number and exit."
19724 msgstr ""
19725
19726 #. type: =item
19727 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19728 #: ../rescue/virt-rescue.pod:194
19729 msgid "B<-w>"
19730 msgstr "B<-w>"
19731
19732 #. type: =item
19733 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19734 #: ../rescue/virt-rescue.pod:196
19735 msgid "B<--rw>"
19736 msgstr "B<--rw>"
19737
19738 #. type: textblock
19739 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19740 msgid ""
19741 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19742 "mounts are done read-write."
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:410
19747 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fish/guestfish.pod:414
19752 msgid "Echo each command before executing it."
19753 msgstr ""
19754
19755 #. type: =head1
19756 #: ../fish/guestfish.pod:418
19757 msgid "COMMANDS ON COMMAND LINE"
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../fish/guestfish.pod:420
19762 msgid ""
19763 "Any additional (non-option) arguments are treated as commands to execute."
19764 msgstr ""
19765
19766 #. type: textblock
19767 #: ../fish/guestfish.pod:423
19768 msgid ""
19769 "Commands to execute should be separated by a colon (C<:>), where the colon "
19770 "is a separate parameter.  Thus:"
19771 msgstr ""
19772
19773 #. type: verbatim
19774 #: ../fish/guestfish.pod:426
19775 #, no-wrap
19776 msgid ""
19777 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19778 "\n"
19779 msgstr ""
19780
19781 #. type: textblock
19782 #: ../fish/guestfish.pod:428
19783 msgid ""
19784 "If there are no additional arguments, then we enter a shell, either an "
19785 "interactive shell with a prompt (if the input is a terminal) or a non-"
19786 "interactive shell."
19787 msgstr ""
19788
19789 #. type: textblock
19790 #: ../fish/guestfish.pod:432
19791 msgid ""
19792 "In either command line mode or non-interactive shell, the first command that "
19793 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19794 "prompt) if a command fails, you can continue to enter commands."
19795 msgstr ""
19796
19797 #. type: =head1
19798 #: ../fish/guestfish.pod:437
19799 msgid "USING launch (OR run)"
19800 msgstr ""
19801
19802 #. type: textblock
19803 #: ../fish/guestfish.pod:439
19804 msgid ""
19805 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19806 "then launch it, then mount any disks you need, and finally issue actions/"
19807 "commands.  So the general order of the day is:"
19808 msgstr ""
19809
19810 #. type: textblock
19811 #: ../fish/guestfish.pod:447
19812 msgid "add or -a/--add"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/guestfish.pod:451
19817 msgid "launch (aka run)"
19818 msgstr ""
19819
19820 #. type: textblock
19821 #: ../fish/guestfish.pod:455
19822 msgid "mount or -m/--mount"
19823 msgstr ""
19824
19825 #. type: textblock
19826 #: ../fish/guestfish.pod:459
19827 msgid "any other commands"
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish.pod:463
19832 msgid ""
19833 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19834 "guest before mounting or performing any other commands."
19835 msgstr ""
19836
19837 #. type: textblock
19838 #: ../fish/guestfish.pod:466
19839 msgid ""
19840 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19841 "I<--new> options were given then C<run> is done automatically, simply "
19842 "because guestfish can't perform the action you asked for without doing this."
19843 msgstr ""
19844
19845 #. type: =head1
19846 #: ../fish/guestfish.pod:471
19847 msgid "OPENING DISKS FOR READ AND WRITE"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:473
19852 msgid ""
19853 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19854 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19855 "I<-i> and I<-m> open disk images read-only or for writing."
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:478
19860 msgid ""
19861 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19862 "opening disk images supplied on the command line for write.  To open a disk "
19863 "image read-only you have to do I<-a image --ro>."
19864 msgstr ""
19865
19866 #. type: textblock
19867 #: ../fish/guestfish.pod:482
19868 msgid ""
19869 "This matters: If you accidentally open a live VM disk image writable then "
19870 "you will cause irreversible disk corruption."
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../fish/guestfish.pod:485
19875 msgid ""
19876 "In a future libguestfs we intend to change the default the other way.  Disk "
19877 "images will be opened read-only.  You will have to either specify "
19878 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19879 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19880 "access for disk images specified by those other command line options."
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../fish/guestfish.pod:492
19885 msgid ""
19886 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19887 "which does nothing (it is already the default).  However it is highly "
19888 "recommended that you use this option to indicate that you need write access, "
19889 "and prepare your scripts for the day when this option will be required for "
19890 "write access."
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../fish/guestfish.pod:498
19895 msgid ""
19896 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19897 "other libguestfs program apart from guestfish and guestmount."
19898 msgstr ""
19899
19900 #. type: =head1
19901 #: ../fish/guestfish.pod:501
19902 msgid "QUOTING"
19903 msgstr ""
19904
19905 #. type: textblock
19906 #: ../fish/guestfish.pod:503
19907 msgid ""
19908 "You can quote ordinary parameters using either single or double quotes.  For "
19909 "example:"
19910 msgstr ""
19911
19912 #. type: verbatim
19913 #: ../fish/guestfish.pod:506
19914 #, no-wrap
19915 msgid ""
19916 " add \"file with a space.img\"\n"
19917 "\n"
19918 msgstr ""
19919
19920 #. type: verbatim
19921 #: ../fish/guestfish.pod:508
19922 #, no-wrap
19923 msgid ""
19924 " rm '/file name'\n"
19925 "\n"
19926 msgstr ""
19927
19928 #. type: verbatim
19929 #: ../fish/guestfish.pod:510
19930 #, no-wrap
19931 msgid ""
19932 " rm '/\"'\n"
19933 "\n"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:512
19938 msgid ""
19939 "A few commands require a list of strings to be passed.  For these, use a "
19940 "whitespace-separated list, enclosed in quotes.  Strings containing "
19941 "whitespace to be passed through must be enclosed in single quotes.  A "
19942 "literal single quote must be escaped with a backslash."
19943 msgstr ""
19944
19945 #. type: verbatim
19946 #: ../fish/guestfish.pod:517
19947 #, no-wrap
19948 msgid ""
19949 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19950 " command \"/bin/echo 'foo      bar'\"\n"
19951 " command \"/bin/echo \\'foo\\'\"\n"
19952 "\n"
19953 msgstr ""
19954
19955 #. type: =head2
19956 #: ../fish/guestfish.pod:521
19957 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fish/guestfish.pod:523
19962 msgid ""
19963 "In double-quoted arguments (only) use backslash to insert special characters:"
19964 msgstr ""
19965
19966 #. type: =item
19967 #: ../fish/guestfish.pod:528
19968 msgid "C<\\a>"
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:530
19973 msgid "Alert (bell) character."
19974 msgstr ""
19975
19976 #. type: =item
19977 #: ../fish/guestfish.pod:532
19978 msgid "C<\\b>"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:534
19983 msgid "Backspace character."
19984 msgstr ""
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:536
19988 msgid "C<\\f>"
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:538
19993 msgid "Form feed character."
19994 msgstr ""
19995
19996 #. type: =item
19997 #: ../fish/guestfish.pod:540
19998 msgid "C<\\n>"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:542
20003 msgid "Newline character."
20004 msgstr ""
20005
20006 #. type: =item
20007 #: ../fish/guestfish.pod:544
20008 msgid "C<\\r>"
20009 msgstr ""
20010
20011 #. type: textblock
20012 #: ../fish/guestfish.pod:546
20013 msgid "Carriage return character."
20014 msgstr ""
20015
20016 #. type: =item
20017 #: ../fish/guestfish.pod:548
20018 msgid "C<\\t>"
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:550
20023 msgid "Horizontal tab character."
20024 msgstr ""
20025
20026 #. type: =item
20027 #: ../fish/guestfish.pod:552
20028 msgid "C<\\v>"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:554
20033 msgid "Vertical tab character."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../fish/guestfish.pod:556
20038 msgid "C<\\\">"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:558
20043 msgid "A literal double quote character."
20044 msgstr ""
20045
20046 #. type: =item
20047 #: ../fish/guestfish.pod:560
20048 msgid "C<\\ooo>"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:562
20053 msgid ""
20054 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20055 "(unlike C)."
20056 msgstr ""
20057
20058 #. type: =item
20059 #: ../fish/guestfish.pod:565
20060 msgid "C<\\xhh>"
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fish/guestfish.pod:567
20065 msgid ""
20066 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20067 msgstr ""
20068
20069 #. type: textblock
20070 #: ../fish/guestfish.pod:570
20071 msgid ""
20072 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20073 "strings."
20074 msgstr ""
20075
20076 #. type: =item
20077 #: ../fish/guestfish.pod:573
20078 msgid "C<\\\\>"
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../fish/guestfish.pod:575
20083 msgid "A literal backslash character."
20084 msgstr ""
20085
20086 #. type: =head1
20087 #: ../fish/guestfish.pod:579
20088 msgid "OPTIONAL ARGUMENTS"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../fish/guestfish.pod:581
20093 msgid ""
20094 "Some commands take optional arguments.  These arguments appear in this "
20095 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20096 msgstr ""
20097
20098 #. type: verbatim
20099 #: ../fish/guestfish.pod:585
20100 #, no-wrap
20101 msgid ""
20102 " add-drive-opts filename\n"
20103 "\n"
20104 msgstr ""
20105
20106 #. type: verbatim
20107 #: ../fish/guestfish.pod:587
20108 #, no-wrap
20109 msgid ""
20110 " add-drive-opts filename readonly:true\n"
20111 "\n"
20112 msgstr ""
20113
20114 #. type: verbatim
20115 #: ../fish/guestfish.pod:589
20116 #, no-wrap
20117 msgid ""
20118 " add-drive-opts filename format:qcow2 readonly:false\n"
20119 "\n"
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/guestfish.pod:591
20124 msgid ""
20125 "Each optional argument can appear at most once.  All optional arguments must "
20126 "appear after the required ones."
20127 msgstr ""
20128
20129 #. type: =head1
20130 #: ../fish/guestfish.pod:594
20131 msgid "NUMBERS"
20132 msgstr "ЧИСЛА"
20133
20134 #. type: textblock
20135 #: ../fish/guestfish.pod:596
20136 msgid ""
20137 "This section applies to all commands which can take integers as parameters."
20138 msgstr ""
20139
20140 #. type: =head2
20141 #: ../fish/guestfish.pod:599
20142 msgid "SIZE SUFFIX"
20143 msgstr ""
20144
20145 #. type: textblock
20146 #: ../fish/guestfish.pod:601
20147 msgid ""
20148 "When the command takes a parameter measured in bytes, you can use one of the "
20149 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20150 msgstr ""
20151
20152 #. type: =item
20153 #: ../fish/guestfish.pod:607
20154 msgid "B<k> or B<K> or B<KiB>"
20155 msgstr "B<k>, B<K> або B<KiB>"
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:609
20159 msgid "The size in kilobytes (multiplied by 1024)."
20160 msgstr ""
20161
20162 #. type: =item
20163 #: ../fish/guestfish.pod:611
20164 msgid "B<KB>"
20165 msgstr "B<KB>"
20166
20167 #. type: textblock
20168 #: ../fish/guestfish.pod:613
20169 msgid "The size in SI 1000 byte units."
20170 msgstr ""
20171
20172 #. type: =item
20173 #: ../fish/guestfish.pod:615
20174 msgid "B<M> or B<MiB>"
20175 msgstr "B<M> або B<MiB>"
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:617
20179 msgid "The size in megabytes (multiplied by 1048576)."
20180 msgstr ""
20181
20182 #. type: =item
20183 #: ../fish/guestfish.pod:619
20184 msgid "B<MB>"
20185 msgstr "B<MB>"
20186
20187 #. type: textblock
20188 #: ../fish/guestfish.pod:621
20189 msgid "The size in SI 1000000 byte units."
20190 msgstr ""
20191
20192 #. type: =item
20193 #: ../fish/guestfish.pod:623
20194 msgid "B<G> or B<GiB>"
20195 msgstr "B<G> або B<GiB>"
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:625
20199 msgid "The size in gigabytes (multiplied by 2**30)."
20200 msgstr "Розмір у гігабайтах (з множником 2**30)."
20201
20202 #. type: =item
20203 #: ../fish/guestfish.pod:627
20204 msgid "B<GB>"
20205 msgstr "B<GB>"
20206
20207 #. type: textblock
20208 #: ../fish/guestfish.pod:629
20209 msgid "The size in SI 10**9 byte units."
20210 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20211
20212 #. type: =item
20213 #: ../fish/guestfish.pod:631
20214 msgid "B<T> or B<TiB>"
20215 msgstr "B<T> або B<TiB>"
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:633
20219 msgid "The size in terabytes (multiplied by 2**40)."
20220 msgstr "Розмір у терабайтах (з множником 2**40)."
20221
20222 #. type: =item
20223 #: ../fish/guestfish.pod:635
20224 msgid "B<TB>"
20225 msgstr "B<TB>"
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:637
20229 msgid "The size in SI 10**12 byte units."
20230 msgstr ""
20231
20232 #. type: =item
20233 #: ../fish/guestfish.pod:639
20234 msgid "B<P> or B<PiB>"
20235 msgstr "B<P> або B<PiB>"
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:641
20239 msgid "The size in petabytes (multiplied by 2**50)."
20240 msgstr ""
20241
20242 #. type: =item
20243 #: ../fish/guestfish.pod:643
20244 msgid "B<PB>"
20245 msgstr "B<PB>"
20246
20247 #. type: textblock
20248 #: ../fish/guestfish.pod:645
20249 msgid "The size in SI 10**15 byte units."
20250 msgstr ""
20251
20252 #. type: =item
20253 #: ../fish/guestfish.pod:647
20254 msgid "B<E> or B<EiB>"
20255 msgstr "B<E> або B<EiB>"
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:649
20259 msgid "The size in exabytes (multiplied by 2**60)."
20260 msgstr ""
20261
20262 #. type: =item
20263 #: ../fish/guestfish.pod:651
20264 msgid "B<EB>"
20265 msgstr "B<EB>"
20266
20267 #. type: textblock
20268 #: ../fish/guestfish.pod:653
20269 msgid "The size in SI 10**18 byte units."
20270 msgstr ""
20271
20272 #. type: =item
20273 #: ../fish/guestfish.pod:655
20274 msgid "B<Z> or B<ZiB>"
20275 msgstr "B<Z> або B<ZiB>"
20276
20277 #. type: textblock
20278 #: ../fish/guestfish.pod:657
20279 msgid "The size in zettabytes (multiplied by 2**70)."
20280 msgstr ""
20281
20282 #. type: =item
20283 #: ../fish/guestfish.pod:659
20284 msgid "B<ZB>"
20285 msgstr "B<ZB>"
20286
20287 #. type: textblock
20288 #: ../fish/guestfish.pod:661
20289 msgid "The size in SI 10**21 byte units."
20290 msgstr ""
20291
20292 #. type: =item
20293 #: ../fish/guestfish.pod:663
20294 msgid "B<Y> or B<YiB>"
20295 msgstr "B<Y> або B<YiB>"
20296
20297 #. type: textblock
20298 #: ../fish/guestfish.pod:665
20299 msgid "The size in yottabytes (multiplied by 2**80)."
20300 msgstr ""
20301
20302 #. type: =item
20303 #: ../fish/guestfish.pod:667
20304 msgid "B<YB>"
20305 msgstr "B<YB>"
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:669
20309 msgid "The size in SI 10**24 byte units."
20310 msgstr ""
20311
20312 #. type: verbatim
20313 #: ../fish/guestfish.pod:675
20314 #, no-wrap
20315 msgid ""
20316 " truncate-size /file 1G\n"
20317 "\n"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fish/guestfish.pod:677
20322 msgid "would truncate the file to 1 gigabyte."
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../fish/guestfish.pod:679
20327 msgid ""
20328 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20329 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20330 "suffix will probably not do what you expect."
20331 msgstr ""
20332
20333 #. type: =head2
20334 #: ../fish/guestfish.pod:683
20335 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:685
20340 msgid ""
20341 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20342 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20343 msgstr ""
20344
20345 #. type: verbatim
20346 #: ../fish/guestfish.pod:688
20347 #, no-wrap
20348 msgid ""
20349 " 1234      decimal number 1234\n"
20350 " 02322     octal number, equivalent to decimal 1234\n"
20351 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20352 "\n"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:692
20357 msgid ""
20358 "When using the C<chmod> command, you almost always want to specify an octal "
20359 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20360 "L<chmod(1)> program):"
20361 msgstr ""
20362
20363 #. type: verbatim
20364 #: ../fish/guestfish.pod:696
20365 #, no-wrap
20366 msgid ""
20367 " chmod 0777 /public  # OK\n"
20368 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20369 "\n"
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../fish/guestfish.pod:699
20374 msgid ""
20375 "Commands that return numbers usually print them in decimal, but some "
20376 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20377 "octal, preceeded by C<0>)."
20378 msgstr ""
20379
20380 #. type: =head1
20381 #: ../fish/guestfish.pod:703
20382 msgid "WILDCARDS AND GLOBBING"
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:705
20387 msgid ""
20388 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20389 "(globbing) by default.  So for example the following will not do what you "
20390 "expect:"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fish/guestfish.pod:709
20395 #, no-wrap
20396 msgid ""
20397 " rm-rf /home/*\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../fish/guestfish.pod:711
20403 msgid ""
20404 "Assuming you don't have a directory called literally C</home/*> then the "
20405 "above command will return an error."
20406 msgstr ""
20407
20408 #. type: textblock
20409 #: ../fish/guestfish.pod:714
20410 msgid "To perform wildcard expansion, use the C<glob> command."
20411 msgstr ""
20412
20413 #. type: verbatim
20414 #: ../fish/guestfish.pod:716
20415 #, no-wrap
20416 msgid ""
20417 " glob rm-rf /home/*\n"
20418 "\n"
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../fish/guestfish.pod:718
20423 msgid ""
20424 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20425 "many times), equivalent to:"
20426 msgstr ""
20427
20428 #. type: verbatim
20429 #: ../fish/guestfish.pod:721
20430 #, no-wrap
20431 msgid ""
20432 " rm-rf /home/jim\n"
20433 " rm-rf /home/joe\n"
20434 " rm-rf /home/mary\n"
20435 "\n"
20436 msgstr ""
20437
20438 #. type: textblock
20439 #: ../fish/guestfish.pod:725
20440 msgid "C<glob> only works on simple guest paths and not on device names."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fish/guestfish.pod:727
20445 msgid ""
20446 "If you have several parameters, each containing a wildcard, then glob will "
20447 "perform a Cartesian product."
20448 msgstr ""
20449
20450 #. type: =head1
20451 #: ../fish/guestfish.pod:730
20452 msgid "COMMENTS"
20453 msgstr "КОМЕНТАРІ"
20454
20455 #. type: textblock
20456 #: ../fish/guestfish.pod:732
20457 msgid ""
20458 "Any line which starts with a I<#> character is treated as a comment and "
20459 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20460 "a command.  For example:"
20461 msgstr ""
20462
20463 #. type: verbatim
20464 #: ../fish/guestfish.pod:736
20465 #, no-wrap
20466 msgid ""
20467 " # this is a comment\n"
20468 "         # this is a comment\n"
20469 " foo # NOT a comment\n"
20470 "\n"
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../fish/guestfish.pod:740
20475 msgid "Blank lines are also ignored."
20476 msgstr ""
20477
20478 #. type: =head1
20479 #: ../fish/guestfish.pod:742
20480 msgid "RUNNING COMMANDS LOCALLY"
20481 msgstr ""
20482
20483 #. type: textblock
20484 #: ../fish/guestfish.pod:744
20485 msgid ""
20486 "Any line which starts with a I<!> character is treated as a command sent to "
20487 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20488 msgstr ""
20489
20490 #. type: verbatim
20491 #: ../fish/guestfish.pod:748
20492 #, no-wrap
20493 msgid ""
20494 " !mkdir local\n"
20495 " tgz-out /remote local/remote-data.tar.gz\n"
20496 "\n"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fish/guestfish.pod:751
20501 msgid ""
20502 "will create a directory C<local> on the host, and then export the contents "
20503 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20504 "(See C<tgz-out>)."
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../fish/guestfish.pod:755
20509 msgid ""
20510 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20511 "effect, due to the way that subprocesses work in Unix."
20512 msgstr ""
20513
20514 #. type: =head2
20515 #: ../fish/guestfish.pod:758
20516 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20517 msgstr ""
20518
20519 #. type: textblock
20520 #: ../fish/guestfish.pod:760
20521 msgid ""
20522 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20523 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20524 "and executed as guestfish commands."
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../fish/guestfish.pod:764
20529 msgid ""
20530 "Thus you can use shell script to construct arbitrary guestfish commands "
20531 "which are then parsed by guestfish."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/guestfish.pod:767
20536 msgid ""
20537 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20538 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20539 "if we use a shell script to create the guestfish commands for us:"
20540 msgstr ""
20541
20542 #. type: verbatim
20543 #: ../fish/guestfish.pod:772
20544 #, no-wrap
20545 msgid ""
20546 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20547 "\n"
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:774
20552 msgid "or with names like C</foo.001>:"
20553 msgstr ""
20554
20555 #. type: verbatim
20556 #: ../fish/guestfish.pod:776
20557 #, no-wrap
20558 msgid ""
20559 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20560 "\n"
20561 msgstr ""
20562
20563 #. type: textblock
20564 #: ../fish/guestfish.pod:778
20565 msgid ""
20566 "When using guestfish interactively it can be helpful to just run the shell "
20567 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20568 "ordinary I<!> local command), see what guestfish commands it would run, and "
20569 "when you are happy with those prepend the C<E<lt>> character to run the "
20570 "guestfish commands for real."
20571 msgstr ""
20572
20573 #. type: =head1
20574 #: ../fish/guestfish.pod:784
20575 msgid "PIPES"
20576 msgstr "КАНАЛИ"
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:786
20580 msgid ""
20581 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20582 "command (a guestfish command) to the second command (any host command).  For "
20583 "example:"
20584 msgstr ""
20585
20586 #. type: verbatim
20587 #: ../fish/guestfish.pod:790
20588 #, no-wrap
20589 msgid ""
20590 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20591 "\n"
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../fish/guestfish.pod:792
20596 msgid ""
20597 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20598 "program).  The above command would list all accounts in the guest filesystem "
20599 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20600 msgstr ""
20601
20602 #. type: verbatim
20603 #: ../fish/guestfish.pod:797
20604 #, no-wrap
20605 msgid ""
20606 " hexdump /bin/ls | head\n"
20607 " list-devices | tail -1\n"
20608 " tgz-out / - | tar ztf -\n"
20609 "\n"
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:801
20614 msgid ""
20615 "The space before the pipe symbol is required, any space after the pipe "
20616 "symbol is optional.  Everything after the pipe symbol is just passed "
20617 "straight to the host shell, so it can contain redirections, globs and "
20618 "anything else that makes sense on the host side."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../fish/guestfish.pod:806
20623 msgid ""
20624 "To use a literal argument which begins with a pipe symbol, you have to quote "
20625 "it, eg:"
20626 msgstr ""
20627
20628 #. type: verbatim
20629 #: ../fish/guestfish.pod:809
20630 #, no-wrap
20631 msgid ""
20632 " echo \"|\"\n"
20633 "\n"
20634 msgstr ""
20635
20636 #. type: =head1
20637 #: ../fish/guestfish.pod:811
20638 msgid "HOME DIRECTORIES"
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../fish/guestfish.pod:813
20643 msgid ""
20644 "If a parameter starts with the character C<~> then the tilde may be expanded "
20645 "as a home directory path (either C<~> for the current user's home directory, "
20646 "or C<~user> for another user)."
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../fish/guestfish.pod:817
20651 msgid ""
20652 "Note that home directory expansion happens for users known I<on the host>, "
20653 "not in the guest filesystem."
20654 msgstr ""
20655
20656 #. type: textblock
20657 #: ../fish/guestfish.pod:820
20658 msgid ""
20659 "To use a literal argument which begins with a tilde, you have to quote it, "
20660 "eg:"
20661 msgstr ""
20662
20663 #. type: verbatim
20664 #: ../fish/guestfish.pod:823
20665 #, no-wrap
20666 msgid ""
20667 " echo \"~\"\n"
20668 "\n"
20669 msgstr ""
20670
20671 #. type: =head2
20672 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20673 msgid "ENCRYPTED DISKS"
20674 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20675
20676 #. type: textblock
20677 #: ../fish/guestfish.pod:827
20678 msgid ""
20679 "Libguestfs has some support for Linux guests encrypted according to the "
20680 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20681 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20682 "LUKS is supported."
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../fish/guestfish.pod:832
20687 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20688 msgstr ""
20689
20690 #. type: verbatim
20691 #: ../fish/guestfish.pod:834
20692 #, no-wrap
20693 msgid ""
20694 " ><fs> vfs-type /dev/sda2\n"
20695 " crypto_LUKS\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: textblock
20700 #: ../fish/guestfish.pod:837
20701 msgid ""
20702 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20703 "device called C</dev/mapper/luksdev>."
20704 msgstr ""
20705
20706 #. type: verbatim
20707 #: ../fish/guestfish.pod:840
20708 #, no-wrap
20709 msgid ""
20710 " ><fs> luks-open /dev/sda2 luksdev\n"
20711 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20712 "\n"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../fish/guestfish.pod:843
20717 msgid ""
20718 "Finally you have to tell LVM to scan for volume groups on the newly created "
20719 "mapper device:"
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../fish/guestfish.pod:846
20724 #, no-wrap
20725 msgid ""
20726 " vgscan\n"
20727 " vg-activate-all true\n"
20728 "\n"
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../fish/guestfish.pod:849
20733 msgid "The logical volume(s) can now be mounted in the usual way."
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../fish/guestfish.pod:851
20738 msgid ""
20739 "Before closing a LUKS device you must unmount any logical volumes on it and "
20740 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20741 "one.  Then you can close the mapper device:"
20742 msgstr ""
20743
20744 #. type: verbatim
20745 #: ../fish/guestfish.pod:855
20746 #, no-wrap
20747 msgid ""
20748 " vg-activate false /dev/VG\n"
20749 " luks-close /dev/mapper/luksdev\n"
20750 "\n"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../fish/guestfish.pod:860
20755 msgid ""
20756 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20757 "letters and paths (with some limitations).  The following commands are "
20758 "equivalent:"
20759 msgstr ""
20760
20761 #. type: verbatim
20762 #: ../fish/guestfish.pod:864
20763 #, no-wrap
20764 msgid ""
20765 " file /WINDOWS/system32/config/system.LOG\n"
20766 "\n"
20767 msgstr ""
20768
20769 #. type: verbatim
20770 #: ../fish/guestfish.pod:866
20771 #, no-wrap
20772 msgid ""
20773 " file win:\\windows\\system32\\config\\system.log\n"
20774 "\n"
20775 msgstr ""
20776
20777 #. type: verbatim
20778 #: ../fish/guestfish.pod:868
20779 #, no-wrap
20780 msgid ""
20781 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20782 "\n"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:870
20787 msgid ""
20788 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20789 "where the drive is mounted, prepending that to the path, changing all "
20790 "backslash characters to forward slash, then resolving the result using L</"
20791 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20792 "the parameter might be rewritten like this:"
20793 msgstr ""
20794
20795 #. type: verbatim
20796 #: ../fish/guestfish.pod:876
20797 #, no-wrap
20798 msgid ""
20799 " win:e:\\foo\\bar => /e/FOO/bar\n"
20800 "\n"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../fish/guestfish.pod:878
20805 msgid "This only works in argument positions that expect a path."
20806 msgstr ""
20807
20808 #. type: =head1
20809 #: ../fish/guestfish.pod:880
20810 msgid "UPLOADING AND DOWNLOADING FILES"
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:882
20815 msgid ""
20816 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20817 "others which upload from or download to a local file, you can use the "
20818 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20819 msgstr ""
20820
20821 #. type: verbatim
20822 #: ../fish/guestfish.pod:886
20823 #, no-wrap
20824 msgid ""
20825 " upload - /foo\n"
20826 "\n"
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../fish/guestfish.pod:888
20831 msgid ""
20832 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20833 msgstr ""
20834
20835 #. type: verbatim
20836 #: ../fish/guestfish.pod:891
20837 #, no-wrap
20838 msgid ""
20839 " tar-out /etc - | tar tf -\n"
20840 "\n"
20841 msgstr ""
20842
20843 #. type: textblock
20844 #: ../fish/guestfish.pod:893
20845 msgid ""
20846 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20847 "command (see L</PIPES>)."
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:896
20852 msgid ""
20853 "When using C<-> to read from stdin, the input is read up to the end of "
20854 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20855 "some arbitrary end marker:"
20856 msgstr ""
20857
20858 #. type: verbatim
20859 #: ../fish/guestfish.pod:900
20860 #, no-wrap
20861 msgid ""
20862 " upload -<<END /foo\n"
20863 " input line 1\n"
20864 " input line 2\n"
20865 " input line 3\n"
20866 " END\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../fish/guestfish.pod:906
20872 msgid ""
20873 "Any string of characters can be used instead of C<END>.  The end marker must "
20874 "appear on a line of its own, without any preceeding or following characters "
20875 "(not even spaces)."
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../fish/guestfish.pod:910
20880 msgid ""
20881 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20882 "upload local files (so-called \"FileIn\" parameters in the generator)."
20883 msgstr ""
20884
20885 #. type: =head1
20886 #: ../fish/guestfish.pod:913
20887 msgid "EXIT ON ERROR BEHAVIOUR"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../fish/guestfish.pod:915
20892 msgid ""
20893 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20894 "taking commands from a human over a tty), and will exit on the first error "
20895 "in non-interactive mode (scripts, commands given on the command line)."
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../fish/guestfish.pod:920
20900 msgid ""
20901 "If you prefix a command with a I<-> character, then that command will not "
20902 "cause guestfish to exit, even if that (one) command returns an error."
20903 msgstr ""
20904
20905 #. type: =head1
20906 #: ../fish/guestfish.pod:924
20907 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:926
20912 msgid ""
20913 "Guestfish can be remote-controlled over a socket.  This is useful "
20914 "particularly in shell scripts where you want to make several different "
20915 "changes to a filesystem, but you don't want the overhead of starting up a "
20916 "guestfish process each time."
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:931
20921 msgid "Start a guestfish server process using:"
20922 msgstr ""
20923
20924 #. type: verbatim
20925 #: ../fish/guestfish.pod:933
20926 #, no-wrap
20927 msgid ""
20928 " eval \"`guestfish --listen`\"\n"
20929 "\n"
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fish/guestfish.pod:935
20934 msgid "and then send it commands by doing:"
20935 msgstr ""
20936
20937 #. type: verbatim
20938 #: ../fish/guestfish.pod:937
20939 #, no-wrap
20940 msgid ""
20941 " guestfish --remote cmd [...]\n"
20942 "\n"
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fish/guestfish.pod:939
20947 msgid "To cause the server to exit, send it the exit command:"
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../fish/guestfish.pod:943
20952 msgid ""
20953 "Note that the server will normally exit if there is an error in a command.  "
20954 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20955 "BEHAVIOUR>."
20956 msgstr ""
20957
20958 #. type: =head2
20959 #: ../fish/guestfish.pod:947
20960 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20961 msgstr ""
20962
20963 #. type: textblock
20964 #: ../fish/guestfish.pod:949
20965 msgid ""
20966 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20967 "is how the I<--remote> option knows where to send the commands.  You can "
20968 "have several guestfish listener processes running using:"
20969 msgstr ""
20970
20971 #. type: verbatim
20972 #: ../fish/guestfish.pod:953
20973 #, no-wrap
20974 msgid ""
20975 " eval \"`guestfish --listen`\"\n"
20976 " pid1=$GUESTFISH_PID\n"
20977 " eval \"`guestfish --listen`\"\n"
20978 " pid2=$GUESTFISH_PID\n"
20979 " ...\n"
20980 " guestfish --remote=$pid1 cmd\n"
20981 " guestfish --remote=$pid2 cmd\n"
20982 "\n"
20983 msgstr ""
20984
20985 #. type: =head2
20986 #: ../fish/guestfish.pod:961
20987 msgid "REMOTE CONTROL AND CSH"
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fish/guestfish.pod:963
20992 msgid ""
20993 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20994 "option:"
20995 msgstr ""
20996
20997 #. type: verbatim
20998 #: ../fish/guestfish.pod:966
20999 #, no-wrap
21000 msgid ""
21001 " eval \"`guestfish --listen --csh`\"\n"
21002 "\n"
21003 msgstr ""
21004
21005 #. type: =head2
21006 #: ../fish/guestfish.pod:968
21007 msgid "REMOTE CONTROL DETAILS"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:970
21012 msgid ""
21013 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21014 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21015 "and C<$PID> is the process ID of the server."
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../fish/guestfish.pod:974
21020 msgid "Guestfish client and server versions must match exactly."
21021 msgstr ""
21022
21023 #. type: =head2
21024 #: ../fish/guestfish.pod:976
21025 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/guestfish.pod:978
21030 msgid ""
21031 "From Bash, you can use the following code which creates a guestfish "
21032 "instance, correctly quotes the command line, handles failure to start, and "
21033 "cleans up guestfish when the script exits:"
21034 msgstr ""
21035
21036 #. type: verbatim
21037 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
21038 #, fuzzy, no-wrap
21039 #| msgid ""
21040 #| " #!/usr/bin/guestfish -f\n"
21041 #| "\n"
21042 msgid ""
21043 " #!/bin/bash -\n"
21044 " \n"
21045 msgstr ""
21046 " #!/usr/bin/guestfish -f\n"
21047 "\n"
21048
21049 #. type: verbatim
21050 #: ../fish/guestfish.pod:986
21051 #, no-wrap
21052 msgid ""
21053 " guestfish[0]=\"guestfish\"\n"
21054 " guestfish[1]=\"--listen\"\n"
21055 " guestfish[2]=\"--ro\"\n"
21056 " guestfish[3]=\"-a\"\n"
21057 " guestfish[4]=\"disk.img\"\n"
21058 " \n"
21059 msgstr ""
21060
21061 #. type: verbatim
21062 #: ../fish/guestfish.pod:992
21063 #, no-wrap
21064 msgid ""
21065 " GUESTFISH_PID=\n"
21066 " eval $(\"${guestfish[@]}\")\n"
21067 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21068 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21069 "     exit 1\n"
21070 " fi\n"
21071 " \n"
21072 msgstr ""
21073
21074 #. type: verbatim
21075 #: ../fish/guestfish.pod:999
21076 #, no-wrap
21077 msgid ""
21078 " cleanup_guestfish ()\n"
21079 " {\n"
21080 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21081 " }\n"
21082 " trap cleanup_guestfish EXIT ERR\n"
21083 " \n"
21084 msgstr ""
21085
21086 #. type: verbatim
21087 #: ../fish/guestfish.pod:1005
21088 #, fuzzy, no-wrap
21089 #| msgid ""
21090 #| " guestfish --ro -d myguest -i\n"
21091 #| "\n"
21092 msgid ""
21093 " guestfish --remote -- run\n"
21094 " \n"
21095 msgstr ""
21096 " guestfish --ro -d myguest -i\n"
21097 "\n"
21098
21099 #. type: verbatim
21100 #: ../fish/guestfish.pod:1007
21101 #, no-wrap
21102 msgid ""
21103 " # ...\n"
21104 "\n"
21105 msgstr ""
21106
21107 #. type: =head2
21108 #: ../fish/guestfish.pod:1009
21109 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../fish/guestfish.pod:1011
21114 msgid ""
21115 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21116 "context hangs, ie. don't do (note the backquotes):"
21117 msgstr ""
21118
21119 #. type: verbatim
21120 #: ../fish/guestfish.pod:1014
21121 #, fuzzy, no-wrap
21122 #| msgid ""
21123 #| " guestfish --ro -d myguest -i\n"
21124 #| "\n"
21125 msgid ""
21126 " a=`guestfish --remote run`\n"
21127 "\n"
21128 msgstr ""
21129 " guestfish --ro -d myguest -i\n"
21130 "\n"
21131
21132 #. type: textblock
21133 #: ../fish/guestfish.pod:1016
21134 msgid ""
21135 "Since the C<run> command produces no output on stdout, this is not useful "
21136 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21137 "cgi?id=592910>."
21138 msgstr ""
21139
21140 #. type: =head1
21141 #: ../fish/guestfish.pod:1020
21142 msgid "PREPARED DISK IMAGES"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:1022
21147 msgid ""
21148 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21149 "preformatted disk images that guestfish can make for you to save typing.  "
21150 "This is particularly useful for testing purposes.  This option is used "
21151 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21152 "can be mixed with I<-a>)."
21153 msgstr ""
21154
21155 #. type: textblock
21156 #: ../fish/guestfish.pod:1028
21157 msgid ""
21158 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21159 "the second and so on.  Existing files in the current directory are "
21160 "I<overwritten>."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:1032
21165 msgid ""
21166 "The type briefly describes how the disk should be sized, partitioned, how "
21167 "filesystem(s) should be created, and how content should be added.  "
21168 "Optionally the type can be followed by extra parameters, separated by C<:> "
21169 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21170 "allocated disk, containing a single partition, with the partition formatted "
21171 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21172 "disk instead."
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:1040
21177 msgid "To list the available types and any extra parameters they take, run:"
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../fish/guestfish.pod:1044
21182 msgid ""
21183 "Note that the prepared filesystem is not mounted.  You would usually have to "
21184 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:1048
21189 msgid ""
21190 "If any I<-N> or I<--new> options are given, the guest is automatically "
21191 "launched."
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../fish/guestfish.pod:1053
21196 msgid "Create a 100MB disk with an ext4-formatted partition:"
21197 msgstr ""
21198
21199 #. type: verbatim
21200 #: ../fish/guestfish.pod:1055
21201 #, no-wrap
21202 msgid ""
21203 " guestfish -N fs:ext4\n"
21204 "\n"
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../fish/guestfish.pod:1057
21209 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21210 msgstr ""
21211
21212 #. type: verbatim
21213 #: ../fish/guestfish.pod:1059
21214 #, no-wrap
21215 msgid ""
21216 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21217 "\n"
21218 msgstr ""
21219
21220 #. type: textblock
21221 #: ../fish/guestfish.pod:1061
21222 msgid "Create a blank 200MB disk:"
21223 msgstr ""
21224
21225 #. type: verbatim
21226 #: ../fish/guestfish.pod:1063
21227 #, no-wrap
21228 msgid ""
21229 " guestfish -N disk:200M\n"
21230 "\n"
21231 msgstr ""
21232
21233 #. type: =head1
21234 #: ../fish/guestfish.pod:1065
21235 msgid "PROGRESS BARS"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../fish/guestfish.pod:1067
21240 msgid ""
21241 "Some (not all) long-running commands send progress notification messages as "
21242 "they are running.  Guestfish turns these messages into progress bars."
21243 msgstr ""
21244
21245 #. type: textblock
21246 #: ../fish/guestfish.pod:1071
21247 msgid ""
21248 "When a command that supports progress bars takes longer than two seconds to "
21249 "run, and if progress bars are enabled, then you will see one appearing below "
21250 "the command:"
21251 msgstr ""
21252
21253 #. type: verbatim
21254 #: ../fish/guestfish.pod:1075
21255 #, no-wrap
21256 msgid ""
21257 " ><fs> copy-size /large-file /another-file 2048M\n"
21258 " / 10% [#####-----------------------------------------] 00:30\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../fish/guestfish.pod:1078
21264 msgid ""
21265 "The spinner on the left hand side moves round once for every progress "
21266 "notification received from the backend.  This is a (reasonably) golden "
21267 "assurance that the command is \"doing something\" even if the progress bar "
21268 "is not moving, because the command is able to send the progress "
21269 "notifications.  When the bar reaches 100% and the command finishes, the "
21270 "spinner disappears."
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../fish/guestfish.pod:1085
21275 msgid ""
21276 "Progress bars are enabled by default when guestfish is used interactively.  "
21277 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21278 "and you can disable them completely using I<--no-progress-bars>."
21279 msgstr ""
21280
21281 #. type: =head1
21282 #: ../fish/guestfish.pod:1090
21283 msgid "GUESTFISH COMMANDS"
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../fish/guestfish.pod:1092
21288 msgid ""
21289 "The commands in this section are guestfish convenience commands, in other "
21290 "words, they are not part of the L<guestfs(3)> API."
21291 msgstr ""
21292
21293 #. type: =head2
21294 #: ../fish/guestfish.pod:1095
21295 msgid "help"
21296 msgstr "help"
21297
21298 #. type: verbatim
21299 #: ../fish/guestfish.pod:1097
21300 #, no-wrap
21301 msgid ""
21302 " help\n"
21303 " help cmd\n"
21304 "\n"
21305 msgstr ""
21306 " help\n"
21307 " help команда\n"
21308 "\n"
21309
21310 #. type: textblock
21311 #: ../fish/guestfish.pod:1100
21312 msgid "Without any parameter, this provides general help."
21313 msgstr "Без параметра показує загальну довідкову інформацію."
21314
21315 #. type: textblock
21316 #: ../fish/guestfish.pod:1102
21317 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21318 msgstr ""
21319
21320 #. type: =head2
21321 #: ../fish/guestfish.pod:1104
21322 msgid "quit | exit"
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../fish/guestfish.pod:1106
21327 msgid "This exits guestfish.  You can also use C<^D> key."
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../fish/guestfish.pod:1108
21332 msgid "@FISH_COMMANDS@"
21333 msgstr ""
21334
21335 #. type: =head1
21336 #: ../fish/guestfish.pod:1110
21337 msgid "COMMANDS"
21338 msgstr "КОМАНДИ"
21339
21340 #. type: textblock
21341 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
21342 msgid "@ACTIONS@"
21343 msgstr "@ACTIONS@"
21344
21345 #. type: textblock
21346 #: ../fish/guestfish.pod:1116
21347 msgid ""
21348 "guestfish returns 0 if the commands completed without error, or 1 if there "
21349 "was an error."
21350 msgstr ""
21351
21352 #. type: =item
21353 #: ../fish/guestfish.pod:1123
21354 msgid "EDITOR"
21355 msgstr "РЕДАКТОР"
21356
21357 #. type: textblock
21358 #: ../fish/guestfish.pod:1125
21359 msgid ""
21360 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21361 "C<vi>."
21362 msgstr ""
21363
21364 #. type: =item
21365 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
21366 msgid "FEBOOTSTRAP_KERNEL"
21367 msgstr ""
21368
21369 #. type: =item
21370 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
21371 msgid "FEBOOTSTRAP_MODULES"
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
21376 msgid ""
21377 "These two environment variables allow the kernel that libguestfs uses in the "
21378 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21379 "most recent host kernel is chosen.  For more information about kernel "
21380 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21381 "available in febootstrap E<ge> 3.8."
21382 msgstr ""
21383
21384 #. type: =item
21385 #: ../fish/guestfish.pod:1138
21386 msgid "GUESTFISH_DISPLAY_IMAGE"
21387 msgstr ""
21388
21389 #. type: textblock
21390 #: ../fish/guestfish.pod:1140
21391 msgid ""
21392 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21393 "If not set, it uses L<display(1)>."
21394 msgstr ""
21395
21396 #. type: =item
21397 #: ../fish/guestfish.pod:1143
21398 msgid "GUESTFISH_PID"
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../fish/guestfish.pod:1145
21403 msgid ""
21404 "Used with the I<--remote> option to specify the remote guestfish process to "
21405 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21406 msgstr ""
21407
21408 #. type: =item
21409 #: ../fish/guestfish.pod:1149
21410 msgid "HEXEDITOR"
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:1151
21415 msgid ""
21416 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21417 "not specified, the external L<hexedit(1)> program is used."
21418 msgstr ""
21419
21420 #. type: =item
21421 #: ../fish/guestfish.pod:1155
21422 msgid "HOME"
21423 msgstr "ДОМІВКА"
21424
21425 #. type: textblock
21426 #: ../fish/guestfish.pod:1157
21427 msgid ""
21428 "If compiled with GNU readline support, various files in the home directory "
21429 "can be used.  See L</FILES>."
21430 msgstr ""
21431
21432 #. type: =item
21433 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
21434 msgid "LIBGUESTFS_APPEND"
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
21439 msgid "Pass additional options to the guest kernel."
21440 msgstr ""
21441
21442 #. type: =item
21443 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
21444 msgid "LIBGUESTFS_DEBUG"
21445 msgstr "LIBGUESTFS_DEBUG"
21446
21447 #. type: textblock
21448 #: ../fish/guestfish.pod:1166
21449 msgid ""
21450 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21451 "effect as using the B<-v> option."
21452 msgstr ""
21453
21454 #. type: =item
21455 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
21456 msgid "LIBGUESTFS_MEMSIZE"
21457 msgstr "LIBGUESTFS_MEMSIZE"
21458
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
21461 msgid ""
21462 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21463 msgstr ""
21464
21465 #. type: verbatim
21466 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
21467 #, no-wrap
21468 msgid ""
21469 " LIBGUESTFS_MEMSIZE=700\n"
21470 "\n"
21471 msgstr ""
21472 " LIBGUESTFS_MEMSIZE=700\n"
21473 "\n"
21474
21475 #. type: =item
21476 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
21477 msgid "LIBGUESTFS_PATH"
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../fish/guestfish.pod:1178
21482 msgid ""
21483 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21484 "the discussion of paths in L<guestfs(3)>."
21485 msgstr ""
21486
21487 #. type: =item
21488 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
21489 msgid "LIBGUESTFS_QEMU"
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21494 msgid ""
21495 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21496 "which was found at compile time by the configure script is used."
21497 msgstr ""
21498
21499 #. type: =item
21500 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21501 msgid "LIBGUESTFS_TRACE"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fish/guestfish.pod:1189
21506 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21507 msgstr ""
21508
21509 #. type: =item
21510 #: ../fish/guestfish.pod:1191
21511 msgid "PAGER"
21512 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21513
21514 #. type: textblock
21515 #: ../fish/guestfish.pod:1193
21516 msgid ""
21517 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21518 "C<more>."
21519 msgstr ""
21520
21521 #. type: =item
21522 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21523 #: ../src/guestfs.pod:3242
21524 msgid "TMPDIR"
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21529 msgid ""
21530 "Location of temporary directory, defaults to C</tmp> except for the cached "
21531 "supermin appliance which defaults to C</var/tmp>."
21532 msgstr ""
21533
21534 #. type: textblock
21535 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21536 msgid ""
21537 "If libguestfs was compiled to use the supermin appliance then the real "
21538 "appliance is cached in this directory, shared between all handles belonging "
21539 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21540 "use in case C</var/tmp> is not large enough."
21541 msgstr ""
21542
21543 #. type: =head1
21544 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21545 #: ../rescue/virt-rescue.pod:273
21546 msgid "FILES"
21547 msgstr "ФАЙЛИ"
21548
21549 #. type: =item
21550 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21551 #: ../rescue/virt-rescue.pod:277
21552 msgid "$HOME/.libguestfs-tools.rc"
21553 msgstr ""
21554
21555 #. type: =item
21556 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21557 #: ../rescue/virt-rescue.pod:279
21558 msgid "/etc/libguestfs-tools.conf"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21563 #: ../rescue/virt-rescue.pod:281
21564 msgid ""
21565 "This configuration file controls the default read-only or read-write mode "
21566 "(I<--ro> or I<--rw>)."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/guestfish.pod:1220
21571 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21572 msgstr ""
21573
21574 #. type: =item
21575 #: ../fish/guestfish.pod:1222
21576 msgid "$HOME/.guestfish"
21577 msgstr ""
21578
21579 #. type: textblock
21580 #: ../fish/guestfish.pod:1224
21581 msgid ""
21582 "If compiled with GNU readline support, then the command history is saved in "
21583 "this file."
21584 msgstr ""
21585
21586 #. type: =item
21587 #: ../fish/guestfish.pod:1227
21588 msgid "$HOME/.inputrc"
21589 msgstr ""
21590
21591 #. type: =item
21592 #: ../fish/guestfish.pod:1229
21593 msgid "/etc/inputrc"
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:1231
21598 msgid ""
21599 "If compiled with GNU readline support, then these files can be used to "
21600 "configure readline.  For further information, please see L<readline(3)/"
21601 "INITIALIZATION FILE>."
21602 msgstr ""
21603
21604 #. type: textblock
21605 #: ../fish/guestfish.pod:1235
21606 msgid "To write rules which only apply to guestfish, use:"
21607 msgstr ""
21608
21609 #. type: verbatim
21610 #: ../fish/guestfish.pod:1237
21611 #, no-wrap
21612 msgid ""
21613 " $if guestfish\n"
21614 " ...\n"
21615 " $endif\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../fish/guestfish.pod:1241
21621 msgid ""
21622 "Variables that you can set in inputrc that change the behaviour of guestfish "
21623 "in useful ways include:"
21624 msgstr ""
21625
21626 #. type: =item
21627 #: ../fish/guestfish.pod:1246
21628 msgid "completion-ignore-case (default: on)"
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../fish/guestfish.pod:1248
21633 msgid ""
21634 "By default, guestfish will ignore case when tab-completing paths on the "
21635 "disk.  Use:"
21636 msgstr ""
21637
21638 #. type: verbatim
21639 #: ../fish/guestfish.pod:1251
21640 #, no-wrap
21641 msgid ""
21642 " set completion-ignore-case off\n"
21643 "\n"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../fish/guestfish.pod:1253
21648 msgid "to make guestfish case sensitive."
21649 msgstr ""
21650
21651 #. type: =item
21652 #: ../fish/guestfish.pod:1257
21653 msgid "test1.img"
21654 msgstr ""
21655
21656 #. type: =item
21657 #: ../fish/guestfish.pod:1259
21658 msgid "test2.img (etc)"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../fish/guestfish.pod:1261
21663 msgid ""
21664 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21665 "will be created in the file C<test1.img> in the current directory.  The "
21666 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21667 "the same name will be overwritten."
21668 msgstr ""
21669
21670 #. type: textblock
21671 #: ../fish/guestfish.pod:1270
21672 msgid ""
21673 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21674 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21675 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21676 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21677 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21678 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21679 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21684 #: ../test-tool/libguestfs-test-tool.pod:112
21685 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/virt-copy-in.pod:5
21690 msgid ""
21691 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21692 msgstr ""
21693
21694 #. type: verbatim
21695 #: ../fish/virt-copy-in.pod:9
21696 #, no-wrap
21697 msgid ""
21698 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21699 "\n"
21700 msgstr ""
21701
21702 #. type: verbatim
21703 #: ../fish/virt-copy-in.pod:11
21704 #, no-wrap
21705 msgid ""
21706 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21707 "\n"
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../fish/virt-copy-in.pod:15
21712 msgid ""
21713 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21714 "causing disk corruption.  The virtual machine must be shut down before you "
21715 "use this command."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../fish/virt-copy-in.pod:21
21720 msgid ""
21721 "C<virt-copy-in> copies files and directories from the local disk into a "
21722 "virtual machine disk image or named libvirt domain."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/virt-copy-in.pod:24
21727 msgid ""
21728 "You can give one of more filenames and directories on the command line.  "
21729 "Directories are copied in recursively.  The final parameter must be the "
21730 "destination directory in the disk image which must be an absolute path "
21731 "starting with a C</> character."
21732 msgstr ""
21733
21734 #. type: verbatim
21735 #: ../fish/virt-copy-in.pod:33
21736 #, no-wrap
21737 msgid ""
21738 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21739 "\n"
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21744 msgid "Upload a home directory to a guest:"
21745 msgstr ""
21746
21747 #. type: verbatim
21748 #: ../fish/virt-copy-in.pod:37
21749 #, no-wrap
21750 msgid ""
21751 " virt-copy-in -d MyGuest skel /home\n"
21752 "\n"
21753 msgstr ""
21754
21755 #. type: =head1
21756 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21757 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21758 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../fish/virt-copy-in.pod:41
21763 msgid ""
21764 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21765 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21766 "are probably better off using guestfish directly."
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21771 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21772 msgid ""
21773 "Since the shell script just passes options straight to guestfish, read "
21774 "L<guestfish(1)> to see the full list of options."
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../fish/virt-copy-in.pod:52
21779 #, fuzzy
21780 #| msgid ""
21781 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21782 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21783 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21784 #| "libguestfs.org/>."
21785 msgid ""
21786 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21787 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21788 msgstr ""
21789 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21790 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21791 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21792 "org/>."
21793
21794 #. type: textblock
21795 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21796 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21797 #, fuzzy
21798 #| msgid "Copyright (C) 2009 Red Hat Inc."
21799 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21800 msgstr "© Red Hat Inc., 2009"
21801
21802 #. type: textblock
21803 #: ../fish/virt-copy-out.pod:5
21804 msgid ""
21805 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21806 "image."
21807 msgstr ""
21808
21809 #. type: verbatim
21810 #: ../fish/virt-copy-out.pod:9
21811 #, no-wrap
21812 msgid ""
21813 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21814 "\n"
21815 msgstr ""
21816
21817 #. type: verbatim
21818 #: ../fish/virt-copy-out.pod:11
21819 #, no-wrap
21820 msgid ""
21821 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21822 "\n"
21823 msgstr ""
21824
21825 #. type: textblock
21826 #: ../fish/virt-copy-out.pod:15
21827 msgid ""
21828 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21829 "image or named libvirt domain."
21830 msgstr ""
21831
21832 #. type: textblock
21833 #: ../fish/virt-copy-out.pod:18
21834 msgid ""
21835 "You can give one of more filenames and directories on the command line.  "
21836 "Directories are copied out recursively."
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fish/virt-copy-out.pod:23
21841 msgid "Download the home directories from a virtual machine:"
21842 msgstr ""
21843
21844 #. type: verbatim
21845 #: ../fish/virt-copy-out.pod:25
21846 #, no-wrap
21847 msgid ""
21848 " mkdir homes\n"
21849 " virt-copy-out -d MyGuest /home homes\n"
21850 "\n"
21851 msgstr ""
21852
21853 #. type: textblock
21854 #: ../fish/virt-copy-out.pod:30
21855 msgid ""
21856 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21857 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21858 "are probably better off using guestfish directly."
21859 msgstr ""
21860
21861 #. type: textblock
21862 #: ../fish/virt-copy-out.pod:41
21863 #, fuzzy
21864 #| msgid ""
21865 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21866 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21867 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21868 #| "libguestfs.org/>."
21869 msgid ""
21870 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21871 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21872 msgstr ""
21873 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21874 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21875 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21876 "org/>."
21877
21878 #. type: textblock
21879 #: ../fish/virt-tar-in.pod:5
21880 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21881 msgstr ""
21882
21883 #. type: verbatim
21884 #: ../fish/virt-tar-in.pod:9
21885 #, no-wrap
21886 msgid ""
21887 " virt-tar-in -a disk.img data.tar /destination\n"
21888 "\n"
21889 msgstr ""
21890
21891 #. type: verbatim
21892 #: ../fish/virt-tar-in.pod:11
21893 #, no-wrap
21894 msgid ""
21895 " virt-tar-in -d domain data.tar /destination\n"
21896 "\n"
21897 msgstr ""
21898
21899 #. type: verbatim
21900 #: ../fish/virt-tar-in.pod:13
21901 #, no-wrap
21902 msgid ""
21903 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21904 "\n"
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fish/virt-tar-in.pod:17
21909 msgid ""
21910 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21911 "causing disk corruption.  The virtual machine must be shut down before you "
21912 "use this command."
21913 msgstr ""
21914
21915 #. type: textblock
21916 #: ../fish/virt-tar-in.pod:23
21917 msgid ""
21918 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21919 "image or named libvirt domain."
21920 msgstr ""
21921
21922 #. type: textblock
21923 #: ../fish/virt-tar-in.pod:26
21924 msgid ""
21925 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21926 "standard input.  The second parameter is the absolute target directory to "
21927 "unpack into."
21928 msgstr ""
21929
21930 #. type: verbatim
21931 #: ../fish/virt-tar-in.pod:34
21932 #, no-wrap
21933 msgid ""
21934 " virt-tar-in -d MyGuest homes.tar /home\n"
21935 "\n"
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../fish/virt-tar-in.pod:38
21940 msgid ""
21941 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21942 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21943 "probably better off using guestfish directly."
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../fish/virt-tar-in.pod:49
21948 #, fuzzy
21949 #| msgid ""
21950 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21951 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21952 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21953 #| "libguestfs.org/>."
21954 msgid ""
21955 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21956 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21957 "org/>."
21958 msgstr ""
21959 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21960 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21961 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21962 "org/>."
21963
21964 #. type: textblock
21965 #: ../fish/virt-tar-out.pod:5
21966 msgid ""
21967 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21968 msgstr ""
21969
21970 #. type: verbatim
21971 #: ../fish/virt-tar-out.pod:9
21972 #, no-wrap
21973 msgid ""
21974 " virt-tar-out -a disk.img /dir files.tar\n"
21975 "\n"
21976 msgstr ""
21977
21978 #. type: verbatim
21979 #: ../fish/virt-tar-out.pod:11
21980 #, no-wrap
21981 msgid ""
21982 " virt-tar-out -d domain /dir files.tar\n"
21983 "\n"
21984 msgstr ""
21985
21986 #. type: verbatim
21987 #: ../fish/virt-tar-out.pod:13
21988 #, no-wrap
21989 msgid ""
21990 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21991 "\n"
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../fish/virt-tar-out.pod:17
21996 msgid ""
21997 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fish/virt-tar-out.pod:20
22002 msgid ""
22003 "The first parameter is the absolute path of the virtual machine directory.  "
22004 "The second parameter is the tar file to write.  Use C<-> to write to "
22005 "standard output."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../fish/virt-tar-out.pod:26
22010 msgid "Download the home directories from a guest:"
22011 msgstr ""
22012
22013 #. type: verbatim
22014 #: ../fish/virt-tar-out.pod:28
22015 #, no-wrap
22016 msgid ""
22017 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22018 "\n"
22019 msgstr ""
22020
22021 #. type: textblock
22022 #: ../fish/virt-tar-out.pod:32
22023 msgid ""
22024 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22025 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22026 "are probably better off using guestfish directly."
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../fish/virt-tar-out.pod:43
22031 #, fuzzy
22032 #| msgid ""
22033 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
22034 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
22035 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
22036 #| "libguestfs.org/>."
22037 msgid ""
22038 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22039 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22040 msgstr ""
22041 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
22042 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
22043 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
22044 "org/>."
22045
22046 #. type: textblock
22047 #: ../fuse/guestmount.pod:5
22048 msgid ""
22049 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22050 msgstr ""
22051
22052 #. type: verbatim
22053 #: ../fuse/guestmount.pod:9
22054 #, no-wrap
22055 msgid ""
22056 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22057 "\n"
22058 msgstr ""
22059
22060 #. type: verbatim
22061 #: ../fuse/guestmount.pod:11
22062 #, no-wrap
22063 msgid ""
22064 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22065 "\n"
22066 msgstr ""
22067
22068 #. type: verbatim
22069 #: ../fuse/guestmount.pod:13
22070 #, no-wrap
22071 msgid ""
22072 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22073 "\n"
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../fuse/guestmount.pod:17
22078 msgid ""
22079 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22080 "machines.  If you do this, you risk disk corruption in the VM."
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../fuse/guestmount.pod:22
22085 msgid ""
22086 "The guestmount program can be used to mount virtual machine filesystems and "
22087 "other disk images on the host.  It uses libguestfs for access to the guest "
22088 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22089 "a mountable device."
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../fuse/guestmount.pod:27
22094 msgid ""
22095 "Along with other options, you have to give at least one device (I<-a> "
22096 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22097 "option) or use the I<-i> inspection option.  How this works is better "
22098 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
22099 "below."
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../fuse/guestmount.pod:33
22104 msgid ""
22105 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22106 "by you, and the filesystem will not be visible to any other users unless you "
22107 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22108 "the filesystem, use the C<fusermount -u> command."
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../fuse/guestmount.pod:41
22113 msgid ""
22114 "For a typical Windows guest which has its main filesystem on the first "
22115 "partition:"
22116 msgstr ""
22117
22118 #. type: verbatim
22119 #: ../fuse/guestmount.pod:44
22120 #, no-wrap
22121 msgid ""
22122 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22123 "\n"
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../fuse/guestmount.pod:46
22128 msgid ""
22129 "For a typical Linux guest which has a /boot filesystem on the first "
22130 "partition, and the root filesystem on a logical volume:"
22131 msgstr ""
22132
22133 #. type: verbatim
22134 #: ../fuse/guestmount.pod:49
22135 #, no-wrap
22136 msgid ""
22137 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22138 "\n"
22139 msgstr ""
22140
22141 #. type: textblock
22142 #: ../fuse/guestmount.pod:51
22143 msgid "To get libguestfs to detect guest mountpoints for you:"
22144 msgstr ""
22145
22146 #. type: verbatim
22147 #: ../fuse/guestmount.pod:53
22148 #, no-wrap
22149 msgid ""
22150 " guestmount -a guest.img -i --ro /mnt\n"
22151 "\n"
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../fuse/guestmount.pod:55
22156 msgid "For a libvirt guest called \"Guest\" you could do:"
22157 msgstr ""
22158
22159 #. type: verbatim
22160 #: ../fuse/guestmount.pod:57
22161 #, no-wrap
22162 msgid ""
22163 " guestmount -d Guest -i --ro /mnt\n"
22164 "\n"
22165 msgstr ""
22166
22167 #. type: textblock
22168 #: ../fuse/guestmount.pod:59
22169 msgid ""
22170 "If you don't know what filesystems are contained in a guest or disk image, "
22171 "use L<virt-filesystems(1)> first:"
22172 msgstr ""
22173
22174 #. type: verbatim
22175 #: ../fuse/guestmount.pod:62
22176 #, no-wrap
22177 msgid ""
22178 " virt-filesystems MyGuest\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: textblock
22183 #: ../fuse/guestmount.pod:64
22184 msgid ""
22185 "If you want to trace the libguestfs calls but without excessive debugging "
22186 "information, we recommend:"
22187 msgstr ""
22188
22189 #. type: verbatim
22190 #: ../fuse/guestmount.pod:67
22191 #, no-wrap
22192 msgid ""
22193 " guestmount [...] --trace /mnt\n"
22194 "\n"
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../fuse/guestmount.pod:69
22199 msgid "If you want to debug the program, we recommend:"
22200 msgstr ""
22201
22202 #. type: verbatim
22203 #: ../fuse/guestmount.pod:71
22204 #, no-wrap
22205 msgid ""
22206 " guestmount [...] --trace --verbose /mnt\n"
22207 "\n"
22208 msgstr ""
22209
22210 #. type: =head1
22211 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
22212 #: ../resize/virt-resize.pod:544
22213 msgid "NOTES"
22214 msgstr "ПРИМІТКИ"
22215
22216 #. type: =head2
22217 #: ../fuse/guestmount.pod:75
22218 msgid "Other users cannot see the filesystem by default"
22219 msgstr ""
22220
22221 #. type: textblock
22222 #: ../fuse/guestmount.pod:77
22223 msgid ""
22224 "If you mount a filesystem as one user (eg. root), then other users will not "
22225 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22226 "option when mounting:"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../fuse/guestmount.pod:81
22231 #, no-wrap
22232 msgid ""
22233 " sudo guestmount [...] -o allow_other /mnt\n"
22234 "\n"
22235 msgstr ""
22236
22237 #. type: =head2
22238 #: ../fuse/guestmount.pod:83
22239 msgid "Enabling FUSE"
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../fuse/guestmount.pod:85
22244 msgid ""
22245 "On some distros, you may need to add yourself to a special group (eg. "
22246 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22247 "Debian and derivatives."
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../fuse/guestmount.pod:89
22252 msgid ""
22253 "On other distros, no special group is required.  It is not necessary on "
22254 "Fedora or Red Hat Enterprise Linux."
22255 msgstr ""
22256
22257 #. type: textblock
22258 #: ../fuse/guestmount.pod:100
22259 msgid "Add a block device or virtual machine image."
22260 msgstr ""
22261
22262 #. type: =item
22263 #: ../fuse/guestmount.pod:123
22264 msgid "B<--dir-cache-timeout N>"
22265 msgstr "B<--dir-cache-timeout N>"
22266
22267 #. type: textblock
22268 #: ../fuse/guestmount.pod:125
22269 msgid ""
22270 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22271 "seconds.  The readdir cache [actually, there are several semi-independent "
22272 "caches] is populated after a readdir(2) call with the stat and extended "
22273 "attributes of the files in the directory, in anticipation that they will be "
22274 "requested soon after."
22275 msgstr ""
22276
22277 #. type: textblock
22278 #: ../fuse/guestmount.pod:131
22279 msgid ""
22280 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22281 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22282 "requests, only cache existing ones."
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../fuse/guestmount.pod:151
22287 msgid ""
22288 "If you have untrusted raw-format guest disk images, you should use this "
22289 "option to specify the disk format.  This avoids a possible security problem "
22290 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22291 "guestfs_add_drive_opts>."
22292 msgstr ""
22293
22294 #. type: =item
22295 #: ../fuse/guestmount.pod:156
22296 msgid "B<--fuse-help>"
22297 msgstr "B<--fuse-help>"
22298
22299 #. type: textblock
22300 #: ../fuse/guestmount.pod:158
22301 msgid "Display help on special FUSE options (see I<-o> below)."
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../fuse/guestmount.pod:162
22306 msgid "Display brief help and exit."
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../fuse/guestmount.pod:186
22311 msgid ""
22312 "Mount the named partition or logical volume on the given mountpoint B<in the "
22313 "guest> (this has nothing to do with mountpoints in the host)."
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../fuse/guestmount.pod:189
22318 msgid ""
22319 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22320 "something on C</>."
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../fuse/guestmount.pod:206
22325 msgid ""
22326 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22327 "unmounted.  If you specify this option, then we don't attempt to sync the "
22328 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22329 msgstr ""
22330
22331 #. type: =item
22332 #: ../fuse/guestmount.pod:211
22333 #, fuzzy
22334 #| msgid "B<--partition>"
22335 msgid "B<-o option>"
22336 msgstr "B<--partition>"
22337
22338 #. type: =item
22339 #: ../fuse/guestmount.pod:213
22340 #, fuzzy
22341 #| msgid "B<--partition>"
22342 msgid "B<--option option>"
22343 msgstr "B<--partition>"
22344
22345 #. type: textblock
22346 #: ../fuse/guestmount.pod:215
22347 msgid "Pass extra options to FUSE."
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../fuse/guestmount.pod:217
22352 msgid ""
22353 "To get a list of all the extra options supported by FUSE, use the command "
22354 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22355 "of them are a good idea."
22356 msgstr ""
22357
22358 #. type: verbatim
22359 #: ../fuse/guestmount.pod:221
22360 #, no-wrap
22361 msgid ""
22362 " guestmount --fuse-help\n"
22363 "\n"
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../fuse/guestmount.pod:223
22368 msgid "Some potentially useful FUSE options:"
22369 msgstr ""
22370
22371 #. type: =item
22372 #: ../fuse/guestmount.pod:227
22373 msgid "B<-o allow_other>"
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../fuse/guestmount.pod:229
22378 msgid "Allow other users to see the filesystem."
22379 msgstr ""
22380
22381 #. type: =item
22382 #: ../fuse/guestmount.pod:231
22383 msgid "B<-o attr_timeout=N>"
22384 msgstr "B<-o attr_timeout=N>"
22385
22386 #. type: textblock
22387 #: ../fuse/guestmount.pod:233
22388 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22389 msgstr ""
22390
22391 #. type: =item
22392 #: ../fuse/guestmount.pod:235
22393 msgid "B<-o kernel_cache>"
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../fuse/guestmount.pod:237
22398 msgid ""
22399 "Allow the kernel to cache files (reduces the number of reads that have to go "
22400 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22401 "afford the extra memory usage."
22402 msgstr ""
22403
22404 #. type: =item
22405 #: ../fuse/guestmount.pod:241
22406 msgid "B<-o uid=N> B<-o gid=N>"
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../fuse/guestmount.pod:243
22411 msgid ""
22412 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22413 "the chosen values."
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../fuse/guestmount.pod:252
22418 msgid ""
22419 "Add devices and mount everything read-only.  Also disallow writes and make "
22420 "the disk appear read-only to FUSE."
22421 msgstr ""
22422
22423 #. type: textblock
22424 #: ../fuse/guestmount.pod:255
22425 msgid ""
22426 "This is highly recommended if you are not going to edit the guest disk.  If "
22427 "the guest is running and this option is I<not> supplied, then there is a "
22428 "strong risk of disk corruption in the guest.  We try to prevent this from "
22429 "happening, but it is not always possible."
22430 msgstr ""
22431
22432 #. type: textblock
22433 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22434 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../fuse/guestmount.pod:264
22439 msgid "Enable SELinux support for the guest."
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../fuse/guestmount.pod:270
22444 msgid "Enable verbose messages from underlying libguestfs."
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../fuse/guestmount.pod:276
22449 msgid "Display the program version and exit."
22450 msgstr ""
22451
22452 #. type: textblock
22453 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22454 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22455 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22456 msgstr ""
22457
22458 #. type: =item
22459 #: ../fuse/guestmount.pod:289
22460 #, fuzzy
22461 #| msgid "B<--ro>"
22462 msgid "B<--trace>"
22463 msgstr "B<--ro>"
22464
22465 #. type: textblock
22466 #: ../fuse/guestmount.pod:291
22467 msgid "Trace libguestfs calls and entry into each FUSE function."
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../fuse/guestmount.pod:293
22472 msgid "This also stops the daemon from forking into the background."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../fuse/guestmount.pod:319
22477 msgid ""
22478 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22479 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22480 "net/>."
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../fuse/guestmount.pod:334
22485 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22486 msgstr ""
22487
22488 #. type: textblock
22489 #: ../inspector/virt-inspector.pod:5
22490 msgid ""
22491 "virt-inspector - Display operating system version and other information "
22492 "about a virtual machine"
22493 msgstr ""
22494
22495 #. type: verbatim
22496 #: ../inspector/virt-inspector.pod:9
22497 #, fuzzy, no-wrap
22498 #| msgid ""
22499 #| " virt-list-partitions [--options] domname\n"
22500 #| "\n"
22501 msgid ""
22502 " virt-inspector [--options] -d domname\n"
22503 "\n"
22504 msgstr ""
22505 " virt-list-partitions [--параметри] назва_домену\n"
22506 "\n"
22507
22508 #. type: verbatim
22509 #: ../inspector/virt-inspector.pod:11
22510 #, fuzzy, no-wrap
22511 #| msgid ""
22512 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22513 #| "\n"
22514 msgid ""
22515 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22516 "\n"
22517 msgstr ""
22518 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22519 "\n"
22520
22521 #. type: verbatim
22522 #: ../inspector/virt-inspector.pod:15
22523 #, fuzzy, no-wrap
22524 #| msgid ""
22525 #| " virt-list-partitions [--options] domname\n"
22526 #| "\n"
22527 msgid ""
22528 " virt-inspector domname\n"
22529 "\n"
22530 msgstr ""
22531 " virt-list-partitions [--параметри] назва_домену\n"
22532 "\n"
22533
22534 #. type: verbatim
22535 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22536 #, fuzzy, no-wrap
22537 #| msgid ""
22538 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22539 #| "\n"
22540 msgid ""
22541 " virt-inspector disk.img [disk.img ...]\n"
22542 "\n"
22543 msgstr ""
22544 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22545 "\n"
22546
22547 #. type: textblock
22548 #: ../inspector/virt-inspector.pod:21
22549 msgid ""
22550 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22551 "determine the version of the operating system and other information about "
22552 "the virtual machine."
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../inspector/virt-inspector.pod:25
22557 msgid "Virt-inspector produces XML output for feeding into other programs."
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../inspector/virt-inspector.pod:27
22562 msgid ""
22563 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22564 "the libvirt domain (see: C<virsh list --all>)."
22565 msgstr ""
22566
22567 #. type: textblock
22568 #: ../inspector/virt-inspector.pod:30
22569 msgid ""
22570 "You can also run virt-inspector directly on disk images from a single "
22571 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22572 "has several block devices, in which case you should list several I<-a> "
22573 "options one after another, with the first corresponding to the guest's C</"
22574 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22575 msgstr ""
22576
22577 #. type: textblock
22578 #: ../inspector/virt-inspector.pod:37
22579 msgid ""
22580 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22581 "keys and similar."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../inspector/virt-inspector.pod:40
22586 msgid ""
22587 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22588 "inspect several virtual machines, you have to run virt-inspector several "
22589 "times (for example, from a shell script for-loop)."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../inspector/virt-inspector.pod:45
22594 msgid ""
22595 "Because virt-inspector needs direct access to guest images, it won't "
22596 "normally work over remote libvirt connections."
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../inspector/virt-inspector.pod:48
22601 msgid ""
22602 "All of the information available from virt-inspector is also available "
22603 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22604 "The same information can also be fetched using guestfish or via libguestfs "
22605 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22606 "WITH OTHER PROGRAMMING LANGUAGES>)."
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../inspector/virt-inspector.pod:81
22611 msgid ""
22612 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22613 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22614 "at all."
22615 msgstr ""
22616
22617 #. type: textblock
22618 #: ../inspector/virt-inspector.pod:94
22619 msgid ""
22620 "When prompting for keys and passphrases, virt-inspector normally turns "
22621 "echoing off so you cannot see what you are typing.  If you are not worried "
22622 "about Tempest attacks and there is no one else in the room you can specify "
22623 "this flag to see what you are typing."
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22628 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22629 #: ../tools/virt-win-reg.pl:144
22630 msgid ""
22631 "Specify the format of disk images given on the command line.  If this is "
22632 "omitted then the format is autodetected from the content of the disk image."
22633 msgstr ""
22634
22635 #. type: textblock
22636 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22637 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22638 #: ../tools/virt-win-reg.pl:148
22639 msgid ""
22640 "If disk images are requested from libvirt, then this program asks libvirt "
22641 "for this information.  In this case, the value of the format parameter is "
22642 "ignored."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22647 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22648 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22649 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22650 msgid ""
22651 "If working with untrusted raw-format guest disk images, you should ensure "
22652 "the format is always specified."
22653 msgstr ""
22654
22655 #. type: textblock
22656 #: ../inspector/virt-inspector.pod:139
22657 msgid "Previous versions of virt-inspector allowed you to write either:"
22658 msgstr ""
22659
22660 #. type: verbatim
22661 #: ../inspector/virt-inspector.pod:145
22662 #, fuzzy, no-wrap
22663 #| msgid ""
22664 #| " inspect-get-hostname root\n"
22665 #| "\n"
22666 msgid ""
22667 " virt-inspector guestname\n"
22668 "\n"
22669 msgstr ""
22670 " inspect-get-hostname корінь\n"
22671 "\n"
22672
22673 #. type: =head1
22674 #: ../inspector/virt-inspector.pod:153
22675 msgid "XML FORMAT"
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../inspector/virt-inspector.pod:155
22680 msgid ""
22681 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22682 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22683 "just an overview."
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../inspector/virt-inspector.pod:159
22688 msgid ""
22689 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22690 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22691 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22692 "which is vanishingly rare in real world VMs."
22693 msgstr ""
22694
22695 #. type: =head2
22696 #: ../inspector/virt-inspector.pod:164
22697 msgid "E<lt>operatingsystemE<gt>"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../inspector/virt-inspector.pod:166
22702 msgid ""
22703 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22704 "describe the operating system, its architecture, the descriptive \"product "
22705 "name\" string, the type of OS and so on, as in this example:"
22706 msgstr ""
22707
22708 #. type: verbatim
22709 #: ../inspector/virt-inspector.pod:170
22710 #, no-wrap
22711 msgid ""
22712 " <operatingsystems>\n"
22713 "   <operatingsystem>\n"
22714 "     <root>/dev/sda2</root>\n"
22715 "     <name>windows</name>\n"
22716 "     <arch>i386</arch>\n"
22717 "     <distro>windows</distro>\n"
22718 "     <product_name>Windows 7 Enterprise</product_name>\n"
22719 "     <product_variant>Client</product_variant>\n"
22720 "     <major_version>6</major_version>\n"
22721 "     <minor_version>1</minor_version>\n"
22722 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22723 "     <format>installed</format>\n"
22724 "\n"
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../inspector/virt-inspector.pod:183
22729 msgid ""
22730 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22731 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22732 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22733 "architecture.  The other fields are fairly self-explanatory, but because "
22734 "these fields are taken directly from the libguestfs inspection API you can "
22735 "find precise information from L<guestfs(3)/INSPECTION>."
22736 msgstr ""
22737
22738 #. type: textblock
22739 #: ../inspector/virt-inspector.pod:191
22740 msgid ""
22741 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22742 "of view of libguestfs (block devices may have completely different names "
22743 "inside the VM itself)."
22744 msgstr ""
22745
22746 #. type: =head2
22747 #: ../inspector/virt-inspector.pod:195
22748 #, fuzzy
22749 #| msgid "mountpoints"
22750 msgid "E<lt>mountpointsE<gt>"
22751 msgstr "mountpoints"
22752
22753 #. type: textblock
22754 #: ../inspector/virt-inspector.pod:197
22755 msgid ""
22756 "Un*x-like guests typically have multiple filesystems which are mounted at "
22757 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22758 "element which looks like this:"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../inspector/virt-inspector.pod:201
22763 #, no-wrap
22764 msgid ""
22765 " <operatingsystems>\n"
22766 "   <operatingsystem>\n"
22767 "     ...\n"
22768 "     <mountpoints>\n"
22769 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22770 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22771 "     </mountpoints>\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../inspector/virt-inspector.pod:209
22777 msgid ""
22778 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22779 "and may have completely different names inside the guest.  Only mountable "
22780 "filesystems appear in this list, not things like swap devices."
22781 msgstr ""
22782
22783 #. type: =head2
22784 #: ../inspector/virt-inspector.pod:214
22785 #, fuzzy
22786 #| msgid "list-filesystems"
22787 msgid "E<lt>filesystemsE<gt>"
22788 msgstr "list-filesystems"
22789
22790 #. type: textblock
22791 #: ../inspector/virt-inspector.pod:216
22792 msgid ""
22793 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22794 "filesystems belonging to the guest, including swap and empty partitions.  "
22795 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22796 "this OS or shared with this OS and other OSes)."
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../inspector/virt-inspector.pod:222
22801 msgid "You might see something like this:"
22802 msgstr ""
22803
22804 #. type: verbatim
22805 #: ../inspector/virt-inspector.pod:224
22806 #, no-wrap
22807 msgid ""
22808 " <operatingsystems>\n"
22809 "   <operatingsystem>\n"
22810 "     ...\n"
22811 "     <filesystems>\n"
22812 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22813 "         <type>ext4</type>\n"
22814 "         <label>Fedora-13-x86_64</label>\n"
22815 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22816 "       </filesystem>\n"
22817 "\n"
22818 msgstr ""
22819
22820 #. type: textblock
22821 #: ../inspector/virt-inspector.pod:234
22822 msgid ""
22823 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22824 "the label, and the UUID."
22825 msgstr ""
22826
22827 #. type: =head2
22828 #: ../inspector/virt-inspector.pod:237
22829 msgid "E<lt>applicationsE<gt>"
22830 msgstr ""
22831
22832 #. type: textblock
22833 #: ../inspector/virt-inspector.pod:239
22834 msgid ""
22835 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22836 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22837 "machine."
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../inspector/virt-inspector.pod:243
22842 msgid ""
22843 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22844 "Typical values would be C<rpm> and C<deb>."
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../inspector/virt-inspector.pod:246
22849 msgid ""
22850 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22851 "Typical values include C<yum>, C<up2date> and C<apt>"
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../inspector/virt-inspector.pod:249
22856 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22857 msgstr ""
22858
22859 #. type: verbatim
22860 #: ../inspector/virt-inspector.pod:252
22861 #, no-wrap
22862 msgid ""
22863 " <operatingsystems>\n"
22864 "   <operatingsystem>\n"
22865 "     ...\n"
22866 "     <applications>\n"
22867 "       <application>\n"
22868 "         <name>coreutils</name>\n"
22869 "         <version>8.5</version>\n"
22870 "         <release>1</release>\n"
22871 "       </application>\n"
22872 "\n"
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../inspector/virt-inspector.pod:262
22877 msgid ""
22878 "The version and release fields may not be available for some types guests.  "
22879 "Other fields are possible, see L<guestfs(3)/"
22880 "guestfs_inspect_list_applications>."
22881 msgstr ""
22882
22883 #. type: =head2
22884 #: ../inspector/virt-inspector.pod:266
22885 msgid "E<lt>drive_mappingsE<gt>"
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../inspector/virt-inspector.pod:268
22890 msgid ""
22891 "For operating systems like Windows which use drive letters, virt-inspector "
22892 "is able to find out how drive letters map to filesystems."
22893 msgstr ""
22894
22895 #. type: verbatim
22896 #: ../inspector/virt-inspector.pod:272
22897 #, no-wrap
22898 msgid ""
22899 " <operatingsystems>\n"
22900 "   <operatingsystem>\n"
22901 "     ...\n"
22902 "     <drive_mappings>\n"
22903 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22904 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22905 "     </drive_mappings>\n"
22906 "\n"
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../inspector/virt-inspector.pod:280
22911 msgid ""
22912 "In the example above, drive C maps to the filesystem on the second partition "
22913 "on the first disk, and drive E maps to the filesystem on the first partition "
22914 "on the second disk."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../inspector/virt-inspector.pod:284
22919 msgid ""
22920 "Note that this only covers permanent local filesystem mappings, not things "
22921 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22922 "here."
22923 msgstr ""
22924
22925 #. type: =head2
22926 #: ../inspector/virt-inspector.pod:288
22927 #, fuzzy
22928 #| msgid "B<-s E<lt>NE<gt>>"
22929 msgid "E<lt>iconE<gt>"
22930 msgstr "B<-s E<lt>NE<gt>>"
22931
22932 #. type: textblock
22933 #: ../inspector/virt-inspector.pod:290
22934 msgid ""
22935 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22936 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22937 "very large and high quality."
22938 msgstr ""
22939
22940 #. type: verbatim
22941 #: ../inspector/virt-inspector.pod:294
22942 #, no-wrap
22943 msgid ""
22944 " <operatingsystems>\n"
22945 "   <operatingsystem>\n"
22946 "     ...\n"
22947 "     <icon>\n"
22948 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22949 "       [... many lines of base64 data ...]\n"
22950 "     </icon>\n"
22951 "\n"
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../inspector/virt-inspector.pod:302
22956 msgid ""
22957 "To display the icon, you have to extract it and convert the base64 data back "
22958 "to a binary file.  Use an XPath query or simply an editor to extract the "
22959 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22960 "to a PNG file:"
22961 msgstr ""
22962
22963 #. type: verbatim
22964 #: ../inspector/virt-inspector.pod:307
22965 #, no-wrap
22966 msgid ""
22967 " base64 -i -d < icon.data > icon.png\n"
22968 "\n"
22969 msgstr ""
22970
22971 #. type: =head2
22972 #: ../inspector/virt-inspector.pod:309
22973 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22974 msgstr ""
22975
22976 #. type: textblock
22977 #: ../inspector/virt-inspector.pod:311
22978 msgid ""
22979 "Virt-inspector can detect some operating system installers on install disks, "
22980 "live CDs, bootable USB keys and more."
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../inspector/virt-inspector.pod:314
22985 msgid ""
22986 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22987 "fields may be present to indicate a live CD, network installer, or one part "
22988 "of a multipart CD.  For example:"
22989 msgstr ""
22990
22991 #. type: verbatim
22992 #: ../inspector/virt-inspector.pod:318
22993 #, no-wrap
22994 msgid ""
22995 " <operatingsystems>\n"
22996 "   <operatingsystem>\n"
22997 "     <root>/dev/sda</root>\n"
22998 "     <name>linux</name>\n"
22999 "     <arch>i386</arch>\n"
23000 "     <distro>ubuntu</distro>\n"
23001 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23002 "     <major_version>10</major_version>\n"
23003 "     <minor_version>10</minor_version>\n"
23004 "     <format>installer</format>\n"
23005 "     <live/>\n"
23006 "\n"
23007 msgstr ""
23008
23009 #. type: =head1
23010 #: ../inspector/virt-inspector.pod:330
23011 msgid "USING XPATH"
23012 msgstr ""
23013
23014 #. type: textblock
23015 #: ../inspector/virt-inspector.pod:332
23016 msgid ""
23017 "You can use the XPath query language to select parts of the XML.  We "
23018 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
23019 msgstr ""
23020
23021 #. type: verbatim
23022 #: ../inspector/virt-inspector.pod:338
23023 #, no-wrap
23024 msgid ""
23025 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
23026 " <filesystems>\n"
23027 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23028 "        <type>ext4</type>\n"
23029 " [...]\n"
23030 "\n"
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../inspector/virt-inspector.pod:344
23035 #, no-wrap
23036 msgid ""
23037 " $ virt-inspector -d Guest | \\\n"
23038 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23039 " ext4\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: verbatim
23044 #: ../inspector/virt-inspector.pod:348
23045 #, no-wrap
23046 msgid ""
23047 " $ virt-inspector -d Guest | \\\n"
23048 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
23049 " [displays the guest icon, if there is one]\n"
23050 "\n"
23051 msgstr ""
23052
23053 #. type: =head1
23054 #: ../inspector/virt-inspector.pod:359
23055 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../inspector/virt-inspector.pod:361
23060 msgid ""
23061 "Early versions of libguestfs shipped with a different virt-inspector program "
23062 "written in Perl (the current version is written in C).  The XML output of "
23063 "the Perl virt-inspector was different and it could also output in other "
23064 "formats like text."
23065 msgstr ""
23066
23067 #. type: textblock
23068 #: ../inspector/virt-inspector.pod:366
23069 msgid ""
23070 "The old virt-inspector is no longer supported or shipped with libguestfs."
23071 msgstr ""
23072
23073 #. type: textblock
23074 #: ../inspector/virt-inspector.pod:369
23075 msgid ""
23076 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23077 "versions of virt-inspector with different names:"
23078 msgstr ""
23079
23080 #. type: verbatim
23081 #: ../inspector/virt-inspector.pod:372
23082 #, no-wrap
23083 msgid ""
23084 " virt-inspector     Old Perl version.\n"
23085 " virt-inspector2    New C version.\n"
23086 "\n"
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../inspector/virt-inspector.pod:382
23091 #, fuzzy
23092 #| msgid ""
23093 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23094 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23095 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23096 msgid ""
23097 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23098 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23099 msgstr ""
23100 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23101 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23102 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23103
23104 #. type: textblock
23105 #: ../inspector/virt-inspector.pod:399
23106 msgid "Matthew Booth L<mbooth@redhat.com>"
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../java/examples/guestfs-java.pod:5
23111 msgid "guestfs-java - How to use libguestfs from Java"
23112 msgstr ""
23113
23114 #. type: verbatim
23115 #: ../java/examples/guestfs-java.pod:9
23116 #, no-wrap
23117 msgid ""
23118 " import com.redhat.et.libguestfs.*;\n"
23119 " \n"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../java/examples/guestfs-java.pod:11
23124 #, no-wrap
23125 msgid ""
23126 " GuestFS g = new GuestFS ();\n"
23127 " g.add_drive_opts (\"disk.img\", null);\n"
23128 " g.launch ();\n"
23129 "\n"
23130 msgstr ""
23131
23132 #. type: textblock
23133 #: ../java/examples/guestfs-java.pod:17
23134 msgid ""
23135 "This manual page documents how to call libguestfs from the Java programming "
23136 "language.  This page just documents the differences from the C API and gives "
23137 "some examples.  If you are not familiar with using libguestfs, you also need "
23138 "to read L<guestfs(3)>."
23139 msgstr ""
23140
23141 #. type: =head2
23142 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23143 msgid "CLOSING THE HANDLE"
23144 msgstr ""
23145
23146 #. type: textblock
23147 #: ../java/examples/guestfs-java.pod:24
23148 msgid ""
23149 "The handle is closed when it is reaped by the garbage collector.  Because "
23150 "libguestfs handles include a lot of state, it is also possible to close (and "
23151 "hence free) them explicitly by calling the C<close> method."
23152 msgstr ""
23153
23154 #. type: =head2
23155 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23156 #: ../python/examples/guestfs-python.pod:21
23157 #: ../ruby/examples/guestfs-ruby.pod:22
23158 #, fuzzy
23159 #| msgid "OPTIONS"
23160 msgid "EXCEPTIONS"
23161 msgstr "ПАРАМЕТРИ"
23162
23163 #. type: textblock
23164 #: ../java/examples/guestfs-java.pod:31
23165 msgid ""
23166 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23167 "exception.  This has a single parameter which is the error message (a "
23168 "C<String>)."
23169 msgstr ""
23170
23171 #. type: textblock
23172 #: ../java/examples/guestfs-java.pod:35
23173 msgid "Calling any method on a closed handle raises the same exception."
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../java/examples/guestfs-java.pod:47
23178 #, fuzzy
23179 #| msgid ""
23180 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23181 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23182 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23183 msgid ""
23184 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23185 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23186 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23187 msgstr ""
23188 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23189 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23190 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23191
23192 #. type: textblock
23193 #: ../ocaml/examples/guestfs-ocaml.pod:5
23194 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23195 msgstr ""
23196
23197 #. type: textblock
23198 #: ../ocaml/examples/guestfs-ocaml.pod:9
23199 msgid "Module style:"
23200 msgstr ""
23201
23202 #. type: verbatim
23203 #: ../ocaml/examples/guestfs-ocaml.pod:11
23204 #, no-wrap
23205 msgid ""
23206 " let g = Guestfs.create () in\n"
23207 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23208 " Guestfs.launch g;\n"
23209 "\n"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../ocaml/examples/guestfs-ocaml.pod:15
23214 msgid "Object-oriented style:"
23215 msgstr ""
23216
23217 #. type: verbatim
23218 #: ../ocaml/examples/guestfs-ocaml.pod:17
23219 #, no-wrap
23220 msgid ""
23221 " let g = new Guestfs.guestfs () in\n"
23222 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23223 " g#launch ();\n"
23224 "\n"
23225 msgstr ""
23226
23227 #. type: verbatim
23228 #: ../ocaml/examples/guestfs-ocaml.pod:21
23229 #, no-wrap
23230 msgid ""
23231 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23232 "or:\n"
23233 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23234 "\n"
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../ocaml/examples/guestfs-ocaml.pod:27
23239 msgid ""
23240 "This manual page documents how to call libguestfs from the OCaml programming "
23241 "language.  This page just documents the differences from the C API and gives "
23242 "some examples.  If you are not familiar with using libguestfs, you also need "
23243 "to read L<guestfs(3)>."
23244 msgstr ""
23245
23246 #. type: =head2
23247 #: ../ocaml/examples/guestfs-ocaml.pod:32
23248 msgid "PROGRAMMING STYLES"
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../ocaml/examples/guestfs-ocaml.pod:34
23253 msgid ""
23254 "There are two different programming styles supported by the OCaml bindings.  "
23255 "You can use a module style, with each C function mapped to an OCaml function:"
23256 msgstr ""
23257
23258 #. type: verbatim
23259 #: ../ocaml/examples/guestfs-ocaml.pod:38
23260 #, fuzzy, no-wrap
23261 #| msgid ""
23262 #| " int guestfs_last_errno (guestfs_h *g);\n"
23263 #| "\n"
23264 msgid ""
23265 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23266 "\n"
23267 msgstr ""
23268 " int guestfs_last_errno (guestfs_h *g);\n"
23269 "\n"
23270
23271 #. type: textblock
23272 #: ../ocaml/examples/guestfs-ocaml.pod:40
23273 msgid "becomes:"
23274 msgstr ""
23275
23276 #. type: verbatim
23277 #: ../ocaml/examples/guestfs-ocaml.pod:42
23278 #, no-wrap
23279 msgid ""
23280 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23281 "\n"
23282 msgstr ""
23283
23284 #. type: textblock
23285 #: ../ocaml/examples/guestfs-ocaml.pod:44
23286 msgid ""
23287 "Alternately you can use an object-oriented style, calling methods on the "
23288 "class C<Guestfs.guestfs>:"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../ocaml/examples/guestfs-ocaml.pod:47
23293 #, no-wrap
23294 msgid ""
23295 " method set_verbose : bool -> unit\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../ocaml/examples/guestfs-ocaml.pod:49
23301 msgid ""
23302 "The object-oriented style is usually briefer, and the minor performance "
23303 "penalty isn't noticable in the general overhead of performing libguestfs "
23304 "functions."
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../ocaml/examples/guestfs-ocaml.pod:55
23309 msgid ""
23310 "The handle is closed when it is reaped by the garbage collector.  Because "
23311 "libguestfs handles include a lot of state, it is also possible to close (and "
23312 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23313 "method."
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../ocaml/examples/guestfs-ocaml.pod:62
23318 msgid ""
23319 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23320 "exception.  This has a single parameter which is the error message (a "
23321 "string)."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../ocaml/examples/guestfs-ocaml.pod:66
23326 msgid ""
23327 "Calling any function/method on a closed handle raises C<Guestfs."
23328 "Handle_closed>.  The single parameter is the name of the function that you "
23329 "called."
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../ocaml/examples/guestfs-ocaml.pod:80
23334 #, fuzzy
23335 #| msgid ""
23336 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23337 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23338 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23339 msgid ""
23340 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23341 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23342 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23343 msgstr ""
23344 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23345 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23346 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23347
23348 #. type: textblock
23349 #: ../perl/examples/guestfs-perl.pod:5
23350 msgid "guestfs-perl - How to use libguestfs from Perl"
23351 msgstr ""
23352
23353 #. type: verbatim
23354 #: ../perl/examples/guestfs-perl.pod:9
23355 #, no-wrap
23356 msgid ""
23357 " use Sys::Guestfs;\n"
23358 " \n"
23359 msgstr ""
23360
23361 #. type: verbatim
23362 #: ../perl/examples/guestfs-perl.pod:11
23363 #, no-wrap
23364 msgid ""
23365 " my $h = Sys::Guestfs->new ();\n"
23366 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23367 " $h->launch ();\n"
23368 " $h->mount_options ('', '/dev/sda1', '/');\n"
23369 " $h->touch ('/hello');\n"
23370 " $h->sync ();\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../perl/examples/guestfs-perl.pod:20
23376 msgid ""
23377 "This manual page documents how to call libguestfs from the Perl programming "
23378 "language.  This page just documents the differences from the C API and gives "
23379 "some examples.  If you are not familiar with using libguestfs, you also need "
23380 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23381 msgstr ""
23382
23383 #. type: =head2
23384 #: ../perl/examples/guestfs-perl.pod:26
23385 msgid "ERRORS"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../perl/examples/guestfs-perl.pod:28
23390 msgid ""
23391 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23392 ">)."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../perl/examples/guestfs-perl.pod:41
23397 #, fuzzy
23398 #| msgid ""
23399 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23400 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23401 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23402 msgid ""
23403 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23404 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23405 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23406 msgstr ""
23407 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23408 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23409 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23410
23411 #. type: textblock
23412 #: ../python/examples/guestfs-python.pod:5
23413 msgid "guestfs-python - How to use libguestfs from Python"
23414 msgstr ""
23415
23416 #. type: verbatim
23417 #: ../python/examples/guestfs-python.pod:9
23418 #, no-wrap
23419 msgid ""
23420 " import guestfs\n"
23421 " g = guestfs.GuestFS ()\n"
23422 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23423 " g.launch\n"
23424 "\n"
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../python/examples/guestfs-python.pod:16
23429 msgid ""
23430 "This manual page documents how to call libguestfs from the Python "
23431 "programming language.  This page just documents the differences from the C "
23432 "API and gives some examples.  If you are not familiar with using libguestfs, "
23433 "you also need to read L<guestfs(3)>."
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../python/examples/guestfs-python.pod:23
23438 msgid ""
23439 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23440 "single string argument which is the error message."
23441 msgstr ""
23442
23443 #. type: =head2
23444 #: ../python/examples/guestfs-python.pod:26
23445 msgid "MORE DOCUMENTATION"
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../python/examples/guestfs-python.pod:28
23450 msgid "Type:"
23451 msgstr ""
23452
23453 #. type: verbatim
23454 #: ../python/examples/guestfs-python.pod:30
23455 #, no-wrap
23456 msgid ""
23457 " $ python\n"
23458 " >>> import guestfs\n"
23459 " >>> help (guestfs)\n"
23460 "\n"
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../python/examples/guestfs-python.pod:44
23465 #, fuzzy
23466 #| msgid ""
23467 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23468 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23469 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23470 msgid ""
23471 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23472 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23473 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23474 msgstr ""
23475 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23476 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23477 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23478
23479 #. type: textblock
23480 #: ../rescue/virt-rescue.pod:5
23481 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23482 msgstr ""
23483
23484 #. type: verbatim
23485 #: ../rescue/virt-rescue.pod:9
23486 #, fuzzy, no-wrap
23487 #| msgid ""
23488 #| " virt-list-partitions [--options] domname\n"
23489 #| "\n"
23490 msgid ""
23491 " virt-rescue [--options] -d domname\n"
23492 "\n"
23493 msgstr ""
23494 " virt-list-partitions [--параметри] назва_домену\n"
23495 "\n"
23496
23497 #. type: verbatim
23498 #: ../rescue/virt-rescue.pod:11
23499 #, fuzzy, no-wrap
23500 #| msgid ""
23501 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23502 #| "\n"
23503 msgid ""
23504 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23505 "\n"
23506 msgstr ""
23507 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23508 "\n"
23509
23510 #. type: verbatim
23511 #: ../rescue/virt-rescue.pod:15
23512 #, fuzzy, no-wrap
23513 #| msgid ""
23514 #| " virt-list-partitions [--options] domname\n"
23515 #| "\n"
23516 msgid ""
23517 " virt-rescue [--options] domname\n"
23518 "\n"
23519 msgstr ""
23520 " virt-list-partitions [--параметри] назва_домену\n"
23521 "\n"
23522
23523 #. type: verbatim
23524 #: ../rescue/virt-rescue.pod:17
23525 #, fuzzy, no-wrap
23526 #| msgid ""
23527 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23528 #| "\n"
23529 msgid ""
23530 " virt-rescue [--options] disk.img [disk.img ...]\n"
23531 "\n"
23532 msgstr ""
23533 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23534 "\n"
23535
23536 #. type: textblock
23537 #: ../rescue/virt-rescue.pod:21
23538 msgid ""
23539 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23540 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23541 "you from doing this, but doesn't catch all cases."
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../rescue/virt-rescue.pod:25
23546 msgid ""
23547 "However if you use the I<--ro> (read only) option, then you can attach a "
23548 "shell to a live virtual machine.  The results might be strange or "
23549 "inconsistent at times but you won't get disk corruption."
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../rescue/virt-rescue.pod:31
23554 msgid ""
23555 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23556 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23557 "recovery tools which you can use to examine or rescue a virtual machine or "
23558 "disk image."
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../rescue/virt-rescue.pod:36
23563 msgid ""
23564 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23565 "on disk image(s):"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../rescue/virt-rescue.pod:39
23570 #, no-wrap
23571 msgid ""
23572 " virt-rescue -d GuestName\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../rescue/virt-rescue.pod:41
23578 #, no-wrap
23579 msgid ""
23580 " virt-rescue --ro -a /path/to/disk.img\n"
23581 "\n"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../rescue/virt-rescue.pod:43
23586 #, no-wrap
23587 msgid ""
23588 " virt-rescue -a /dev/sdc\n"
23589 "\n"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../rescue/virt-rescue.pod:45
23594 msgid "For live VMs you I<must> use the --ro option."
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../rescue/virt-rescue.pod:47
23599 msgid ""
23600 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23601 "in an interactive bash shell where you can use many ordinary Linux "
23602 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23603 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23604 "is an empty directory called C</sysroot> where you can mount filesystems."
23605 msgstr ""
23606
23607 #. type: textblock
23608 #: ../rescue/virt-rescue.pod:54
23609 msgid ""
23610 "In the example below, we list logical volumes, then choose one to mount "
23611 "under C</sysroot>:"
23612 msgstr ""
23613
23614 #. type: verbatim
23615 #: ../rescue/virt-rescue.pod:57
23616 #, no-wrap
23617 msgid ""
23618 " ><rescue> lvs\n"
23619 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23620 " lv_root vg_f11x64 -wi-a-   8.83G\n"
23621 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23622 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23623 " ><rescue> ls /sysroot\n"
23624 "\n"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../rescue/virt-rescue.pod:64
23629 msgid ""
23630 "If you don't know what filesystems are available on the virtual machine then "
23631 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../rescue/virt-rescue.pod:70
23636 msgid ""
23637 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23638 "virtual machine.  For example you can use it on a blank file if you want to "
23639 "partition that file (although we would recommend using L<guestfish(1)> "
23640 "instead as it is more suitable for this purpose).  You can even use virt-"
23641 "rescue on things like SD cards."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../rescue/virt-rescue.pod:76
23646 msgid ""
23647 "Virt-rescue does not require root.  You only need to run it as root if you "
23648 "need root to open the disk image."
23649 msgstr ""
23650
23651 #. type: textblock
23652 #: ../rescue/virt-rescue.pod:79
23653 msgid ""
23654 "This tool is just designed for quick interactive hacking on a virtual "
23655 "machine.  For more structured access to a virtual machine disk image, you "
23656 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23657 "make scripted changes to guests, use L<guestfish(1)>."
23658 msgstr ""
23659
23660 #. type: =item
23661 #: ../rescue/virt-rescue.pod:103
23662 msgid "B<--append kernelopts>"
23663 msgstr ""
23664
23665 #. type: textblock
23666 #: ../rescue/virt-rescue.pod:105
23667 msgid "Pass additional options to the rescue kernel."
23668 msgstr ""
23669
23670 #. type: verbatim
23671 #: ../rescue/virt-rescue.pod:135
23672 #, fuzzy, no-wrap
23673 #| msgid ""
23674 #| " guestfish --format=raw -a disk.img\n"
23675 #| "\n"
23676 msgid ""
23677 " virt-rescue --format=raw -a disk.img\n"
23678 "\n"
23679 msgstr ""
23680 " guestfish --format=raw -a disk.img\n"
23681 "\n"
23682
23683 #. type: verbatim
23684 #: ../rescue/virt-rescue.pod:139
23685 #, fuzzy, no-wrap
23686 #| msgid ""
23687 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
23688 #| "\n"
23689 msgid ""
23690 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23691 "\n"
23692 msgstr ""
23693 " guestfish --format=raw -a disk.img --format -a another.img\n"
23694 "\n"
23695
23696 #. type: =item
23697 #: ../rescue/virt-rescue.pod:148
23698 msgid "B<-m MB>"
23699 msgstr ""
23700
23701 #. type: =item
23702 #: ../rescue/virt-rescue.pod:150
23703 #, fuzzy
23704 #| msgid "B<--merge>"
23705 msgid "B<--memsize MB>"
23706 msgstr "B<--merge>"
23707
23708 #. type: textblock
23709 #: ../rescue/virt-rescue.pod:152
23710 msgid ""
23711 "Change the amount of memory allocated to the rescue system.  The default is "
23712 "set by libguestfs and is small but adequate for running system tools.  The "
23713 "occasional program might need more memory.  The parameter is specified in "
23714 "megabytes."
23715 msgstr ""
23716
23717 #. type: =item
23718 #: ../rescue/virt-rescue.pod:157
23719 #, fuzzy
23720 #| msgid "B<--inspector>"
23721 msgid "B<--network>"
23722 msgstr "B<--inspector>"
23723
23724 #. type: textblock
23725 #: ../rescue/virt-rescue.pod:159
23726 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../rescue/virt-rescue.pod:165
23731 msgid "Open the image read-only."
23732 msgstr ""
23733
23734 #. type: textblock
23735 #: ../rescue/virt-rescue.pod:175
23736 msgid ""
23737 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23738 "SELINUX> before using this option."
23739 msgstr ""
23740
23741 #. type: =item
23742 #: ../rescue/virt-rescue.pod:178
23743 #, fuzzy
23744 #| msgid "B<--csh>"
23745 msgid "B<--smp> N"
23746 msgstr "B<--csh>"
23747
23748 #. type: textblock
23749 #: ../rescue/virt-rescue.pod:180
23750 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../rescue/virt-rescue.pod:198
23755 msgid ""
23756 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23757 "are done read-write."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../rescue/virt-rescue.pod:211
23762 msgid "Previous versions of virt-rescue allowed you to write either:"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../rescue/virt-rescue.pod:213
23767 #, fuzzy, no-wrap
23768 #| msgid ""
23769 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23770 #| "\n"
23771 msgid ""
23772 " virt-rescue disk.img [disk.img ...]\n"
23773 "\n"
23774 msgstr ""
23775 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23776 "\n"
23777
23778 #. type: verbatim
23779 #: ../rescue/virt-rescue.pod:217
23780 #, fuzzy, no-wrap
23781 #| msgid ""
23782 #| " file-architecture filename\n"
23783 #| "\n"
23784 msgid ""
23785 " virt-rescue guestname\n"
23786 "\n"
23787 msgstr ""
23788 " file-architecture назва_файла\n"
23789 "\n"
23790
23791 #. type: =head1
23792 #: ../rescue/virt-rescue.pod:225
23793 msgid "NETWORK"
23794 msgstr ""
23795
23796 #. type: textblock
23797 #: ../rescue/virt-rescue.pod:227
23798 msgid ""
23799 "Adding the I<--network> option enables QEMU user networking in the rescue "
23800 "appliance.  There are some differences between user networking and ordinary "
23801 "networking:"
23802 msgstr ""
23803
23804 #. type: =item
23805 #: ../rescue/virt-rescue.pod:233
23806 msgid "ping does not work"
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../rescue/virt-rescue.pod:235
23811 msgid ""
23812 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23813 "send the ping packets, and because virt-rescue must be able to run as non-"
23814 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23815 "The ping command will appear to resolve addresses but will not be able to "
23816 "send or receive any packets.  This does not mean that the network is not "
23817 "working."
23818 msgstr ""
23819
23820 #. type: =item
23821 #: ../rescue/virt-rescue.pod:242
23822 msgid "cannot receive connections"
23823 msgstr ""
23824
23825 #. type: textblock
23826 #: ../rescue/virt-rescue.pod:244
23827 msgid "QEMU user networking cannot receive incoming connections."
23828 msgstr ""
23829
23830 #. type: =item
23831 #: ../rescue/virt-rescue.pod:246
23832 msgid "making TCP connections"
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../rescue/virt-rescue.pod:248
23837 msgid ""
23838 "The virt-rescue appliance needs to be small and so does not include many "
23839 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23840 "make TCP connections from the shell using the magical C</dev/tcp/"
23841 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23842 msgstr ""
23843
23844 #. type: verbatim
23845 #: ../rescue/virt-rescue.pod:253
23846 #, no-wrap
23847 msgid ""
23848 " exec 3<>/dev/tcp/redhat.com/80\n"
23849 " echo \"GET /\" >&3\n"
23850 " cat <&3\n"
23851 "\n"
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../rescue/virt-rescue.pod:257
23856 msgid "See L<bash(1)> for more details."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../rescue/virt-rescue.pod:263
23861 msgid ""
23862 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23863 "ENVIRONMENT VARIABLES> for the complete list."
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../rescue/virt-rescue.pod:290
23868 #, fuzzy
23869 #| msgid ""
23870 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23871 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23872 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23873 msgid ""
23874 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23875 "libguestfs.org/>."
23876 msgstr ""
23877 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23878 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23879 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23880
23881 #. type: textblock
23882 #: ../resize/virt-resize.pod:5
23883 msgid "virt-resize - Resize a virtual machine disk"
23884 msgstr ""
23885
23886 #. type: verbatim
23887 #: ../resize/virt-resize.pod:9
23888 #, no-wrap
23889 msgid ""
23890 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23891 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23892 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../resize/virt-resize.pod:15
23898 msgid ""
23899 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23900 "larger or smaller overall, and resizing or deleting any partitions contained "
23901 "within."
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../resize/virt-resize.pod:19
23906 msgid ""
23907 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23908 "not> be used on live virtual machines - for consistent results, shut the "
23909 "virtual machine down before resizing it."
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../resize/virt-resize.pod:23
23914 msgid ""
23915 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23916 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23917 msgstr ""
23918
23919 #. type: =item
23920 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23921 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23922 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23923 msgid "1."
23924 msgstr "1."
23925
23926 #. type: textblock
23927 #: ../resize/virt-resize.pod:33
23928 msgid ""
23929 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23930 "fill the extra 5GB of space."
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../resize/virt-resize.pod:36
23935 #, no-wrap
23936 msgid ""
23937 " virt-filesystems --long -h --all -a olddisk\n"
23938 " \n"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../resize/virt-resize.pod:38
23943 #, no-wrap
23944 msgid ""
23945 " truncate -r olddisk newdisk\n"
23946 " truncate -s +5G newdisk\n"
23947 " \n"
23948 msgstr ""
23949
23950 #. type: verbatim
23951 #: ../resize/virt-resize.pod:41
23952 #, no-wrap
23953 msgid ""
23954 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23955 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23956 "\n"
23957 msgstr ""
23958
23959 #. type: =item
23960 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23961 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23962 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23963 msgid "2."
23964 msgstr "2."
23965
23966 #. type: textblock
23967 #: ../resize/virt-resize.pod:46
23968 msgid ""
23969 "As above, but make the /boot partition 200MB bigger, while giving the "
23970 "remaining space to /dev/sda2:"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../resize/virt-resize.pod:49
23975 #, no-wrap
23976 msgid ""
23977 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23978 "   olddisk newdisk\n"
23979 "\n"
23980 msgstr ""
23981
23982 #. type: =item
23983 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23984 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23985 #: ../src/guestfs.pod:1436
23986 msgid "3."
23987 msgstr "3."
23988
23989 #. type: textblock
23990 #: ../resize/virt-resize.pod:54
23991 msgid ""
23992 "As in the first example, but expand a logical volume as the final step.  "
23993 "This is what you would typically use for Linux guests that use LVM:"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../resize/virt-resize.pod:58
23998 #, no-wrap
23999 msgid ""
24000 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24001 "   olddisk newdisk\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: =item
24006 #: ../resize/virt-resize.pod:61
24007 msgid "4."
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../resize/virt-resize.pod:63
24012 msgid ""
24013 "As in the first example, but the output format will be qcow2 instead of a "
24014 "raw disk:"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../resize/virt-resize.pod:66
24019 #, no-wrap
24020 msgid ""
24021 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24022 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24023 "\n"
24024 msgstr ""
24025
24026 #. type: =head1
24027 #: ../resize/virt-resize.pod:71
24028 msgid "DETAILED USAGE"
24029 msgstr ""
24030
24031 #. type: =head2
24032 #: ../resize/virt-resize.pod:73
24033 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24034 msgstr ""
24035
24036 #. type: =item
24037 #: ../resize/virt-resize.pod:77
24038 msgid "1. Shut down the virtual machine"
24039 msgstr ""
24040
24041 #. type: =item
24042 #: ../resize/virt-resize.pod:79
24043 msgid "2. Locate input disk image"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../resize/virt-resize.pod:81
24048 msgid ""
24049 "Locate the input disk image (ie. the file or device on the host containing "
24050 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24051 "dumpxml> like this to find the disk image name:"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../resize/virt-resize.pod:85
24056 #, no-wrap
24057 msgid ""
24058 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24059 " Found 1 nodes:\n"
24060 " -- NODE --\n"
24061 " <source dev=\"/dev/vg/lv_guest\" />\n"
24062 "\n"
24063 msgstr ""
24064
24065 #. type: =item
24066 #: ../resize/virt-resize.pod:90
24067 msgid "3. Look at current sizing"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../resize/virt-resize.pod:92
24072 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24073 msgstr ""
24074
24075 #. type: verbatim
24076 #: ../resize/virt-resize.pod:95
24077 #, no-wrap
24078 msgid ""
24079 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24080 " Name       Type       Size  Parent\n"
24081 " /dev/sda1  partition  101M  /dev/sda\n"
24082 " /dev/sda2  partition  7.9G  /dev/sda\n"
24083 " /dev/sda   device     8.0G  -\n"
24084 "\n"
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../resize/virt-resize.pod:101
24089 msgid ""
24090 "(This example is a virtual machine with an 8 GB disk which we would like to "
24091 "expand up to 10 GB)."
24092 msgstr ""
24093
24094 #. type: =item
24095 #: ../resize/virt-resize.pod:104
24096 msgid "4. Create output disk"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../resize/virt-resize.pod:106
24101 msgid ""
24102 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24103 "to store the resized output disk."
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:109
24108 msgid ""
24109 "To store the resized disk image in a file, create a file of a suitable size:"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../resize/virt-resize.pod:112
24114 #, no-wrap
24115 msgid ""
24116 " # rm -f outdisk\n"
24117 " # truncate -s 10G outdisk\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../resize/virt-resize.pod:115
24123 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24124 msgstr ""
24125
24126 #. type: verbatim
24127 #: ../resize/virt-resize.pod:117
24128 #, no-wrap
24129 msgid ""
24130 " # lvcreate -L 10G -n lv_name vg_name\n"
24131 "\n"
24132 msgstr ""
24133
24134 #. type: textblock
24135 #: ../resize/virt-resize.pod:119
24136 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24137 msgstr ""
24138
24139 #. type: verbatim
24140 #: ../resize/virt-resize.pod:121
24141 #, no-wrap
24142 msgid ""
24143 " # virsh pool-list\n"
24144 " # virsh vol-create-as poolname newvol 10G\n"
24145 "\n"
24146 msgstr ""
24147
24148 #. type: =item
24149 #: ../resize/virt-resize.pod:124
24150 msgid "5. Resize"
24151 msgstr ""
24152
24153 #. type: textblock
24154 #: ../resize/virt-resize.pod:126
24155 msgid ""
24156 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24157 "file) and the output disk.  The output disk is the one created in the "
24158 "previous step."
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../resize/virt-resize.pod:130
24163 #, no-wrap
24164 msgid ""
24165 " # virt-resize indisk outdisk\n"
24166 "\n"
24167 msgstr ""
24168
24169 #. type: textblock
24170 #: ../resize/virt-resize.pod:132
24171 msgid ""
24172 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24173 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24174 "larger, then an extra, empty partition is created at the end of the disk "
24175 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24176 "error."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../resize/virt-resize.pod:138
24181 msgid ""
24182 "More realistically you'd want to expand existing partitions in the disk "
24183 "image by passing extra options (for the full list see the L</OPTIONS> "
24184 "section below)."
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../resize/virt-resize.pod:142
24189 msgid ""
24190 "L</--expand> is the most useful option.  It expands the named partition "
24191 "within the disk to fill any extra space:"
24192 msgstr ""
24193
24194 #. type: verbatim
24195 #: ../resize/virt-resize.pod:145
24196 #, no-wrap
24197 msgid ""
24198 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24199 "\n"
24200 msgstr ""
24201
24202 #. type: textblock
24203 #: ../resize/virt-resize.pod:147
24204 msgid ""
24205 "(In this case, an extra partition is I<not> created at the end of the disk, "
24206 "because there will be no unused space)."
24207 msgstr ""
24208
24209 #. type: textblock
24210 #: ../resize/virt-resize.pod:150
24211 msgid ""
24212 "L</--resize> is the other commonly used option.  The following would "
24213 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24214 "rest of the available space:"
24215 msgstr ""
24216
24217 #. type: verbatim
24218 #: ../resize/virt-resize.pod:154
24219 #, no-wrap
24220 msgid ""
24221 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24222 "     indisk outdisk\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../resize/virt-resize.pod:157
24228 msgid ""
24229 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24230 "if virt-resize knows how, it will resize the contents, the equivalent of "
24231 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24232 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24233 "filesystems, so you would have to online resize them after booting the guest."
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../resize/virt-resize.pod:164
24238 msgid "Other options are covered below."
24239 msgstr ""
24240
24241 #. type: =item
24242 #: ../resize/virt-resize.pod:166
24243 msgid "6. Test"
24244 msgstr ""
24245
24246 #. type: textblock
24247 #: ../resize/virt-resize.pod:168
24248 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../resize/virt-resize.pod:170
24253 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24254 msgstr ""
24255
24256 #. type: verbatim
24257 #: ../resize/virt-resize.pod:172
24258 #, fuzzy, no-wrap
24259 #| msgid ""
24260 #| " edit filename\n"
24261 #| "\n"
24262 msgid ""
24263 " # virsh edit guestname\n"
24264 "\n"
24265 msgstr ""
24266 " edit назва_файла\n"
24267 "\n"
24268
24269 #. type: textblock
24270 #: ../resize/virt-resize.pod:174
24271 msgid ""
24272 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24273 "html#elementsDisks>"
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../resize/virt-resize.pod:177
24278 msgid "Then start up the domain with the new, resized disk:"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../resize/virt-resize.pod:179
24283 #, fuzzy, no-wrap
24284 #| msgid ""
24285 #| " ln-s target linkname\n"
24286 #| "\n"
24287 msgid ""
24288 " # virsh start guestname\n"
24289 "\n"
24290 msgstr ""
24291 " ln-s призначення назва_посилання\n"
24292 "\n"
24293
24294 #. type: textblock
24295 #: ../resize/virt-resize.pod:181
24296 msgid ""
24297 "and check that it still works.  See also the L</NOTES> section below for "
24298 "additional information."
24299 msgstr ""
24300
24301 #. type: =item
24302 #: ../resize/virt-resize.pod:184
24303 msgid "7. Resize LVs etc inside the guest"
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../resize/virt-resize.pod:186
24308 msgid "(This can also be done offline using L<guestfish(1)>)"
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../resize/virt-resize.pod:188
24313 msgid ""
24314 "Once the guest has booted you should see the new space available, at least "
24315 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24316 "may need to resize LVs inside PVs, and also resize filesystem types that "
24317 "virt-resize does not know how to expand."
24318 msgstr ""
24319
24320 #. type: =head2
24321 #: ../resize/virt-resize.pod:195
24322 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../resize/virt-resize.pod:197
24327 msgid ""
24328 "Shrinking is somewhat more complex than expanding, and only an overview is "
24329 "given here."
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../resize/virt-resize.pod:200
24334 msgid ""
24335 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24336 "filesystems).  The user has to shrink content before passing the disk image "
24337 "to virt-resize, and virt-resize will check that the content has been shrunk "
24338 "properly."
24339 msgstr ""
24340
24341 #. type: textblock
24342 #: ../resize/virt-resize.pod:205
24343 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../resize/virt-resize.pod:207
24348 msgid ""
24349 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24350 "steps 3 and 4 above to allocate a new disk image."
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../resize/virt-resize.pod:210
24355 msgid ""
24356 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24357 msgstr ""
24358
24359 #. type: =head2
24360 #: ../resize/virt-resize.pod:213
24361 msgid "IGNORING OR DELETING PARTITIONS"
24362 msgstr ""
24363
24364 #. type: textblock
24365 #: ../resize/virt-resize.pod:215
24366 msgid ""
24367 "virt-resize also gives a convenient way to ignore or delete partitions when "
24368 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24369 "up the copy where you don't care about the existing contents of a "
24370 "partition.  Deleting a partition removes it completely, but note that it "
24371 "also renumbers any partitions after the one which is deleted, which can "
24372 "leave some guests unbootable."
24373 msgstr ""
24374
24375 #. type: =head2
24376 #: ../resize/virt-resize.pod:222
24377 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../resize/virt-resize.pod:224
24382 msgid ""
24383 "If the input disk is in qcow2 format, then you may prefer that the output is "
24384 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24385 "the fly.  The output format is simply determined by the format of the empty "
24386 "output container that you provide.  Thus to create qcow2 output, use:"
24387 msgstr ""
24388
24389 #. type: verbatim
24390 #: ../resize/virt-resize.pod:230
24391 #, no-wrap
24392 msgid ""
24393 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24394 "\n"
24395 msgstr ""
24396
24397 #. type: textblock
24398 #: ../resize/virt-resize.pod:232
24399 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../resize/virt-resize.pod:234
24404 msgid "Similarly, to get non-sparse raw output use:"
24405 msgstr ""
24406
24407 #. type: verbatim
24408 #: ../resize/virt-resize.pod:236
24409 #, fuzzy, no-wrap
24410 #| msgid ""
24411 #| " fallocate path len\n"
24412 #| "\n"
24413 msgid ""
24414 " fallocate -l size outdisk\n"
24415 "\n"
24416 msgstr ""
24417 " fallocate шлях довжина\n"
24418 "\n"
24419
24420 #. type: textblock
24421 #: ../resize/virt-resize.pod:238
24422 msgid ""
24423 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24424 "dev/zero of=outdisk bs=1M count=..>)"
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
24429 msgid "Display help."
24430 msgstr ""
24431
24432 #. type: =item
24433 #: ../resize/virt-resize.pod:249
24434 msgid "B<-d>"
24435 msgstr ""
24436
24437 #. type: =item
24438 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
24439 #: ../tools/virt-win-reg.pl:120
24440 msgid "B<--debug>"
24441 msgstr "B<--debug>"
24442
24443 #. type: textblock
24444 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
24445 msgid "Enable debugging messages."
24446 msgstr ""
24447
24448 #. type: =item
24449 #: ../resize/virt-resize.pod:255
24450 #, fuzzy
24451 #| msgid "B<--no-dest-paths>"
24452 msgid "B<--delete part>"
24453 msgstr "B<--no-dest-paths>"
24454
24455 #. type: textblock
24456 #: ../resize/virt-resize.pod:257
24457 msgid ""
24458 "Delete the named partition.  It would be more accurate to describe this as "
24459 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24460 "the original disk image is left intact."
24461 msgstr ""
24462
24463 #. type: textblock
24464 #: ../resize/virt-resize.pod:261
24465 msgid ""
24466 "Note that when you delete a partition, then anything contained in the "
24467 "partition is also deleted.  Furthermore, this causes any partitions that "
24468 "come after to be I<renumbered>, which can easily make your guest unbootable."
24469 msgstr ""
24470
24471 #. type: textblock
24472 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
24473 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
24474 msgid "You can give this option multiple times."
24475 msgstr ""
24476
24477 #. type: =item
24478 #: ../resize/virt-resize.pod:268
24479 #, fuzzy
24480 #| msgid "B<--partition>"
24481 msgid "B<--expand part>"
24482 msgstr "B<--partition>"
24483
24484 #. type: textblock
24485 #: ../resize/virt-resize.pod:270
24486 msgid ""
24487 "Expand the named partition so it uses up all extra space (space left over "
24488 "after any other resize changes that you request have been done)."
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../resize/virt-resize.pod:273
24493 msgid ""
24494 "If virt-resize knows how, it will expand the direct content of the "
24495 "partition.  For example, if the partition is an LVM PV, it will expand the "
24496 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24497 "content it doesn't know about alone."
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../resize/virt-resize.pod:278
24502 msgid "Currently virt-resize can resize:"
24503 msgstr ""
24504
24505 #. type: textblock
24506 #: ../resize/virt-resize.pod:284
24507 msgid "ext2, ext3 and ext4 filesystems."
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../resize/virt-resize.pod:288
24512 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24513 msgstr ""
24514
24515 #. type: textblock
24516 #: ../resize/virt-resize.pod:290
24517 msgid ""
24518 "The filesystem must have been shut down consistently last time it was used.  "
24519 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24520 "consistency check, so at the first boot after resizing Windows will check "
24521 "the disk."
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../resize/virt-resize.pod:297
24526 msgid ""
24527 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24528 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24529 "resize LVs as desired after boot."
24530 msgstr ""
24531
24532 #. type: textblock
24533 #: ../resize/virt-resize.pod:303
24534 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24535 msgstr ""
24536
24537 #. type: textblock
24538 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
24539 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24540 msgstr ""
24541
24542 #. type: =item
24543 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
24544 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24545 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24546 msgid "B<--format> raw"
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
24551 msgid ""
24552 "Specify the format of the input disk image.  If this flag is not given then "
24553 "it is auto-detected from the image itself."
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../resize/virt-resize.pod:317
24558 msgid ""
24559 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24560 "AND NON-SPARSE RAW FORMATS>."
24561 msgstr ""
24562
24563 #. type: =item
24564 #: ../resize/virt-resize.pod:320
24565 #, fuzzy
24566 #| msgid "B<--format>"
24567 msgid "B<--ignore part>"
24568 msgstr "B<--format>"
24569
24570 #. type: textblock
24571 #: ../resize/virt-resize.pod:322
24572 msgid ""
24573 "Ignore the named partition.  Effectively this means the partition is "
24574 "allocated on the destination disk, but the content is not copied across from "
24575 "the source disk.  The content of the partition will be blank (all zero "
24576 "bytes)."
24577 msgstr ""
24578
24579 #. type: =item
24580 #: ../resize/virt-resize.pod:329
24581 msgid "B<--LV-expand logvol>"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:331
24586 msgid ""
24587 "This takes the logical volume and, as a final step, expands it to fill all "
24588 "the space available in its volume group.  A typical usage, assuming a Linux "
24589 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24590 "lv_root> would be:"
24591 msgstr ""
24592
24593 #. type: verbatim
24594 #: ../resize/virt-resize.pod:336
24595 #, no-wrap
24596 msgid ""
24597 " virt-resize indisk outdisk \\\n"
24598 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24599 "\n"
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../resize/virt-resize.pod:339
24604 msgid ""
24605 "This would first expand the partition (and PV), and then expand the root "
24606 "device to fill the extra space in the PV."
24607 msgstr ""
24608
24609 #. type: textblock
24610 #: ../resize/virt-resize.pod:342
24611 msgid ""
24612 "The contents of the LV are also resized if virt-resize knows how to do "
24613 "that.  You can stop virt-resize from trying to expand the content by using "
24614 "the option I<--no-expand-content>."
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../resize/virt-resize.pod:346
24619 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24620 msgstr ""
24621
24622 #. type: textblock
24623 #: ../resize/virt-resize.pod:348
24624 msgid ""
24625 "You can give this option multiple times, I<but> it doesn't make sense to do "
24626 "this unless the logical volumes you specify are all in different volume "
24627 "groups."
24628 msgstr ""
24629
24630 #. type: =item
24631 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
24632 #, fuzzy
24633 #| msgid "B<-h> | B<--human-readable>"
24634 msgid "B<--machine-readable>"
24635 msgstr "B<-h> | B<--human-readable>"
24636
24637 #. type: textblock
24638 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
24639 msgid ""
24640 "This option is used to make the output more machine friendly when being "
24641 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24642 msgstr ""
24643
24644 #. type: =item
24645 #: ../resize/virt-resize.pod:360
24646 #, fuzzy
24647 #| msgid "B<--debug>"
24648 msgid "B<--dryrun>"
24649 msgstr "B<--debug>"
24650
24651 #. type: textblock
24652 #: ../resize/virt-resize.pod:362
24653 msgid "Print a summary of what would be done, but don't do anything."
24654 msgstr ""
24655
24656 #. type: =item
24657 #: ../resize/virt-resize.pod:364
24658 msgid "B<--no-copy-boot-loader>"
24659 msgstr ""
24660
24661 #. type: textblock
24662 #: ../resize/virt-resize.pod:366
24663 msgid ""
24664 "By default, virt-resize copies over some sectors at the start of the disk "
24665 "(up to the beginning of the first partition).  Commonly these sectors "
24666 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24667 "in order for the guest to boot correctly."
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../resize/virt-resize.pod:371
24672 msgid ""
24673 "If you specify this flag, then this initial copy is not done.  You may need "
24674 "to reinstall the boot loader in this case."
24675 msgstr ""
24676
24677 #. type: =item
24678 #: ../resize/virt-resize.pod:374
24679 #, fuzzy
24680 #| msgid "B<--partition>"
24681 msgid "B<--no-extra-partition>"
24682 msgstr "B<--partition>"
24683
24684 #. type: textblock
24685 #: ../resize/virt-resize.pod:376
24686 msgid ""
24687 "By default, virt-resize creates an extra partition if there is any extra, "
24688 "unused space after all resizing has happened.  Use this option to prevent "
24689 "the extra partition from being created.  If you do this then the extra space "
24690 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24691 "tool in the guest."
24692 msgstr ""
24693
24694 #. type: textblock
24695 #: ../resize/virt-resize.pod:382
24696 msgid ""
24697 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24698 "will be created."
24699 msgstr ""
24700
24701 #. type: =item
24702 #: ../resize/virt-resize.pod:385
24703 #, fuzzy
24704 #| msgid "B<--no-dest-paths>"
24705 msgid "B<--no-expand-content>"
24706 msgstr "B<--no-dest-paths>"
24707
24708 #. type: textblock
24709 #: ../resize/virt-resize.pod:387
24710 msgid ""
24711 "By default, virt-resize will try to expand the direct contents of "
24712 "partitions, if it knows how (see I<--expand> option above)."
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../resize/virt-resize.pod:390
24717 msgid ""
24718 "If you give the I<--no-expand-content> option then virt-resize will not "
24719 "attempt this."
24720 msgstr ""
24721
24722 #. type: =item
24723 #: ../resize/virt-resize.pod:393
24724 #, fuzzy
24725 #| msgid "ntfsresize-size"
24726 msgid "B<--ntfsresize-force>"
24727 msgstr "ntfsresize-size"
24728
24729 #. type: textblock
24730 #: ../resize/virt-resize.pod:395
24731 msgid ""
24732 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24733 "the NTFS disk is marked as needing a consistency check.  You have to use "
24734 "this option if you want to resize a Windows guest multiple times without "
24735 "booting into Windows between each resize."
24736 msgstr ""
24737
24738 #. type: =item
24739 #: ../resize/virt-resize.pod:401
24740 #, fuzzy
24741 #| msgid "B<--format>"
24742 msgid "B<--output-format> raw"
24743 msgstr "B<--format>"
24744
24745 #. type: textblock
24746 #: ../resize/virt-resize.pod:403
24747 msgid ""
24748 "Specify the format of the output disk image.  If this flag is not given then "
24749 "it is auto-detected from the image itself."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../resize/virt-resize.pod:409
24754 msgid ""
24755 "Note that this option I<does not create> the output format.  This option "
24756 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24757 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24758 "SPARSE RAW FORMATS>."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../resize/virt-resize.pod:418
24763 msgid "Don't print the summary."
24764 msgstr ""
24765
24766 #. type: =item
24767 #: ../resize/virt-resize.pod:420
24768 #, fuzzy
24769 #| msgid "B<part_size>"
24770 msgid "B<--resize part=size>"
24771 msgstr "B<part_size>"
24772
24773 #. type: textblock
24774 #: ../resize/virt-resize.pod:422
24775 msgid ""
24776 "Resize the named partition (expanding or shrinking it) so that it has the "
24777 "given size."
24778 msgstr ""
24779
24780 #. type: textblock
24781 #: ../resize/virt-resize.pod:425
24782 msgid ""
24783 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24784 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24785 "size; or as a relative number or percentage.  For example:"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../resize/virt-resize.pod:431
24790 #, fuzzy, no-wrap
24791 #| msgid ""
24792 #| " hexedit /dev/sda 1M\n"
24793 #| "\n"
24794 msgid ""
24795 " --resize /dev/sda2=10G\n"
24796 "\n"
24797 msgstr ""
24798 " hexedit /dev/sda 1M\n"
24799 "\n"
24800
24801 #. type: verbatim
24802 #: ../resize/virt-resize.pod:433
24803 #, fuzzy, no-wrap
24804 #| msgid ""
24805 #| " pvresize device\n"
24806 #| "\n"
24807 msgid ""
24808 " --resize /dev/sda4=90%\n"
24809 "\n"
24810 msgstr ""
24811 " pvresize пристрій\n"
24812 "\n"
24813
24814 #. type: verbatim
24815 #: ../resize/virt-resize.pod:435
24816 #, fuzzy, no-wrap
24817 #| msgid ""
24818 #| " hexedit /dev/sda 1M\n"
24819 #| "\n"
24820 msgid ""
24821 " --resize /dev/sda2=+1G\n"
24822 "\n"
24823 msgstr ""
24824 " hexedit /dev/sda 1M\n"
24825 "\n"
24826
24827 #. type: verbatim
24828 #: ../resize/virt-resize.pod:437
24829 #, fuzzy, no-wrap
24830 #| msgid ""
24831 #| " hexedit /dev/sda 1M\n"
24832 #| "\n"
24833 msgid ""
24834 " --resize /dev/sda2=-200M\n"
24835 "\n"
24836 msgstr ""
24837 " hexedit /dev/sda 1M\n"
24838 "\n"
24839
24840 #. type: verbatim
24841 #: ../resize/virt-resize.pod:439
24842 #, fuzzy, no-wrap
24843 #| msgid ""
24844 #| " hexedit /dev/sda 1M\n"
24845 #| "\n"
24846 msgid ""
24847 " --resize /dev/sda1=+128K\n"
24848 "\n"
24849 msgstr ""
24850 " hexedit /dev/sda 1M\n"
24851 "\n"
24852
24853 #. type: verbatim
24854 #: ../resize/virt-resize.pod:441
24855 #, fuzzy, no-wrap
24856 #| msgid ""
24857 #| " hexedit /dev/sda 1M\n"
24858 #| "\n"
24859 msgid ""
24860 " --resize /dev/sda1=+10%\n"
24861 "\n"
24862 msgstr ""
24863 " hexedit /dev/sda 1M\n"
24864 "\n"
24865
24866 #. type: verbatim
24867 #: ../resize/virt-resize.pod:443
24868 #, fuzzy, no-wrap
24869 #| msgid ""
24870 #| " hexedit /dev/sda 1M\n"
24871 #| "\n"
24872 msgid ""
24873 " --resize /dev/sda1=-10%\n"
24874 "\n"
24875 msgstr ""
24876 " hexedit /dev/sda 1M\n"
24877 "\n"
24878
24879 #. type: textblock
24880 #: ../resize/virt-resize.pod:445
24881 msgid ""
24882 "You can increase the size of any partition.  Virt-resize will expand the "
24883 "direct content of the partition if it knows how (see I<--expand> below)."
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../resize/virt-resize.pod:449
24888 msgid ""
24889 "You can only I<decrease> the size of partitions that contain filesystems or "
24890 "PVs which have already been shrunk.  Virt-resize will check this has been "
24891 "done before proceeding, or else will print an error (see also I<--resize-"
24892 "force>)."
24893 msgstr ""
24894
24895 #. type: =item
24896 #: ../resize/virt-resize.pod:456
24897 msgid "B<--resize-force part=size>"
24898 msgstr ""
24899
24900 #. type: textblock
24901 #: ../resize/virt-resize.pod:458
24902 msgid ""
24903 "This is the same as I<--resize> except that it will let you decrease the "
24904 "size of any partition.  Generally this means you will lose any data which "
24905 "was at the end of the partition you shrink, but you may not care about that "
24906 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24907 "as a swap partition)."
24908 msgstr ""
24909
24910 #. type: textblock
24911 #: ../resize/virt-resize.pod:464
24912 msgid "See also the I<--ignore> option."
24913 msgstr ""
24914
24915 #. type: =item
24916 #: ../resize/virt-resize.pod:466
24917 #, fuzzy
24918 #| msgid "B<--partition>"
24919 msgid "B<--shrink part>"
24920 msgstr "B<--partition>"
24921
24922 #. type: textblock
24923 #: ../resize/virt-resize.pod:468
24924 msgid ""
24925 "Shrink the named partition until the overall disk image fits in the "
24926 "destination.  The named partition B<must> contain a filesystem or PV which "
24927 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24928 "online tools).  Virt-resize will check this and give an error if it has not "
24929 "been done."
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../resize/virt-resize.pod:474
24934 msgid ""
24935 "The amount by which the overall disk must be shrunk (after carrying out all "
24936 "other operations requested by the user) is called the \"deficit\".  For "
24937 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24938 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24939 "would give an error unless the user specified a partition to shrink and that "
24940 "partition had more than a gigabyte of free space."
24941 msgstr ""
24942
24943 #. type: =head1
24944 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24945 msgid "MACHINE READABLE OUTPUT"
24946 msgstr ""
24947
24948 #. type: textblock
24949 #: ../resize/virt-resize.pod:494
24950 msgid ""
24951 "The I<--machine-readable> option can be used to make the output more machine "
24952 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24953 "etc."
24954 msgstr ""
24955
24956 #. type: textblock
24957 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24958 msgid "There are two ways to use this option."
24959 msgstr ""
24960
24961 #. type: textblock
24962 #: ../resize/virt-resize.pod:500
24963 msgid ""
24964 "Firstly use the option on its own to query the capabilities of the virt-"
24965 "resize binary.  Typical output looks like this:"
24966 msgstr ""
24967
24968 #. type: verbatim
24969 #: ../resize/virt-resize.pod:503
24970 #, no-wrap
24971 msgid ""
24972 " $ virt-resize --machine-readable\n"
24973 " virt-resize\n"
24974 " ntfsresize-force\n"
24975 " 32bitok\n"
24976 " ntfs\n"
24977 " btrfs\n"
24978 "\n"
24979 msgstr ""
24980
24981 #. type: textblock
24982 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24983 msgid ""
24984 "A list of features is printed, one per line, and the program exits with "
24985 "status 0."
24986 msgstr ""
24987
24988 #. type: textblock
24989 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24990 msgid ""
24991 "Secondly use the option in conjunction with other options to make the "
24992 "regular program output more machine friendly."
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24997 msgid "At the moment this means:"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
25002 msgid ""
25003 "Progress bar messages can be parsed from stdout by looking for this regular "
25004 "expression:"
25005 msgstr ""
25006
25007 #. type: verbatim
25008 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
25009 #, no-wrap
25010 msgid ""
25011 " ^[0-9]+/[0-9]+$\n"
25012 "\n"
25013 msgstr ""
25014
25015 #. type: textblock
25016 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
25017 msgid ""
25018 "The calling program should treat messages sent to stdout (except for "
25019 "progress bar messages) as status messages.  They can be logged and/or "
25020 "displayed to the user."
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../resize/virt-resize.pod:535
25025 msgid ""
25026 "The calling program should treat messages sent to stderr as error messages.  "
25027 "In addition, virt-resize exits with a non-zero status code if there was a "
25028 "fatal error."
25029 msgstr ""
25030
25031 #. type: textblock
25032 #: ../resize/virt-resize.pod:541
25033 msgid ""
25034 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25035 "readable> option and will return an error."
25036 msgstr ""
25037
25038 #. type: =head2
25039 #: ../resize/virt-resize.pod:546
25040 msgid "\"Partition 1 does not end on cylinder boundary.\""
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../resize/virt-resize.pod:548
25045 msgid ""
25046 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25047 "means the partitions will not be aligned to the ancient CHS geometry.  "
25048 "However CHS geometry is meaningless for disks manufactured since the early "
25049 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25050 "cylinders is not required by any modern operating system."
25051 msgstr ""
25052
25053 #. type: =head2
25054 #: ../resize/virt-resize.pod:555
25055 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25056 msgstr ""
25057
25058 #. type: textblock
25059 #: ../resize/virt-resize.pod:557
25060 msgid ""
25061 "In Windows Vista and later versions, Microsoft switched to using a separate "
25062 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25063 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25064 "the boot partition.  Doing so seems to break the guest completely.  However "
25065 "expanding the second partition (ie. C: drive) should work."
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../resize/virt-resize.pod:564
25070 msgid ""
25071 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25072 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25073 "it find errors) is nothing to worry about."
25074 msgstr ""
25075
25076 #. type: =head2
25077 #: ../resize/virt-resize.pod:568
25078 msgid "GUEST BOOT STUCK AT \"GRUB\""
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../resize/virt-resize.pod:570
25083 msgid ""
25084 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25085 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
25086 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
25087 "although we think is to do with partition alignment."
25088 msgstr ""
25089
25090 #. type: verbatim
25091 #: ../resize/virt-resize.pod:575
25092 #, no-wrap
25093 msgid ""
25094 " guestfish -i -a newdisk\n"
25095 " ><fs> cat /boot/grub/device.map\n"
25096 " # check the contents of this file are sensible or\n"
25097 " # edit the file if necessary\n"
25098 " ><fs> grub-install / /dev/vda\n"
25099 " ><fs> exit\n"
25100 "\n"
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../resize/virt-resize.pod:582
25105 msgid ""
25106 "For more flexible guest reconfiguration, including if you need to specify "
25107 "other parameters to grub-install, use L<virt-rescue(1)>."
25108 msgstr ""
25109
25110 #. type: =head1
25111 #: ../resize/virt-resize.pod:585
25112 msgid "ALTERNATIVE TOOLS"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../resize/virt-resize.pod:587
25117 msgid ""
25118 "There are several proprietary tools for resizing partitions.  We won't "
25119 "mention any here."
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../resize/virt-resize.pod:590
25124 msgid ""
25125 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25126 "operations on disk images.  They can resize and move partitions, but I don't "
25127 "think they can do anything with the contents, and they certainly don't "
25128 "understand LVM."
25129 msgstr ""
25130
25131 #. type: textblock
25132 #: ../resize/virt-resize.pod:595
25133 msgid ""
25134 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25135 "but at a much lower level.  You will probably end up hand-calculating sector "
25136 "offsets, which is something that virt-resize was designed to avoid.  If you "
25137 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25138 "I<--debug> flag."
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../resize/virt-resize.pod:615
25143 msgid ""
25144 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25145 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25146 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25147 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25148 "L<http://libguestfs.org/>."
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../ruby/examples/guestfs-ruby.pod:5
25153 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../ruby/examples/guestfs-ruby.pod:9
25158 #, no-wrap
25159 msgid ""
25160 " require 'guestfs'\n"
25161 " g = Guestfs::Guestfs.new()\n"
25162 " g.add_drive_opts(\"disk.img\",\n"
25163 "                  :readonly => 1, :format => \"raw\")\n"
25164 " g.launch()\n"
25165 "\n"
25166 msgstr ""
25167
25168 #. type: textblock
25169 #: ../ruby/examples/guestfs-ruby.pod:17
25170 msgid ""
25171 "This manual page documents how to call libguestfs from the Ruby programming "
25172 "language.  This page just documents the differences from the C API and gives "
25173 "some examples.  If you are not familiar with using libguestfs, you also need "
25174 "to read L<guestfs(3)>."
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../ruby/examples/guestfs-ruby.pod:24
25179 msgid ""
25180 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25181 "This has a single parameter which is the error message (a string)."
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../ruby/examples/guestfs-ruby.pod:38
25186 #, fuzzy
25187 #| msgid ""
25188 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
25189 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
25190 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25191 msgid ""
25192 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25193 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25194 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25195 msgstr ""
25196 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
25197 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
25198 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25199
25200 #. type: textblock
25201 #: ../sparsify/virt-sparsify.pod:5
25202 msgid "virt-sparsify - Make a virtual machine disk sparse"
25203 msgstr ""
25204
25205 #. type: verbatim
25206 #: ../sparsify/virt-sparsify.pod:9
25207 #, fuzzy, no-wrap
25208 #| msgid ""
25209 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
25210 #| "\n"
25211 msgid ""
25212 " virt-sparsify [--options] indisk outdisk\n"
25213 "\n"
25214 msgstr ""
25215 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
25216 "\n"
25217
25218 #. type: textblock
25219 #: ../sparsify/virt-sparsify.pod:13
25220 msgid ""
25221 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25222 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25223 "the disk image can be converted back to free space on the host."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../sparsify/virt-sparsify.pod:18
25228 msgid ""
25229 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25230 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../sparsify/virt-sparsify.pod:21
25235 msgid ""
25236 "Virt-sparsify can also convert between some disk formats, for example "
25237 "converting a raw disk image to a thin-provisioned qcow2 image."
25238 msgstr ""
25239
25240 #. type: textblock
25241 #: ../sparsify/virt-sparsify.pod:24
25242 msgid ""
25243 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25244 "machines.  If a virtual machine has more than one attached disk, you must "
25245 "sparsify each one separately."
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../sparsify/virt-sparsify.pod:28
25250 msgid "IMPORTANT LIMITATIONS"
25251 msgstr ""
25252
25253 #. type: textblock
25254 #: ../sparsify/virt-sparsify.pod:34
25255 msgid ""
25256 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25257 "image to a destination image, leaving the source unchanged.  I<Check that "
25258 "the sparsification was successful before deleting the source image>."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../sparsify/virt-sparsify.pod:41
25263 msgid "The virtual machine I<must be shut down> before using this tool."
25264 msgstr ""
25265
25266 #. type: textblock
25267 #: ../sparsify/virt-sparsify.pod:45
25268 msgid ""
25269 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25270 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25271 "usually much less space is required."
25272 msgstr ""
25273
25274 #. type: textblock
25275 #: ../sparsify/virt-sparsify.pod:51
25276 msgid ""
25277 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../sparsify/virt-sparsify.pod:56
25282 msgid "Virt-sparsify cannot handle encrypted disks."
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../sparsify/virt-sparsify.pod:60
25287 msgid ""
25288 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25289 "this space is often used for critical items like bootloaders so it's not "
25290 "really unused."
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../sparsify/virt-sparsify.pod:66
25295 msgid ""
25296 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25297 "to do this unless we can be sure there is no hibernation data, so at the "
25298 "moment swap partitions are ignored."
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../sparsify/virt-sparsify.pod:72
25303 msgid ""
25304 "You may also want to read the manual pages for the associated tools L<virt-"
25305 "filesystems(1)> and L<virt-df(1)> before starting."
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../sparsify/virt-sparsify.pod:77
25310 msgid "Typical usage is:"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../sparsify/virt-sparsify.pod:79
25315 #, no-wrap
25316 msgid ""
25317 " virt-sparsify indisk outdisk\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: textblock
25322 #: ../sparsify/virt-sparsify.pod:81
25323 msgid ""
25324 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25325 "is created, or overwritten if it already exists.  The format of the input "
25326 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25327 msgstr ""
25328
25329 #. type: textblock
25330 #: ../sparsify/virt-sparsify.pod:86
25331 msgid "To convert between formats, use the I<--convert> option:"
25332 msgstr ""
25333
25334 #. type: verbatim
25335 #: ../sparsify/virt-sparsify.pod:88
25336 #, no-wrap
25337 msgid ""
25338 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25339 "\n"
25340 msgstr ""
25341
25342 #. type: textblock
25343 #: ../sparsify/virt-sparsify.pod:90
25344 msgid ""
25345 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25346 "can find within the source disk image.  You can get it to ignore (don't zero "
25347 "free space on) certain filesystems by doing:"
25348 msgstr ""
25349
25350 #. type: verbatim
25351 #: ../sparsify/virt-sparsify.pod:94
25352 #, no-wrap
25353 msgid ""
25354 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25355 "\n"
25356 msgstr ""
25357
25358 #. type: textblock
25359 #: ../sparsify/virt-sparsify.pod:96
25360 msgid ""
25361 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25362 msgstr ""
25363
25364 #. type: =item
25365 #: ../sparsify/virt-sparsify.pod:107
25366 #, fuzzy
25367 #| msgid "B<--connect URI>"
25368 msgid "B<--convert> raw"
25369 msgstr "B<--connect адреса>"
25370
25371 #. type: =item
25372 #: ../sparsify/virt-sparsify.pod:109
25373 #, fuzzy
25374 #| msgid "B<--format=raw|qcow2|..>"
25375 msgid "B<--convert> qcow2"
25376 msgstr "B<--format=raw|qcow2|..>"
25377
25378 #. type: =item
25379 #: ../sparsify/virt-sparsify.pod:111
25380 msgid "B<--convert> [other formats]"
25381 msgstr ""
25382
25383 #. type: textblock
25384 #: ../sparsify/virt-sparsify.pod:113
25385 msgid ""
25386 "Use C<output-format> as the format for the destination image.  If this is "
25387 "not specified, then the input format is used."
25388 msgstr ""
25389
25390 #. type: textblock
25391 #: ../sparsify/virt-sparsify.pod:116
25392 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../sparsify/virt-sparsify.pod:118
25397 msgid ""
25398 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25399 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25400 msgstr ""
25401
25402 #. type: textblock
25403 #: ../sparsify/virt-sparsify.pod:122
25404 msgid ""
25405 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25406 "sparsify doesn't need to try to guess the input format."
25407 msgstr ""
25408
25409 #. type: =item
25410 #: ../sparsify/virt-sparsify.pod:127
25411 #, fuzzy
25412 #| msgid "B<--format=raw|qcow2|..>"
25413 msgid "B<--format> qcow2"
25414 msgstr "B<--format=raw|qcow2|..>"
25415
25416 #. type: =item
25417 #: ../sparsify/virt-sparsify.pod:135
25418 #, fuzzy
25419 #| msgid "list-filesystems"
25420 msgid "B<--ignore> filesystem"
25421 msgstr "list-filesystems"
25422
25423 #. type: =item
25424 #: ../sparsify/virt-sparsify.pod:137
25425 #, fuzzy
25426 #| msgid "B<--verbose>"
25427 msgid "B<--ignore> volgroup"
25428 msgstr "B<--verbose>"
25429
25430 #. type: textblock
25431 #: ../sparsify/virt-sparsify.pod:139
25432 msgid ""
25433 "Ignore the named filesystem.  Free space on the filesystem will not be "
25434 "zeroed, but existing blocks of zeroes will still be sparsified."
25435 msgstr ""
25436
25437 #. type: textblock
25438 #: ../sparsify/virt-sparsify.pod:142
25439 msgid ""
25440 "In the second form, this ignores the named volume group.  Use the volume "
25441 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25442 msgstr ""
25443
25444 #. type: textblock
25445 #: ../sparsify/virt-sparsify.pod:157
25446 msgid "This disables progress bars and other unnecessary output."
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../sparsify/virt-sparsify.pod:179
25451 msgid ""
25452 "The I<--machine-readable> option can be used to make the output more machine "
25453 "friendly, which is useful when calling virt-sparsify from other programs, "
25454 "GUIs etc."
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../sparsify/virt-sparsify.pod:185
25459 msgid ""
25460 "Firstly use the option on its own to query the capabilities of the virt-"
25461 "sparsify binary.  Typical output looks like this:"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../sparsify/virt-sparsify.pod:188
25466 #, no-wrap
25467 msgid ""
25468 " $ virt-sparsify --machine-readable\n"
25469 " virt-sparsify\n"
25470 " ntfs\n"
25471 " btrfs\n"
25472 "\n"
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../sparsify/virt-sparsify.pod:218
25477 msgid ""
25478 "The calling program should treat messages sent to stderr as error messages.  "
25479 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25480 "fatal error."
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../sparsify/virt-sparsify.pod:224
25485 msgid ""
25486 "All versions of virt-sparsify have supported the I<--machine-readable> "
25487 "option."
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../sparsify/virt-sparsify.pod:238
25492 msgid ""
25493 "Location of the temporary directory used for the potentially large temporary "
25494 "overlay file."
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../sparsify/virt-sparsify.pod:241
25499 msgid ""
25500 "You should ensure there is enough free space in the worst case for a full "
25501 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25502 "to another directory that has enough space."
25503 msgstr ""
25504
25505 #. type: textblock
25506 #: ../sparsify/virt-sparsify.pod:245
25507 #, fuzzy
25508 #| msgid "The default is C<ext2>."
25509 msgid "This defaults to C</tmp>."
25510 msgstr "Типовим значенням є C<ext2>."
25511
25512 #. type: textblock
25513 #: ../sparsify/virt-sparsify.pod:249
25514 msgid ""
25515 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25516 msgstr ""
25517
25518 #. type: textblock
25519 #: ../sparsify/virt-sparsify.pod:253
25520 #, fuzzy
25521 #| msgid ""
25522 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25523 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
25524 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
25525 #| "libguestfs.org/>."
25526 msgid ""
25527 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25528 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25529 "(1)>, L<http://libguestfs.org/>."
25530 msgstr ""
25531 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
25532 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
25533 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25534 "org/>."
25535
25536 #. type: =head2
25537 #: ../src/guestfs-actions.pod:1
25538 msgid "guestfs_add_cdrom"
25539 msgstr ""
25540
25541 #. type: verbatim
25542 #: ../src/guestfs-actions.pod:3
25543 #, no-wrap
25544 msgid ""
25545 " int\n"
25546 " guestfs_add_cdrom (guestfs_h *g,\n"
25547 "                    const char *filename);\n"
25548 "\n"
25549 msgstr ""
25550
25551 #. type: textblock
25552 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
25553 #: ../src/guestfs-actions.pod:270
25554 msgid ""
25555 "I<This function is deprecated.> In new code, use the L</"
25556 "guestfs_add_drive_opts> call instead."
25557 msgstr ""
25558
25559 #. type: textblock
25560 #: ../src/guestfs-actions.pod:24
25561 msgid ""
25562 "This call checks for the existence of C<filename>.  This stops you from "
25563 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25564 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25565 "instead."
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../src/guestfs-actions.pod:31
25570 msgid ""
25571 "If you just want to add an ISO file (often you use this as an efficient way "
25572 "to transfer large files into the guest), then you should probably use "
25573 "C<guestfs_add_drive_ro> instead."
25574 msgstr ""
25575
25576 #. type: textblock
25577 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25578 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
25579 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
25580 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
25581 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
25582 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
25583 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
25584 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
25585 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
25586 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
25587 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
25588 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
25589 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
25590 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
25591 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
25592 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
25593 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
25594 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
25595 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
25596 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
25597 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
25598 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
25599 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
25600 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3802
25601 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:4016
25602 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4043
25603 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4072
25604 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4180
25605 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4217
25606 #: ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4263
25607 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4317
25608 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4371
25609 #: ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4419
25610 #: ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4448
25611 #: ../src/guestfs-actions.pod:4463 ../src/guestfs-actions.pod:4480
25612 #: ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4593
25613 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4657
25614 #: ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4693
25615 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4723
25616 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4754
25617 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4796
25618 #: ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4932
25619 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4982
25620 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5013
25621 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5043
25622 #: ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5073
25623 #: ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5131
25624 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5190
25625 #: ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5221
25626 #: ../src/guestfs-actions.pod:5270 ../src/guestfs-actions.pod:5323
25627 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5413
25628 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5458
25629 #: ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5616
25630 #: ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:5695
25631 #: ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:5745
25632 #: ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5828
25633 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5855
25634 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6163
25635 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6196
25636 #: ../src/guestfs-actions.pod:6208 ../src/guestfs-actions.pod:6222
25637 #: ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6248
25638 #: ../src/guestfs-actions.pod:6264 ../src/guestfs-actions.pod:6285
25639 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6323
25640 #: ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:6371
25641 #: ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6412
25642 #: ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6452
25643 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6488
25644 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6535
25645 #: ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6578
25646 #: ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6618
25647 #: ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6652
25648 #: ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6715
25649 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6778
25650 #: ../src/guestfs-actions.pod:6893 ../src/guestfs-actions.pod:7014
25651 #: ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7039
25652 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7074
25653 #: ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100
25654 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7128
25655 #: ../src/guestfs-actions.pod:7187 ../src/guestfs-actions.pod:7204
25656 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7236
25657 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7266
25658 #: ../src/guestfs-actions.pod:7286 ../src/guestfs-actions.pod:7322
25659 #: ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7377
25660 #: ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7408
25661 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7478
25662 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7609
25663 #: ../src/guestfs-actions.pod:7623 ../src/guestfs-actions.pod:7678
25664 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7736
25665 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7832
25666 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7885
25667 #: ../src/guestfs-actions.pod:7949 ../src/guestfs-actions.pod:7972
25668 #: ../src/guestfs-actions.pod:8001
25669 msgid "This function returns 0 on success or -1 on error."
25670 msgstr ""
25671
25672 #. type: textblock
25673 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25674 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
25675 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
25676 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3809
25677 #: ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:6373
25678 #: ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6639
25679 #: ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7255
25680 #: ../src/guestfs-actions.pod:7778
25681 msgid "(Added in 0.3)"
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:41
25686 msgid "guestfs_add_domain"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:43
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_add_domain (guestfs_h *g,\n"
25695 "                     const char *dom,\n"
25696 "                     ...);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25702 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
25703 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2987
25704 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:5117
25705 #: ../src/guestfs-actions.pod:5334
25706 msgid ""
25707 "You may supply a list of optional arguments to this call.  Use zero or more "
25708 "of the following pairs of parameters, and terminate the list with C<-1> on "
25709 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../src/guestfs-actions.pod:53
25714 #, no-wrap
25715 msgid ""
25716 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25717 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25718 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25719 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25720 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25721 "\n"
25722 msgstr ""
25723
25724 #. type: textblock
25725 #: ../src/guestfs-actions.pod:59
25726 msgid ""
25727 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25728 "It works by connecting to libvirt, requesting the domain and domain XML from "
25729 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25730 "one."
25731 msgstr ""
25732
25733 #. type: textblock
25734 #: ../src/guestfs-actions.pod:94
25735 msgid ""
25736 "The other optional parameters are passed directly through to "
25737 "C<guestfs_add_drive_opts>."
25738 msgstr ""
25739
25740 #. type: textblock
25741 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
25742 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
25743 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
25744 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
25745 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
25746 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
25747 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
25748 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
25749 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3123
25750 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5513
25751 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5951
25752 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7789
25753 #: ../src/guestfs-actions.pod:7802 ../src/guestfs-actions.pod:7815
25754 msgid "On error this function returns -1."
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:99
25759 msgid "(Added in 1.7.4)"
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../src/guestfs-actions.pod:101
25764 msgid "guestfs_add_domain_va"
25765 msgstr ""
25766
25767 #. type: verbatim
25768 #: ../src/guestfs-actions.pod:103
25769 #, no-wrap
25770 msgid ""
25771 " int\n"
25772 " guestfs_add_domain_va (guestfs_h *g,\n"
25773 "                        const char *dom,\n"
25774 "                        va_list args);\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:108
25780 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25785 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
25786 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
25787 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
25788 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
25789 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3083
25790 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:4885
25791 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5157
25792 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5394
25793 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25794 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25795
25796 #. type: =head2
25797 #: ../src/guestfs-actions.pod:112
25798 msgid "guestfs_add_domain_argv"
25799 msgstr "guestfs_add_domain_argv"
25800
25801 #. type: verbatim
25802 #: ../src/guestfs-actions.pod:114
25803 #, no-wrap
25804 msgid ""
25805 " int\n"
25806 " guestfs_add_domain_argv (guestfs_h *g,\n"
25807 "                          const char *dom,\n"
25808 "                          const struct guestfs_add_domain_argv *optargs);\n"
25809 "\n"
25810 msgstr ""
25811
25812 #. type: textblock
25813 #: ../src/guestfs-actions.pod:119
25814 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25815 msgstr ""
25816
25817 #. type: =head2
25818 #: ../src/guestfs-actions.pod:123
25819 msgid "guestfs_add_drive"
25820 msgstr ""
25821
25822 #. type: verbatim
25823 #: ../src/guestfs-actions.pod:125
25824 #, no-wrap
25825 msgid ""
25826 " int\n"
25827 " guestfs_add_drive (guestfs_h *g,\n"
25828 "                    const char *filename);\n"
25829 "\n"
25830 msgstr ""
25831
25832 #. type: textblock
25833 #: ../src/guestfs-actions.pod:129
25834 msgid ""
25835 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25836 "optional parameters, so the disk is added writable, with the format being "
25837 "detected automatically."
25838 msgstr ""
25839
25840 #. type: textblock
25841 #: ../src/guestfs-actions.pod:133
25842 msgid ""
25843 "Automatic detection of the format opens you up to a potential security hole "
25844 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25845 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25846 "you should think about replacing calls to this function with calls to "
25847 "C<guestfs_add_drive_opts>, and specifying the format."
25848 msgstr ""
25849
25850 #. type: =head2
25851 #: ../src/guestfs-actions.pod:144
25852 msgid "guestfs_add_drive_opts"
25853 msgstr ""
25854
25855 #. type: verbatim
25856 #: ../src/guestfs-actions.pod:146
25857 #, no-wrap
25858 msgid ""
25859 " int\n"
25860 " guestfs_add_drive_opts (guestfs_h *g,\n"
25861 "                         const char *filename,\n"
25862 "                         ...);\n"
25863 "\n"
25864 msgstr ""
25865
25866 #. type: verbatim
25867 #: ../src/guestfs-actions.pod:156
25868 #, no-wrap
25869 msgid ""
25870 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25871 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25872 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../src/guestfs-actions.pod:185
25878 msgid ""
25879 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25880 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25881 "Possible formats include C<raw> and C<qcow2>."
25882 msgstr ""
25883
25884 #. type: textblock
25885 #: ../src/guestfs-actions.pod:196
25886 msgid ""
25887 "This rarely-used option lets you emulate the behaviour of the deprecated "
25888 "C<guestfs_add_drive_with_if> call (q.v.)"
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../src/guestfs-actions.pod:203
25893 msgid "(Added in 1.5.23)"
25894 msgstr ""
25895
25896 #. type: =head2
25897 #: ../src/guestfs-actions.pod:205
25898 msgid "guestfs_add_drive_opts_va"
25899 msgstr ""
25900
25901 #. type: verbatim
25902 #: ../src/guestfs-actions.pod:207
25903 #, no-wrap
25904 msgid ""
25905 " int\n"
25906 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25907 "                            const char *filename,\n"
25908 "                            va_list args);\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: textblock
25913 #: ../src/guestfs-actions.pod:212
25914 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../src/guestfs-actions.pod:216
25919 msgid "guestfs_add_drive_opts_argv"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../src/guestfs-actions.pod:218
25924 #, no-wrap
25925 msgid ""
25926 " int\n"
25927 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25928 "                              const char *filename,\n"
25929 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25930 "\n"
25931 msgstr ""
25932
25933 #. type: textblock
25934 #: ../src/guestfs-actions.pod:223
25935 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25936 msgstr ""
25937
25938 #. type: =head2
25939 #: ../src/guestfs-actions.pod:227
25940 msgid "guestfs_add_drive_ro"
25941 msgstr ""
25942
25943 #. type: verbatim
25944 #: ../src/guestfs-actions.pod:229
25945 #, no-wrap
25946 msgid ""
25947 " int\n"
25948 " guestfs_add_drive_ro (guestfs_h *g,\n"
25949 "                       const char *filename);\n"
25950 "\n"
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../src/guestfs-actions.pod:233
25955 msgid ""
25956 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25957 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25958 "disk is added read-only, with the format being detected automatically."
25959 msgstr ""
25960
25961 #. type: textblock
25962 #: ../src/guestfs-actions.pod:240
25963 msgid "(Added in 1.0.38)"
25964 msgstr ""
25965
25966 #. type: =head2
25967 #: ../src/guestfs-actions.pod:242
25968 msgid "guestfs_add_drive_ro_with_if"
25969 msgstr ""
25970
25971 #. type: verbatim
25972 #: ../src/guestfs-actions.pod:244
25973 #, no-wrap
25974 msgid ""
25975 " int\n"
25976 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25977 "                               const char *filename,\n"
25978 "                               const char *iface);\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: textblock
25983 #: ../src/guestfs-actions.pod:256
25984 msgid ""
25985 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25986 "QEMU interface emulation to use at run time."
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
25991 #: ../src/guestfs-actions.pod:2580
25992 msgid "(Added in 1.0.84)"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:263
25997 msgid "guestfs_add_drive_with_if"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:265
26002 #, no-wrap
26003 msgid ""
26004 " int\n"
26005 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26006 "                            const char *filename,\n"
26007 "                            const char *iface);\n"
26008 "\n"
26009 msgstr ""
26010
26011 #. type: textblock
26012 #: ../src/guestfs-actions.pod:277
26013 msgid ""
26014 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26015 "QEMU interface emulation to use at run time."
26016 msgstr ""
26017
26018 #. type: =head2
26019 #: ../src/guestfs-actions.pod:284
26020 msgid "guestfs_aug_clear"
26021 msgstr ""
26022
26023 #. type: verbatim
26024 #: ../src/guestfs-actions.pod:286
26025 #, no-wrap
26026 msgid ""
26027 " int\n"
26028 " guestfs_aug_clear (guestfs_h *g,\n"
26029 "                    const char *augpath);\n"
26030 "\n"
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
26035 msgid "(Added in 1.3.4)"
26036 msgstr ""
26037
26038 #. type: =head2
26039 #: ../src/guestfs-actions.pod:297
26040 msgid "guestfs_aug_close"
26041 msgstr ""
26042
26043 #. type: verbatim
26044 #: ../src/guestfs-actions.pod:299
26045 #, no-wrap
26046 msgid ""
26047 " int\n"
26048 " guestfs_aug_close (guestfs_h *g);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../src/guestfs-actions.pod:302
26054 msgid ""
26055 "Close the current Augeas handle and free up any resources used by it.  After "
26056 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26057 "any other Augeas functions."
26058 msgstr ""
26059
26060 #. type: textblock
26061 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
26062 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
26063 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
26064 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
26065 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
26066 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
26067 #: ../src/guestfs-actions.pod:6002
26068 msgid "(Added in 0.7)"
26069 msgstr ""
26070
26071 #. type: =head2
26072 #: ../src/guestfs-actions.pod:311
26073 msgid "guestfs_aug_defnode"
26074 msgstr ""
26075
26076 #. type: verbatim
26077 #: ../src/guestfs-actions.pod:313
26078 #, no-wrap
26079 msgid ""
26080 " struct guestfs_int_bool *\n"
26081 " guestfs_aug_defnode (guestfs_h *g,\n"
26082 "                      const char *name,\n"
26083 "                      const char *expr,\n"
26084 "                      const char *val);\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:322
26090 msgid ""
26091 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26092 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26093 "containing that single node."
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:330
26098 msgid ""
26099 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26100 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../src/guestfs-actions.pod:336
26105 msgid "guestfs_aug_defvar"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:338
26110 #, no-wrap
26111 msgid ""
26112 " int\n"
26113 " guestfs_aug_defvar (guestfs_h *g,\n"
26114 "                     const char *name,\n"
26115 "                     const char *expr);\n"
26116 "\n"
26117 msgstr ""
26118
26119 #. type: =head2
26120 #: ../src/guestfs-actions.pod:354
26121 msgid "guestfs_aug_get"
26122 msgstr ""
26123
26124 #. type: verbatim
26125 #: ../src/guestfs-actions.pod:356
26126 #, no-wrap
26127 msgid ""
26128 " char *\n"
26129 " guestfs_aug_get (guestfs_h *g,\n"
26130 "                  const char *augpath);\n"
26131 "\n"
26132 msgstr ""
26133
26134 #. type: textblock
26135 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
26136 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
26137 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
26138 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
26139 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
26140 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
26141 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
26142 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
26143 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
26144 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
26145 #: ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2955
26146 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3189
26147 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3238
26148 #: ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3335
26149 #: ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3375
26150 #: ../src/guestfs-actions.pod:4002 ../src/guestfs-actions.pod:4355
26151 #: ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4635
26152 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5730
26153 #: ../src/guestfs-actions.pod:5900 ../src/guestfs-actions.pod:6078
26154 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6799
26155 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6839
26156 #: ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:7537
26157 #: ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7574
26158 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:8065
26159 msgid ""
26160 "This function returns a string, or NULL on error.  I<The caller must free "
26161 "the returned string after use>."
26162 msgstr ""
26163
26164 #. type: =head2
26165 #: ../src/guestfs-actions.pod:368
26166 msgid "guestfs_aug_init"
26167 msgstr ""
26168
26169 #. type: verbatim
26170 #: ../src/guestfs-actions.pod:370
26171 #, no-wrap
26172 msgid ""
26173 " int\n"
26174 " guestfs_aug_init (guestfs_h *g,\n"
26175 "                   const char *root,\n"
26176 "                   int flags);\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: textblock
26181 #: ../src/guestfs-actions.pod:379
26182 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../src/guestfs-actions.pod:404
26187 msgid ""
26188 "This option is only useful when debugging Augeas lenses.  Use of this option "
26189 "may require additional memory for the libguestfs appliance.  You may need to "
26190 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26191 "C<guestfs_set_memsize>."
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../src/guestfs-actions.pod:419
26196 msgid "Do not load the tree in C<guestfs_aug_init>."
26197 msgstr ""
26198
26199 #. type: textblock
26200 #: ../src/guestfs-actions.pod:423
26201 msgid "To close the handle, you can call C<guestfs_aug_close>."
26202 msgstr ""
26203
26204 #. type: =head2
26205 #: ../src/guestfs-actions.pod:431
26206 msgid "guestfs_aug_insert"
26207 msgstr ""
26208
26209 #. type: verbatim
26210 #: ../src/guestfs-actions.pod:433
26211 #, no-wrap
26212 msgid ""
26213 " int\n"
26214 " guestfs_aug_insert (guestfs_h *g,\n"
26215 "                     const char *augpath,\n"
26216 "                     const char *label,\n"
26217 "                     int before);\n"
26218 "\n"
26219 msgstr ""
26220
26221 #. type: =head2
26222 #: ../src/guestfs-actions.pod:451
26223 msgid "guestfs_aug_load"
26224 msgstr ""
26225
26226 #. type: verbatim
26227 #: ../src/guestfs-actions.pod:453
26228 #, no-wrap
26229 msgid ""
26230 " int\n"
26231 " guestfs_aug_load (guestfs_h *g);\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:465
26237 msgid "guestfs_aug_ls"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:467
26242 #, no-wrap
26243 msgid ""
26244 " char **\n"
26245 " guestfs_aug_ls (guestfs_h *g,\n"
26246 "                 const char *augpath);\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../src/guestfs-actions.pod:471
26252 msgid ""
26253 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26254 "sorting the resulting nodes into alphabetical order."
26255 msgstr ""
26256
26257 #. type: textblock
26258 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
26259 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
26260 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
26261 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
26262 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
26263 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
26264 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
26265 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
26266 #: ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:3291
26267 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3885
26268 #: ../src/guestfs-actions.pod:3902 ../src/guestfs-actions.pod:3922
26269 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:4089
26270 #: ../src/guestfs-actions.pod:4497 ../src/guestfs-actions.pod:5254
26271 #: ../src/guestfs-actions.pod:5872 ../src/guestfs-actions.pod:5998
26272 #: ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6879
26273 #: ../src/guestfs-actions.pod:6940 ../src/guestfs-actions.pod:6995
26274 #: ../src/guestfs-actions.pod:7141 ../src/guestfs-actions.pod:7165
26275 #: ../src/guestfs-actions.pod:7641 ../src/guestfs-actions.pod:7661
26276 #: ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7902
26277 #: ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:8015
26278 #: ../src/guestfs-actions.pod:8034 ../src/guestfs-actions.pod:8080
26279 #: ../src/guestfs-actions.pod:8099
26280 msgid ""
26281 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26282 ">), or NULL if there was an error.  I<The caller must free the strings and "
26283 "the array after use>."
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
26288 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
26289 #: ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3680
26290 #: ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4388
26291 #: ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4608
26292 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5258
26293 #: ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6210
26294 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6236
26295 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:7379
26296 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7625
26297 #: ../src/guestfs-actions.pod:7890
26298 msgid "(Added in 0.8)"
26299 msgstr ""
26300
26301 #. type: =head2
26302 #: ../src/guestfs-actions.pod:480
26303 msgid "guestfs_aug_match"
26304 msgstr ""
26305
26306 #. type: verbatim
26307 #: ../src/guestfs-actions.pod:482
26308 #, no-wrap
26309 msgid ""
26310 " char **\n"
26311 " guestfs_aug_match (guestfs_h *g,\n"
26312 "                    const char *augpath);\n"
26313 "\n"
26314 msgstr ""
26315
26316 #. type: =head2
26317 #: ../src/guestfs-actions.pod:496
26318 msgid "guestfs_aug_mv"
26319 msgstr ""
26320
26321 #. type: verbatim
26322 #: ../src/guestfs-actions.pod:498
26323 #, no-wrap
26324 msgid ""
26325 " int\n"
26326 " guestfs_aug_mv (guestfs_h *g,\n"
26327 "                 const char *src,\n"
26328 "                 const char *dest);\n"
26329 "\n"
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:510
26334 msgid "guestfs_aug_rm"
26335 msgstr ""
26336
26337 #. type: verbatim
26338 #: ../src/guestfs-actions.pod:512
26339 #, no-wrap
26340 msgid ""
26341 " int\n"
26342 " guestfs_aug_rm (guestfs_h *g,\n"
26343 "                 const char *augpath);\n"
26344 "\n"
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:524
26349 msgid "guestfs_aug_save"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:526
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_aug_save (guestfs_h *g);\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:531
26363 msgid ""
26364 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26365 "are saved."
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../src/guestfs-actions.pod:538
26370 msgid "guestfs_aug_set"
26371 msgstr ""
26372
26373 #. type: verbatim
26374 #: ../src/guestfs-actions.pod:540
26375 #, no-wrap
26376 msgid ""
26377 " int\n"
26378 " guestfs_aug_set (guestfs_h *g,\n"
26379 "                  const char *augpath,\n"
26380 "                  const char *val);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: textblock
26385 #: ../src/guestfs-actions.pod:547
26386 msgid ""
26387 "In the Augeas API, it is possible to clear a node by setting the value to "
26388 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26389 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:556
26394 msgid "guestfs_available"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:558
26399 #, no-wrap
26400 msgid ""
26401 " int\n"
26402 " guestfs_available (guestfs_h *g,\n"
26403 "                    char *const *groups);\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: textblock
26408 #: ../src/guestfs-actions.pod:566
26409 msgid ""
26410 "The libguestfs groups, and the functions that those groups correspond to, "
26411 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26412 "runtime by calling C<guestfs_available_all_groups>."
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../src/guestfs-actions.pod:590
26417 msgid "You must call C<guestfs_launch> before calling this function."
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:612
26422 msgid ""
26423 "This call was added in version C<1.0.80>.  In previous versions of "
26424 "libguestfs all you could do would be to speculatively execute a command to "
26425 "find out if the daemon implemented it.  See also C<guestfs_version>."
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
26430 msgid "(Added in 1.0.80)"
26431 msgstr ""
26432
26433 #. type: =head2
26434 #: ../src/guestfs-actions.pod:623
26435 msgid "guestfs_available_all_groups"
26436 msgstr ""
26437
26438 #. type: verbatim
26439 #: ../src/guestfs-actions.pod:625
26440 #, no-wrap
26441 msgid ""
26442 " char **\n"
26443 " guestfs_available_all_groups (guestfs_h *g);\n"
26444 "\n"
26445 msgstr ""
26446
26447 #. type: textblock
26448 #: ../src/guestfs-actions.pod:628
26449 msgid ""
26450 "This command returns a list of all optional groups that this daemon knows "
26451 "about.  Note this returns both supported and unsupported groups.  To find "
26452 "out which ones the daemon can actually support you have to call "
26453 "C<guestfs_available> on each member of the returned list."
26454 msgstr ""
26455
26456 #. type: textblock
26457 #: ../src/guestfs-actions.pod:634
26458 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../src/guestfs-actions.pod:640
26463 msgid "(Added in 1.3.15)"
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:642
26468 msgid "guestfs_base64_in"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:644
26473 #, no-wrap
26474 msgid ""
26475 " int\n"
26476 " guestfs_base64_in (guestfs_h *g,\n"
26477 "                    const char *base64file,\n"
26478 "                    const char *filename);\n"
26479 "\n"
26480 msgstr ""
26481
26482 #. type: textblock
26483 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
26484 msgid "(Added in 1.3.5)"
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../src/guestfs-actions.pod:656
26489 msgid "guestfs_base64_out"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../src/guestfs-actions.pod:658
26494 #, no-wrap
26495 msgid ""
26496 " int\n"
26497 " guestfs_base64_out (guestfs_h *g,\n"
26498 "                     const char *filename,\n"
26499 "                     const char *base64file);\n"
26500 "\n"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:670
26505 msgid "guestfs_blockdev_flushbufs"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:672
26510 #, no-wrap
26511 msgid ""
26512 " int\n"
26513 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26514 "                             const char *device);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
26520 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
26521 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
26522 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26523 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
26524 msgid "(Added in 0.9.3)"
26525 msgstr ""
26526
26527 #. type: =head2
26528 #: ../src/guestfs-actions.pod:685
26529 msgid "guestfs_blockdev_getbsz"
26530 msgstr ""
26531
26532 #. type: verbatim
26533 #: ../src/guestfs-actions.pod:687
26534 #, no-wrap
26535 msgid ""
26536 " int\n"
26537 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26538 "                          const char *device);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:702
26544 msgid "guestfs_blockdev_getro"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:704
26549 #, no-wrap
26550 msgid ""
26551 " int\n"
26552 " guestfs_blockdev_getro (guestfs_h *g,\n"
26553 "                         const char *device);\n"
26554 "\n"
26555 msgstr ""
26556
26557 #. type: textblock
26558 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
26559 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
26560 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
26561 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
26562 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
26563 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3392
26564 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
26565 #: ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3602
26566 #: ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3631
26567 #: ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:3662
26568 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3692
26569 #: ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:3719
26570 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3749
26571 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3776
26572 #: ../src/guestfs-actions.pod:5495
26573 msgid "This function returns a C truth value on success or -1 on error."
26574 msgstr ""
26575
26576 #. type: =head2
26577 #: ../src/guestfs-actions.pod:717
26578 msgid "guestfs_blockdev_getsize64"
26579 msgstr ""
26580
26581 #. type: verbatim
26582 #: ../src/guestfs-actions.pod:719
26583 #, no-wrap
26584 msgid ""
26585 " int64_t\n"
26586 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26587 "                             const char *device);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:725
26593 msgid "See also C<guestfs_blockdev_getsz>."
26594 msgstr ""
26595
26596 #. type: =head2
26597 #: ../src/guestfs-actions.pod:733
26598 msgid "guestfs_blockdev_getss"
26599 msgstr ""
26600
26601 #. type: verbatim
26602 #: ../src/guestfs-actions.pod:735
26603 #, no-wrap
26604 msgid ""
26605 " int\n"
26606 " guestfs_blockdev_getss (guestfs_h *g,\n"
26607 "                         const char *device);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:742
26613 msgid ""
26614 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26615 "that)."
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:751
26620 msgid "guestfs_blockdev_getsz"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:753
26625 #, no-wrap
26626 msgid ""
26627 " int64_t\n"
26628 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26629 "                         const char *device);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: textblock
26634 #: ../src/guestfs-actions.pod:760
26635 msgid ""
26636 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26637 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:770
26642 msgid "guestfs_blockdev_rereadpt"
26643 msgstr ""
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:772
26647 #, no-wrap
26648 msgid ""
26649 " int\n"
26650 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26651 "                            const char *device);\n"
26652 "\n"
26653 msgstr ""
26654
26655 #. type: =head2
26656 #: ../src/guestfs-actions.pod:784
26657 msgid "guestfs_blockdev_setbsz"
26658 msgstr ""
26659
26660 #. type: verbatim
26661 #: ../src/guestfs-actions.pod:786
26662 #, no-wrap
26663 msgid ""
26664 " int\n"
26665 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26666 "                          const char *device,\n"
26667 "                          int blocksize);\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../src/guestfs-actions.pod:802
26673 msgid "guestfs_blockdev_setro"
26674 msgstr ""
26675
26676 #. type: verbatim
26677 #: ../src/guestfs-actions.pod:804
26678 #, no-wrap
26679 msgid ""
26680 " int\n"
26681 " guestfs_blockdev_setro (guestfs_h *g,\n"
26682 "                         const char *device);\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../src/guestfs-actions.pod:816
26688 msgid "guestfs_blockdev_setrw"
26689 msgstr ""
26690
26691 #. type: verbatim
26692 #: ../src/guestfs-actions.pod:818
26693 #, no-wrap
26694 msgid ""
26695 " int\n"
26696 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26697 "                         const char *device);\n"
26698 "\n"
26699 msgstr ""
26700
26701 #. type: =head2
26702 #: ../src/guestfs-actions.pod:830
26703 msgid "guestfs_btrfs_filesystem_resize"
26704 msgstr ""
26705
26706 #. type: verbatim
26707 #: ../src/guestfs-actions.pod:832
26708 #, no-wrap
26709 msgid ""
26710 " int\n"
26711 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26712 "                                  const char *mountpoint,\n"
26713 "                                  ...);\n"
26714 "\n"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../src/guestfs-actions.pod:842
26719 #, no-wrap
26720 msgid ""
26721 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:865
26727 msgid "(Added in 1.11.17)"
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../src/guestfs-actions.pod:867
26732 msgid "guestfs_btrfs_filesystem_resize_va"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../src/guestfs-actions.pod:869
26737 #, no-wrap
26738 msgid ""
26739 " int\n"
26740 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26741 "                                     const char *mountpoint,\n"
26742 "                                     va_list args);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:874
26748 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26749 msgstr ""
26750
26751 #. type: =head2
26752 #: ../src/guestfs-actions.pod:878
26753 msgid "guestfs_btrfs_filesystem_resize_argv"
26754 msgstr ""
26755
26756 #. type: verbatim
26757 #: ../src/guestfs-actions.pod:880
26758 #, no-wrap
26759 msgid ""
26760 " int\n"
26761 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26762 "                                       const char *mountpoint,\n"
26763 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26764 "\n"
26765 msgstr ""
26766
26767 #. type: textblock
26768 #: ../src/guestfs-actions.pod:885
26769 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26770 msgstr ""
26771
26772 #. type: =head2
26773 #: ../src/guestfs-actions.pod:889
26774 msgid "guestfs_case_sensitive_path"
26775 msgstr ""
26776
26777 #. type: verbatim
26778 #: ../src/guestfs-actions.pod:891
26779 #, no-wrap
26780 msgid ""
26781 " char *\n"
26782 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26783 "                              const char *path);\n"
26784 "\n"
26785 msgstr ""
26786
26787 #. type: textblock
26788 #: ../src/guestfs-actions.pod:917
26789 msgid ""
26790 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26791 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26792 "how the directories were originally created under Windows)."
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../src/guestfs-actions.pod:925
26797 msgid "See also C<guestfs_realpath>."
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7559
26802 msgid "(Added in 1.0.75)"
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:932
26807 msgid "guestfs_cat"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:934
26812 #, no-wrap
26813 msgid ""
26814 " char *\n"
26815 " guestfs_cat (guestfs_h *g,\n"
26816 "              const char *path);\n"
26817 "\n"
26818 msgstr ""
26819
26820 #. type: textblock
26821 #: ../src/guestfs-actions.pod:940
26822 msgid ""
26823 "Note that this function cannot correctly handle binary files (specifically, "
26824 "files containing C<\\0> character which is treated as end of string).  For "
26825 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26826 "functions which have a more complex interface."
26827 msgstr ""
26828
26829 #. type: textblock
26830 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3906
26831 #: ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4005
26832 #: ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4501
26833 #: ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:5876
26834 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7712
26835 #: ../src/guestfs-actions.pod:7726
26836 msgid "(Added in 0.4)"
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../src/guestfs-actions.pod:953
26841 msgid "guestfs_checksum"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../src/guestfs-actions.pod:955
26846 #, no-wrap
26847 msgid ""
26848 " char *\n"
26849 " guestfs_checksum (guestfs_h *g,\n"
26850 "                   const char *csumtype,\n"
26851 "                   const char *path);\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: textblock
26856 #: ../src/guestfs-actions.pod:1001
26857 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:1003
26862 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26863 msgstr ""
26864
26865 #. type: textblock
26866 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
26867 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3604
26868 #: ../src/guestfs-actions.pod:3633 ../src/guestfs-actions.pod:3694
26869 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:7415
26870 msgid "(Added in 1.0.2)"
26871 msgstr ""
26872
26873 #. type: =head2
26874 #: ../src/guestfs-actions.pod:1010
26875 msgid "guestfs_checksum_device"
26876 msgstr ""
26877
26878 #. type: verbatim
26879 #: ../src/guestfs-actions.pod:1012
26880 #, no-wrap
26881 msgid ""
26882 " char *\n"
26883 " guestfs_checksum_device (guestfs_h *g,\n"
26884 "                          const char *csumtype,\n"
26885 "                          const char *device);\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: textblock
26890 #: ../src/guestfs-actions.pod:1017
26891 msgid ""
26892 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26893 "device named C<device>.  For the types of checksums supported see the "
26894 "C<guestfs_checksum> command."
26895 msgstr ""
26896
26897 #. type: textblock
26898 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5325
26899 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5497
26900 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
26901 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7338
26902 #: ../src/guestfs-actions.pod:7738
26903 msgid "(Added in 1.3.2)"
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:1026
26908 msgid "guestfs_checksums_out"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:1028
26913 #, no-wrap
26914 msgid ""
26915 " int\n"
26916 " guestfs_checksums_out (guestfs_h *g,\n"
26917 "                        const char *csumtype,\n"
26918 "                        const char *directory,\n"
26919 "                        const char *sumsfile);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: textblock
26924 #: ../src/guestfs-actions.pod:1048
26925 msgid "(Added in 1.3.7)"
26926 msgstr ""
26927
26928 #. type: =head2
26929 #: ../src/guestfs-actions.pod:1050
26930 msgid "guestfs_chmod"
26931 msgstr ""
26932
26933 #. type: verbatim
26934 #: ../src/guestfs-actions.pod:1052
26935 #, no-wrap
26936 msgid ""
26937 " int\n"
26938 " guestfs_chmod (guestfs_h *g,\n"
26939 "                int mode,\n"
26940 "                const char *path);\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../src/guestfs-actions.pod:1070
26946 msgid "guestfs_chown"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../src/guestfs-actions.pod:1072
26951 #, no-wrap
26952 msgid ""
26953 " int\n"
26954 " guestfs_chown (guestfs_h *g,\n"
26955 "                int owner,\n"
26956 "                int group,\n"
26957 "                const char *path);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: =head2
26962 #: ../src/guestfs-actions.pod:1088
26963 msgid "guestfs_command"
26964 msgstr ""
26965
26966 #. type: verbatim
26967 #: ../src/guestfs-actions.pod:1090
26968 #, no-wrap
26969 msgid ""
26970 " char *\n"
26971 " guestfs_command (guestfs_h *g,\n"
26972 "                  char *const *arguments);\n"
26973 "\n"
26974 msgstr ""
26975
26976 #. type: textblock
26977 #: ../src/guestfs-actions.pod:1099
26978 msgid ""
26979 "The single parameter is an argv-style list of arguments.  The first element "
26980 "is the name of the program to run.  Subsequent elements are parameters.  The "
26981 "list must be non-empty (ie. must contain a program name).  Note that the "
26982 "command runs directly, and is I<not> invoked via the shell (see "
26983 "C<guestfs_sh>)."
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
26988 #: ../src/guestfs-actions.pod:1726
26989 msgid "(Added in 0.9.1)"
26990 msgstr ""
26991
26992 #. type: =head2
26993 #: ../src/guestfs-actions.pod:1132
26994 msgid "guestfs_command_lines"
26995 msgstr ""
26996
26997 #. type: verbatim
26998 #: ../src/guestfs-actions.pod:1134
26999 #, no-wrap
27000 msgid ""
27001 " char **\n"
27002 " guestfs_command_lines (guestfs_h *g,\n"
27003 "                        char *const *arguments);\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:1138
27009 msgid ""
27010 "This is the same as C<guestfs_command>, but splits the result into a list of "
27011 "lines."
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../src/guestfs-actions.pod:1141
27016 msgid "See also: C<guestfs_sh_lines>"
27017 msgstr ""
27018
27019 #. type: =head2
27020 #: ../src/guestfs-actions.pod:1152
27021 #, fuzzy
27022 #| msgid "guestfs_zero_device"
27023 msgid "guestfs_compress_device_out"
27024 msgstr "guestfs_zero_device"
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:1154
27028 #, fuzzy, no-wrap
27029 #| msgid ""
27030 #| " int\n"
27031 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
27032 #| "                             const char *device,\n"
27033 #| "                             const char *key,\n"
27034 #| "                             int keyslot,\n"
27035 #| "                             const char *cipher);\n"
27036 #| "\n"
27037 msgid ""
27038 " int\n"
27039 " guestfs_compress_device_out (guestfs_h *g,\n"
27040 "                              const char *ctype,\n"
27041 "                              const char *device,\n"
27042 "                              const char *zdevice,\n"
27043 "                              ...);\n"
27044 "\n"
27045 msgstr ""
27046 " int\n"
27047 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27048 "                             const char *device,\n"
27049 "                             const char *key,\n"
27050 "                             int keyslot,\n"
27051 "                             const char *cipher);\n"
27052 "\n"
27053
27054 #. type: verbatim
27055 #: ../src/guestfs-actions.pod:1166
27056 #, no-wrap
27057 msgid ""
27058 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27059 "\n"
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:1171
27064 msgid ""
27065 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27066 "C<guestfs_compress_out>."
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
27071 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6596
27072 #, fuzzy
27073 #| msgid "(Added in 1.3.1)"
27074 msgid "(Added in 1.13.15)"
27075 msgstr "(Додано у 1.3.1)"
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:1178
27079 #, fuzzy
27080 #| msgid "guestfs_zero_device"
27081 msgid "guestfs_compress_device_out_va"
27082 msgstr "guestfs_zero_device"
27083
27084 #. type: verbatim
27085 #: ../src/guestfs-actions.pod:1180
27086 #, fuzzy, no-wrap
27087 #| msgid ""
27088 #| " int\n"
27089 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
27090 #| "                             const char *device,\n"
27091 #| "                             const char *key,\n"
27092 #| "                             int keyslot,\n"
27093 #| "                             const char *cipher);\n"
27094 #| "\n"
27095 msgid ""
27096 " int\n"
27097 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27098 "                                 const char *ctype,\n"
27099 "                                 const char *device,\n"
27100 "                                 const char *zdevice,\n"
27101 "                                 va_list args);\n"
27102 "\n"
27103 msgstr ""
27104 " int\n"
27105 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27106 "                             const char *device,\n"
27107 "                             const char *key,\n"
27108 "                             int keyslot,\n"
27109 "                             const char *cipher);\n"
27110 "\n"
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:1187
27114 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27115 msgstr ""
27116
27117 #. type: =head2
27118 #: ../src/guestfs-actions.pod:1191
27119 #, fuzzy
27120 #| msgid "guestfs_mkfs_opts_argv"
27121 msgid "guestfs_compress_device_out_argv"
27122 msgstr "guestfs_mkfs_opts_argv"
27123
27124 #. type: verbatim
27125 #: ../src/guestfs-actions.pod:1193
27126 #, fuzzy, no-wrap
27127 #| msgid ""
27128 #| " int\n"
27129 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27130 #| "                         const char *fstype,\n"
27131 #| "                         const char *device,\n"
27132 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27133 #| "\n"
27134 msgid ""
27135 " int\n"
27136 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27137 "                                   const char *ctype,\n"
27138 "                                   const char *device,\n"
27139 "                                   const char *zdevice,\n"
27140 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27141 "\n"
27142 msgstr ""
27143 " int\n"
27144 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27145 "                         const char *fstype,\n"
27146 "                         const char *device,\n"
27147 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27148 "\n"
27149
27150 #. type: textblock
27151 #: ../src/guestfs-actions.pod:1200
27152 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27153 msgstr ""
27154
27155 #. type: =head2
27156 #: ../src/guestfs-actions.pod:1204
27157 #, fuzzy
27158 #| msgid "guestfs_create"
27159 msgid "guestfs_compress_out"
27160 msgstr "guestfs_create"
27161
27162 #. type: verbatim
27163 #: ../src/guestfs-actions.pod:1206
27164 #, fuzzy, no-wrap
27165 #| msgid ""
27166 #| " int\n"
27167 #| " guestfs_luks_add_key (guestfs_h *g,\n"
27168 #| "                       const char *device,\n"
27169 #| "                       const char *key,\n"
27170 #| "                       const char *newkey,\n"
27171 #| "                       int keyslot);\n"
27172 #| "\n"
27173 msgid ""
27174 " int\n"
27175 " guestfs_compress_out (guestfs_h *g,\n"
27176 "                       const char *ctype,\n"
27177 "                       const char *file,\n"
27178 "                       const char *zfile,\n"
27179 "                       ...);\n"
27180 "\n"
27181 msgstr ""
27182 " int\n"
27183 " guestfs_luks_add_key (guestfs_h *g,\n"
27184 "                       const char *device,\n"
27185 "                       const char *key,\n"
27186 "                       const char *newkey,\n"
27187 "                       int keyslot);\n"
27188 "\n"
27189
27190 #. type: verbatim
27191 #: ../src/guestfs-actions.pod:1218
27192 #, no-wrap
27193 msgid ""
27194 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:1237
27200 #, fuzzy
27201 #| msgid "guestfs_mkfs_opts_va"
27202 msgid "guestfs_compress_out_va"
27203 msgstr "guestfs_mkfs_opts_va"
27204
27205 #. type: verbatim
27206 #: ../src/guestfs-actions.pod:1239
27207 #, fuzzy, no-wrap
27208 #| msgid ""
27209 #| " int\n"
27210 #| " guestfs_luks_add_key (guestfs_h *g,\n"
27211 #| "                       const char *device,\n"
27212 #| "                       const char *key,\n"
27213 #| "                       const char *newkey,\n"
27214 #| "                       int keyslot);\n"
27215 #| "\n"
27216 msgid ""
27217 " int\n"
27218 " guestfs_compress_out_va (guestfs_h *g,\n"
27219 "                          const char *ctype,\n"
27220 "                          const char *file,\n"
27221 "                          const char *zfile,\n"
27222 "                          va_list args);\n"
27223 "\n"
27224 msgstr ""
27225 " int\n"
27226 " guestfs_luks_add_key (guestfs_h *g,\n"
27227 "                       const char *device,\n"
27228 "                       const char *key,\n"
27229 "                       const char *newkey,\n"
27230 "                       int keyslot);\n"
27231 "\n"
27232
27233 #. type: textblock
27234 #: ../src/guestfs-actions.pod:1246
27235 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27236 msgstr ""
27237
27238 #. type: =head2
27239 #: ../src/guestfs-actions.pod:1250
27240 #, fuzzy
27241 #| msgid "guestfs_mkfs_opts_argv"
27242 msgid "guestfs_compress_out_argv"
27243 msgstr "guestfs_mkfs_opts_argv"
27244
27245 #. type: verbatim
27246 #: ../src/guestfs-actions.pod:1252
27247 #, fuzzy, no-wrap
27248 #| msgid ""
27249 #| " int\n"
27250 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27251 #| "                         const char *fstype,\n"
27252 #| "                         const char *device,\n"
27253 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27254 #| "\n"
27255 msgid ""
27256 " int\n"
27257 " guestfs_compress_out_argv (guestfs_h *g,\n"
27258 "                            const char *ctype,\n"
27259 "                            const char *file,\n"
27260 "                            const char *zfile,\n"
27261 "                            const struct guestfs_compress_out_argv *optargs);\n"
27262 "\n"
27263 msgstr ""
27264 " int\n"
27265 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27266 "                         const char *fstype,\n"
27267 "                         const char *device,\n"
27268 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27269 "\n"
27270
27271 #. type: textblock
27272 #: ../src/guestfs-actions.pod:1259
27273 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../src/guestfs-actions.pod:1263
27278 msgid "guestfs_config"
27279 msgstr ""
27280
27281 #. type: verbatim
27282 #: ../src/guestfs-actions.pod:1265
27283 #, no-wrap
27284 msgid ""
27285 " int\n"
27286 " guestfs_config (guestfs_h *g,\n"
27287 "                 const char *qemuparam,\n"
27288 "                 const char *qemuvalue);\n"
27289 "\n"
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:1283
27294 msgid "guestfs_copy_size"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:1285
27299 #, no-wrap
27300 msgid ""
27301 " int\n"
27302 " guestfs_copy_size (guestfs_h *g,\n"
27303 "                    const char *src,\n"
27304 "                    const char *dest,\n"
27305 "                    int64_t size);\n"
27306 "\n"
27307 msgstr ""
27308
27309 #. type: textblock
27310 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
27311 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
27312 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
27313 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:7410
27314 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7951
27315 #: ../src/guestfs-actions.pod:7974
27316 msgid ""
27317 "This long-running command can generate progress notification messages so "
27318 "that the caller can display a progress bar or indicator.  To receive these "
27319 "messages, the caller must register a progress event callback.  See L<guestfs"
27320 "(3)/GUESTFS_EVENT_PROGRESS>."
27321 msgstr ""
27322
27323 #. type: textblock
27324 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4528
27325 #: ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:7645
27326 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7751
27327 msgid "(Added in 1.0.87)"
27328 msgstr ""
27329
27330 #. type: =head2
27331 #: ../src/guestfs-actions.pod:1306
27332 msgid "guestfs_cp"
27333 msgstr ""
27334
27335 #. type: verbatim
27336 #: ../src/guestfs-actions.pod:1308
27337 #, no-wrap
27338 msgid ""
27339 " int\n"
27340 " guestfs_cp (guestfs_h *g,\n"
27341 "             const char *src,\n"
27342 "             const char *dest);\n"
27343 "\n"
27344 msgstr ""
27345
27346 #. type: textblock
27347 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
27348 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
27349 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5272
27350 #: ../src/guestfs-actions.pod:5747
27351 msgid "(Added in 1.0.18)"
27352 msgstr ""
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:1320
27356 msgid "guestfs_cp_a"
27357 msgstr ""
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:1322
27361 #, no-wrap
27362 msgid ""
27363 " int\n"
27364 " guestfs_cp_a (guestfs_h *g,\n"
27365 "               const char *src,\n"
27366 "               const char *dest);\n"
27367 "\n"
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:1334
27372 msgid "guestfs_dd"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:1336
27377 #, no-wrap
27378 msgid ""
27379 " int\n"
27380 " guestfs_dd (guestfs_h *g,\n"
27381 "             const char *src,\n"
27382 "             const char *dest);\n"
27383 "\n"
27384 msgstr ""
27385
27386 #. type: textblock
27387 #: ../src/guestfs-actions.pod:1346
27388 msgid ""
27389 "If the destination is a device, it must be as large or larger than the "
27390 "source file or device, otherwise the copy will fail.  This command cannot do "
27391 "partial copies (see C<guestfs_copy_size>)."
27392 msgstr ""
27393
27394 #. type: =head2
27395 #: ../src/guestfs-actions.pod:1354
27396 msgid "guestfs_df"
27397 msgstr ""
27398
27399 #. type: verbatim
27400 #: ../src/guestfs-actions.pod:1356
27401 #, no-wrap
27402 msgid ""
27403 " char *\n"
27404 " guestfs_df (guestfs_h *g);\n"
27405 "\n"
27406 msgstr ""
27407
27408 #. type: textblock
27409 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
27410 msgid ""
27411 "This command is mostly useful for interactive sessions.  It is I<not> "
27412 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27413 "from programs."
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
27418 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
27419 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
27420 #: ../src/guestfs-actions.pod:4638 ../src/guestfs-actions.pod:5172
27421 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7172
27422 #: ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
27423 #: ../src/guestfs-actions.pod:7817
27424 msgid "(Added in 1.0.54)"
27425 msgstr ""
27426
27427 #. type: =head2
27428 #: ../src/guestfs-actions.pod:1370
27429 msgid "guestfs_df_h"
27430 msgstr ""
27431
27432 #. type: verbatim
27433 #: ../src/guestfs-actions.pod:1372
27434 #, no-wrap
27435 msgid ""
27436 " char *\n"
27437 " guestfs_df_h (guestfs_h *g);\n"
27438 "\n"
27439 msgstr ""
27440
27441 #. type: =head2
27442 #: ../src/guestfs-actions.pod:1387
27443 msgid "guestfs_dmesg"
27444 msgstr ""
27445
27446 #. type: verbatim
27447 #: ../src/guestfs-actions.pod:1389
27448 #, no-wrap
27449 msgid ""
27450 " char *\n"
27451 " guestfs_dmesg (guestfs_h *g);\n"
27452 "\n"
27453 msgstr ""
27454
27455 #. type: textblock
27456 #: ../src/guestfs-actions.pod:1396
27457 msgid ""
27458 "Another way to get the same information is to enable verbose messages with "
27459 "C<guestfs_set_verbose> or by setting the environment variable "
27460 "C<LIBGUESTFS_DEBUG=1> before running the program."
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../src/guestfs-actions.pod:1406
27465 msgid "guestfs_download"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../src/guestfs-actions.pod:1408
27470 #, no-wrap
27471 msgid ""
27472 " int\n"
27473 " guestfs_download (guestfs_h *g,\n"
27474 "                   const char *remotefilename,\n"
27475 "                   const char *filename);\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:1418
27481 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27482 msgstr ""
27483
27484 #. type: =head2
27485 #: ../src/guestfs-actions.pod:1429
27486 msgid "guestfs_download_offset"
27487 msgstr ""
27488
27489 #. type: verbatim
27490 #: ../src/guestfs-actions.pod:1431
27491 #, no-wrap
27492 msgid ""
27493 " int\n"
27494 " guestfs_download_offset (guestfs_h *g,\n"
27495 "                          const char *remotefilename,\n"
27496 "                          const char *filename,\n"
27497 "                          int64_t offset,\n"
27498 "                          int64_t size);\n"
27499 "\n"
27500 msgstr ""
27501
27502 #. type: textblock
27503 #: ../src/guestfs-actions.pod:1444
27504 msgid ""
27505 "Note that there is no limit on the amount of data that can be downloaded "
27506 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27507 "full amount unless an error occurs."
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:1449
27512 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27513 msgstr ""
27514
27515 #. type: textblock
27516 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7449
27517 msgid "(Added in 1.5.17)"
27518 msgstr ""
27519
27520 #. type: =head2
27521 #: ../src/guestfs-actions.pod:1460
27522 msgid "guestfs_drop_caches"
27523 msgstr ""
27524
27525 #. type: verbatim
27526 #: ../src/guestfs-actions.pod:1462
27527 #, no-wrap
27528 msgid ""
27529 " int\n"
27530 " guestfs_drop_caches (guestfs_h *g,\n"
27531 "                      int whattodrop);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: =head2
27536 #: ../src/guestfs-actions.pod:1480
27537 msgid "guestfs_du"
27538 msgstr ""
27539
27540 #. type: verbatim
27541 #: ../src/guestfs-actions.pod:1482
27542 #, no-wrap
27543 msgid ""
27544 " int64_t\n"
27545 " guestfs_du (guestfs_h *g,\n"
27546 "             const char *path);\n"
27547 "\n"
27548 msgstr ""
27549
27550 #. type: =head2
27551 #: ../src/guestfs-actions.pod:1505
27552 msgid "guestfs_e2fsck_f"
27553 msgstr ""
27554
27555 #. type: verbatim
27556 #: ../src/guestfs-actions.pod:1507
27557 #, no-wrap
27558 msgid ""
27559 " int\n"
27560 " guestfs_e2fsck_f (guestfs_h *g,\n"
27561 "                   const char *device);\n"
27562 "\n"
27563 msgstr ""
27564
27565 #. type: textblock
27566 #: ../src/guestfs-actions.pod:1515
27567 msgid ""
27568 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27569 "Normally you should use C<guestfs_fsck>."
27570 msgstr ""
27571
27572 #. type: textblock
27573 #: ../src/guestfs-actions.pod:1520
27574 msgid "(Added in 1.0.29)"
27575 msgstr ""
27576
27577 #. type: =head2
27578 #: ../src/guestfs-actions.pod:1522
27579 msgid "guestfs_echo_daemon"
27580 msgstr ""
27581
27582 #. type: verbatim
27583 #: ../src/guestfs-actions.pod:1524
27584 #, no-wrap
27585 msgid ""
27586 " char *\n"
27587 " guestfs_echo_daemon (guestfs_h *g,\n"
27588 "                      char *const *words);\n"
27589 "\n"
27590 msgstr ""
27591
27592 #. type: textblock
27593 #: ../src/guestfs-actions.pod:1533
27594 msgid "See also C<guestfs_ping_daemon>."
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
27599 #: ../src/guestfs-actions.pod:6620
27600 msgid "(Added in 1.0.69)"
27601 msgstr ""
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:1540
27605 msgid "guestfs_egrep"
27606 msgstr ""
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:1542
27610 #, no-wrap
27611 msgid ""
27612 " char **\n"
27613 " guestfs_egrep (guestfs_h *g,\n"
27614 "                const char *regex,\n"
27615 "                const char *path);\n"
27616 "\n"
27617 msgstr ""
27618
27619 #. type: textblock
27620 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
27621 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
27622 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
27623 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
27624 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
27625 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
27626 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4018
27627 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4045
27628 #: ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:5060
27629 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6130
27630 #: ../src/guestfs-actions.pod:7016 ../src/guestfs-actions.pod:7028
27631 #: ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7054
27632 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089
27633 #: ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7115
27634 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928
27635 #: ../src/guestfs-actions.pod:8022 ../src/guestfs-actions.pod:8041
27636 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8106
27637 msgid "(Added in 1.0.66)"
27638 msgstr ""
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:1559
27642 msgid "guestfs_egrepi"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:1561
27647 #, no-wrap
27648 msgid ""
27649 " char **\n"
27650 " guestfs_egrepi (guestfs_h *g,\n"
27651 "                 const char *regex,\n"
27652 "                 const char *path);\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: =head2
27657 #: ../src/guestfs-actions.pod:1578
27658 msgid "guestfs_equal"
27659 msgstr ""
27660
27661 #. type: verbatim
27662 #: ../src/guestfs-actions.pod:1580
27663 #, no-wrap
27664 msgid ""
27665 " int\n"
27666 " guestfs_equal (guestfs_h *g,\n"
27667 "                const char *file1,\n"
27668 "                const char *file2);\n"
27669 "\n"
27670 msgstr ""
27671
27672 #. type: =head2
27673 #: ../src/guestfs-actions.pod:1594
27674 msgid "guestfs_exists"
27675 msgstr ""
27676
27677 #. type: verbatim
27678 #: ../src/guestfs-actions.pod:1596
27679 #, no-wrap
27680 msgid ""
27681 " int\n"
27682 " guestfs_exists (guestfs_h *g,\n"
27683 "                 const char *path);\n"
27684 "\n"
27685 msgstr ""
27686
27687 #. type: textblock
27688 #: ../src/guestfs-actions.pod:1603
27689 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27690 msgstr ""
27691
27692 #. type: =head2
27693 #: ../src/guestfs-actions.pod:1609
27694 msgid "guestfs_fallocate"
27695 msgstr ""
27696
27697 #. type: verbatim
27698 #: ../src/guestfs-actions.pod:1611
27699 #, no-wrap
27700 msgid ""
27701 " int\n"
27702 " guestfs_fallocate (guestfs_h *g,\n"
27703 "                    const char *path,\n"
27704 "                    int len);\n"
27705 "\n"
27706 msgstr ""
27707
27708 #. type: textblock
27709 #: ../src/guestfs-actions.pod:1616
27710 msgid ""
27711 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27712 "call instead."
27713 msgstr ""
27714
27715 #. type: =head2
27716 #: ../src/guestfs-actions.pod:1635
27717 msgid "guestfs_fallocate64"
27718 msgstr ""
27719
27720 #. type: verbatim
27721 #: ../src/guestfs-actions.pod:1637
27722 #, no-wrap
27723 msgid ""
27724 " int\n"
27725 " guestfs_fallocate64 (guestfs_h *g,\n"
27726 "                      const char *path,\n"
27727 "                      int64_t len);\n"
27728 "\n"
27729 msgstr ""
27730
27731 #. type: textblock
27732 #: ../src/guestfs-actions.pod:1646
27733 msgid ""
27734 "Note that this call allocates disk blocks for the file.  To create a sparse "
27735 "file use C<guestfs_truncate_size> instead."
27736 msgstr ""
27737
27738 #. type: textblock
27739 #: ../src/guestfs-actions.pod:1649
27740 msgid ""
27741 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27742 "oversight it only allowed 30 bit lengths to be specified, effectively "
27743 "limiting the maximum size of files created through that call to 1GB."
27744 msgstr ""
27745
27746 #. type: textblock
27747 #: ../src/guestfs-actions.pod:1660
27748 msgid "(Added in 1.3.17)"
27749 msgstr ""
27750
27751 #. type: =head2
27752 #: ../src/guestfs-actions.pod:1662
27753 msgid "guestfs_fgrep"
27754 msgstr ""
27755
27756 #. type: verbatim
27757 #: ../src/guestfs-actions.pod:1664
27758 #, no-wrap
27759 msgid ""
27760 " char **\n"
27761 " guestfs_fgrep (guestfs_h *g,\n"
27762 "                const char *pattern,\n"
27763 "                const char *path);\n"
27764 "\n"
27765 msgstr ""
27766
27767 #. type: =head2
27768 #: ../src/guestfs-actions.pod:1681
27769 msgid "guestfs_fgrepi"
27770 msgstr ""
27771
27772 #. type: verbatim
27773 #: ../src/guestfs-actions.pod:1683
27774 #, no-wrap
27775 msgid ""
27776 " char **\n"
27777 " guestfs_fgrepi (guestfs_h *g,\n"
27778 "                 const char *pattern,\n"
27779 "                 const char *path);\n"
27780 "\n"
27781 msgstr ""
27782
27783 #. type: =head2
27784 #: ../src/guestfs-actions.pod:1700
27785 msgid "guestfs_file"
27786 msgstr ""
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:1702
27790 #, no-wrap
27791 msgid ""
27792 " char *\n"
27793 " guestfs_file (guestfs_h *g,\n"
27794 "               const char *path);\n"
27795 "\n"
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:1720
27800 msgid ""
27801 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27802 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27803 msgstr ""
27804
27805 #. type: =head2
27806 #: ../src/guestfs-actions.pod:1728
27807 msgid "guestfs_file_architecture"
27808 msgstr ""
27809
27810 #. type: verbatim
27811 #: ../src/guestfs-actions.pod:1730
27812 #, no-wrap
27813 msgid ""
27814 " char *\n"
27815 " guestfs_file_architecture (guestfs_h *g,\n"
27816 "                            const char *filename);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: textblock
27821 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
27822 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
27823 #: ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:2920
27824 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3125
27825 #: ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3241
27826 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3575
27827 #: ../src/guestfs-actions.pod:3707
27828 msgid "(Added in 1.5.3)"
27829 msgstr ""
27830
27831 #. type: =head2
27832 #: ../src/guestfs-actions.pod:1840
27833 msgid "guestfs_filesize"
27834 msgstr ""
27835
27836 #. type: verbatim
27837 #: ../src/guestfs-actions.pod:1842
27838 #, no-wrap
27839 msgid ""
27840 " int64_t\n"
27841 " guestfs_filesize (guestfs_h *g,\n"
27842 "                   const char *file);\n"
27843 "\n"
27844 msgstr ""
27845
27846 #. type: textblock
27847 #: ../src/guestfs-actions.pod:1848
27848 msgid ""
27849 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27850 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27851 "devices, use C<guestfs_blockdev_getsize64>."
27852 msgstr ""
27853
27854 #. type: textblock
27855 #: ../src/guestfs-actions.pod:1854
27856 msgid "(Added in 1.0.82)"
27857 msgstr ""
27858
27859 #. type: =head2
27860 #: ../src/guestfs-actions.pod:1856
27861 msgid "guestfs_fill"
27862 msgstr ""
27863
27864 #. type: verbatim
27865 #: ../src/guestfs-actions.pod:1858
27866 #, no-wrap
27867 msgid ""
27868 " int\n"
27869 " guestfs_fill (guestfs_h *g,\n"
27870 "               int c,\n"
27871 "               int len,\n"
27872 "               const char *path);\n"
27873 "\n"
27874 msgstr ""
27875
27876 #. type: textblock
27877 #: ../src/guestfs-actions.pod:1868
27878 msgid ""
27879 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27880 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27881 "bytes use C<guestfs_fill_pattern>."
27882 msgstr ""
27883
27884 #. type: textblock
27885 #: ../src/guestfs-actions.pod:1880
27886 msgid "(Added in 1.0.79)"
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:1882
27891 msgid "guestfs_fill_pattern"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:1884
27896 #, no-wrap
27897 msgid ""
27898 " int\n"
27899 " guestfs_fill_pattern (guestfs_h *g,\n"
27900 "                       const char *pattern,\n"
27901 "                       int len,\n"
27902 "                       const char *path);\n"
27903 "\n"
27904 msgstr ""
27905
27906 #. type: textblock
27907 #: ../src/guestfs-actions.pod:1890
27908 msgid ""
27909 "This function is like C<guestfs_fill> except that it creates a new file of "
27910 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27911 "pattern is truncated if necessary to ensure the length of the file is "
27912 "exactly C<len> bytes."
27913 msgstr ""
27914
27915 #. type: textblock
27916 #: ../src/guestfs-actions.pod:1902
27917 msgid "(Added in 1.3.12)"
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:1904
27922 msgid "guestfs_find"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:1906
27927 #, no-wrap
27928 msgid ""
27929 " char **\n"
27930 " guestfs_find (guestfs_h *g,\n"
27931 "               const char *directory);\n"
27932 "\n"
27933 msgstr ""
27934
27935 #. type: textblock
27936 #: ../src/guestfs-actions.pod:1922
27937 msgid ""
27938 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27939 msgstr ""
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:1935
27943 msgid "See also C<guestfs_find0>."
27944 msgstr ""
27945
27946 #. type: textblock
27947 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4465
27948 #: ../src/guestfs-actions.pod:6165
27949 msgid "(Added in 1.0.27)"
27950 msgstr ""
27951
27952 #. type: =head2
27953 #: ../src/guestfs-actions.pod:1946
27954 msgid "guestfs_find0"
27955 msgstr ""
27956
27957 #. type: verbatim
27958 #: ../src/guestfs-actions.pod:1948
27959 #, no-wrap
27960 msgid ""
27961 " int\n"
27962 " guestfs_find0 (guestfs_h *g,\n"
27963 "                const char *directory,\n"
27964 "                const char *files);\n"
27965 "\n"
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../src/guestfs-actions.pod:1957
27970 msgid ""
27971 "This command works the same way as C<guestfs_find> with the following "
27972 "exceptions:"
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../src/guestfs-actions.pod:1984
27977 msgid "(Added in 1.0.74)"
27978 msgstr ""
27979
27980 #. type: =head2
27981 #: ../src/guestfs-actions.pod:1986
27982 msgid "guestfs_findfs_label"
27983 msgstr ""
27984
27985 #. type: verbatim
27986 #: ../src/guestfs-actions.pod:1988
27987 #, no-wrap
27988 msgid ""
27989 " char *\n"
27990 " guestfs_findfs_label (guestfs_h *g,\n"
27991 "                       const char *label);\n"
27992 "\n"
27993 msgstr ""
27994
27995 #. type: textblock
27996 #: ../src/guestfs-actions.pod:1996
27997 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27998 msgstr ""
27999
28000 #. type: =head2
28001 #: ../src/guestfs-actions.pod:2003
28002 msgid "guestfs_findfs_uuid"
28003 msgstr ""
28004
28005 #. type: verbatim
28006 #: ../src/guestfs-actions.pod:2005
28007 #, no-wrap
28008 msgid ""
28009 " char *\n"
28010 " guestfs_findfs_uuid (guestfs_h *g,\n"
28011 "                      const char *uuid);\n"
28012 "\n"
28013 msgstr ""
28014
28015 #. type: textblock
28016 #: ../src/guestfs-actions.pod:2013
28017 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28018 msgstr ""
28019
28020 #. type: =head2
28021 #: ../src/guestfs-actions.pod:2020
28022 msgid "guestfs_fsck"
28023 msgstr ""
28024
28025 #. type: verbatim
28026 #: ../src/guestfs-actions.pod:2022
28027 #, no-wrap
28028 msgid ""
28029 " int\n"
28030 " guestfs_fsck (guestfs_h *g,\n"
28031 "               const char *fstype,\n"
28032 "               const char *device);\n"
28033 "\n"
28034 msgstr ""
28035
28036 #. type: textblock
28037 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7956
28038 msgid "(Added in 1.0.16)"
28039 msgstr ""
28040
28041 #. type: =head2
28042 #: ../src/guestfs-actions.pod:2059
28043 msgid "guestfs_get_append"
28044 msgstr ""
28045
28046 #. type: verbatim
28047 #: ../src/guestfs-actions.pod:2061
28048 #, no-wrap
28049 msgid ""
28050 " const char *\n"
28051 " guestfs_get_append (guestfs_h *g);\n"
28052 "\n"
28053 msgstr ""
28054
28055 #. type: textblock
28056 #: ../src/guestfs-actions.pod:2069
28057 msgid ""
28058 "This function returns a string which may be NULL.  There is no way to return "
28059 "an error from this function.  The string is owned by the guest handle and "
28060 "must I<not> be freed."
28061 msgstr ""
28062
28063 #. type: textblock
28064 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5843
28065 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6783
28066 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
28067 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7596
28068 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8003
28069 msgid "(Added in 1.0.26)"
28070 msgstr ""
28071
28072 #. type: =head2
28073 #: ../src/guestfs-actions.pod:2075
28074 msgid "guestfs_get_attach_method"
28075 msgstr ""
28076
28077 #. type: verbatim
28078 #: ../src/guestfs-actions.pod:2077
28079 #, no-wrap
28080 msgid ""
28081 " char *\n"
28082 " guestfs_get_attach_method (guestfs_h *g);\n"
28083 "\n"
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../src/guestfs-actions.pod:2080
28088 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28089 msgstr ""
28090
28091 #. type: textblock
28092 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6355
28093 msgid "(Added in 1.9.8)"
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:2087
28098 msgid "guestfs_get_autosync"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:2089
28103 #, no-wrap
28104 msgid ""
28105 " int\n"
28106 " guestfs_get_autosync (guestfs_h *g);\n"
28107 "\n"
28108 msgstr ""
28109
28110 #. type: =head2
28111 #: ../src/guestfs-actions.pod:2098
28112 msgid "guestfs_get_direct"
28113 msgstr ""
28114
28115 #. type: verbatim
28116 #: ../src/guestfs-actions.pod:2100
28117 #, no-wrap
28118 msgid ""
28119 " int\n"
28120 " guestfs_get_direct (guestfs_h *g);\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6396
28126 msgid "(Added in 1.0.72)"
28127 msgstr ""
28128
28129 #. type: =head2
28130 #: ../src/guestfs-actions.pod:2109
28131 msgid "guestfs_get_e2label"
28132 msgstr ""
28133
28134 #. type: verbatim
28135 #: ../src/guestfs-actions.pod:2111
28136 #, no-wrap
28137 msgid ""
28138 " char *\n"
28139 " guestfs_get_e2label (guestfs_h *g,\n"
28140 "                      const char *device);\n"
28141 "\n"
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:2115
28146 msgid ""
28147 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28148 "call instead."
28149 msgstr ""
28150
28151 #. type: textblock
28152 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
28153 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6433
28154 msgid "(Added in 1.0.15)"
28155 msgstr ""
28156
28157 #. type: =head2
28158 #: ../src/guestfs-actions.pod:2130
28159 msgid "guestfs_get_e2uuid"
28160 msgstr ""
28161
28162 #. type: verbatim
28163 #: ../src/guestfs-actions.pod:2132
28164 #, no-wrap
28165 msgid ""
28166 " char *\n"
28167 " guestfs_get_e2uuid (guestfs_h *g,\n"
28168 "                     const char *device);\n"
28169 "\n"
28170 msgstr ""
28171
28172 #. type: textblock
28173 #: ../src/guestfs-actions.pod:2136
28174 msgid ""
28175 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28176 "call instead."
28177 msgstr ""
28178
28179 #. type: =head2
28180 #: ../src/guestfs-actions.pod:2151
28181 msgid "guestfs_get_memsize"
28182 msgstr ""
28183
28184 #. type: verbatim
28185 #: ../src/guestfs-actions.pod:2153
28186 #, no-wrap
28187 msgid ""
28188 " int\n"
28189 " guestfs_get_memsize (guestfs_h *g);\n"
28190 "\n"
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:2159
28195 msgid ""
28196 "If C<guestfs_set_memsize> was not called on this handle, and if "
28197 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28198 "value for memsize."
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4756
28203 #: ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:4984
28204 #: ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5015
28205 #: ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5045
28206 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6454
28207 #: ../src/guestfs-actions.pod:6750 ../src/guestfs-actions.pod:7365
28208 msgid "(Added in 1.0.55)"
28209 msgstr ""
28210
28211 #. type: =head2
28212 #: ../src/guestfs-actions.pod:2170
28213 msgid "guestfs_get_network"
28214 msgstr ""
28215
28216 #. type: verbatim
28217 #: ../src/guestfs-actions.pod:2172
28218 #, no-wrap
28219 msgid ""
28220 " int\n"
28221 " guestfs_get_network (guestfs_h *g);\n"
28222 "\n"
28223 msgstr ""
28224
28225 #. type: textblock
28226 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6473
28227 msgid "(Added in 1.5.4)"
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:2181
28232 msgid "guestfs_get_path"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:2183
28237 #, no-wrap
28238 msgid ""
28239 " const char *\n"
28240 " guestfs_get_path (guestfs_h *g);\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: textblock
28245 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
28246 msgid ""
28247 "This function returns a string, or NULL on error.  The string is owned by "
28248 "the guest handle and must I<not> be freed."
28249 msgstr ""
28250
28251 #. type: =head2
28252 #: ../src/guestfs-actions.pod:2196
28253 msgid "guestfs_get_pgroup"
28254 msgstr ""
28255
28256 #. type: verbatim
28257 #: ../src/guestfs-actions.pod:2198
28258 #, no-wrap
28259 msgid ""
28260 " int\n"
28261 " guestfs_get_pgroup (guestfs_h *g);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6509
28267 #: ../src/guestfs-actions.pod:7857
28268 #, fuzzy
28269 #| msgid "(Added in 1.5.1)"
28270 msgid "(Added in 1.11.18)"
28271 msgstr "(Додано у 1.5.1)"
28272
28273 #. type: =head2
28274 #: ../src/guestfs-actions.pod:2207
28275 msgid "guestfs_get_pid"
28276 msgstr ""
28277
28278 #. type: verbatim
28279 #: ../src/guestfs-actions.pod:2209
28280 #, no-wrap
28281 msgid ""
28282 " int\n"
28283 " guestfs_get_pid (guestfs_h *g);\n"
28284 "\n"
28285 msgstr ""
28286
28287 #. type: textblock
28288 #: ../src/guestfs-actions.pod:2219
28289 msgid "(Added in 1.0.56)"
28290 msgstr ""
28291
28292 #. type: =head2
28293 #: ../src/guestfs-actions.pod:2221
28294 msgid "guestfs_get_qemu"
28295 msgstr ""
28296
28297 #. type: verbatim
28298 #: ../src/guestfs-actions.pod:2223
28299 #, no-wrap
28300 msgid ""
28301 " const char *\n"
28302 " guestfs_get_qemu (guestfs_h *g);\n"
28303 "\n"
28304 msgstr ""
28305
28306 #. type: textblock
28307 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6537
28308 msgid "(Added in 1.0.6)"
28309 msgstr ""
28310
28311 #. type: =head2
28312 #: ../src/guestfs-actions.pod:2236
28313 msgid "guestfs_get_recovery_proc"
28314 msgstr ""
28315
28316 #. type: verbatim
28317 #: ../src/guestfs-actions.pod:2238
28318 #, no-wrap
28319 msgid ""
28320 " int\n"
28321 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28322 "\n"
28323 msgstr ""
28324
28325 #. type: textblock
28326 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3829
28327 #: ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4563
28328 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:5773
28329 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6561
28330 #: ../src/guestfs-actions.pod:7268 ../src/guestfs-actions.pod:7288
28331 #: ../src/guestfs-actions.pod:7480
28332 msgid "(Added in 1.0.77)"
28333 msgstr ""
28334
28335 #. type: =head2
28336 #: ../src/guestfs-actions.pod:2247
28337 msgid "guestfs_get_selinux"
28338 msgstr ""
28339
28340 #. type: verbatim
28341 #: ../src/guestfs-actions.pod:2249
28342 #, no-wrap
28343 msgid ""
28344 " int\n"
28345 " guestfs_get_selinux (guestfs_h *g);\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: textblock
28350 #: ../src/guestfs-actions.pod:2252
28351 msgid ""
28352 "This returns the current setting of the selinux flag which is passed to the "
28353 "appliance at boot time.  See C<guestfs_set_selinux>."
28354 msgstr ""
28355
28356 #. type: textblock
28357 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
28358 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6654
28359 msgid "(Added in 1.0.67)"
28360 msgstr ""
28361
28362 #. type: =head2
28363 #: ../src/guestfs-actions.pod:2262
28364 #, fuzzy
28365 #| msgid "guestfs_zgrep"
28366 msgid "guestfs_get_smp"
28367 msgstr "guestfs_zgrep"
28368
28369 #. type: verbatim
28370 #: ../src/guestfs-actions.pod:2264
28371 #, fuzzy, no-wrap
28372 #| msgid ""
28373 #| " int guestfs_last_errno (guestfs_h *g);\n"
28374 #| "\n"
28375 msgid ""
28376 " int\n"
28377 " guestfs_get_smp (guestfs_h *g);\n"
28378 "\n"
28379 msgstr ""
28380 " int guestfs_last_errno (guestfs_h *g);\n"
28381 "\n"
28382
28383 #. type: =head2
28384 #: ../src/guestfs-actions.pod:2273
28385 msgid "guestfs_get_state"
28386 msgstr ""
28387
28388 #. type: verbatim
28389 #: ../src/guestfs-actions.pod:2275
28390 #, no-wrap
28391 msgid ""
28392 " int\n"
28393 " guestfs_get_state (guestfs_h *g);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: =head2
28398 #: ../src/guestfs-actions.pod:2287
28399 msgid "guestfs_get_trace"
28400 msgstr ""
28401
28402 #. type: verbatim
28403 #: ../src/guestfs-actions.pod:2289
28404 #, no-wrap
28405 msgid ""
28406 " int\n"
28407 " guestfs_get_trace (guestfs_h *g);\n"
28408 "\n"
28409 msgstr ""
28410
28411 #. type: =head2
28412 #: ../src/guestfs-actions.pod:2298
28413 msgid "guestfs_get_umask"
28414 msgstr ""
28415
28416 #. type: verbatim
28417 #: ../src/guestfs-actions.pod:2300
28418 #, no-wrap
28419 msgid ""
28420 " int\n"
28421 " guestfs_get_umask (guestfs_h *g);\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../src/guestfs-actions.pod:2303
28427 msgid ""
28428 "Return the current umask.  By default the umask is C<022> unless it has been "
28429 "set by calling C<guestfs_umask>."
28430 msgstr ""
28431
28432 #. type: =head2
28433 #: ../src/guestfs-actions.pod:2310
28434 msgid "guestfs_get_verbose"
28435 msgstr ""
28436
28437 #. type: verbatim
28438 #: ../src/guestfs-actions.pod:2312
28439 #, no-wrap
28440 msgid ""
28441 " int\n"
28442 " guestfs_get_verbose (guestfs_h *g);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../src/guestfs-actions.pod:2321
28448 msgid "guestfs_getcon"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../src/guestfs-actions.pod:2323
28453 #, no-wrap
28454 msgid ""
28455 " char *\n"
28456 " guestfs_getcon (guestfs_h *g);\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: textblock
28461 #: ../src/guestfs-actions.pod:2328
28462 msgid ""
28463 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28464 msgstr ""
28465
28466 #. type: =head2
28467 #: ../src/guestfs-actions.pod:2336
28468 msgid "guestfs_getxattr"
28469 msgstr ""
28470
28471 #. type: verbatim
28472 #: ../src/guestfs-actions.pod:2338
28473 #, no-wrap
28474 msgid ""
28475 " char *\n"
28476 " guestfs_getxattr (guestfs_h *g,\n"
28477 "                   const char *path,\n"
28478 "                   const char *name,\n"
28479 "                   size_t *size_r);\n"
28480 "\n"
28481 msgstr ""
28482
28483 #. type: textblock
28484 #: ../src/guestfs-actions.pod:2344
28485 msgid ""
28486 "Get a single extended attribute from file C<path> named C<name>.  This call "
28487 "follows symlinks.  If you want to lookup an extended attribute for the "
28488 "symlink itself, use C<guestfs_lgetxattr>."
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3843
28493 msgid ""
28494 "Normally it is better to get all extended attributes from a file in one go "
28495 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28496 "implementations are buggy and do not provide a way to list out attributes.  "
28497 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28498 "extended attributes you want in advance and call this function."
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../src/guestfs-actions.pod:2358
28503 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28504 msgstr ""
28505
28506 #. type: textblock
28507 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
28508 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3855
28509 #: ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5792
28510 #: ../src/guestfs-actions.pod:5973
28511 msgid ""
28512 "This function returns a buffer, or NULL on error.  The size of the returned "
28513 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28514 "after use>."
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3859
28519 msgid "(Added in 1.7.24)"
28520 msgstr ""
28521
28522 #. type: =head2
28523 #: ../src/guestfs-actions.pod:2366
28524 msgid "guestfs_getxattrs"
28525 msgstr ""
28526
28527 #. type: verbatim
28528 #: ../src/guestfs-actions.pod:2368
28529 #, no-wrap
28530 msgid ""
28531 " struct guestfs_xattr_list *\n"
28532 " guestfs_getxattrs (guestfs_h *g,\n"
28533 "                    const char *path);\n"
28534 "\n"
28535 msgstr ""
28536
28537 #. type: textblock
28538 #: ../src/guestfs-actions.pod:2378
28539 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28540 msgstr ""
28541
28542 #. type: textblock
28543 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3871
28544 #: ../src/guestfs-actions.pod:4559
28545 msgid ""
28546 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28547 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28548 msgstr ""
28549
28550 #. type: textblock
28551 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3875
28552 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4110
28553 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6673
28554 #: ../src/guestfs-actions.pod:8068
28555 msgid "(Added in 1.0.59)"
28556 msgstr ""
28557
28558 #. type: =head2
28559 #: ../src/guestfs-actions.pod:2386
28560 msgid "guestfs_glob_expand"
28561 msgstr ""
28562
28563 #. type: verbatim
28564 #: ../src/guestfs-actions.pod:2388
28565 #, no-wrap
28566 msgid ""
28567 " char **\n"
28568 " guestfs_glob_expand (guestfs_h *g,\n"
28569 "                      const char *pattern);\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: textblock
28574 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6866
28575 #: ../src/guestfs-actions.pod:6883
28576 msgid "(Added in 1.0.50)"
28577 msgstr ""
28578
28579 #. type: =head2
28580 #: ../src/guestfs-actions.pod:2409
28581 msgid "guestfs_grep"
28582 msgstr ""
28583
28584 #. type: verbatim
28585 #: ../src/guestfs-actions.pod:2411
28586 #, no-wrap
28587 msgid ""
28588 " char **\n"
28589 " guestfs_grep (guestfs_h *g,\n"
28590 "               const char *regex,\n"
28591 "               const char *path);\n"
28592 "\n"
28593 msgstr ""
28594
28595 #. type: =head2
28596 #: ../src/guestfs-actions.pod:2428
28597 msgid "guestfs_grepi"
28598 msgstr ""
28599
28600 #. type: verbatim
28601 #: ../src/guestfs-actions.pod:2430
28602 #, no-wrap
28603 msgid ""
28604 " char **\n"
28605 " guestfs_grepi (guestfs_h *g,\n"
28606 "                const char *regex,\n"
28607 "                const char *path);\n"
28608 "\n"
28609 msgstr ""
28610
28611 #. type: =head2
28612 #: ../src/guestfs-actions.pod:2447
28613 msgid "guestfs_grub_install"
28614 msgstr ""
28615
28616 #. type: verbatim
28617 #: ../src/guestfs-actions.pod:2449
28618 #, no-wrap
28619 msgid ""
28620 " int\n"
28621 " guestfs_grub_install (guestfs_h *g,\n"
28622 "                       const char *root,\n"
28623 "                       const char *device);\n"
28624 "\n"
28625 msgstr ""
28626
28627 #. type: textblock
28628 #: ../src/guestfs-actions.pod:2492
28629 msgid "(Added in 1.0.17)"
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:2494
28634 msgid "guestfs_head"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:2496
28639 #, no-wrap
28640 msgid ""
28641 " char **\n"
28642 " guestfs_head (guestfs_h *g,\n"
28643 "               const char *path);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: =head2
28648 #: ../src/guestfs-actions.pod:2512
28649 msgid "guestfs_head_n"
28650 msgstr ""
28651
28652 #. type: verbatim
28653 #: ../src/guestfs-actions.pod:2514
28654 #, no-wrap
28655 msgid ""
28656 " char **\n"
28657 " guestfs_head_n (guestfs_h *g,\n"
28658 "                 int nrlines,\n"
28659 "                 const char *path);\n"
28660 "\n"
28661 msgstr ""
28662
28663 #. type: =head2
28664 #: ../src/guestfs-actions.pod:2536
28665 msgid "guestfs_hexdump"
28666 msgstr ""
28667
28668 #. type: verbatim
28669 #: ../src/guestfs-actions.pod:2538
28670 #, no-wrap
28671 msgid ""
28672 " char *\n"
28673 " guestfs_hexdump (guestfs_h *g,\n"
28674 "                  const char *path);\n"
28675 "\n"
28676 msgstr ""
28677
28678 #. type: textblock
28679 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6947
28680 #: ../src/guestfs-actions.pod:7002
28681 msgid "(Added in 1.0.22)"
28682 msgstr ""
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:2553
28686 msgid "guestfs_initrd_cat"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:2555
28691 #, no-wrap
28692 msgid ""
28693 " char *\n"
28694 " guestfs_initrd_cat (guestfs_h *g,\n"
28695 "                     const char *initrdpath,\n"
28696 "                     const char *filename,\n"
28697 "                     size_t *size_r);\n"
28698 "\n"
28699 msgstr ""
28700
28701 #. type: textblock
28702 #: ../src/guestfs-actions.pod:2571
28703 msgid "See also C<guestfs_initrd_list>."
28704 msgstr ""
28705
28706 #. type: =head2
28707 #: ../src/guestfs-actions.pod:2582
28708 msgid "guestfs_initrd_list"
28709 msgstr ""
28710
28711 #. type: verbatim
28712 #: ../src/guestfs-actions.pod:2584
28713 #, no-wrap
28714 msgid ""
28715 " char **\n"
28716 " guestfs_initrd_list (guestfs_h *g,\n"
28717 "                      const char *path);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: =head2
28722 #: ../src/guestfs-actions.pod:2604
28723 msgid "guestfs_inotify_add_watch"
28724 msgstr ""
28725
28726 #. type: verbatim
28727 #: ../src/guestfs-actions.pod:2606
28728 #, no-wrap
28729 msgid ""
28730 " int64_t\n"
28731 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28732 "                            const char *path,\n"
28733 "                            int mask);\n"
28734 "\n"
28735 msgstr ""
28736
28737 #. type: =head2
28738 #: ../src/guestfs-actions.pod:2625
28739 msgid "guestfs_inotify_close"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../src/guestfs-actions.pod:2627
28744 #, no-wrap
28745 msgid ""
28746 " int\n"
28747 " guestfs_inotify_close (guestfs_h *g);\n"
28748 "\n"
28749 msgstr ""
28750
28751 #. type: =head2
28752 #: ../src/guestfs-actions.pod:2638
28753 msgid "guestfs_inotify_files"
28754 msgstr ""
28755
28756 #. type: verbatim
28757 #: ../src/guestfs-actions.pod:2640
28758 #, no-wrap
28759 msgid ""
28760 " char **\n"
28761 " guestfs_inotify_files (guestfs_h *g);\n"
28762 "\n"
28763 msgstr ""
28764
28765 #. type: textblock
28766 #: ../src/guestfs-actions.pod:2643
28767 msgid ""
28768 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28769 "returns a list of pathnames of objects that were touched.  The returned "
28770 "pathnames are sorted and deduplicated."
28771 msgstr ""
28772
28773 #. type: =head2
28774 #: ../src/guestfs-actions.pod:2653
28775 msgid "guestfs_inotify_init"
28776 msgstr ""
28777
28778 #. type: verbatim
28779 #: ../src/guestfs-actions.pod:2655
28780 #, no-wrap
28781 msgid ""
28782 " int\n"
28783 " guestfs_inotify_init (guestfs_h *g,\n"
28784 "                       int maxevents);\n"
28785 "\n"
28786 msgstr ""
28787
28788 #. type: textblock
28789 #: ../src/guestfs-actions.pod:2663
28790 msgid ""
28791 "C<maxevents> is the maximum number of events which will be queued up between "
28792 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28793 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28794 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28795 "throws away events, but records the fact that it threw them away by setting "
28796 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28797 "C<guestfs_inotify_read>)."
28798 msgstr ""
28799
28800 #. type: textblock
28801 #: ../src/guestfs-actions.pod:2673
28802 msgid ""
28803 "Before any events are generated, you have to add some watches to the "
28804 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28805 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28806 msgstr ""
28807
28808 #. type: textblock
28809 #: ../src/guestfs-actions.pod:2679
28810 msgid ""
28811 "Queued up events should be read periodically by calling "
28812 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28813 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28814 "often enough then you risk the internal queue overflowing."
28815 msgstr ""
28816
28817 #. type: textblock
28818 #: ../src/guestfs-actions.pod:2686
28819 msgid ""
28820 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28821 "This also removes any watches automatically."
28822 msgstr ""
28823
28824 #. type: =head2
28825 #: ../src/guestfs-actions.pod:2699
28826 msgid "guestfs_inotify_read"
28827 msgstr ""
28828
28829 #. type: verbatim
28830 #: ../src/guestfs-actions.pod:2701
28831 #, no-wrap
28832 msgid ""
28833 " struct guestfs_inotify_event_list *\n"
28834 " guestfs_inotify_read (guestfs_h *g);\n"
28835 "\n"
28836 msgstr ""
28837
28838 #. type: textblock
28839 #: ../src/guestfs-actions.pod:2715
28840 msgid ""
28841 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28842 "there was an error.  I<The caller must call "
28843 "C<guestfs_free_inotify_event_list> after use>."
28844 msgstr ""
28845
28846 #. type: =head2
28847 #: ../src/guestfs-actions.pod:2721
28848 msgid "guestfs_inotify_rm_watch"
28849 msgstr ""
28850
28851 #. type: verbatim
28852 #: ../src/guestfs-actions.pod:2723
28853 #, no-wrap
28854 msgid ""
28855 " int\n"
28856 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28857 "                           int wd);\n"
28858 "\n"
28859 msgstr ""
28860
28861 #. type: textblock
28862 #: ../src/guestfs-actions.pod:2727
28863 msgid ""
28864 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28865 msgstr ""
28866
28867 #. type: =head2
28868 #: ../src/guestfs-actions.pod:2734
28869 msgid "guestfs_inspect_get_arch"
28870 msgstr ""
28871
28872 #. type: verbatim
28873 #: ../src/guestfs-actions.pod:2736
28874 #, no-wrap
28875 msgid ""
28876 " char *\n"
28877 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28878 "                           const char *root);\n"
28879 "\n"
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../src/guestfs-actions.pod:2740
28884 msgid ""
28885 "This returns the architecture of the inspected operating system.  The "
28886 "possible return values are listed under C<guestfs_file_architecture>."
28887 msgstr ""
28888
28889 #. type: =head2
28890 #: ../src/guestfs-actions.pod:2754
28891 msgid "guestfs_inspect_get_distro"
28892 msgstr ""
28893
28894 #. type: verbatim
28895 #: ../src/guestfs-actions.pod:2756
28896 #, no-wrap
28897 msgid ""
28898 " char *\n"
28899 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28900 "                             const char *root);\n"
28901 "\n"
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:2856
28906 msgid "guestfs_inspect_get_drive_mappings"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:2858
28911 #, no-wrap
28912 msgid ""
28913 " char **\n"
28914 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28915 "                                     const char *root);\n"
28916 "\n"
28917 msgstr ""
28918
28919 #. type: textblock
28920 #: ../src/guestfs-actions.pod:2887
28921 msgid ""
28922 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28923 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:3159
28928 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:5234
28929 #: ../src/guestfs-actions.pod:7304
28930 msgid ""
28931 "This function returns a NULL-terminated array of strings, or NULL if there "
28932 "was an error.  The array of strings will always have length C<2n+1>, where "
28933 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28934 "caller must free the strings and the array after use>."
28935 msgstr ""
28936
28937 #. type: textblock
28938 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3358
28939 msgid "(Added in 1.9.17)"
28940 msgstr ""
28941
28942 #. type: =head2
28943 #: ../src/guestfs-actions.pod:2899
28944 msgid "guestfs_inspect_get_filesystems"
28945 msgstr ""
28946
28947 #. type: verbatim
28948 #: ../src/guestfs-actions.pod:2901
28949 #, no-wrap
28950 msgid ""
28951 " char **\n"
28952 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28953 "                                  const char *root);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../src/guestfs-actions.pod:2913
28959 msgid ""
28960 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28961 "C<guestfs_inspect_get_mountpoints>."
28962 msgstr ""
28963
28964 #. type: =head2
28965 #: ../src/guestfs-actions.pod:2922
28966 msgid "guestfs_inspect_get_format"
28967 msgstr ""
28968
28969 #. type: verbatim
28970 #: ../src/guestfs-actions.pod:2924
28971 #, no-wrap
28972 msgid ""
28973 " char *\n"
28974 " guestfs_inspect_get_format (guestfs_h *g,\n"
28975 "                             const char *root);\n"
28976 "\n"
28977 msgstr ""
28978
28979 #. type: textblock
28980 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3394
28981 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3428
28982 #: ../src/guestfs-actions.pod:6184
28983 msgid "(Added in 1.9.4)"
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:2960
28988 msgid "guestfs_inspect_get_hostname"
28989 msgstr ""
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:2962
28993 #, no-wrap
28994 msgid ""
28995 " char *\n"
28996 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28997 "                               const char *root);\n"
28998 "\n"
28999 msgstr ""
29000
29001 #. type: textblock
29002 #: ../src/guestfs-actions.pod:2977
29003 msgid "(Added in 1.7.9)"
29004 msgstr ""
29005
29006 #. type: =head2
29007 #: ../src/guestfs-actions.pod:2979
29008 msgid "guestfs_inspect_get_icon"
29009 msgstr ""
29010
29011 #. type: verbatim
29012 #: ../src/guestfs-actions.pod:2981
29013 #, no-wrap
29014 msgid ""
29015 " char *\n"
29016 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29017 "                           const char *root,\n"
29018 "                           size_t *size_r,\n"
29019 "                           ...);\n"
29020 "\n"
29021 msgstr ""
29022
29023 #. type: verbatim
29024 #: ../src/guestfs-actions.pod:2992
29025 #, no-wrap
29026 msgid ""
29027 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29028 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29029 "\n"
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../src/guestfs-actions.pod:3059 ../src/guestfs-actions.pod:3889
29034 #: ../src/guestfs-actions.pod:5133
29035 msgid "(Added in 1.11.12)"
29036 msgstr ""
29037
29038 #. type: =head2
29039 #: ../src/guestfs-actions.pod:3061
29040 msgid "guestfs_inspect_get_icon_va"
29041 msgstr ""
29042
29043 #. type: verbatim
29044 #: ../src/guestfs-actions.pod:3063
29045 #, no-wrap
29046 msgid ""
29047 " char *\n"
29048 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29049 "                              const char *root,\n"
29050 "                              size_t *size_r,\n"
29051 "                              va_list args);\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:3069
29057 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29058 msgstr ""
29059
29060 #. type: =head2
29061 #: ../src/guestfs-actions.pod:3073
29062 msgid "guestfs_inspect_get_icon_argv"
29063 msgstr ""
29064
29065 #. type: verbatim
29066 #: ../src/guestfs-actions.pod:3075
29067 #, no-wrap
29068 msgid ""
29069 " char *\n"
29070 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29071 "                                const char *root,\n"
29072 "                                size_t *size_r,\n"
29073 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:3081
29079 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29080 msgstr ""
29081
29082 #. type: =head2
29083 #: ../src/guestfs-actions.pod:3085
29084 msgid "guestfs_inspect_get_major_version"
29085 msgstr ""
29086
29087 #. type: verbatim
29088 #: ../src/guestfs-actions.pod:3087
29089 #, no-wrap
29090 msgid ""
29091 " int\n"
29092 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29093 "                                    const char *root);\n"
29094 "\n"
29095 msgstr ""
29096
29097 #. type: =head2
29098 #: ../src/guestfs-actions.pod:3109
29099 msgid "guestfs_inspect_get_minor_version"
29100 msgstr ""
29101
29102 #. type: verbatim
29103 #: ../src/guestfs-actions.pod:3111
29104 #, no-wrap
29105 msgid ""
29106 " int\n"
29107 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29108 "                                    const char *root);\n"
29109 "\n"
29110 msgstr ""
29111
29112 #. type: textblock
29113 #: ../src/guestfs-actions.pod:3120
29114 msgid ""
29115 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29116 "C<guestfs_inspect_get_major_version>."
29117 msgstr ""
29118
29119 #. type: =head2
29120 #: ../src/guestfs-actions.pod:3127
29121 msgid "guestfs_inspect_get_mountpoints"
29122 msgstr ""
29123
29124 #. type: verbatim
29125 #: ../src/guestfs-actions.pod:3129
29126 #, no-wrap
29127 msgid ""
29128 " char **\n"
29129 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29130 "                                  const char *root);\n"
29131 "\n"
29132 msgstr ""
29133
29134 #. type: textblock
29135 #: ../src/guestfs-actions.pod:3150
29136 msgid ""
29137 "For operating systems like Windows which still use drive letters, this call "
29138 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29139 "information about the mapping of drive letters to partitions, see "
29140 "C<guestfs_inspect_get_drive_mappings>."
29141 msgstr ""
29142
29143 #. type: textblock
29144 #: ../src/guestfs-actions.pod:3156
29145 msgid ""
29146 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29147 "C<guestfs_inspect_get_filesystems>."
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:3167
29152 msgid "guestfs_inspect_get_package_format"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:3169
29157 #, no-wrap
29158 msgid ""
29159 " char *\n"
29160 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29161 "                                     const char *root);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:3173
29167 msgid ""
29168 "This function and C<guestfs_inspect_get_package_management> return the "
29169 "package format and package management tool used by the inspected operating "
29170 "system.  For example for Fedora these functions would return C<rpm> (package "
29171 "format) and C<yum> (package management)."
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3220
29176 msgid "(Added in 1.7.5)"
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:3194
29181 msgid "guestfs_inspect_get_package_management"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:3196
29186 #, no-wrap
29187 msgid ""
29188 " char *\n"
29189 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29190 "                                         const char *root);\n"
29191 "\n"
29192 msgstr ""
29193
29194 #. type: textblock
29195 #: ../src/guestfs-actions.pod:3200
29196 msgid ""
29197 "C<guestfs_inspect_get_package_format> and this function return the package "
29198 "format and package management tool used by the inspected operating system.  "
29199 "For example for Fedora these functions would return C<rpm> (package format) "
29200 "and C<yum> (package management)."
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:3222
29205 msgid "guestfs_inspect_get_product_name"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:3224
29210 #, no-wrap
29211 msgid ""
29212 " char *\n"
29213 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29214 "                                   const char *root);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: =head2
29219 #: ../src/guestfs-actions.pod:3243
29220 msgid "guestfs_inspect_get_product_variant"
29221 msgstr ""
29222
29223 #. type: verbatim
29224 #: ../src/guestfs-actions.pod:3245
29225 #, no-wrap
29226 msgid ""
29227 " char *\n"
29228 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29229 "                                      const char *root);\n"
29230 "\n"
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../src/guestfs-actions.pod:3268
29235 msgid ""
29236 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29237 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:3275
29242 msgid "(Added in 1.9.13)"
29243 msgstr ""
29244
29245 #. type: =head2
29246 #: ../src/guestfs-actions.pod:3277
29247 msgid "guestfs_inspect_get_roots"
29248 msgstr ""
29249
29250 #. type: verbatim
29251 #: ../src/guestfs-actions.pod:3279
29252 #, no-wrap
29253 msgid ""
29254 " char **\n"
29255 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: textblock
29260 #: ../src/guestfs-actions.pod:3282
29261 msgid ""
29262 "This function is a convenient way to get the list of root devices, as "
29263 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29264 "the whole inspection process."
29265 msgstr ""
29266
29267 #. type: textblock
29268 #: ../src/guestfs-actions.pod:3286
29269 msgid ""
29270 "This returns an empty list if either no root devices were found or the "
29271 "caller has not called C<guestfs_inspect_os>."
29272 msgstr ""
29273
29274 #. type: textblock
29275 #: ../src/guestfs-actions.pod:3295
29276 msgid "(Added in 1.7.3)"
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:3297
29281 msgid "guestfs_inspect_get_type"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:3299
29286 #, no-wrap
29287 msgid ""
29288 " char *\n"
29289 " guestfs_inspect_get_type (guestfs_h *g,\n"
29290 "                           const char *root);\n"
29291 "\n"
29292 msgstr ""
29293
29294 #. type: =head2
29295 #: ../src/guestfs-actions.pod:3340
29296 msgid "guestfs_inspect_get_windows_current_control_set"
29297 msgstr ""
29298
29299 #. type: verbatim
29300 #: ../src/guestfs-actions.pod:3342
29301 #, no-wrap
29302 msgid ""
29303 " char *\n"
29304 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29305 "                                                  const char *root);\n"
29306 "\n"
29307 msgstr ""
29308
29309 #. type: =head2
29310 #: ../src/guestfs-actions.pod:3360
29311 msgid "guestfs_inspect_get_windows_systemroot"
29312 msgstr ""
29313
29314 #. type: verbatim
29315 #: ../src/guestfs-actions.pod:3362
29316 #, no-wrap
29317 msgid ""
29318 " char *\n"
29319 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29320 "                                         const char *root);\n"
29321 "\n"
29322 msgstr ""
29323
29324 #. type: textblock
29325 #: ../src/guestfs-actions.pod:3378
29326 msgid "(Added in 1.5.25)"
29327 msgstr ""
29328
29329 #. type: =head2
29330 #: ../src/guestfs-actions.pod:3380
29331 msgid "guestfs_inspect_is_live"
29332 msgstr ""
29333
29334 #. type: verbatim
29335 #: ../src/guestfs-actions.pod:3382
29336 #, no-wrap
29337 msgid ""
29338 " int\n"
29339 " guestfs_inspect_is_live (guestfs_h *g,\n"
29340 "                          const char *root);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:3386
29346 msgid ""
29347 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29348 "disk), then this returns true if a live image was detected on the disk."
29349 msgstr ""
29350
29351 #. type: =head2
29352 #: ../src/guestfs-actions.pod:3396
29353 msgid "guestfs_inspect_is_multipart"
29354 msgstr ""
29355
29356 #. type: verbatim
29357 #: ../src/guestfs-actions.pod:3398
29358 #, no-wrap
29359 msgid ""
29360 " int\n"
29361 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29362 "                               const char *root);\n"
29363 "\n"
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../src/guestfs-actions.pod:3402
29368 msgid ""
29369 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29370 "disk), then this returns true if the disk is part of a set."
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:3412
29375 msgid "guestfs_inspect_is_netinst"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:3414
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29384 "                             const char *root);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: textblock
29389 #: ../src/guestfs-actions.pod:3418
29390 msgid ""
29391 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29392 "disk), then this returns true if the disk is a network installer, ie. not a "
29393 "self-contained install CD but one which is likely to require network access "
29394 "to complete the install."
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:3430
29399 msgid "guestfs_inspect_list_applications"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:3432
29404 #, no-wrap
29405 msgid ""
29406 " struct guestfs_application_list *\n"
29407 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29408 "                                    const char *root);\n"
29409 "\n"
29410 msgstr ""
29411
29412 #. type: textblock
29413 #: ../src/guestfs-actions.pod:3438
29414 msgid ""
29415 "I<Note:> This call works differently from other parts of the inspection "
29416 "API.  You have to call C<guestfs_inspect_os>, then "
29417 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29418 "this.  Listing applications is a significantly more difficult operation "
29419 "which requires access to the full filesystem.  Also note that unlike the "
29420 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29421 "the libguestfs handle, this call actually reads parts of the mounted "
29422 "filesystems during the call."
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:3528
29427 msgid ""
29428 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29429 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29430 "after use>."
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-actions.pod:3532
29435 msgid "(Added in 1.7.8)"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:3534
29440 msgid "guestfs_inspect_os"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:3536
29445 #, no-wrap
29446 msgid ""
29447 " char **\n"
29448 " guestfs_inspect_os (guestfs_h *g);\n"
29449 "\n"
29450 msgstr ""
29451
29452 #. type: textblock
29453 #: ../src/guestfs-actions.pod:3552
29454 msgid ""
29455 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29456 "functions in order to query further information about each operating system, "
29457 "such as the name and version."
29458 msgstr ""
29459
29460 #. type: textblock
29461 #: ../src/guestfs-actions.pod:3557
29462 msgid ""
29463 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29464 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29465 "the contents.  This should be called with no disks currently mounted.  The "
29466 "function may also use Augeas, so any existing Augeas handle will be closed."
29467 msgstr ""
29468
29469 #. type: textblock
29470 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3900
29471 #: ../src/guestfs-actions.pod:3982
29472 msgid "See also C<guestfs_list_filesystems>."
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:3577
29477 msgid "guestfs_is_blockdev"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:3579
29482 #, no-wrap
29483 msgid ""
29484 " int\n"
29485 " guestfs_is_blockdev (guestfs_h *g,\n"
29486 "                      const char *path);\n"
29487 "\n"
29488 msgstr ""
29489
29490 #. type: textblock
29491 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:3615
29492 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3660
29493 #: ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3732
29494 #: ../src/guestfs-actions.pod:3747
29495 msgid "See also C<guestfs_stat>."
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3619
29500 #: ../src/guestfs-actions.pod:3664 ../src/guestfs-actions.pod:3736
29501 #: ../src/guestfs-actions.pod:3751
29502 msgid "(Added in 1.5.10)"
29503 msgstr ""
29504
29505 #. type: =head2
29506 #: ../src/guestfs-actions.pod:3592
29507 msgid "guestfs_is_busy"
29508 msgstr ""
29509
29510 #. type: verbatim
29511 #: ../src/guestfs-actions.pod:3594
29512 #, no-wrap
29513 msgid ""
29514 " int\n"
29515 " guestfs_is_busy (guestfs_h *g);\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: =head2
29520 #: ../src/guestfs-actions.pod:3606
29521 msgid "guestfs_is_chardev"
29522 msgstr ""
29523
29524 #. type: verbatim
29525 #: ../src/guestfs-actions.pod:3608
29526 #, no-wrap
29527 msgid ""
29528 " int\n"
29529 " guestfs_is_chardev (guestfs_h *g,\n"
29530 "                     const char *path);\n"
29531 "\n"
29532 msgstr ""
29533
29534 #. type: =head2
29535 #: ../src/guestfs-actions.pod:3621
29536 msgid "guestfs_is_config"
29537 msgstr ""
29538
29539 #. type: verbatim
29540 #: ../src/guestfs-actions.pod:3623
29541 #, no-wrap
29542 msgid ""
29543 " int\n"
29544 " guestfs_is_config (guestfs_h *g);\n"
29545 "\n"
29546 msgstr ""
29547
29548 #. type: =head2
29549 #: ../src/guestfs-actions.pod:3635
29550 msgid "guestfs_is_dir"
29551 msgstr ""
29552
29553 #. type: verbatim
29554 #: ../src/guestfs-actions.pod:3637
29555 #, no-wrap
29556 msgid ""
29557 " int\n"
29558 " guestfs_is_dir (guestfs_h *g,\n"
29559 "                 const char *path);\n"
29560 "\n"
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:3651
29565 msgid "guestfs_is_fifo"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:3653
29570 #, no-wrap
29571 msgid ""
29572 " int\n"
29573 " guestfs_is_fifo (guestfs_h *g,\n"
29574 "                  const char *path);\n"
29575 "\n"
29576 msgstr ""
29577
29578 #. type: =head2
29579 #: ../src/guestfs-actions.pod:3666
29580 msgid "guestfs_is_file"
29581 msgstr ""
29582
29583 #. type: verbatim
29584 #: ../src/guestfs-actions.pod:3668
29585 #, no-wrap
29586 msgid ""
29587 " int\n"
29588 " guestfs_is_file (guestfs_h *g,\n"
29589 "                  const char *path);\n"
29590 "\n"
29591 msgstr ""
29592
29593 #. type: =head2
29594 #: ../src/guestfs-actions.pod:3682
29595 msgid "guestfs_is_launching"
29596 msgstr ""
29597
29598 #. type: verbatim
29599 #: ../src/guestfs-actions.pod:3684
29600 #, no-wrap
29601 msgid ""
29602 " int\n"
29603 " guestfs_is_launching (guestfs_h *g);\n"
29604 "\n"
29605 msgstr ""
29606
29607 #. type: =head2
29608 #: ../src/guestfs-actions.pod:3696
29609 msgid "guestfs_is_lv"
29610 msgstr ""
29611
29612 #. type: verbatim
29613 #: ../src/guestfs-actions.pod:3698
29614 #, no-wrap
29615 msgid ""
29616 " int\n"
29617 " guestfs_is_lv (guestfs_h *g,\n"
29618 "                const char *device);\n"
29619 "\n"
29620 msgstr ""
29621
29622 #. type: =head2
29623 #: ../src/guestfs-actions.pod:3709
29624 msgid "guestfs_is_ready"
29625 msgstr ""
29626
29627 #. type: verbatim
29628 #: ../src/guestfs-actions.pod:3711
29629 #, no-wrap
29630 msgid ""
29631 " int\n"
29632 " guestfs_is_ready (guestfs_h *g);\n"
29633 "\n"
29634 msgstr ""
29635
29636 #. type: =head2
29637 #: ../src/guestfs-actions.pod:3723
29638 msgid "guestfs_is_socket"
29639 msgstr ""
29640
29641 #. type: verbatim
29642 #: ../src/guestfs-actions.pod:3725
29643 #, no-wrap
29644 msgid ""
29645 " int\n"
29646 " guestfs_is_socket (guestfs_h *g,\n"
29647 "                    const char *path);\n"
29648 "\n"
29649 msgstr ""
29650
29651 #. type: =head2
29652 #: ../src/guestfs-actions.pod:3738
29653 msgid "guestfs_is_symlink"
29654 msgstr ""
29655
29656 #. type: verbatim
29657 #: ../src/guestfs-actions.pod:3740
29658 #, no-wrap
29659 msgid ""
29660 " int\n"
29661 " guestfs_is_symlink (guestfs_h *g,\n"
29662 "                     const char *path);\n"
29663 "\n"
29664 msgstr ""
29665
29666 #. type: =head2
29667 #: ../src/guestfs-actions.pod:3753
29668 msgid "guestfs_is_zero"
29669 msgstr ""
29670
29671 #. type: verbatim
29672 #: ../src/guestfs-actions.pod:3755
29673 #, no-wrap
29674 msgid ""
29675 " int\n"
29676 " guestfs_is_zero (guestfs_h *g,\n"
29677 "                  const char *path);\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3778
29683 msgid "(Added in 1.11.8)"
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../src/guestfs-actions.pod:3766
29688 msgid "guestfs_is_zero_device"
29689 msgstr ""
29690
29691 #. type: verbatim
29692 #: ../src/guestfs-actions.pod:3768
29693 #, no-wrap
29694 msgid ""
29695 " int\n"
29696 " guestfs_is_zero_device (guestfs_h *g,\n"
29697 "                         const char *device);\n"
29698 "\n"
29699 msgstr ""
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:3780
29703 msgid "guestfs_kill_subprocess"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:3782
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_kill_subprocess (guestfs_h *g);\n"
29712 "\n"
29713 msgstr ""
29714
29715 #. type: =head2
29716 #: ../src/guestfs-actions.pod:3791
29717 msgid "guestfs_launch"
29718 msgstr ""
29719
29720 #. type: verbatim
29721 #: ../src/guestfs-actions.pod:3793
29722 #, no-wrap
29723 msgid ""
29724 " int\n"
29725 " guestfs_launch (guestfs_h *g);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:3811
29731 msgid "guestfs_lchown"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:3813
29736 #, no-wrap
29737 msgid ""
29738 " int\n"
29739 " guestfs_lchown (guestfs_h *g,\n"
29740 "                 int owner,\n"
29741 "                 int group,\n"
29742 "                 const char *path);\n"
29743 "\n"
29744 msgstr ""
29745
29746 #. type: textblock
29747 #: ../src/guestfs-actions.pod:3819
29748 msgid ""
29749 "Change the file owner to C<owner> and group to C<group>.  This is like "
29750 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29751 "changed, not the target."
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:3831
29756 msgid "guestfs_lgetxattr"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:3833
29761 #, no-wrap
29762 msgid ""
29763 " char *\n"
29764 " guestfs_lgetxattr (guestfs_h *g,\n"
29765 "                    const char *path,\n"
29766 "                    const char *name,\n"
29767 "                    size_t *size_r);\n"
29768 "\n"
29769 msgstr ""
29770
29771 #. type: textblock
29772 #: ../src/guestfs-actions.pod:3853
29773 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29774 msgstr ""
29775
29776 #. type: =head2
29777 #: ../src/guestfs-actions.pod:3861
29778 msgid "guestfs_lgetxattrs"
29779 msgstr ""
29780
29781 #. type: verbatim
29782 #: ../src/guestfs-actions.pod:3863
29783 #, no-wrap
29784 msgid ""
29785 " struct guestfs_xattr_list *\n"
29786 " guestfs_lgetxattrs (guestfs_h *g,\n"
29787 "                     const char *path);\n"
29788 "\n"
29789 msgstr ""
29790
29791 #. type: textblock
29792 #: ../src/guestfs-actions.pod:3867
29793 msgid ""
29794 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29795 "then it returns the extended attributes of the link itself."
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:3877
29800 msgid "guestfs_list_9p"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:3879
29805 #, no-wrap
29806 msgid ""
29807 " char **\n"
29808 " guestfs_list_9p (guestfs_h *g);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:3891
29814 msgid "guestfs_list_devices"
29815 msgstr ""
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:3893
29819 #, no-wrap
29820 msgid ""
29821 " char **\n"
29822 " guestfs_list_devices (guestfs_h *g);\n"
29823 "\n"
29824 msgstr ""
29825
29826 #. type: =head2
29827 #: ../src/guestfs-actions.pod:3908
29828 msgid "guestfs_list_dm_devices"
29829 msgstr ""
29830
29831 #. type: verbatim
29832 #: ../src/guestfs-actions.pod:3910
29833 #, no-wrap
29834 msgid ""
29835 " char **\n"
29836 " guestfs_list_dm_devices (guestfs_h *g);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-actions.pod:3915
29842 msgid ""
29843 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29844 "previous call to C<guestfs_luks_open>."
29845 msgstr ""
29846
29847 #. type: textblock
29848 #: ../src/guestfs-actions.pod:3918
29849 msgid ""
29850 "Device mapper devices which correspond to logical volumes are I<not> "
29851 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29852 "volumes."
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5372
29857 msgid "(Added in 1.11.15)"
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:3928
29862 msgid "guestfs_list_filesystems"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:3930
29867 #, no-wrap
29868 msgid ""
29869 " char **\n"
29870 " guestfs_list_filesystems (guestfs_h *g);\n"
29871 "\n"
29872 msgstr ""
29873
29874 #. type: textblock
29875 #: ../src/guestfs-actions.pod:3950
29876 msgid ""
29877 "This command runs other libguestfs commands, which might include "
29878 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29879 "soon after launch and only when nothing is mounted."
29880 msgstr ""
29881
29882 #. type: textblock
29883 #: ../src/guestfs-actions.pod:3954
29884 msgid ""
29885 "Not all of the filesystems returned will be mountable.  In particular, swap "
29886 "partitions are returned in the list.  Also this command does not check that "
29887 "each filesystem found is valid and mountable, and some filesystems might be "
29888 "mountable but require special options.  Filesystems may not all belong to a "
29889 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5733
29894 msgid "(Added in 1.5.15)"
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:3970
29899 msgid "guestfs_list_partitions"
29900 msgstr "guestfs_list_partitions"
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:3972
29904 #, no-wrap
29905 msgid ""
29906 " char **\n"
29907 " guestfs_list_partitions (guestfs_h *g);\n"
29908 "\n"
29909 msgstr ""
29910 " char **\n"
29911 " guestfs_list_partitions (guestfs_h *g);\n"
29912 "\n"
29913
29914 #. type: textblock
29915 #: ../src/guestfs-actions.pod:3979
29916 msgid ""
29917 "This does not return logical volumes.  For that you will need to call "
29918 "C<guestfs_lvs>."
29919 msgstr ""
29920
29921 #. type: =head2
29922 #: ../src/guestfs-actions.pod:3990
29923 msgid "guestfs_ll"
29924 msgstr "guestfs_ll"
29925
29926 #. type: verbatim
29927 #: ../src/guestfs-actions.pod:3992
29928 #, no-wrap
29929 msgid ""
29930 " char *\n"
29931 " guestfs_ll (guestfs_h *g,\n"
29932 "             const char *directory);\n"
29933 "\n"
29934 msgstr ""
29935 " char *\n"
29936 " guestfs_ll (guestfs_h *g,\n"
29937 "             const char *directory);\n"
29938 "\n"
29939
29940 #. type: =head2
29941 #: ../src/guestfs-actions.pod:4007
29942 msgid "guestfs_ln"
29943 msgstr "guestfs_ln"
29944
29945 #. type: verbatim
29946 #: ../src/guestfs-actions.pod:4009
29947 #, no-wrap
29948 msgid ""
29949 " int\n"
29950 " guestfs_ln (guestfs_h *g,\n"
29951 "             const char *target,\n"
29952 "             const char *linkname);\n"
29953 "\n"
29954 msgstr ""
29955 " int\n"
29956 " guestfs_ln (guestfs_h *g,\n"
29957 "             const char *target,\n"
29958 "             const char *linkname);\n"
29959 "\n"
29960
29961 #. type: =head2
29962 #: ../src/guestfs-actions.pod:4020
29963 msgid "guestfs_ln_f"
29964 msgstr "guestfs_ln_f"
29965
29966 #. type: verbatim
29967 #: ../src/guestfs-actions.pod:4022
29968 #, no-wrap
29969 msgid ""
29970 " int\n"
29971 " guestfs_ln_f (guestfs_h *g,\n"
29972 "               const char *target,\n"
29973 "               const char *linkname);\n"
29974 "\n"
29975 msgstr ""
29976 " int\n"
29977 " guestfs_ln_f (guestfs_h *g,\n"
29978 "               const char *target,\n"
29979 "               const char *linkname);\n"
29980 "\n"
29981
29982 #. type: =head2
29983 #: ../src/guestfs-actions.pod:4034
29984 msgid "guestfs_ln_s"
29985 msgstr "guestfs_ln_s"
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-actions.pod:4036
29989 #, no-wrap
29990 msgid ""
29991 " int\n"
29992 " guestfs_ln_s (guestfs_h *g,\n"
29993 "               const char *target,\n"
29994 "               const char *linkname);\n"
29995 "\n"
29996 msgstr ""
29997 " int\n"
29998 " guestfs_ln_s (guestfs_h *g,\n"
29999 "               const char *target,\n"
30000 "               const char *linkname);\n"
30001 "\n"
30002
30003 #. type: =head2
30004 #: ../src/guestfs-actions.pod:4047
30005 msgid "guestfs_ln_sf"
30006 msgstr "guestfs_ln_sf"
30007
30008 #. type: verbatim
30009 #: ../src/guestfs-actions.pod:4049
30010 #, no-wrap
30011 msgid ""
30012 " int\n"
30013 " guestfs_ln_sf (guestfs_h *g,\n"
30014 "                const char *target,\n"
30015 "                const char *linkname);\n"
30016 "\n"
30017 msgstr ""
30018 " int\n"
30019 " guestfs_ln_sf (guestfs_h *g,\n"
30020 "                const char *target,\n"
30021 "                const char *linkname);\n"
30022 "\n"
30023
30024 #. type: =head2
30025 #: ../src/guestfs-actions.pod:4061
30026 msgid "guestfs_lremovexattr"
30027 msgstr "guestfs_lremovexattr"
30028
30029 #. type: verbatim
30030 #: ../src/guestfs-actions.pod:4063
30031 #, no-wrap
30032 msgid ""
30033 " int\n"
30034 " guestfs_lremovexattr (guestfs_h *g,\n"
30035 "                       const char *xattr,\n"
30036 "                       const char *path);\n"
30037 "\n"
30038 msgstr ""
30039 " int\n"
30040 " guestfs_lremovexattr (guestfs_h *g,\n"
30041 "                       const char *xattr,\n"
30042 "                       const char *path);\n"
30043 "\n"
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:4068
30047 msgid ""
30048 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30049 "link, then it removes an extended attribute of the link itself."
30050 msgstr ""
30051
30052 #. type: =head2
30053 #: ../src/guestfs-actions.pod:4076
30054 msgid "guestfs_ls"
30055 msgstr "guestfs_ls"
30056
30057 #. type: verbatim
30058 #: ../src/guestfs-actions.pod:4078
30059 #, no-wrap
30060 msgid ""
30061 " char **\n"
30062 " guestfs_ls (guestfs_h *g,\n"
30063 "             const char *directory);\n"
30064 "\n"
30065 msgstr ""
30066 " char **\n"
30067 " guestfs_ls (guestfs_h *g,\n"
30068 "             const char *directory);\n"
30069 "\n"
30070
30071 #. type: textblock
30072 #: ../src/guestfs-actions.pod:4086
30073 msgid ""
30074 "This command is mostly useful for interactive sessions.  Programs should "
30075 "probably use C<guestfs_readdir> instead."
30076 msgstr ""
30077
30078 #. type: =head2
30079 #: ../src/guestfs-actions.pod:4095
30080 msgid "guestfs_lsetxattr"
30081 msgstr "guestfs_lsetxattr"
30082
30083 #. type: verbatim
30084 #: ../src/guestfs-actions.pod:4097
30085 #, no-wrap
30086 msgid ""
30087 " int\n"
30088 " guestfs_lsetxattr (guestfs_h *g,\n"
30089 "                    const char *xattr,\n"
30090 "                    const char *val,\n"
30091 "                    int vallen,\n"
30092 "                    const char *path);\n"
30093 "\n"
30094 msgstr ""
30095 " int\n"
30096 " guestfs_lsetxattr (guestfs_h *g,\n"
30097 "                    const char *xattr,\n"
30098 "                    const char *val,\n"
30099 "                    int vallen,\n"
30100 "                    const char *path);\n"
30101 "\n"
30102
30103 #. type: textblock
30104 #: ../src/guestfs-actions.pod:4104
30105 msgid ""
30106 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30107 "then it sets an extended attribute of the link itself."
30108 msgstr ""
30109
30110 #. type: =head2
30111 #: ../src/guestfs-actions.pod:4112
30112 msgid "guestfs_lstat"
30113 msgstr "guestfs_lstat"
30114
30115 #. type: verbatim
30116 #: ../src/guestfs-actions.pod:4114
30117 #, no-wrap
30118 msgid ""
30119 " struct guestfs_stat *\n"
30120 " guestfs_lstat (guestfs_h *g,\n"
30121 "                const char *path);\n"
30122 "\n"
30123 msgstr ""
30124 " struct guestfs_stat *\n"
30125 " guestfs_lstat (guestfs_h *g,\n"
30126 "                const char *path);\n"
30127 "\n"
30128
30129 #. type: textblock
30130 #: ../src/guestfs-actions.pod:4120
30131 msgid ""
30132 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30133 "link, then the link is stat-ed, not the file it refers to."
30134 msgstr ""
30135
30136 #. type: textblock
30137 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:6907
30138 msgid ""
30139 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30140 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30141 msgstr ""
30142
30143 #. type: textblock
30144 #: ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:6911
30145 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:7310
30146 msgid "(Added in 0.9.2)"
30147 msgstr "(Додано у 0.9.2)"
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:4132
30151 msgid "guestfs_lstatlist"
30152 msgstr "guestfs_lstatlist"
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:4134
30156 #, no-wrap
30157 msgid ""
30158 " struct guestfs_stat_list *\n"
30159 " guestfs_lstatlist (guestfs_h *g,\n"
30160 "                    const char *path,\n"
30161 "                    char *const *names);\n"
30162 "\n"
30163 msgstr ""
30164 " struct guestfs_stat_list *\n"
30165 " guestfs_lstatlist (guestfs_h *g,\n"
30166 "                    const char *path,\n"
30167 "                    char *const *names);\n"
30168 "\n"
30169
30170 #. type: textblock
30171 #: ../src/guestfs-actions.pod:4139
30172 msgid ""
30173 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30174 "files, where all files are in the directory C<path>.  C<names> is the list "
30175 "of files from this directory."
30176 msgstr ""
30177
30178 #. type: textblock
30179 #: ../src/guestfs-actions.pod:4148
30180 msgid ""
30181 "This call is intended for programs that want to efficiently list a directory "
30182 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30183 "for a similarly efficient call for getting extended attributes.  Very long "
30184 "directory listings might cause the protocol message size to be exceeded, "
30185 "causing this call to fail.  The caller must split up such requests into "
30186 "smaller groups of names."
30187 msgstr ""
30188
30189 #. type: textblock
30190 #: ../src/guestfs-actions.pod:4156
30191 msgid ""
30192 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30193 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30194 msgstr ""
30195
30196 #. type: =head2
30197 #: ../src/guestfs-actions.pod:4162
30198 msgid "guestfs_luks_add_key"
30199 msgstr "guestfs_luks_add_key"
30200
30201 #. type: verbatim
30202 #: ../src/guestfs-actions.pod:4164
30203 #, no-wrap
30204 msgid ""
30205 " int\n"
30206 " guestfs_luks_add_key (guestfs_h *g,\n"
30207 "                       const char *device,\n"
30208 "                       const char *key,\n"
30209 "                       const char *newkey,\n"
30210 "                       int keyslot);\n"
30211 "\n"
30212 msgstr ""
30213 " int\n"
30214 " guestfs_luks_add_key (guestfs_h *g,\n"
30215 "                       const char *device,\n"
30216 "                       const char *key,\n"
30217 "                       const char *newkey,\n"
30218 "                       int keyslot);\n"
30219 "\n"
30220
30221 #. type: textblock
30222 #: ../src/guestfs-actions.pod:4176
30223 msgid ""
30224 "Note that if C<keyslot> already contains a key, then this command will "
30225 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30226 msgstr ""
30227
30228 #. type: textblock
30229 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4222
30230 #: ../src/guestfs-actions.pod:4245 ../src/guestfs-actions.pod:4265
30231 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4319
30232 msgid ""
30233 "This function takes a key or passphrase parameter which could contain "
30234 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30235 "information."
30236 msgstr ""
30237
30238 #. type: textblock
30239 #: ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4226
30240 #: ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4269
30241 msgid "(Added in 1.5.2)"
30242 msgstr "(Додано у 1.5.2)"
30243
30244 #. type: =head2
30245 #: ../src/guestfs-actions.pod:4188
30246 msgid "guestfs_luks_close"
30247 msgstr "guestfs_luks_close"
30248
30249 #. type: verbatim
30250 #: ../src/guestfs-actions.pod:4190
30251 #, no-wrap
30252 msgid ""
30253 " int\n"
30254 " guestfs_luks_close (guestfs_h *g,\n"
30255 "                     const char *device);\n"
30256 "\n"
30257 msgstr ""
30258 " int\n"
30259 " guestfs_luks_close (guestfs_h *g,\n"
30260 "                     const char *device);\n"
30261 "\n"
30262
30263 #. type: textblock
30264 #: ../src/guestfs-actions.pod:4194
30265 msgid ""
30266 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30267 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30268 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30269 "underlying block device."
30270 msgstr ""
30271
30272 #. type: textblock
30273 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4304
30274 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4373
30275 #: ../src/guestfs-actions.pod:4421
30276 msgid "(Added in 1.5.1)"
30277 msgstr "(Додано у 1.5.1)"
30278
30279 #. type: =head2
30280 #: ../src/guestfs-actions.pod:4204
30281 msgid "guestfs_luks_format"
30282 msgstr "guestfs_luks_format"
30283
30284 #. type: verbatim
30285 #: ../src/guestfs-actions.pod:4206
30286 #, no-wrap
30287 msgid ""
30288 " int\n"
30289 " guestfs_luks_format (guestfs_h *g,\n"
30290 "                      const char *device,\n"
30291 "                      const char *key,\n"
30292 "                      int keyslot);\n"
30293 "\n"
30294 msgstr ""
30295 " int\n"
30296 " guestfs_luks_format (guestfs_h *g,\n"
30297 "                      const char *device,\n"
30298 "                      const char *key,\n"
30299 "                      int keyslot);\n"
30300 "\n"
30301
30302 #. type: =head2
30303 #: ../src/guestfs-actions.pod:4228
30304 msgid "guestfs_luks_format_cipher"
30305 msgstr "guestfs_luks_format_cipher"
30306
30307 #. type: verbatim
30308 #: ../src/guestfs-actions.pod:4230
30309 #, no-wrap
30310 msgid ""
30311 " int\n"
30312 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30313 "                             const char *device,\n"
30314 "                             const char *key,\n"
30315 "                             int keyslot,\n"
30316 "                             const char *cipher);\n"
30317 "\n"
30318 msgstr ""
30319 " int\n"
30320 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30321 "                             const char *device,\n"
30322 "                             const char *key,\n"
30323 "                             int keyslot,\n"
30324 "                             const char *cipher);\n"
30325 "\n"
30326
30327 #. type: textblock
30328 #: ../src/guestfs-actions.pod:4237
30329 msgid ""
30330 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30331 "set the C<cipher> used."
30332 msgstr ""
30333
30334 #. type: =head2
30335 #: ../src/guestfs-actions.pod:4251
30336 msgid "guestfs_luks_kill_slot"
30337 msgstr "guestfs_luks_kill_slot"
30338
30339 #. type: verbatim
30340 #: ../src/guestfs-actions.pod:4253
30341 #, no-wrap
30342 msgid ""
30343 " int\n"
30344 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30345 "                         const char *device,\n"
30346 "                         const char *key,\n"
30347 "                         int keyslot);\n"
30348 "\n"
30349 msgstr ""
30350 " int\n"
30351 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30352 "                         const char *device,\n"
30353 "                         const char *key,\n"
30354 "                         int keyslot);\n"
30355 "\n"
30356
30357 #. type: =head2
30358 #: ../src/guestfs-actions.pod:4271
30359 msgid "guestfs_luks_open"
30360 msgstr "guestfs_luks_open"
30361
30362 #. type: verbatim
30363 #: ../src/guestfs-actions.pod:4273
30364 #, no-wrap
30365 msgid ""
30366 " int\n"
30367 " guestfs_luks_open (guestfs_h *g,\n"
30368 "                    const char *device,\n"
30369 "                    const char *key,\n"
30370 "                    const char *mapname);\n"
30371 "\n"
30372 msgstr ""
30373 " int\n"
30374 " guestfs_luks_open (guestfs_h *g,\n"
30375 "                    const char *device,\n"
30376 "                    const char *key,\n"
30377 "                    const char *mapname);\n"
30378 "\n"
30379
30380 #. type: textblock
30381 #: ../src/guestfs-actions.pod:4291
30382 msgid ""
30383 "If this block device contains LVM volume groups, then calling "
30384 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30385 "visible."
30386 msgstr ""
30387
30388 #. type: textblock
30389 #: ../src/guestfs-actions.pod:4295
30390 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30391 msgstr ""
30392
30393 #. type: =head2
30394 #: ../src/guestfs-actions.pod:4306
30395 msgid "guestfs_luks_open_ro"
30396 msgstr "guestfs_luks_open_ro"
30397
30398 #. type: verbatim
30399 #: ../src/guestfs-actions.pod:4308
30400 #, no-wrap
30401 msgid ""
30402 " int\n"
30403 " guestfs_luks_open_ro (guestfs_h *g,\n"
30404 "                       const char *device,\n"
30405 "                       const char *key,\n"
30406 "                       const char *mapname);\n"
30407 "\n"
30408 msgstr ""
30409 " int\n"
30410 " guestfs_luks_open_ro (guestfs_h *g,\n"
30411 "                       const char *device,\n"
30412 "                       const char *key,\n"
30413 "                       const char *mapname);\n"
30414 "\n"
30415
30416 #. type: textblock
30417 #: ../src/guestfs-actions.pod:4314
30418 msgid ""
30419 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30420 "created."
30421 msgstr ""
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:4325
30425 msgid "guestfs_lvcreate"
30426 msgstr "guestfs_lvcreate"
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:4327
30430 #, no-wrap
30431 msgid ""
30432 " int\n"
30433 " guestfs_lvcreate (guestfs_h *g,\n"
30434 "                   const char *logvol,\n"
30435 "                   const char *volgroup,\n"
30436 "                   int mbytes);\n"
30437 "\n"
30438 msgstr ""
30439 " int\n"
30440 " guestfs_lvcreate (guestfs_h *g,\n"
30441 "                   const char *logvol,\n"
30442 "                   const char *volgroup,\n"
30443 "                   int mbytes);\n"
30444 "\n"
30445
30446 #. type: =head2
30447 #: ../src/guestfs-actions.pod:4340
30448 msgid "guestfs_lvm_canonical_lv_name"
30449 msgstr "guestfs_lvm_canonical_lv_name"
30450
30451 #. type: verbatim
30452 #: ../src/guestfs-actions.pod:4342
30453 #, no-wrap
30454 msgid ""
30455 " char *\n"
30456 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30457 "                                const char *lvname);\n"
30458 "\n"
30459 msgstr ""
30460 " char *\n"
30461 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30462 "                                const char *lvname);\n"
30463 "\n"
30464
30465 #. type: textblock
30466 #: ../src/guestfs-actions.pod:4353
30467 msgid "See also C<guestfs_is_lv>."
30468 msgstr ""
30469
30470 #. type: textblock
30471 #: ../src/guestfs-actions.pod:4358
30472 msgid "(Added in 1.5.24)"
30473 msgstr "(Додано у 1.5.24)"
30474
30475 #. type: =head2
30476 #: ../src/guestfs-actions.pod:4360
30477 msgid "guestfs_lvm_clear_filter"
30478 msgstr "guestfs_lvm_clear_filter"
30479
30480 #. type: verbatim
30481 #: ../src/guestfs-actions.pod:4362
30482 #, no-wrap
30483 msgid ""
30484 " int\n"
30485 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30486 "\n"
30487 msgstr ""
30488 " int\n"
30489 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30490 "\n"
30491
30492 #. type: textblock
30493 #: ../src/guestfs-actions.pod:4365
30494 msgid ""
30495 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30496 "see every block device."
30497 msgstr ""
30498
30499 #. type: =head2
30500 #: ../src/guestfs-actions.pod:4375
30501 msgid "guestfs_lvm_remove_all"
30502 msgstr "guestfs_lvm_remove_all"
30503
30504 #. type: verbatim
30505 #: ../src/guestfs-actions.pod:4377
30506 #, no-wrap
30507 msgid ""
30508 " int\n"
30509 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30510 "\n"
30511 msgstr ""
30512 " int\n"
30513 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30514 "\n"
30515
30516 #. type: =head2
30517 #: ../src/guestfs-actions.pod:4390
30518 msgid "guestfs_lvm_set_filter"
30519 msgstr "guestfs_lvm_set_filter"
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-actions.pod:4392
30523 #, no-wrap
30524 msgid ""
30525 " int\n"
30526 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30527 "                         char *const *devices);\n"
30528 "\n"
30529 msgstr ""
30530 " int\n"
30531 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30532 "                         char *const *devices);\n"
30533 "\n"
30534
30535 #. type: =head2
30536 #: ../src/guestfs-actions.pod:4423
30537 msgid "guestfs_lvremove"
30538 msgstr "guestfs_lvremove"
30539
30540 #. type: verbatim
30541 #: ../src/guestfs-actions.pod:4425
30542 #, no-wrap
30543 msgid ""
30544 " int\n"
30545 " guestfs_lvremove (guestfs_h *g,\n"
30546 "                   const char *device);\n"
30547 "\n"
30548 msgstr ""
30549 " int\n"
30550 " guestfs_lvremove (guestfs_h *g,\n"
30551 "                   const char *device);\n"
30552 "\n"
30553
30554 #. type: textblock
30555 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:5830
30556 #: ../src/guestfs-actions.pod:7680
30557 msgid "(Added in 1.0.13)"
30558 msgstr "(Додано у 1.0.13)"
30559
30560 #. type: =head2
30561 #: ../src/guestfs-actions.pod:4439
30562 msgid "guestfs_lvrename"
30563 msgstr "guestfs_lvrename"
30564
30565 #. type: verbatim
30566 #: ../src/guestfs-actions.pod:4441
30567 #, no-wrap
30568 msgid ""
30569 " int\n"
30570 " guestfs_lvrename (guestfs_h *g,\n"
30571 "                   const char *logvol,\n"
30572 "                   const char *newlogvol);\n"
30573 "\n"
30574 msgstr ""
30575 " int\n"
30576 " guestfs_lvrename (guestfs_h *g,\n"
30577 "                   const char *logvol,\n"
30578 "                   const char *newlogvol);\n"
30579 "\n"
30580
30581 #. type: textblock
30582 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:7693
30583 msgid "(Added in 1.0.83)"
30584 msgstr "(Додано у 1.0.83)"
30585
30586 #. type: =head2
30587 #: ../src/guestfs-actions.pod:4452
30588 msgid "guestfs_lvresize"
30589 msgstr "guestfs_lvresize"
30590
30591 #. type: verbatim
30592 #: ../src/guestfs-actions.pod:4454
30593 #, no-wrap
30594 msgid ""
30595 " int\n"
30596 " guestfs_lvresize (guestfs_h *g,\n"
30597 "                   const char *device,\n"
30598 "                   int mbytes);\n"
30599 "\n"
30600 msgstr ""
30601 " int\n"
30602 " guestfs_lvresize (guestfs_h *g,\n"
30603 "                   const char *device,\n"
30604 "                   int mbytes);\n"
30605 "\n"
30606
30607 #. type: =head2
30608 #: ../src/guestfs-actions.pod:4467
30609 msgid "guestfs_lvresize_free"
30610 msgstr "guestfs_lvresize_free"
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:4469
30614 #, no-wrap
30615 msgid ""
30616 " int\n"
30617 " guestfs_lvresize_free (guestfs_h *g,\n"
30618 "                        const char *lv,\n"
30619 "                        int percent);\n"
30620 "\n"
30621 msgstr ""
30622 " int\n"
30623 " guestfs_lvresize_free (guestfs_h *g,\n"
30624 "                        const char *lv,\n"
30625 "                        int percent);\n"
30626 "\n"
30627
30628 #. type: textblock
30629 #: ../src/guestfs-actions.pod:4482
30630 msgid "(Added in 1.3.3)"
30631 msgstr "(Додано у 1.3.3)"
30632
30633 #. type: =head2
30634 #: ../src/guestfs-actions.pod:4484
30635 msgid "guestfs_lvs"
30636 msgstr "guestfs_lvs"
30637
30638 #. type: verbatim
30639 #: ../src/guestfs-actions.pod:4486
30640 #, no-wrap
30641 msgid ""
30642 " char **\n"
30643 " guestfs_lvs (guestfs_h *g);\n"
30644 "\n"
30645 msgstr ""
30646 " char **\n"
30647 " guestfs_lvs (guestfs_h *g);\n"
30648 "\n"
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:4495
30652 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30653 msgstr ""
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:4503
30657 msgid "guestfs_lvs_full"
30658 msgstr "guestfs_lvs_full"
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:4505
30662 #, no-wrap
30663 msgid ""
30664 " struct guestfs_lvm_lv_list *\n"
30665 " guestfs_lvs_full (guestfs_h *g);\n"
30666 "\n"
30667 msgstr ""
30668 " struct guestfs_lvm_lv_list *\n"
30669 " guestfs_lvs_full (guestfs_h *g);\n"
30670 "\n"
30671
30672 #. type: textblock
30673 #: ../src/guestfs-actions.pod:4511
30674 msgid ""
30675 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30676 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30677 msgstr ""
30678
30679 #. type: =head2
30680 #: ../src/guestfs-actions.pod:4517
30681 msgid "guestfs_lvuuid"
30682 msgstr "guestfs_lvuuid"
30683
30684 #. type: verbatim
30685 #: ../src/guestfs-actions.pod:4519
30686 #, no-wrap
30687 msgid ""
30688 " char *\n"
30689 " guestfs_lvuuid (guestfs_h *g,\n"
30690 "                 const char *device);\n"
30691 "\n"
30692 msgstr ""
30693 " char *\n"
30694 " guestfs_lvuuid (guestfs_h *g,\n"
30695 "                 const char *device);\n"
30696 "\n"
30697
30698 #. type: =head2
30699 #: ../src/guestfs-actions.pod:4530
30700 msgid "guestfs_lxattrlist"
30701 msgstr "guestfs_lxattrlist"
30702
30703 #. type: verbatim
30704 #: ../src/guestfs-actions.pod:4532
30705 #, no-wrap
30706 msgid ""
30707 " struct guestfs_xattr_list *\n"
30708 " guestfs_lxattrlist (guestfs_h *g,\n"
30709 "                     const char *path,\n"
30710 "                     char *const *names);\n"
30711 "\n"
30712 msgstr ""
30713 " struct guestfs_xattr_list *\n"
30714 " guestfs_lxattrlist (guestfs_h *g,\n"
30715 "                     const char *path,\n"
30716 "                     char *const *names);\n"
30717 "\n"
30718
30719 #. type: textblock
30720 #: ../src/guestfs-actions.pod:4551
30721 msgid ""
30722 "This call is intended for programs that want to efficiently list a directory "
30723 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30724 "a similarly efficient call for getting standard stats.  Very long directory "
30725 "listings might cause the protocol message size to be exceeded, causing this "
30726 "call to fail.  The caller must split up such requests into smaller groups of "
30727 "names."
30728 msgstr ""
30729
30730 #. type: =head2
30731 #: ../src/guestfs-actions.pod:4565
30732 msgid "guestfs_mkdir"
30733 msgstr "guestfs_mkdir"
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-actions.pod:4567
30737 #, no-wrap
30738 msgid ""
30739 " int\n"
30740 " guestfs_mkdir (guestfs_h *g,\n"
30741 "                const char *path);\n"
30742 "\n"
30743 msgstr ""
30744 " int\n"
30745 " guestfs_mkdir (guestfs_h *g,\n"
30746 "                const char *path);\n"
30747 "\n"
30748
30749 #. type: =head2
30750 #: ../src/guestfs-actions.pod:4577
30751 msgid "guestfs_mkdir_mode"
30752 msgstr "guestfs_mkdir_mode"
30753
30754 #. type: verbatim
30755 #: ../src/guestfs-actions.pod:4579
30756 #, no-wrap
30757 msgid ""
30758 " int\n"
30759 " guestfs_mkdir_mode (guestfs_h *g,\n"
30760 "                     const char *path,\n"
30761 "                     int mode);\n"
30762 "\n"
30763 msgstr ""
30764 " int\n"
30765 " guestfs_mkdir_mode (guestfs_h *g,\n"
30766 "                     const char *path,\n"
30767 "                     int mode);\n"
30768 "\n"
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:4591
30772 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:4597
30777 msgid "guestfs_mkdir_p"
30778 msgstr "guestfs_mkdir_p"
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:4599
30782 #, no-wrap
30783 msgid ""
30784 " int\n"
30785 " guestfs_mkdir_p (guestfs_h *g,\n"
30786 "                  const char *path);\n"
30787 "\n"
30788 msgstr ""
30789 " int\n"
30790 " guestfs_mkdir_p (guestfs_h *g,\n"
30791 "                  const char *path);\n"
30792 "\n"
30793
30794 #. type: =head2
30795 #: ../src/guestfs-actions.pod:4610
30796 msgid "guestfs_mkdtemp"
30797 msgstr "guestfs_mkdtemp"
30798
30799 #. type: verbatim
30800 #: ../src/guestfs-actions.pod:4612
30801 #, no-wrap
30802 msgid ""
30803 " char *\n"
30804 " guestfs_mkdtemp (guestfs_h *g,\n"
30805 "                  const char *template);\n"
30806 "\n"
30807 msgstr ""
30808 " char *\n"
30809 " guestfs_mkdtemp (guestfs_h *g,\n"
30810 "                  const char *template);\n"
30811 "\n"
30812
30813 #. type: =head2
30814 #: ../src/guestfs-actions.pod:4640
30815 msgid "guestfs_mke2fs_J"
30816 msgstr "guestfs_mke2fs_J"
30817
30818 #. type: verbatim
30819 #: ../src/guestfs-actions.pod:4642
30820 #, no-wrap
30821 msgid ""
30822 " int\n"
30823 " guestfs_mke2fs_J (guestfs_h *g,\n"
30824 "                   const char *fstype,\n"
30825 "                   int blocksize,\n"
30826 "                   const char *device,\n"
30827 "                   const char *journal);\n"
30828 "\n"
30829 msgstr ""
30830 " int\n"
30831 " guestfs_mke2fs_J (guestfs_h *g,\n"
30832 "                   const char *fstype,\n"
30833 "                   int blocksize,\n"
30834 "                   const char *device,\n"
30835 "                   const char *journal);\n"
30836 "\n"
30837
30838 #. type: textblock
30839 #: ../src/guestfs-actions.pod:4655
30840 msgid "See also C<guestfs_mke2journal>."
30841 msgstr ""
30842
30843 #. type: textblock
30844 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4677
30845 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4711
30846 #: ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:4739
30847 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:5075
30848 msgid "(Added in 1.0.68)"
30849 msgstr "(Додано у 1.0.68)"
30850
30851 #. type: =head2
30852 #: ../src/guestfs-actions.pod:4661
30853 msgid "guestfs_mke2fs_JL"
30854 msgstr "guestfs_mke2fs_JL"
30855
30856 #. type: verbatim
30857 #: ../src/guestfs-actions.pod:4663
30858 #, no-wrap
30859 msgid ""
30860 " int\n"
30861 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30862 "                    const char *fstype,\n"
30863 "                    int blocksize,\n"
30864 "                    const char *device,\n"
30865 "                    const char *label);\n"
30866 "\n"
30867 msgstr ""
30868 " int\n"
30869 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30870 "                    const char *fstype,\n"
30871 "                    int blocksize,\n"
30872 "                    const char *device,\n"
30873 "                    const char *label);\n"
30874 "\n"
30875
30876 #. type: textblock
30877 #: ../src/guestfs-actions.pod:4673
30878 msgid "See also C<guestfs_mke2journal_L>."
30879 msgstr ""
30880
30881 #. type: =head2
30882 #: ../src/guestfs-actions.pod:4679
30883 msgid "guestfs_mke2fs_JU"
30884 msgstr "guestfs_mke2fs_JU"
30885
30886 #. type: verbatim
30887 #: ../src/guestfs-actions.pod:4681
30888 #, no-wrap
30889 msgid ""
30890 " int\n"
30891 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30892 "                    const char *fstype,\n"
30893 "                    int blocksize,\n"
30894 "                    const char *device,\n"
30895 "                    const char *uuid);\n"
30896 "\n"
30897 msgstr ""
30898 " int\n"
30899 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30900 "                    const char *fstype,\n"
30901 "                    int blocksize,\n"
30902 "                    const char *device,\n"
30903 "                    const char *uuid);\n"
30904 "\n"
30905
30906 #. type: textblock
30907 #: ../src/guestfs-actions.pod:4691
30908 msgid "See also C<guestfs_mke2journal_U>."
30909 msgstr ""
30910
30911 #. type: =head2
30912 #: ../src/guestfs-actions.pod:4697
30913 msgid "guestfs_mke2journal"
30914 msgstr "guestfs_mke2journal"
30915
30916 #. type: verbatim
30917 #: ../src/guestfs-actions.pod:4699
30918 #, no-wrap
30919 msgid ""
30920 " int\n"
30921 " guestfs_mke2journal (guestfs_h *g,\n"
30922 "                      int blocksize,\n"
30923 "                      const char *device);\n"
30924 "\n"
30925 msgstr ""
30926 " int\n"
30927 " guestfs_mke2journal (guestfs_h *g,\n"
30928 "                      int blocksize,\n"
30929 "                      const char *device);\n"
30930 "\n"
30931
30932 #. type: =head2
30933 #: ../src/guestfs-actions.pod:4713
30934 msgid "guestfs_mke2journal_L"
30935 msgstr "guestfs_mke2journal_L"
30936
30937 #. type: verbatim
30938 #: ../src/guestfs-actions.pod:4715
30939 #, no-wrap
30940 msgid ""
30941 " int\n"
30942 " guestfs_mke2journal_L (guestfs_h *g,\n"
30943 "                        int blocksize,\n"
30944 "                        const char *label,\n"
30945 "                        const char *device);\n"
30946 "\n"
30947 msgstr ""
30948 " int\n"
30949 " guestfs_mke2journal_L (guestfs_h *g,\n"
30950 "                        int blocksize,\n"
30951 "                        const char *label,\n"
30952 "                        const char *device);\n"
30953 "\n"
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:4727
30957 msgid "guestfs_mke2journal_U"
30958 msgstr "guestfs_mke2journal_U"
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:4729
30962 #, no-wrap
30963 msgid ""
30964 " int\n"
30965 " guestfs_mke2journal_U (guestfs_h *g,\n"
30966 "                        int blocksize,\n"
30967 "                        const char *uuid,\n"
30968 "                        const char *device);\n"
30969 "\n"
30970 msgstr ""
30971 " int\n"
30972 " guestfs_mke2journal_U (guestfs_h *g,\n"
30973 "                        int blocksize,\n"
30974 "                        const char *uuid,\n"
30975 "                        const char *device);\n"
30976 "\n"
30977
30978 #. type: =head2
30979 #: ../src/guestfs-actions.pod:4741
30980 msgid "guestfs_mkfifo"
30981 msgstr "guestfs_mkfifo"
30982
30983 #. type: verbatim
30984 #: ../src/guestfs-actions.pod:4743
30985 #, no-wrap
30986 msgid ""
30987 " int\n"
30988 " guestfs_mkfifo (guestfs_h *g,\n"
30989 "                 int mode,\n"
30990 "                 const char *path);\n"
30991 "\n"
30992 msgstr ""
30993 " int\n"
30994 " guestfs_mkfifo (guestfs_h *g,\n"
30995 "                 int mode,\n"
30996 "                 const char *path);\n"
30997 "\n"
30998
30999 #. type: textblock
31000 #: ../src/guestfs-actions.pod:4748
31001 msgid ""
31002 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31003 "is just a convenient wrapper around C<guestfs_mknod>."
31004 msgstr ""
31005
31006 #. type: =head2
31007 #: ../src/guestfs-actions.pod:4758
31008 msgid "guestfs_mkfs"
31009 msgstr "guestfs_mkfs"
31010
31011 #. type: verbatim
31012 #: ../src/guestfs-actions.pod:4760
31013 #, no-wrap
31014 msgid ""
31015 " int\n"
31016 " guestfs_mkfs (guestfs_h *g,\n"
31017 "               const char *fstype,\n"
31018 "               const char *device);\n"
31019 "\n"
31020 msgstr ""
31021 " int\n"
31022 " guestfs_mkfs (guestfs_h *g,\n"
31023 "               const char *fstype,\n"
31024 "               const char *device);\n"
31025 "\n"
31026
31027 #. type: =head2
31028 #: ../src/guestfs-actions.pod:4773
31029 msgid "guestfs_mkfs_b"
31030 msgstr "guestfs_mkfs_b"
31031
31032 #. type: verbatim
31033 #: ../src/guestfs-actions.pod:4775
31034 #, no-wrap
31035 msgid ""
31036 " int\n"
31037 " guestfs_mkfs_b (guestfs_h *g,\n"
31038 "                 const char *fstype,\n"
31039 "                 int blocksize,\n"
31040 "                 const char *device);\n"
31041 "\n"
31042 msgstr ""
31043 " int\n"
31044 " guestfs_mkfs_b (guestfs_h *g,\n"
31045 "                 const char *fstype,\n"
31046 "                 int blocksize,\n"
31047 "                 const char *device);\n"
31048 "\n"
31049
31050 #. type: textblock
31051 #: ../src/guestfs-actions.pod:4781
31052 msgid ""
31053 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31054 "call instead."
31055 msgstr ""
31056
31057 #. type: textblock
31058 #: ../src/guestfs-actions.pod:4788
31059 msgid ""
31060 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31061 "block size of the resulting filesystem.  Supported block sizes depend on the "
31062 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31063 msgstr ""
31064
31065 #. type: =head2
31066 #: ../src/guestfs-actions.pod:4800
31067 msgid "guestfs_mkfs_opts"
31068 msgstr "guestfs_mkfs_opts"
31069
31070 #. type: verbatim
31071 #: ../src/guestfs-actions.pod:4802
31072 #, no-wrap
31073 msgid ""
31074 " int\n"
31075 " guestfs_mkfs_opts (guestfs_h *g,\n"
31076 "                    const char *fstype,\n"
31077 "                    const char *device,\n"
31078 "                    ...);\n"
31079 "\n"
31080 msgstr ""
31081 " int\n"
31082 " guestfs_mkfs_opts (guestfs_h *g,\n"
31083 "                    const char *fstype,\n"
31084 "                    const char *device,\n"
31085 "                    ...);\n"
31086 "\n"
31087
31088 #. type: verbatim
31089 #: ../src/guestfs-actions.pod:4813
31090 #, no-wrap
31091 msgid ""
31092 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31093 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31094 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31095 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31096 "\n"
31097 msgstr ""
31098
31099 #. type: textblock
31100 #: ../src/guestfs-actions.pod:4861
31101 msgid "(Added in 1.7.19)"
31102 msgstr "(Додано у 1.7.19)"
31103
31104 #. type: =head2
31105 #: ../src/guestfs-actions.pod:4863
31106 msgid "guestfs_mkfs_opts_va"
31107 msgstr "guestfs_mkfs_opts_va"
31108
31109 #. type: verbatim
31110 #: ../src/guestfs-actions.pod:4865
31111 #, no-wrap
31112 msgid ""
31113 " int\n"
31114 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31115 "                       const char *fstype,\n"
31116 "                       const char *device,\n"
31117 "                       va_list args);\n"
31118 "\n"
31119 msgstr ""
31120 " int\n"
31121 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31122 "                       const char *fstype,\n"
31123 "                       const char *device,\n"
31124 "                       va_list args);\n"
31125 "\n"
31126
31127 #. type: textblock
31128 #: ../src/guestfs-actions.pod:4871
31129 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31130 msgstr ""
31131
31132 #. type: =head2
31133 #: ../src/guestfs-actions.pod:4875
31134 msgid "guestfs_mkfs_opts_argv"
31135 msgstr "guestfs_mkfs_opts_argv"
31136
31137 #. type: verbatim
31138 #: ../src/guestfs-actions.pod:4877
31139 #, no-wrap
31140 msgid ""
31141 " int\n"
31142 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31143 "                         const char *fstype,\n"
31144 "                         const char *device,\n"
31145 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31146 "\n"
31147 msgstr ""
31148 " int\n"
31149 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31150 "                         const char *fstype,\n"
31151 "                         const char *device,\n"
31152 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31153 "\n"
31154
31155 #. type: textblock
31156 #: ../src/guestfs-actions.pod:4883
31157 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31158 msgstr ""
31159
31160 #. type: =head2
31161 #: ../src/guestfs-actions.pod:4887
31162 msgid "guestfs_mkmountpoint"
31163 msgstr "guestfs_mkmountpoint"
31164
31165 #. type: verbatim
31166 #: ../src/guestfs-actions.pod:4889
31167 #, no-wrap
31168 msgid ""
31169 " int\n"
31170 " guestfs_mkmountpoint (guestfs_h *g,\n"
31171 "                       const char *exemptpath);\n"
31172 "\n"
31173 msgstr ""
31174 " int\n"
31175 " guestfs_mkmountpoint (guestfs_h *g,\n"
31176 "                       const char *exemptpath);\n"
31177 "\n"
31178
31179 #. type: textblock
31180 #: ../src/guestfs-actions.pod:4893
31181 msgid ""
31182 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31183 "that can be used to create extra mountpoints before mounting the first "
31184 "filesystem."
31185 msgstr ""
31186
31187 #. type: textblock
31188 #: ../src/guestfs-actions.pod:4917
31189 msgid ""
31190 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31191 "may get unexpected errors if you try to mix these calls.  It is safest to "
31192 "manually unmount filesystems and remove mountpoints after use."
31193 msgstr ""
31194
31195 #. type: textblock
31196 #: ../src/guestfs-actions.pod:4921
31197 msgid ""
31198 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31199 "first, so for this to work for manual mountpoints, you must ensure that the "
31200 "innermost mountpoints have the longest pathnames, as in the example code "
31201 "above."
31202 msgstr ""
31203
31204 #. type: textblock
31205 #: ../src/guestfs-actions.pod:4928
31206 msgid ""
31207 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31208 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31209 "can also trigger these issues."
31210 msgstr ""
31211
31212 #. type: textblock
31213 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:5240
31214 #: ../src/guestfs-actions.pod:6250
31215 msgid "(Added in 1.0.62)"
31216 msgstr "(Додано у 1.0.62)"
31217
31218 #. type: =head2
31219 #: ../src/guestfs-actions.pod:4936
31220 msgid "guestfs_mknod"
31221 msgstr ""
31222
31223 #. type: verbatim
31224 #: ../src/guestfs-actions.pod:4938
31225 #, no-wrap
31226 msgid ""
31227 " int\n"
31228 " guestfs_mknod (guestfs_h *g,\n"
31229 "                int mode,\n"
31230 "                int devmajor,\n"
31231 "                int devminor,\n"
31232 "                const char *path);\n"
31233 "\n"
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../src/guestfs-actions.pod:4953
31238 msgid ""
31239 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31240 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31241 "regular file).  These constants are available in the standard Linux header "
31242 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31243 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31244 "the appropriate constant for you."
31245 msgstr ""
31246
31247 #. type: =head2
31248 #: ../src/guestfs-actions.pod:4967
31249 msgid "guestfs_mknod_b"
31250 msgstr ""
31251
31252 #. type: verbatim
31253 #: ../src/guestfs-actions.pod:4969
31254 #, no-wrap
31255 msgid ""
31256 " int\n"
31257 " guestfs_mknod_b (guestfs_h *g,\n"
31258 "                  int mode,\n"
31259 "                  int devmajor,\n"
31260 "                  int devminor,\n"
31261 "                  const char *path);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs-actions.pod:4976
31267 msgid ""
31268 "This call creates a block device node called C<path> with mode C<mode> and "
31269 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31270 "wrapper around C<guestfs_mknod>."
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs-actions.pod:4986
31275 msgid "guestfs_mknod_c"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:4988
31280 #, no-wrap
31281 msgid ""
31282 " int\n"
31283 " guestfs_mknod_c (guestfs_h *g,\n"
31284 "                  int mode,\n"
31285 "                  int devmajor,\n"
31286 "                  int devminor,\n"
31287 "                  const char *path);\n"
31288 "\n"
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:4995
31293 msgid ""
31294 "This call creates a char device node called C<path> with mode C<mode> and "
31295 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31296 "wrapper around C<guestfs_mknod>."
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:5005
31301 msgid "guestfs_mkswap"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:5007
31306 #, no-wrap
31307 msgid ""
31308 " int\n"
31309 " guestfs_mkswap (guestfs_h *g,\n"
31310 "                 const char *device);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:5017
31316 msgid "guestfs_mkswap_L"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:5019
31321 #, no-wrap
31322 msgid ""
31323 " int\n"
31324 " guestfs_mkswap_L (guestfs_h *g,\n"
31325 "                   const char *label,\n"
31326 "                   const char *device);\n"
31327 "\n"
31328 msgstr ""
31329
31330 #. type: =head2
31331 #: ../src/guestfs-actions.pod:5034
31332 msgid "guestfs_mkswap_U"
31333 msgstr ""
31334
31335 #. type: verbatim
31336 #: ../src/guestfs-actions.pod:5036
31337 #, no-wrap
31338 msgid ""
31339 " int\n"
31340 " guestfs_mkswap_U (guestfs_h *g,\n"
31341 "                   const char *uuid,\n"
31342 "                   const char *device);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:5047
31348 msgid "guestfs_mkswap_file"
31349 msgstr ""
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:5049
31353 #, no-wrap
31354 msgid ""
31355 " int\n"
31356 " guestfs_mkswap_file (guestfs_h *g,\n"
31357 "                      const char *path);\n"
31358 "\n"
31359 msgstr ""
31360
31361 #. type: textblock
31362 #: ../src/guestfs-actions.pod:5055
31363 msgid ""
31364 "This command just writes a swap file signature to an existing file.  To "
31365 "create the file itself, use something like C<guestfs_fallocate>."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:5062
31370 msgid "guestfs_modprobe"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:5064
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_modprobe (guestfs_h *g,\n"
31379 "                   const char *modulename);\n"
31380 "\n"
31381 msgstr ""
31382
31383 #. type: =head2
31384 #: ../src/guestfs-actions.pod:5077
31385 msgid "guestfs_mount"
31386 msgstr ""
31387
31388 #. type: verbatim
31389 #: ../src/guestfs-actions.pod:5079
31390 #, no-wrap
31391 msgid ""
31392 " int\n"
31393 " guestfs_mount (guestfs_h *g,\n"
31394 "                const char *device,\n"
31395 "                const char *mountpoint);\n"
31396 "\n"
31397 msgstr ""
31398
31399 #. type: textblock
31400 #: ../src/guestfs-actions.pod:5098
31401 msgid ""
31402 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31403 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31404 "problems for users.  If your program might need to work with older versions "
31405 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31406 "for the first parameter if you don't want any options)."
31407 msgstr ""
31408
31409 #. type: =head2
31410 #: ../src/guestfs-actions.pod:5109
31411 msgid "guestfs_mount_9p"
31412 msgstr ""
31413
31414 #. type: verbatim
31415 #: ../src/guestfs-actions.pod:5111
31416 #, no-wrap
31417 msgid ""
31418 " int\n"
31419 " guestfs_mount_9p (guestfs_h *g,\n"
31420 "                   const char *mounttag,\n"
31421 "                   const char *mountpoint,\n"
31422 "                   ...);\n"
31423 "\n"
31424 msgstr ""
31425
31426 #. type: verbatim
31427 #: ../src/guestfs-actions.pod:5122
31428 #, no-wrap
31429 msgid ""
31430 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31431 "\n"
31432 msgstr ""
31433
31434 #. type: =head2
31435 #: ../src/guestfs-actions.pod:5135
31436 msgid "guestfs_mount_9p_va"
31437 msgstr ""
31438
31439 #. type: verbatim
31440 #: ../src/guestfs-actions.pod:5137
31441 #, no-wrap
31442 msgid ""
31443 " int\n"
31444 " guestfs_mount_9p_va (guestfs_h *g,\n"
31445 "                      const char *mounttag,\n"
31446 "                      const char *mountpoint,\n"
31447 "                      va_list args);\n"
31448 "\n"
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs-actions.pod:5143
31453 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31454 msgstr ""
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:5147
31458 msgid "guestfs_mount_9p_argv"
31459 msgstr ""
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:5149
31463 #, no-wrap
31464 msgid ""
31465 " int\n"
31466 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31467 "                        const char *mounttag,\n"
31468 "                        const char *mountpoint,\n"
31469 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31470 "\n"
31471 msgstr ""
31472
31473 #. type: textblock
31474 #: ../src/guestfs-actions.pod:5155
31475 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31476 msgstr ""
31477
31478 #. type: =head2
31479 #: ../src/guestfs-actions.pod:5159
31480 msgid "guestfs_mount_loop"
31481 msgstr ""
31482
31483 #. type: verbatim
31484 #: ../src/guestfs-actions.pod:5161
31485 #, no-wrap
31486 msgid ""
31487 " int\n"
31488 " guestfs_mount_loop (guestfs_h *g,\n"
31489 "                     const char *file,\n"
31490 "                     const char *mountpoint);\n"
31491 "\n"
31492 msgstr ""
31493
31494 #. type: =head2
31495 #: ../src/guestfs-actions.pod:5174
31496 msgid "guestfs_mount_options"
31497 msgstr ""
31498
31499 #. type: verbatim
31500 #: ../src/guestfs-actions.pod:5176
31501 #, no-wrap
31502 msgid ""
31503 " int\n"
31504 " guestfs_mount_options (guestfs_h *g,\n"
31505 "                        const char *options,\n"
31506 "                        const char *device,\n"
31507 "                        const char *mountpoint);\n"
31508 "\n"
31509 msgstr ""
31510
31511 #. type: textblock
31512 #: ../src/guestfs-actions.pod:5182
31513 msgid ""
31514 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31515 "the mount options as for the L<mount(8)> I<-o> flag."
31516 msgstr ""
31517
31518 #. type: textblock
31519 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5206
31520 #: ../src/guestfs-actions.pod:5223
31521 msgid "(Added in 1.0.10)"
31522 msgstr ""
31523
31524 #. type: =head2
31525 #: ../src/guestfs-actions.pod:5194
31526 msgid "guestfs_mount_ro"
31527 msgstr ""
31528
31529 #. type: verbatim
31530 #: ../src/guestfs-actions.pod:5196
31531 #, no-wrap
31532 msgid ""
31533 " int\n"
31534 " guestfs_mount_ro (guestfs_h *g,\n"
31535 "                   const char *device,\n"
31536 "                   const char *mountpoint);\n"
31537 "\n"
31538 msgstr ""
31539
31540 #. type: textblock
31541 #: ../src/guestfs-actions.pod:5201
31542 msgid ""
31543 "This is the same as the C<guestfs_mount> command, but it mounts the "
31544 "filesystem with the read-only (I<-o ro>) flag."
31545 msgstr ""
31546
31547 #. type: =head2
31548 #: ../src/guestfs-actions.pod:5208
31549 msgid "guestfs_mount_vfs"
31550 msgstr ""
31551
31552 #. type: verbatim
31553 #: ../src/guestfs-actions.pod:5210
31554 #, no-wrap
31555 msgid ""
31556 " int\n"
31557 " guestfs_mount_vfs (guestfs_h *g,\n"
31558 "                    const char *options,\n"
31559 "                    const char *vfstype,\n"
31560 "                    const char *device,\n"
31561 "                    const char *mountpoint);\n"
31562 "\n"
31563 msgstr ""
31564
31565 #. type: textblock
31566 #: ../src/guestfs-actions.pod:5217
31567 msgid ""
31568 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31569 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31570 "t> flags."
31571 msgstr ""
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:5225
31575 msgid "guestfs_mountpoints"
31576 msgstr ""
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:5227
31580 #, no-wrap
31581 msgid ""
31582 " char **\n"
31583 " guestfs_mountpoints (guestfs_h *g);\n"
31584 "\n"
31585 msgstr ""
31586
31587 #. type: textblock
31588 #: ../src/guestfs-actions.pod:5230
31589 msgid ""
31590 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31591 "devices.  This one returns a hash table (map) of device name to directory "
31592 "where the device is mounted."
31593 msgstr ""
31594
31595 #. type: =head2
31596 #: ../src/guestfs-actions.pod:5242
31597 msgid "guestfs_mounts"
31598 msgstr ""
31599
31600 #. type: verbatim
31601 #: ../src/guestfs-actions.pod:5244
31602 #, no-wrap
31603 msgid ""
31604 " char **\n"
31605 " guestfs_mounts (guestfs_h *g);\n"
31606 "\n"
31607 msgstr ""
31608
31609 #. type: textblock
31610 #: ../src/guestfs-actions.pod:5252
31611 msgid "See also: C<guestfs_mountpoints>"
31612 msgstr ""
31613
31614 #. type: =head2
31615 #: ../src/guestfs-actions.pod:5260
31616 msgid "guestfs_mv"
31617 msgstr ""
31618
31619 #. type: verbatim
31620 #: ../src/guestfs-actions.pod:5262
31621 #, no-wrap
31622 msgid ""
31623 " int\n"
31624 " guestfs_mv (guestfs_h *g,\n"
31625 "             const char *src,\n"
31626 "             const char *dest);\n"
31627 "\n"
31628 msgstr ""
31629
31630 #. type: =head2
31631 #: ../src/guestfs-actions.pod:5274
31632 msgid "guestfs_ntfs_3g_probe"
31633 msgstr ""
31634
31635 #. type: verbatim
31636 #: ../src/guestfs-actions.pod:5276
31637 #, no-wrap
31638 msgid ""
31639 " int\n"
31640 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31641 "                        int rw,\n"
31642 "                        const char *device);\n"
31643 "\n"
31644 msgstr ""
31645
31646 #. type: textblock
31647 #: ../src/guestfs-actions.pod:5295
31648 msgid "(Added in 1.0.43)"
31649 msgstr ""
31650
31651 #. type: =head2
31652 #: ../src/guestfs-actions.pod:5297
31653 msgid "guestfs_ntfsresize"
31654 msgstr ""
31655
31656 #. type: verbatim
31657 #: ../src/guestfs-actions.pod:5299
31658 #, no-wrap
31659 msgid ""
31660 " int\n"
31661 " guestfs_ntfsresize (guestfs_h *g,\n"
31662 "                     const char *device);\n"
31663 "\n"
31664 msgstr ""
31665
31666 #. type: textblock
31667 #: ../src/guestfs-actions.pod:5303 ../src/guestfs-actions.pod:5403
31668 msgid ""
31669 "I<This function is deprecated.> In new code, use the L</"
31670 "guestfs_ntfsresize_opts> call instead."
31671 msgstr ""
31672
31673 #. type: =head2
31674 #: ../src/guestfs-actions.pod:5327
31675 msgid "guestfs_ntfsresize_opts"
31676 msgstr ""
31677
31678 #. type: verbatim
31679 #: ../src/guestfs-actions.pod:5329
31680 #, no-wrap
31681 msgid ""
31682 " int\n"
31683 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31684 "                          const char *device,\n"
31685 "                          ...);\n"
31686 "\n"
31687 msgstr ""
31688
31689 #. type: verbatim
31690 #: ../src/guestfs-actions.pod:5339
31691 #, no-wrap
31692 msgid ""
31693 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31694 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31695 "\n"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs-actions.pod:5359
31700 msgid ""
31701 "After the resize operation, the filesystem is always marked as requiring a "
31702 "consistency check (for safety).  You have to boot into Windows to perform "
31703 "this check and clear this condition.  If you I<don't> set the C<force> "
31704 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31705 "times on a single filesystem without booting into Windows between each "
31706 "resize."
31707 msgstr ""
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:5374
31711 msgid "guestfs_ntfsresize_opts_va"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:5376
31716 #, no-wrap
31717 msgid ""
31718 " int\n"
31719 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31720 "                             const char *device,\n"
31721 "                             va_list args);\n"
31722 "\n"
31723 msgstr ""
31724
31725 #. type: textblock
31726 #: ../src/guestfs-actions.pod:5381
31727 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31728 msgstr ""
31729
31730 #. type: =head2
31731 #: ../src/guestfs-actions.pod:5385
31732 msgid "guestfs_ntfsresize_opts_argv"
31733 msgstr ""
31734
31735 #. type: verbatim
31736 #: ../src/guestfs-actions.pod:5387
31737 #, no-wrap
31738 msgid ""
31739 " int\n"
31740 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31741 "                               const char *device,\n"
31742 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31743 "\n"
31744 msgstr ""
31745
31746 #. type: textblock
31747 #: ../src/guestfs-actions.pod:5392
31748 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31749 msgstr ""
31750
31751 #. type: =head2
31752 #: ../src/guestfs-actions.pod:5396
31753 msgid "guestfs_ntfsresize_size"
31754 msgstr ""
31755
31756 #. type: verbatim
31757 #: ../src/guestfs-actions.pod:5398
31758 #, no-wrap
31759 msgid ""
31760 " int\n"
31761 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31762 "                          const char *device,\n"
31763 "                          int64_t size);\n"
31764 "\n"
31765 msgstr ""
31766
31767 #. type: textblock
31768 #: ../src/guestfs-actions.pod:5410
31769 msgid ""
31770 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31771 "to specify the new size (in bytes) explicitly."
31772 msgstr ""
31773
31774 #. type: textblock
31775 #: ../src/guestfs-actions.pod:5415 ../src/guestfs-actions.pod:5857
31776 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:6198
31777 #: ../src/guestfs-actions.pod:7837
31778 msgid "(Added in 1.3.14)"
31779 msgstr ""
31780
31781 #. type: =head2
31782 #: ../src/guestfs-actions.pod:5417
31783 msgid "guestfs_part_add"
31784 msgstr ""
31785
31786 #. type: verbatim
31787 #: ../src/guestfs-actions.pod:5419
31788 #, no-wrap
31789 msgid ""
31790 " int\n"
31791 " guestfs_part_add (guestfs_h *g,\n"
31792 "                   const char *device,\n"
31793 "                   const char *prlogex,\n"
31794 "                   int64_t startsect,\n"
31795 "                   int64_t endsect);\n"
31796 "\n"
31797 msgstr ""
31798
31799 #. type: textblock
31800 #: ../src/guestfs-actions.pod:5426
31801 msgid ""
31802 "This command adds a partition to C<device>.  If there is no partition table "
31803 "on the device, call C<guestfs_part_init> first."
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs-actions.pod:5438
31808 msgid ""
31809 "Creating a partition which covers the whole disk is not so easy.  Use "
31810 "C<guestfs_part_disk> to do that."
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs-actions.pod:5443 ../src/guestfs-actions.pod:5481
31815 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5618
31816 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5675
31817 #: ../src/guestfs-actions.pod:5715
31818 msgid "(Added in 1.0.78)"
31819 msgstr ""
31820
31821 #. type: =head2
31822 #: ../src/guestfs-actions.pod:5445
31823 msgid "guestfs_part_del"
31824 msgstr ""
31825
31826 #. type: verbatim
31827 #: ../src/guestfs-actions.pod:5447
31828 #, no-wrap
31829 msgid ""
31830 " int\n"
31831 " guestfs_part_del (guestfs_h *g,\n"
31832 "                   const char *device,\n"
31833 "                   int partnum);\n"
31834 "\n"
31835 msgstr ""
31836
31837 #. type: =head2
31838 #: ../src/guestfs-actions.pod:5462
31839 msgid "guestfs_part_disk"
31840 msgstr ""
31841
31842 #. type: verbatim
31843 #: ../src/guestfs-actions.pod:5464
31844 #, no-wrap
31845 msgid ""
31846 " int\n"
31847 " guestfs_part_disk (guestfs_h *g,\n"
31848 "                    const char *device,\n"
31849 "                    const char *parttype);\n"
31850 "\n"
31851 msgstr ""
31852
31853 #. type: textblock
31854 #: ../src/guestfs-actions.pod:5469
31855 msgid ""
31856 "This command is simply a combination of C<guestfs_part_init> followed by "
31857 "C<guestfs_part_add> to create a single primary partition covering the whole "
31858 "disk."
31859 msgstr ""
31860
31861 #. type: textblock
31862 #: ../src/guestfs-actions.pod:5473
31863 msgid ""
31864 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31865 "possible values are described in C<guestfs_part_init>."
31866 msgstr ""
31867
31868 #. type: =head2
31869 #: ../src/guestfs-actions.pod:5483
31870 msgid "guestfs_part_get_bootable"
31871 msgstr ""
31872
31873 #. type: verbatim
31874 #: ../src/guestfs-actions.pod:5485
31875 #, no-wrap
31876 msgid ""
31877 " int\n"
31878 " guestfs_part_get_bootable (guestfs_h *g,\n"
31879 "                            const char *device,\n"
31880 "                            int partnum);\n"
31881 "\n"
31882 msgstr ""
31883
31884 #. type: textblock
31885 #: ../src/guestfs-actions.pod:5493
31886 msgid "See also C<guestfs_part_set_bootable>."
31887 msgstr ""
31888
31889 #. type: =head2
31890 #: ../src/guestfs-actions.pod:5499
31891 msgid "guestfs_part_get_mbr_id"
31892 msgstr ""
31893
31894 #. type: verbatim
31895 #: ../src/guestfs-actions.pod:5501
31896 #, no-wrap
31897 msgid ""
31898 " int\n"
31899 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31900 "                          const char *device,\n"
31901 "                          int partnum);\n"
31902 "\n"
31903 msgstr ""
31904
31905 #. type: textblock
31906 #: ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5691
31907 msgid ""
31908 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31909 "undefined results for other partition table types (see "
31910 "C<guestfs_part_get_parttype>)."
31911 msgstr ""
31912
31913 #. type: =head2
31914 #: ../src/guestfs-actions.pod:5517
31915 msgid "guestfs_part_get_parttype"
31916 msgstr ""
31917
31918 #. type: verbatim
31919 #: ../src/guestfs-actions.pod:5519
31920 #, no-wrap
31921 msgid ""
31922 " char *\n"
31923 " guestfs_part_get_parttype (guestfs_h *g,\n"
31924 "                            const char *device);\n"
31925 "\n"
31926 msgstr ""
31927
31928 #. type: textblock
31929 #: ../src/guestfs-actions.pod:5526
31930 msgid ""
31931 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31932 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31933 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31934 msgstr ""
31935
31936 #. type: =head2
31937 #: ../src/guestfs-actions.pod:5536
31938 msgid "guestfs_part_init"
31939 msgstr ""
31940
31941 #. type: verbatim
31942 #: ../src/guestfs-actions.pod:5538
31943 #, no-wrap
31944 msgid ""
31945 " int\n"
31946 " guestfs_part_init (guestfs_h *g,\n"
31947 "                    const char *device,\n"
31948 "                    const char *parttype);\n"
31949 "\n"
31950 msgstr ""
31951
31952 #. type: textblock
31953 #: ../src/guestfs-actions.pod:5547
31954 msgid ""
31955 "Initially there are no partitions.  Following this, you should call "
31956 "C<guestfs_part_add> for each partition required."
31957 msgstr ""
31958
31959 #. type: =head2
31960 #: ../src/guestfs-actions.pod:5620
31961 msgid "guestfs_part_list"
31962 msgstr "guestfs_part_list"
31963
31964 #. type: verbatim
31965 #: ../src/guestfs-actions.pod:5622
31966 #, no-wrap
31967 msgid ""
31968 " struct guestfs_partition_list *\n"
31969 " guestfs_part_list (guestfs_h *g,\n"
31970 "                    const char *device);\n"
31971 "\n"
31972 msgstr ""
31973 " struct guestfs_partition_list *\n"
31974 " guestfs_part_list (guestfs_h *g,\n"
31975 "                    const char *device);\n"
31976 "\n"
31977
31978 #. type: textblock
31979 #: ../src/guestfs-actions.pod:5639
31980 msgid ""
31981 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31982 "the device's sector size, see C<guestfs_blockdev_getss>."
31983 msgstr ""
31984
31985 #. type: textblock
31986 #: ../src/guestfs-actions.pod:5652
31987 msgid ""
31988 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31989 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31990 "use>."
31991 msgstr ""
31992
31993 #. type: =head2
31994 #: ../src/guestfs-actions.pod:5658
31995 msgid "guestfs_part_set_bootable"
31996 msgstr ""
31997
31998 #. type: verbatim
31999 #: ../src/guestfs-actions.pod:5660
32000 #, no-wrap
32001 msgid ""
32002 " int\n"
32003 " guestfs_part_set_bootable (guestfs_h *g,\n"
32004 "                            const char *device,\n"
32005 "                            int partnum,\n"
32006 "                            int bootable);\n"
32007 "\n"
32008 msgstr ""
32009
32010 #. type: =head2
32011 #: ../src/guestfs-actions.pod:5677
32012 msgid "guestfs_part_set_mbr_id"
32013 msgstr ""
32014
32015 #. type: verbatim
32016 #: ../src/guestfs-actions.pod:5679
32017 #, no-wrap
32018 msgid ""
32019 " int\n"
32020 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32021 "                          const char *device,\n"
32022 "                          int partnum,\n"
32023 "                          int idbyte);\n"
32024 "\n"
32025 msgstr ""
32026
32027 #. type: =head2
32028 #: ../src/guestfs-actions.pod:5699
32029 msgid "guestfs_part_set_name"
32030 msgstr ""
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-actions.pod:5701
32034 #, no-wrap
32035 msgid ""
32036 " int\n"
32037 " guestfs_part_set_name (guestfs_h *g,\n"
32038 "                        const char *device,\n"
32039 "                        int partnum,\n"
32040 "                        const char *name);\n"
32041 "\n"
32042 msgstr ""
32043
32044 #. type: =head2
32045 #: ../src/guestfs-actions.pod:5717
32046 msgid "guestfs_part_to_dev"
32047 msgstr ""
32048
32049 #. type: verbatim
32050 #: ../src/guestfs-actions.pod:5719
32051 #, no-wrap
32052 msgid ""
32053 " char *\n"
32054 " guestfs_part_to_dev (guestfs_h *g,\n"
32055 "                      const char *partition);\n"
32056 "\n"
32057 msgstr ""
32058
32059 #. type: textblock
32060 #: ../src/guestfs-actions.pod:5727
32061 msgid ""
32062 "The named partition must exist, for example as a string returned from "
32063 "C<guestfs_list_partitions>."
32064 msgstr ""
32065
32066 #. type: =head2
32067 #: ../src/guestfs-actions.pod:5735
32068 msgid "guestfs_ping_daemon"
32069 msgstr ""
32070
32071 #. type: verbatim
32072 #: ../src/guestfs-actions.pod:5737
32073 #, no-wrap
32074 msgid ""
32075 " int\n"
32076 " guestfs_ping_daemon (guestfs_h *g);\n"
32077 "\n"
32078 msgstr ""
32079
32080 #. type: =head2
32081 #: ../src/guestfs-actions.pod:5749
32082 msgid "guestfs_pread"
32083 msgstr ""
32084
32085 #. type: verbatim
32086 #: ../src/guestfs-actions.pod:5751
32087 #, no-wrap
32088 msgid ""
32089 " char *\n"
32090 " guestfs_pread (guestfs_h *g,\n"
32091 "                const char *path,\n"
32092 "                int count,\n"
32093 "                int64_t offset,\n"
32094 "                size_t *size_r);\n"
32095 "\n"
32096 msgstr ""
32097
32098 #. type: textblock
32099 #: ../src/guestfs-actions.pod:5764
32100 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32101 msgstr ""
32102
32103 #. type: =head2
32104 #: ../src/guestfs-actions.pod:5775
32105 msgid "guestfs_pread_device"
32106 msgstr ""
32107
32108 #. type: verbatim
32109 #: ../src/guestfs-actions.pod:5777
32110 #, no-wrap
32111 msgid ""
32112 " char *\n"
32113 " guestfs_pread_device (guestfs_h *g,\n"
32114 "                       const char *device,\n"
32115 "                       int count,\n"
32116 "                       int64_t offset,\n"
32117 "                       size_t *size_r);\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs-actions.pod:5790
32123 msgid "See also C<guestfs_pread>."
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:5799
32128 msgid "(Added in 1.5.21)"
32129 msgstr ""
32130
32131 #. type: =head2
32132 #: ../src/guestfs-actions.pod:5801
32133 msgid "guestfs_pvcreate"
32134 msgstr ""
32135
32136 #. type: verbatim
32137 #: ../src/guestfs-actions.pod:5803
32138 #, no-wrap
32139 msgid ""
32140 " int\n"
32141 " guestfs_pvcreate (guestfs_h *g,\n"
32142 "                   const char *device);\n"
32143 "\n"
32144 msgstr ""
32145
32146 #. type: =head2
32147 #: ../src/guestfs-actions.pod:5815
32148 msgid "guestfs_pvremove"
32149 msgstr ""
32150
32151 #. type: verbatim
32152 #: ../src/guestfs-actions.pod:5817
32153 #, no-wrap
32154 msgid ""
32155 " int\n"
32156 " guestfs_pvremove (guestfs_h *g,\n"
32157 "                   const char *device);\n"
32158 "\n"
32159 msgstr ""
32160
32161 #. type: =head2
32162 #: ../src/guestfs-actions.pod:5832
32163 msgid "guestfs_pvresize"
32164 msgstr ""
32165
32166 #. type: verbatim
32167 #: ../src/guestfs-actions.pod:5834
32168 #, no-wrap
32169 msgid ""
32170 " int\n"
32171 " guestfs_pvresize (guestfs_h *g,\n"
32172 "                   const char *device);\n"
32173 "\n"
32174 msgstr ""
32175
32176 #. type: =head2
32177 #: ../src/guestfs-actions.pod:5845
32178 msgid "guestfs_pvresize_size"
32179 msgstr ""
32180
32181 #. type: verbatim
32182 #: ../src/guestfs-actions.pod:5847
32183 #, no-wrap
32184 msgid ""
32185 " int\n"
32186 " guestfs_pvresize_size (guestfs_h *g,\n"
32187 "                        const char *device,\n"
32188 "                        int64_t size);\n"
32189 "\n"
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../src/guestfs-actions.pod:5852
32194 msgid ""
32195 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32196 "specify the new size (in bytes) explicitly."
32197 msgstr ""
32198
32199 #. type: =head2
32200 #: ../src/guestfs-actions.pod:5859
32201 msgid "guestfs_pvs"
32202 msgstr ""
32203
32204 #. type: verbatim
32205 #: ../src/guestfs-actions.pod:5861
32206 #, no-wrap
32207 msgid ""
32208 " char **\n"
32209 " guestfs_pvs (guestfs_h *g);\n"
32210 "\n"
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs-actions.pod:5870
32215 msgid "See also C<guestfs_pvs_full>."
32216 msgstr ""
32217
32218 #. type: =head2
32219 #: ../src/guestfs-actions.pod:5878
32220 msgid "guestfs_pvs_full"
32221 msgstr ""
32222
32223 #. type: verbatim
32224 #: ../src/guestfs-actions.pod:5880
32225 #, no-wrap
32226 msgid ""
32227 " struct guestfs_lvm_pv_list *\n"
32228 " guestfs_pvs_full (guestfs_h *g);\n"
32229 "\n"
32230 msgstr ""
32231
32232 #. type: textblock
32233 #: ../src/guestfs-actions.pod:5886
32234 msgid ""
32235 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32236 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32237 msgstr ""
32238
32239 #. type: =head2
32240 #: ../src/guestfs-actions.pod:5892
32241 msgid "guestfs_pvuuid"
32242 msgstr ""
32243
32244 #. type: verbatim
32245 #: ../src/guestfs-actions.pod:5894
32246 #, no-wrap
32247 msgid ""
32248 " char *\n"
32249 " guestfs_pvuuid (guestfs_h *g,\n"
32250 "                 const char *device);\n"
32251 "\n"
32252 msgstr ""
32253
32254 #. type: =head2
32255 #: ../src/guestfs-actions.pod:5905
32256 msgid "guestfs_pwrite"
32257 msgstr ""
32258
32259 #. type: verbatim
32260 #: ../src/guestfs-actions.pod:5907
32261 #, no-wrap
32262 msgid ""
32263 " int\n"
32264 " guestfs_pwrite (guestfs_h *g,\n"
32265 "                 const char *path,\n"
32266 "                 const char *content,\n"
32267 "                 size_t content_size,\n"
32268 "                 int64_t offset);\n"
32269 "\n"
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs-actions.pod:5923
32274 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32275 msgstr ""
32276
32277 #. type: =head2
32278 #: ../src/guestfs-actions.pod:5932
32279 msgid "guestfs_pwrite_device"
32280 msgstr ""
32281
32282 #. type: verbatim
32283 #: ../src/guestfs-actions.pod:5934
32284 #, no-wrap
32285 msgid ""
32286 " int\n"
32287 " guestfs_pwrite_device (guestfs_h *g,\n"
32288 "                        const char *device,\n"
32289 "                        const char *content,\n"
32290 "                        size_t content_size,\n"
32291 "                        int64_t offset);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: textblock
32296 #: ../src/guestfs-actions.pod:5949
32297 msgid "See also C<guestfs_pwrite>."
32298 msgstr ""
32299
32300 #. type: textblock
32301 #: ../src/guestfs-actions.pod:5956
32302 msgid "(Added in 1.5.20)"
32303 msgstr ""
32304
32305 #. type: =head2
32306 #: ../src/guestfs-actions.pod:5958
32307 msgid "guestfs_read_file"
32308 msgstr ""
32309
32310 #. type: verbatim
32311 #: ../src/guestfs-actions.pod:5960
32312 #, no-wrap
32313 msgid ""
32314 " char *\n"
32315 " guestfs_read_file (guestfs_h *g,\n"
32316 "                    const char *path,\n"
32317 "                    size_t *size_r);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: textblock
32322 #: ../src/guestfs-actions.pod:5968
32323 msgid ""
32324 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32325 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32326 "function is limited in the total size of file that can be handled."
32327 msgstr ""
32328
32329 #. type: textblock
32330 #: ../src/guestfs-actions.pod:5980
32331 msgid "(Added in 1.0.63)"
32332 msgstr ""
32333
32334 #. type: =head2
32335 #: ../src/guestfs-actions.pod:5982
32336 msgid "guestfs_read_lines"
32337 msgstr ""
32338
32339 #. type: verbatim
32340 #: ../src/guestfs-actions.pod:5984
32341 #, no-wrap
32342 msgid ""
32343 " char **\n"
32344 " guestfs_read_lines (guestfs_h *g,\n"
32345 "                     const char *path);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs-actions.pod:5993
32351 msgid ""
32352 "Note that this function cannot correctly handle binary files (specifically, "
32353 "files containing C<\\0> character which is treated as end of line).  For "
32354 "those you need to use the C<guestfs_read_file> function which has a more "
32355 "complex interface."
32356 msgstr ""
32357
32358 #. type: =head2
32359 #: ../src/guestfs-actions.pod:6004
32360 msgid "guestfs_readdir"
32361 msgstr ""
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-actions.pod:6006
32365 #, no-wrap
32366 msgid ""
32367 " struct guestfs_dirent_list *\n"
32368 " guestfs_readdir (guestfs_h *g,\n"
32369 "                  const char *dir);\n"
32370 "\n"
32371 msgstr ""
32372
32373 #. type: textblock
32374 #: ../src/guestfs-actions.pod:6060
32375 msgid ""
32376 "This function is primarily intended for use by programs.  To get a simple "
32377 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32378 "consumption, use C<guestfs_ll>."
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs-actions.pod:6064
32383 msgid ""
32384 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32385 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32386 msgstr ""
32387
32388 #. type: =head2
32389 #: ../src/guestfs-actions.pod:6070
32390 msgid "guestfs_readlink"
32391 msgstr ""
32392
32393 #. type: verbatim
32394 #: ../src/guestfs-actions.pod:6072
32395 #, no-wrap
32396 msgid ""
32397 " char *\n"
32398 " guestfs_readlink (guestfs_h *g,\n"
32399 "                   const char *path);\n"
32400 "\n"
32401 msgstr ""
32402
32403 #. type: =head2
32404 #: ../src/guestfs-actions.pod:6083
32405 msgid "guestfs_readlinklist"
32406 msgstr ""
32407
32408 #. type: verbatim
32409 #: ../src/guestfs-actions.pod:6085
32410 #, no-wrap
32411 msgid ""
32412 " char **\n"
32413 " guestfs_readlinklist (guestfs_h *g,\n"
32414 "                       const char *path,\n"
32415 "                       char *const *names);\n"
32416 "\n"
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:6118
32421 msgid "guestfs_realpath"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:6120
32426 #, no-wrap
32427 msgid ""
32428 " char *\n"
32429 " guestfs_realpath (guestfs_h *g,\n"
32430 "                   const char *path);\n"
32431 "\n"
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs-actions.pod:6132
32436 msgid "guestfs_removexattr"
32437 msgstr ""
32438
32439 #. type: verbatim
32440 #: ../src/guestfs-actions.pod:6134
32441 #, no-wrap
32442 msgid ""
32443 " int\n"
32444 " guestfs_removexattr (guestfs_h *g,\n"
32445 "                      const char *xattr,\n"
32446 "                      const char *path);\n"
32447 "\n"
32448 msgstr ""
32449
32450 #. type: textblock
32451 #: ../src/guestfs-actions.pod:6142
32452 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32453 msgstr ""
32454
32455 #. type: =head2
32456 #: ../src/guestfs-actions.pod:6148
32457 msgid "guestfs_resize2fs"
32458 msgstr ""
32459
32460 #. type: verbatim
32461 #: ../src/guestfs-actions.pod:6150
32462 #, no-wrap
32463 msgid ""
32464 " int\n"
32465 " guestfs_resize2fs (guestfs_h *g,\n"
32466 "                    const char *device);\n"
32467 "\n"
32468 msgstr ""
32469
32470 #. type: textblock
32471 #: ../src/guestfs-actions.pod:6157
32472 msgid ""
32473 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32474 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32475 "sometimes gives an error about this and sometimes not.  In any case, it is "
32476 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32477 msgstr ""
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:6167
32481 msgid "guestfs_resize2fs_M"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:6169
32486 #, no-wrap
32487 msgid ""
32488 " int\n"
32489 " guestfs_resize2fs_M (guestfs_h *g,\n"
32490 "                      const char *device);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:6173
32496 msgid ""
32497 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32498 "resized to its minimum size.  This works like the I<-M> option to the "
32499 "C<resize2fs> command."
32500 msgstr ""
32501
32502 #. type: textblock
32503 #: ../src/guestfs-actions.pod:6177
32504 msgid ""
32505 "To get the resulting size of the filesystem you should call "
32506 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32507 "These two numbers, multiplied together, give the resulting size of the "
32508 "minimal filesystem in bytes."
32509 msgstr ""
32510
32511 #. type: =head2
32512 #: ../src/guestfs-actions.pod:6186
32513 msgid "guestfs_resize2fs_size"
32514 msgstr ""
32515
32516 #. type: verbatim
32517 #: ../src/guestfs-actions.pod:6188
32518 #, no-wrap
32519 msgid ""
32520 " int\n"
32521 " guestfs_resize2fs_size (guestfs_h *g,\n"
32522 "                         const char *device,\n"
32523 "                         int64_t size);\n"
32524 "\n"
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs-actions.pod:6193
32529 msgid ""
32530 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32531 "to specify the new size (in bytes) explicitly."
32532 msgstr ""
32533
32534 #. type: =head2
32535 #: ../src/guestfs-actions.pod:6200
32536 msgid "guestfs_rm"
32537 msgstr ""
32538
32539 #. type: verbatim
32540 #: ../src/guestfs-actions.pod:6202
32541 #, no-wrap
32542 msgid ""
32543 " int\n"
32544 " guestfs_rm (guestfs_h *g,\n"
32545 "             const char *path);\n"
32546 "\n"
32547 msgstr ""
32548
32549 #. type: =head2
32550 #: ../src/guestfs-actions.pod:6212
32551 msgid "guestfs_rm_rf"
32552 msgstr ""
32553
32554 #. type: verbatim
32555 #: ../src/guestfs-actions.pod:6214
32556 #, no-wrap
32557 msgid ""
32558 " int\n"
32559 " guestfs_rm_rf (guestfs_h *g,\n"
32560 "                const char *path);\n"
32561 "\n"
32562 msgstr ""
32563
32564 #. type: =head2
32565 #: ../src/guestfs-actions.pod:6226
32566 msgid "guestfs_rmdir"
32567 msgstr ""
32568
32569 #. type: verbatim
32570 #: ../src/guestfs-actions.pod:6228
32571 #, no-wrap
32572 msgid ""
32573 " int\n"
32574 " guestfs_rmdir (guestfs_h *g,\n"
32575 "                const char *path);\n"
32576 "\n"
32577 msgstr ""
32578
32579 #. type: =head2
32580 #: ../src/guestfs-actions.pod:6238
32581 msgid "guestfs_rmmountpoint"
32582 msgstr ""
32583
32584 #. type: verbatim
32585 #: ../src/guestfs-actions.pod:6240
32586 #, no-wrap
32587 msgid ""
32588 " int\n"
32589 " guestfs_rmmountpoint (guestfs_h *g,\n"
32590 "                       const char *exemptpath);\n"
32591 "\n"
32592 msgstr ""
32593
32594 #. type: textblock
32595 #: ../src/guestfs-actions.pod:6244
32596 msgid ""
32597 "This calls removes a mountpoint that was previously created with "
32598 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32599 msgstr ""
32600
32601 #. type: =head2
32602 #: ../src/guestfs-actions.pod:6252
32603 msgid "guestfs_scrub_device"
32604 msgstr ""
32605
32606 #. type: verbatim
32607 #: ../src/guestfs-actions.pod:6254
32608 #, no-wrap
32609 msgid ""
32610 " int\n"
32611 " guestfs_scrub_device (guestfs_h *g,\n"
32612 "                       const char *device);\n"
32613 "\n"
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287
32618 #: ../src/guestfs-actions.pod:6306
32619 msgid "(Added in 1.0.52)"
32620 msgstr ""
32621
32622 #. type: =head2
32623 #: ../src/guestfs-actions.pod:6271
32624 msgid "guestfs_scrub_file"
32625 msgstr ""
32626
32627 #. type: verbatim
32628 #: ../src/guestfs-actions.pod:6273
32629 #, no-wrap
32630 msgid ""
32631 " int\n"
32632 " guestfs_scrub_file (guestfs_h *g,\n"
32633 "                     const char *file);\n"
32634 "\n"
32635 msgstr ""
32636
32637 #. type: =head2
32638 #: ../src/guestfs-actions.pod:6289
32639 msgid "guestfs_scrub_freespace"
32640 msgstr ""
32641
32642 #. type: verbatim
32643 #: ../src/guestfs-actions.pod:6291
32644 #, no-wrap
32645 msgid ""
32646 " int\n"
32647 " guestfs_scrub_freespace (guestfs_h *g,\n"
32648 "                          const char *dir);\n"
32649 "\n"
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs-actions.pod:6295
32654 msgid ""
32655 "This command creates the directory C<dir> and then fills it with files until "
32656 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32657 "and deletes them.  The intention is to scrub any free space on the partition "
32658 "containing C<dir>."
32659 msgstr ""
32660
32661 #. type: =head2
32662 #: ../src/guestfs-actions.pod:6308
32663 msgid "guestfs_set_append"
32664 msgstr ""
32665
32666 #. type: verbatim
32667 #: ../src/guestfs-actions.pod:6310
32668 #, no-wrap
32669 msgid ""
32670 " int\n"
32671 " guestfs_set_append (guestfs_h *g,\n"
32672 "                     const char *append);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:6327
32678 msgid "guestfs_set_attach_method"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:6329
32683 #, no-wrap
32684 msgid ""
32685 " int\n"
32686 " guestfs_set_attach_method (guestfs_h *g,\n"
32687 "                            const char *attachmethod);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:6357
32693 msgid "guestfs_set_autosync"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:6359
32698 #, no-wrap
32699 msgid ""
32700 " int\n"
32701 " guestfs_set_autosync (guestfs_h *g,\n"
32702 "                       int autosync);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:6375
32708 msgid "guestfs_set_direct"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:6377
32713 #, no-wrap
32714 msgid ""
32715 " int\n"
32716 " guestfs_set_direct (guestfs_h *g,\n"
32717 "                     int direct);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs-actions.pod:6385
32723 msgid ""
32724 "One consequence of this is that log messages aren't caught by the library "
32725 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32726 "stdout."
32727 msgstr ""
32728
32729 #. type: =head2
32730 #: ../src/guestfs-actions.pod:6398
32731 msgid "guestfs_set_e2label"
32732 msgstr ""
32733
32734 #. type: verbatim
32735 #: ../src/guestfs-actions.pod:6400
32736 #, no-wrap
32737 msgid ""
32738 " int\n"
32739 " guestfs_set_e2label (guestfs_h *g,\n"
32740 "                      const char *device,\n"
32741 "                      const char *label);\n"
32742 "\n"
32743 msgstr ""
32744
32745 #. type: textblock
32746 #: ../src/guestfs-actions.pod:6409
32747 msgid ""
32748 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32749 "the existing label on a filesystem."
32750 msgstr ""
32751
32752 #. type: =head2
32753 #: ../src/guestfs-actions.pod:6416
32754 msgid "guestfs_set_e2uuid"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-actions.pod:6418
32759 #, no-wrap
32760 msgid ""
32761 " int\n"
32762 " guestfs_set_e2uuid (guestfs_h *g,\n"
32763 "                     const char *device,\n"
32764 "                     const char *uuid);\n"
32765 "\n"
32766 msgstr ""
32767
32768 #. type: textblock
32769 #: ../src/guestfs-actions.pod:6428
32770 msgid ""
32771 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32772 "the existing UUID of a filesystem."
32773 msgstr ""
32774
32775 #. type: =head2
32776 #: ../src/guestfs-actions.pod:6435
32777 msgid "guestfs_set_memsize"
32778 msgstr ""
32779
32780 #. type: verbatim
32781 #: ../src/guestfs-actions.pod:6437
32782 #, no-wrap
32783 msgid ""
32784 " int\n"
32785 " guestfs_set_memsize (guestfs_h *g,\n"
32786 "                      int memsize);\n"
32787 "\n"
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../src/guestfs-actions.pod:6441
32792 msgid ""
32793 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32794 "This only has any effect if called before C<guestfs_launch>."
32795 msgstr ""
32796
32797 #. type: =head2
32798 #: ../src/guestfs-actions.pod:6456
32799 msgid "guestfs_set_network"
32800 msgstr ""
32801
32802 #. type: verbatim
32803 #: ../src/guestfs-actions.pod:6458
32804 #, no-wrap
32805 msgid ""
32806 " int\n"
32807 " guestfs_set_network (guestfs_h *g,\n"
32808 "                      int network);\n"
32809 "\n"
32810 msgstr ""
32811
32812 #. type: textblock
32813 #: ../src/guestfs-actions.pod:6468
32814 msgid ""
32815 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32816 "effect."
32817 msgstr ""
32818
32819 #. type: =head2
32820 #: ../src/guestfs-actions.pod:6475
32821 msgid "guestfs_set_path"
32822 msgstr ""
32823
32824 #. type: verbatim
32825 #: ../src/guestfs-actions.pod:6477
32826 #, no-wrap
32827 msgid ""
32828 " int\n"
32829 " guestfs_set_path (guestfs_h *g,\n"
32830 "                   const char *searchpath);\n"
32831 "\n"
32832 msgstr ""
32833
32834 #. type: =head2
32835 #: ../src/guestfs-actions.pod:6492
32836 msgid "guestfs_set_pgroup"
32837 msgstr ""
32838
32839 #. type: verbatim
32840 #: ../src/guestfs-actions.pod:6494
32841 #, no-wrap
32842 msgid ""
32843 " int\n"
32844 " guestfs_set_pgroup (guestfs_h *g,\n"
32845 "                     int pgroup);\n"
32846 "\n"
32847 msgstr ""
32848
32849 #. type: =head2
32850 #: ../src/guestfs-actions.pod:6511
32851 msgid "guestfs_set_qemu"
32852 msgstr ""
32853
32854 #. type: verbatim
32855 #: ../src/guestfs-actions.pod:6513
32856 #, no-wrap
32857 msgid ""
32858 " int\n"
32859 " guestfs_set_qemu (guestfs_h *g,\n"
32860 "                   const char *qemu);\n"
32861 "\n"
32862 msgstr ""
32863
32864 #. type: =head2
32865 #: ../src/guestfs-actions.pod:6539
32866 msgid "guestfs_set_recovery_proc"
32867 msgstr ""
32868
32869 #. type: verbatim
32870 #: ../src/guestfs-actions.pod:6541
32871 #, no-wrap
32872 msgid ""
32873 " int\n"
32874 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32875 "                            int recoveryproc);\n"
32876 "\n"
32877 msgstr ""
32878
32879 #. type: textblock
32880 #: ../src/guestfs-actions.pod:6545
32881 msgid ""
32882 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32883 "not create a recovery process.  The purpose of the recovery process is to "
32884 "stop runaway qemu processes in the case where the main program aborts "
32885 "abruptly."
32886 msgstr ""
32887
32888 #. type: textblock
32889 #: ../src/guestfs-actions.pod:6550
32890 msgid ""
32891 "This only has any effect if called before C<guestfs_launch>, and the default "
32892 "is true."
32893 msgstr ""
32894
32895 #. type: =head2
32896 #: ../src/guestfs-actions.pod:6563
32897 msgid "guestfs_set_selinux"
32898 msgstr ""
32899
32900 #. type: verbatim
32901 #: ../src/guestfs-actions.pod:6565
32902 #, no-wrap
32903 msgid ""
32904 " int\n"
32905 " guestfs_set_selinux (guestfs_h *g,\n"
32906 "                      int selinux);\n"
32907 "\n"
32908 msgstr ""
32909
32910 #. type: =head2
32911 #: ../src/guestfs-actions.pod:6582
32912 #, fuzzy
32913 #| msgid "guestfs_ln_s"
32914 msgid "guestfs_set_smp"
32915 msgstr "guestfs_ln_s"
32916
32917 #. type: verbatim
32918 #: ../src/guestfs-actions.pod:6584
32919 #, fuzzy, no-wrap
32920 #| msgid ""
32921 #| " int\n"
32922 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32923 #| "                  const char *path);\n"
32924 #| "\n"
32925 msgid ""
32926 " int\n"
32927 " guestfs_set_smp (guestfs_h *g,\n"
32928 "                  int smp);\n"
32929 "\n"
32930 msgstr ""
32931 " int\n"
32932 " guestfs_mkdir_p (guestfs_h *g,\n"
32933 "                  const char *path);\n"
32934 "\n"
32935
32936 #. type: textblock
32937 #: ../src/guestfs-actions.pod:6592
32938 msgid "This function must be called before C<guestfs_launch>."
32939 msgstr ""
32940
32941 #. type: =head2
32942 #: ../src/guestfs-actions.pod:6598
32943 msgid "guestfs_set_trace"
32944 msgstr ""
32945
32946 #. type: verbatim
32947 #: ../src/guestfs-actions.pod:6600
32948 #, no-wrap
32949 msgid ""
32950 " int\n"
32951 " guestfs_set_trace (guestfs_h *g,\n"
32952 "                    int trace);\n"
32953 "\n"
32954 msgstr ""
32955
32956 #. type: textblock
32957 #: ../src/guestfs-actions.pod:6614
32958 msgid ""
32959 "Trace messages are normally sent to C<stderr>, unless you register a "
32960 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32961 msgstr ""
32962
32963 #. type: =head2
32964 #: ../src/guestfs-actions.pod:6622
32965 msgid "guestfs_set_verbose"
32966 msgstr ""
32967
32968 #. type: verbatim
32969 #: ../src/guestfs-actions.pod:6624
32970 #, no-wrap
32971 msgid ""
32972 " int\n"
32973 " guestfs_set_verbose (guestfs_h *g,\n"
32974 "                      int verbose);\n"
32975 "\n"
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs-actions.pod:6633
32980 msgid ""
32981 "Verbose messages are normally sent to C<stderr>, unless you register a "
32982 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs-actions.pod:6641
32987 msgid "guestfs_setcon"
32988 msgstr ""
32989
32990 #. type: verbatim
32991 #: ../src/guestfs-actions.pod:6643
32992 #, no-wrap
32993 msgid ""
32994 " int\n"
32995 " guestfs_setcon (guestfs_h *g,\n"
32996 "                 const char *context);\n"
32997 "\n"
32998 msgstr ""
32999
33000 #. type: =head2
33001 #: ../src/guestfs-actions.pod:6656
33002 msgid "guestfs_setxattr"
33003 msgstr ""
33004
33005 #. type: verbatim
33006 #: ../src/guestfs-actions.pod:6658
33007 #, no-wrap
33008 msgid ""
33009 " int\n"
33010 " guestfs_setxattr (guestfs_h *g,\n"
33011 "                   const char *xattr,\n"
33012 "                   const char *val,\n"
33013 "                   int vallen,\n"
33014 "                   const char *path);\n"
33015 "\n"
33016 msgstr ""
33017
33018 #. type: textblock
33019 #: ../src/guestfs-actions.pod:6669
33020 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33021 msgstr ""
33022
33023 #. type: =head2
33024 #: ../src/guestfs-actions.pod:6675
33025 msgid "guestfs_sfdisk"
33026 msgstr ""
33027
33028 #. type: verbatim
33029 #: ../src/guestfs-actions.pod:6677
33030 #, no-wrap
33031 msgid ""
33032 " int\n"
33033 " guestfs_sfdisk (guestfs_h *g,\n"
33034 "                 const char *device,\n"
33035 "                 int cyls,\n"
33036 "                 int heads,\n"
33037 "                 int sectors,\n"
33038 "                 char *const *lines);\n"
33039 "\n"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6729
33044 #: ../src/guestfs-actions.pod:6763
33045 msgid ""
33046 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33047 "call instead."
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs-actions.pod:6712
33052 msgid ""
33053 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33054 msgstr ""
33055
33056 #. type: =head2
33057 #: ../src/guestfs-actions.pod:6722
33058 msgid "guestfs_sfdiskM"
33059 msgstr ""
33060
33061 #. type: verbatim
33062 #: ../src/guestfs-actions.pod:6724
33063 #, no-wrap
33064 msgid ""
33065 " int\n"
33066 " guestfs_sfdiskM (guestfs_h *g,\n"
33067 "                  const char *device,\n"
33068 "                  char *const *lines);\n"
33069 "\n"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs-actions.pod:6736
33074 msgid ""
33075 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33076 "partition sizes are specified in megabytes only (rounded to the nearest "
33077 "cylinder) and you don't need to specify the cyls, heads and sectors "
33078 "parameters which were rarely if ever used anyway."
33079 msgstr ""
33080
33081 #. type: textblock
33082 #: ../src/guestfs-actions.pod:6742
33083 msgid ""
33084 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33085 "C<guestfs_part_disk>"
33086 msgstr ""
33087
33088 #. type: =head2
33089 #: ../src/guestfs-actions.pod:6752
33090 msgid "guestfs_sfdisk_N"
33091 msgstr ""
33092
33093 #. type: verbatim
33094 #: ../src/guestfs-actions.pod:6754
33095 #, no-wrap
33096 msgid ""
33097 " int\n"
33098 " guestfs_sfdisk_N (guestfs_h *g,\n"
33099 "                   const char *device,\n"
33100 "                   int partnum,\n"
33101 "                   int cyls,\n"
33102 "                   int heads,\n"
33103 "                   int sectors,\n"
33104 "                   const char *line);\n"
33105 "\n"
33106 msgstr ""
33107
33108 #. type: textblock
33109 #: ../src/guestfs-actions.pod:6773
33110 msgid ""
33111 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33112 "for the cyls/heads/sectors parameters."
33113 msgstr ""
33114
33115 #. type: textblock
33116 #: ../src/guestfs-actions.pod:6776
33117 msgid "See also: C<guestfs_part_add>"
33118 msgstr ""
33119
33120 #. type: =head2
33121 #: ../src/guestfs-actions.pod:6785
33122 msgid "guestfs_sfdisk_disk_geometry"
33123 msgstr ""
33124
33125 #. type: verbatim
33126 #: ../src/guestfs-actions.pod:6787
33127 #, no-wrap
33128 msgid ""
33129 " char *\n"
33130 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33131 "                               const char *device);\n"
33132 "\n"
33133 msgstr ""
33134
33135 #. type: textblock
33136 #: ../src/guestfs-actions.pod:6791
33137 msgid ""
33138 "This displays the disk geometry of C<device> read from the partition table.  "
33139 "Especially in the case where the underlying block device has been resized, "
33140 "this can be different from the kernel's idea of the geometry (see "
33141 "C<guestfs_sfdisk_kernel_geometry>)."
33142 msgstr ""
33143
33144 #. type: =head2
33145 #: ../src/guestfs-actions.pod:6804
33146 msgid "guestfs_sfdisk_kernel_geometry"
33147 msgstr ""
33148
33149 #. type: verbatim
33150 #: ../src/guestfs-actions.pod:6806
33151 #, no-wrap
33152 msgid ""
33153 " char *\n"
33154 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33155 "                                 const char *device);\n"
33156 "\n"
33157 msgstr ""
33158
33159 #. type: =head2
33160 #: ../src/guestfs-actions.pod:6820
33161 msgid "guestfs_sfdisk_l"
33162 msgstr ""
33163
33164 #. type: verbatim
33165 #: ../src/guestfs-actions.pod:6822
33166 #, no-wrap
33167 msgid ""
33168 " char *\n"
33169 " guestfs_sfdisk_l (guestfs_h *g,\n"
33170 "                   const char *device);\n"
33171 "\n"
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs-actions.pod:6826
33176 msgid ""
33177 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33178 "call instead."
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs-actions.pod:6837
33183 msgid "See also: C<guestfs_part_list>"
33184 msgstr ""
33185
33186 #. type: =head2
33187 #: ../src/guestfs-actions.pod:6844
33188 msgid "guestfs_sh"
33189 msgstr ""
33190
33191 #. type: verbatim
33192 #: ../src/guestfs-actions.pod:6846
33193 #, no-wrap
33194 msgid ""
33195 " char *\n"
33196 " guestfs_sh (guestfs_h *g,\n"
33197 "             const char *command);\n"
33198 "\n"
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs-actions.pod:6853
33203 msgid "This is like C<guestfs_command>, but passes the command to:"
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs-actions.pod:6861
33208 msgid "All the provisos about C<guestfs_command> apply to this call."
33209 msgstr ""
33210
33211 #. type: =head2
33212 #: ../src/guestfs-actions.pod:6868
33213 msgid "guestfs_sh_lines"
33214 msgstr ""
33215
33216 #. type: verbatim
33217 #: ../src/guestfs-actions.pod:6870
33218 #, no-wrap
33219 msgid ""
33220 " char **\n"
33221 " guestfs_sh_lines (guestfs_h *g,\n"
33222 "                   const char *command);\n"
33223 "\n"
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs-actions.pod:6874
33228 msgid ""
33229 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33230 "lines."
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs-actions.pod:6877
33235 msgid "See also: C<guestfs_command_lines>"
33236 msgstr ""
33237
33238 #. type: =head2
33239 #: ../src/guestfs-actions.pod:6885
33240 msgid "guestfs_sleep"
33241 msgstr ""
33242
33243 #. type: verbatim
33244 #: ../src/guestfs-actions.pod:6887
33245 #, no-wrap
33246 msgid ""
33247 " int\n"
33248 " guestfs_sleep (guestfs_h *g,\n"
33249 "                int secs);\n"
33250 "\n"
33251 msgstr ""
33252
33253 #. type: textblock
33254 #: ../src/guestfs-actions.pod:6895
33255 msgid "(Added in 1.0.41)"
33256 msgstr ""
33257
33258 #. type: =head2
33259 #: ../src/guestfs-actions.pod:6897 ../src/guestfs-structs.pod:109
33260 msgid "guestfs_stat"
33261 msgstr ""
33262
33263 #. type: verbatim
33264 #: ../src/guestfs-actions.pod:6899
33265 #, no-wrap
33266 msgid ""
33267 " struct guestfs_stat *\n"
33268 " guestfs_stat (guestfs_h *g,\n"
33269 "               const char *path);\n"
33270 "\n"
33271 msgstr ""
33272
33273 #. type: =head2
33274 #: ../src/guestfs-actions.pod:6913 ../src/guestfs-structs.pod:135
33275 msgid "guestfs_statvfs"
33276 msgstr ""
33277
33278 #. type: verbatim
33279 #: ../src/guestfs-actions.pod:6915
33280 #, no-wrap
33281 msgid ""
33282 " struct guestfs_statvfs *\n"
33283 " guestfs_statvfs (guestfs_h *g,\n"
33284 "                  const char *path);\n"
33285 "\n"
33286 msgstr ""
33287
33288 #. type: textblock
33289 #: ../src/guestfs-actions.pod:6925
33290 msgid ""
33291 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33292 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33293 msgstr ""
33294
33295 #. type: =head2
33296 #: ../src/guestfs-actions.pod:6931
33297 msgid "guestfs_strings"
33298 msgstr ""
33299
33300 #. type: verbatim
33301 #: ../src/guestfs-actions.pod:6933
33302 #, no-wrap
33303 msgid ""
33304 " char **\n"
33305 " guestfs_strings (guestfs_h *g,\n"
33306 "                  const char *path);\n"
33307 "\n"
33308 msgstr ""
33309
33310 #. type: =head2
33311 #: ../src/guestfs-actions.pod:6949
33312 msgid "guestfs_strings_e"
33313 msgstr ""
33314
33315 #. type: verbatim
33316 #: ../src/guestfs-actions.pod:6951
33317 #, no-wrap
33318 msgid ""
33319 " char **\n"
33320 " guestfs_strings_e (guestfs_h *g,\n"
33321 "                    const char *encoding,\n"
33322 "                    const char *path);\n"
33323 "\n"
33324 msgstr ""
33325
33326 #. type: textblock
33327 #: ../src/guestfs-actions.pod:6956
33328 msgid ""
33329 "This is like the C<guestfs_strings> command, but allows you to specify the "
33330 "encoding of strings that are looked for in the source file C<path>."
33331 msgstr ""
33332
33333 #. type: textblock
33334 #: ../src/guestfs-actions.pod:6966
33335 msgid ""
33336 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33337 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33338 msgstr ""
33339
33340 #. type: =head2
33341 #: ../src/guestfs-actions.pod:7004
33342 msgid "guestfs_swapoff_device"
33343 msgstr ""
33344
33345 #. type: verbatim
33346 #: ../src/guestfs-actions.pod:7006
33347 #, no-wrap
33348 msgid ""
33349 " int\n"
33350 " guestfs_swapoff_device (guestfs_h *g,\n"
33351 "                         const char *device);\n"
33352 "\n"
33353 msgstr ""
33354
33355 #. type: textblock
33356 #: ../src/guestfs-actions.pod:7010
33357 msgid ""
33358 "This command disables the libguestfs appliance swap device or partition "
33359 "named C<device>.  See C<guestfs_swapon_device>."
33360 msgstr ""
33361
33362 #. type: =head2
33363 #: ../src/guestfs-actions.pod:7018
33364 msgid "guestfs_swapoff_file"
33365 msgstr ""
33366
33367 #. type: verbatim
33368 #: ../src/guestfs-actions.pod:7020
33369 #, no-wrap
33370 msgid ""
33371 " int\n"
33372 " guestfs_swapoff_file (guestfs_h *g,\n"
33373 "                       const char *file);\n"
33374 "\n"
33375 msgstr ""
33376
33377 #. type: =head2
33378 #: ../src/guestfs-actions.pod:7030
33379 msgid "guestfs_swapoff_label"
33380 msgstr ""
33381
33382 #. type: verbatim
33383 #: ../src/guestfs-actions.pod:7032
33384 #, no-wrap
33385 msgid ""
33386 " int\n"
33387 " guestfs_swapoff_label (guestfs_h *g,\n"
33388 "                        const char *label);\n"
33389 "\n"
33390 msgstr ""
33391
33392 #. type: =head2
33393 #: ../src/guestfs-actions.pod:7043
33394 msgid "guestfs_swapoff_uuid"
33395 msgstr ""
33396
33397 #. type: verbatim
33398 #: ../src/guestfs-actions.pod:7045
33399 #, no-wrap
33400 msgid ""
33401 " int\n"
33402 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33403 "                       const char *uuid);\n"
33404 "\n"
33405 msgstr ""
33406
33407 #. type: =head2
33408 #: ../src/guestfs-actions.pod:7056
33409 msgid "guestfs_swapon_device"
33410 msgstr ""
33411
33412 #. type: verbatim
33413 #: ../src/guestfs-actions.pod:7058
33414 #, no-wrap
33415 msgid ""
33416 " int\n"
33417 " guestfs_swapon_device (guestfs_h *g,\n"
33418 "                        const char *device);\n"
33419 "\n"
33420 msgstr ""
33421
33422 #. type: textblock
33423 #: ../src/guestfs-actions.pod:7062
33424 msgid ""
33425 "This command enables the libguestfs appliance to use the swap device or "
33426 "partition named C<device>.  The increased memory is made available for all "
33427 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33428 msgstr ""
33429
33430 #. type: =head2
33431 #: ../src/guestfs-actions.pod:7078
33432 msgid "guestfs_swapon_file"
33433 msgstr ""
33434
33435 #. type: verbatim
33436 #: ../src/guestfs-actions.pod:7080
33437 #, no-wrap
33438 msgid ""
33439 " int\n"
33440 " guestfs_swapon_file (guestfs_h *g,\n"
33441 "                      const char *file);\n"
33442 "\n"
33443 msgstr ""
33444
33445 #. type: textblock
33446 #: ../src/guestfs-actions.pod:7084
33447 msgid ""
33448 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33449 "notes."
33450 msgstr ""
33451
33452 #. type: =head2
33453 #: ../src/guestfs-actions.pod:7091
33454 msgid "guestfs_swapon_label"
33455 msgstr ""
33456
33457 #. type: verbatim
33458 #: ../src/guestfs-actions.pod:7093
33459 #, no-wrap
33460 msgid ""
33461 " int\n"
33462 " guestfs_swapon_label (guestfs_h *g,\n"
33463 "                       const char *label);\n"
33464 "\n"
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs-actions.pod:7097
33469 msgid ""
33470 "This command enables swap to a labeled swap partition.  See "
33471 "C<guestfs_swapon_device> for other notes."
33472 msgstr ""
33473
33474 #. type: =head2
33475 #: ../src/guestfs-actions.pod:7104
33476 msgid "guestfs_swapon_uuid"
33477 msgstr ""
33478
33479 #. type: verbatim
33480 #: ../src/guestfs-actions.pod:7106
33481 #, no-wrap
33482 msgid ""
33483 " int\n"
33484 " guestfs_swapon_uuid (guestfs_h *g,\n"
33485 "                      const char *uuid);\n"
33486 "\n"
33487 msgstr ""
33488
33489 #. type: textblock
33490 #: ../src/guestfs-actions.pod:7110
33491 msgid ""
33492 "This command enables swap to a swap partition with the given UUID.  See "
33493 "C<guestfs_swapon_device> for other notes."
33494 msgstr ""
33495
33496 #. type: =head2
33497 #: ../src/guestfs-actions.pod:7117
33498 msgid "guestfs_sync"
33499 msgstr ""
33500
33501 #. type: verbatim
33502 #: ../src/guestfs-actions.pod:7119
33503 #, no-wrap
33504 msgid ""
33505 " int\n"
33506 " guestfs_sync (guestfs_h *g);\n"
33507 "\n"
33508 msgstr ""
33509
33510 #. type: =head2
33511 #: ../src/guestfs-actions.pod:7132
33512 msgid "guestfs_tail"
33513 msgstr ""
33514
33515 #. type: verbatim
33516 #: ../src/guestfs-actions.pod:7134
33517 #, no-wrap
33518 msgid ""
33519 " char **\n"
33520 " guestfs_tail (guestfs_h *g,\n"
33521 "               const char *path);\n"
33522 "\n"
33523 msgstr ""
33524
33525 #. type: =head2
33526 #: ../src/guestfs-actions.pod:7150
33527 msgid "guestfs_tail_n"
33528 msgstr ""
33529
33530 #. type: verbatim
33531 #: ../src/guestfs-actions.pod:7152
33532 #, no-wrap
33533 msgid ""
33534 " char **\n"
33535 " guestfs_tail_n (guestfs_h *g,\n"
33536 "                 int nrlines,\n"
33537 "                 const char *path);\n"
33538 "\n"
33539 msgstr ""
33540
33541 #. type: =head2
33542 #: ../src/guestfs-actions.pod:7174
33543 msgid "guestfs_tar_in"
33544 msgstr ""
33545
33546 #. type: verbatim
33547 #: ../src/guestfs-actions.pod:7176
33548 #, no-wrap
33549 msgid ""
33550 " int\n"
33551 " guestfs_tar_in (guestfs_h *g,\n"
33552 "                 const char *tarfile,\n"
33553 "                 const char *directory);\n"
33554 "\n"
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs-actions.pod:7184
33559 msgid ""
33560 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7206
33565 #: ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7238
33566 msgid "(Added in 1.0.3)"
33567 msgstr ""
33568
33569 #. type: =head2
33570 #: ../src/guestfs-actions.pod:7191
33571 msgid "guestfs_tar_out"
33572 msgstr ""
33573
33574 #. type: verbatim
33575 #: ../src/guestfs-actions.pod:7193
33576 #, no-wrap
33577 msgid ""
33578 " int\n"
33579 " guestfs_tar_out (guestfs_h *g,\n"
33580 "                  const char *directory,\n"
33581 "                  const char *tarfile);\n"
33582 "\n"
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs-actions.pod:7201
33587 msgid ""
33588 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33589 "C<guestfs_txz_out>."
33590 msgstr ""
33591
33592 #. type: =head2
33593 #: ../src/guestfs-actions.pod:7208
33594 msgid "guestfs_tgz_in"
33595 msgstr ""
33596
33597 #. type: verbatim
33598 #: ../src/guestfs-actions.pod:7210
33599 #, no-wrap
33600 msgid ""
33601 " int\n"
33602 " guestfs_tgz_in (guestfs_h *g,\n"
33603 "                 const char *tarball,\n"
33604 "                 const char *directory);\n"
33605 "\n"
33606 msgstr ""
33607
33608 #. type: textblock
33609 #: ../src/guestfs-actions.pod:7218
33610 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33611 msgstr ""
33612
33613 #. type: =head2
33614 #: ../src/guestfs-actions.pod:7224
33615 msgid "guestfs_tgz_out"
33616 msgstr ""
33617
33618 #. type: verbatim
33619 #: ../src/guestfs-actions.pod:7226
33620 #, no-wrap
33621 msgid ""
33622 " int\n"
33623 " guestfs_tgz_out (guestfs_h *g,\n"
33624 "                  const char *directory,\n"
33625 "                  const char *tarball);\n"
33626 "\n"
33627 msgstr ""
33628
33629 #. type: textblock
33630 #: ../src/guestfs-actions.pod:7234
33631 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33632 msgstr ""
33633
33634 #. type: =head2
33635 #: ../src/guestfs-actions.pod:7240
33636 msgid "guestfs_touch"
33637 msgstr ""
33638
33639 #. type: verbatim
33640 #: ../src/guestfs-actions.pod:7242
33641 #, no-wrap
33642 msgid ""
33643 " int\n"
33644 " guestfs_touch (guestfs_h *g,\n"
33645 "                const char *path);\n"
33646 "\n"
33647 msgstr ""
33648
33649 #. type: =head2
33650 #: ../src/guestfs-actions.pod:7257
33651 msgid "guestfs_truncate"
33652 msgstr ""
33653
33654 #. type: verbatim
33655 #: ../src/guestfs-actions.pod:7259
33656 #, no-wrap
33657 msgid ""
33658 " int\n"
33659 " guestfs_truncate (guestfs_h *g,\n"
33660 "                   const char *path);\n"
33661 "\n"
33662 msgstr ""
33663
33664 #. type: =head2
33665 #: ../src/guestfs-actions.pod:7270
33666 msgid "guestfs_truncate_size"
33667 msgstr ""
33668
33669 #. type: verbatim
33670 #: ../src/guestfs-actions.pod:7272
33671 #, no-wrap
33672 msgid ""
33673 " int\n"
33674 " guestfs_truncate_size (guestfs_h *g,\n"
33675 "                        const char *path,\n"
33676 "                        int64_t size);\n"
33677 "\n"
33678 msgstr ""
33679
33680 #. type: textblock
33681 #: ../src/guestfs-actions.pod:7280
33682 msgid ""
33683 "If the current file size is less than C<size> then the file is extended to "
33684 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33685 "blocks are not allocated for the file until you write to it).  To create a "
33686 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33687 msgstr ""
33688
33689 #. type: =head2
33690 #: ../src/guestfs-actions.pod:7290
33691 msgid "guestfs_tune2fs_l"
33692 msgstr ""
33693
33694 #. type: verbatim
33695 #: ../src/guestfs-actions.pod:7292
33696 #, no-wrap
33697 msgid ""
33698 " char **\n"
33699 " guestfs_tune2fs_l (guestfs_h *g,\n"
33700 "                    const char *device);\n"
33701 "\n"
33702 msgstr ""
33703
33704 #. type: =head2
33705 #: ../src/guestfs-actions.pod:7312
33706 msgid "guestfs_txz_in"
33707 msgstr ""
33708
33709 #. type: verbatim
33710 #: ../src/guestfs-actions.pod:7314
33711 #, no-wrap
33712 msgid ""
33713 " int\n"
33714 " guestfs_txz_in (guestfs_h *g,\n"
33715 "                 const char *tarball,\n"
33716 "                 const char *directory);\n"
33717 "\n"
33718 msgstr ""
33719
33720 #. type: =head2
33721 #: ../src/guestfs-actions.pod:7326
33722 msgid "guestfs_txz_out"
33723 msgstr ""
33724
33725 #. type: verbatim
33726 #: ../src/guestfs-actions.pod:7328
33727 #, no-wrap
33728 msgid ""
33729 " int\n"
33730 " guestfs_txz_out (guestfs_h *g,\n"
33731 "                  const char *directory,\n"
33732 "                  const char *tarball);\n"
33733 "\n"
33734 msgstr ""
33735
33736 #. type: =head2
33737 #: ../src/guestfs-actions.pod:7340
33738 msgid "guestfs_umask"
33739 msgstr ""
33740
33741 #. type: verbatim
33742 #: ../src/guestfs-actions.pod:7342
33743 #, no-wrap
33744 msgid ""
33745 " int\n"
33746 " guestfs_umask (guestfs_h *g,\n"
33747 "                int mask);\n"
33748 "\n"
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs-actions.pod:7358
33753 msgid ""
33754 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33755 "C<guestfs_mkdir>."
33756 msgstr ""
33757
33758 #. type: =head2
33759 #: ../src/guestfs-actions.pod:7367
33760 msgid "guestfs_umount"
33761 msgstr ""
33762
33763 #. type: verbatim
33764 #: ../src/guestfs-actions.pod:7369
33765 #, no-wrap
33766 msgid ""
33767 " int\n"
33768 " guestfs_umount (guestfs_h *g,\n"
33769 "                 const char *pathordevice);\n"
33770 "\n"
33771 msgstr ""
33772
33773 #. type: =head2
33774 #: ../src/guestfs-actions.pod:7381
33775 msgid "guestfs_umount_all"
33776 msgstr ""
33777
33778 #. type: verbatim
33779 #: ../src/guestfs-actions.pod:7383
33780 #, no-wrap
33781 msgid ""
33782 " int\n"
33783 " guestfs_umount_all (guestfs_h *g);\n"
33784 "\n"
33785 msgstr ""
33786
33787 #. type: =head2
33788 #: ../src/guestfs-actions.pod:7394
33789 msgid "guestfs_upload"
33790 msgstr ""
33791
33792 #. type: verbatim
33793 #: ../src/guestfs-actions.pod:7396
33794 #, no-wrap
33795 msgid ""
33796 " int\n"
33797 " guestfs_upload (guestfs_h *g,\n"
33798 "                 const char *filename,\n"
33799 "                 const char *remotefilename);\n"
33800 "\n"
33801 msgstr ""
33802
33803 #. type: textblock
33804 #: ../src/guestfs-actions.pod:7406
33805 msgid "See also C<guestfs_download>."
33806 msgstr ""
33807
33808 #. type: =head2
33809 #: ../src/guestfs-actions.pod:7417
33810 msgid "guestfs_upload_offset"
33811 msgstr ""
33812
33813 #. type: verbatim
33814 #: ../src/guestfs-actions.pod:7419
33815 #, no-wrap
33816 msgid ""
33817 " int\n"
33818 " guestfs_upload_offset (guestfs_h *g,\n"
33819 "                        const char *filename,\n"
33820 "                        const char *remotefilename,\n"
33821 "                        int64_t offset);\n"
33822 "\n"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs-actions.pod:7435
33827 msgid ""
33828 "Note that there is no limit on the amount of data that can be uploaded with "
33829 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33830 "full amount unless an error occurs."
33831 msgstr ""
33832
33833 #. type: textblock
33834 #: ../src/guestfs-actions.pod:7440
33835 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33836 msgstr ""
33837
33838 #. type: =head2
33839 #: ../src/guestfs-actions.pod:7451
33840 msgid "guestfs_utimens"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-actions.pod:7453
33845 #, no-wrap
33846 msgid ""
33847 " int\n"
33848 " guestfs_utimens (guestfs_h *g,\n"
33849 "                  const char *path,\n"
33850 "                  int64_t atsecs,\n"
33851 "                  int64_t atnsecs,\n"
33852 "                  int64_t mtsecs,\n"
33853 "                  int64_t mtnsecs);\n"
33854 "\n"
33855 msgstr ""
33856
33857 #. type: =head2
33858 #: ../src/guestfs-actions.pod:7482 ../src/guestfs-structs.pod:175
33859 msgid "guestfs_version"
33860 msgstr ""
33861
33862 #. type: verbatim
33863 #: ../src/guestfs-actions.pod:7484
33864 #, no-wrap
33865 msgid ""
33866 " struct guestfs_version *\n"
33867 " guestfs_version (guestfs_h *g);\n"
33868 "\n"
33869 msgstr ""
33870
33871 #. type: textblock
33872 #: ../src/guestfs-actions.pod:7512
33873 msgid ""
33874 "I<Note:> Don't use this call to test for availability of features.  In "
33875 "enterprise distributions we backport features from later versions into "
33876 "earlier versions, making this an unreliable way to test for features.  Use "
33877 "C<guestfs_available> instead."
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs-actions.pod:7518
33882 msgid ""
33883 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33884 "error.  I<The caller must call C<guestfs_free_version> after use>."
33885 msgstr ""
33886
33887 #. type: textblock
33888 #: ../src/guestfs-actions.pod:7522
33889 msgid "(Added in 1.0.58)"
33890 msgstr ""
33891
33892 #. type: =head2
33893 #: ../src/guestfs-actions.pod:7524
33894 msgid "guestfs_vfs_label"
33895 msgstr ""
33896
33897 #. type: verbatim
33898 #: ../src/guestfs-actions.pod:7526
33899 #, no-wrap
33900 msgid ""
33901 " char *\n"
33902 " guestfs_vfs_label (guestfs_h *g,\n"
33903 "                    const char *device);\n"
33904 "\n"
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs-actions.pod:7535
33909 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33910 msgstr ""
33911
33912 #. type: textblock
33913 #: ../src/guestfs-actions.pod:7540 ../src/guestfs-actions.pod:7577
33914 msgid "(Added in 1.3.18)"
33915 msgstr ""
33916
33917 #. type: =head2
33918 #: ../src/guestfs-actions.pod:7542
33919 msgid "guestfs_vfs_type"
33920 msgstr ""
33921
33922 #. type: verbatim
33923 #: ../src/guestfs-actions.pod:7544
33924 #, no-wrap
33925 msgid ""
33926 " char *\n"
33927 " guestfs_vfs_type (guestfs_h *g,\n"
33928 "                   const char *device);\n"
33929 "\n"
33930 msgstr ""
33931
33932 #. type: =head2
33933 #: ../src/guestfs-actions.pod:7561
33934 msgid "guestfs_vfs_uuid"
33935 msgstr ""
33936
33937 #. type: verbatim
33938 #: ../src/guestfs-actions.pod:7563
33939 #, no-wrap
33940 msgid ""
33941 " char *\n"
33942 " guestfs_vfs_uuid (guestfs_h *g,\n"
33943 "                   const char *device);\n"
33944 "\n"
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs-actions.pod:7572
33949 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33950 msgstr ""
33951
33952 #. type: =head2
33953 #: ../src/guestfs-actions.pod:7579
33954 msgid "guestfs_vg_activate"
33955 msgstr ""
33956
33957 #. type: verbatim
33958 #: ../src/guestfs-actions.pod:7581
33959 #, no-wrap
33960 msgid ""
33961 " int\n"
33962 " guestfs_vg_activate (guestfs_h *g,\n"
33963 "                      int activate,\n"
33964 "                      char *const *volgroups);\n"
33965 "\n"
33966 msgstr ""
33967
33968 #. type: =head2
33969 #: ../src/guestfs-actions.pod:7598
33970 msgid "guestfs_vg_activate_all"
33971 msgstr ""
33972
33973 #. type: verbatim
33974 #: ../src/guestfs-actions.pod:7600
33975 #, no-wrap
33976 msgid ""
33977 " int\n"
33978 " guestfs_vg_activate_all (guestfs_h *g,\n"
33979 "                          int activate);\n"
33980 "\n"
33981 msgstr ""
33982
33983 #. type: =head2
33984 #: ../src/guestfs-actions.pod:7613
33985 msgid "guestfs_vgcreate"
33986 msgstr ""
33987
33988 #. type: verbatim
33989 #: ../src/guestfs-actions.pod:7615
33990 #, no-wrap
33991 msgid ""
33992 " int\n"
33993 " guestfs_vgcreate (guestfs_h *g,\n"
33994 "                   const char *volgroup,\n"
33995 "                   char *const *physvols);\n"
33996 "\n"
33997 msgstr ""
33998
33999 #. type: =head2
34000 #: ../src/guestfs-actions.pod:7627
34001 msgid "guestfs_vglvuuids"
34002 msgstr ""
34003
34004 #. type: verbatim
34005 #: ../src/guestfs-actions.pod:7629
34006 #, no-wrap
34007 msgid ""
34008 " char **\n"
34009 " guestfs_vglvuuids (guestfs_h *g,\n"
34010 "                    const char *vgname);\n"
34011 "\n"
34012 msgstr ""
34013
34014 #. type: textblock
34015 #: ../src/guestfs-actions.pod:7636
34016 msgid ""
34017 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34018 "associate logical volumes and volume groups."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs-actions.pod:7639
34023 msgid "See also C<guestfs_vgpvuuids>."
34024 msgstr ""
34025
34026 #. type: =head2
34027 #: ../src/guestfs-actions.pod:7647
34028 msgid "guestfs_vgpvuuids"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs-actions.pod:7649
34033 #, no-wrap
34034 msgid ""
34035 " char **\n"
34036 " guestfs_vgpvuuids (guestfs_h *g,\n"
34037 "                    const char *vgname);\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:7656
34043 msgid ""
34044 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34045 "associate physical volumes and volume groups."
34046 msgstr ""
34047
34048 #. type: textblock
34049 #: ../src/guestfs-actions.pod:7659
34050 msgid "See also C<guestfs_vglvuuids>."
34051 msgstr ""
34052
34053 #. type: =head2
34054 #: ../src/guestfs-actions.pod:7667
34055 msgid "guestfs_vgremove"
34056 msgstr ""
34057
34058 #. type: verbatim
34059 #: ../src/guestfs-actions.pod:7669
34060 #, no-wrap
34061 msgid ""
34062 " int\n"
34063 " guestfs_vgremove (guestfs_h *g,\n"
34064 "                   const char *vgname);\n"
34065 "\n"
34066 msgstr ""
34067
34068 #. type: =head2
34069 #: ../src/guestfs-actions.pod:7682
34070 msgid "guestfs_vgrename"
34071 msgstr ""
34072
34073 #. type: verbatim
34074 #: ../src/guestfs-actions.pod:7684
34075 #, no-wrap
34076 msgid ""
34077 " int\n"
34078 " guestfs_vgrename (guestfs_h *g,\n"
34079 "                   const char *volgroup,\n"
34080 "                   const char *newvolgroup);\n"
34081 "\n"
34082 msgstr ""
34083
34084 #. type: =head2
34085 #: ../src/guestfs-actions.pod:7695
34086 msgid "guestfs_vgs"
34087 msgstr ""
34088
34089 #. type: verbatim
34090 #: ../src/guestfs-actions.pod:7697
34091 #, no-wrap
34092 msgid ""
34093 " char **\n"
34094 " guestfs_vgs (guestfs_h *g);\n"
34095 "\n"
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs-actions.pod:7706
34100 msgid "See also C<guestfs_vgs_full>."
34101 msgstr ""
34102
34103 #. type: =head2
34104 #: ../src/guestfs-actions.pod:7714
34105 msgid "guestfs_vgs_full"
34106 msgstr ""
34107
34108 #. type: verbatim
34109 #: ../src/guestfs-actions.pod:7716
34110 #, no-wrap
34111 msgid ""
34112 " struct guestfs_lvm_vg_list *\n"
34113 " guestfs_vgs_full (guestfs_h *g);\n"
34114 "\n"
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs-actions.pod:7722
34119 msgid ""
34120 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34121 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34122 msgstr ""
34123
34124 #. type: =head2
34125 #: ../src/guestfs-actions.pod:7728
34126 msgid "guestfs_vgscan"
34127 msgstr ""
34128
34129 #. type: verbatim
34130 #: ../src/guestfs-actions.pod:7730
34131 #, no-wrap
34132 msgid ""
34133 " int\n"
34134 " guestfs_vgscan (guestfs_h *g);\n"
34135 "\n"
34136 msgstr ""
34137
34138 #. type: =head2
34139 #: ../src/guestfs-actions.pod:7740
34140 msgid "guestfs_vguuid"
34141 msgstr ""
34142
34143 #. type: verbatim
34144 #: ../src/guestfs-actions.pod:7742
34145 #, no-wrap
34146 msgid ""
34147 " char *\n"
34148 " guestfs_vguuid (guestfs_h *g,\n"
34149 "                 const char *vgname);\n"
34150 "\n"
34151 msgstr ""
34152
34153 #. type: =head2
34154 #: ../src/guestfs-actions.pod:7753
34155 msgid "guestfs_wait_ready"
34156 msgstr ""
34157
34158 #. type: verbatim
34159 #: ../src/guestfs-actions.pod:7755
34160 #, no-wrap
34161 msgid ""
34162 " int\n"
34163 " guestfs_wait_ready (guestfs_h *g);\n"
34164 "\n"
34165 msgstr ""
34166
34167 #. type: textblock
34168 #: ../src/guestfs-actions.pod:7758
34169 msgid ""
34170 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34171 "instead."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs-actions.pod:7765
34176 msgid "This function is a no op."
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs-actions.pod:7767
34181 msgid ""
34182 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34183 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34184 "is no longer necessary because C<guestfs_launch> now does the waiting."
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs-actions.pod:7772
34189 msgid ""
34190 "If you see any calls to this function in code then you can just remove them, "
34191 "unless you want to retain compatibility with older versions of the API."
34192 msgstr ""
34193
34194 #. type: =head2
34195 #: ../src/guestfs-actions.pod:7780
34196 msgid "guestfs_wc_c"
34197 msgstr ""
34198
34199 #. type: verbatim
34200 #: ../src/guestfs-actions.pod:7782
34201 #, no-wrap
34202 msgid ""
34203 " int\n"
34204 " guestfs_wc_c (guestfs_h *g,\n"
34205 "               const char *path);\n"
34206 "\n"
34207 msgstr ""
34208
34209 #. type: =head2
34210 #: ../src/guestfs-actions.pod:7793
34211 msgid "guestfs_wc_l"
34212 msgstr ""
34213
34214 #. type: verbatim
34215 #: ../src/guestfs-actions.pod:7795
34216 #, no-wrap
34217 msgid ""
34218 " int\n"
34219 " guestfs_wc_l (guestfs_h *g,\n"
34220 "               const char *path);\n"
34221 "\n"
34222 msgstr ""
34223
34224 #. type: =head2
34225 #: ../src/guestfs-actions.pod:7806
34226 msgid "guestfs_wc_w"
34227 msgstr ""
34228
34229 #. type: verbatim
34230 #: ../src/guestfs-actions.pod:7808
34231 #, no-wrap
34232 msgid ""
34233 " int\n"
34234 " guestfs_wc_w (guestfs_h *g,\n"
34235 "               const char *path);\n"
34236 "\n"
34237 msgstr ""
34238
34239 #. type: =head2
34240 #: ../src/guestfs-actions.pod:7819
34241 msgid "guestfs_write"
34242 msgstr ""
34243
34244 #. type: verbatim
34245 #: ../src/guestfs-actions.pod:7821
34246 #, no-wrap
34247 msgid ""
34248 " int\n"
34249 " guestfs_write (guestfs_h *g,\n"
34250 "                const char *path,\n"
34251 "                const char *content,\n"
34252 "                size_t content_size);\n"
34253 "\n"
34254 msgstr ""
34255
34256 #. type: textblock
34257 #: ../src/guestfs-actions.pod:7830
34258 msgid "See also C<guestfs_write_append>."
34259 msgstr ""
34260
34261 #. type: =head2
34262 #: ../src/guestfs-actions.pod:7839
34263 msgid "guestfs_write_append"
34264 msgstr ""
34265
34266 #. type: verbatim
34267 #: ../src/guestfs-actions.pod:7841
34268 #, no-wrap
34269 msgid ""
34270 " int\n"
34271 " guestfs_write_append (guestfs_h *g,\n"
34272 "                       const char *path,\n"
34273 "                       const char *content,\n"
34274 "                       size_t content_size);\n"
34275 "\n"
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs-actions.pod:7850
34280 msgid "See also C<guestfs_write>."
34281 msgstr ""
34282
34283 #. type: =head2
34284 #: ../src/guestfs-actions.pod:7859
34285 msgid "guestfs_write_file"
34286 msgstr "guestfs_write_file"
34287
34288 #. type: verbatim
34289 #: ../src/guestfs-actions.pod:7861
34290 #, no-wrap
34291 msgid ""
34292 " int\n"
34293 " guestfs_write_file (guestfs_h *g,\n"
34294 "                     const char *path,\n"
34295 "                     const char *content,\n"
34296 "                     int size);\n"
34297 "\n"
34298 msgstr ""
34299 " int\n"
34300 " guestfs_write_file (guestfs_h *g,\n"
34301 "                     const char *path,\n"
34302 "                     const char *content,\n"
34303 "                     int size);\n"
34304 "\n"
34305
34306 #. type: textblock
34307 #: ../src/guestfs-actions.pod:7867
34308 msgid ""
34309 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34310 "instead."
34311 msgstr ""
34312
34313 #. type: =head2
34314 #: ../src/guestfs-actions.pod:7892
34315 msgid "guestfs_zegrep"
34316 msgstr "guestfs_zegrep"
34317
34318 #. type: verbatim
34319 #: ../src/guestfs-actions.pod:7894
34320 #, no-wrap
34321 msgid ""
34322 " char **\n"
34323 " guestfs_zegrep (guestfs_h *g,\n"
34324 "                 const char *regex,\n"
34325 "                 const char *path);\n"
34326 "\n"
34327 msgstr ""
34328 " char **\n"
34329 " guestfs_zegrep (guestfs_h *g,\n"
34330 "                 const char *regex,\n"
34331 "                 const char *path);\n"
34332 "\n"
34333
34334 #. type: =head2
34335 #: ../src/guestfs-actions.pod:7911
34336 msgid "guestfs_zegrepi"
34337 msgstr "guestfs_zegrepi"
34338
34339 #. type: verbatim
34340 #: ../src/guestfs-actions.pod:7913
34341 #, no-wrap
34342 msgid ""
34343 " char **\n"
34344 " guestfs_zegrepi (guestfs_h *g,\n"
34345 "                  const char *regex,\n"
34346 "                  const char *path);\n"
34347 "\n"
34348 msgstr ""
34349 " char **\n"
34350 " guestfs_zegrepi (guestfs_h *g,\n"
34351 "                  const char *regex,\n"
34352 "                  const char *path);\n"
34353 "\n"
34354
34355 #. type: =head2
34356 #: ../src/guestfs-actions.pod:7930
34357 msgid "guestfs_zero"
34358 msgstr "guestfs_zero"
34359
34360 #. type: verbatim
34361 #: ../src/guestfs-actions.pod:7932
34362 #, no-wrap
34363 msgid ""
34364 " int\n"
34365 " guestfs_zero (guestfs_h *g,\n"
34366 "               const char *device);\n"
34367 "\n"
34368 msgstr ""
34369 " int\n"
34370 " guestfs_zero (guestfs_h *g,\n"
34371 "               const char *device);\n"
34372 "\n"
34373
34374 #. type: textblock
34375 #: ../src/guestfs-actions.pod:7946
34376 msgid ""
34377 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34378 "C<guestfs_is_zero_device>"
34379 msgstr ""
34380
34381 #. type: =head2
34382 #: ../src/guestfs-actions.pod:7958
34383 msgid "guestfs_zero_device"
34384 msgstr "guestfs_zero_device"
34385
34386 #. type: verbatim
34387 #: ../src/guestfs-actions.pod:7960
34388 #, no-wrap
34389 msgid ""
34390 " int\n"
34391 " guestfs_zero_device (guestfs_h *g,\n"
34392 "                      const char *device);\n"
34393 "\n"
34394 msgstr ""
34395 " int\n"
34396 " guestfs_zero_device (guestfs_h *g,\n"
34397 "                      const char *device);\n"
34398 "\n"
34399
34400 #. type: textblock
34401 #: ../src/guestfs-actions.pod:7964
34402 msgid ""
34403 "This command writes zeroes over the entire C<device>.  Compare with "
34404 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34405 msgstr ""
34406
34407 #. type: textblock
34408 #: ../src/guestfs-actions.pod:7982
34409 msgid "(Added in 1.3.1)"
34410 msgstr "(Додано у 1.3.1)"
34411
34412 #. type: =head2
34413 #: ../src/guestfs-actions.pod:7984
34414 msgid "guestfs_zerofree"
34415 msgstr "guestfs_zerofree"
34416
34417 #. type: verbatim
34418 #: ../src/guestfs-actions.pod:7986
34419 #, no-wrap
34420 msgid ""
34421 " int\n"
34422 " guestfs_zerofree (guestfs_h *g,\n"
34423 "                   const char *device);\n"
34424 "\n"
34425 msgstr ""
34426 " int\n"
34427 " guestfs_zerofree (guestfs_h *g,\n"
34428 "                   const char *device);\n"
34429 "\n"
34430
34431 #. type: =head2
34432 #: ../src/guestfs-actions.pod:8005
34433 msgid "guestfs_zfgrep"
34434 msgstr "guestfs_zfgrep"
34435
34436 #. type: verbatim
34437 #: ../src/guestfs-actions.pod:8007
34438 #, no-wrap
34439 msgid ""
34440 " char **\n"
34441 " guestfs_zfgrep (guestfs_h *g,\n"
34442 "                 const char *pattern,\n"
34443 "                 const char *path);\n"
34444 "\n"
34445 msgstr ""
34446 " char **\n"
34447 " guestfs_zfgrep (guestfs_h *g,\n"
34448 "                 const char *pattern,\n"
34449 "                 const char *path);\n"
34450 "\n"
34451
34452 #. type: =head2
34453 #: ../src/guestfs-actions.pod:8024
34454 msgid "guestfs_zfgrepi"
34455 msgstr "guestfs_zfgrepi"
34456
34457 #. type: verbatim
34458 #: ../src/guestfs-actions.pod:8026
34459 #, no-wrap
34460 msgid ""
34461 " char **\n"
34462 " guestfs_zfgrepi (guestfs_h *g,\n"
34463 "                  const char *pattern,\n"
34464 "                  const char *path);\n"
34465 "\n"
34466 msgstr ""
34467 " char **\n"
34468 " guestfs_zfgrepi (guestfs_h *g,\n"
34469 "                  const char *pattern,\n"
34470 "                  const char *path);\n"
34471 "\n"
34472
34473 #. type: =head2
34474 #: ../src/guestfs-actions.pod:8043
34475 msgid "guestfs_zfile"
34476 msgstr "guestfs_zfile"
34477
34478 #. type: verbatim
34479 #: ../src/guestfs-actions.pod:8045
34480 #, no-wrap
34481 msgid ""
34482 " char *\n"
34483 " guestfs_zfile (guestfs_h *g,\n"
34484 "                const char *meth,\n"
34485 "                const char *path);\n"
34486 "\n"
34487 msgstr ""
34488 " char *\n"
34489 " guestfs_zfile (guestfs_h *g,\n"
34490 "                const char *meth,\n"
34491 "                const char *path);\n"
34492 "\n"
34493
34494 #. type: textblock
34495 #: ../src/guestfs-actions.pod:8050
34496 msgid ""
34497 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34498 "instead."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs-actions.pod:8062
34503 msgid ""
34504 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34505 "files."
34506 msgstr ""
34507
34508 #. type: =head2
34509 #: ../src/guestfs-actions.pod:8070
34510 msgid "guestfs_zgrep"
34511 msgstr "guestfs_zgrep"
34512
34513 #. type: verbatim
34514 #: ../src/guestfs-actions.pod:8072
34515 #, no-wrap
34516 msgid ""
34517 " char **\n"
34518 " guestfs_zgrep (guestfs_h *g,\n"
34519 "                const char *regex,\n"
34520 "                const char *path);\n"
34521 "\n"
34522 msgstr ""
34523 " char **\n"
34524 " guestfs_zgrep (guestfs_h *g,\n"
34525 "                const char *regex,\n"
34526 "                const char *path);\n"
34527 "\n"
34528
34529 #. type: =head2
34530 #: ../src/guestfs-actions.pod:8089
34531 msgid "guestfs_zgrepi"
34532 msgstr "guestfs_zgrepi"
34533
34534 #. type: verbatim
34535 #: ../src/guestfs-actions.pod:8091
34536 #, no-wrap
34537 msgid ""
34538 " char **\n"
34539 " guestfs_zgrepi (guestfs_h *g,\n"
34540 "                 const char *regex,\n"
34541 "                 const char *path);\n"
34542 "\n"
34543 msgstr ""
34544 " char **\n"
34545 " guestfs_zgrepi (guestfs_h *g,\n"
34546 "                 const char *regex,\n"
34547 "                 const char *path);\n"
34548 "\n"
34549
34550 #. type: =item
34551 #: ../src/guestfs-availability.pod:3
34552 msgid "B<augeas>"
34553 msgstr "B<augeas>"
34554
34555 #. type: textblock
34556 #: ../src/guestfs-availability.pod:5
34557 msgid ""
34558 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34559 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34560 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34561 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34562 "L</guestfs_aug_save> L</guestfs_aug_set>"
34563 msgstr ""
34564
34565 #. type: =item
34566 #: ../src/guestfs-availability.pod:21
34567 msgid "B<btrfs>"
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs-availability.pod:23
34572 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34573 msgstr ""
34574
34575 #. type: =item
34576 #: ../src/guestfs-availability.pod:26
34577 #, fuzzy
34578 #| msgid "B<scrub>"
34579 msgid "B<grub>"
34580 msgstr "B<scrub>"
34581
34582 #. type: textblock
34583 #: ../src/guestfs-availability.pod:28
34584 msgid "The following functions: L</guestfs_grub_install>"
34585 msgstr ""
34586
34587 #. type: =item
34588 #: ../src/guestfs-availability.pod:31
34589 msgid "B<inotify>"
34590 msgstr "B<inotify>"
34591
34592 #. type: textblock
34593 #: ../src/guestfs-availability.pod:33
34594 msgid ""
34595 "The following functions: L</guestfs_inotify_add_watch> L</"
34596 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34597 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34598 msgstr ""
34599
34600 #. type: =item
34601 #: ../src/guestfs-availability.pod:41
34602 msgid "B<linuxfsuuid>"
34603 msgstr "B<linuxfsuuid>"
34604
34605 #. type: textblock
34606 #: ../src/guestfs-availability.pod:43
34607 msgid ""
34608 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34609 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34610 msgstr ""
34611
34612 #. type: =item
34613 #: ../src/guestfs-availability.pod:50
34614 msgid "B<linuxmodules>"
34615 msgstr "B<linuxmodules>"
34616
34617 #. type: textblock
34618 #: ../src/guestfs-availability.pod:52
34619 msgid "The following functions: L</guestfs_modprobe>"
34620 msgstr ""
34621
34622 #. type: =item
34623 #: ../src/guestfs-availability.pod:55
34624 msgid "B<linuxxattrs>"
34625 msgstr "B<linuxxattrs>"
34626
34627 #. type: textblock
34628 #: ../src/guestfs-availability.pod:57
34629 msgid ""
34630 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34631 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34632 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34633 "guestfs_setxattr>"
34634 msgstr ""
34635
34636 #. type: =item
34637 #: ../src/guestfs-availability.pod:68
34638 msgid "B<luks>"
34639 msgstr "B<luks>"
34640
34641 #. type: textblock
34642 #: ../src/guestfs-availability.pod:70
34643 msgid ""
34644 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34645 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34646 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34647 msgstr ""
34648
34649 #. type: =item
34650 #: ../src/guestfs-availability.pod:79
34651 msgid "B<lvm2>"
34652 msgstr "B<lvm2>"
34653
34654 #. type: textblock
34655 #: ../src/guestfs-availability.pod:81
34656 msgid ""
34657 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34658 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34659 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34660 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34661 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34662 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34663 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34664 msgstr ""
34665
34666 #. type: =item
34667 #: ../src/guestfs-availability.pod:104
34668 msgid "B<mknod>"
34669 msgstr "B<mknod>"
34670
34671 #. type: textblock
34672 #: ../src/guestfs-availability.pod:106
34673 msgid ""
34674 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34675 "guestfs_mknod_b> L</guestfs_mknod_c>"
34676 msgstr ""
34677
34678 #. type: =item
34679 #: ../src/guestfs-availability.pod:112
34680 msgid "B<ntfs3g>"
34681 msgstr "B<ntfs3g>"
34682
34683 #. type: textblock
34684 #: ../src/guestfs-availability.pod:114
34685 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34686 msgstr ""
34687
34688 #. type: =item
34689 #: ../src/guestfs-availability.pod:117
34690 msgid "B<ntfsprogs>"
34691 msgstr "B<ntfsprogs>"
34692
34693 #. type: textblock
34694 #: ../src/guestfs-availability.pod:119
34695 msgid ""
34696 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34697 "L</guestfs_ntfsresize_size>"
34698 msgstr ""
34699
34700 #. type: =item
34701 #: ../src/guestfs-availability.pod:124
34702 msgid "B<realpath>"
34703 msgstr "B<realpath>"
34704
34705 #. type: textblock
34706 #: ../src/guestfs-availability.pod:126
34707 msgid "The following functions: L</guestfs_realpath>"
34708 msgstr ""
34709
34710 #. type: =item
34711 #: ../src/guestfs-availability.pod:129
34712 msgid "B<scrub>"
34713 msgstr "B<scrub>"
34714
34715 #. type: textblock
34716 #: ../src/guestfs-availability.pod:131
34717 msgid ""
34718 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34719 "guestfs_scrub_freespace>"
34720 msgstr ""
34721
34722 #. type: =item
34723 #: ../src/guestfs-availability.pod:136
34724 msgid "B<selinux>"
34725 msgstr "B<selinux>"
34726
34727 #. type: textblock
34728 #: ../src/guestfs-availability.pod:138
34729 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34730 msgstr ""
34731
34732 #. type: =item
34733 #: ../src/guestfs-availability.pod:142
34734 msgid "B<xz>"
34735 msgstr "B<xz>"
34736
34737 #. type: textblock
34738 #: ../src/guestfs-availability.pod:144
34739 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34740 msgstr ""
34741
34742 #. type: =item
34743 #: ../src/guestfs-availability.pod:148
34744 msgid "B<zerofree>"
34745 msgstr "B<zerofree>"
34746
34747 #. type: textblock
34748 #: ../src/guestfs-availability.pod:150
34749 msgid "The following functions: L</guestfs_zerofree>"
34750 msgstr ""
34751
34752 #. type: =head2
34753 #: ../src/guestfs-structs.pod:1
34754 msgid "guestfs_int_bool"
34755 msgstr ""
34756
34757 #. type: verbatim
34758 #: ../src/guestfs-structs.pod:3
34759 #, no-wrap
34760 msgid ""
34761 " struct guestfs_int_bool {\n"
34762 "   int32_t i;\n"
34763 "   int32_t b;\n"
34764 " };\n"
34765 " \n"
34766 msgstr ""
34767
34768 #. type: verbatim
34769 #: ../src/guestfs-structs.pod:8
34770 #, no-wrap
34771 msgid ""
34772 " struct guestfs_int_bool_list {\n"
34773 "   uint32_t len; /* Number of elements in list. */\n"
34774 "   struct guestfs_int_bool *val; /* Elements. */\n"
34775 " };\n"
34776 " \n"
34777 msgstr ""
34778
34779 #. type: verbatim
34780 #: ../src/guestfs-structs.pod:13
34781 #, no-wrap
34782 msgid ""
34783 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34784 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34785 "\n"
34786 msgstr ""
34787
34788 #. type: =head2
34789 #: ../src/guestfs-structs.pod:16
34790 msgid "guestfs_lvm_pv"
34791 msgstr ""
34792
34793 #. type: verbatim
34794 #: ../src/guestfs-structs.pod:18
34795 #, no-wrap
34796 msgid ""
34797 " struct guestfs_lvm_pv {\n"
34798 "   char *pv_name;\n"
34799 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34800 "   char pv_uuid[32];\n"
34801 "   char *pv_fmt;\n"
34802 "   uint64_t pv_size;\n"
34803 "   uint64_t dev_size;\n"
34804 "   uint64_t pv_free;\n"
34805 "   uint64_t pv_used;\n"
34806 "   char *pv_attr;\n"
34807 "   int64_t pv_pe_count;\n"
34808 "   int64_t pv_pe_alloc_count;\n"
34809 "   char *pv_tags;\n"
34810 "   uint64_t pe_start;\n"
34811 "   int64_t pv_mda_count;\n"
34812 "   uint64_t pv_mda_free;\n"
34813 " };\n"
34814 " \n"
34815 msgstr ""
34816
34817 #. type: verbatim
34818 #: ../src/guestfs-structs.pod:36
34819 #, no-wrap
34820 msgid ""
34821 " struct guestfs_lvm_pv_list {\n"
34822 "   uint32_t len; /* Number of elements in list. */\n"
34823 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34824 " };\n"
34825 " \n"
34826 msgstr ""
34827
34828 #. type: verbatim
34829 #: ../src/guestfs-structs.pod:41
34830 #, no-wrap
34831 msgid ""
34832 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34833 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34834 "\n"
34835 msgstr ""
34836
34837 #. type: =head2
34838 #: ../src/guestfs-structs.pod:44
34839 msgid "guestfs_lvm_vg"
34840 msgstr ""
34841
34842 #. type: verbatim
34843 #: ../src/guestfs-structs.pod:46
34844 #, no-wrap
34845 msgid ""
34846 " struct guestfs_lvm_vg {\n"
34847 "   char *vg_name;\n"
34848 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34849 "   char vg_uuid[32];\n"
34850 "   char *vg_fmt;\n"
34851 "   char *vg_attr;\n"
34852 "   uint64_t vg_size;\n"
34853 "   uint64_t vg_free;\n"
34854 "   char *vg_sysid;\n"
34855 "   uint64_t vg_extent_size;\n"
34856 "   int64_t vg_extent_count;\n"
34857 "   int64_t vg_free_count;\n"
34858 "   int64_t max_lv;\n"
34859 "   int64_t max_pv;\n"
34860 "   int64_t pv_count;\n"
34861 "   int64_t lv_count;\n"
34862 "   int64_t snap_count;\n"
34863 "   int64_t vg_seqno;\n"
34864 "   char *vg_tags;\n"
34865 "   int64_t vg_mda_count;\n"
34866 "   uint64_t vg_mda_free;\n"
34867 " };\n"
34868 " \n"
34869 msgstr ""
34870
34871 #. type: verbatim
34872 #: ../src/guestfs-structs.pod:69
34873 #, no-wrap
34874 msgid ""
34875 " struct guestfs_lvm_vg_list {\n"
34876 "   uint32_t len; /* Number of elements in list. */\n"
34877 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34878 " };\n"
34879 " \n"
34880 msgstr ""
34881
34882 #. type: verbatim
34883 #: ../src/guestfs-structs.pod:74
34884 #, no-wrap
34885 msgid ""
34886 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34887 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34888 "\n"
34889 msgstr ""
34890
34891 #. type: =head2
34892 #: ../src/guestfs-structs.pod:77
34893 msgid "guestfs_lvm_lv"
34894 msgstr ""
34895
34896 #. type: verbatim
34897 #: ../src/guestfs-structs.pod:79
34898 #, no-wrap
34899 msgid ""
34900 " struct guestfs_lvm_lv {\n"
34901 "   char *lv_name;\n"
34902 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34903 "   char lv_uuid[32];\n"
34904 "   char *lv_attr;\n"
34905 "   int64_t lv_major;\n"
34906 "   int64_t lv_minor;\n"
34907 "   int64_t lv_kernel_major;\n"
34908 "   int64_t lv_kernel_minor;\n"
34909 "   uint64_t lv_size;\n"
34910 "   int64_t seg_count;\n"
34911 "   char *origin;\n"
34912 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34913 "   float snap_percent;\n"
34914 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34915 "   float copy_percent;\n"
34916 "   char *move_pv;\n"
34917 "   char *lv_tags;\n"
34918 "   char *mirror_log;\n"
34919 "   char *modules;\n"
34920 " };\n"
34921 " \n"
34922 msgstr ""
34923
34924 #. type: verbatim
34925 #: ../src/guestfs-structs.pod:101
34926 #, no-wrap
34927 msgid ""
34928 " struct guestfs_lvm_lv_list {\n"
34929 "   uint32_t len; /* Number of elements in list. */\n"
34930 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34931 " };\n"
34932 " \n"
34933 msgstr ""
34934
34935 #. type: verbatim
34936 #: ../src/guestfs-structs.pod:106
34937 #, no-wrap
34938 msgid ""
34939 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34940 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34941 "\n"
34942 msgstr ""
34943
34944 #. type: verbatim
34945 #: ../src/guestfs-structs.pod:111
34946 #, no-wrap
34947 msgid ""
34948 " struct guestfs_stat {\n"
34949 "   int64_t dev;\n"
34950 "   int64_t ino;\n"
34951 "   int64_t mode;\n"
34952 "   int64_t nlink;\n"
34953 "   int64_t uid;\n"
34954 "   int64_t gid;\n"
34955 "   int64_t rdev;\n"
34956 "   int64_t size;\n"
34957 "   int64_t blksize;\n"
34958 "   int64_t blocks;\n"
34959 "   int64_t atime;\n"
34960 "   int64_t mtime;\n"
34961 "   int64_t ctime;\n"
34962 " };\n"
34963 " \n"
34964 msgstr ""
34965
34966 #. type: verbatim
34967 #: ../src/guestfs-structs.pod:127
34968 #, no-wrap
34969 msgid ""
34970 " struct guestfs_stat_list {\n"
34971 "   uint32_t len; /* Number of elements in list. */\n"
34972 "   struct guestfs_stat *val; /* Elements. */\n"
34973 " };\n"
34974 " \n"
34975 msgstr ""
34976
34977 #. type: verbatim
34978 #: ../src/guestfs-structs.pod:132
34979 #, no-wrap
34980 msgid ""
34981 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34982 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34983 "\n"
34984 msgstr ""
34985
34986 #. type: verbatim
34987 #: ../src/guestfs-structs.pod:137
34988 #, no-wrap
34989 msgid ""
34990 " struct guestfs_statvfs {\n"
34991 "   int64_t bsize;\n"
34992 "   int64_t frsize;\n"
34993 "   int64_t blocks;\n"
34994 "   int64_t bfree;\n"
34995 "   int64_t bavail;\n"
34996 "   int64_t files;\n"
34997 "   int64_t ffree;\n"
34998 "   int64_t favail;\n"
34999 "   int64_t fsid;\n"
35000 "   int64_t flag;\n"
35001 "   int64_t namemax;\n"
35002 " };\n"
35003 " \n"
35004 msgstr ""
35005
35006 #. type: verbatim
35007 #: ../src/guestfs-structs.pod:151
35008 #, no-wrap
35009 msgid ""
35010 " struct guestfs_statvfs_list {\n"
35011 "   uint32_t len; /* Number of elements in list. */\n"
35012 "   struct guestfs_statvfs *val; /* Elements. */\n"
35013 " };\n"
35014 " \n"
35015 msgstr ""
35016
35017 #. type: verbatim
35018 #: ../src/guestfs-structs.pod:156
35019 #, no-wrap
35020 msgid ""
35021 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35022 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35023 "\n"
35024 msgstr ""
35025
35026 #. type: =head2
35027 #: ../src/guestfs-structs.pod:159
35028 msgid "guestfs_dirent"
35029 msgstr ""
35030
35031 #. type: verbatim
35032 #: ../src/guestfs-structs.pod:161
35033 #, no-wrap
35034 msgid ""
35035 " struct guestfs_dirent {\n"
35036 "   int64_t ino;\n"
35037 "   char ftyp;\n"
35038 "   char *name;\n"
35039 " };\n"
35040 " \n"
35041 msgstr ""
35042
35043 #. type: verbatim
35044 #: ../src/guestfs-structs.pod:167
35045 #, no-wrap
35046 msgid ""
35047 " struct guestfs_dirent_list {\n"
35048 "   uint32_t len; /* Number of elements in list. */\n"
35049 "   struct guestfs_dirent *val; /* Elements. */\n"
35050 " };\n"
35051 " \n"
35052 msgstr ""
35053
35054 #. type: verbatim
35055 #: ../src/guestfs-structs.pod:172
35056 #, no-wrap
35057 msgid ""
35058 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35059 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35060 "\n"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs-structs.pod:177
35065 #, no-wrap
35066 msgid ""
35067 " struct guestfs_version {\n"
35068 "   int64_t major;\n"
35069 "   int64_t minor;\n"
35070 "   int64_t release;\n"
35071 "   char *extra;\n"
35072 " };\n"
35073 " \n"
35074 msgstr ""
35075
35076 #. type: verbatim
35077 #: ../src/guestfs-structs.pod:184
35078 #, no-wrap
35079 msgid ""
35080 " struct guestfs_version_list {\n"
35081 "   uint32_t len; /* Number of elements in list. */\n"
35082 "   struct guestfs_version *val; /* Elements. */\n"
35083 " };\n"
35084 " \n"
35085 msgstr ""
35086
35087 #. type: verbatim
35088 #: ../src/guestfs-structs.pod:189
35089 #, no-wrap
35090 msgid ""
35091 " void guestfs_free_version (struct guestfs_free_version *);\n"
35092 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35093 "\n"
35094 msgstr ""
35095
35096 #. type: =head2
35097 #: ../src/guestfs-structs.pod:192
35098 msgid "guestfs_xattr"
35099 msgstr ""
35100
35101 #. type: verbatim
35102 #: ../src/guestfs-structs.pod:194
35103 #, no-wrap
35104 msgid ""
35105 " struct guestfs_xattr {\n"
35106 "   char *attrname;\n"
35107 "   /* The next two fields describe a byte array. */\n"
35108 "   uint32_t attrval_len;\n"
35109 "   char *attrval;\n"
35110 " };\n"
35111 " \n"
35112 msgstr ""
35113
35114 #. type: verbatim
35115 #: ../src/guestfs-structs.pod:201
35116 #, no-wrap
35117 msgid ""
35118 " struct guestfs_xattr_list {\n"
35119 "   uint32_t len; /* Number of elements in list. */\n"
35120 "   struct guestfs_xattr *val; /* Elements. */\n"
35121 " };\n"
35122 " \n"
35123 msgstr ""
35124
35125 #. type: verbatim
35126 #: ../src/guestfs-structs.pod:206
35127 #, no-wrap
35128 msgid ""
35129 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35130 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35131 "\n"
35132 msgstr ""
35133
35134 #. type: =head2
35135 #: ../src/guestfs-structs.pod:209
35136 msgid "guestfs_inotify_event"
35137 msgstr ""
35138
35139 #. type: verbatim
35140 #: ../src/guestfs-structs.pod:211
35141 #, no-wrap
35142 msgid ""
35143 " struct guestfs_inotify_event {\n"
35144 "   int64_t in_wd;\n"
35145 "   uint32_t in_mask;\n"
35146 "   uint32_t in_cookie;\n"
35147 "   char *in_name;\n"
35148 " };\n"
35149 " \n"
35150 msgstr ""
35151
35152 #. type: verbatim
35153 #: ../src/guestfs-structs.pod:218
35154 #, no-wrap
35155 msgid ""
35156 " struct guestfs_inotify_event_list {\n"
35157 "   uint32_t len; /* Number of elements in list. */\n"
35158 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35159 " };\n"
35160 " \n"
35161 msgstr ""
35162
35163 #. type: verbatim
35164 #: ../src/guestfs-structs.pod:223
35165 #, no-wrap
35166 msgid ""
35167 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35168 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35169 "\n"
35170 msgstr ""
35171
35172 #. type: =head2
35173 #: ../src/guestfs-structs.pod:226
35174 msgid "guestfs_partition"
35175 msgstr ""
35176
35177 #. type: verbatim
35178 #: ../src/guestfs-structs.pod:228
35179 #, no-wrap
35180 msgid ""
35181 " struct guestfs_partition {\n"
35182 "   int32_t part_num;\n"
35183 "   uint64_t part_start;\n"
35184 "   uint64_t part_end;\n"
35185 "   uint64_t part_size;\n"
35186 " };\n"
35187 " \n"
35188 msgstr ""
35189
35190 #. type: verbatim
35191 #: ../src/guestfs-structs.pod:235
35192 #, no-wrap
35193 msgid ""
35194 " struct guestfs_partition_list {\n"
35195 "   uint32_t len; /* Number of elements in list. */\n"
35196 "   struct guestfs_partition *val; /* Elements. */\n"
35197 " };\n"
35198 " \n"
35199 msgstr ""
35200
35201 #. type: verbatim
35202 #: ../src/guestfs-structs.pod:240
35203 #, no-wrap
35204 msgid ""
35205 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35206 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35207 "\n"
35208 msgstr ""
35209
35210 #. type: =head2
35211 #: ../src/guestfs-structs.pod:243
35212 msgid "guestfs_application"
35213 msgstr ""
35214
35215 #. type: verbatim
35216 #: ../src/guestfs-structs.pod:245
35217 #, no-wrap
35218 msgid ""
35219 " struct guestfs_application {\n"
35220 "   char *app_name;\n"
35221 "   char *app_display_name;\n"
35222 "   int32_t app_epoch;\n"
35223 "   char *app_version;\n"
35224 "   char *app_release;\n"
35225 "   char *app_install_path;\n"
35226 "   char *app_trans_path;\n"
35227 "   char *app_publisher;\n"
35228 "   char *app_url;\n"
35229 "   char *app_source_package;\n"
35230 "   char *app_summary;\n"
35231 "   char *app_description;\n"
35232 " };\n"
35233 " \n"
35234 msgstr ""
35235
35236 #. type: verbatim
35237 #: ../src/guestfs-structs.pod:260
35238 #, no-wrap
35239 msgid ""
35240 " struct guestfs_application_list {\n"
35241 "   uint32_t len; /* Number of elements in list. */\n"
35242 "   struct guestfs_application *val; /* Elements. */\n"
35243 " };\n"
35244 " \n"
35245 msgstr ""
35246
35247 #. type: verbatim
35248 #: ../src/guestfs-structs.pod:265
35249 #, no-wrap
35250 msgid ""
35251 " void guestfs_free_application (struct guestfs_free_application *);\n"
35252 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35253 "\n"
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:5
35258 msgid "guestfs - Library for accessing and modifying virtual machine images"
35259 msgstr ""
35260 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35261 "машин"
35262
35263 #. type: verbatim
35264 #: ../src/guestfs.pod:11
35265 #, no-wrap
35266 msgid ""
35267 " guestfs_h *g = guestfs_create ();\n"
35268 " guestfs_add_drive (g, \"guest.img\");\n"
35269 " guestfs_launch (g);\n"
35270 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35271 " guestfs_touch (g, \"/hello\");\n"
35272 " guestfs_umount (g, \"/\");\n"
35273 " guestfs_close (g);\n"
35274 "\n"
35275 msgstr ""
35276 " guestfs_h *g = guestfs_create ();\n"
35277 " guestfs_add_drive (g, \"guest.img\");\n"
35278 " guestfs_launch (g);\n"
35279 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35280 " guestfs_touch (g, \"/hello\");\n"
35281 " guestfs_umount (g, \"/\");\n"
35282 " guestfs_close (g);\n"
35283 "\n"
35284
35285 #. type: textblock
35286 #: ../src/guestfs.pod:25
35287 msgid ""
35288 "Libguestfs is a library for accessing and modifying guest disk images.  "
35289 "Amongst the things this is good for: making batch configuration changes to "
35290 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35291 "between virtualization systems (see also: virt-p2v), performing partial "
35292 "backups, performing partial guest clones, cloning guests and changing "
35293 "registry/UUID/hostname info, and much else besides."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:33
35298 msgid ""
35299 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35300 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35301 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35302 "qcow2, vmdk."
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:38
35307 msgid ""
35308 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35309 "what filesystem is in each LV, etc.).  It can also run commands in the "
35310 "context of the guest.  Also you can access filesystems over FUSE."
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:43
35315 msgid ""
35316 "Libguestfs is a library that can be linked with C and C++ management "
35317 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35318 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35319 "command line."
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:48
35324 msgid ""
35325 "You don't need to be root to use libguestfs, although obviously you do need "
35326 "enough permissions to access the disk images."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:51
35331 msgid ""
35332 "Libguestfs is a large API because it can do many things.  For a gentle "
35333 "introduction, please read the L</API OVERVIEW> section next."
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:54
35338 msgid ""
35339 "There are also some example programs in the L<guestfs-examples(3)> manual "
35340 "page."
35341 msgstr ""
35342
35343 #. type: =head1
35344 #: ../src/guestfs.pod:57
35345 msgid "API OVERVIEW"
35346 msgstr "ОГЛЯД API"
35347
35348 #. type: textblock
35349 #: ../src/guestfs.pod:59
35350 msgid ""
35351 "This section provides a gentler overview of the libguestfs API.  We also try "
35352 "to group API calls together, where that may not be obvious from reading "
35353 "about the individual calls in the main section of this manual."
35354 msgstr ""
35355
35356 #. type: =head2
35357 #: ../src/guestfs.pod:64
35358 msgid "HANDLES"
35359 msgstr "ОБРОБНИКИ"
35360
35361 #. type: textblock
35362 #: ../src/guestfs.pod:66
35363 msgid ""
35364 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35365 "must add at least one disk image to the handle, followed by launching the "
35366 "handle, then performing whatever operations you want, and finally closing "
35367 "the handle.  By convention we use the single letter C<g> for the name of the "
35368 "handle variable, although of course you can use any name you want."
35369 msgstr ""
35370
35371 #. type: textblock
35372 #: ../src/guestfs.pod:73
35373 msgid "The general structure of all libguestfs-using programs looks like this:"
35374 msgstr ""
35375
35376 #. type: verbatim
35377 #: ../src/guestfs.pod:76
35378 #, no-wrap
35379 msgid ""
35380 " guestfs_h *g = guestfs_create ();\n"
35381 " \n"
35382 msgstr ""
35383 " guestfs_h *g = guestfs_create ();\n"
35384 " \n"
35385
35386 #. type: verbatim
35387 #: ../src/guestfs.pod:78
35388 #, no-wrap
35389 msgid ""
35390 " /* Call guestfs_add_drive additional times if there are\n"
35391 "  * multiple disk images.\n"
35392 "  */\n"
35393 " guestfs_add_drive (g, \"guest.img\");\n"
35394 " \n"
35395 msgstr ""
35396
35397 #. type: verbatim
35398 #: ../src/guestfs.pod:83
35399 #, no-wrap
35400 msgid ""
35401 " /* Most manipulation calls won't work until you've launched\n"
35402 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35403 "  * and _before_ other commands.\n"
35404 "  */\n"
35405 " guestfs_launch (g);\n"
35406 " \n"
35407 msgstr ""
35408
35409 #. type: verbatim
35410 #: ../src/guestfs.pod:89
35411 #, no-wrap
35412 msgid ""
35413 " /* Now you can examine what partitions, LVs etc are available.\n"
35414 "  */\n"
35415 " char **partitions = guestfs_list_partitions (g);\n"
35416 " char **logvols = guestfs_lvs (g);\n"
35417 " \n"
35418 msgstr ""
35419 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35420 "  */\n"
35421 " char **partitions = guestfs_list_partitions (g);\n"
35422 " char **logvols = guestfs_lvs (g);\n"
35423 " \n"
35424
35425 #. type: verbatim
35426 #: ../src/guestfs.pod:94
35427 #, no-wrap
35428 msgid ""
35429 " /* To access a filesystem in the image, you must mount it.\n"
35430 "  */\n"
35431 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35432 " \n"
35433 msgstr ""
35434 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35435 "  */\n"
35436 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35437 " \n"
35438
35439 #. type: verbatim
35440 #: ../src/guestfs.pod:98
35441 #, no-wrap
35442 msgid ""
35443 " /* Now you can perform filesystem actions on the guest\n"
35444 "  * disk image.\n"
35445 "  */\n"
35446 " guestfs_touch (g, \"/hello\");\n"
35447 " \n"
35448 msgstr ""
35449
35450 #. type: verbatim
35451 #: ../src/guestfs.pod:103
35452 #, no-wrap
35453 msgid ""
35454 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35455 "  * it is done automatically when you close the handle.  See\n"
35456 "  * discussion of autosync in this page.\n"
35457 "  */\n"
35458 " guestfs_sync (g);\n"
35459 " \n"
35460 msgstr ""
35461
35462 #. type: verbatim
35463 #: ../src/guestfs.pod:109
35464 #, no-wrap
35465 msgid ""
35466 " /* Close the handle 'g'. */\n"
35467 " guestfs_close (g);\n"
35468 "\n"
35469 msgstr ""
35470 " /* Закрити дескриптор 'g'. */\n"
35471 " guestfs_close (g);\n"
35472 "\n"
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:112
35476 msgid ""
35477 "The code above doesn't include any error checking.  In real code you should "
35478 "check return values carefully for errors.  In general all functions that "
35479 "return integers return C<-1> on error, and all functions that return "
35480 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35481 "how to handle errors, and consult the documentation for each function call "
35482 "below to see precisely how they return error indications.  See L<guestfs-"
35483 "examples(3)> for fully worked examples."
35484 msgstr ""
35485
35486 #. type: =head2
35487 #: ../src/guestfs.pod:121
35488 msgid "DISK IMAGES"
35489 msgstr "ОБРАЗИ ДИСКІВ"
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:123
35493 msgid ""
35494 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35495 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35496 "actual block device, or simply an empty file of zeroes that you have created "
35497 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35498 "of these."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:129
35503 msgid ""
35504 "The call you should use in modern code for adding drives is L</"
35505 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35506 "specifying that the format is raw, do:"
35507 msgstr ""
35508
35509 #. type: verbatim
35510 #: ../src/guestfs.pod:133
35511 #, no-wrap
35512 msgid ""
35513 " guestfs_add_drive_opts (g, filename,\n"
35514 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35515 "                         -1);\n"
35516 "\n"
35517 msgstr ""
35518 " guestfs_add_drive_opts (g, filename,\n"
35519 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35520 "                         -1);\n"
35521 "\n"
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:137
35525 msgid "You can add a disk read-only using:"
35526 msgstr "Ви можете додати диск у режимі лише читання:"
35527
35528 #. type: verbatim
35529 #: ../src/guestfs.pod:139
35530 #, no-wrap
35531 msgid ""
35532 " guestfs_add_drive_opts (g, filename,\n"
35533 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35534 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35535 "                         -1);\n"
35536 "\n"
35537 msgstr ""
35538 " guestfs_add_drive_opts (g, filename,\n"
35539 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35540 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35541 "                         -1);\n"
35542 "\n"
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:144
35546 msgid ""
35547 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35548 "libguestfs won't modify the file."
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:147
35553 msgid ""
35554 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35555 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35556 "corruption, but adding it read-only is safe."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:151
35561 msgid ""
35562 "You must add at least one disk image, and you may add multiple disk images.  "
35563 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35564 "first one you added), C</dev/sdb> (for the second one you added), etc."
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:156
35569 msgid ""
35570 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35571 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35572 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35573 msgstr ""
35574
35575 #. type: =head2
35576 #: ../src/guestfs.pod:161
35577 msgid "MOUNTING"
35578 msgstr "МОНТУВАННЯ"
35579
35580 #. type: textblock
35581 #: ../src/guestfs.pod:163
35582 msgid ""
35583 "Before you can read or write files, create directories and so on in a disk "
35584 "image that contains filesystems, you have to mount those filesystems using "
35585 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35586 "a disk image contains (for example) one partition with a filesystem on that "
35587 "partition, then you can mount it directly:"
35588 msgstr ""
35589
35590 #. type: verbatim
35591 #: ../src/guestfs.pod:170
35592 #, no-wrap
35593 msgid ""
35594 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35595 "\n"
35596 msgstr ""
35597 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35598 "\n"
35599
35600 #. type: textblock
35601 #: ../src/guestfs.pod:172
35602 msgid ""
35603 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35604 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35605 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35606 "that these are libguestfs virtual devices, and are nothing to do with host "
35607 "devices."
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:178
35612 msgid ""
35613 "If you are given a disk image and you don't know what it contains then you "
35614 "have to find out.  Libguestfs can do that too: use L</"
35615 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35616 "LVs, and either try mounting each to see what is mountable, or else examine "
35617 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35618 "filesystems, use L</guestfs_list_filesystems>."
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:186
35623 msgid ""
35624 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35625 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35626 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:191
35631 msgid ""
35632 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35633 "several other variations of the C<guestfs_mount_*> call."
35634 msgstr ""
35635
35636 #. type: =head2
35637 #: ../src/guestfs.pod:194
35638 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35639 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:196
35643 msgid ""
35644 "The majority of the libguestfs API consists of fairly low-level calls for "
35645 "accessing and modifying the files, directories, symlinks etc on mounted "
35646 "filesystems.  There are over a hundred such calls which you can find listed "
35647 "in detail below in this man page, and we don't even pretend to cover them "
35648 "all in this overview."
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:202
35653 msgid ""
35654 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35655 "mount point."
35656 msgstr ""
35657 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35658 "точкою монтування."
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:205
35662 msgid ""
35663 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35664 "the file called C<\"etc/passwd\"> then you could do:"
35665 msgstr ""
35666 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35667 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35668 "таким кодом:"
35669
35670 #. type: verbatim
35671 #: ../src/guestfs.pod:208
35672 #, no-wrap
35673 msgid ""
35674 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35675 "\n"
35676 msgstr ""
35677 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35678 "\n"
35679
35680 #. type: textblock
35681 #: ../src/guestfs.pod:210
35682 msgid ""
35683 "This would return C<data> as a newly allocated buffer containing the full "
35684 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35685 "or C<NULL> if there was an error."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:214
35690 msgid ""
35691 "As another example, to create a top-level directory on that filesystem "
35692 "called C<\"var\"> you would do:"
35693 msgstr ""
35694
35695 #. type: verbatim
35696 #: ../src/guestfs.pod:217
35697 #, no-wrap
35698 msgid ""
35699 " guestfs_mkdir (g, \"/var\");\n"
35700 "\n"
35701 msgstr ""
35702 " guestfs_mkdir (g, \"/var\");\n"
35703 "\n"
35704
35705 #. type: textblock
35706 #: ../src/guestfs.pod:219
35707 msgid "To create a symlink you could do:"
35708 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35709
35710 #. type: verbatim
35711 #: ../src/guestfs.pod:221
35712 #, no-wrap
35713 msgid ""
35714 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35715 "               \"/etc/rc3.d/S30portmap\");\n"
35716 "\n"
35717 msgstr ""
35718 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35719 "               \"/etc/rc3.d/S30portmap\");\n"
35720 "\n"
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:224
35724 msgid ""
35725 "Libguestfs will reject attempts to use relative paths and there is no "
35726 "concept of a current working directory."
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:227
35731 msgid ""
35732 "Libguestfs can return errors in many situations: for example if the "
35733 "filesystem isn't writable, or if a file or directory that you requested "
35734 "doesn't exist.  If you are using the C API (documented here)  you have to "
35735 "check for those error conditions after each call.  (Other language bindings "
35736 "turn these errors into exceptions)."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:233
35741 msgid ""
35742 "File writes are affected by the per-handle umask, set by calling L</"
35743 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35744 msgstr ""
35745
35746 #. type: =head2
35747 #: ../src/guestfs.pod:236
35748 msgid "PARTITIONING"
35749 msgstr "ПОДІЛ НА РОЗДІЛИ"
35750
35751 #. type: textblock
35752 #: ../src/guestfs.pod:238
35753 msgid ""
35754 "Libguestfs contains API calls to read, create and modify partition tables on "
35755 "disk images."
35756 msgstr ""
35757
35758 #. type: textblock
35759 #: ../src/guestfs.pod:241
35760 msgid ""
35761 "In the common case where you want to create a single partition covering the "
35762 "whole disk, you should use the L</guestfs_part_disk> call:"
35763 msgstr ""
35764
35765 #. type: verbatim
35766 #: ../src/guestfs.pod:245
35767 #, no-wrap
35768 msgid ""
35769 " const char *parttype = \"mbr\";\n"
35770 " if (disk_is_larger_than_2TB)\n"
35771 "   parttype = \"gpt\";\n"
35772 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35773 "\n"
35774 msgstr ""
35775 " const char *parttype = \"mbr\";\n"
35776 " if (disk_is_larger_than_2TB)\n"
35777 "   parttype = \"gpt\";\n"
35778 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35779 "\n"
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:250
35783 msgid ""
35784 "Obviously this effectively wipes anything that was on that disk image before."
35785 msgstr ""
35786
35787 #. type: =head2
35788 #: ../src/guestfs.pod:253
35789 msgid "LVM2"
35790 msgstr "LVM2"
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:255
35794 msgid ""
35795 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35796 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35797 "you familiarize yourself with the concepts of physical volumes, volume "
35798 "groups and logical volumes."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:260
35803 msgid ""
35804 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35805 "tldp.org/HOWTO/LVM-HOWTO/>."
35806 msgstr ""
35807
35808 #. type: =head2
35809 #: ../src/guestfs.pod:263
35810 msgid "DOWNLOADING"
35811 msgstr "ОТРИМАННЯ ДАНИХ"
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:265
35815 msgid ""
35816 "Use L</guestfs_cat> to download small, text only files.  This call is "
35817 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35818 "NUL (C<\\0>) characters.  However the API is very simple to use."
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:269
35823 msgid ""
35824 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35825 "bit data, since it returns a (pointer, size) pair.  However it is still "
35826 "limited to \"small\" files, less than 2 MB."
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../src/guestfs.pod:273
35831 msgid ""
35832 "L</guestfs_download> can be used to download any file, with no limits on "
35833 "content or size (even files larger than 4 GB)."
35834 msgstr ""
35835
35836 #. type: textblock
35837 #: ../src/guestfs.pod:276
35838 msgid ""
35839 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35840 msgstr ""
35841
35842 #. type: =head2
35843 #: ../src/guestfs.pod:279
35844 msgid "UPLOADING"
35845 msgstr "ВИВАНТАЖЕННЯ"
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:281
35849 msgid ""
35850 "It's often the case that you want to write a file or files to the disk image."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:284
35855 msgid ""
35856 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35857 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35858 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35859 "of other functions for creating test files, for example L</guestfs_fill> and "
35860 "L</guestfs_fill_pattern>."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:290
35865 msgid ""
35866 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35867 "file content or size (even files larger than 4 GB)."
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:293
35872 msgid ""
35873 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35874 msgstr ""
35875
35876 #. type: textblock
35877 #: ../src/guestfs.pod:295
35878 msgid ""
35879 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35880 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35881 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35882 "in a predictable way (eg. adding it last after all other drives) then you "
35883 "can get the device name from L</guestfs_list_devices> and mount it directly "
35884 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35885 "portable between kernel versions, and they don't support labels or UUIDs.  "
35886 "If you want to pre-build an image or you need to mount it using a label or "
35887 "UUID, use an ISO image instead."
35888 msgstr ""
35889
35890 #. type: =head2
35891 #: ../src/guestfs.pod:306
35892 msgid "COPYING"
35893 msgstr "КОПІЮВАННЯ"
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:308
35897 msgid ""
35898 "There are various different commands for copying between files and devices "
35899 "and in and out of the guest filesystem.  These are summarised in the table "
35900 "below."
35901 msgstr ""
35902
35903 #. type: =item
35904 #: ../src/guestfs.pod:314
35905 msgid "B<file> to B<file>"
35906 msgstr "B<файл> у B<файл>"
35907
35908 #. type: textblock
35909 #: ../src/guestfs.pod:316
35910 msgid ""
35911 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35912 "directories recursively."
35913 msgstr ""
35914
35915 #. type: =item
35916 #: ../src/guestfs.pod:319
35917 msgid "B<file or device> to B<file or device>"
35918 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:321
35922 msgid ""
35923 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35924 "devices in the guest."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:324
35929 msgid "Example: duplicate the contents of an LV:"
35930 msgstr ""
35931
35932 #. type: verbatim
35933 #: ../src/guestfs.pod:326
35934 #, no-wrap
35935 msgid ""
35936 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35937 "\n"
35938 msgstr ""
35939 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35940 "\n"
35941
35942 #. type: textblock
35943 #: ../src/guestfs.pod:328
35944 msgid ""
35945 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35946 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
35947 "guestfs_copy_size>."
35948 msgstr ""
35949
35950 #. type: =item
35951 #: ../src/guestfs.pod:332
35952 msgid "B<file on the host> to B<file or device>"
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:334
35957 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35958 msgstr ""
35959
35960 #. type: =item
35961 #: ../src/guestfs.pod:336
35962 msgid "B<file or device> to B<file on the host>"
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:338
35967 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35968 msgstr ""
35969
35970 #. type: =head2
35971 #: ../src/guestfs.pod:342
35972 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:344
35977 msgid ""
35978 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35979 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35980 "appears you can only upload and download to files.  However many Un*x-like "
35981 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35982 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35983 "and arbitrary file descriptor N."
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:352
35988 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35989 msgstr ""
35990
35991 #. type: verbatim
35992 #: ../src/guestfs.pod:355
35993 #, no-wrap
35994 msgid ""
35995 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35996 "\n"
35997 msgstr ""
35998 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35999 "\n"
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:357
36003 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36004 msgstr ""
36005
36006 #. type: verbatim
36007 #: ../src/guestfs.pod:359
36008 #, no-wrap
36009 msgid ""
36010 " char devfd[64];\n"
36011 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36012 " guestfs_tar_out (g, \"/\", devfd);\n"
36013 "\n"
36014 msgstr ""
36015 " char devfd[64];\n"
36016 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36017 " guestfs_tar_out (g, \"/\", devfd);\n"
36018 "\n"
36019
36020 #. type: =head2
36021 #: ../src/guestfs.pod:363
36022 msgid "LISTING FILES"
36023 msgstr "СПИСКИ ФАЙЛІВ"
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:365
36027 msgid ""
36028 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36029 "L<guestfish(1)>-equivalent command C<ll>)."
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:368
36034 msgid ""
36035 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36036 "programs, as a flat list of strings."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:371
36041 msgid ""
36042 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36043 "directory, plus additional information about each one.  It is more "
36044 "equivalent to using the L<readdir(3)> call on a local filesystem."
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:375
36049 msgid ""
36050 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36051 msgstr ""
36052
36053 #. type: =head2
36054 #: ../src/guestfs.pod:378
36055 msgid "RUNNING COMMANDS"
36056 msgstr "ВИКОНАННЯ КОМАНД"
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:380
36060 msgid ""
36061 "Although libguestfs is primarily an API for manipulating files inside guest "
36062 "images, we also provide some limited facilities for running commands inside "
36063 "guests."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:384
36068 msgid "There are many limitations to this:"
36069 msgstr ""
36070
36071 #. type: textblock
36072 #: ../src/guestfs.pod:390
36073 msgid ""
36074 "The kernel version that the command runs under will be different from what "
36075 "it expects."
36076 msgstr ""
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:395
36080 msgid ""
36081 "If the command needs to communicate with daemons, then most likely they "
36082 "won't be running."
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:400
36087 msgid "The command will be running in limited memory."
36088 msgstr ""
36089
36090 #. type: textblock
36091 #: ../src/guestfs.pod:404
36092 msgid ""
36093 "The network may not be available unless you enable it (see L</"
36094 "guestfs_set_network>)."
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:409
36099 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36100 msgstr ""
36101
36102 #. type: textblock
36103 #: ../src/guestfs.pod:413
36104 msgid ""
36105 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:418
36110 msgid ""
36111 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36112 "See L</SELINUX> in this manpage."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:423
36117 msgid ""
36118 "I<Security:> It is not safe to run commands from untrusted, possibly "
36119 "malicious guests.  These commands may attempt to exploit your program by "
36120 "sending unexpected output.  They could also try to exploit the Linux kernel "
36121 "or qemu provided by the libguestfs appliance.  They could use the network "
36122 "provided by the libguestfs appliance to bypass ordinary network partitions "
36123 "and firewalls.  They could use the elevated privileges or different SELinux "
36124 "context of your program to their advantage."
36125 msgstr ""
36126
36127 #. type: textblock
36128 #: ../src/guestfs.pod:432
36129 msgid ""
36130 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36131 "(a script which runs when the guest next boots normally), and to have this "
36132 "script run the commands you want in the normal context of the running guest, "
36133 "network security and so on.  For information about other security issues, "
36134 "see L</SECURITY>."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:440
36139 msgid ""
36140 "The two main API calls to run commands are L</guestfs_command> and L</"
36141 "guestfs_sh> (there are also variations)."
36142 msgstr ""
36143
36144 #. type: textblock
36145 #: ../src/guestfs.pod:443
36146 msgid ""
36147 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36148 "shell globs, redirections, etc will work."
36149 msgstr ""
36150
36151 #. type: =head2
36152 #: ../src/guestfs.pod:446
36153 msgid "CONFIGURATION FILES"
36154 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:448
36158 msgid ""
36159 "To read and write configuration files in Linux guest filesystems, we "
36160 "strongly recommend using Augeas.  For example, Augeas understands how to "
36161 "read and write, say, a Linux shadow password file or X.org configuration "
36162 "file, and so avoids you having to write that code."
36163 msgstr ""
36164
36165 #. type: textblock
36166 #: ../src/guestfs.pod:453
36167 msgid ""
36168 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36169 "document Augeas itself here because there is excellent documentation on the "
36170 "L<http://augeas.net/> website."
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:457
36175 msgid ""
36176 "If you don't want to use Augeas (you fool!) then try calling L</"
36177 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36178 "over."
36179 msgstr ""
36180
36181 #. type: =head2
36182 #: ../src/guestfs.pod:461
36183 msgid "SELINUX"
36184 msgstr "SELINUX"
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:463
36188 msgid ""
36189 "We support SELinux guests.  To ensure that labeling happens correctly in "
36190 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:471
36195 msgid "Before launching, do:"
36196 msgstr ""
36197
36198 #. type: verbatim
36199 #: ../src/guestfs.pod:473
36200 #, no-wrap
36201 msgid ""
36202 " guestfs_set_selinux (g, 1);\n"
36203 "\n"
36204 msgstr ""
36205 " guestfs_set_selinux (g, 1);\n"
36206 "\n"
36207
36208 #. type: textblock
36209 #: ../src/guestfs.pod:477
36210 msgid ""
36211 "After mounting the guest's filesystem(s), load the policy.  This is best "
36212 "done by running the L<load_policy(8)> command in the guest itself:"
36213 msgstr ""
36214
36215 #. type: verbatim
36216 #: ../src/guestfs.pod:481
36217 #, no-wrap
36218 msgid ""
36219 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36220 "\n"
36221 msgstr ""
36222 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36223 "\n"
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:483
36227 msgid ""
36228 "(Older versions of C<load_policy> require you to specify the name of the "
36229 "policy file)."
36230 msgstr ""
36231
36232 #. type: textblock
36233 #: ../src/guestfs.pod:488
36234 msgid ""
36235 "Optionally, set the security context for the API.  The correct security "
36236 "context to use can only be known by inspecting the guest.  As an example:"
36237 msgstr ""
36238
36239 #. type: verbatim
36240 #: ../src/guestfs.pod:492
36241 #, no-wrap
36242 msgid ""
36243 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36244 "\n"
36245 msgstr ""
36246 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36247 "\n"
36248
36249 #. type: textblock
36250 #: ../src/guestfs.pod:496
36251 msgid "This will work for running commands and editing existing files."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:498
36256 msgid ""
36257 "When new files are created, you may need to label them explicitly, for "
36258 "example by running the external command C<restorecon pathname>."
36259 msgstr ""
36260
36261 #. type: =head2
36262 #: ../src/guestfs.pod:502
36263 msgid "UMASK"
36264 msgstr "UMASK"
36265
36266 #. type: textblock
36267 #: ../src/guestfs.pod:504
36268 msgid ""
36269 "Certain calls are affected by the current file mode creation mask (the "
36270 "\"umask\").  In particular ones which create files or directories, such as "
36271 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36272 "either the default mode that the file is created with or modifies the mode "
36273 "that you supply."
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:510
36278 msgid ""
36279 "The default umask is C<022>, so files are created with modes such as C<0644> "
36280 "and directories with C<0755>."
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:513
36285 msgid ""
36286 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36287 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36288 "guestfs_chmod> after creating each file or directory."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:517
36293 msgid "For more information about umask, see L<umask(2)>."
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:521
36298 msgid ""
36299 "Libguestfs allows you to access Linux guests which have been encrypted using "
36300 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36301 "standard.  This includes nearly all whole disk encryption systems used by "
36302 "modern Linux guests."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:527
36307 msgid ""
36308 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36309 "returns the string C<crypto_LUKS>)."
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../src/guestfs.pod:530
36314 msgid ""
36315 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36316 "will require the passphrase!"
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../src/guestfs.pod:533
36321 msgid ""
36322 "Opening a LUKS device creates a new device mapper device called C</dev/"
36323 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36324 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36325 "from and encrypted to the underlying block device respectively."
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:539
36330 msgid ""
36331 "LVM volume groups on the device can be made visible by calling L</"
36332 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36333 "(s) can now be mounted in the usual way."
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:543
36338 msgid ""
36339 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36340 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36341 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36342 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36343 "underlying encrypted block device)."
36344 msgstr ""
36345
36346 #. type: =head2
36347 #: ../src/guestfs.pod:550
36348 msgid "INSPECTION"
36349 msgstr "ПЕРЕВІРКА"
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:552
36353 msgid ""
36354 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36355 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36356 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36357 "version 1.5.3 the most frequently used part of this library has been "
36358 "rewritten in C and moved into the core code)."
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:559
36363 msgid ""
36364 "Add all disks belonging to the unknown virtual machine and call L</"
36365 "guestfs_launch> in the usual way."
36366 msgstr ""
36367
36368 #. type: textblock
36369 #: ../src/guestfs.pod:562
36370 msgid ""
36371 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36372 "and certain heuristics, and returns a list of operating systems that were "
36373 "found.  An empty list means none were found.  A single element is the root "
36374 "filesystem of the operating system.  For dual- or multi-boot guests, "
36375 "multiple roots can be returned, each one corresponding to a separate "
36376 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36377 "world of virtualization, but since this scenario can happen, we have built "
36378 "libguestfs to deal with it.)"
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:571
36383 msgid ""
36384 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36385 "to get additional details about that operating system.  For example, call L</"
36386 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36387 "Windows and Linux-based operating systems respectively."
36388 msgstr ""
36389
36390 #. type: textblock
36391 #: ../src/guestfs.pod:577
36392 msgid ""
36393 "Un*x-like and Linux-based operating systems usually consist of several "
36394 "filesystems which are mounted at boot time (for example, a separate boot "
36395 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36396 "filesystems correspond to mount points.  Call "
36397 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36398 "hash table like this example:"
36399 msgstr ""
36400
36401 #. type: verbatim
36402 #: ../src/guestfs.pod:584
36403 #, no-wrap
36404 msgid ""
36405 " /boot => /dev/sda1\n"
36406 " /     => /dev/vg_guest/lv_root\n"
36407 " /usr  => /dev/vg_guest/lv_usr\n"
36408 "\n"
36409 msgstr ""
36410 " /boot => /dev/sda1\n"
36411 " /     => /dev/vg_guest/lv_root\n"
36412 " /usr  => /dev/vg_guest/lv_usr\n"
36413 "\n"
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:588
36417 msgid ""
36418 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36419 "filesystems as suggested."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:591
36424 msgid ""
36425 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36426 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36427 msgstr ""
36428
36429 #. type: textblock
36430 #: ../src/guestfs.pod:595
36431 msgid ""
36432 "Inspection currently only works for some common operating systems.  "
36433 "Contributors are welcome to send patches for other operating systems that we "
36434 "currently cannot detect."
36435 msgstr ""
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:599
36439 msgid ""
36440 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36441 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36442 "encrypted devices."
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:603
36447 msgid ""
36448 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36449 "inspection and caches the results in the guest handle.  Subsequent calls to "
36450 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36451 "read the disks.  If you change the content of the guest disks, you can redo "
36452 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36453 "guestfs_inspect_list_applications> works a little differently from the other "
36454 "calls and does read the disks.  See documentation for that function for "
36455 "details)."
36456 msgstr ""
36457
36458 #. type: =head3
36459 #: ../src/guestfs.pod:612
36460 msgid "INSPECTING INSTALL DISKS"
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:614
36465 msgid ""
36466 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36467 "CDs and more."
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../src/guestfs.pod:617
36472 msgid ""
36473 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36474 "system, which currently can be C<installed> (a regular operating system) or "
36475 "C<installer> (some sort of install disk)."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:621
36480 msgid ""
36481 "Further information is available about the operating system that can be "
36482 "installed using the regular inspection APIs like L</"
36483 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36484 msgstr ""
36485
36486 #. type: textblock
36487 #: ../src/guestfs.pod:626
36488 msgid ""
36489 "Some additional information specific to installer disks is also available "
36490 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36491 "guestfs_inspect_is_multipart> calls."
36492 msgstr ""
36493
36494 #. type: =head2
36495 #: ../src/guestfs.pod:631
36496 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:633
36501 msgid ""
36502 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36503 "ntfs-3g.org/> driver."
36504 msgstr ""
36505
36506 #. type: =head3
36507 #: ../src/guestfs.pod:636
36508 msgid "DRIVE LETTERS AND PATHS"
36509 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:638
36513 msgid ""
36514 "DOS and Windows still use drive letters, and the filesystems are always "
36515 "treated as case insensitive by Windows itself, and therefore you might find "
36516 "a Windows configuration file referring to a path like C<c:\\windows"
36517 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36518 "might be referred to as C</WINDOWS/System32>."
36519 msgstr ""
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:644
36523 msgid ""
36524 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36525 "L</guestfs_inspect_get_drive_mappings>)"
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:647
36530 msgid ""
36531 "Dealing with separator characters (backslash vs forward slash) is outside "
36532 "the scope of libguestfs, but usually a simple character replacement will "
36533 "work."
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:651
36538 msgid ""
36539 "To resolve the case insensitivity of paths, call L</"
36540 "guestfs_case_sensitive_path>."
36541 msgstr ""
36542
36543 #. type: =head3
36544 #: ../src/guestfs.pod:654
36545 msgid "ACCESSING THE WINDOWS REGISTRY"
36546 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36547
36548 #. type: textblock
36549 #: ../src/guestfs.pod:656
36550 msgid ""
36551 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36552 "files, through the library C<hivex> which is part of the libguestfs project "
36553 "although ships as a separate tarball.  You have to locate and download the "
36554 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36555 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36556 "reg(1)> for more help on this issue."
36557 msgstr ""
36558
36559 #. type: =head3
36560 #: ../src/guestfs.pod:664
36561 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36562 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36563
36564 #. type: textblock
36565 #: ../src/guestfs.pod:666
36566 msgid ""
36567 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36568 "provide something which looks like a Linux symlink.  The way it tries to do "
36569 "the rewriting is described here:"
36570 msgstr ""
36571
36572 #. type: textblock
36573 #: ../src/guestfs.pod:670
36574 msgid ""
36575 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36576 "symbolic-links/>"
36577 msgstr ""
36578 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36579 "symbolic-links/>"
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:672
36583 msgid ""
36584 "The essential problem is that ntfs-3g simply does not have enough "
36585 "information to do a correct job.  NTFS links can contain drive letters and "
36586 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36587 "It is almost certainly the case that libguestfs callers should ignore what "
36588 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:679
36593 msgid ""
36594 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36595 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36596 "attribute, and read the raw reparse data from that (you can find the format "
36597 "documented in various places around the web)."
36598 msgstr ""
36599
36600 #. type: =head3
36601 #: ../src/guestfs.pod:684
36602 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:686
36607 msgid ""
36608 "There are other useful extended attributes that can be read from ntfs-3g "
36609 "filesystems (using L</guestfs_getxattr>).  See:"
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:689
36614 msgid ""
36615 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36616 msgstr ""
36617 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36618
36619 #. type: =head2
36620 #: ../src/guestfs.pod:691
36621 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36622 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:693
36626 msgid ""
36627 "Although we don't want to discourage you from using the C API, we will "
36628 "mention here that the same API is also available in other languages."
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:696
36633 msgid ""
36634 "The API is broadly identical in all supported languages.  This means that "
36635 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36636 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36637 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36638 "each language."
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:702
36643 msgid ""
36644 "Error messages are automatically transformed into exceptions if the language "
36645 "supports it."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:705
36650 msgid ""
36651 "We don't try to \"object orientify\" parts of the API in OO languages, "
36652 "although contributors are welcome to write higher level APIs above what we "
36653 "provide in their favourite languages if they wish."
36654 msgstr ""
36655
36656 #. type: =item
36657 #: ../src/guestfs.pod:711
36658 msgid "B<C++>"
36659 msgstr "B<C++>"
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:713
36663 msgid ""
36664 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36665 "identical to the C API.  C++ classes and exceptions are not used."
36666 msgstr ""
36667
36668 #. type: =item
36669 #: ../src/guestfs.pod:717
36670 msgid "B<C#>"
36671 msgstr "B<C#>"
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:719
36675 msgid ""
36676 "The C# bindings are highly experimental.  Please read the warnings at the "
36677 "top of C<csharp/Libguestfs.cs>."
36678 msgstr ""
36679
36680 #. type: =item
36681 #: ../src/guestfs.pod:722
36682 msgid "B<Erlang>"
36683 msgstr ""
36684
36685 #. type: textblock
36686 #: ../src/guestfs.pod:724
36687 #, fuzzy
36688 #| msgid "See L<guestfs-ruby(3)>."
36689 msgid "See L<guestfs-erlang(3)>."
36690 msgstr "Див. L<guestfs-ruby(3)>."
36691
36692 #. type: =item
36693 #: ../src/guestfs.pod:726
36694 msgid "B<Haskell>"
36695 msgstr "B<Haskell>"
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:728
36699 msgid ""
36700 "This is the only language binding that is working but incomplete.  Only "
36701 "calls which return simple integers have been bound in Haskell, and we are "
36702 "looking for help to complete this binding."
36703 msgstr ""
36704
36705 #. type: =item
36706 #: ../src/guestfs.pod:732
36707 msgid "B<Java>"
36708 msgstr "B<Java>"
36709
36710 #. type: textblock
36711 #: ../src/guestfs.pod:734
36712 msgid ""
36713 "Full documentation is contained in the Javadoc which is distributed with "
36714 "libguestfs.  For examples, see L<guestfs-java(3)>."
36715 msgstr ""
36716
36717 #. type: =item
36718 #: ../src/guestfs.pod:737
36719 msgid "B<OCaml>"
36720 msgstr "B<OCaml>"
36721
36722 #. type: textblock
36723 #: ../src/guestfs.pod:739
36724 msgid "See L<guestfs-ocaml(3)>."
36725 msgstr "Див. L<guestfs-ocaml(3)>."
36726
36727 #. type: =item
36728 #: ../src/guestfs.pod:741
36729 msgid "B<Perl>"
36730 msgstr "B<Perl>"
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:743
36734 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36735 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36736
36737 #. type: =item
36738 #: ../src/guestfs.pod:745
36739 msgid "B<PHP>"
36740 msgstr "B<PHP>"
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:747
36744 msgid ""
36745 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36746 "the php-libguestfs package for your distribution."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:750
36751 msgid "The PHP binding only works correctly on 64 bit machines."
36752 msgstr ""
36753
36754 #. type: =item
36755 #: ../src/guestfs.pod:752
36756 msgid "B<Python>"
36757 msgstr "B<Python>"
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:754
36761 msgid "See L<guestfs-python(3)>."
36762 msgstr "Див. L<guestfs-python(3)>."
36763
36764 #. type: =item
36765 #: ../src/guestfs.pod:756
36766 msgid "B<Ruby>"
36767 msgstr "B<Ruby>"
36768
36769 #. type: textblock
36770 #: ../src/guestfs.pod:758
36771 msgid "See L<guestfs-ruby(3)>."
36772 msgstr "Див. L<guestfs-ruby(3)>."
36773
36774 #. type: =item
36775 #: ../src/guestfs.pod:760
36776 msgid "B<shell scripts>"
36777 msgstr "B<скрипти оболонки>"
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:762
36781 msgid "See L<guestfish(1)>."
36782 msgstr "Див. L<guestfish(1)>."
36783
36784 #. type: =head2
36785 #: ../src/guestfs.pod:766
36786 msgid "LIBGUESTFS GOTCHAS"
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:768
36791 msgid ""
36792 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36793 "system [...] that works in the way it is documented but is counterintuitive "
36794 "and almost invites mistakes.\""
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:772
36799 msgid ""
36800 "Since we developed libguestfs and the associated tools, there are several "
36801 "things we would have designed differently, but are now stuck with for "
36802 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36803 "release, you can expect these to change.  Beware of them."
36804 msgstr ""
36805
36806 #. type: =item
36807 #: ../src/guestfs.pod:780
36808 msgid "Autosync / forgetting to sync."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:782
36813 msgid ""
36814 "I<Update:> Autosync is enabled by default for all API users starting from "
36815 "libguestfs 1.5.24.  This section only applies to older versions."
36816 msgstr ""
36817
36818 #. type: textblock
36819 #: ../src/guestfs.pod:785
36820 msgid ""
36821 "When modifying a filesystem from C or another language, you B<must> unmount "
36822 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36823 "libguestfs handle.  You can also call:"
36824 msgstr ""
36825
36826 #. type: verbatim
36827 #: ../src/guestfs.pod:789
36828 #, no-wrap
36829 msgid ""
36830 " guestfs_set_autosync (g, 1);\n"
36831 "\n"
36832 msgstr ""
36833 " guestfs_set_autosync (g, 1);\n"
36834 "\n"
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:791
36838 msgid ""
36839 "to have the unmount/sync done automatically for you when the handle 'g' is "
36840 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../src/guestfs.pod:795
36845 msgid ""
36846 "If you forget to do this, then it is entirely possible that your changes "
36847 "won't be written out, or will be partially written, or (very rarely) that "
36848 "you'll get disk corruption."
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:799
36853 msgid ""
36854 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36855 "guestfish scripts that forget to sync will work just fine, which can make "
36856 "this very puzzling if you are trying to debug a problem."
36857 msgstr ""
36858
36859 #. type: =item
36860 #: ../src/guestfs.pod:803
36861 msgid "Mount option C<-o sync> should not be the default."
36862 msgstr ""
36863
36864 #. type: textblock
36865 #: ../src/guestfs.pod:805
36866 msgid ""
36867 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36868 "libguestfs 1.13.16.  This section only applies to older versions."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:808
36873 msgid ""
36874 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36875 "However C<-o sync> does not add any reliability benefit, but does have a "
36876 "very large performance impact."
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:812
36881 msgid ""
36882 "The work around is to use L</guestfs_mount_options> and set the mount "
36883 "options that you actually want to use."
36884 msgstr ""
36885
36886 #. type: =item
36887 #: ../src/guestfs.pod:815
36888 msgid "Read-only should be the default."
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../src/guestfs.pod:817
36893 msgid ""
36894 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36895 "specify I<--rw> if you want to make changes to the image."
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:820
36900 msgid "This would reduce the potential to corrupt live VM images."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:822
36905 msgid ""
36906 "Note that many filesystems change the disk when you just mount and unmount, "
36907 "even if you didn't perform any writes.  You need to use L</"
36908 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36909 msgstr ""
36910
36911 #. type: =item
36912 #: ../src/guestfs.pod:826
36913 msgid "guestfish command line is hard to use."
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:828
36918 msgid ""
36919 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36920 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36921 "exist, so it fails.  In earlier versions of guestfish the error message was "
36922 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36923 "we should have used C<guestfish -c command> to run commands."
36924 msgstr ""
36925
36926 #. type: =item
36927 #: ../src/guestfs.pod:835
36928 msgid "guestfish megabyte modifiers don't work right on all commands"
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../src/guestfs.pod:837
36933 msgid ""
36934 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36935 "other modifiers).  What guestfish actually does is to multiply the number "
36936 "part by the modifier part and pass the result to the C API.  However this "
36937 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36938 "expecting some other unit (eg. megabytes)."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:844
36943 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36944 msgstr ""
36945
36946 #. type: verbatim
36947 #: ../src/guestfs.pod:846
36948 #, no-wrap
36949 msgid ""
36950 " lvcreate LV VG 100M\n"
36951 "\n"
36952 msgstr ""
36953 " lvcreate LV VG 100M\n"
36954 "\n"
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:848
36958 msgid ""
36959 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36960 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36961 "megabytes * megabytes) logical volume.  The error message you get from this "
36962 "is also a little obscure."
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../src/guestfs.pod:853
36967 msgid ""
36968 "This could be fixed in the generator by specially marking parameters and "
36969 "return values which take bytes or other units."
36970 msgstr ""
36971
36972 #. type: =item
36973 #: ../src/guestfs.pod:856
36974 msgid "Ambiguity between devices and paths"
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:858
36979 msgid ""
36980 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36981 "sdb2>) and a similar pathname.  A file might just happen to be called "
36982 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36983 msgstr ""
36984
36985 #. type: textblock
36986 #: ../src/guestfs.pod:863
36987 msgid ""
36988 "In the current API we usually resolve this ambiguity by having two separate "
36989 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36990 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36991 "detecting if the path supplied begins with C</dev/>."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:869
36996 msgid ""
36997 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36998 "make paths/devices into structured names.  One way to do this would be to "
36999 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37000 "aspect of grub.  Another way would be to use a structured type, equivalent "
37001 "to this OCaml type:"
37002 msgstr ""
37003
37004 #. type: verbatim
37005 #: ../src/guestfs.pod:875
37006 #, no-wrap
37007 msgid ""
37008 " type path = Path of string | Device of int | Partition of int * int\n"
37009 "\n"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:877
37014 msgid "which would allow you to pass arguments like:"
37015 msgstr ""
37016
37017 #. type: verbatim
37018 #: ../src/guestfs.pod:879
37019 #, no-wrap
37020 msgid ""
37021 " Path \"/foo/bar\"\n"
37022 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37023 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37024 " Path \"/dev/sdb2\"    (* not a device *)\n"
37025 "\n"
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:884
37030 msgid ""
37031 "As you can see there are still problems to resolve even with this "
37032 "representation.  Also consider how it might work in guestfish."
37033 msgstr ""
37034
37035 #. type: =head2
37036 #: ../src/guestfs.pod:889
37037 msgid "KEYS AND PASSPHRASES"
37038 msgstr "КЛЮЧІ І ПАРОЛІ"
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:891
37042 msgid ""
37043 "Certain libguestfs calls take a parameter that contains sensitive key "
37044 "material, passed in as a C string."
37045 msgstr ""
37046
37047 #. type: textblock
37048 #: ../src/guestfs.pod:894
37049 msgid ""
37050 "In the future we would hope to change the libguestfs implementation so that "
37051 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37052 "swap.  However this is I<not> done at the moment, because of the complexity "
37053 "of such an implementation."
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:899
37058 msgid ""
37059 "Therefore you should be aware that any key parameter you pass to libguestfs "
37060 "might end up being written out to the swap partition.  If this is a concern, "
37061 "scrub the swap partition or don't use libguestfs on encrypted devices."
37062 msgstr ""
37063
37064 #. type: =head2
37065 #: ../src/guestfs.pod:904
37066 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37067 msgstr ""
37068
37069 #. type: textblock
37070 #: ../src/guestfs.pod:906
37071 msgid ""
37072 "All high-level libguestfs actions are synchronous.  If you want to use "
37073 "libguestfs asynchronously then you must create a thread."
37074 msgstr ""
37075
37076 #. type: textblock
37077 #: ../src/guestfs.pod:909
37078 msgid ""
37079 "Only use the handle from a single thread.  Either use the handle exclusively "
37080 "from one thread, or provide your own mutex so that two threads cannot issue "
37081 "calls on the same handle at the same time."
37082 msgstr ""
37083
37084 #. type: textblock
37085 #: ../src/guestfs.pod:913
37086 msgid ""
37087 "See the graphical program guestfs-browser for one possible architecture for "
37088 "multithreaded programs using libvirt and libguestfs."
37089 msgstr ""
37090
37091 #. type: =head2
37092 #: ../src/guestfs.pod:916
37093 msgid "PATH"
37094 msgstr "ШЛЯХ"
37095
37096 #. type: textblock
37097 #: ../src/guestfs.pod:918
37098 msgid ""
37099 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37100 "internal path."
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:921
37105 msgid ""
37106 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37107 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:924
37112 msgid ""
37113 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37114 "to change the directories that libguestfs will search in.  The value is a "
37115 "colon-separated list of paths.  The current directory is I<not> searched "
37116 "unless the path contains an empty element or C<.>.  For example "
37117 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37118 "then C</usr/lib/guestfs>."
37119 msgstr ""
37120
37121 #. type: =head2
37122 #: ../src/guestfs.pod:931
37123 msgid "QEMU WRAPPERS"
37124 msgstr ""
37125
37126 #. type: textblock
37127 #: ../src/guestfs.pod:933
37128 msgid ""
37129 "If you want to compile your own qemu, run qemu from a non-standard location, "
37130 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37131 "around qemu."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:937
37136 msgid ""
37137 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37138 "last command in the shell script (so that qemu replaces the shell and "
37139 "becomes the direct child of the libguestfs-using program).  If you don't do "
37140 "this, then the qemu process won't be cleaned up correctly."
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:942
37145 msgid ""
37146 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37147 "source:"
37148 msgstr ""
37149
37150 #. type: verbatim
37151 #: ../src/guestfs.pod:945
37152 #, no-wrap
37153 msgid ""
37154 " #!/bin/sh -\n"
37155 " qemudir=/home/rjones/d/qemu\n"
37156 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37157 "\n"
37158 msgstr ""
37159 " #!/bin/sh -\n"
37160 " qemudir=/home/rjones/d/qemu\n"
37161 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37162 "\n"
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:949
37166 msgid ""
37167 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37168 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37169 "example:"
37170 msgstr ""
37171
37172 #. type: verbatim
37173 #: ../src/guestfs.pod:953
37174 #, no-wrap
37175 msgid ""
37176 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37177 "\n"
37178 msgstr ""
37179 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37180 "\n"
37181
37182 #. type: textblock
37183 #: ../src/guestfs.pod:955
37184 msgid ""
37185 "Note that libguestfs also calls qemu with the -help and -version options in "
37186 "order to determine features."
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:958
37191 msgid ""
37192 "Wrappers can also be used to edit the options passed to qemu.  In the "
37193 "following example, the C<-machine ...> option (C<-machine> and the following "
37194 "argument) are removed from the command line and replaced with C<-machine pc,"
37195 "accel=tcg>.  The while loop iterates over the options until it finds the "
37196 "right one to remove, putting the remaining options into the C<args> array."
37197 msgstr ""
37198
37199 #. type: verbatim
37200 #: ../src/guestfs.pod:967
37201 #, no-wrap
37202 msgid ""
37203 " i=0\n"
37204 " while [ $# -gt 0 ]; do\n"
37205 "     case \"$1\" in\n"
37206 "     -machine)\n"
37207 "         shift 2;;\n"
37208 "     *)\n"
37209 "         args[i]=\"$1\"\n"
37210 "         (( i++ ))\n"
37211 "         shift ;;\n"
37212 "     esac\n"
37213 " done\n"
37214 " \n"
37215 msgstr ""
37216
37217 #. type: verbatim
37218 #: ../src/guestfs.pod:979
37219 #, no-wrap
37220 msgid ""
37221 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37222 "\n"
37223 msgstr ""
37224
37225 #. type: =head2
37226 #: ../src/guestfs.pod:981
37227 msgid "ATTACHING TO RUNNING DAEMONS"
37228 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:983
37232 msgid ""
37233 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37234 "babies.  Use with caution."
37235 msgstr ""
37236
37237 #. type: textblock
37238 #: ../src/guestfs.pod:986
37239 msgid ""
37240 "I<Note (2):> This section explains how to attach to a running daemon from a "
37241 "low level perspective.  For most users, simply using virt tools such as "
37242 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37243 msgstr ""
37244
37245 #. type: =head3
37246 #: ../src/guestfs.pod:990
37247 msgid "Using guestfs_set_attach_method"
37248 msgstr "За допомогою guestfs_set_attach_method"
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:992
37252 msgid ""
37253 "By calling L</guestfs_set_attach_method> you can change how the library "
37254 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37255 "ARCHITECTURE> for some background)."
37256 msgstr ""
37257
37258 #. type: textblock
37259 #: ../src/guestfs.pod:996
37260 msgid ""
37261 "The normal attach method is C<appliance>, where a small appliance is created "
37262 "containing the daemon, and then the library connects to this."
37263 msgstr ""
37264
37265 #. type: textblock
37266 #: ../src/guestfs.pod:999
37267 msgid ""
37268 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37269 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37270 "daemon over the Unix domain socket."
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../src/guestfs.pod:1003
37275 msgid ""
37276 "The normal use for this is to connect to a running virtual machine that "
37277 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37278 "files inside the live virtual machine."
37279 msgstr ""
37280
37281 #. type: =head3
37282 #: ../src/guestfs.pod:1007
37283 msgid "Using guestfs_add_domain with live flag"
37284 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37285
37286 #. type: textblock
37287 #: ../src/guestfs.pod:1009
37288 msgid ""
37289 "L</guestfs_add_domain> provides some help for getting the correct attach "
37290 "method.  If you pass the C<live> option to this function, then (if the "
37291 "virtual machine is running) it will examine the libvirt XML looking for a "
37292 "virtio-serial channel to connect to:"
37293 msgstr ""
37294
37295 #. type: verbatim
37296 #: ../src/guestfs.pod:1015
37297 #, no-wrap
37298 msgid ""
37299 " <domain>\n"
37300 "   ...\n"
37301 "   <devices>\n"
37302 "     ...\n"
37303 "     <channel type='unix'>\n"
37304 "       <source mode='bind' path='/path/to/socket'/>\n"
37305 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37306 "     </channel>\n"
37307 "     ...\n"
37308 "   </devices>\n"
37309 " </domain>\n"
37310 "\n"
37311 msgstr ""
37312 " <domain>\n"
37313 "   ...\n"
37314 "   <devices>\n"
37315 "     ...\n"
37316 "     <channel type='unix'>\n"
37317 "       <source mode='bind' path='/path/to/socket'/>\n"
37318 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37319 "     </channel>\n"
37320 "     ...\n"
37321 "   </devices>\n"
37322 " </domain>\n"
37323 "\n"
37324
37325 #. type: textblock
37326 #: ../src/guestfs.pod:1027
37327 msgid ""
37328 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37329 "method to C<unix:/path/to/socket>."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../src/guestfs.pod:1030
37334 msgid ""
37335 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37336 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37337 "to attach to and modify live virtual machines."
37338 msgstr ""
37339
37340 #. type: textblock
37341 #: ../src/guestfs.pod:1034
37342 msgid ""
37343 "The virtual machine needs to have been set up beforehand so that it has the "
37344 "virtio-serial channel and so that guestfsd is running inside it."
37345 msgstr ""
37346
37347 #. type: =head2
37348 #: ../src/guestfs.pod:1038
37349 msgid "ABI GUARANTEE"
37350 msgstr "ГАРАНТІЯ ЩОДО ABI"
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:1040
37354 msgid ""
37355 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37356 "actions as outlined in this section.  Although we will deprecate some "
37357 "actions, for example if they get replaced by newer calls, we will keep the "
37358 "old actions forever.  This allows you the developer to program in confidence "
37359 "against the libguestfs API."
37360 msgstr ""
37361
37362 #. type: =head2
37363 #: ../src/guestfs.pod:1046
37364 msgid "BLOCK DEVICE NAMING"
37365 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:1048
37369 msgid ""
37370 "In the kernel there is now quite a profusion of schemata for naming block "
37371 "devices (in this context, by I<block device> I mean a physical or virtual "
37372 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37373 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37374 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37375 "for the old IDE driver (particularly for SATA devices) those devices also "
37376 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37377 "paravirtualized drivers.  This has created several different naming systems, "
37378 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:1060
37383 msgid ""
37384 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37385 "Linux kernel to access block devices.  We can run a variety of appliances "
37386 "based on a variety of Linux kernels."
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../src/guestfs.pod:1064
37391 msgid ""
37392 "This causes a problem for libguestfs because many API calls use device or "
37393 "partition names.  Working scripts and the recipe (example) scripts that we "
37394 "make available over the internet could fail if the naming scheme changes."
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../src/guestfs.pod:1069
37399 msgid ""
37400 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37401 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37402 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37403 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:1075
37408 msgid ""
37409 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37410 "L</guestfs_list_partitions> and similar calls return the true names of the "
37411 "devices and partitions as known to the appliance."
37412 msgstr ""
37413
37414 #. type: =head3
37415 #: ../src/guestfs.pod:1080
37416 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:1082
37421 msgid ""
37422 "Usually this translation is transparent.  However in some (very rare)  cases "
37423 "you may need to know the exact algorithm.  Such cases include where you use "
37424 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37425 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37426 msgstr ""
37427
37428 #. type: textblock
37429 #: ../src/guestfs.pod:1088
37430 msgid ""
37431 "The algorithm is applied only to I<parameters> which are known to be either "
37432 "device or partition names.  Return values from functions such as L</"
37433 "guestfs_list_devices> are never changed."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1096
37438 msgid "Is the string a parameter which is a device or partition name?"
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1100
37443 msgid "Does the string begin with C</dev/sd>?"
37444 msgstr "Чи починається рядок з C</dev/sd>?"
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:1104
37448 msgid ""
37449 "Does the named device exist? If so, we use that device.  However if I<not> "
37450 "then we continue with this algorithm."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:1109
37455 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:1111
37460 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:1113
37465 msgid "If that named device exists, use it.  If not, continue."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:1117
37470 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37471 msgstr ""
37472
37473 #. type: textblock
37474 #: ../src/guestfs.pod:1119
37475 msgid "If that named device exists, use it.  If not, return an error."
37476 msgstr ""
37477
37478 #. type: =head3
37479 #: ../src/guestfs.pod:1123
37480 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37481 msgstr ""
37482
37483 #. type: textblock
37484 #: ../src/guestfs.pod:1125
37485 msgid ""
37486 "Although the standard naming scheme and automatic translation is useful for "
37487 "simple programs and guestfish scripts, for larger programs it is best not to "
37488 "rely on this mechanism."
37489 msgstr ""
37490
37491 #. type: textblock
37492 #: ../src/guestfs.pod:1129
37493 msgid ""
37494 "Where possible for maximum future portability programs using libguestfs "
37495 "should use these future-proof techniques:"
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../src/guestfs.pod:1136
37500 msgid ""
37501 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37502 "device names, and then use those names directly."
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:1139
37507 msgid ""
37508 "Since those device names exist by definition, they will never be translated."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:1144
37513 msgid ""
37514 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37515 "filesystem labels."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:1151
37520 msgid ""
37521 "This section discusses security implications of using libguestfs, "
37522 "particularly with untrusted or malicious guests or disk images."
37523 msgstr ""
37524
37525 #. type: =head2
37526 #: ../src/guestfs.pod:1154
37527 msgid "GENERAL SECURITY CONSIDERATIONS"
37528 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:1156
37532 msgid ""
37533 "Be careful with any files or data that you download from a guest (by "
37534 "\"download\" we mean not just the L</guestfs_download> command but any "
37535 "command that reads files, filenames, directories or anything else from a "
37536 "disk image).  An attacker could manipulate the data to fool your program "
37537 "into doing the wrong thing.  Consider cases such as:"
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:1166
37542 msgid "the data (file etc) not being present"
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:1170
37547 msgid "being present but empty"
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../src/guestfs.pod:1174
37552 msgid "being much larger than normal"
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:1178
37557 msgid "containing arbitrary 8 bit data"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:1182
37562 msgid "being in an unexpected character encoding"
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:1186
37567 msgid "containing homoglyphs."
37568 msgstr ""
37569
37570 #. type: =head2
37571 #: ../src/guestfs.pod:1190
37572 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37573 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:1192
37577 msgid ""
37578 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37579 "(VFS) module can sometimes be escalated into exploits by deliberately "
37580 "creating a malicious, malformed filesystem.  These exploits are very severe "
37581 "for two reasons.  Firstly there are very many filesystem drivers in the "
37582 "kernel, and many of them are infrequently used and not much developer "
37583 "attention has been paid to the code.  Linux userspace helps potential "
37584 "crackers by detecting the filesystem type and automatically choosing the "
37585 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37586 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37587 "exploit (worse in some ways), giving immediate and total access to the "
37588 "system right down to the hardware level."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:1205
37593 msgid ""
37594 "That explains why you should never mount a filesystem from an untrusted "
37595 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37596 "inside a qemu virtual machine, usually running as a non-root user.  The "
37597 "attacker would need to write a filesystem which first exploited the kernel, "
37598 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37599 "the libguestfs protocol, and finally to be as serious as the host kernel "
37600 "exploit it would need to escalate its privileges to root.  This multi-step "
37601 "escalation, performed by a static piece of data, is thought to be extremely "
37602 "hard to do, although we never say 'never' about security issues."
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:1216
37607 msgid ""
37608 "In any case callers can reduce the attack surface by forcing the filesystem "
37609 "type when mounting (use L</guestfs_mount_vfs>)."
37610 msgstr ""
37611
37612 #. type: =head2
37613 #: ../src/guestfs.pod:1219
37614 msgid "PROTOCOL SECURITY"
37615 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:1221
37619 msgid ""
37620 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37621 "defined upper message size.  However a program that uses libguestfs must "
37622 "also take care - for example you can write a program that downloads a binary "
37623 "from a disk image and executes it locally, and no amount of protocol "
37624 "security will save you from the consequences."
37625 msgstr ""
37626
37627 #. type: =head2
37628 #: ../src/guestfs.pod:1227
37629 msgid "INSPECTION SECURITY"
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:1229
37634 msgid ""
37635 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37636 "directly from the guest, and these could contain any 8 bit data.  Callers "
37637 "should be careful to escape these before printing them to a structured file "
37638 "(for example, use HTML escaping if creating a web page)."
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:1235
37643 msgid ""
37644 "Guest configuration may be altered in unusual ways by the administrator of "
37645 "the virtual machine, and may not reflect reality (particularly for untrusted "
37646 "or actively malicious guests).  For example we parse the hostname from "
37647 "configuration files like C</etc/sysconfig/network> that we find in the "
37648 "guest, but the guest administrator can easily manipulate these files to "
37649 "provide the wrong hostname."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:1243
37654 msgid ""
37655 "The inspection API parses guest configuration using two external libraries: "
37656 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37657 "designed to be robust in the face of malicious data, although denial of "
37658 "service attacks are still possible, for example with oversized configuration "
37659 "files."
37660 msgstr ""
37661
37662 #. type: =head2
37663 #: ../src/guestfs.pod:1249
37664 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37665 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:1251
37669 msgid ""
37670 "Be very cautious about running commands from the guest.  By running a "
37671 "command in the guest, you are giving CPU time to a binary that you do not "
37672 "control, under the same user account as the library, albeit wrapped in qemu "
37673 "virtualization.  More information and alternatives can be found in the "
37674 "section L</RUNNING COMMANDS>."
37675 msgstr ""
37676
37677 #. type: =head2
37678 #: ../src/guestfs.pod:1257
37679 msgid "CVE-2010-3851"
37680 msgstr "CVE-2010-3851"
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1259
37684 msgid "https://bugzilla.redhat.com/642934"
37685 msgstr "https://bugzilla.redhat.com/642934"
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:1261
37689 msgid ""
37690 "This security bug concerns the automatic disk format detection that qemu "
37691 "does on disk images."
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:1264
37696 msgid ""
37697 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37698 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37699 "for one of the known headers, and if none is found then assuming the disk "
37700 "image must be raw."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:1269
37705 msgid ""
37706 "This allows a guest which has been given a raw disk image to write some "
37707 "other header.  At next boot (or when the disk image is accessed by "
37708 "libguestfs) qemu would do autodetection and think the disk image format was, "
37709 "say, qcow2 based on the header written by the guest."
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:1274
37714 msgid ""
37715 "This in itself would not be a problem, but qcow2 offers many features, one "
37716 "of which is to allow a disk image to refer to another image (called the "
37717 "\"backing disk\").  It does this by placing the path to the backing disk "
37718 "into the qcow2 header.  This path is not validated and could point to any "
37719 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37720 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37721 "control of the attacker."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../src/guestfs.pod:1282
37726 msgid ""
37727 "In libguestfs this is rather hard to exploit except under two circumstances:"
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../src/guestfs.pod:1289
37732 msgid "You have enabled the network or have opened the disk in write mode."
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:1293
37737 msgid ""
37738 "You are also running untrusted code from the guest (see L</RUNNING "
37739 "COMMANDS>)."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:1298
37744 msgid ""
37745 "The way to avoid this is to specify the expected disk format when adding "
37746 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37747 "should always do this if the disk is raw format, and it's a good idea for "
37748 "other cases too."
37749 msgstr ""
37750
37751 #. type: textblock
37752 #: ../src/guestfs.pod:1303
37753 msgid ""
37754 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37755 "format is fetched from libvirt and passed through."
37756 msgstr ""
37757
37758 #. type: textblock
37759 #: ../src/guestfs.pod:1306
37760 msgid ""
37761 "For libguestfs tools, use the I<--format> command line parameter as "
37762 "appropriate."
37763 msgstr ""
37764
37765 #. type: =head1
37766 #: ../src/guestfs.pod:1309
37767 msgid "CONNECTION MANAGEMENT"
37768 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37769
37770 #. type: =head2
37771 #: ../src/guestfs.pod:1311
37772 msgid "guestfs_h *"
37773 msgstr "guestfs_h *"
37774
37775 #. type: textblock
37776 #: ../src/guestfs.pod:1313
37777 msgid ""
37778 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37779 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37780 "handle and release all resources used."
37781 msgstr ""
37782
37783 #. type: textblock
37784 #: ../src/guestfs.pod:1317
37785 msgid ""
37786 "For information on using multiple handles and threads, see the section L</"
37787 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37788 msgstr ""
37789
37790 #. type: =head2
37791 #: ../src/guestfs.pod:1320
37792 msgid "guestfs_create"
37793 msgstr "guestfs_create"
37794
37795 #. type: verbatim
37796 #: ../src/guestfs.pod:1322
37797 #, no-wrap
37798 msgid ""
37799 " guestfs_h *guestfs_create (void);\n"
37800 "\n"
37801 msgstr ""
37802 " guestfs_h *guestfs_create (void);\n"
37803 "\n"
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1324
37807 msgid "Create a connection handle."
37808 msgstr "Створити дескриптор з’єднання."
37809
37810 #. type: textblock
37811 #: ../src/guestfs.pod:1326
37812 msgid ""
37813 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37814 "NULL."
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:1329
37819 msgid ""
37820 "You have to \"configure\" the handle after creating it.  This includes "
37821 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37822 "handle at least once."
37823 msgstr ""
37824
37825 #. type: textblock
37826 #: ../src/guestfs.pod:1333
37827 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:1335
37832 msgid ""
37833 "You may also want to configure error handling for the handle.  See the L</"
37834 "ERROR HANDLING> section below."
37835 msgstr ""
37836
37837 #. type: =head2
37838 #: ../src/guestfs.pod:1338
37839 msgid "guestfs_close"
37840 msgstr "guestfs_close"
37841
37842 #. type: verbatim
37843 #: ../src/guestfs.pod:1340
37844 #, no-wrap
37845 msgid ""
37846 " void guestfs_close (guestfs_h *g);\n"
37847 "\n"
37848 msgstr ""
37849 " void guestfs_close (guestfs_h *g);\n"
37850 "\n"
37851
37852 #. type: textblock
37853 #: ../src/guestfs.pod:1342
37854 msgid "This closes the connection handle and frees up all resources used."
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:1344
37859 msgid ""
37860 "If autosync was set on the handle and the handle was launched, then this "
37861 "implicitly calls various functions to unmount filesystems and sync the "
37862 "disk.  See L</guestfs_set_autosync> for more details."
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:1348
37867 msgid "If a close callback was set on the handle, then it is called."
37868 msgstr ""
37869
37870 #. type: =head1
37871 #: ../src/guestfs.pod:1350
37872 msgid "ERROR HANDLING"
37873 msgstr "ОБРОБКА ПОМИЛОК"
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:1352
37877 msgid ""
37878 "API functions can return errors.  For example, almost all functions that "
37879 "return C<int> will return C<-1> to indicate an error."
37880 msgstr ""
37881
37882 #. type: textblock
37883 #: ../src/guestfs.pod:1355
37884 msgid ""
37885 "Additional information is available for errors: an error message string and "
37886 "optionally an error number (errno) if the thing that failed was a system "
37887 "call."
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:1359
37892 msgid ""
37893 "You can get at the additional information about the last error on the handle "
37894 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37895 "up an error handler with L</guestfs_set_error_handler>."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:1364
37900 msgid ""
37901 "When the handle is created, a default error handler is installed which "
37902 "prints the error message string to C<stderr>.  For small short-running "
37903 "command line programs it is sufficient to do:"
37904 msgstr ""
37905
37906 #. type: verbatim
37907 #: ../src/guestfs.pod:1368
37908 #, no-wrap
37909 msgid ""
37910 " if (guestfs_launch (g) == -1)\n"
37911 "   exit (EXIT_FAILURE);\n"
37912 "\n"
37913 msgstr ""
37914 " if (guestfs_launch (g) == -1)\n"
37915 "   exit (EXIT_FAILURE);\n"
37916 "\n"
37917
37918 #. type: textblock
37919 #: ../src/guestfs.pod:1371
37920 msgid ""
37921 "since the default error handler will ensure that an error message has been "
37922 "printed to C<stderr> before the program exits."
37923 msgstr ""
37924
37925 #. type: textblock
37926 #: ../src/guestfs.pod:1374
37927 msgid ""
37928 "For other programs the caller will almost certainly want to install an "
37929 "alternate error handler or do error handling in-line like this:"
37930 msgstr ""
37931
37932 #. type: verbatim
37933 #: ../src/guestfs.pod:1377
37934 #, no-wrap
37935 msgid ""
37936 " /* This disables the default behaviour of printing errors\n"
37937 "    on stderr. */\n"
37938 " guestfs_set_error_handler (g, NULL, NULL);\n"
37939 " \n"
37940 msgstr ""
37941
37942 #. type: verbatim
37943 #: ../src/guestfs.pod:1381
37944 #, fuzzy, no-wrap
37945 #| msgid ""
37946 #| " if (guestfs_launch (g) == -1) {\n"
37947 #| "   /* Examine the error message and print it etc. */\n"
37948 #| "   char *msg = guestfs_last_error (g);\n"
37949 #| "   int errnum = guestfs_last_errno (g);\n"
37950 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
37951 #| "   /* ... */\n"
37952 #| "  }\n"
37953 #| "\n"
37954 msgid ""
37955 " if (guestfs_launch (g) == -1) {\n"
37956 "   /* Examine the error message and print it etc. */\n"
37957 "   char *msg = guestfs_last_error (g);\n"
37958 "   int errnum = guestfs_last_errno (g);\n"
37959 "   fprintf (stderr, \"%s\", msg);\n"
37960 "   if (errnum != 0)\n"
37961 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37962 "   fprintf (stderr, \"\\n\");\n"
37963 "   /* ... */\n"
37964 " }\n"
37965 "\n"
37966 msgstr ""
37967 " if (guestfs_launch (g) == -1) {\n"
37968 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
37969 "   char *msg = guestfs_last_error (g);\n"
37970 "   int errnum = guestfs_last_errno (g);\n"
37971 "   fprintf (stderr, \"%s\\n\", msg);\n"
37972 "   /* ... */\n"
37973 "  }\n"
37974 "\n"
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:1392
37978 msgid ""
37979 "Out of memory errors are handled differently.  The default action is to call "
37980 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37981 "guestfs_set_out_of_memory_handler>."
37982 msgstr ""
37983
37984 #. type: textblock
37985 #: ../src/guestfs.pod:1396
37986 msgid ""
37987 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37988 "because there is no handle if this happens there is no way to get additional "
37989 "error information.  However L</guestfs_create> is supposed to be a "
37990 "lightweight operation which can only fail because of insufficient memory (it "
37991 "returns NULL in this case)."
37992 msgstr ""
37993
37994 #. type: =head2
37995 #: ../src/guestfs.pod:1402
37996 msgid "guestfs_last_error"
37997 msgstr "guestfs_last_error"
37998
37999 #. type: verbatim
38000 #: ../src/guestfs.pod:1404
38001 #, no-wrap
38002 msgid ""
38003 " const char *guestfs_last_error (guestfs_h *g);\n"
38004 "\n"
38005 msgstr ""
38006 " const char *guestfs_last_error (guestfs_h *g);\n"
38007 "\n"
38008
38009 #. type: textblock
38010 #: ../src/guestfs.pod:1406
38011 msgid ""
38012 "This returns the last error message that happened on C<g>.  If there has not "
38013 "been an error since the handle was created, then this returns C<NULL>."
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:1410
38018 msgid ""
38019 "The lifetime of the returned string is until the next error occurs, or L</"
38020 "guestfs_close> is called."
38021 msgstr ""
38022
38023 #. type: =head2
38024 #: ../src/guestfs.pod:1413
38025 msgid "guestfs_last_errno"
38026 msgstr "guestfs_last_errno"
38027
38028 #. type: verbatim
38029 #: ../src/guestfs.pod:1415
38030 #, no-wrap
38031 msgid ""
38032 " int guestfs_last_errno (guestfs_h *g);\n"
38033 "\n"
38034 msgstr ""
38035 " int guestfs_last_errno (guestfs_h *g);\n"
38036 "\n"
38037
38038 #. type: textblock
38039 #: ../src/guestfs.pod:1417
38040 msgid "This returns the last error number (errno) that happened on C<g>."
38041 msgstr ""
38042
38043 #. type: textblock
38044 #: ../src/guestfs.pod:1419
38045 msgid "If successful, an errno integer not equal to zero is returned."
38046 msgstr ""
38047
38048 #. type: textblock
38049 #: ../src/guestfs.pod:1421
38050 msgid ""
38051 "If no error, this returns 0.  This call can return 0 in three situations:"
38052 msgstr ""
38053
38054 #. type: textblock
38055 #: ../src/guestfs.pod:1428
38056 msgid "There has not been any error on the handle."
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:1432
38061 msgid ""
38062 "There has been an error but the errno was meaningless.  This corresponds to "
38063 "the case where the error did not come from a failed system call, but for "
38064 "some other reason."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:1438
38069 msgid ""
38070 "There was an error from a failed system call, but for some reason the errno "
38071 "was not captured and returned.  This usually indicates a bug in libguestfs."
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:1444
38076 msgid ""
38077 "Libguestfs tries to convert the errno from inside the applicance into a "
38078 "corresponding errno for the caller (not entirely trivial: the appliance "
38079 "might be running a completely different operating system from the library "
38080 "and error numbers are not standardized across Un*xen).  If this could not be "
38081 "done, then the error is translated to C<EINVAL>.  In practice this should "
38082 "only happen in very rare circumstances."
38083 msgstr ""
38084
38085 #. type: =head2
38086 #: ../src/guestfs.pod:1452
38087 msgid "guestfs_set_error_handler"
38088 msgstr "guestfs_set_error_handler"
38089
38090 #. type: verbatim
38091 #: ../src/guestfs.pod:1454
38092 #, no-wrap
38093 msgid ""
38094 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38095 "                                           void *opaque,\n"
38096 "                                           const char *msg);\n"
38097 " void guestfs_set_error_handler (guestfs_h *g,\n"
38098 "                                 guestfs_error_handler_cb cb,\n"
38099 "                                 void *opaque);\n"
38100 "\n"
38101 msgstr ""
38102 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38103 "                                           void *opaque,\n"
38104 "                                           const char *msg);\n"
38105 " void guestfs_set_error_handler (guestfs_h *g,\n"
38106 "                                 guestfs_error_handler_cb cb,\n"
38107 "                                 void *opaque);\n"
38108 "\n"
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:1461
38112 msgid ""
38113 "The callback C<cb> will be called if there is an error.  The parameters "
38114 "passed to the callback are an opaque data pointer and the error message "
38115 "string."
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:1465
38120 msgid ""
38121 "C<errno> is not passed to the callback.  To get that the callback must call "
38122 "L</guestfs_last_errno>."
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../src/guestfs.pod:1468
38127 msgid ""
38128 "Note that the message string C<msg> is freed as soon as the callback "
38129 "function returns, so if you want to stash it somewhere you must make your "
38130 "own copy."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:1472
38135 msgid "The default handler prints messages on C<stderr>."
38136 msgstr ""
38137
38138 #. type: textblock
38139 #: ../src/guestfs.pod:1474
38140 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38141 msgstr ""
38142
38143 #. type: =head2
38144 #: ../src/guestfs.pod:1476
38145 msgid "guestfs_get_error_handler"
38146 msgstr "guestfs_get_error_handler"
38147
38148 #. type: verbatim
38149 #: ../src/guestfs.pod:1478
38150 #, no-wrap
38151 msgid ""
38152 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38153 "                                                     void **opaque_rtn);\n"
38154 "\n"
38155 msgstr ""
38156 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38157 "                                                     void **opaque_rtn);\n"
38158 "\n"
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:1481
38162 msgid "Returns the current error handler callback."
38163 msgstr ""
38164
38165 #. type: =head2
38166 #: ../src/guestfs.pod:1483
38167 msgid "guestfs_set_out_of_memory_handler"
38168 msgstr "guestfs_set_out_of_memory_handler"
38169
38170 #. type: verbatim
38171 #: ../src/guestfs.pod:1485
38172 #, fuzzy, no-wrap
38173 #| msgid ""
38174 #| " typedef void (*guestfs_abort_cb) (void);\n"
38175 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38176 #| "                                        guestfs_abort_cb);\n"
38177 #| "\n"
38178 msgid ""
38179 " typedef void (*guestfs_abort_cb) (void);\n"
38180 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38181 "                                         guestfs_abort_cb);\n"
38182 "\n"
38183 msgstr ""
38184 " typedef void (*guestfs_abort_cb) (void);\n"
38185 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38186 "                                        guestfs_abort_cb);\n"
38187 "\n"
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1489
38191 msgid ""
38192 "The callback C<cb> will be called if there is an out of memory situation.  "
38193 "I<Note this callback must not return>."
38194 msgstr ""
38195
38196 #. type: textblock
38197 #: ../src/guestfs.pod:1492
38198 msgid "The default is to call L<abort(3)>."
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../src/guestfs.pod:1494
38203 msgid ""
38204 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38205 msgstr ""
38206
38207 #. type: =head2
38208 #: ../src/guestfs.pod:1497
38209 msgid "guestfs_get_out_of_memory_handler"
38210 msgstr "guestfs_get_out_of_memory_handler"
38211
38212 #. type: verbatim
38213 #: ../src/guestfs.pod:1499
38214 #, no-wrap
38215 msgid ""
38216 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38217 "\n"
38218 msgstr ""
38219 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38220 "\n"
38221
38222 #. type: textblock
38223 #: ../src/guestfs.pod:1501
38224 msgid "This returns the current out of memory handler."
38225 msgstr ""
38226
38227 #. type: =head1
38228 #: ../src/guestfs.pod:1503
38229 msgid "API CALLS"
38230 msgstr "ВИКЛИКИ API"
38231
38232 #. type: =head1
38233 #: ../src/guestfs.pod:1507
38234 msgid "STRUCTURES"
38235 msgstr "СТРУКТУРИ"
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:1509
38239 msgid "@STRUCTS@"
38240 msgstr "@STRUCTS@"
38241
38242 #. type: =head1
38243 #: ../src/guestfs.pod:1511
38244 msgid "AVAILABILITY"
38245 msgstr "ДОСТУПНІСТЬ"
38246
38247 #. type: =head2
38248 #: ../src/guestfs.pod:1513
38249 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38250 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:1515
38254 msgid ""
38255 "Using L</guestfs_available> you can test availability of the following "
38256 "groups of functions.  This test queries the appliance to see if the "
38257 "appliance you are currently using supports the functionality."
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:1520
38262 msgid "@AVAILABILITY@"
38263 msgstr "@AVAILABILITY@"
38264
38265 #. type: =head2
38266 #: ../src/guestfs.pod:1522
38267 msgid "GUESTFISH supported COMMAND"
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:1524
38272 msgid ""
38273 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38274 "prints out the available groups and whether they are supported by this build "
38275 "of libguestfs.  Note however that you have to do C<run> first."
38276 msgstr ""
38277
38278 #. type: =head2
38279 #: ../src/guestfs.pod:1529
38280 msgid "SINGLE CALLS AT COMPILE TIME"
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:1531
38285 msgid ""
38286 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38287 "function, such as:"
38288 msgstr ""
38289
38290 #. type: verbatim
38291 #: ../src/guestfs.pod:1534
38292 #, no-wrap
38293 msgid ""
38294 " #define LIBGUESTFS_HAVE_DD 1\n"
38295 "\n"
38296 msgstr ""
38297 " #define LIBGUESTFS_HAVE_DD 1\n"
38298 "\n"
38299
38300 #. type: textblock
38301 #: ../src/guestfs.pod:1536
38302 msgid "if L</guestfs_dd> is available."
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../src/guestfs.pod:1538
38307 msgid ""
38308 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38309 "function is available at compile time, we recommended using build tools such "
38310 "as autoconf or cmake.  For example in autotools you could use:"
38311 msgstr ""
38312
38313 #. type: verbatim
38314 #: ../src/guestfs.pod:1543
38315 #, no-wrap
38316 msgid ""
38317 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38318 " AC_CHECK_FUNCS([guestfs_dd])\n"
38319 "\n"
38320 msgstr ""
38321 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38322 " AC_CHECK_FUNCS([guestfs_dd])\n"
38323 "\n"
38324
38325 #. type: textblock
38326 #: ../src/guestfs.pod:1546
38327 msgid ""
38328 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38329 "in your program."
38330 msgstr ""
38331
38332 #. type: =head2
38333 #: ../src/guestfs.pod:1549
38334 msgid "SINGLE CALLS AT RUN TIME"
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:1551
38339 msgid ""
38340 "Testing at compile time doesn't guarantee that a function really exists in "
38341 "the library.  The reason is that you might be dynamically linked against a "
38342 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38343 "This situation unfortunately results in a segmentation fault, which is a "
38344 "shortcoming of the C dynamic linking system itself."
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../src/guestfs.pod:1558
38349 msgid ""
38350 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38351 "in this example program (note that you still need the compile time check as "
38352 "well):"
38353 msgstr ""
38354
38355 #. type: verbatim
38356 #: ../src/guestfs.pod:1562
38357 #, no-wrap
38358 msgid ""
38359 " #include <stdio.h>\n"
38360 " #include <stdlib.h>\n"
38361 " #include <unistd.h>\n"
38362 " #include <dlfcn.h>\n"
38363 " #include <guestfs.h>\n"
38364 " \n"
38365 msgstr ""
38366 " #include <stdio.h>\n"
38367 " #include <stdlib.h>\n"
38368 " #include <unistd.h>\n"
38369 " #include <dlfcn.h>\n"
38370 " #include <guestfs.h>\n"
38371 " \n"
38372
38373 #. type: verbatim
38374 #: ../src/guestfs.pod:1568
38375 #, no-wrap
38376 msgid ""
38377 " main ()\n"
38378 " {\n"
38379 " #ifdef LIBGUESTFS_HAVE_DD\n"
38380 "   void *dl;\n"
38381 "   int has_function;\n"
38382 " \n"
38383 msgstr ""
38384 " main ()\n"
38385 " {\n"
38386 " #ifdef LIBGUESTFS_HAVE_DD\n"
38387 "   void *dl;\n"
38388 "   int has_function;\n"
38389 " \n"
38390
38391 #. type: verbatim
38392 #: ../src/guestfs.pod:1574
38393 #, no-wrap
38394 msgid ""
38395 "   /* Test if the function guestfs_dd is really available. */\n"
38396 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38397 "   if (!dl) {\n"
38398 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38399 "     exit (EXIT_FAILURE);\n"
38400 "   }\n"
38401 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38402 "   dlclose (dl);\n"
38403 " \n"
38404 msgstr ""
38405
38406 #. type: verbatim
38407 #: ../src/guestfs.pod:1583
38408 #, no-wrap
38409 msgid ""
38410 "   if (!has_function)\n"
38411 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38412 "   else {\n"
38413 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38414 "     /* Now it's safe to call\n"
38415 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38416 "     */\n"
38417 "   }\n"
38418 " #else\n"
38419 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38420 " #endif\n"
38421 "  }\n"
38422 "\n"
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1596
38427 msgid ""
38428 "You may think the above is an awful lot of hassle, and it is.  There are "
38429 "other ways outside of the C linking system to ensure that this kind of "
38430 "incompatibility never arises, such as using package versioning:"
38431 msgstr ""
38432
38433 #. type: verbatim
38434 #: ../src/guestfs.pod:1601
38435 #, no-wrap
38436 msgid ""
38437 " Requires: libguestfs >= 1.0.80\n"
38438 "\n"
38439 msgstr ""
38440
38441 #. type: =head1
38442 #: ../src/guestfs.pod:1603
38443 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../src/guestfs.pod:1605
38448 msgid ""
38449 "A recent feature of the API is the introduction of calls which take optional "
38450 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38451 "takes variable arguments (ie. C<...>), as in this example:"
38452 msgstr ""
38453
38454 #. type: verbatim
38455 #: ../src/guestfs.pod:1610
38456 #, no-wrap
38457 msgid ""
38458 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38459 "\n"
38460 msgstr ""
38461 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38462 "\n"
38463
38464 #. type: textblock
38465 #: ../src/guestfs.pod:1612
38466 msgid ""
38467 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38468 "call with no optional arguments specified:"
38469 msgstr ""
38470
38471 #. type: verbatim
38472 #: ../src/guestfs.pod:1615
38473 #, no-wrap
38474 msgid ""
38475 " guestfs_add_drive_opts (g, filename, -1);\n"
38476 "\n"
38477 msgstr ""
38478 " guestfs_add_drive_opts (g, filename, -1);\n"
38479 "\n"
38480
38481 #. type: textblock
38482 #: ../src/guestfs.pod:1617
38483 msgid "With a single optional argument:"
38484 msgstr ""
38485
38486 #. type: verbatim
38487 #: ../src/guestfs.pod:1619
38488 #, no-wrap
38489 msgid ""
38490 " guestfs_add_drive_opts (g, filename,\n"
38491 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38492 "                         -1);\n"
38493 "\n"
38494 msgstr ""
38495 " guestfs_add_drive_opts (g, filename,\n"
38496 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38497 "                         -1);\n"
38498 "\n"
38499
38500 #. type: textblock
38501 #: ../src/guestfs.pod:1623
38502 msgid "With two:"
38503 msgstr ""
38504
38505 #. type: verbatim
38506 #: ../src/guestfs.pod:1625
38507 #, no-wrap
38508 msgid ""
38509 " guestfs_add_drive_opts (g, filename,\n"
38510 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38511 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38512 "                         -1);\n"
38513 "\n"
38514 msgstr ""
38515 " guestfs_add_drive_opts (g, filename,\n"
38516 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38517 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38518 "                         -1);\n"
38519 "\n"
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:1630
38523 msgid ""
38524 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38525 "happen!"
38526 msgstr ""
38527
38528 #. type: =head2
38529 #: ../src/guestfs.pod:1633
38530 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38531 msgstr ""
38532
38533 #. type: textblock
38534 #: ../src/guestfs.pod:1635
38535 msgid ""
38536 "The second variant has the same name with the suffix C<_va>, which works the "
38537 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38538 "example function, this is declared:"
38539 msgstr ""
38540
38541 #. type: verbatim
38542 #: ../src/guestfs.pod:1639
38543 #, no-wrap
38544 msgid ""
38545 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38546 "                                va_list args);\n"
38547 "\n"
38548 msgstr ""
38549 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38550 "                                va_list args);\n"
38551 "\n"
38552
38553 #. type: =head2
38554 #: ../src/guestfs.pod:1642
38555 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38556 msgstr ""
38557
38558 #. type: textblock
38559 #: ../src/guestfs.pod:1644
38560 msgid ""
38561 "The third variant is useful where you need to construct these calls.  You "
38562 "pass in a structure where you fill in the optional fields.  The structure "
38563 "has a bitmask as the first element which you must set to indicate which "
38564 "fields you have filled in.  For our example function the structure and call "
38565 "are declared:"
38566 msgstr ""
38567
38568 #. type: verbatim
38569 #: ../src/guestfs.pod:1650
38570 #, no-wrap
38571 msgid ""
38572 " struct guestfs_add_drive_opts_argv {\n"
38573 "   uint64_t bitmask;\n"
38574 "   int readonly;\n"
38575 "   const char *format;\n"
38576 "   /* ... */\n"
38577 " };\n"
38578 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38579 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38580 "\n"
38581 msgstr ""
38582 " struct guestfs_add_drive_opts_argv {\n"
38583 "   uint64_t bitmask;\n"
38584 "   int readonly;\n"
38585 "   const char *format;\n"
38586 "   /* ... */\n"
38587 " };\n"
38588 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38589 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38590 "\n"
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:1659
38594 msgid "You could call it like this:"
38595 msgstr ""
38596
38597 #. type: verbatim
38598 #: ../src/guestfs.pod:1661
38599 #, no-wrap
38600 msgid ""
38601 " struct guestfs_add_drive_opts_argv optargs = {\n"
38602 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38603 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38604 "   .readonly = 1,\n"
38605 "   .format = \"qcow2\"\n"
38606 " };\n"
38607 " \n"
38608 msgstr ""
38609 " struct guestfs_add_drive_opts_argv optargs = {\n"
38610 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38611 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38612 "   .readonly = 1,\n"
38613 "   .format = \"qcow2\"\n"
38614 " };\n"
38615 " \n"
38616
38617 #. type: verbatim
38618 #: ../src/guestfs.pod:1668
38619 #, no-wrap
38620 msgid ""
38621 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38622 "\n"
38623 msgstr ""
38624 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38625 "\n"
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:1676
38629 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38630 msgstr ""
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:1681
38634 msgid "You do not need to fill in all fields of the structure."
38635 msgstr ""
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:1685
38639 msgid ""
38640 "There must be a one-to-one correspondence between fields of the structure "
38641 "that are filled in, and bits set in the bitmask."
38642 msgstr ""
38643
38644 #. type: =head2
38645 #: ../src/guestfs.pod:1690
38646 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../src/guestfs.pod:1692
38651 msgid ""
38652 "In other languages, optional arguments are expressed in the way that is "
38653 "natural for that language.  We refer you to the language-specific "
38654 "documentation for more details on that."
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:1696
38659 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38660 msgstr ""
38661
38662 #. type: =head2
38663 #: ../src/guestfs.pod:1698
38664 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38665 msgstr ""
38666
38667 #. type: textblock
38668 #: ../src/guestfs.pod:1700
38669 msgid ""
38670 "B<Note:> This section documents the generic event mechanism introduced in "
38671 "libguestfs 1.10, which you should use in new code if possible.  The old "
38672 "functions C<guestfs_set_log_message_callback>, "
38673 "C<guestfs_set_subprocess_quit_callback>, "
38674 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38675 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38676 "page.  Because of the ABI guarantee, the old functions continue to work."
38677 msgstr ""
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:1709
38681 msgid ""
38682 "Handles generate events when certain things happen, such as log messages "
38683 "being generated, progress messages during long-running operations, or the "
38684 "handle being closed.  The API calls described below let you register a "
38685 "callback to be called when events happen.  You can register multiple "
38686 "callbacks (for the same, different or overlapping sets of events), and "
38687 "individually remove callbacks.  If callbacks are not removed, then they "
38688 "remain in force until the handle is closed."
38689 msgstr ""
38690
38691 #. type: textblock
38692 #: ../src/guestfs.pod:1717
38693 msgid ""
38694 "In the current implementation, events are only generated synchronously: that "
38695 "means that events (and hence callbacks) can only happen while you are in the "
38696 "middle of making another libguestfs call.  The callback is called in the "
38697 "same thread."
38698 msgstr ""
38699
38700 #. type: textblock
38701 #: ../src/guestfs.pod:1722
38702 msgid ""
38703 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38704 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38705 msgstr ""
38706
38707 #. type: =head3
38708 #: ../src/guestfs.pod:1726
38709 msgid "CLASSES OF EVENTS"
38710 msgstr ""
38711
38712 #. type: =item
38713 #: ../src/guestfs.pod:1730
38714 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38715 msgstr ""
38716
38717 #. type: textblock
38718 #: ../src/guestfs.pod:1733
38719 msgid ""
38720 "The callback function will be called while the handle is being closed "
38721 "(synchronously from L</guestfs_close>)."
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:1736
38726 msgid ""
38727 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38728 "handles that are open when the program exits.  This means that this callback "
38729 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38730 "problems in higher-level languages (eg. if your HLL interpreter has already "
38731 "been cleaned up by the time this is called, and if your callback then jumps "
38732 "into some HLL function)."
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:1743
38737 msgid ""
38738 "If no callback is registered: the handle is closed without any callback "
38739 "being invoked."
38740 msgstr ""
38741
38742 #. type: =item
38743 #: ../src/guestfs.pod:1746
38744 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38745 msgstr ""
38746
38747 #. type: textblock
38748 #: ../src/guestfs.pod:1749
38749 msgid ""
38750 "The callback function will be called when the child process quits, either "
38751 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38752 "corresponds to a transition from any state to the CONFIG state)."
38753 msgstr ""
38754
38755 #. type: textblock
38756 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38757 msgid "If no callback is registered: the event is ignored."
38758 msgstr ""
38759
38760 #. type: =item
38761 #: ../src/guestfs.pod:1755
38762 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38763 msgstr ""
38764
38765 #. type: textblock
38766 #: ../src/guestfs.pod:1758
38767 msgid ""
38768 "The callback function will be called when the child process becomes ready "
38769 "first time after it has been launched.  (This corresponds to a transition "
38770 "from LAUNCHING to the READY state)."
38771 msgstr ""
38772
38773 #. type: =item
38774 #: ../src/guestfs.pod:1764
38775 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38776 msgstr ""
38777
38778 #. type: textblock
38779 #: ../src/guestfs.pod:1767
38780 msgid ""
38781 "Some long-running operations can generate progress messages.  If this "
38782 "callback is registered, then it will be called each time a progress message "
38783 "is generated (usually two seconds after the operation started, and three "
38784 "times per second thereafter until it completes, although the frequency may "
38785 "change in future versions)."
38786 msgstr ""
38787
38788 #. type: textblock
38789 #: ../src/guestfs.pod:1773
38790 msgid ""
38791 "The callback receives in the payload four unsigned 64 bit numbers which are "
38792 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:1776
38797 msgid ""
38798 "The units of C<total> are not defined, although for some operations C<total> "
38799 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38800 "or megabytes), and C<position> may be the portion which has been transferred."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:1781
38805 msgid "The only defined and stable parts of the API are:"
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../src/guestfs.pod:1787
38810 msgid ""
38811 "The callback can display to the user some type of progress bar or indicator "
38812 "which shows the ratio of C<position>:C<total>."
38813 msgstr ""
38814
38815 #. type: textblock
38816 #: ../src/guestfs.pod:1792
38817 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38818 msgstr ""
38819
38820 #. type: textblock
38821 #: ../src/guestfs.pod:1796
38822 msgid ""
38823 "If any progress notification is sent during a call, then a final progress "
38824 "notification is always sent when C<position> = C<total> (I<unless> the call "
38825 "fails with an error)."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:1800
38830 msgid ""
38831 "This is to simplify caller code, so callers can easily set the progress "
38832 "indicator to \"100%\" at the end of the operation, without requiring special "
38833 "code to detect this case."
38834 msgstr ""
38835
38836 #. type: textblock
38837 #: ../src/guestfs.pod:1806
38838 msgid ""
38839 "For some calls we are unable to estimate the progress of the call, but we "
38840 "can still generate progress messages to indicate activity.  This is known as "
38841 "\"pulse mode\", and is directly supported by certain progress bar "
38842 "implementations (eg. GtkProgressBar)."
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:1811
38847 msgid ""
38848 "For these calls, zero or more progress messages are generated with "
38849 "C<position = 0> and C<total = 1>, followed by a final message with "
38850 "C<position = total = 1>."
38851 msgstr ""
38852
38853 #. type: textblock
38854 #: ../src/guestfs.pod:1815
38855 msgid ""
38856 "As noted above, if the call fails with an error then the final message may "
38857 "not be generated."
38858 msgstr ""
38859
38860 #. type: textblock
38861 #: ../src/guestfs.pod:1820
38862 msgid ""
38863 "The callback also receives the procedure number (C<proc_nr>) and serial "
38864 "number (C<serial>) of the call.  These are only useful for debugging "
38865 "protocol issues, and the callback can normally ignore them.  The callback "
38866 "may want to print these numbers in error messages or debugging messages."
38867 msgstr ""
38868
38869 #. type: textblock
38870 #: ../src/guestfs.pod:1826
38871 msgid "If no callback is registered: progress messages are discarded."
38872 msgstr ""
38873
38874 #. type: =item
38875 #: ../src/guestfs.pod:1828
38876 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:1831
38881 msgid ""
38882 "The callback function is called whenever a log message is generated by qemu, "
38883 "the appliance kernel, guestfsd (daemon), or utility programs."
38884 msgstr ""
38885
38886 #. type: textblock
38887 #: ../src/guestfs.pod:1834
38888 msgid ""
38889 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38890 "guestfs_launch>) then additional debug messages are generated."
38891 msgstr ""
38892
38893 #. type: textblock
38894 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38895 msgid ""
38896 "If no callback is registered: the messages are discarded unless the verbose "
38897 "flag is set in which case they are sent to stderr.  You can override the "
38898 "printing of verbose messages to stderr by setting up a callback."
38899 msgstr ""
38900
38901 #. type: =item
38902 #: ../src/guestfs.pod:1842
38903 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:1845
38908 msgid ""
38909 "The callback function is called whenever a log message is generated by the "
38910 "library part of libguestfs."
38911 msgstr ""
38912
38913 #. type: textblock
38914 #: ../src/guestfs.pod:1848
38915 msgid ""
38916 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38917 "messages are generated."
38918 msgstr ""
38919
38920 #. type: =item
38921 #: ../src/guestfs.pod:1856
38922 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38923 msgstr ""
38924
38925 #. type: textblock
38926 #: ../src/guestfs.pod:1859
38927 msgid ""
38928 "The callback function is called whenever a trace message is generated.  This "
38929 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:1862
38934 msgid ""
38935 "If no callback is registered: the messages are sent to stderr.  You can "
38936 "override the printing of trace messages to stderr by setting up a callback."
38937 msgstr ""
38938
38939 #. type: =item
38940 #: ../src/guestfs.pod:1866
38941 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38942 msgstr ""
38943
38944 #. type: textblock
38945 #: ../src/guestfs.pod:1869
38946 msgid ""
38947 "The callback function is called whenever a libguestfs function is entered."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:1872
38952 msgid ""
38953 "The payload is a string which contains the name of the function that we are "
38954 "entering (not including C<guestfs_> prefix)."
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../src/guestfs.pod:1875
38959 msgid ""
38960 "Note that libguestfs functions can call themselves, so you may see many "
38961 "events from a single call.  A few libguestfs functions do not generate this "
38962 "event."
38963 msgstr ""
38964
38965 #. type: =head3
38966 #: ../src/guestfs.pod:1883
38967 msgid "guestfs_set_event_callback"
38968 msgstr ""
38969
38970 #. type: verbatim
38971 #: ../src/guestfs.pod:1885
38972 #, no-wrap
38973 msgid ""
38974 " int guestfs_set_event_callback (guestfs_h *g,\n"
38975 "                                 guestfs_event_callback cb,\n"
38976 "                                 uint64_t event_bitmask,\n"
38977 "                                 int flags,\n"
38978 "                                 void *opaque);\n"
38979 "\n"
38980 msgstr ""
38981
38982 #. type: textblock
38983 #: ../src/guestfs.pod:1891
38984 msgid ""
38985 "This function registers a callback (C<cb>) for all event classes in the "
38986 "C<event_bitmask>."
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:1894
38991 msgid ""
38992 "For example, to register for all log message events, you could call this "
38993 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38994 "To register a single callback for all possible classes of events, use "
38995 "C<GUESTFS_EVENT_ALL>."
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../src/guestfs.pod:1900
39000 msgid "C<flags> should always be passed as 0."
39001 msgstr ""
39002
39003 #. type: textblock
39004 #: ../src/guestfs.pod:1902
39005 msgid ""
39006 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39007 "it for any purpose."
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:1905
39012 msgid ""
39013 "The return value is the event handle (an integer) which you can use to "
39014 "delete the callback (see below)."
39015 msgstr ""
39016
39017 #. type: textblock
39018 #: ../src/guestfs.pod:1908
39019 msgid ""
39020 "If there is an error, this function returns C<-1>, and sets the error in the "
39021 "handle in the usual way (see L</guestfs_last_error> etc.)"
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:1911
39026 msgid ""
39027 "Callbacks remain in effect until they are deleted, or until the handle is "
39028 "closed."
39029 msgstr ""
39030
39031 #. type: textblock
39032 #: ../src/guestfs.pod:1914
39033 msgid ""
39034 "In the case where multiple callbacks are registered for a particular event "
39035 "class, all of the callbacks are called.  The order in which multiple "
39036 "callbacks are called is not defined."
39037 msgstr ""
39038
39039 #. type: =head3
39040 #: ../src/guestfs.pod:1918
39041 msgid "guestfs_delete_event_callback"
39042 msgstr ""
39043
39044 #. type: verbatim
39045 #: ../src/guestfs.pod:1920
39046 #, no-wrap
39047 msgid ""
39048 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39049 "\n"
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:1922
39054 msgid ""
39055 "Delete a callback that was previously registered.  C<event_handle> should be "
39056 "the integer that was returned by a previous call to "
39057 "C<guestfs_set_event_callback> on the same handle."
39058 msgstr ""
39059
39060 #. type: =head3
39061 #: ../src/guestfs.pod:1926
39062 msgid "guestfs_event_callback"
39063 msgstr ""
39064
39065 #. type: verbatim
39066 #: ../src/guestfs.pod:1928
39067 #, no-wrap
39068 msgid ""
39069 " typedef void (*guestfs_event_callback) (\n"
39070 "                  guestfs_h *g,\n"
39071 "                  void *opaque,\n"
39072 "                  uint64_t event,\n"
39073 "                  int event_handle,\n"
39074 "                  int flags,\n"
39075 "                  const char *buf, size_t buf_len,\n"
39076 "                  const uint64_t *array, size_t array_len);\n"
39077 "\n"
39078 msgstr ""
39079
39080 #. type: textblock
39081 #: ../src/guestfs.pod:1937
39082 msgid ""
39083 "This is the type of the event callback function that you have to provide."
39084 msgstr ""
39085
39086 #. type: textblock
39087 #: ../src/guestfs.pod:1940
39088 msgid ""
39089 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39090 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39091 "handle, and C<flags> which in the current API you should ignore."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../src/guestfs.pod:1944
39096 msgid ""
39097 "The remaining parameters contain the event payload (if any).  Each event may "
39098 "contain a payload, which usually relates to the event class, but for future "
39099 "proofing your code should be written to handle any payload for any event "
39100 "class."
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../src/guestfs.pod:1949
39105 msgid ""
39106 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39107 "there is no message buffer).  Note that this message buffer can contain "
39108 "arbitrary 8 bit data, including NUL bytes."
39109 msgstr ""
39110
39111 #. type: textblock
39112 #: ../src/guestfs.pod:1953
39113 msgid ""
39114 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39115 "moment this is only used for progress messages."
39116 msgstr ""
39117
39118 #. type: =head3
39119 #: ../src/guestfs.pod:1956
39120 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:1958
39125 msgid ""
39126 "One motivation for the generic event API was to allow GUI programs to "
39127 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39128 "unconditionally to C<stderr>."
39129 msgstr ""
39130
39131 #. type: textblock
39132 #: ../src/guestfs.pod:1962
39133 msgid ""
39134 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39135 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39136 "messages are not events; you must capture error messages separately)."
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../src/guestfs.pod:1967
39141 msgid ""
39142 "Programs have to set up a callback to capture the classes of events of "
39143 "interest:"
39144 msgstr ""
39145
39146 #. type: verbatim
39147 #: ../src/guestfs.pod:1970
39148 #, no-wrap
39149 msgid ""
39150 " int eh =\n"
39151 "   guestfs_set_event_callback\n"
39152 "     (g, message_callback,\n"
39153 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39154 "      GUESTFS_EVENT_TRACE,\n"
39155 "      0, NULL) == -1)\n"
39156 " if (eh == -1) {\n"
39157 "   // handle error in the usual way\n"
39158 " }\n"
39159 "\n"
39160 msgstr ""
39161
39162 #. type: textblock
39163 #: ../src/guestfs.pod:1980
39164 msgid ""
39165 "The callback can then direct messages to the appropriate place.  In this "
39166 "example, messages are directed to syslog:"
39167 msgstr ""
39168
39169 #. type: verbatim
39170 #: ../src/guestfs.pod:1983
39171 #, no-wrap
39172 msgid ""
39173 " static void\n"
39174 " message_callback (\n"
39175 "         guestfs_h *g,\n"
39176 "         void *opaque,\n"
39177 "         uint64_t event,\n"
39178 "         int event_handle,\n"
39179 "         int flags,\n"
39180 "         const char *buf, size_t buf_len,\n"
39181 "         const uint64_t *array, size_t array_len)\n"
39182 " {\n"
39183 "   const int priority = LOG_USER|LOG_INFO;\n"
39184 "   if (buf_len > 0)\n"
39185 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39186 " }\n"
39187 "\n"
39188 msgstr ""
39189
39190 #. type: =head1
39191 #: ../src/guestfs.pod:1998
39192 msgid "CANCELLING LONG TRANSFERS"
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:2000
39197 msgid ""
39198 "Some operations can be cancelled by the caller while they are in progress.  "
39199 "Currently only operations that involve uploading or downloading data can be "
39200 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39201 "parameters in the generator)."
39202 msgstr ""
39203
39204 #. type: =head2
39205 #: ../src/guestfs.pod:2005
39206 msgid "guestfs_user_cancel"
39207 msgstr ""
39208
39209 #. type: verbatim
39210 #: ../src/guestfs.pod:2007
39211 #, no-wrap
39212 msgid ""
39213 " void guestfs_user_cancel (guestfs_h *g);\n"
39214 "\n"
39215 msgstr ""
39216
39217 #. type: textblock
39218 #: ../src/guestfs.pod:2009
39219 msgid ""
39220 "C<guestfs_user_cancel> cancels the current upload or download operation."
39221 msgstr ""
39222
39223 #. type: textblock
39224 #: ../src/guestfs.pod:2012
39225 msgid ""
39226 "Unlike most other libguestfs calls, this function is signal safe and thread "
39227 "safe.  You can call it from a signal handler or from another thread, without "
39228 "needing to do any locking."
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2016
39233 msgid ""
39234 "The transfer that was in progress (if there is one) will stop shortly "
39235 "afterwards, and will return an error.  The errno (see L</"
39236 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39237 "out if the operation was cancelled or failed because of another error."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:2022
39242 msgid ""
39243 "No cleanup is performed: for example, if a file was being uploaded then "
39244 "after cancellation there may be a partially uploaded file.  It is the "
39245 "caller's responsibility to clean up if necessary."
39246 msgstr ""
39247
39248 #. type: textblock
39249 #: ../src/guestfs.pod:2026
39250 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39251 msgstr ""
39252
39253 #. type: textblock
39254 #: ../src/guestfs.pod:2028
39255 msgid ""
39256 "In an interactive text-based program, you might call it from a C<SIGINT> "
39257 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39258 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39259 "receive the C<^C> signal)."
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../src/guestfs.pod:2033
39264 msgid ""
39265 "In a graphical program, when the main thread is displaying a progress bar "
39266 "with a cancel button, wire up the cancel button to call this function."
39267 msgstr ""
39268
39269 #. type: =head1
39270 #: ../src/guestfs.pod:2037
39271 msgid "PRIVATE DATA AREA"
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:2039
39276 msgid ""
39277 "You can attach named pieces of private data to the libguestfs handle, fetch "
39278 "them by name, and walk over them, for the lifetime of the handle.  This is "
39279 "called the private data area and is only available from the C API."
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2044
39284 msgid "To attach a named piece of data, use the following call:"
39285 msgstr ""
39286
39287 #. type: verbatim
39288 #: ../src/guestfs.pod:2046
39289 #, no-wrap
39290 msgid ""
39291 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39292 "\n"
39293 msgstr ""
39294 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39295 "\n"
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:2048
39299 msgid ""
39300 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39301 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39302 "overwritten."
39303 msgstr ""
39304
39305 #. type: textblock
39306 #: ../src/guestfs.pod:2052
39307 msgid ""
39308 "You can use any C<key> you want, but your key should I<not> start with an "
39309 "underscore character.  Keys beginning with an underscore character are "
39310 "reserved for internal libguestfs purposes (eg. for implementing language "
39311 "bindings).  It is recommended that you prefix the key with some unique "
39312 "string to avoid collisions with other users."
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:2058
39317 msgid "To retrieve the pointer, use:"
39318 msgstr ""
39319
39320 #. type: verbatim
39321 #: ../src/guestfs.pod:2060
39322 #, no-wrap
39323 msgid ""
39324 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39325 "\n"
39326 msgstr ""
39327 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39328 "\n"
39329
39330 #. type: textblock
39331 #: ../src/guestfs.pod:2062
39332 msgid ""
39333 "This function returns C<NULL> if either no data is found associated with "
39334 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39335 "C<NULL>."
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:2066
39340 msgid ""
39341 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39342 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39343 "all.  In particular, libguestfs does I<not> try to free the data when the "
39344 "handle is closed.  If the data must be freed, then the caller must either "
39345 "free it before calling L</guestfs_close> or must set up a close callback to "
39346 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../src/guestfs.pod:2073
39351 msgid "To walk over all entries, use these two functions:"
39352 msgstr ""
39353
39354 #. type: verbatim
39355 #: ../src/guestfs.pod:2075
39356 #, no-wrap
39357 msgid ""
39358 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39359 "\n"
39360 msgstr ""
39361
39362 #. type: verbatim
39363 #: ../src/guestfs.pod:2077
39364 #, no-wrap
39365 msgid ""
39366 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39367 "\n"
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:2079
39372 msgid ""
39373 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39374 "not have any particular meaning -- keys are not returned in any defined "
39375 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39376 "corresponding data pointer is returned from the function.  C<NULL> is "
39377 "returned if there are no keys stored in the handle."
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../src/guestfs.pod:2085
39382 msgid ""
39383 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39384 "value of this function is also C<NULL> is there are no further entries to "
39385 "return."
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2089
39390 msgid "Notes about walking over entries:"
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../src/guestfs.pod:2095
39395 msgid ""
39396 "You must not call C<guestfs_set_private> while walking over the entries."
39397 msgstr ""
39398
39399 #. type: textblock
39400 #: ../src/guestfs.pod:2100
39401 msgid ""
39402 "The handle maintains an internal iterator which is reset when you call "
39403 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39404 "call C<guestfs_set_private>."
39405 msgstr ""
39406
39407 #. type: textblock
39408 #: ../src/guestfs.pod:2106
39409 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39410 msgstr ""
39411
39412 #. type: verbatim
39413 #: ../src/guestfs.pod:2108
39414 #, no-wrap
39415 msgid ""
39416 " guestfs_set_private (g, key, NULL);\n"
39417 "\n"
39418 msgstr ""
39419
39420 #. type: textblock
39421 #: ../src/guestfs.pod:2110
39422 msgid "then that C<key> is not returned when walking."
39423 msgstr ""
39424
39425 #. type: textblock
39426 #: ../src/guestfs.pod:2114
39427 msgid ""
39428 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39429 "C<guestfs_next_private> or C<guestfs_set_private>."
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../src/guestfs.pod:2120
39434 msgid ""
39435 "The following example code shows how to print all keys and data pointers "
39436 "that are associated with the handle C<g>:"
39437 msgstr ""
39438
39439 #. type: verbatim
39440 #: ../src/guestfs.pod:2123
39441 #, no-wrap
39442 msgid ""
39443 " const char *key;\n"
39444 " void *data = guestfs_first_private (g, &key);\n"
39445 " while (data != NULL)\n"
39446 "   {\n"
39447 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39448 "     data = guestfs_next_private (g, &key);\n"
39449 "   }\n"
39450 "\n"
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:2131
39455 msgid ""
39456 "More commonly you are only interested in keys that begin with an application-"
39457 "specific prefix C<foo_>.  Modify the loop like so:"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../src/guestfs.pod:2134
39462 #, no-wrap
39463 msgid ""
39464 " const char *key;\n"
39465 " void *data = guestfs_first_private (g, &key);\n"
39466 " while (data != NULL)\n"
39467 "   {\n"
39468 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39469 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39470 "     data = guestfs_next_private (g, &key);\n"
39471 "   }\n"
39472 "\n"
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../src/guestfs.pod:2143
39477 msgid ""
39478 "If you need to modify keys while walking, then you have to jump back to the "
39479 "beginning of the loop.  For example, to delete all keys prefixed with "
39480 "C<foo_>:"
39481 msgstr ""
39482
39483 #. type: verbatim
39484 #: ../src/guestfs.pod:2147
39485 #, no-wrap
39486 msgid ""
39487 "  const char *key;\n"
39488 "  void *data;\n"
39489 " again:\n"
39490 "  data = guestfs_first_private (g, &key);\n"
39491 "  while (data != NULL)\n"
39492 "    {\n"
39493 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39494 "        {\n"
39495 "          guestfs_set_private (g, key, NULL);\n"
39496 "          /* note that 'key' pointer is now invalid, and so is\n"
39497 "             the internal iterator */\n"
39498 "          goto again;\n"
39499 "        }\n"
39500 "      data = guestfs_next_private (g, &key);\n"
39501 "    }\n"
39502 "\n"
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:2163
39507 msgid ""
39508 "Note that the above loop is guaranteed to terminate because the keys are "
39509 "being deleted, but other manipulations of keys within the loop might not "
39510 "terminate unless you also maintain an indication of which keys have been "
39511 "visited."
39512 msgstr ""
39513
39514 #. type: =head1
39515 #: ../src/guestfs.pod:2168
39516 #, fuzzy
39517 #| msgid "FILESYSTEM TYPE"
39518 msgid "SYSTEMTAP"
39519 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39520
39521 #. type: textblock
39522 #: ../src/guestfs.pod:2170
39523 msgid ""
39524 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39525 "true of any library, not just libguestfs.  However libguestfs also contains "
39526 "static markers to help in probing internal operations."
39527 msgstr ""
39528
39529 #. type: textblock
39530 #: ../src/guestfs.pod:2174
39531 msgid "You can list all the static markers by doing:"
39532 msgstr ""
39533
39534 #. type: verbatim
39535 #: ../src/guestfs.pod:2176
39536 #, no-wrap
39537 msgid ""
39538 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39539 "              .provider(\"guestfs\").mark(\"*\")'\n"
39540 "\n"
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2179
39545 msgid ""
39546 "B<Note:> These static markers are I<not> part of the stable API and may "
39547 "change in future versions."
39548 msgstr ""
39549
39550 #. type: =head2
39551 #: ../src/guestfs.pod:2182
39552 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39553 msgstr ""
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:2184
39557 msgid ""
39558 "This script contains examples of displaying both the static markers and some "
39559 "ordinary C entry points:"
39560 msgstr ""
39561
39562 #. type: verbatim
39563 #: ../src/guestfs.pod:2187
39564 #, no-wrap
39565 msgid ""
39566 " global last;\n"
39567 " \n"
39568 msgstr ""
39569
39570 #. type: verbatim
39571 #: ../src/guestfs.pod:2189
39572 #, no-wrap
39573 msgid ""
39574 " function display_time () {\n"
39575 "       now = gettimeofday_us ();\n"
39576 "       delta = 0;\n"
39577 "       if (last > 0)\n"
39578 "             delta = now - last;\n"
39579 "       last = now;\n"
39580 " \n"
39581 msgstr ""
39582
39583 #. type: verbatim
39584 #: ../src/guestfs.pod:2196
39585 #, no-wrap
39586 msgid ""
39587 "       printf (\"%d (+%d):\", now, delta);\n"
39588 " }\n"
39589 " \n"
39590 msgstr ""
39591
39592 #. type: verbatim
39593 #: ../src/guestfs.pod:2199
39594 #, no-wrap
39595 msgid ""
39596 " probe begin {\n"
39597 "       last = 0;\n"
39598 "       printf (\"ready\\n\");\n"
39599 " }\n"
39600 " \n"
39601 msgstr ""
39602
39603 #. type: verbatim
39604 #: ../src/guestfs.pod:2204
39605 #, no-wrap
39606 msgid ""
39607 " /* Display all calls to static markers. */\n"
39608 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39609 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39610 "       display_time();\n"
39611 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39612 " }\n"
39613 " \n"
39614 msgstr ""
39615
39616 #. type: verbatim
39617 #: ../src/guestfs.pod:2211
39618 #, no-wrap
39619 msgid ""
39620 " /* Display all calls to guestfs_mkfs* functions. */\n"
39621 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39622 "           .function(\"guestfs_mkfs*\") ? {\n"
39623 "       display_time();\n"
39624 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39625 " }\n"
39626 "\n"
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:2218
39631 msgid ""
39632 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39633 "program.  Note that you either have to be root, or you have to add yourself "
39634 "to several special stap groups.  Consult the systemtap documentation for "
39635 "more information."
39636 msgstr ""
39637
39638 #. type: verbatim
39639 #: ../src/guestfs.pod:2223
39640 #, no-wrap
39641 msgid ""
39642 " # stap /tmp/test.stap\n"
39643 " ready\n"
39644 "\n"
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:2226
39649 msgid "In another terminal, run a guestfish command such as this:"
39650 msgstr ""
39651
39652 #. type: textblock
39653 #: ../src/guestfs.pod:2230
39654 msgid "In the first terminal, stap trace output similar to this is shown:"
39655 msgstr ""
39656
39657 #. type: verbatim
39658 #: ../src/guestfs.pod:2232
39659 #, no-wrap
39660 msgid ""
39661 " 1318248056692655 (+0):\tlaunch_start\n"
39662 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39663 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39664 " 1318248056838059 (+19774):     launch_run_qemu\n"
39665 " 1318248061071167 (+4233108):   launch_end\n"
39666 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39667 "\n"
39668 msgstr ""
39669
39670 #. type: =end
39671 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
39672 msgid "html"
39673 msgstr "html"
39674
39675 #. type: textblock
39676 #: ../src/guestfs.pod:2241
39677 msgid ""
39678 "<!-- old anchor for the next section --> <a name="
39679 "\"state_machine_and_low_level_event_api\"/>"
39680 msgstr ""
39681 "<!-- old anchor for the next section --> <a name="
39682 "\"state_machine_and_low_level_event_api\"/>"
39683
39684 #. type: =head1
39685 #: ../src/guestfs.pod:2246
39686 msgid "ARCHITECTURE"
39687 msgstr "АРХІТЕКТУРА"
39688
39689 #. type: textblock
39690 #: ../src/guestfs.pod:2248
39691 msgid ""
39692 "Internally, libguestfs is implemented by running an appliance (a special "
39693 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39694 "process of the main program."
39695 msgstr ""
39696
39697 #. type: verbatim
39698 #: ../src/guestfs.pod:2252
39699 #, no-wrap
39700 msgid ""
39701 "  ___________________\n"
39702 " /                   \\\n"
39703 " | main program      |\n"
39704 " |                   |\n"
39705 " |                   |           child process / appliance\n"
39706 " |                   |           __________________________\n"
39707 " |                   |          / qemu                     \\\n"
39708 " +-------------------+   RPC    |      +-----------------+ |\n"
39709 " | libguestfs     <--------------------> guestfsd        | |\n"
39710 " |                   |          |      +-----------------+ |\n"
39711 " \\___________________/          |      | Linux kernel    | |\n"
39712 "                                |      +--^--------------+ |\n"
39713 "                                \\_________|________________/\n"
39714 "                                          |\n"
39715 "                                   _______v______\n"
39716 "                                  /              \\\n"
39717 "                                  | Device or    |\n"
39718 "                                  | disk image   |\n"
39719 "                                  \\______________/\n"
39720 "\n"
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:2272
39725 msgid ""
39726 "The library, linked to the main program, creates the child process and hence "
39727 "the appliance in the L</guestfs_launch> function."
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../src/guestfs.pod:2275
39732 msgid ""
39733 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39734 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39735 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39736 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39737 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39738 "attached to the qemu process which translates device access by the "
39739 "appliance's Linux kernel into accesses to the image."
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:2284
39744 msgid ""
39745 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39746 "Although the disk image you are attached to might also be used by some "
39747 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39748 "care if both libguestfs's qemu process and your virtual machine are trying "
39749 "to update the disk image at the same time, since these usually results in "
39750 "massive disk corruption)."
39751 msgstr ""
39752
39753 #. type: =head1
39754 #: ../src/guestfs.pod:2291
39755 msgid "STATE MACHINE"
39756 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39757
39758 #. type: textblock
39759 #: ../src/guestfs.pod:2293
39760 msgid "libguestfs uses a state machine to model the child process:"
39761 msgstr ""
39762
39763 #. type: verbatim
39764 #: ../src/guestfs.pod:2295
39765 #, no-wrap
39766 msgid ""
39767 "                         |\n"
39768 "                    guestfs_create\n"
39769 "                         |\n"
39770 "                         |\n"
39771 "                     ____V_____\n"
39772 "                    /          \\\n"
39773 "                    |  CONFIG  |\n"
39774 "                    \\__________/\n"
39775 "                     ^ ^   ^  \\\n"
39776 "                    /  |    \\  \\ guestfs_launch\n"
39777 "                   /   |    _\\__V______\n"
39778 "                  /    |   /           \\\n"
39779 "                 /     |   | LAUNCHING |\n"
39780 "                /      |   \\___________/\n"
39781 "               /       |       /\n"
39782 "              /        |  guestfs_launch\n"
39783 "             /         |     /\n"
39784 "    ______  /        __|____V\n"
39785 "   /      \\ ------> /        \\\n"
39786 "   | BUSY |         | READY  |\n"
39787 "   \\______/ <------ \\________/\n"
39788 "\n"
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:2317
39793 msgid ""
39794 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39795 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39796 "(3) alternating between READY and BUSY as commands are issued to, and "
39797 "carried out by, the child process."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:2322
39802 msgid ""
39803 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39804 "asynchronously at any time (eg. due to some internal error), and that causes "
39805 "the state to transition back to CONFIG."
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../src/guestfs.pod:2326
39810 msgid ""
39811 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39812 "issued when in the CONFIG state."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../src/guestfs.pod:2329
39817 msgid ""
39818 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39819 "L</guestfs_launch> blocks until the child process is READY to accept "
39820 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39821 "moves the state from CONFIG to LAUNCHING while it is running."
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:2335
39826 msgid ""
39827 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39828 "state.  These API calls block waiting for the command to be carried out (ie. "
39829 "the state to transition to BUSY and then back to READY).  There are no non-"
39830 "blocking versions, and no way to issue more than one command per handle at "
39831 "the same time."
39832 msgstr ""
39833
39834 #. type: textblock
39835 #: ../src/guestfs.pod:2341
39836 msgid ""
39837 "Finally, the child process sends asynchronous messages back to the main "
39838 "program, such as kernel log messages.  You can register a callback to "
39839 "receive these messages."
39840 msgstr ""
39841
39842 #. type: =head1
39843 #: ../src/guestfs.pod:2345
39844 msgid "INTERNALS"
39845 msgstr ""
39846
39847 #. type: =head2
39848 #: ../src/guestfs.pod:2347
39849 msgid "APPLIANCE BOOT PROCESS"
39850 msgstr ""
39851
39852 #. type: textblock
39853 #: ../src/guestfs.pod:2349
39854 msgid ""
39855 "This process has evolved and continues to evolve.  The description here "
39856 "corresponds only to the current version of libguestfs and is provided for "
39857 "information only."
39858 msgstr ""
39859
39860 #. type: textblock
39861 #: ../src/guestfs.pod:2353
39862 msgid ""
39863 "In order to follow the stages involved below, enable libguestfs debugging "
39864 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39865 msgstr ""
39866
39867 #. type: =item
39868 #: ../src/guestfs.pod:2358
39869 #, fuzzy
39870 #| msgid "C<appliance>"
39871 msgid "Create the appliance"
39872 msgstr "C<appliance>"
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:2360
39876 msgid ""
39877 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39878 "initrd and the appliance."
39879 msgstr ""
39880
39881 #. type: textblock
39882 #: ../src/guestfs.pod:2363
39883 msgid ""
39884 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39885 "directory if C<TMPDIR> is set)."
39886 msgstr ""
39887
39888 #. type: textblock
39889 #: ../src/guestfs.pod:2366
39890 msgid ""
39891 "For a complete description of how the appliance is created and cached, read "
39892 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../src/guestfs.pod:2370
39897 msgid "Start qemu and boot the kernel"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2372
39902 msgid "qemu is invoked to boot the kernel."
39903 msgstr ""
39904
39905 #. type: =item
39906 #: ../src/guestfs.pod:2374
39907 msgid "Run the initrd"
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2376
39912 msgid ""
39913 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39914 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39915 "order that the appliance itself can be mounted and started."
39916 msgstr ""
39917
39918 #. type: textblock
39919 #: ../src/guestfs.pod:2380
39920 msgid ""
39921 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39922 "initrd>."
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:2383
39927 msgid ""
39928 "When the initrd has started you will see messages showing that kernel "
39929 "modules are being loaded, similar to this:"
39930 msgstr ""
39931
39932 #. type: verbatim
39933 #: ../src/guestfs.pod:2386
39934 #, no-wrap
39935 msgid ""
39936 " febootstrap: ext2 mini initrd starting up\n"
39937 " febootstrap: mounting /sys\n"
39938 " febootstrap: internal insmod libcrc32c.ko\n"
39939 " febootstrap: internal insmod crc32c-intel.ko\n"
39940 "\n"
39941 msgstr ""
39942
39943 #. type: =item
39944 #: ../src/guestfs.pod:2391
39945 msgid "Find and mount the appliance device"
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../src/guestfs.pod:2393
39950 msgid ""
39951 "The appliance is a sparse file containing an ext2 filesystem which contains "
39952 "a familiar (although reduced in size) Linux operating system.  It would "
39953 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39954 msgstr ""
39955
39956 #. type: textblock
39957 #: ../src/guestfs.pod:2397
39958 msgid ""
39959 "The regular disks being inspected by libguestfs are the first devices "
39960 "exposed by qemu (eg. as C</dev/vda>)."
39961 msgstr ""
39962
39963 #. type: textblock
39964 #: ../src/guestfs.pod:2400
39965 msgid ""
39966 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39967 "there was only one regular disk)."
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:2403
39972 msgid ""
39973 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39974 "and switch root into the appliance, and run C</init> from the appliance."
39975 msgstr ""
39976
39977 #. type: textblock
39978 #: ../src/guestfs.pod:2407
39979 msgid "If this works successfully you will see messages such as:"
39980 msgstr ""
39981
39982 #. type: verbatim
39983 #: ../src/guestfs.pod:2409
39984 #, no-wrap
39985 msgid ""
39986 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39987 " febootstrap: creating /dev/root as block special 252:16\n"
39988 " febootstrap: mounting new root on /root\n"
39989 " febootstrap: chroot\n"
39990 " Starting /init script ...\n"
39991 "\n"
39992 msgstr ""
39993
39994 #. type: textblock
39995 #: ../src/guestfs.pod:2415
39996 msgid ""
39997 "Note that C<Starting /init script ...> indicates that the appliance's init "
39998 "script is now running."
39999 msgstr ""
40000
40001 #. type: =item
40002 #: ../src/guestfs.pod:2418
40003 msgid "Initialize the appliance"
40004 msgstr ""
40005
40006 #. type: textblock
40007 #: ../src/guestfs.pod:2420
40008 msgid ""
40009 "The appliance itself now initializes itself.  This involves starting certain "
40010 "processes like C<udev>, possibly printing some debug information, and "
40011 "finally running the daemon (C<guestfsd>)."
40012 msgstr ""
40013
40014 #. type: =item
40015 #: ../src/guestfs.pod:2424
40016 #, fuzzy
40017 #| msgid "C<daemon>"
40018 msgid "The daemon"
40019 msgstr "C<daemon>"
40020
40021 #. type: textblock
40022 #: ../src/guestfs.pod:2426
40023 msgid ""
40024 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40025 "should see:"
40026 msgstr ""
40027
40028 #. type: verbatim
40029 #: ../src/guestfs.pod:2429
40030 #, fuzzy, no-wrap
40031 #| msgid ""
40032 #| " set-verbose true|false\n"
40033 #| "\n"
40034 msgid ""
40035 " verbose daemon enabled\n"
40036 "\n"
40037 msgstr ""
40038 " set-verbose true|false\n"
40039 "\n"
40040
40041 #. type: textblock
40042 #: ../src/guestfs.pod:2431
40043 msgid ""
40044 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40045 "connected on the other end to the library."
40046 msgstr ""
40047
40048 #. type: textblock
40049 #: ../src/guestfs.pod:2434
40050 msgid ""
40051 "The daemon connects to this port (and hence to the library) and sends a four "
40052 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40053 "protocol (see below)."
40054 msgstr ""
40055
40056 #. type: =head2
40057 #: ../src/guestfs.pod:2440
40058 msgid "COMMUNICATION PROTOCOL"
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../src/guestfs.pod:2442
40063 msgid ""
40064 "Don't rely on using this protocol directly.  This section documents how it "
40065 "currently works, but it may change at any time."
40066 msgstr ""
40067
40068 #. type: textblock
40069 #: ../src/guestfs.pod:2445
40070 msgid ""
40071 "The protocol used to talk between the library and the daemon running inside "
40072 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40073 "1014, RFC 1832, RFC 4506)."
40074 msgstr ""
40075
40076 #. type: textblock
40077 #: ../src/guestfs.pod:2449
40078 msgid ""
40079 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40080 "this file is automatically generated)."
40081 msgstr ""
40082
40083 #. type: textblock
40084 #: ../src/guestfs.pod:2452
40085 msgid ""
40086 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40087 "and C<FileOut> parameters, which are handled with very simple request/reply "
40088 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40089 "parameters, which use the same request and reply messages, but they may also "
40090 "be followed by files sent using a chunked encoding."
40091 msgstr ""
40092
40093 #. type: =head3
40094 #: ../src/guestfs.pod:2459
40095 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40096 msgstr ""
40097
40098 #. type: textblock
40099 #: ../src/guestfs.pod:2461
40100 msgid "For ordinary functions, the request message is:"
40101 msgstr ""
40102
40103 #. type: verbatim
40104 #: ../src/guestfs.pod:2463
40105 #, no-wrap
40106 msgid ""
40107 " total length (header + arguments,\n"
40108 "      but not including the length word itself)\n"
40109 " struct guestfs_message_header (encoded as XDR)\n"
40110 " struct guestfs_<foo>_args (encoded as XDR)\n"
40111 "\n"
40112 msgstr ""
40113
40114 #. type: textblock
40115 #: ../src/guestfs.pod:2468
40116 msgid ""
40117 "The total length field allows the daemon to allocate a fixed size buffer "
40118 "into which it slurps the rest of the message.  As a result, the total length "
40119 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40120 "effective size of any request is limited to somewhere under this size."
40121 msgstr ""
40122
40123 #. type: textblock
40124 #: ../src/guestfs.pod:2474
40125 msgid ""
40126 "Note also that many functions don't take any arguments, in which case the "
40127 "C<guestfs_I<foo>_args> is completely omitted."
40128 msgstr ""
40129
40130 #. type: textblock
40131 #: ../src/guestfs.pod:2477
40132 msgid ""
40133 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40134 "receiver knows what type of args structure to expect, or none at all."
40135 msgstr ""
40136
40137 #. type: textblock
40138 #: ../src/guestfs.pod:2481
40139 msgid ""
40140 "For functions that take optional arguments, the optional arguments are "
40141 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40142 "arguments.  A bitmask in the header indicates which optional arguments are "
40143 "meaningful.  The bitmask is also checked to see if it contains bits set "
40144 "which the daemon does not know about (eg. if more optional arguments were "
40145 "added in a later version of the library), and this causes the call to be "
40146 "rejected."
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../src/guestfs.pod:2489
40151 msgid "The reply message for ordinary functions is:"
40152 msgstr ""
40153
40154 #. type: verbatim
40155 #: ../src/guestfs.pod:2491
40156 #, no-wrap
40157 msgid ""
40158 " total length (header + ret,\n"
40159 "      but not including the length word itself)\n"
40160 " struct guestfs_message_header (encoded as XDR)\n"
40161 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40162 "\n"
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:2496
40167 msgid ""
40168 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40169 "functions that return no formal return values."
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../src/guestfs.pod:2499
40174 msgid ""
40175 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40176 msgstr ""
40177
40178 #. type: textblock
40179 #: ../src/guestfs.pod:2502
40180 msgid ""
40181 "In the case of an error, a flag is set in the header, and the reply message "
40182 "is slightly changed:"
40183 msgstr ""
40184
40185 #. type: verbatim
40186 #: ../src/guestfs.pod:2505
40187 #, no-wrap
40188 msgid ""
40189 " total length (header + error,\n"
40190 "      but not including the length word itself)\n"
40191 " struct guestfs_message_header (encoded as XDR)\n"
40192 " struct guestfs_message_error (encoded as XDR)\n"
40193 "\n"
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:2510
40198 msgid ""
40199 "The C<guestfs_message_error> structure contains the error message as a "
40200 "string."
40201 msgstr ""
40202
40203 #. type: =head3
40204 #: ../src/guestfs.pod:2513
40205 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:2515
40210 msgid ""
40211 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40212 "The normal request message is sent (see above).  However this is followed by "
40213 "a sequence of file chunks."
40214 msgstr ""
40215
40216 #. type: verbatim
40217 #: ../src/guestfs.pod:2519
40218 #, no-wrap
40219 msgid ""
40220 " total length (header + arguments,\n"
40221 "      but not including the length word itself,\n"
40222 "      and not including the chunks)\n"
40223 " struct guestfs_message_header (encoded as XDR)\n"
40224 " struct guestfs_<foo>_args (encoded as XDR)\n"
40225 " sequence of chunks for FileIn param #0\n"
40226 " sequence of chunks for FileIn param #1 etc.\n"
40227 "\n"
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2527
40232 msgid "The \"sequence of chunks\" is:"
40233 msgstr ""
40234
40235 #. type: verbatim
40236 #: ../src/guestfs.pod:2529
40237 #, no-wrap
40238 msgid ""
40239 " length of chunk (not including length word itself)\n"
40240 " struct guestfs_chunk (encoded as XDR)\n"
40241 " length of chunk\n"
40242 " struct guestfs_chunk (encoded as XDR)\n"
40243 "   ...\n"
40244 " length of chunk\n"
40245 " struct guestfs_chunk (with data.data_len == 0)\n"
40246 "\n"
40247 msgstr ""
40248
40249 #. type: textblock
40250 #: ../src/guestfs.pod:2537
40251 msgid ""
40252 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40253 "is set in the final chunk to indicate either successful completion or early "
40254 "cancellation."
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:2541
40259 msgid ""
40260 "At time of writing there are no functions that have more than one FileIn "
40261 "parameter.  However this is (theoretically) supported, by sending the "
40262 "sequence of chunks for each FileIn parameter one after another (from left to "
40263 "right)."
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2546
40268 msgid ""
40269 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40270 "transfer.  The library does this by sending a chunk with a special flag set "
40271 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40272 "RPC, does I<not> send any reply, and goes back to reading the next request."
40273 msgstr ""
40274
40275 #. type: textblock
40276 #: ../src/guestfs.pod:2552
40277 msgid ""
40278 "The daemon may also cancel.  It does this by writing a special word "
40279 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40280 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40281 "cancel chunk).  The special word is chosen so that even if cancellation "
40282 "happens right at the end of the transfer (after the library has finished "
40283 "writing and has started listening for the reply), the \"spurious\" cancel "
40284 "flag will not be confused with the reply message."
40285 msgstr ""
40286
40287 #. type: textblock
40288 #: ../src/guestfs.pod:2561
40289 msgid ""
40290 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40291 "limit), and also files where the size is not known in advance (eg. from "
40292 "pipes or sockets).  However the chunks are rather small "
40293 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40294 "to keep much in memory."
40295 msgstr ""
40296
40297 #. type: =head3
40298 #: ../src/guestfs.pod:2567
40299 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40300 msgstr ""
40301
40302 #. type: textblock
40303 #: ../src/guestfs.pod:2569
40304 msgid ""
40305 "The protocol for FileOut parameters is exactly the same as for FileIn "
40306 "parameters, but with the roles of daemon and library reversed."
40307 msgstr ""
40308
40309 #. type: verbatim
40310 #: ../src/guestfs.pod:2572
40311 #, no-wrap
40312 msgid ""
40313 " total length (header + ret,\n"
40314 "      but not including the length word itself,\n"
40315 "      and not including the chunks)\n"
40316 " struct guestfs_message_header (encoded as XDR)\n"
40317 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40318 " sequence of chunks for FileOut param #0\n"
40319 " sequence of chunks for FileOut param #1 etc.\n"
40320 "\n"
40321 msgstr ""
40322
40323 #. type: =head3
40324 #: ../src/guestfs.pod:2580
40325 msgid "INITIAL MESSAGE"
40326 msgstr ""
40327
40328 #. type: textblock
40329 #: ../src/guestfs.pod:2582
40330 msgid ""
40331 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40332 "which indicates that the guest and daemon is alive.  This is what L</"
40333 "guestfs_launch> waits for."
40334 msgstr ""
40335
40336 #. type: =head3
40337 #: ../src/guestfs.pod:2586
40338 msgid "PROGRESS NOTIFICATION MESSAGES"
40339 msgstr ""
40340
40341 #. type: textblock
40342 #: ../src/guestfs.pod:2588
40343 msgid ""
40344 "The daemon may send progress notification messages at any time.  These are "
40345 "distinguished by the normal length word being replaced by "
40346 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../src/guestfs.pod:2592
40351 msgid ""
40352 "The library turns them into progress callbacks (see L</"
40353 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40354 "if not."
40355 msgstr ""
40356
40357 #. type: textblock
40358 #: ../src/guestfs.pod:2596
40359 msgid ""
40360 "The daemon self-limits the frequency of progress messages it sends (see "
40361 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40362 "messages."
40363 msgstr ""
40364
40365 #. type: =head1
40366 #: ../src/guestfs.pod:2600
40367 msgid "LIBGUESTFS VERSION NUMBERS"
40368 msgstr ""
40369
40370 #. type: textblock
40371 #: ../src/guestfs.pod:2602
40372 msgid ""
40373 "Since April 2010, libguestfs has started to make separate development and "
40374 "stable releases, along with corresponding branches in our git repository.  "
40375 "These separate releases can be identified by version number:"
40376 msgstr ""
40377
40378 #. type: verbatim
40379 #: ../src/guestfs.pod:2607
40380 #, no-wrap
40381 msgid ""
40382 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40383 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40384 "       |\n"
40385 "       v\n"
40386 " 1  .  3  .  5\n"
40387 " ^           ^\n"
40388 " |           |\n"
40389 " |           `-------- sub-version\n"
40390 " |\n"
40391 " `------ always '1' because we don't change the ABI\n"
40392 "\n"
40393 msgstr ""
40394
40395 #. type: textblock
40396 #: ../src/guestfs.pod:2618
40397 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40398 msgstr ""
40399
40400 #. type: textblock
40401 #: ../src/guestfs.pod:2620
40402 msgid ""
40403 "As time passes we cherry pick fixes from the development branch and backport "
40404 "those into the stable branch, the effect being that the stable branch should "
40405 "get more stable and less buggy over time.  So the stable releases are ideal "
40406 "for people who don't need new features but would just like the software to "
40407 "work."
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:2626
40412 msgid "Our criteria for backporting changes are:"
40413 msgstr ""
40414
40415 #. type: textblock
40416 #: ../src/guestfs.pod:2632
40417 msgid ""
40418 "Documentation changes which don't affect any code are backported unless the "
40419 "documentation refers to a future feature which is not in stable."
40420 msgstr ""
40421
40422 #. type: textblock
40423 #: ../src/guestfs.pod:2638
40424 msgid ""
40425 "Bug fixes which are not controversial, fix obvious problems, and have been "
40426 "well tested are backported."
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../src/guestfs.pod:2643
40431 msgid ""
40432 "Simple rearrangements of code which shouldn't affect how it works get "
40433 "backported.  This is so that the code in the two branches doesn't get too "
40434 "far out of step, allowing us to backport future fixes more easily."
40435 msgstr ""
40436
40437 #. type: textblock
40438 #: ../src/guestfs.pod:2649
40439 msgid ""
40440 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40441 "exceptional case: the new feature is required in order to implement an "
40442 "important bug fix."
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../src/guestfs.pod:2655
40447 msgid ""
40448 "A new stable branch starts when we think the new features in development are "
40449 "substantial and compelling enough over the current stable branch to warrant "
40450 "it.  When that happens we create new stable and development versions 1.N.0 "
40451 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40452 "stable at this point, but by backporting fixes from development, that branch "
40453 "will stabilize over time."
40454 msgstr ""
40455
40456 #. type: =head1
40457 #: ../src/guestfs.pod:2663
40458 msgid "EXTENDING LIBGUESTFS"
40459 msgstr ""
40460
40461 #. type: =head2
40462 #: ../src/guestfs.pod:2665
40463 msgid "ADDING A NEW API ACTION"
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:2667
40468 msgid ""
40469 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40470 "documentation) are generated, and this makes it easy to extend the "
40471 "libguestfs API."
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../src/guestfs.pod:2671
40476 msgid "To add a new API action there are two changes:"
40477 msgstr ""
40478
40479 #. type: textblock
40480 #: ../src/guestfs.pod:2677
40481 msgid ""
40482 "You need to add a description of the call (name, parameters, return type, "
40483 "tests, documentation) to C<generator/generator_actions.ml>."
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:2680
40488 msgid ""
40489 "There are two sorts of API action, depending on whether the call goes "
40490 "through to the daemon in the appliance, or is serviced entirely by the "
40491 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40492 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40493 "an example of the latter, since a trace flag is maintained in the handle and "
40494 "all tracing is done on the library side."
40495 msgstr ""
40496
40497 #. type: textblock
40498 #: ../src/guestfs.pod:2688
40499 msgid ""
40500 "Most new actions are of the first type, and get added to the "
40501 "C<daemon_functions> list.  Each function has a unique procedure number used "
40502 "in the RPC protocol which is assigned to that action when we publish "
40503 "libguestfs and cannot be reused.  Take the latest procedure number and "
40504 "increment it."
40505 msgstr ""
40506
40507 #. type: textblock
40508 #: ../src/guestfs.pod:2694
40509 msgid ""
40510 "For library-only actions of the second type, add to the "
40511 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40512 "library and do not travel over the RPC mechanism to the daemon, these "
40513 "functions do not need a procedure number, and so the procedure number is set "
40514 "to C<-1>."
40515 msgstr ""
40516
40517 #. type: textblock
40518 #: ../src/guestfs.pod:2702
40519 msgid "Implement the action (in C):"
40520 msgstr ""
40521
40522 #. type: textblock
40523 #: ../src/guestfs.pod:2704
40524 msgid ""
40525 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40526 "C<daemon/> directory."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:2707
40531 msgid ""
40532 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40533 "(note: double underscore) in the C<src/> directory."
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../src/guestfs.pod:2710
40538 msgid "In either case, use another function as an example of what to do."
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:2714
40543 msgid "After making these changes, use C<make> to compile."
40544 msgstr ""
40545
40546 #. type: textblock
40547 #: ../src/guestfs.pod:2716
40548 msgid ""
40549 "Note that you don't need to implement the RPC, language bindings, manual "
40550 "pages or anything else.  It's all automatically generated from the OCaml "
40551 "description."
40552 msgstr ""
40553
40554 #. type: =head2
40555 #: ../src/guestfs.pod:2720
40556 msgid "ADDING TESTS FOR AN API ACTION"
40557 msgstr ""
40558
40559 #. type: textblock
40560 #: ../src/guestfs.pod:2722
40561 msgid ""
40562 "You can supply zero or as many tests as you want per API call.  The tests "
40563 "can either be added as part of the API description (C<generator/"
40564 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40565 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40566 "slower, so if possible use the first method."
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../src/guestfs.pod:2728
40571 msgid ""
40572 "The following describes the test environment used when you add an API test "
40573 "in C<generator_actions.ml>."
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../src/guestfs.pod:2731
40578 msgid "The test environment has 4 block devices:"
40579 msgstr ""
40580
40581 #. type: =item
40582 #: ../src/guestfs.pod:2735
40583 msgid "C</dev/sda> 500MB"
40584 msgstr "C</dev/sda> 500 МБ"
40585
40586 #. type: textblock
40587 #: ../src/guestfs.pod:2737
40588 msgid "General block device for testing."
40589 msgstr ""
40590
40591 #. type: =item
40592 #: ../src/guestfs.pod:2739
40593 msgid "C</dev/sdb> 50MB"
40594 msgstr "C</dev/sdb> 50 МБ"
40595
40596 #. type: textblock
40597 #: ../src/guestfs.pod:2741
40598 msgid ""
40599 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40600 "operations."
40601 msgstr ""
40602
40603 #. type: =item
40604 #: ../src/guestfs.pod:2744
40605 msgid "C</dev/sdc> 10MB"
40606 msgstr "C</dev/sdc> 10 МБ"
40607
40608 #. type: textblock
40609 #: ../src/guestfs.pod:2746
40610 msgid "Used in a few tests where two block devices are needed."
40611 msgstr ""
40612
40613 #. type: =item
40614 #: ../src/guestfs.pod:2748
40615 msgid "C</dev/sdd>"
40616 msgstr "C</dev/sdd>"
40617
40618 #. type: textblock
40619 #: ../src/guestfs.pod:2750
40620 msgid "ISO with fixed content (see C<images/test.iso>)."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../src/guestfs.pod:2754
40625 msgid ""
40626 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40627 "appliance and block devices are reused between tests.  So don't try testing "
40628 "L</guestfs_kill_subprocess> :-x"
40629 msgstr ""
40630
40631 #. type: textblock
40632 #: ../src/guestfs.pod:2758
40633 msgid ""
40634 "Each test starts with an initial scenario, selected using one of the "
40635 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40636 "initialize the disks mentioned above in a particular way as documented in "
40637 "C<generator_types.ml>.  You should not assume anything about the previous "
40638 "contents of other disks that are not initialized."
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../src/guestfs.pod:2764
40643 msgid ""
40644 "You can add a prerequisite clause to any individual test.  This is a run-"
40645 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40646 "testing a command which might not work on all variations of libguestfs "
40647 "builds.  A test that has prerequisite of C<Always> means to run "
40648 "unconditionally."
40649 msgstr ""
40650
40651 #. type: textblock
40652 #: ../src/guestfs.pod:2770
40653 msgid ""
40654 "In addition, packagers can skip individual tests by setting environment "
40655 "variables before running C<make check>."
40656 msgstr ""
40657
40658 #. type: verbatim
40659 #: ../src/guestfs.pod:2773
40660 #, no-wrap
40661 msgid ""
40662 " SKIP_TEST_<CMD>_<NUM>=1\n"
40663 "\n"
40664 msgstr ""
40665
40666 #. type: textblock
40667 #: ../src/guestfs.pod:2775
40668 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../src/guestfs.pod:2777
40673 msgid "or:"
40674 msgstr "або:"
40675
40676 #. type: verbatim
40677 #: ../src/guestfs.pod:2779
40678 #, no-wrap
40679 msgid ""
40680 " SKIP_TEST_<CMD>=1\n"
40681 "\n"
40682 msgstr ""
40683
40684 #. type: textblock
40685 #: ../src/guestfs.pod:2781
40686 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40687 msgstr ""
40688
40689 #. type: textblock
40690 #: ../src/guestfs.pod:2783
40691 msgid "Packagers can run only certain tests by setting for example:"
40692 msgstr ""
40693
40694 #. type: verbatim
40695 #: ../src/guestfs.pod:2785
40696 #, no-wrap
40697 msgid ""
40698 " TEST_ONLY=\"vfs_type zerofree\"\n"
40699 "\n"
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../src/guestfs.pod:2787
40704 msgid ""
40705 "See C<capitests/tests.c> for more details of how these environment variables "
40706 "work."
40707 msgstr ""
40708
40709 #. type: =head2
40710 #: ../src/guestfs.pod:2790
40711 msgid "DEBUGGING NEW API ACTIONS"
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../src/guestfs.pod:2792
40716 msgid "Test new actions work before submitting them."
40717 msgstr ""
40718
40719 #. type: textblock
40720 #: ../src/guestfs.pod:2794
40721 msgid "You can use guestfish to try out new commands."
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../src/guestfs.pod:2796
40726 msgid ""
40727 "Debugging the daemon is a problem because it runs inside a minimal "
40728 "environment.  However you can fprintf messages in the daemon to stderr, and "
40729 "they will show up if you use C<guestfish -v>."
40730 msgstr ""
40731
40732 #. type: =head2
40733 #: ../src/guestfs.pod:2800
40734 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40735 msgstr ""
40736
40737 #. type: textblock
40738 #: ../src/guestfs.pod:2802
40739 msgid ""
40740 "Our C source code generally adheres to some basic code-formatting "
40741 "conventions.  The existing code base is not totally consistent on this "
40742 "front, but we do prefer that contributed code be formatted similarly.  In "
40743 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40744 "indentation level, and other than that, follow the K&R style."
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:2808
40749 msgid ""
40750 "If you use Emacs, add the following to one of one of your start-up files (e."
40751 "g., ~/.emacs), to help ensure that you get indentation right:"
40752 msgstr ""
40753
40754 #. type: verbatim
40755 #: ../src/guestfs.pod:2811
40756 #, no-wrap
40757 msgid ""
40758 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40759 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40760 " (add-hook 'find-file-hook\n"
40761 "     '(lambda () (if (and buffer-file-name\n"
40762 "                          (string-match \"/libguestfs\\\\>\"\n"
40763 "                              (buffer-file-name))\n"
40764 "                          (not (string-equal mode-name \"Change Log\"))\n"
40765 "                          (not (string-equal mode-name \"Makefile\")))\n"
40766 "                     (setq indent-tabs-mode nil))))\n"
40767 " \n"
40768 msgstr ""
40769
40770 #. type: verbatim
40771 #: ../src/guestfs.pod:2821
40772 #, no-wrap
40773 msgid ""
40774 " ;;; When editing C sources in libguestfs, use this style.\n"
40775 " (defun libguestfs-c-mode ()\n"
40776 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40777 "   (interactive)\n"
40778 "   (c-set-style \"K&R\")\n"
40779 "   (setq c-indent-level 2)\n"
40780 "   (setq c-basic-offset 2))\n"
40781 " (add-hook 'c-mode-hook\n"
40782 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40783 "                               (buffer-file-name))\n"
40784 "                           (libguestfs-c-mode))))\n"
40785 "\n"
40786 msgstr ""
40787
40788 #. type: textblock
40789 #: ../src/guestfs.pod:2833
40790 msgid "Enable warnings when compiling (and fix any problems this finds):"
40791 msgstr ""
40792
40793 #. type: verbatim
40794 #: ../src/guestfs.pod:2836
40795 #, no-wrap
40796 msgid ""
40797 " ./configure --enable-gcc-warnings\n"
40798 "\n"
40799 msgstr ""
40800 " ./configure --enable-gcc-warnings\n"
40801 "\n"
40802
40803 #. type: textblock
40804 #: ../src/guestfs.pod:2838
40805 msgid "Useful targets are:"
40806 msgstr ""
40807
40808 #. type: verbatim
40809 #: ../src/guestfs.pod:2840
40810 #, no-wrap
40811 msgid ""
40812 " make syntax-check  # checks the syntax of the C code\n"
40813 " make check         # runs the test suite\n"
40814 "\n"
40815 msgstr ""
40816
40817 #. type: =head2
40818 #: ../src/guestfs.pod:2843
40819 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40820 msgstr ""
40821
40822 #. type: textblock
40823 #: ../src/guestfs.pod:2845
40824 msgid ""
40825 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40826 "which are used to do shell quoting."
40827 msgstr ""
40828
40829 #. type: =item
40830 #: ../src/guestfs.pod:2850
40831 msgid "%Q"
40832 msgstr "%Q"
40833
40834 #. type: textblock
40835 #: ../src/guestfs.pod:2852
40836 msgid ""
40837 "Simple shell quoted string.  Any spaces or other shell characters are "
40838 "escaped for you."
40839 msgstr ""
40840
40841 #. type: =item
40842 #: ../src/guestfs.pod:2855
40843 msgid "%R"
40844 msgstr "%R"
40845
40846 #. type: textblock
40847 #: ../src/guestfs.pod:2857
40848 msgid ""
40849 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40850 "the sysroot."
40851 msgstr ""
40852
40853 #. type: verbatim
40854 #: ../src/guestfs.pod:2864
40855 #, no-wrap
40856 msgid ""
40857 " asprintf (&cmd, \"cat %R\", path);\n"
40858 "\n"
40859 msgstr ""
40860
40861 #. type: textblock
40862 #: ../src/guestfs.pod:2866
40863 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40864 msgstr ""
40865
40866 #. type: textblock
40867 #: ../src/guestfs.pod:2868
40868 msgid ""
40869 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40870 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40871 "they are not passed via the shell (instead, straight to exec).  You probably "
40872 "want to use the C<sysroot_path()> function however."
40873 msgstr ""
40874
40875 #. type: =head2
40876 #: ../src/guestfs.pod:2874
40877 msgid "SUBMITTING YOUR NEW API ACTIONS"
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../src/guestfs.pod:2876
40882 msgid ""
40883 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40884 "libguestfs> and CC to L<rjones@redhat.com>."
40885 msgstr ""
40886
40887 #. type: =head2
40888 #: ../src/guestfs.pod:2880
40889 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40890 msgstr ""
40891
40892 #. type: textblock
40893 #: ../src/guestfs.pod:2882
40894 msgid "We support i18n (gettext anyhow) in the library."
40895 msgstr ""
40896
40897 #. type: textblock
40898 #: ../src/guestfs.pod:2884
40899 msgid ""
40900 "However many messages come from the daemon, and we don't translate those at "
40901 "the moment.  One reason is that the appliance generally has all locale files "
40902 "removed from it, because they take up a lot of space.  So we'd have to readd "
40903 "some of those, as well as copying our PO files into the appliance."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../src/guestfs.pod:2890
40908 msgid ""
40909 "Debugging messages are never translated, since they are intended for the "
40910 "programmers."
40911 msgstr ""
40912
40913 #. type: =head2
40914 #: ../src/guestfs.pod:2893
40915 msgid "SOURCE CODE SUBDIRECTORIES"
40916 msgstr ""
40917
40918 #. type: =item
40919 #: ../src/guestfs.pod:2897
40920 msgid "C<align>"
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../src/guestfs.pod:2899
40925 msgid "L<virt-alignment-scan(1)> command and documentation."
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../src/guestfs.pod:2903
40930 msgid "The libguestfs appliance, build scripts and so on."
40931 msgstr ""
40932
40933 #. type: =item
40934 #: ../src/guestfs.pod:2905
40935 msgid "C<capitests>"
40936 msgstr "C<capitests>"
40937
40938 #. type: textblock
40939 #: ../src/guestfs.pod:2907
40940 msgid "Automated tests of the C API."
40941 msgstr ""
40942
40943 #. type: =item
40944 #: ../src/guestfs.pod:2909
40945 msgid "C<cat>"
40946 msgstr "C<cat>"
40947
40948 #. type: textblock
40949 #: ../src/guestfs.pod:2911
40950 msgid ""
40951 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40952 "documentation."
40953 msgstr ""
40954
40955 #. type: =item
40956 #: ../src/guestfs.pod:2914
40957 msgid "C<caution>"
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:2916
40962 msgid ""
40963 "Safety and liveness tests of components that libguestfs depends upon (not of "
40964 "libguestfs itself).  Mainly this is for qemu and the kernel."
40965 msgstr ""
40966
40967 #. type: =item
40968 #: ../src/guestfs.pod:2919
40969 msgid "C<clone>"
40970 msgstr ""
40971
40972 #. type: textblock
40973 #: ../src/guestfs.pod:2921
40974 msgid ""
40975 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40976 "command and documentation."
40977 msgstr ""
40978
40979 #. type: =item
40980 #: ../src/guestfs.pod:2924
40981 msgid "C<contrib>"
40982 msgstr "C<contrib>"
40983
40984 #. type: textblock
40985 #: ../src/guestfs.pod:2926
40986 msgid "Outside contributions, experimental parts."
40987 msgstr ""
40988
40989 #. type: =item
40990 #: ../src/guestfs.pod:2928
40991 msgid "C<daemon>"
40992 msgstr "C<daemon>"
40993
40994 #. type: textblock
40995 #: ../src/guestfs.pod:2930
40996 msgid ""
40997 "The daemon that runs inside the libguestfs appliance and carries out actions."
40998 msgstr ""
40999
41000 #. type: =item
41001 #: ../src/guestfs.pod:2933
41002 msgid "C<df>"
41003 msgstr "C<df>"
41004
41005 #. type: textblock
41006 #: ../src/guestfs.pod:2935
41007 msgid "L<virt-df(1)> command and documentation."
41008 msgstr ""
41009
41010 #. type: =item
41011 #: ../src/guestfs.pod:2937
41012 msgid "C<edit>"
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../src/guestfs.pod:2939
41017 msgid "L<virt-edit(1)> command and documentation."
41018 msgstr ""
41019
41020 #. type: =item
41021 #: ../src/guestfs.pod:2941
41022 msgid "C<examples>"
41023 msgstr "C<examples>"
41024
41025 #. type: textblock
41026 #: ../src/guestfs.pod:2943
41027 msgid "C API example code."
41028 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41029
41030 #. type: =item
41031 #: ../src/guestfs.pod:2945
41032 msgid "C<fish>"
41033 msgstr "C<fish>"
41034
41035 #. type: textblock
41036 #: ../src/guestfs.pod:2947
41037 msgid ""
41038 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41039 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41040 "L<virt-tar-out(1)>."
41041 msgstr ""
41042
41043 #. type: =item
41044 #: ../src/guestfs.pod:2951
41045 msgid "C<fuse>"
41046 msgstr "C<fuse>"
41047
41048 #. type: textblock
41049 #: ../src/guestfs.pod:2953
41050 msgid ""
41051 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41052 msgstr ""
41053
41054 #. type: =item
41055 #: ../src/guestfs.pod:2955
41056 msgid "C<generator>"
41057 msgstr "C<generator>"
41058
41059 #. type: textblock
41060 #: ../src/guestfs.pod:2957
41061 msgid ""
41062 "The crucially important generator, used to automatically generate large "
41063 "amounts of boilerplate C code for things like RPC and bindings."
41064 msgstr ""
41065
41066 #. type: =item
41067 #: ../src/guestfs.pod:2960
41068 msgid "C<images>"
41069 msgstr "C<images>"
41070
41071 #. type: textblock
41072 #: ../src/guestfs.pod:2962
41073 msgid "Files used by the test suite."
41074 msgstr ""
41075
41076 #. type: textblock
41077 #: ../src/guestfs.pod:2964
41078 msgid "Some \"phony\" guest images which we test against."
41079 msgstr ""
41080
41081 #. type: =item
41082 #: ../src/guestfs.pod:2966
41083 msgid "C<inspector>"
41084 msgstr "C<inspector>"
41085
41086 #. type: textblock
41087 #: ../src/guestfs.pod:2968
41088 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41089 msgstr ""
41090
41091 #. type: =item
41092 #: ../src/guestfs.pod:2970
41093 msgid "C<logo>"
41094 msgstr "C<logo>"
41095
41096 #. type: textblock
41097 #: ../src/guestfs.pod:2972
41098 msgid "Logo used on the website.  The fish is called Arthur by the way."
41099 msgstr ""
41100
41101 #. type: =item
41102 #: ../src/guestfs.pod:2974
41103 msgid "C<m4>"
41104 msgstr "C<m4>"
41105
41106 #. type: textblock
41107 #: ../src/guestfs.pod:2976
41108 msgid "M4 macros used by autoconf."
41109 msgstr ""
41110
41111 #. type: =item
41112 #: ../src/guestfs.pod:2978
41113 msgid "C<po>"
41114 msgstr "C<po>"
41115
41116 #. type: textblock
41117 #: ../src/guestfs.pod:2980
41118 msgid "Translations of simple gettext strings."
41119 msgstr "Переклади простих рядків gettext."
41120
41121 #. type: =item
41122 #: ../src/guestfs.pod:2982
41123 msgid "C<po-docs>"
41124 msgstr "C<po-docs>"
41125
41126 #. type: textblock
41127 #: ../src/guestfs.pod:2984
41128 msgid ""
41129 "The build infrastructure and PO files for translations of manpages and POD "
41130 "files.  Eventually this will be combined with the C<po> directory, but that "
41131 "is rather complicated."
41132 msgstr ""
41133
41134 #. type: =item
41135 #: ../src/guestfs.pod:2988
41136 msgid "C<regressions>"
41137 msgstr "C<regressions>"
41138
41139 #. type: textblock
41140 #: ../src/guestfs.pod:2990
41141 msgid "Regression tests."
41142 msgstr "Тести на регресії."
41143
41144 #. type: =item
41145 #: ../src/guestfs.pod:2992
41146 msgid "C<rescue>"
41147 msgstr "C<rescue>"
41148
41149 #. type: textblock
41150 #: ../src/guestfs.pod:2994
41151 msgid "L<virt-rescue(1)> command and documentation."
41152 msgstr ""
41153
41154 #. type: =item
41155 #: ../src/guestfs.pod:2996
41156 #, fuzzy
41157 #| msgid "C<rescue>"
41158 msgid "C<resize>"
41159 msgstr "C<rescue>"
41160
41161 #. type: textblock
41162 #: ../src/guestfs.pod:2998
41163 msgid "L<virt-resize(1)> command and documentation."
41164 msgstr ""
41165
41166 #. type: =item
41167 #: ../src/guestfs.pod:3000
41168 msgid "C<sparsify>"
41169 msgstr ""
41170
41171 #. type: textblock
41172 #: ../src/guestfs.pod:3002
41173 msgid "L<virt-sparsify(1)> command and documentation."
41174 msgstr ""
41175
41176 #. type: =item
41177 #: ../src/guestfs.pod:3004
41178 msgid "C<src>"
41179 msgstr "C<src>"
41180
41181 #. type: textblock
41182 #: ../src/guestfs.pod:3006
41183 msgid "Source code to the C library."
41184 msgstr ""
41185
41186 #. type: =item
41187 #: ../src/guestfs.pod:3008
41188 msgid "C<tools>"
41189 msgstr "C<tools>"
41190
41191 #. type: textblock
41192 #: ../src/guestfs.pod:3010
41193 msgid ""
41194 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41195 msgstr ""
41196
41197 #. type: =item
41198 #: ../src/guestfs.pod:3012
41199 msgid "C<test-tool>"
41200 msgstr "C<test-tool>"
41201
41202 #. type: textblock
41203 #: ../src/guestfs.pod:3014
41204 msgid ""
41205 "Test tool for end users to test if their qemu/kernel combination will work "
41206 "with libguestfs."
41207 msgstr ""
41208
41209 #. type: =item
41210 #: ../src/guestfs.pod:3017
41211 msgid "C<csharp>"
41212 msgstr "C<csharp>"
41213
41214 #. type: =item
41215 #: ../src/guestfs.pod:3019
41216 msgid "C<erlang>"
41217 msgstr ""
41218
41219 #. type: =item
41220 #: ../src/guestfs.pod:3021
41221 msgid "C<haskell>"
41222 msgstr "C<haskell>"
41223
41224 #. type: =item
41225 #: ../src/guestfs.pod:3023
41226 msgid "C<java>"
41227 msgstr "C<java>"
41228
41229 #. type: =item
41230 #: ../src/guestfs.pod:3025
41231 msgid "C<ocaml>"
41232 msgstr "C<ocaml>"
41233
41234 #. type: =item
41235 #: ../src/guestfs.pod:3027
41236 msgid "C<php>"
41237 msgstr "C<php>"
41238
41239 #. type: =item
41240 #: ../src/guestfs.pod:3029
41241 msgid "C<perl>"
41242 msgstr "C<perl>"
41243
41244 #. type: =item
41245 #: ../src/guestfs.pod:3031
41246 msgid "C<python>"
41247 msgstr "C<python>"
41248
41249 #. type: =item
41250 #: ../src/guestfs.pod:3033
41251 msgid "C<ruby>"
41252 msgstr "C<ruby>"
41253
41254 #. type: textblock
41255 #: ../src/guestfs.pod:3035
41256 msgid "Language bindings."
41257 msgstr "Прив’язки до мов програмування."
41258
41259 #. type: =head2
41260 #: ../src/guestfs.pod:3039
41261 msgid "MAKING A STABLE RELEASE"
41262 msgstr ""
41263
41264 #. type: textblock
41265 #: ../src/guestfs.pod:3041
41266 msgid ""
41267 "When we make a stable release, there are several steps documented here.  See "
41268 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41269 "branch policy."
41270 msgstr ""
41271
41272 #. type: textblock
41273 #: ../src/guestfs.pod:3049
41274 msgid ""
41275 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41276 msgstr ""
41277
41278 #. type: textblock
41279 #: ../src/guestfs.pod:3054
41280 msgid "Finalize RELEASE-NOTES."
41281 msgstr ""
41282
41283 #. type: textblock
41284 #: ../src/guestfs.pod:3058
41285 msgid "Update ROADMAP."
41286 msgstr ""
41287
41288 #. type: textblock
41289 #: ../src/guestfs.pod:3062
41290 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41291 msgstr ""
41292
41293 #. type: textblock
41294 #: ../src/guestfs.pod:3066
41295 msgid "Push and pull from Transifex."
41296 msgstr ""
41297
41298 #. type: textblock
41299 #: ../src/guestfs.pod:3068
41300 msgid "Run:"
41301 msgstr ""
41302
41303 #. type: verbatim
41304 #: ../src/guestfs.pod:3070
41305 #, no-wrap
41306 msgid ""
41307 " tx push -s\n"
41308 "\n"
41309 msgstr ""
41310
41311 #. type: textblock
41312 #: ../src/guestfs.pod:3072
41313 msgid "to push the latest POT files to Transifex.  Then run:"
41314 msgstr ""
41315
41316 #. type: verbatim
41317 #: ../src/guestfs.pod:3074
41318 #, no-wrap
41319 msgid ""
41320 " ./tx-pull.sh\n"
41321 "\n"
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../src/guestfs.pod:3076
41326 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41327 msgstr ""
41328
41329 #. type: textblock
41330 #: ../src/guestfs.pod:3080
41331 msgid ""
41332 "Create new stable and development directories under L<http://libguestfs.org/"
41333 "download>."
41334 msgstr ""
41335
41336 #. type: textblock
41337 #: ../src/guestfs.pod:3085
41338 msgid "Create the branch in git:"
41339 msgstr ""
41340
41341 #. type: verbatim
41342 #: ../src/guestfs.pod:3087
41343 #, no-wrap
41344 msgid ""
41345 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41346 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41347 " git branch stable-1.XX\n"
41348 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41349 "\n"
41350 msgstr ""
41351
41352 #. type: =head1
41353 #: ../src/guestfs.pod:3094
41354 msgid "LIMITS"
41355 msgstr ""
41356
41357 #. type: =head2
41358 #: ../src/guestfs.pod:3096
41359 msgid "PROTOCOL LIMITS"
41360 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41361
41362 #. type: textblock
41363 #: ../src/guestfs.pod:3098
41364 msgid ""
41365 "Internally libguestfs uses a message-based protocol to pass API calls and "
41366 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41367 "plenty more detail about this).  The maximum message size used by the "
41368 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41369 "aware of this limit.  The API calls which may be affected are individually "
41370 "documented, with a link back to this section of the documentation."
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../src/guestfs.pod:3106
41375 msgid ""
41376 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41377 "a simple string.  Because this string is at some point internally encoded as "
41378 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41379 "the requested file is larger than this then you will get an error."
41380 msgstr ""
41381
41382 #. type: textblock
41383 #: ../src/guestfs.pod:3112
41384 msgid ""
41385 "In order to transfer large files into and out of the guest filesystem, you "
41386 "need to use particular calls that support this.  The sections L</UPLOADING> "
41387 "and L</DOWNLOADING> document how to do this."
41388 msgstr ""
41389
41390 #. type: textblock
41391 #: ../src/guestfs.pod:3116
41392 msgid ""
41393 "You might also consider mounting the disk image using our FUSE filesystem "
41394 "support (L<guestmount(1)>)."
41395 msgstr ""
41396
41397 #. type: =head2
41398 #: ../src/guestfs.pod:3119
41399 msgid "MAXIMUM NUMBER OF DISKS"
41400 msgstr ""
41401
41402 #. type: textblock
41403 #: ../src/guestfs.pod:3121
41404 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41405 msgstr ""
41406
41407 #. type: textblock
41408 #: ../src/guestfs.pod:3124
41409 msgid ""
41410 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41411 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41412 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41413 "purposes."
41414 msgstr ""
41415
41416 #. type: textblock
41417 #: ../src/guestfs.pod:3129
41418 msgid ""
41419 "We are working to substantially raise this limit in future versions but it "
41420 "requires complex changes to qemu."
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../src/guestfs.pod:3132
41425 msgid ""
41426 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41427 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41428 "requires changes to qemu."
41429 msgstr ""
41430
41431 #. type: =head2
41432 #: ../src/guestfs.pod:3136
41433 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../src/guestfs.pod:3138
41438 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41439 msgstr ""
41440
41441 #. type: textblock
41442 #: ../src/guestfs.pod:3140
41443 msgid ""
41444 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41445 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41446 msgstr ""
41447
41448 #. type: textblock
41449 #: ../src/guestfs.pod:3143
41450 msgid ""
41451 "If you attach a disk with more than 15 partitions, the extra partitions are "
41452 "ignored by libguestfs."
41453 msgstr ""
41454
41455 #. type: =head2
41456 #: ../src/guestfs.pod:3146
41457 msgid "MAXIMUM SIZE OF A DISK"
41458 msgstr ""
41459
41460 #. type: textblock
41461 #: ../src/guestfs.pod:3148
41462 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41463 msgstr ""
41464
41465 #. type: textblock
41466 #: ../src/guestfs.pod:3150
41467 msgid ""
41468 "We have tested block devices up to 1 exabyte (2**60 or "
41469 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41470 "filesystem."
41471 msgstr ""
41472
41473 #. type: textblock
41474 #: ../src/guestfs.pod:3154
41475 msgid ""
41476 "Although libguestfs probably does not impose any limit, the underlying host "
41477 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41478 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41479 "TB).  If you store disk images as host logical volumes then you are limited "
41480 "by the maximum size of an LV."
41481 msgstr ""
41482
41483 #. type: textblock
41484 #: ../src/guestfs.pod:3160
41485 msgid ""
41486 "For the hugest disk image files, we recommend using XFS on the host for "
41487 "storage."
41488 msgstr ""
41489
41490 #. type: =head2
41491 #: ../src/guestfs.pod:3163
41492 msgid "MAXIMUM SIZE OF A PARTITION"
41493 msgstr ""
41494
41495 #. type: textblock
41496 #: ../src/guestfs.pod:3165
41497 msgid ""
41498 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41499 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41500 "address a partition located beyond 2 TB on the disk."
41501 msgstr ""
41502
41503 #. type: textblock
41504 #: ../src/guestfs.pod:3169
41505 msgid ""
41506 "It is recommended that you use GPT partitions on disks which are larger than "
41507 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41508 "which are theoretically larger than the largest disk we could support."
41509 msgstr ""
41510
41511 #. type: =head2
41512 #: ../src/guestfs.pod:3174
41513 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../src/guestfs.pod:3176
41518 msgid ""
41519 "This depends on the filesystem type.  libguestfs itself does not impose any "
41520 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41521 "what these limits are."
41522 msgstr ""
41523
41524 #. type: =head2
41525 #: ../src/guestfs.pod:3180
41526 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41527 msgstr ""
41528
41529 #. type: textblock
41530 #: ../src/guestfs.pod:3182
41531 msgid ""
41532 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41533 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41534 "uploads and downloads."
41535 msgstr ""
41536
41537 #. type: =head2
41538 #: ../src/guestfs.pod:3186
41539 msgid "INSPECTION LIMITS"
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../src/guestfs.pod:3188
41544 msgid ""
41545 "The inspection code has several arbitrary limits on things like the size of "
41546 "Windows Registry hive it will read, and the length of product name.  These "
41547 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41548 "memory and disk space on the host, and should not be reached in practice.  "
41549 "See the source code for more information."
41550 msgstr ""
41551
41552 #. type: textblock
41553 #: ../src/guestfs.pod:3214
41554 msgid ""
41555 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41556 "effect as calling C<guestfs_set_verbose (g, 1)>."
41557 msgstr ""
41558
41559 #. type: textblock
41560 #: ../src/guestfs.pod:3226
41561 msgid ""
41562 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41563 "the discussion of paths in section L</PATH> above."
41564 msgstr ""
41565
41566 #. type: textblock
41567 #: ../src/guestfs.pod:3235
41568 msgid "See also L</QEMU WRAPPERS> above."
41569 msgstr ""
41570
41571 #. type: textblock
41572 #: ../src/guestfs.pod:3239
41573 msgid ""
41574 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41575 "effect as calling C<guestfs_set_trace (g, 1)>."
41576 msgstr ""
41577
41578 #. type: textblock
41579 #: ../src/guestfs.pod:3257
41580 msgid ""
41581 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41582 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41583 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41584 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41585 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41586 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41587 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41588 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41589 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41590 ">, L<http://libguestfs.org/>."
41591 msgstr ""
41592
41593 #. type: textblock
41594 #: ../src/guestfs.pod:3293
41595 msgid ""
41596 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41597 "(8)>, L<disktype(1)>."
41598 msgstr ""
41599
41600 #. type: =head1
41601 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
41602 #: ../tools/virt-win-reg.pl:761
41603 msgid "BUGS"
41604 msgstr "ВАДИ"
41605
41606 #. type: textblock
41607 #: ../src/guestfs.pod:3302
41608 msgid "To get a list of bugs against libguestfs use this link:"
41609 msgstr ""
41610 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41611 "посиланням:"
41612
41613 #. type: textblock
41614 #: ../src/guestfs.pod:3304
41615 msgid ""
41616 "L<https://bugzilla.redhat.com/buglist.cgi?"
41617 "component=libguestfs&product=Virtualization+Tools>"
41618 msgstr ""
41619 "L<https://bugzilla.redhat.com/buglist.cgi?"
41620 "component=libguestfs&product=Virtualization+Tools>"
41621
41622 #. type: textblock
41623 #: ../src/guestfs.pod:3306
41624 msgid "To report a new bug against libguestfs use this link:"
41625 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41626
41627 #. type: textblock
41628 #: ../src/guestfs.pod:3308
41629 msgid ""
41630 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41631 "component=libguestfs&product=Virtualization+Tools>"
41632 msgstr ""
41633 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41634 "component=libguestfs&product=Virtualization+Tools>"
41635
41636 #. type: textblock
41637 #: ../src/guestfs.pod:3310
41638 msgid "When reporting a bug, please check:"
41639 msgstr ""
41640
41641 #. type: textblock
41642 #: ../src/guestfs.pod:3316
41643 msgid "That the bug hasn't been reported already."
41644 msgstr ""
41645
41646 #. type: textblock
41647 #: ../src/guestfs.pod:3320
41648 msgid "That you are testing a recent version."
41649 msgstr ""
41650
41651 #. type: textblock
41652 #: ../src/guestfs.pod:3324
41653 msgid "Describe the bug accurately, and give a way to reproduce it."
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../src/guestfs.pod:3328
41658 msgid ""
41659 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41660 "bug report."
41661 msgstr ""
41662
41663 #. type: textblock
41664 #: ../test-tool/libguestfs-test-tool.pod:5
41665 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41666 msgstr ""
41667
41668 #. type: verbatim
41669 #: ../test-tool/libguestfs-test-tool.pod:9
41670 #, no-wrap
41671 msgid ""
41672 " libguestfs-test-tool [--options]\n"
41673 "\n"
41674 msgstr ""
41675
41676 #. type: textblock
41677 #: ../test-tool/libguestfs-test-tool.pod:13
41678 msgid ""
41679 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41680 "to check basic libguestfs functionality is working.  This is needed because "
41681 "libguestfs occasionally breaks for reasons beyond our control: usually "
41682 "because of changes in the underlying qemu or kernel packages, or the host "
41683 "environment."
41684 msgstr ""
41685
41686 #. type: textblock
41687 #: ../test-tool/libguestfs-test-tool.pod:19
41688 msgid "If you suspect a problem in libguestfs, then just run:"
41689 msgstr ""
41690
41691 #. type: verbatim
41692 #: ../test-tool/libguestfs-test-tool.pod:21
41693 #, no-wrap
41694 msgid ""
41695 " libguestfs-test-tool\n"
41696 "\n"
41697 msgstr ""
41698
41699 #. type: textblock
41700 #: ../test-tool/libguestfs-test-tool.pod:23
41701 msgid "It will print lots of diagnostic messages."
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../test-tool/libguestfs-test-tool.pod:25
41706 msgid "If it runs to completion successfully, you will see this near the end:"
41707 msgstr ""
41708
41709 #. type: verbatim
41710 #: ../test-tool/libguestfs-test-tool.pod:27
41711 #, no-wrap
41712 msgid ""
41713 " ===== TEST FINISHED OK =====\n"
41714 "\n"
41715 msgstr ""
41716
41717 #. type: textblock
41718 #: ../test-tool/libguestfs-test-tool.pod:29
41719 msgid "and the test tool will exit with code 0."
41720 msgstr ""
41721
41722 #. type: textblock
41723 #: ../test-tool/libguestfs-test-tool.pod:31
41724 msgid ""
41725 "If it fails (and/or exits with non-zero error code), please paste the "
41726 "I<complete, unedited> output of the test tool into a bug report.  More "
41727 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41728 "> website."
41729 msgstr ""
41730
41731 #. type: textblock
41732 #: ../test-tool/libguestfs-test-tool.pod:42
41733 msgid "Display short usage information and exit."
41734 msgstr ""
41735
41736 #. type: =item
41737 #: ../test-tool/libguestfs-test-tool.pod:44
41738 #, fuzzy
41739 #| msgid "I<--qemu qemu_binary>"
41740 msgid "B<--qemu qemu_binary>"
41741 msgstr "I<--qemu виконуваний_файл_qemu>"
41742
41743 #. type: textblock
41744 #: ../test-tool/libguestfs-test-tool.pod:46
41745 msgid ""
41746 "If you have downloaded another qemu binary, point this option at the full "
41747 "path of the binary to try it."
41748 msgstr ""
41749
41750 #. type: =item
41751 #: ../test-tool/libguestfs-test-tool.pod:49
41752 #, fuzzy
41753 #| msgid "I<--qemu qemu_binary>"
41754 msgid "B<--qemudir qemu_source_dir>"
41755 msgstr "I<--qemu виконуваний_файл_qemu>"
41756
41757 #. type: textblock
41758 #: ../test-tool/libguestfs-test-tool.pod:51
41759 msgid ""
41760 "If you have compiled qemu from source, point this option at the source "
41761 "directory to try it."
41762 msgstr ""
41763
41764 #. type: =item
41765 #: ../test-tool/libguestfs-test-tool.pod:54
41766 msgid "B<-t N>"
41767 msgstr ""
41768
41769 #. type: =item
41770 #: ../test-tool/libguestfs-test-tool.pod:56
41771 #, fuzzy
41772 #| msgid "I<--timeout N>"
41773 msgid "B<--timeout N>"
41774 msgstr "I<--timeout N>"
41775
41776 #. type: textblock
41777 #: ../test-tool/libguestfs-test-tool.pod:58
41778 msgid ""
41779 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41780 "minutes) which does not usually need to be adjusted."
41781 msgstr ""
41782
41783 #. type: =head1
41784 #: ../test-tool/libguestfs-test-tool.pod:63
41785 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41786 msgstr ""
41787
41788 #. type: textblock
41789 #: ../test-tool/libguestfs-test-tool.pod:65
41790 msgid ""
41791 "If you have compiled another version of qemu from source and would like to "
41792 "try that, then you can use the I<--qemudir> option to point to the qemu "
41793 "source directory."
41794 msgstr ""
41795
41796 #. type: textblock
41797 #: ../test-tool/libguestfs-test-tool.pod:69
41798 msgid ""
41799 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41800 "option to point to the binary."
41801 msgstr ""
41802
41803 #. type: textblock
41804 #: ../test-tool/libguestfs-test-tool.pod:72
41805 msgid ""
41806 "Note when using these options, you can ignore the business of qemu wrapper "
41807 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41808 "wrapper script for you if one is needed."
41809 msgstr ""
41810
41811 #. type: =head1
41812 #: ../test-tool/libguestfs-test-tool.pod:76
41813 msgid "TRYING OUT A DIFFERENT KERNEL"
41814 msgstr ""
41815
41816 #. type: textblock
41817 #: ../test-tool/libguestfs-test-tool.pod:78
41818 msgid ""
41819 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41820 "libguestfs tries.  You do this by setting the environment variables "
41821 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41822 msgstr ""
41823
41824 #. type: textblock
41825 #: ../test-tool/libguestfs-test-tool.pod:82
41826 msgid ""
41827 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41828 "information."
41829 msgstr ""
41830
41831 #. type: =head1
41832 #: ../test-tool/libguestfs-test-tool.pod:85
41833 msgid "SELF-DIAGNOSIS"
41834 msgstr ""
41835
41836 #. type: textblock
41837 #: ../test-tool/libguestfs-test-tool.pod:87
41838 msgid ""
41839 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41840 "produced by libguestfs-test-tool and/or possible errors."
41841 msgstr ""
41842
41843 #. type: textblock
41844 #: ../test-tool/libguestfs-test-tool.pod:92
41845 msgid ""
41846 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41847 "I<1> if there was an error."
41848 msgstr ""
41849
41850 #. type: textblock
41851 #: ../test-tool/libguestfs-test-tool.pod:97
41852 msgid ""
41853 "For the full list of environment variables which may affect libguestfs, "
41854 "please see the L<guestfs(3)> manual page."
41855 msgstr ""
41856
41857 #. type: textblock
41858 #: ../test-tool/libguestfs-test-tool.pod:102
41859 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41860 msgstr ""
41861
41862 #. type: textblock
41863 #: ../tools/virt-list-filesystems.pl:32
41864 msgid ""
41865 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41866 msgstr ""
41867
41868 #. type: verbatim
41869 #: ../tools/virt-list-filesystems.pl:36
41870 #, no-wrap
41871 msgid ""
41872 " virt-list-filesystems [--options] domname\n"
41873 "\n"
41874 msgstr ""
41875
41876 #. type: verbatim
41877 #: ../tools/virt-list-filesystems.pl:38
41878 #, no-wrap
41879 msgid ""
41880 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41881 "\n"
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41886 msgid ""
41887 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41888 "replacement."
41889 msgstr ""
41890
41891 #. type: textblock
41892 #: ../tools/virt-list-filesystems.pl:45
41893 msgid ""
41894 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41895 "are contained in a virtual machine or disk image."
41896 msgstr ""
41897
41898 #. type: textblock
41899 #: ../tools/virt-list-filesystems.pl:49
41900 msgid ""
41901 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41902 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41903 "> tool."
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../tools/virt-list-filesystems.pl:112
41908 msgid ""
41909 "With this option, C<virt-list-filesystems> displays the type of each "
41910 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41911 msgstr ""
41912
41913 #. type: =item
41914 #: ../tools/virt-list-filesystems.pl:119
41915 #, fuzzy
41916 #| msgid "B<-a image>"
41917 msgid "B<-a>"
41918 msgstr "B<-a образ>"
41919
41920 #. type: textblock
41921 #: ../tools/virt-list-filesystems.pl:123
41922 msgid ""
41923 "Normally we only show mountable filesystems.  If this option is given then "
41924 "swap devices are shown too."
41925 msgstr ""
41926
41927 #. type: textblock
41928 #: ../tools/virt-list-filesystems.pl:197
41929 msgid ""
41930 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41931 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41932 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41933 msgstr ""
41934 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41935 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41936 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41937
41938 #. type: textblock
41939 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41940 msgid "Copyright (C) 2009 Red Hat Inc."
41941 msgstr "© Red Hat Inc., 2009"
41942
41943 #. type: textblock
41944 #: ../tools/virt-list-partitions.pl:32
41945 msgid ""
41946 "virt-list-partitions - List partitions in a virtual machine or disk image"
41947 msgstr ""
41948
41949 #. type: verbatim
41950 #: ../tools/virt-list-partitions.pl:36
41951 #, no-wrap
41952 msgid ""
41953 " virt-list-partitions [--options] domname\n"
41954 "\n"
41955 msgstr ""
41956 " virt-list-partitions [--параметри] назва_домену\n"
41957 "\n"
41958
41959 #. type: verbatim
41960 #: ../tools/virt-list-partitions.pl:38
41961 #, no-wrap
41962 msgid ""
41963 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41964 "\n"
41965 msgstr ""
41966 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41967 "\n"
41968
41969 #. type: textblock
41970 #: ../tools/virt-list-partitions.pl:45
41971 msgid ""
41972 "C<virt-list-partitions> is a command line tool to list the partitions that "
41973 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41974 "first step to using L<virt-resize(1)>."
41975 msgstr ""
41976
41977 #. type: textblock
41978 #: ../tools/virt-list-partitions.pl:50
41979 msgid ""
41980 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41981 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41982 "> tool."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../tools/virt-list-partitions.pl:113
41987 msgid "Show sizes in human-readable form (eg. \"1G\")."
41988 msgstr ""
41989
41990 #. type: textblock
41991 #: ../tools/virt-list-partitions.pl:123
41992 msgid ""
41993 "With this option, C<virt-list-partitions> displays the type and size of each "
41994 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41995 msgstr ""
41996
41997 #. type: =item
41998 #: ../tools/virt-list-partitions.pl:130
41999 msgid "B<-t>"
42000 msgstr ""
42001
42002 #. type: =item
42003 #: ../tools/virt-list-partitions.pl:132
42004 #, fuzzy
42005 #| msgid "B<-t> | B<--total>"
42006 msgid "B<--total>"
42007 msgstr "B<-t> | B<--total>"
42008
42009 #. type: textblock
42010 #: ../tools/virt-list-partitions.pl:134
42011 msgid ""
42012 "Display the total size of each block device (as a separate row or rows)."
42013 msgstr ""
42014
42015 #. type: textblock
42016 #: ../tools/virt-list-partitions.pl:267
42017 msgid ""
42018 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42019 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42020 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42021 msgstr ""
42022 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42023 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42024 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42025
42026 #. type: textblock
42027 #: ../tools/virt-list-partitions.pl:283
42028 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42029 msgstr "© Red Hat Inc., 2009–2010"
42030
42031 #. type: textblock
42032 #: ../tools/virt-make-fs.pl:37
42033 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42034 msgstr ""
42035
42036 #. type: verbatim
42037 #: ../tools/virt-make-fs.pl:41
42038 #, no-wrap
42039 msgid ""
42040 " virt-make-fs [--options] input.tar output.img\n"
42041 "\n"
42042 msgstr ""
42043
42044 #. type: verbatim
42045 #: ../tools/virt-make-fs.pl:43
42046 #, no-wrap
42047 msgid ""
42048 " virt-make-fs [--options] input.tar.gz output.img\n"
42049 "\n"
42050 msgstr ""
42051
42052 #. type: verbatim
42053 #: ../tools/virt-make-fs.pl:45
42054 #, no-wrap
42055 msgid ""
42056 " virt-make-fs [--options] directory output.img\n"
42057 "\n"
42058 msgstr ""
42059
42060 #. type: textblock
42061 #: ../tools/virt-make-fs.pl:49
42062 msgid ""
42063 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42064 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42065 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42066 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42067 "you want to attach these filesystems to existing virtual machines (eg. to "
42068 "import large amounts of read-only data to a VM)."
42069 msgstr ""
42070
42071 #. type: textblock
42072 #: ../tools/virt-make-fs.pl:57
42073 msgid "Basic usage is:"
42074 msgstr ""
42075
42076 #. type: verbatim
42077 #: ../tools/virt-make-fs.pl:59
42078 #, no-wrap
42079 msgid ""
42080 " virt-make-fs input output\n"
42081 "\n"
42082 msgstr ""
42083
42084 #. type: textblock
42085 #: ../tools/virt-make-fs.pl:61
42086 msgid ""
42087 "where C<input> is either a directory containing files that you want to add, "
42088 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42089 "C<output> is a disk image.  The input type is detected automatically.  The "
42090 "output disk image defaults to a raw ext2 image unless you specify extra "
42091 "flags (see L</OPTIONS> below)."
42092 msgstr ""
42093
42094 #. type: =head2
42095 #: ../tools/virt-make-fs.pl:67
42096 msgid "EXTRA SPACE"
42097 msgstr ""
42098
42099 #. type: textblock
42100 #: ../tools/virt-make-fs.pl:69
42101 msgid ""
42102 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42103 "the files that it contains, but might have extra space.  Depending on how "
42104 "you are going to use the output, you might think this extra space is wasted "
42105 "and want to minimize it, or you might want to leave space so that more files "
42106 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42107 "but you can use the I<--size> flag to leave space in the filesystem if you "
42108 "want it."
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../tools/virt-make-fs.pl:77
42113 msgid ""
42114 "An alternative way to leave extra space but not make the output image any "
42115 "bigger is to use an alternative disk image format (instead of the default "
42116 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42117 "image format (check your hypervisor supports this before using it).  This "
42118 "allows you to choose a large I<--size> but the extra space won't actually be "
42119 "allocated in the image until you try to store something in it."
42120 msgstr ""
42121
42122 #. type: textblock
42123 #: ../tools/virt-make-fs.pl:85
42124 msgid ""
42125 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42126 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42127 "to build another image from scratch."
42128 msgstr ""
42129
42130 #. type: =head3
42131 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
42132 #: ../tools/virt-make-fs.pl:142
42133 msgid "EXAMPLE"
42134 msgstr "ПРИКЛАД"
42135
42136 #. type: verbatim
42137 #: ../tools/virt-make-fs.pl:91
42138 #, no-wrap
42139 msgid ""
42140 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42141 "\n"
42142 msgstr ""
42143 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42144 "\n"
42145
42146 #. type: =head2
42147 #: ../tools/virt-make-fs.pl:93
42148 msgid "FILESYSTEM TYPE"
42149 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42150
42151 #. type: textblock
42152 #: ../tools/virt-make-fs.pl:95
42153 msgid ""
42154 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42155 "libguestfs supports can be used (but I<not> read-only formats like "
42156 "ISO9660).  Here are some of the more common choices:"
42157 msgstr ""
42158
42159 #. type: =item
42160 #: ../tools/virt-make-fs.pl:101
42161 msgid "I<ext3>"
42162 msgstr "I<ext3>"
42163
42164 #. type: textblock
42165 #: ../tools/virt-make-fs.pl:103
42166 msgid ""
42167 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42168 "you are not going to use the filesystem in a way that requires the journal, "
42169 "then this is just wasted overhead."
42170 msgstr ""
42171
42172 #. type: =item
42173 #: ../tools/virt-make-fs.pl:107
42174 msgid "I<ntfs> or I<vfat>"
42175 msgstr "I<ntfs> або I<vfat>"
42176
42177 #. type: textblock
42178 #: ../tools/virt-make-fs.pl:109
42179 msgid "Useful if exporting data to a Windows guest."
42180 msgstr ""
42181
42182 #. type: textblock
42183 #: ../tools/virt-make-fs.pl:111
42184 msgid ""
42185 "I<Note for vfat>: The tar archive or local directory must only contain files "
42186 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42187 "program running within libguestfs is unable to change the ownership of non-"
42188 "root files, since vfat itself does not support this."
42189 msgstr ""
42190
42191 #. type: =item
42192 #: ../tools/virt-make-fs.pl:116
42193 msgid "I<minix>"
42194 msgstr "I<minix>"
42195
42196 #. type: textblock
42197 #: ../tools/virt-make-fs.pl:118
42198 msgid ""
42199 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42200 "total filesystem size."
42201 msgstr ""
42202
42203 #. type: verbatim
42204 #: ../tools/virt-make-fs.pl:125
42205 #, no-wrap
42206 msgid ""
42207 " virt-make-fs --type=minix input minixfs.img\n"
42208 "\n"
42209 msgstr ""
42210
42211 #. type: =head2
42212 #: ../tools/virt-make-fs.pl:127
42213 msgid "TO PARTITION OR NOT TO PARTITION"
42214 msgstr ""
42215
42216 #. type: textblock
42217 #: ../tools/virt-make-fs.pl:129
42218 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42219 msgstr ""
42220
42221 #. type: textblock
42222 #: ../tools/virt-make-fs.pl:131
42223 msgid ""
42224 "Adding a partition can make the disk image more compatible with certain "
42225 "virtualized operating systems which don't expect to see a filesystem "
42226 "directly located on a block device (Linux doesn't care and will happily "
42227 "handle both types)."
42228 msgstr ""
42229
42230 #. type: textblock
42231 #: ../tools/virt-make-fs.pl:136
42232 msgid ""
42233 "On the other hand, if you have a partition table then the output image is no "
42234 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42235 "directly on a partitioned disk image.  (However libguestfs tools such as "
42236 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42237 msgstr ""
42238
42239 #. type: textblock
42240 #: ../tools/virt-make-fs.pl:144
42241 msgid "Add an MBR partition:"
42242 msgstr ""
42243
42244 #. type: verbatim
42245 #: ../tools/virt-make-fs.pl:146
42246 #, no-wrap
42247 msgid ""
42248 " virt-make-fs --partition -- input disk.img\n"
42249 "\n"
42250 msgstr ""
42251
42252 #. type: textblock
42253 #: ../tools/virt-make-fs.pl:148
42254 msgid ""
42255 "If the output disk image could be terabyte-sized or larger, it's better to "
42256 "use an EFI/GPT-compatible partition table:"
42257 msgstr ""
42258
42259 #. type: verbatim
42260 #: ../tools/virt-make-fs.pl:151
42261 #, no-wrap
42262 msgid ""
42263 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42264 "\n"
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../tools/virt-make-fs.pl:179
42269 msgid "Enable debugging information."
42270 msgstr "Увімкнути виведення діагностичних даних."
42271
42272 #. type: =item
42273 #: ../tools/virt-make-fs.pl:185
42274 msgid "B<--size=E<lt>NE<gt>>"
42275 msgstr "B<--size=E<lt>NE<gt>>"
42276
42277 #. type: =item
42278 #: ../tools/virt-make-fs.pl:187
42279 msgid "B<--size=+E<lt>NE<gt>>"
42280 msgstr "B<--size=+E<lt>NE<gt>>"
42281
42282 #. type: =item
42283 #: ../tools/virt-make-fs.pl:189
42284 msgid "B<-s E<lt>NE<gt>>"
42285 msgstr "B<-s E<lt>NE<gt>>"
42286
42287 #. type: =item
42288 #: ../tools/virt-make-fs.pl:191
42289 msgid "B<-s +E<lt>NE<gt>>"
42290 msgstr "B<-s +E<lt>NE<gt>>"
42291
42292 #. type: textblock
42293 #: ../tools/virt-make-fs.pl:193
42294 msgid ""
42295 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42296 msgstr ""
42297
42298 #. type: textblock
42299 #: ../tools/virt-make-fs.pl:196
42300 msgid ""
42301 "If this option is I<not> given, then the output image will be just large "
42302 "enough to contain all the files, with not much wasted space."
42303 msgstr ""
42304
42305 #. type: textblock
42306 #: ../tools/virt-make-fs.pl:199
42307 msgid ""
42308 "To choose a fixed size output disk, specify an absolute number followed by b/"
42309 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42310 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42311 "files, else you will get an error."
42312 msgstr ""
42313
42314 #. type: textblock
42315 #: ../tools/virt-make-fs.pl:204
42316 msgid ""
42317 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42318 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42319 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42320 "the input files, and (approximately) an extra 200 MB free space."
42321 msgstr ""
42322
42323 #. type: textblock
42324 #: ../tools/virt-make-fs.pl:210
42325 msgid ""
42326 "Note that virt-make-fs estimates free space, and therefore will not produce "
42327 "filesystems containing precisely the free space requested.  (It is much more "
42328 "expensive and time-consuming to produce a filesystem which has precisely the "
42329 "desired free space)."
42330 msgstr ""
42331
42332 #. type: =item
42333 #: ../tools/virt-make-fs.pl:219
42334 msgid "B<--format=E<lt>fmtE<gt>>"
42335 msgstr ""
42336
42337 #. type: =item
42338 #: ../tools/virt-make-fs.pl:221
42339 msgid "B<-F E<lt>fmtE<gt>>"
42340 msgstr ""
42341
42342 #. type: textblock
42343 #: ../tools/virt-make-fs.pl:223
42344 msgid "Choose the output disk image format."
42345 msgstr ""
42346
42347 #. type: textblock
42348 #: ../tools/virt-make-fs.pl:225
42349 msgid "The default is C<raw> (raw disk image)."
42350 msgstr ""
42351
42352 #. type: textblock
42353 #: ../tools/virt-make-fs.pl:227
42354 msgid ""
42355 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42356 "that would really make sense here is C<qcow2>."
42357 msgstr ""
42358
42359 #. type: =item
42360 #: ../tools/virt-make-fs.pl:234
42361 msgid "B<--type=E<lt>fsE<gt>>"
42362 msgstr ""
42363
42364 #. type: =item
42365 #: ../tools/virt-make-fs.pl:236
42366 msgid "B<-t E<lt>fsE<gt>>"
42367 msgstr ""
42368
42369 #. type: textblock
42370 #: ../tools/virt-make-fs.pl:238
42371 msgid "Choose the output filesystem type."
42372 msgstr ""
42373
42374 #. type: textblock
42375 #: ../tools/virt-make-fs.pl:240
42376 msgid "The default is C<ext2>."
42377 msgstr "Типовим значенням є C<ext2>."
42378
42379 #. type: textblock
42380 #: ../tools/virt-make-fs.pl:242
42381 msgid ""
42382 "Any filesystem which is supported read-write by libguestfs can be used here."
42383 msgstr ""
42384
42385 #. type: =item
42386 #: ../tools/virt-make-fs.pl:249
42387 msgid "B<--partition>"
42388 msgstr "B<--partition>"
42389
42390 #. type: =item
42391 #: ../tools/virt-make-fs.pl:251
42392 msgid "B<--partition=E<lt>parttypeE<gt>>"
42393 msgstr ""
42394
42395 #. type: textblock
42396 #: ../tools/virt-make-fs.pl:253
42397 msgid ""
42398 "If specified, this flag adds an MBR partition table to the output disk image."
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../tools/virt-make-fs.pl:256
42403 msgid ""
42404 "You can change the partition table type, eg. I<--partition=gpt> for large "
42405 "disks."
42406 msgstr ""
42407
42408 #. type: textblock
42409 #: ../tools/virt-make-fs.pl:259
42410 msgid ""
42411 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42412 "might consider the next parameter to be the partition type.  For example:"
42413 msgstr ""
42414
42415 #. type: verbatim
42416 #: ../tools/virt-make-fs.pl:263
42417 #, no-wrap
42418 msgid ""
42419 " virt-make-fs --partition input.tar ...\n"
42420 "\n"
42421 msgstr ""
42422
42423 #. type: textblock
42424 #: ../tools/virt-make-fs.pl:265
42425 msgid ""
42426 "would cause virt-make-fs to think you wanted to use a partition type of "
42427 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42428 "dash) between options and the input file argument:"
42429 msgstr ""
42430
42431 #. type: verbatim
42432 #: ../tools/virt-make-fs.pl:269
42433 #, no-wrap
42434 msgid ""
42435 " virt-make-fs --partition -- input.tar ...\n"
42436 "\n"
42437 msgstr ""
42438 " virt-make-fs --partition -- input.tar ...\n"
42439 "\n"
42440
42441 #. type: textblock
42442 #: ../tools/virt-make-fs.pl:541
42443 msgid ""
42444 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42445 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42446 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42447 msgstr ""
42448 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42449 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42450 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42451
42452 #. type: textblock
42453 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
42454 msgid ""
42455 "When reporting bugs, please enable debugging and capture the I<complete> "
42456 "output:"
42457 msgstr ""
42458
42459 #. type: verbatim
42460 #: ../tools/virt-make-fs.pl:558
42461 #, no-wrap
42462 msgid ""
42463 " export LIBGUESTFS_DEBUG=1\n"
42464 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42465 "\n"
42466 msgstr ""
42467 " export LIBGUESTFS_DEBUG=1\n"
42468 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42469 "\n"
42470
42471 #. type: textblock
42472 #: ../tools/virt-make-fs.pl:561
42473 msgid ""
42474 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42475 "redhat.com/>"
42476 msgstr ""
42477
42478 #. type: textblock
42479 #: ../tools/virt-tar.pl:33
42480 msgid "virt-tar - Extract or upload files to a virtual machine"
42481 msgstr ""
42482
42483 #. type: verbatim
42484 #: ../tools/virt-tar.pl:37
42485 #, no-wrap
42486 msgid ""
42487 " virt-tar [--options] -x domname directory tarball\n"
42488 "\n"
42489 msgstr ""
42490
42491 #. type: verbatim
42492 #: ../tools/virt-tar.pl:39
42493 #, no-wrap
42494 msgid ""
42495 " virt-tar [--options] -u domname tarball directory\n"
42496 "\n"
42497 msgstr ""
42498
42499 #. type: verbatim
42500 #: ../tools/virt-tar.pl:41
42501 #, no-wrap
42502 msgid ""
42503 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42504 "\n"
42505 msgstr ""
42506
42507 #. type: verbatim
42508 #: ../tools/virt-tar.pl:43
42509 #, no-wrap
42510 msgid ""
42511 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42512 "\n"
42513 msgstr ""
42514
42515 #. type: =head2
42516 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42517 msgid "NOTE"
42518 msgstr "ПРИМІТКА"
42519
42520 #. type: textblock
42521 #: ../tools/virt-tar.pl:47
42522 msgid ""
42523 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42524 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42525 msgstr ""
42526
42527 #. type: textblock
42528 #: ../tools/virt-tar.pl:52
42529 msgid "Download C</home> from the VM into a local tarball:"
42530 msgstr ""
42531
42532 #. type: verbatim
42533 #: ../tools/virt-tar.pl:54
42534 #, no-wrap
42535 msgid ""
42536 " virt-tar -x domname /home home.tar\n"
42537 "\n"
42538 msgstr ""
42539
42540 #. type: verbatim
42541 #: ../tools/virt-tar.pl:56
42542 #, no-wrap
42543 msgid ""
42544 " virt-tar -zx domname /home home.tar.gz\n"
42545 "\n"
42546 msgstr ""
42547
42548 #. type: textblock
42549 #: ../tools/virt-tar.pl:58
42550 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42551 msgstr ""
42552
42553 #. type: verbatim
42554 #: ../tools/virt-tar.pl:60
42555 #, no-wrap
42556 msgid ""
42557 " virt-tar -u domname uploadstuff.tar /tmp\n"
42558 "\n"
42559 msgstr ""
42560
42561 #. type: verbatim
42562 #: ../tools/virt-tar.pl:62
42563 #, no-wrap
42564 msgid ""
42565 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42566 "\n"
42567 msgstr ""
42568
42569 #. type: textblock
42570 #: ../tools/virt-tar.pl:66
42571 msgid ""
42572 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42573 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42574 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42575 msgstr ""
42576
42577 #. type: textblock
42578 #: ../tools/virt-tar.pl:71
42579 msgid ""
42580 "You can use I<-x> (extract) on live virtual machines, but you might get "
42581 "inconsistent results or errors if there is filesystem activity inside the "
42582 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42583 "work, but the only way to guarantee consistent results is if the virtual "
42584 "machine is shut down."
42585 msgstr ""
42586
42587 #. type: textblock
42588 #: ../tools/virt-tar.pl:79
42589 msgid ""
42590 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42591 "parts of a guest filesystem.  There are many possibilities: making backups, "
42592 "uploading data files, snooping on guest activity, fixing or customizing "
42593 "guests, etc."
42594 msgstr ""
42595
42596 #. type: textblock
42597 #: ../tools/virt-tar.pl:84
42598 msgid ""
42599 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42600 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42601 "should look at the L<guestfish(1)> tool."
42602 msgstr ""
42603
42604 #. type: textblock
42605 #: ../tools/virt-tar.pl:88
42606 msgid ""
42607 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42608 "its contents (recursively) from the virtual machine into a local tarball.  "
42609 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42610 "virtual machine.  You cannot use these two options together."
42611 msgstr ""
42612
42613 #. type: textblock
42614 #: ../tools/virt-tar.pl:94
42615 msgid ""
42616 "In addition, you may need to use the I<-z> (gZip) option to enable "
42617 "compression.  When uploading, you have to specify I<-z> if the upload file "
42618 "is compressed because virt-tar won't detect this on its own."
42619 msgstr ""
42620
42621 #. type: textblock
42622 #: ../tools/virt-tar.pl:98
42623 msgid ""
42624 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42625 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42626 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42627 "the L<libguestfs(3)> API)."
42628 msgstr ""
42629
42630 #. type: =item
42631 #: ../tools/virt-tar.pl:160
42632 #, fuzzy
42633 #| msgid "B<--format>"
42634 msgid "B<--extract>"
42635 msgstr "B<--format>"
42636
42637 #. type: =item
42638 #: ../tools/virt-tar.pl:162
42639 #, fuzzy
42640 #| msgid "download"
42641 msgid "B<--download>"
42642 msgstr "download"
42643
42644 #. type: =item
42645 #: ../tools/virt-tar.pl:164
42646 msgid "B<-u>"
42647 msgstr ""
42648
42649 #. type: =item
42650 #: ../tools/virt-tar.pl:166
42651 #, fuzzy
42652 #| msgid "B<-u> | B<--upload>"
42653 msgid "B<--upload>"
42654 msgstr "B<-u> | B<--upload>"
42655
42656 #. type: textblock
42657 #: ../tools/virt-tar.pl:168
42658 msgid ""
42659 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42660 "local tarball."
42661 msgstr ""
42662
42663 #. type: textblock
42664 #: ../tools/virt-tar.pl:171
42665 msgid ""
42666 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42667 "Please read the L</WARNING> section above before using this option."
42668 msgstr ""
42669
42670 #. type: textblock
42671 #: ../tools/virt-tar.pl:175
42672 msgid "You must specify exactly one of these options."
42673 msgstr ""
42674
42675 #. type: =item
42676 #: ../tools/virt-tar.pl:181
42677 msgid "B<-z>"
42678 msgstr ""
42679
42680 #. type: =item
42681 #: ../tools/virt-tar.pl:183
42682 #, fuzzy
42683 #| msgid "B<-z> | B<--gzip>"
42684 msgid "B<--gzip>"
42685 msgstr "B<-z> | B<--gzip>"
42686
42687 #. type: textblock
42688 #: ../tools/virt-tar.pl:185
42689 msgid "Specify that the input or output tarball is gzip-compressed."
42690 msgstr ""
42691
42692 #. type: textblock
42693 #: ../tools/virt-tar.pl:298
42694 msgid ""
42695 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42696 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42697 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42698 "org/>."
42699 msgstr ""
42700 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42701 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42702 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42703 "org/>."
42704
42705 #. type: textblock
42706 #: ../tools/virt-win-reg.pl:37
42707 msgid ""
42708 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42709 msgstr ""
42710
42711 #. type: verbatim
42712 #: ../tools/virt-win-reg.pl:41
42713 #, no-wrap
42714 msgid ""
42715 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42716 "\n"
42717 msgstr ""
42718
42719 #. type: verbatim
42720 #: ../tools/virt-win-reg.pl:43
42721 #, no-wrap
42722 msgid ""
42723 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42724 "\n"
42725 msgstr ""
42726
42727 #. type: verbatim
42728 #: ../tools/virt-win-reg.pl:45
42729 #, no-wrap
42730 msgid ""
42731 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42732 "\n"
42733 msgstr ""
42734
42735 #. type: verbatim
42736 #: ../tools/virt-win-reg.pl:47
42737 #, no-wrap
42738 msgid ""
42739 " virt-win-reg --merge domname [input.reg ...]\n"
42740 "\n"
42741 msgstr ""
42742
42743 #. type: verbatim
42744 #: ../tools/virt-win-reg.pl:49
42745 #, no-wrap
42746 msgid ""
42747 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42748 "\n"
42749 msgstr ""
42750
42751 #. type: textblock
42752 #: ../tools/virt-win-reg.pl:53
42753 msgid ""
42754 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42755 "virtual machines.  If you do this, you I<will> get irreversible disk "
42756 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42757 "but doesn't catch all cases."
42758 msgstr ""
42759
42760 #. type: textblock
42761 #: ../tools/virt-win-reg.pl:58
42762 msgid ""
42763 "Modifying the Windows Registry is an inherently risky operation.  The format "
42764 "is deliberately obscure and undocumented, and Registry changes can leave the "
42765 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42766 "you have a reliable backup first."
42767 msgstr ""
42768
42769 #. type: textblock
42770 #: ../tools/virt-win-reg.pl:65
42771 msgid ""
42772 "This program can export and merge Windows Registry entries from a Windows "
42773 "guest."
42774 msgstr ""
42775
42776 #. type: textblock
42777 #: ../tools/virt-win-reg.pl:68
42778 msgid ""
42779 "The first parameter is the libvirt guest name or the raw disk image of a "
42780 "Windows guest."
42781 msgstr ""
42782
42783 #. type: textblock
42784 #: ../tools/virt-win-reg.pl:71
42785 msgid ""
42786 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42787 "exported (recursively).  For example:"
42788 msgstr ""
42789
42790 #. type: verbatim
42791 #: ../tools/virt-win-reg.pl:74
42792 #, no-wrap
42793 msgid ""
42794 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42795 "\n"
42796 msgstr ""
42797
42798 #. type: textblock
42799 #: ../tools/virt-win-reg.pl:76
42800 msgid ""
42801 "You can also display single values from within registry keys, for example:"
42802 msgstr ""
42803
42804 #. type: verbatim
42805 #: ../tools/virt-win-reg.pl:79
42806 #, no-wrap
42807 msgid ""
42808 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42809 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42810 " Windows 7 Enterprise\n"
42811 "\n"
42812 msgstr ""
42813
42814 #. type: textblock
42815 #: ../tools/virt-win-reg.pl:83
42816 msgid ""
42817 "With I<--merge>, you can merge a textual regedit file into the Windows "
42818 "Registry:"
42819 msgstr ""
42820
42821 #. type: verbatim
42822 #: ../tools/virt-win-reg.pl:86
42823 #, no-wrap
42824 msgid ""
42825 " $ virt-win-reg --merge Windows7 changes.reg\n"
42826 "\n"
42827 msgstr ""
42828
42829 #. type: textblock
42830 #: ../tools/virt-win-reg.pl:90
42831 msgid ""
42832 "This program is only meant for simple access to the registry.  If you want "
42833 "to do complicated things with the registry, we suggest you download the "
42834 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42835 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42836 "L<hivexregedit(1)>."
42837 msgstr ""
42838
42839 #. type: =item
42840 #: ../tools/virt-win-reg.pl:159
42841 msgid "B<--merge>"
42842 msgstr "B<--merge>"
42843
42844 #. type: textblock
42845 #: ../tools/virt-win-reg.pl:161
42846 msgid ""
42847 "In merge mode, this merges a textual regedit file into the Windows Registry "
42848 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42849 "displays or exports Registry entries instead."
42850 msgstr ""
42851
42852 #. type: textblock
42853 #: ../tools/virt-win-reg.pl:165
42854 msgid ""
42855 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42856 "result in disk corruption.  However exporting (without this flag)  is always "
42857 "safe."
42858 msgstr ""
42859
42860 #. type: =item
42861 #: ../tools/virt-win-reg.pl:173
42862 msgid "B<--encoding> UTF-16LE|ASCII"
42863 msgstr ""
42864
42865 #. type: textblock
42866 #: ../tools/virt-win-reg.pl:175
42867 msgid ""
42868 "When merging (only), you may need to specify the encoding for strings to be "
42869 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42870 "(3)/ENCODING STRINGS>."
42871 msgstr ""
42872
42873 #. type: textblock
42874 #: ../tools/virt-win-reg.pl:179
42875 msgid ""
42876 "The default is to use UTF-16LE, which should work with recent versions of "
42877 "Windows."
42878 msgstr ""
42879
42880 #. type: =item
42881 #: ../tools/virt-win-reg.pl:186
42882 msgid "B<--unsafe-printable-strings>"
42883 msgstr ""
42884
42885 #. type: textblock
42886 #: ../tools/virt-win-reg.pl:188
42887 msgid ""
42888 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42889 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42890 "present."
42891 msgstr ""
42892
42893 #. type: textblock
42894 #: ../tools/virt-win-reg.pl:192
42895 msgid ""
42896 "This is unsafe and does not preserve the fidelity of strings in the original "
42897 "Registry for various reasons:"
42898 msgstr ""
42899
42900 #. type: textblock
42901 #: ../tools/virt-win-reg.pl:199
42902 msgid ""
42903 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42904 "other encodings will be corrupted by this transformation."
42905 msgstr ""
42906
42907 #. type: textblock
42908 #: ../tools/virt-win-reg.pl:204
42909 msgid ""
42910 "Assumes that everything which has type 1 or 2 is really a string and that "
42911 "everything else is not a string, but the type field in real Registries is "
42912 "not reliable."
42913 msgstr ""
42914
42915 #. type: textblock
42916 #: ../tools/virt-win-reg.pl:210
42917 msgid ""
42918 "Loses information about whether a zero codepoint followed the string in the "
42919 "Registry or not."
42920 msgstr ""
42921
42922 #. type: textblock
42923 #: ../tools/virt-win-reg.pl:215
42924 msgid ""
42925 "This all happens because the Registry itself contains no information about "
42926 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42927 msgstr ""
42928
42929 #. type: textblock
42930 #: ../tools/virt-win-reg.pl:219
42931 msgid ""
42932 "You should only use this option for quick hacking and debugging of the "
42933 "Registry contents, and I<never> use it if the output is going to be passed "
42934 "into another program or stored in another Registry."
42935 msgstr ""
42936
42937 #. type: =head1
42938 #: ../tools/virt-win-reg.pl:556
42939 msgid "SUPPORTED SYSTEMS"
42940 msgstr ""
42941
42942 #. type: textblock
42943 #: ../tools/virt-win-reg.pl:558
42944 msgid ""
42945 "The program currently supports Windows NT-derived guests starting with "
42946 "Windows XP through to at least Windows 7."
42947 msgstr ""
42948
42949 #. type: textblock
42950 #: ../tools/virt-win-reg.pl:561
42951 msgid "The following Registry keys are supported:"
42952 msgstr ""
42953
42954 #. type: =item
42955 #: ../tools/virt-win-reg.pl:565
42956 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42957 msgstr ""
42958
42959 #. type: =item
42960 #: ../tools/virt-win-reg.pl:567
42961 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42962 msgstr ""
42963
42964 #. type: =item
42965 #: ../tools/virt-win-reg.pl:569
42966 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42967 msgstr ""
42968
42969 #. type: =item
42970 #: ../tools/virt-win-reg.pl:571
42971 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42972 msgstr ""
42973
42974 #. type: =item
42975 #: ../tools/virt-win-reg.pl:573
42976 msgid "C<HKEY_USERS\\.DEFAULT>"
42977 msgstr ""
42978
42979 #. type: =item
42980 #: ../tools/virt-win-reg.pl:575
42981 msgid "C<HKEY_USERS\\I<SID>>"
42982 msgstr ""
42983
42984 #. type: textblock
42985 #: ../tools/virt-win-reg.pl:577
42986 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42987 msgstr ""
42988
42989 #. type: =item
42990 #: ../tools/virt-win-reg.pl:579
42991 msgid "C<HKEY_USERS\\I<username>>"
42992 msgstr ""
42993
42994 #. type: textblock
42995 #: ../tools/virt-win-reg.pl:581
42996 msgid ""
42997 "where I<username> is a local user name (this is a libguestfs extension)."
42998 msgstr ""
42999
43000 #. type: textblock
43001 #: ../tools/virt-win-reg.pl:585
43002 msgid ""
43003 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43004 "C<HKEY_USERS>."
43005 msgstr ""
43006
43007 #. type: textblock
43008 #: ../tools/virt-win-reg.pl:588
43009 msgid ""
43010 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43011 "supported (there is no \"current user\")."
43012 msgstr ""
43013
43014 #. type: =head1
43015 #: ../tools/virt-win-reg.pl:591
43016 msgid "ENCODING"
43017 msgstr "КОДУВАННЯ"
43018
43019 #. type: textblock
43020 #: ../tools/virt-win-reg.pl:593
43021 msgid ""
43022 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43023 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43024 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43025 "Windows-style line endings, you may need to reencode the whole file before "
43026 "or after processing."
43027 msgstr ""
43028
43029 #. type: textblock
43030 #: ../tools/virt-win-reg.pl:599
43031 msgid ""
43032 "To reencode a file from Windows format to Linux (before processing it with "
43033 "the I<--merge> option), you would do something like this:"
43034 msgstr ""
43035
43036 #. type: verbatim
43037 #: ../tools/virt-win-reg.pl:602
43038 #, no-wrap
43039 msgid ""
43040 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43041 "\n"
43042 msgstr ""
43043
43044 #. type: textblock
43045 #: ../tools/virt-win-reg.pl:604
43046 msgid ""
43047 "To go in the opposite direction, after exporting and before sending the file "
43048 "to a Windows user, do something like this:"
43049 msgstr ""
43050
43051 #. type: verbatim
43052 #: ../tools/virt-win-reg.pl:607
43053 #, no-wrap
43054 msgid ""
43055 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43056 "\n"
43057 msgstr ""
43058
43059 #. type: textblock
43060 #: ../tools/virt-win-reg.pl:609
43061 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43062 msgstr ""
43063
43064 #. type: textblock
43065 #: ../tools/virt-win-reg.pl:611
43066 msgid ""
43067 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43068 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43069 "style (CRLF) line endings, like this:"
43070 msgstr ""
43071
43072 #. type: verbatim
43073 #: ../tools/virt-win-reg.pl:615
43074 #, no-wrap
43075 msgid ""
43076 " $ file software.reg\n"
43077 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43078 " with CRLF line terminators\n"
43079 "\n"
43080 msgstr ""
43081
43082 #. type: textblock
43083 #: ../tools/virt-win-reg.pl:619
43084 msgid "This file would need conversion before you could I<--merge> it."
43085 msgstr ""
43086
43087 #. type: =head1
43088 #: ../tools/virt-win-reg.pl:621
43089 msgid "CurrentControlSet etc."
43090 msgstr ""
43091
43092 #. type: textblock
43093 #: ../tools/virt-win-reg.pl:623
43094 msgid ""
43095 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43096 "Registry at the level of the hive file, and therefore you cannot modify "
43097 "these."
43098 msgstr ""
43099
43100 #. type: textblock
43101 #: ../tools/virt-win-reg.pl:627
43102 msgid ""
43103 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43104 "circumstances it might refer to another control set.  The way to find out is "
43105 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43106 msgstr ""
43107
43108 #. type: verbatim
43109 #: ../tools/virt-win-reg.pl:631
43110 #, no-wrap
43111 msgid ""
43112 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43113 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43114 " \"Current\"=dword:00000001\n"
43115 " \"Default\"=dword:00000001\n"
43116 " \"Failed\"=dword:00000000\n"
43117 " \"LastKnownGood\"=dword:00000002\n"
43118 "\n"
43119 msgstr ""
43120
43121 #. type: textblock
43122 #: ../tools/virt-win-reg.pl:638
43123 msgid "\"Current\" is the one which Windows will choose when it boots."
43124 msgstr ""
43125
43126 #. type: textblock
43127 #: ../tools/virt-win-reg.pl:640
43128 msgid ""
43129 "Similarly, other C<Current...> keys in the path may need to be replaced."
43130 msgstr ""
43131
43132 #. type: =head1
43133 #: ../tools/virt-win-reg.pl:643
43134 msgid "WINDOWS TIPS"
43135 msgstr ""
43136
43137 #. type: textblock
43138 #: ../tools/virt-win-reg.pl:645
43139 msgid ""
43140 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43141 "be shut off, else you will get disk corruption."
43142 msgstr ""
43143
43144 #. type: =head2
43145 #: ../tools/virt-win-reg.pl:648
43146 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43147 msgstr ""
43148
43149 #. type: textblock
43150 #: ../tools/virt-win-reg.pl:650
43151 msgid ""
43152 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43153 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43154 "is uploaded into C<C:\\>:"
43155 msgstr ""
43156
43157 #. type: verbatim
43158 #: ../tools/virt-win-reg.pl:654
43159 #, no-wrap
43160 msgid ""
43161 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43162 "\n"
43163 msgstr ""
43164
43165 #. type: textblock
43166 #: ../tools/virt-win-reg.pl:656
43167 msgid "Prepare a regedit file containing the registry change:"
43168 msgstr ""
43169
43170 #. type: verbatim
43171 #: ../tools/virt-win-reg.pl:658
43172 #, no-wrap
43173 msgid ""
43174 " cat > test.reg <<'EOF'\n"
43175 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43176 " \"Test\"=\"c:\\\\test.bat\"\n"
43177 " EOF\n"
43178 "\n"
43179 msgstr ""
43180
43181 #. type: textblock
43182 #: ../tools/virt-win-reg.pl:663
43183 msgid ""
43184 "In this example we use the key C<RunOnce> which means that the script will "
43185 "run precisely once when the first user logs in.  If you want it to run every "
43186 "time a user logs in, replace C<RunOnce> with C<Run>."
43187 msgstr ""
43188
43189 #. type: textblock
43190 #: ../tools/virt-win-reg.pl:667
43191 msgid "Now update the registry:"
43192 msgstr ""
43193
43194 #. type: verbatim
43195 #: ../tools/virt-win-reg.pl:669
43196 #, no-wrap
43197 msgid ""
43198 " virt-win-reg --merge WindowsGuest test.reg\n"
43199 "\n"
43200 msgstr ""
43201
43202 #. type: =head2
43203 #: ../tools/virt-win-reg.pl:671
43204 msgid "INSTALLING A SERVICE"
43205 msgstr ""
43206
43207 #. type: textblock
43208 #: ../tools/virt-win-reg.pl:673
43209 msgid ""
43210 "This section assumes you are familiar with Windows services, and you either "
43211 "have a program which handles the Windows Service Control Protocol directly "
43212 "or you want to run any program using a service wrapper like SrvAny or the "
43213 "free RHSrvAny."
43214 msgstr ""
43215
43216 #. type: textblock
43217 #: ../tools/virt-win-reg.pl:678
43218 msgid ""
43219 "First upload the program and optionally the service wrapper.  In this case "
43220 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43221 msgstr ""
43222
43223 #. type: verbatim
43224 #: ../tools/virt-win-reg.pl:682
43225 #, no-wrap
43226 msgid ""
43227 " guestfish -i -d WindowsGuest <<EOF\n"
43228 "   upload rhsrvany.exe /rhsrvany.exe\n"
43229 "   upload test.exe /test.exe\n"
43230 " EOF\n"
43231 "\n"
43232 msgstr ""
43233
43234 #. type: textblock
43235 #: ../tools/virt-win-reg.pl:687
43236 msgid ""
43237 "Prepare a regedit file containing the registry changes.  In this example, "
43238 "the first registry change is needed for the service itself or the service "
43239 "wrapper (if used).  The second registry change is only needed because I am "
43240 "using the RHSrvAny service wrapper."
43241 msgstr ""
43242
43243 #. type: verbatim
43244 #: ../tools/virt-win-reg.pl:692
43245 #, no-wrap
43246 msgid ""
43247 " cat > service.reg <<'EOF'\n"
43248 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43249 " \"Type\"=dword:00000010\n"
43250 " \"Start\"=dword:00000002\n"
43251 " \"ErrorControl\"=dword:00000001\n"
43252 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43253 " \"DisplayName\"=\"RHSrvAny\"\n"
43254 " \"ObjectName\"=\"NetworkService\"\n"
43255 " \n"
43256 msgstr ""
43257
43258 #. type: verbatim
43259 #: ../tools/virt-win-reg.pl:701
43260 #, no-wrap
43261 msgid ""
43262 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43263 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43264 " \"PWD\"=\"c:\\\\Temp\"\n"
43265 " EOF\n"
43266 "\n"
43267 msgstr ""
43268
43269 #. type: textblock
43270 #: ../tools/virt-win-reg.pl:712
43271 msgid ""
43272 "For use of C<ControlSet001> see the section above in this manual page.  You "
43273 "may need to adjust this according to the control set that is in use by the "
43274 "guest."
43275 msgstr ""
43276
43277 #. type: textblock
43278 #: ../tools/virt-win-reg.pl:718
43279 msgid ""
43280 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43281 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43282 "privileged account."
43283 msgstr ""
43284
43285 #. type: textblock
43286 #: ../tools/virt-win-reg.pl:724
43287 msgid ""
43288 "For the meaning of the magic numbers, see this Microsoft KB article: "
43289 "L<http://support.microsoft.com/kb/103000>."
43290 msgstr ""
43291
43292 #. type: textblock
43293 #: ../tools/virt-win-reg.pl:729
43294 msgid "Update the registry:"
43295 msgstr ""
43296
43297 #. type: verbatim
43298 #: ../tools/virt-win-reg.pl:731
43299 #, no-wrap
43300 msgid ""
43301 " virt-win-reg --merge WindowsGuest service.reg\n"
43302 "\n"
43303 msgstr ""
43304
43305 #. type: textblock
43306 #: ../tools/virt-win-reg.pl:735
43307 msgid ""
43308 "Be careful when passing parameters containing C<\\> (backslash) in the "
43309 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43310 "(but not both) to protect them from the shell."
43311 msgstr ""
43312
43313 #. type: textblock
43314 #: ../tools/virt-win-reg.pl:739
43315 msgid "Paths and value names are case-insensitive."
43316 msgstr ""
43317
43318 #. type: textblock
43319 #: ../tools/virt-win-reg.pl:748
43320 msgid ""
43321 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43322 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43323 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43324 msgstr ""
43325
43326 #. type: verbatim
43327 #: ../tools/virt-win-reg.pl:766
43328 #, no-wrap
43329 msgid ""
43330 " export LIBGUESTFS_DEBUG=1\n"
43331 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43332 "\n"
43333 msgstr ""
43334
43335 #. type: textblock
43336 #: ../tools/virt-win-reg.pl:769
43337 msgid ""
43338 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43339 "redhat.com/>"
43340 msgstr ""
43341
43342 #, fuzzy
43343 #~| msgid ""
43344 #~| " guestfish --ro -d myguest -i\n"
43345 #~| "\n"
43346 #~ msgid ""
43347 #~ " guestfish --remote run\n"
43348 #~ " # etc.\n"
43349 #~ "\n"
43350 #~ msgstr ""
43351 #~ " guestfish --ro -d myguest -i\n"
43352 #~ "\n"
43353
43354 #, fuzzy
43355 #~| msgid ""
43356 #~| " virt-list-partitions [--options] domname\n"
43357 #~| "\n"
43358 #~ msgid ""
43359 #~ " virt-alignment-scan [--options]\n"
43360 #~ "\n"
43361 #~ msgstr ""
43362 #~ " virt-list-partitions [--параметри] назва_домену\n"
43363 #~ "\n"
43364
43365 #, fuzzy
43366 #~| msgid ""
43367 #~| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43368 #~| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43369 #~| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43370 #~ msgid ""
43371 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
43372 #~ "libguestfs.org/>."
43373 #~ msgstr ""
43374 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43375 #~ "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43376 #~ "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43377
43378 #~ msgid "I<--help>"
43379 #~ msgstr "I<--help>"
43380
43381 #~ msgid "EXIT CODE"
43382 #~ msgstr "КОД ВИХОДУ"
43383
43384 #~ msgid "B<-a> | B<--all>"
43385 #~ msgstr "B<-a> | B<--all>"
43386
43387 #~ msgid "B<-x> | B<--extract> | B<--download>"
43388 #~ msgstr "B<-x> | B<--extract> | B<--download>"