Version 1.13.19.
[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-08 13:55+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:36 ../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:83
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:40 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
291 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
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:42 ../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:44 ../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:46 ../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:48
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:50 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
341 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
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:53 ../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:55 ../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:57 ../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:60 ../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:63 ../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:65 ../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:67 ../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:89 ../df/virt-df.pod:101
420 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
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:91 ../df/virt-df.pod:103
429 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
430 #: ../fuse/guestmount.pod:135 ../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:93 ../df/virt-df.pod:105
439 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
440 #: ../fuse/guestmount.pod:137 ../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:98 ../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:2791
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:102 ../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:106 ../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:109 ../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:122 ../df/virt-df.pod:173
540 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
541 #: ../fuse/guestmount.pod:257 ../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:124 ../df/virt-df.pod:175
550 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
551 #: ../fuse/guestmount.pod:259 ../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:126 ../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:128 ../df/virt-df.pod:179
569 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
570 #: ../fuse/guestmount.pod:263 ../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:130 ../df/virt-df.pod:181
580 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
581 #: ../fuse/guestmount.pod:265 ../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:132 ../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:134 ../df/virt-df.pod:185
605 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
606 #: ../fuse/guestmount.pod:278 ../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:136 ../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:359 ../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:361 ../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:366 ../df/virt-df.pod:222
908 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1113
909 #: ../fuse/guestmount.pod:303 ../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:213 ../clone/virt-sysprep.pod:217
924 #: ../clone/virt-sysprep.pod:221 ../clone/virt-sysprep.pod:225
925 #: ../clone/virt-sysprep.pod:240 ../clone/virt-sysprep.pod:244
926 #: ../clone/virt-sysprep.pod:248 ../clone/virt-sysprep.pod:252
927 #: ../clone/virt-sysprep.pod:256 ../clone/virt-sysprep.pod:292
928 #: ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318
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:2005 ../fish/guestfish-actions.pod:2011
951 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
952 #: ../fish/guestfish-actions.pod:2033 ../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:3012 ../src/guestfs-actions.pod:3018
975 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
976 #: ../src/guestfs-actions.pod:3040 ../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:2559 ../src/guestfs.pod:2565
988 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2976
989 #: ../src/guestfs.pod:2981 ../src/guestfs.pod:2985 ../src/guestfs.pod:2989
990 #: ../src/guestfs.pod:2993 ../src/guestfs.pod:3007 ../src/guestfs.pod:3012
991 #: ../src/guestfs.pod:3242 ../src/guestfs.pod:3246 ../src/guestfs.pod:3250
992 #: ../src/guestfs.pod:3254 ../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:370 ../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:1267 ../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:308
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:3184
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:384 ../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:386 ../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:388 ../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:1299 ../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:323
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:3265
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:390
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:392 ../df/virt-df.pod:243
1143 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1304
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:328 ../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:397 ../df/virt-df.pod:248
1163 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1309
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:333 ../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:402 ../df/virt-df.pod:253
1187 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1314
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:338 ../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:1050 ../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:126 ../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:163 ../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:165 ../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:305 ../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:4245
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 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3233 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3234 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3235 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3236 "Windows sysprepping in a future version, and we already have code to do it."
3237 msgstr ""
3238
3239 #. type: =item
3240 #: ../clone/virt-sysprep.pod:70
3241 #, fuzzy
3242 #| msgid "B<--help>"
3243 msgid "B<--enable=...>"
3244 msgstr "B<--help>"
3245
3246 #. type: textblock
3247 #: ../clone/virt-sysprep.pod:72
3248 msgid ""
3249 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3250 "operations, for example:"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:75
3255 #, no-wrap
3256 msgid ""
3257 " --enable=ssh-hostkeys,udev-persistent-net\n"
3258 "\n"
3259 msgstr ""
3260
3261 #. type: textblock
3262 #: ../clone/virt-sysprep.pod:77
3263 msgid ""
3264 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../clone/virt-sysprep.pod:79
3269 msgid ""
3270 "If the I<--enable> option is not given, then we default to trying all "
3271 "possible sysprep operations.  But some sysprep operations are skipped for "
3272 "some guest types."
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../clone/virt-sysprep.pod:83
3277 msgid ""
3278 "Use I<--list-operations> to list operations supported by a particular "
3279 "version of virt-sysprep."
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../clone/virt-sysprep.pod:86
3284 msgid ""
3285 "See L</OPERATIONS> below for a list and an explanation of each operation."
3286 msgstr ""
3287
3288 #. type: verbatim
3289 #: ../clone/virt-sysprep.pod:100
3290 #, fuzzy, no-wrap
3291 #| msgid ""
3292 #| " guestfish --format=raw -a disk.img\n"
3293 #| "\n"
3294 msgid ""
3295 " virt-sysprep --format=raw -a disk.img\n"
3296 "\n"
3297 msgstr ""
3298 " guestfish --format=raw -a disk.img\n"
3299 "\n"
3300
3301 #. type: verbatim
3302 #: ../clone/virt-sysprep.pod:104
3303 #, fuzzy, no-wrap
3304 #| msgid ""
3305 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3306 #| "\n"
3307 msgid ""
3308 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3309 "\n"
3310 msgstr ""
3311 " guestfish --format=raw -a disk.img --format -a another.img\n"
3312 "\n"
3313
3314 #. type: =item
3315 #: ../clone/virt-sysprep.pod:113
3316 msgid "B<--hostname> newhostname"
3317 msgstr ""
3318
3319 #. type: textblock
3320 #: ../clone/virt-sysprep.pod:115
3321 msgid ""
3322 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3323 "defaults to C<localhost.localdomain>."
3324 msgstr ""
3325
3326 #. type: =item
3327 #: ../clone/virt-sysprep.pod:118
3328 #, fuzzy
3329 #| msgid "B<--listen>"
3330 msgid "B<--list-operations>"
3331 msgstr "B<--listen>"
3332
3333 #. type: textblock
3334 #: ../clone/virt-sysprep.pod:120
3335 msgid "List the operations supported by the virt-sysprep program."
3336 msgstr ""
3337
3338 #. type: =head1
3339 #: ../clone/virt-sysprep.pod:140
3340 #, fuzzy
3341 #| msgid "OPTIONS"
3342 msgid "OPERATIONS"
3343 msgstr "ПАРАМЕТРИ"
3344
3345 #. type: textblock
3346 #: ../clone/virt-sysprep.pod:142
3347 msgid ""
3348 "If the I<--enable> option is I<not> given, then all sysprep operations in "
3349 "the list below are enabled, although some are skipped depending on the type "
3350 "of guest."
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../clone/virt-sysprep.pod:146
3355 msgid ""
3356 "Operations can be individually enabled using the I<--enable> option.  Use a "
3357 "comma-separated list, for example:"
3358 msgstr ""
3359
3360 #. type: verbatim
3361 #: ../clone/virt-sysprep.pod:149
3362 #, no-wrap
3363 msgid ""
3364 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3365 "\n"
3366 msgstr ""
3367
3368 #. type: textblock
3369 #: ../clone/virt-sysprep.pod:151
3370 msgid ""
3371 "To list the operations supported by the current version of virt-sysprep, use "
3372 "I<--list-operations>."
3373 msgstr ""
3374
3375 #. type: =head2
3376 #: ../clone/virt-sysprep.pod:154
3377 msgid "hostname"
3378 msgstr ""
3379
3380 #. type: textblock
3381 #: ../clone/virt-sysprep.pod:156
3382 msgid ""
3383 "This changes the hostname of the guest to the value given in the I<--"
3384 "hostname> parameter."
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../clone/virt-sysprep.pod:159
3389 msgid ""
3390 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3391 "C<localhost.localdomain>."
3392 msgstr ""
3393
3394 #. type: =head2
3395 #: ../clone/virt-sysprep.pod:162
3396 msgid "net-hwaddr"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:164
3401 msgid ""
3402 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3403 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3404 msgstr ""
3405
3406 #. type: =head2
3407 #: ../clone/virt-sysprep.pod:167
3408 msgid "ssh-hostkeys"
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../clone/virt-sysprep.pod:169
3413 msgid "This erases the SSH host keys in the guest."
3414 msgstr ""
3415
3416 #. type: textblock
3417 #: ../clone/virt-sysprep.pod:171
3418 msgid ""
3419 "The SSH host keys are regenerated (differently) next time the guest is "
3420 "booted."
3421 msgstr ""
3422
3423 #. type: textblock
3424 #: ../clone/virt-sysprep.pod:174
3425 msgid ""
3426 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3427 "stark warning about the host key changing:"
3428 msgstr ""
3429
3430 #. type: verbatim
3431 #: ../clone/virt-sysprep.pod:177
3432 #, no-wrap
3433 msgid ""
3434 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3435 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3436 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3437 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3438 "\n"
3439 msgstr ""
3440
3441 #. type: =head2
3442 #: ../clone/virt-sysprep.pod:182
3443 msgid "udev-persistent-net"
3444 msgstr ""
3445
3446 #. type: textblock
3447 #: ../clone/virt-sysprep.pod:184
3448 msgid ""
3449 "This erases udev persistent net rules which map the guest's existing MAC "
3450 "address to a fixed ethernet device (eg. eth0)."
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:187
3455 msgid ""
3456 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3457 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3458 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3459 "Erasing the udev persistent net rules avoids this."
3460 msgstr ""
3461
3462 #. type: =head1
3463 #: ../clone/virt-sysprep.pod:192
3464 msgid "COPYING AND CLONING"
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../clone/virt-sysprep.pod:194
3469 msgid ""
3470 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3471 "prepare a template from which guests can be cloned.  There are many "
3472 "different ways to achieve this using the virt tools, and this section is "
3473 "just an introduction."
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../clone/virt-sysprep.pod:199
3478 msgid "A virtual machine (when switched off) consists of two parts:"
3479 msgstr ""
3480
3481 #. type: =item
3482 #: ../clone/virt-sysprep.pod:203
3483 msgid "I<configuration>"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../clone/virt-sysprep.pod:205
3488 msgid ""
3489 "The configuration or description of the guest.  eg. The libvirt XML (see "
3490 "C<virsh dumpxml>), the running configuration of the guest, or another "
3491 "external format like OVF."
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../clone/virt-sysprep.pod:209
3496 msgid "Some configuration items that might need to be changed:"
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../clone/virt-sysprep.pod:215
3501 #, fuzzy
3502 #| msgid "lvrename"
3503 msgid "name"
3504 msgstr "lvrename"
3505
3506 #. type: textblock
3507 #: ../clone/virt-sysprep.pod:219 ../clone/virt-sysprep.pod:246
3508 msgid "UUID"
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../clone/virt-sysprep.pod:223
3513 #, fuzzy
3514 #| msgid "is-blockdev"
3515 msgid "path to block device(s)"
3516 msgstr "is-blockdev"
3517
3518 #. type: textblock
3519 #: ../clone/virt-sysprep.pod:227
3520 msgid "network card MAC address"
3521 msgstr ""
3522
3523 #. type: =item
3524 #: ../clone/virt-sysprep.pod:231
3525 #, fuzzy
3526 #| msgid "is-blockdev"
3527 msgid "I<block device(s)>"
3528 msgstr "is-blockdev"
3529
3530 #. type: textblock
3531 #: ../clone/virt-sysprep.pod:233
3532 msgid ""
3533 "One or more hard disk images, themselves containing files, directories, "
3534 "applications, kernels, configuration, etc."
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../clone/virt-sysprep.pod:236
3539 msgid "Some things inside the block devices that might need to be changed:"
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../clone/virt-sysprep.pod:242
3544 msgid "hostname and other net configuration"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../clone/virt-sysprep.pod:250
3549 msgid "SSH host keys"
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../clone/virt-sysprep.pod:254
3554 msgid "Windows unique security ID (SID)"
3555 msgstr ""
3556
3557 #. type: textblock
3558 #: ../clone/virt-sysprep.pod:258
3559 msgid "Puppet registration"
3560 msgstr ""
3561
3562 #. type: =head2
3563 #: ../clone/virt-sysprep.pod:264
3564 msgid "COPYING THE BLOCK DEVICE"
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../clone/virt-sysprep.pod:266
3569 msgid ""
3570 "Starting with an original guest, you probably wish to copy the guest block "
3571 "device and its configuration to make a template.  Then once you are happy "
3572 "with the template, you will want to make many clones from it."
3573 msgstr ""
3574
3575 #. type: verbatim
3576 #: ../clone/virt-sysprep.pod:271
3577 #, no-wrap
3578 msgid ""
3579 "                        virt-sysprep\n"
3580 "                             |\n"
3581 "                             v\n"
3582 " original guest --------> template ---------->\n"
3583 "                                      \\------> cloned\n"
3584 "                                       \\-----> guests\n"
3585 "                                        \\---->\n"
3586 "\n"
3587 msgstr ""
3588
3589 #. type: textblock
3590 #: ../clone/virt-sysprep.pod:279
3591 msgid ""
3592 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3593 "L<dd(1)>."
3594 msgstr ""
3595
3596 #. type: verbatim
3597 #: ../clone/virt-sysprep.pod:282
3598 #, fuzzy, no-wrap
3599 #| msgid ""
3600 #| " int\n"
3601 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3602 #| "                             const char *device,\n"
3603 #| "                             const char *key,\n"
3604 #| "                             int keyslot,\n"
3605 #| "                             const char *cipher);\n"
3606 #| "\n"
3607 msgid ""
3608 "                   dd                 dd\n"
3609 " original guest --------> template ---------->\n"
3610 "                                      \\------> cloned\n"
3611 "                                       \\-----> guests\n"
3612 "                                        \\---->\n"
3613 "\n"
3614 msgstr ""
3615 " int\n"
3616 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3617 "                             const char *device,\n"
3618 "                             const char *key,\n"
3619 "                             int keyslot,\n"
3620 "                             const char *cipher);\n"
3621 "\n"
3622
3623 #. type: textblock
3624 #: ../clone/virt-sysprep.pod:288
3625 msgid "There are some smarter (and faster) ways too:"
3626 msgstr ""
3627
3628 #. type: verbatim
3629 #: ../clone/virt-sysprep.pod:294
3630 #, fuzzy, no-wrap
3631 #| msgid ""
3632 #| " int\n"
3633 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3634 #| "                             const char *device,\n"
3635 #| "                             const char *key,\n"
3636 #| "                             int keyslot,\n"
3637 #| "                             const char *cipher);\n"
3638 #| "\n"
3639 msgid ""
3640 "                          snapshot\n"
3641 "                template ---------->\n"
3642 "                            \\------> cloned\n"
3643 "                             \\-----> guests\n"
3644 "                              \\---->\n"
3645 "\n"
3646 msgstr ""
3647 " int\n"
3648 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3649 "                             const char *device,\n"
3650 "                             const char *key,\n"
3651 "                             int keyslot,\n"
3652 "                             const char *cipher);\n"
3653 "\n"
3654
3655 #. type: textblock
3656 #: ../clone/virt-sysprep.pod:300
3657 msgid ""
3658 "Use the block device as a backing file and create a snapshot on top for each "
3659 "guest.  The advantage is that you don't need to copy the block device (very "
3660 "fast) and only changes are stored (less storage required)."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../clone/virt-sysprep.pod:305
3665 msgid ""
3666 "Note that writing to the backing file once you have created guests on top of "
3667 "it is not possible: you will corrupt the guests."
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../clone/virt-sysprep.pod:308
3672 msgid ""
3673 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3674 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3675 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3676 "also create cheap snapshots from files or LUNs."
3677 msgstr ""
3678
3679 #. type: textblock
3680 #: ../clone/virt-sysprep.pod:316
3681 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../clone/virt-sysprep.pod:320
3686 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3687 msgstr ""
3688
3689 #. type: =head2
3690 #: ../clone/virt-sysprep.pod:324
3691 msgid "VIRT-CLONE"
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../clone/virt-sysprep.pod:326
3696 msgid ""
3697 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3698 "and/or modify the external libvirt configuration of a guest.  It will reset "
3699 "the name, UUID and MAC address of the guest in the libvirt XML."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:331
3704 msgid ""
3705 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3706 "image.  This was the original motivation to write virt-sysprep."
3707 msgstr ""
3708
3709 #. type: =head2
3710 #: ../clone/virt-sysprep.pod:334
3711 msgid "SPARSIFY"
3712 msgstr ""
3713
3714 #. type: verbatim
3715 #: ../clone/virt-sysprep.pod:336
3716 #, no-wrap
3717 msgid ""
3718 "              virt-sparsify\n"
3719 " original guest --------> template\n"
3720 "\n"
3721 msgstr ""
3722
3723 #. type: textblock
3724 #: ../clone/virt-sysprep.pod:339
3725 msgid ""
3726 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3727 "it easier to compress and/or faster to copy."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../clone/virt-sysprep.pod:342
3732 msgid ""
3733 "Notice that since virt-sparsify also copies the image, you can use it to "
3734 "make the initial copy (instead of C<dd>)."
3735 msgstr ""
3736
3737 #. type: =head2
3738 #: ../clone/virt-sysprep.pod:345
3739 msgid "RESIZE"
3740 msgstr ""
3741
3742 #. type: verbatim
3743 #: ../clone/virt-sysprep.pod:347
3744 #, fuzzy, no-wrap
3745 #| msgid ""
3746 #| " int\n"
3747 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3748 #| "                             const char *device,\n"
3749 #| "                             const char *key,\n"
3750 #| "                             int keyslot,\n"
3751 #| "                             const char *cipher);\n"
3752 #| "\n"
3753 msgid ""
3754 "                         virt-resize\n"
3755 "                template ---------->\n"
3756 "                            \\------> cloned\n"
3757 "                             \\-----> guests\n"
3758 "                              \\---->\n"
3759 "\n"
3760 msgstr ""
3761 " int\n"
3762 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3763 "                             const char *device,\n"
3764 "                             const char *key,\n"
3765 "                             int keyslot,\n"
3766 "                             const char *cipher);\n"
3767 "\n"
3768
3769 #. type: textblock
3770 #: ../clone/virt-sysprep.pod:353
3771 msgid ""
3772 "If you want to give people cloned guests, but let them pick the size of the "
3773 "guest themselves (eg. depending on how much they are prepared to pay for "
3774 "disk space), then instead of copying the template, you can run L<virt-resize"
3775 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3776 "guests from a template."
3777 msgstr ""
3778
3779 #. type: textblock
3780 #: ../clone/virt-sysprep.pod:368
3781 msgid "This program returns 0 on success, or 1 if there was an error."
3782 msgstr ""
3783
3784 #. type: textblock
3785 #: ../clone/virt-sysprep.pod:372
3786 #, fuzzy
3787 #| msgid ""
3788 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
3789 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
3790 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3791 msgid ""
3792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3793 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<qemu-img(1)>, L<lvcreate(8)"
3794 ">, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3795 msgstr ""
3796 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
3797 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
3798 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3799
3800 #. type: textblock
3801 #: ../df/virt-df.pod:5
3802 msgid "virt-df - Display free space on virtual filesystems"
3803 msgstr ""
3804
3805 #. type: verbatim
3806 #: ../df/virt-df.pod:9
3807 #, fuzzy, no-wrap
3808 #| msgid ""
3809 #| " virt-list-partitions [--options] domname\n"
3810 #| "\n"
3811 msgid ""
3812 " virt-df [--options]\n"
3813 "\n"
3814 msgstr ""
3815 " virt-list-partitions [--параметри] назва_домену\n"
3816 "\n"
3817
3818 #. type: verbatim
3819 #: ../df/virt-df.pod:11
3820 #, fuzzy, no-wrap
3821 #| msgid ""
3822 #| " virt-list-partitions [--options] domname\n"
3823 #| "\n"
3824 msgid ""
3825 " virt-df [--options] -d domname\n"
3826 "\n"
3827 msgstr ""
3828 " virt-list-partitions [--параметри] назва_домену\n"
3829 "\n"
3830
3831 #. type: verbatim
3832 #: ../df/virt-df.pod:13
3833 #, fuzzy, no-wrap
3834 #| msgid ""
3835 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3836 #| "\n"
3837 msgid ""
3838 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3839 "\n"
3840 msgstr ""
3841 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3842 "\n"
3843
3844 #. type: verbatim
3845 #: ../df/virt-df.pod:17
3846 #, fuzzy, no-wrap
3847 #| msgid ""
3848 #| " virt-list-partitions [--options] domname\n"
3849 #| "\n"
3850 msgid ""
3851 " virt-df [--options] domname\n"
3852 "\n"
3853 msgstr ""
3854 " virt-list-partitions [--параметри] назва_домену\n"
3855 "\n"
3856
3857 #. type: verbatim
3858 #: ../df/virt-df.pod:19
3859 #, fuzzy, no-wrap
3860 #| msgid ""
3861 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3862 #| "\n"
3863 msgid ""
3864 " virt-df [--options] disk.img [disk.img ...]\n"
3865 "\n"
3866 msgstr ""
3867 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3868 "\n"
3869
3870 #. type: textblock
3871 #: ../df/virt-df.pod:23
3872 msgid ""
3873 "C<virt-df> is a command line tool to display free space on virtual machine "
3874 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3875 "allocated to a virtual machine, but can look inside disk images to see how "
3876 "much space is really being used."
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../df/virt-df.pod:28
3881 msgid ""
3882 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3883 "to get a list of all active and inactive guests, and performs a C<df>-type "
3884 "operation on each one in turn, printing out the results."
3885 msgstr ""
3886
3887 #. type: textblock
3888 #: ../df/virt-df.pod:32
3889 msgid ""
3890 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3891 "type operation on either the single named libvirt domain, or on the disk "
3892 "image(s) listed on the command line (which must all belong to a single VM).  "
3893 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3894 "guest>.  If you want to run on multiple guests, then you have to invoke "
3895 "C<virt-df> multiple times."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../df/virt-df.pod:39
3900 msgid ""
3901 "Use the I<--csv> option to get a format which can be easily parsed by other "
3902 "programs.  Other options are similar to the standard L<df(1)> command."
3903 msgstr ""
3904
3905 #. type: textblock
3906 #: ../df/virt-df.pod:45
3907 msgid ""
3908 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3909 "output human-readable:"
3910 msgstr ""
3911
3912 #. type: verbatim
3913 #: ../df/virt-df.pod:48
3914 #, no-wrap
3915 msgid ""
3916 " # virt-df -d F14x64 -h\n"
3917 " Filesystem                       Size     Used  Available  Use%\n"
3918 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3919 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3920 "\n"
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../df/virt-df.pod:53
3925 msgid "Show disk usage for a disk image file called C<test.img>:"
3926 msgstr ""
3927
3928 #. type: verbatim
3929 #: ../df/virt-df.pod:55
3930 #, no-wrap
3931 msgid ""
3932 " $ virt-df -a test1.img\n"
3933 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3934 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3935 "\n"
3936 msgstr ""
3937
3938 #. type: verbatim
3939 #: ../df/virt-df.pod:112
3940 #, fuzzy, no-wrap
3941 #| msgid ""
3942 #| " guestfish --format=raw -a disk.img\n"
3943 #| "\n"
3944 msgid ""
3945 " virt-df --format=raw -a disk.img\n"
3946 "\n"
3947 msgstr ""
3948 " guestfish --format=raw -a disk.img\n"
3949 "\n"
3950
3951 #. type: verbatim
3952 #: ../df/virt-df.pod:116
3953 #, fuzzy, no-wrap
3954 #| msgid ""
3955 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3956 #| "\n"
3957 msgid ""
3958 " virt-df --format=raw -a disk.img --format -a another.img\n"
3959 "\n"
3960 msgstr ""
3961 " guestfish --format=raw -a disk.img --format -a another.img\n"
3962 "\n"
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:129
3966 msgid "Print sizes in human-readable format."
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../df/virt-df.pod:131
3971 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3972 msgstr ""
3973
3974 #. type: =item
3975 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
3976 msgid "B<-i>"
3977 msgstr "B<-i>"
3978
3979 #. type: =item
3980 #: ../df/virt-df.pod:135
3981 #, fuzzy
3982 #| msgid "B<--live>"
3983 msgid "B<--inodes>"
3984 msgstr "B<--live>"
3985
3986 #. type: textblock
3987 #: ../df/virt-df.pod:137
3988 msgid "Print inodes instead of blocks."
3989 msgstr ""
3990
3991 #. type: =item
3992 #: ../df/virt-df.pod:139
3993 #, fuzzy
3994 #| msgid "B<--merge>"
3995 msgid "B<--one-per-guest>"
3996 msgstr "B<--merge>"
3997
3998 #. type: textblock
3999 #: ../df/virt-df.pod:141
4000 msgid ""
4001 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4002 "disks from several guests to a single libguestfs appliance."
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../df/virt-df.pod:144
4007 msgid "You might use this option in the following circumstances:"
4008 msgstr ""
4009
4010 #. type: textblock
4011 #: ../df/virt-df.pod:150
4012 msgid ""
4013 "If you think an untrusted guest might actively try to exploit the libguestfs "
4014 "appliance kernel, then this prevents one guest from interfering with the "
4015 "stats printed for another guest."
4016 msgstr ""
4017
4018 #. type: textblock
4019 #: ../df/virt-df.pod:156
4020 msgid ""
4021 "If the kernel has a bug which stops it from accessing a filesystem in one "
4022 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4023 "and report stats for further guests."
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../df/virt-df.pod:165
4028 msgid ""
4029 "Print UUIDs instead of names.  This is useful for following a guest even "
4030 "when the guest is migrated or renamed, or when two guests happen to have the "
4031 "same name."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../df/virt-df.pod:169
4036 msgid ""
4037 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4038 "images, we still print the disk image name even when this option is "
4039 "specified."
4040 msgstr ""
4041
4042 #. type: textblock
4043 #: ../df/virt-df.pod:229
4044 msgid ""
4045 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4046 "libguestfs.org/>."
4047 msgstr ""
4048
4049 #. type: textblock
4050 #: ../edit/virt-edit.pod:5
4051 msgid "virt-edit - Edit a file in a virtual machine"
4052 msgstr ""
4053
4054 #. type: verbatim
4055 #: ../edit/virt-edit.pod:9
4056 #, fuzzy, no-wrap
4057 #| msgid ""
4058 #| " virt-list-partitions [--options] domname\n"
4059 #| "\n"
4060 msgid ""
4061 " virt-edit [--options] -d domname file [file ...]\n"
4062 "\n"
4063 msgstr ""
4064 " virt-list-partitions [--параметри] назва_домену\n"
4065 "\n"
4066
4067 #. type: verbatim
4068 #: ../edit/virt-edit.pod:11
4069 #, fuzzy, no-wrap
4070 #| msgid ""
4071 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4072 #| "\n"
4073 msgid ""
4074 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4075 "\n"
4076 msgstr ""
4077 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4078 "\n"
4079
4080 #. type: verbatim
4081 #: ../edit/virt-edit.pod:13
4082 #, no-wrap
4083 msgid ""
4084 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4085 "\n"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../edit/virt-edit.pod:17
4090 #, no-wrap
4091 msgid ""
4092 " virt-edit domname file\n"
4093 "\n"
4094 msgstr ""
4095
4096 #. type: verbatim
4097 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4098 #, fuzzy, no-wrap
4099 #| msgid ""
4100 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4101 #| "\n"
4102 msgid ""
4103 " virt-edit disk.img [disk.img ...] file\n"
4104 "\n"
4105 msgstr ""
4106 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4107 "\n"
4108
4109 #. type: =head1
4110 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4111 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4112 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4113 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4114 msgid "WARNING"
4115 msgstr "ПОПЕРЕДЖЕННЯ"
4116
4117 #. type: textblock
4118 #: ../edit/virt-edit.pod:23
4119 msgid ""
4120 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4121 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4122 "doing this, but doesn't catch all cases."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../edit/virt-edit.pod:29
4127 msgid ""
4128 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4129 "exists in the named virtual machine (or disk image)."
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../edit/virt-edit.pod:32
4134 msgid ""
4135 "Multiple filenames can be given, in which case they are each edited in "
4136 "turn.  Each filename must be a full path, starting at the root directory "
4137 "(starting with '/')."
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../edit/virt-edit.pod:36
4142 msgid "If you want to just view a file, use L<virt-cat(1)>."
4143 msgstr ""
4144
4145 #. type: textblock
4146 #: ../edit/virt-edit.pod:38
4147 msgid ""
4148 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4149 "USING GUESTFISH> below)."
4150 msgstr ""
4151
4152 #. type: textblock
4153 #: ../edit/virt-edit.pod:41
4154 msgid ""
4155 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4156 "that and much more."
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../edit/virt-edit.pod:46
4161 msgid "Edit the named files interactively:"
4162 msgstr ""
4163
4164 #. type: verbatim
4165 #: ../edit/virt-edit.pod:48
4166 #, no-wrap
4167 msgid ""
4168 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4169 "\n"
4170 msgstr ""
4171
4172 #. type: verbatim
4173 #: ../edit/virt-edit.pod:50
4174 #, no-wrap
4175 msgid ""
4176 " virt-edit -d mydomain /etc/passwd\n"
4177 "\n"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../edit/virt-edit.pod:52
4182 msgid "For Windows guests, some Windows paths are understood:"
4183 msgstr ""
4184
4185 #. type: verbatim
4186 #: ../edit/virt-edit.pod:54
4187 #, no-wrap
4188 msgid ""
4189 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../edit/virt-edit.pod:56
4195 msgid ""
4196 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4197 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4198 msgstr ""
4199
4200 #. type: verbatim
4201 #: ../edit/virt-edit.pod:60
4202 #, no-wrap
4203 msgid ""
4204 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4205 "\n"
4206 msgstr ""
4207
4208 #. type: =item
4209 #: ../edit/virt-edit.pod:81
4210 msgid "B<-b> extension"
4211 msgstr ""
4212
4213 #. type: =item
4214 #: ../edit/virt-edit.pod:83
4215 msgid "B<--backup> extension"
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:85
4220 msgid ""
4221 "Create a backup of the original file I<in the guest disk image>.  The backup "
4222 "has the original filename with C<extension> added."
4223 msgstr ""
4224
4225 #. type: textblock
4226 #: ../edit/virt-edit.pod:88
4227 msgid ""
4228 "Usually the first character of C<extension> would be a dot C<.> so you would "
4229 "write:"
4230 msgstr ""
4231
4232 #. type: verbatim
4233 #: ../edit/virt-edit.pod:91
4234 #, no-wrap
4235 msgid ""
4236 " virt-edit -b .orig [etc]\n"
4237 "\n"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../edit/virt-edit.pod:93
4242 msgid "By default, no backup file is made."
4243 msgstr ""
4244
4245 #. type: =item
4246 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4247 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
4248 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4249 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4250 msgid "B<-c URI>"
4251 msgstr "B<-c адреса>"
4252
4253 #. type: =item
4254 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4255 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
4256 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4257 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4258 msgid "B<--connect URI>"
4259 msgstr "B<--connect адреса>"
4260
4261 #. type: textblock
4262 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4263 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4264 #: ../tools/virt-win-reg.pl:135
4265 msgid ""
4266 "If you specify guest block devices directly, then libvirt is not used at all."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../edit/virt-edit.pod:114
4271 msgid ""
4272 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4273 "off so you cannot see what you are typing.  If you are not worried about "
4274 "Tempest attacks and there is no one else in the room you can specify this "
4275 "flag to see what you are typing."
4276 msgstr ""
4277
4278 #. type: =item
4279 #: ../edit/virt-edit.pod:119
4280 msgid "B<-e> EXPR"
4281 msgstr ""
4282
4283 #. type: =item
4284 #: ../edit/virt-edit.pod:121
4285 #, fuzzy
4286 #| msgid "B<--help>"
4287 msgid "B<--expr> EXPR"
4288 msgstr "B<--help>"
4289
4290 #. type: textblock
4291 #: ../edit/virt-edit.pod:123
4292 msgid ""
4293 "Instead of launching the external editor, non-interactively apply the Perl "
4294 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4295 "EDITING> below."
4296 msgstr ""
4297
4298 #. type: textblock
4299 #: ../edit/virt-edit.pod:127
4300 msgid ""
4301 "Be careful to properly quote the expression to prevent it from being altered "
4302 "by the shell."
4303 msgstr ""
4304
4305 #. type: textblock
4306 #: ../edit/virt-edit.pod:130
4307 msgid "Note that this option is only available when Perl 5 is installed."
4308 msgstr ""
4309
4310 #. type: =item
4311 #: ../edit/virt-edit.pod:132
4312 #, fuzzy
4313 #| msgid "B<--format=raw|qcow2|..>"
4314 msgid "B<--format> raw|qcow2|..."
4315 msgstr "B<--format=raw|qcow2|..>"
4316
4317 #. type: verbatim
4318 #: ../edit/virt-edit.pod:143
4319 #, fuzzy, no-wrap
4320 #| msgid ""
4321 #| " guestfish --format=raw -a disk.img\n"
4322 #| "\n"
4323 msgid ""
4324 " virt-edit --format=raw -a disk.img file\n"
4325 "\n"
4326 msgstr ""
4327 " guestfish --format=raw -a disk.img\n"
4328 "\n"
4329
4330 #. type: verbatim
4331 #: ../edit/virt-edit.pod:147
4332 #, fuzzy, no-wrap
4333 #| msgid ""
4334 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4335 #| "\n"
4336 msgid ""
4337 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4338 "\n"
4339 msgstr ""
4340 " guestfish --format=raw -a disk.img --format -a another.img\n"
4341 "\n"
4342
4343 #. type: textblock
4344 #: ../edit/virt-edit.pod:181
4345 msgid "Previous versions of virt-edit allowed you to write either:"
4346 msgstr ""
4347
4348 #. type: verbatim
4349 #: ../edit/virt-edit.pod:187
4350 #, fuzzy, no-wrap
4351 #| msgid ""
4352 #| " edit filename\n"
4353 #| "\n"
4354 msgid ""
4355 " virt-edit guestname file\n"
4356 "\n"
4357 msgstr ""
4358 " edit назва_файла\n"
4359 "\n"
4360
4361 #. type: =head1
4362 #: ../edit/virt-edit.pod:195
4363 msgid "NON-INTERACTIVE EDITING"
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../edit/virt-edit.pod:197
4368 msgid ""
4369 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4370 "administrator can interactively edit the file."
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../edit/virt-edit.pod:200
4375 msgid ""
4376 "There are two ways also to use C<virt-edit> from scripts in order to make "
4377 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4378 "like this, it's less error-prone to write scripts directly using the "
4379 "libguestfs API and Augeas for configuration file editing.)"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../edit/virt-edit.pod:206
4384 msgid ""
4385 "The first method is to temporarily set C<$EDITOR> to any script or program "
4386 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4387 "update C<tmpfile> in place however it likes."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../edit/virt-edit.pod:210
4392 msgid ""
4393 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4394 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4395 "instances of C<foo> with C<bar> in a file:"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../edit/virt-edit.pod:214
4400 #, no-wrap
4401 msgid ""
4402 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../edit/virt-edit.pod:216
4408 msgid ""
4409 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4410 "For example to delete root's password you could do:"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:219
4415 #, no-wrap
4416 msgid ""
4417 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../edit/virt-edit.pod:221
4423 msgid ""
4424 "What really happens is that the snippet is evaluated as a Perl expression "
4425 "for each line of the file.  The line, including the final C<\\n>, is passed "
4426 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../edit/virt-edit.pod:226
4431 msgid ""
4432 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4433 "C<apache> user account from the password file you can do:"
4434 msgstr ""
4435
4436 #. type: verbatim
4437 #: ../edit/virt-edit.pod:229
4438 #, no-wrap
4439 msgid ""
4440 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4441 "\n"
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../edit/virt-edit.pod:231
4446 msgid ""
4447 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4448 "the end of the file is rather difficult this way since there is no concept "
4449 "of \"last line of the file\" - your expression just doesn't get called "
4450 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4451 "want to do this."
4452 msgstr ""
4453
4454 #. type: textblock
4455 #: ../edit/virt-edit.pod:237
4456 msgid ""
4457 "The variable C<$lineno> contains the current line number.  As is "
4458 "traditional, the first line in the file is number C<1>."
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../edit/virt-edit.pod:240
4463 msgid ""
4464 "The return value from the expression is ignored, but the expression may call "
4465 "C<die> in order to abort the whole program, leaving the original file "
4466 "untouched."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../edit/virt-edit.pod:244
4471 msgid ""
4472 "Remember when matching the end of a line that C<$_> may contain the final C<"
4473 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4474 "newline then neither of these.  Thus to match or substitute some text at the "
4475 "end of a line, use this regular expression:"
4476 msgstr ""
4477
4478 #. type: verbatim
4479 #: ../edit/virt-edit.pod:249
4480 #, no-wrap
4481 msgid ""
4482 " /some text(\\r?\\n)?$/\n"
4483 "\n"
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../edit/virt-edit.pod:251
4488 msgid ""
4489 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4490 "$_> itself (since that would remove all newlines from the file):"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../edit/virt-edit.pod:255
4495 #, no-wrap
4496 msgid ""
4497 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4498 "\n"
4499 msgstr ""
4500
4501 #. type: =head1
4502 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4503 msgid "WINDOWS PATHS"
4504 msgstr ""
4505
4506 #. type: textblock
4507 #: ../edit/virt-edit.pod:259
4508 msgid ""
4509 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4510 "paths (eg. C<E:\\foo\\bar.txt>)."
4511 msgstr ""
4512
4513 #. type: textblock
4514 #: ../edit/virt-edit.pod:262
4515 msgid "If and only if the guest is running Windows then:"
4516 msgstr ""
4517
4518 #. type: textblock
4519 #: ../edit/virt-edit.pod:268
4520 msgid ""
4521 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4522 "to the correct filesystem."
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../edit/virt-edit.pod:273
4527 msgid ""
4528 "Any backslash (C<\\>) characters in the path are replaced with forward "
4529 "slashes so that libguestfs can process it."
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../edit/virt-edit.pod:278
4534 msgid ""
4535 "The path is resolved case insensitively to locate the file that should be "
4536 "edited."
4537 msgstr ""
4538
4539 #. type: textblock
4540 #: ../edit/virt-edit.pod:283
4541 msgid "There are some known shortcomings:"
4542 msgstr ""
4543
4544 #. type: textblock
4545 #: ../edit/virt-edit.pod:289
4546 msgid "Some NTFS symbolic links may not be followed correctly."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../edit/virt-edit.pod:293
4551 msgid "NTFS junction points that cross filesystems are not followed."
4552 msgstr ""
4553
4554 #. type: textblock
4555 #: ../edit/virt-edit.pod:299
4556 msgid ""
4557 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4558 "C<virt-edit> doesn't work."
4559 msgstr ""
4560
4561 #. type: textblock
4562 #: ../edit/virt-edit.pod:302
4563 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4564 msgstr ""
4565
4566 #. type: verbatim
4567 #: ../edit/virt-edit.pod:304
4568 #, fuzzy, no-wrap
4569 #| msgid ""
4570 #| " guestfish --ro -d myguest -i\n"
4571 #| "\n"
4572 msgid ""
4573 " guestfish --rw -i -d domname edit /file\n"
4574 "\n"
4575 msgstr ""
4576 " guestfish --ro -d myguest -i\n"
4577 "\n"
4578
4579 #. type: textblock
4580 #: ../edit/virt-edit.pod:306
4581 msgid ""
4582 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4583 "path to the file."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../edit/virt-edit.pod:309
4588 msgid ""
4589 "The command above uses libguestfs's guest inspection feature and so does not "
4590 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4591 "disk images that don't contain guests.  To edit a file on a disk image "
4592 "directly, use:"
4593 msgstr ""
4594
4595 #. type: verbatim
4596 #: ../edit/virt-edit.pod:314
4597 #, fuzzy, no-wrap
4598 #| msgid ""
4599 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4600 #| "\n"
4601 msgid ""
4602 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4603 "\n"
4604 msgstr ""
4605 " guestfish --format=raw -a disk.img --format -a another.img\n"
4606 "\n"
4607
4608 #. type: textblock
4609 #: ../edit/virt-edit.pod:316
4610 msgid ""
4611 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4612 "the disk image to edit, and C</file> is the full path to the file."
4613 msgstr ""
4614
4615 #. type: textblock
4616 #: ../edit/virt-edit.pod:320
4617 msgid ""
4618 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4619 "C<write> or C<upload> instead:"
4620 msgstr ""
4621
4622 #. type: verbatim
4623 #: ../edit/virt-edit.pod:323
4624 #, fuzzy, no-wrap
4625 #| msgid ""
4626 #| " guestfish --ro -d myguest -i\n"
4627 #| "\n"
4628 msgid ""
4629 " guestfish --rw -i -d domname touch /newfile\n"
4630 "\n"
4631 msgstr ""
4632 " guestfish --ro -d myguest -i\n"
4633 "\n"
4634
4635 #. type: verbatim
4636 #: ../edit/virt-edit.pod:325
4637 #, no-wrap
4638 msgid ""
4639 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4640 "\n"
4641 msgstr ""
4642
4643 #. type: verbatim
4644 #: ../edit/virt-edit.pod:327
4645 #, no-wrap
4646 msgid ""
4647 " guestfish --rw -i -d domname upload localfile /newfile\n"
4648 "\n"
4649 msgstr ""
4650
4651 #. type: =head1
4652 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1118
4653 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4654 #: ../src/guestfs.pod:3123 ../test-tool/libguestfs-test-tool.pod:95
4655 msgid "ENVIRONMENT VARIABLES"
4656 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4657
4658 #. type: =item
4659 #: ../edit/virt-edit.pod:333
4660 #, fuzzy
4661 #| msgid "EDITOR"
4662 msgid "C<EDITOR>"
4663 msgstr "РЕДАКТОР"
4664
4665 #. type: textblock
4666 #: ../edit/virt-edit.pod:335
4667 msgid ""
4668 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4669 "\"emacs -nw\">"
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../edit/virt-edit.pod:338
4674 msgid "If not set, C<vi> is used."
4675 msgstr ""
4676
4677 #. type: textblock
4678 #: ../edit/virt-edit.pod:356
4679 #, fuzzy
4680 #| msgid ""
4681 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4682 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4683 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4684 msgid ""
4685 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4686 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4687 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4688 msgstr ""
4689 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4690 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4691 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4692
4693 #. type: textblock
4694 #: ../erlang/examples/guestfs-erlang.pod:5
4695 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4696 msgstr ""
4697
4698 #. type: verbatim
4699 #: ../erlang/examples/guestfs-erlang.pod:9
4700 #, no-wrap
4701 msgid ""
4702 " {ok, G} = guestfs:create(),\n"
4703 " ok = guestfs:add_drive_opts(G, Disk,\n"
4704 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4705 " ok = guestfs:launch(G),\n"
4706 " [Device] = guestfs:list_devices(G),\n"
4707 " ok = guestfs:close(G).\n"
4708 "\n"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:18
4713 msgid ""
4714 "This manual page documents how to call libguestfs from the Erlang "
4715 "programming language.  This page just documents the differences from the C "
4716 "API and gives some examples.  If you are not familiar with using libguestfs, "
4717 "you also need to read L<guestfs(3)>."
4718 msgstr ""
4719
4720 #. type: =head2
4721 #: ../erlang/examples/guestfs-erlang.pod:23
4722 msgid "OPENING AND CLOSING THE HANDLE"
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../erlang/examples/guestfs-erlang.pod:25
4727 msgid ""
4728 "The Erlang bindings are implemented using an external program called C<erl-"
4729 "guestfs>.  This program must be on the current PATH, or else you should "
4730 "specify the full path to the program:"
4731 msgstr ""
4732
4733 #. type: verbatim
4734 #: ../erlang/examples/guestfs-erlang.pod:29
4735 #, fuzzy, no-wrap
4736 #| msgid ""
4737 #| " g = guestfs_create ();\n"
4738 #| " \n"
4739 msgid ""
4740 " {ok, G} = guestfs:create().\n"
4741 "\n"
4742 msgstr ""
4743 " g = guestfs_create ();\n"
4744 " \n"
4745
4746 #. type: verbatim
4747 #: ../erlang/examples/guestfs-erlang.pod:31
4748 #, no-wrap
4749 msgid ""
4750 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4751 "\n"
4752 msgstr ""
4753
4754 #. type: textblock
4755 #: ../erlang/examples/guestfs-erlang.pod:33
4756 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../erlang/examples/guestfs-erlang.pod:36
4761 msgid "To close the handle:"
4762 msgstr ""
4763
4764 #. type: verbatim
4765 #: ../erlang/examples/guestfs-erlang.pod:38
4766 #, fuzzy, no-wrap
4767 #| msgid ""
4768 #| " g = guestfs_create ();\n"
4769 #| " \n"
4770 msgid ""
4771 " ok = guestfs:close(G).\n"
4772 "\n"
4773 msgstr ""
4774 " g = guestfs_create ();\n"
4775 " \n"
4776
4777 #. type: =head2
4778 #: ../erlang/examples/guestfs-erlang.pod:40
4779 #, fuzzy
4780 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4781 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4782 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
4783
4784 #. type: textblock
4785 #: ../erlang/examples/guestfs-erlang.pod:42
4786 msgid ""
4787 "For functions that take optional arguments, the first arguments are the non-"
4788 "optional ones.  The last argument is a list of tuples supplying the "
4789 "remaining optional arguments."
4790 msgstr ""
4791
4792 #. type: verbatim
4793 #: ../erlang/examples/guestfs-erlang.pod:46
4794 #, fuzzy, no-wrap
4795 #| msgid ""
4796 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
4797 #| "                                va_list args);\n"
4798 #| "\n"
4799 msgid ""
4800 " ok = guestfs:add_drive_opts(G, Disk,\n"
4801 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4802 "\n"
4803 msgstr ""
4804 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
4805 "                                va_list args);\n"
4806 "\n"
4807
4808 #. type: textblock
4809 #: ../erlang/examples/guestfs-erlang.pod:49
4810 msgid "If the last argument would be an empty list, you can also omit it:"
4811 msgstr ""
4812
4813 #. type: verbatim
4814 #: ../erlang/examples/guestfs-erlang.pod:51
4815 #, fuzzy, no-wrap
4816 #| msgid ""
4817 #| " guestfs_add_drive_opts (g, filename, -1);\n"
4818 #| "\n"
4819 msgid ""
4820 " ok = guestfs:add_drive_opts(G, Disk).\n"
4821 "\n"
4822 msgstr ""
4823 " guestfs_add_drive_opts (g, filename, -1);\n"
4824 "\n"
4825
4826 #. type: =head2
4827 #: ../erlang/examples/guestfs-erlang.pod:53
4828 msgid "RETURN VALUES AND ERRORS"
4829 msgstr ""
4830
4831 #. type: textblock
4832 #: ../erlang/examples/guestfs-erlang.pod:55
4833 msgid ""
4834 "On success, most functions return a C<Result> term (which could be a list, "
4835 "string, tuple etc.).  If there is nothing for the function to return, then "
4836 "the atom C<ok> is returned."
4837 msgstr ""
4838
4839 #. type: textblock
4840 #: ../erlang/examples/guestfs-erlang.pod:59
4841 msgid "On error, you would see one of the following tuples:"
4842 msgstr ""
4843
4844 #. type: =item
4845 #: ../erlang/examples/guestfs-erlang.pod:63
4846 msgid "C<{error, Msg, Errno}>"
4847 msgstr ""
4848
4849 #. type: textblock
4850 #: ../erlang/examples/guestfs-erlang.pod:65
4851 msgid "This indicates an ordinary error from the function."
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../erlang/examples/guestfs-erlang.pod:67
4856 msgid ""
4857 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4858 "(integer)."
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../erlang/examples/guestfs-erlang.pod:70
4863 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4864 msgstr ""
4865
4866 #. type: =item
4867 #: ../erlang/examples/guestfs-erlang.pod:72
4868 msgid "C<{unknown, Function}>"
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../erlang/examples/guestfs-erlang.pod:74
4873 msgid ""
4874 "This indicates that the function you called is not known.  Generally this "
4875 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4876 "which you should not do."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../erlang/examples/guestfs-erlang.pod:78
4881 msgid "C<Function> is the name of the unknown function."
4882 msgstr ""
4883
4884 #. type: =item
4885 #: ../erlang/examples/guestfs-erlang.pod:80
4886 msgid "C<{unknownarg, Arg}>"
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../erlang/examples/guestfs-erlang.pod:82
4891 msgid ""
4892 "This indicates that you called a function with optional arguments, with an "
4893 "unknown argument name."
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../erlang/examples/guestfs-erlang.pod:85
4898 msgid "C<Arg> is the name of the unknown argument."
4899 msgstr ""
4900
4901 #. type: =head1
4902 #: ../erlang/examples/guestfs-erlang.pod:89
4903 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4904 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4905 #: ../python/examples/guestfs-python.pod:34
4906 #: ../ruby/examples/guestfs-ruby.pod:28
4907 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../erlang/examples/guestfs-erlang.pod:91
4912 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4913 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4914 #: ../python/examples/guestfs-python.pod:36
4915 #: ../ruby/examples/guestfs-ruby.pod:30
4916 #, fuzzy
4917 #| msgid "EXAMPLE"
4918 msgid "@EXAMPLE1@"
4919 msgstr "ПРИКЛАД"
4920
4921 #. type: =head1
4922 #: ../erlang/examples/guestfs-erlang.pod:93
4923 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4924 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4925 #: ../python/examples/guestfs-python.pod:38
4926 #: ../ruby/examples/guestfs-ruby.pod:32
4927 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4928 msgstr ""
4929
4930 #. type: textblock
4931 #: ../erlang/examples/guestfs-erlang.pod:95
4932 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4933 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4934 #: ../python/examples/guestfs-python.pod:40
4935 #: ../ruby/examples/guestfs-ruby.pod:34
4936 #, fuzzy
4937 #| msgid "EXAMPLE"
4938 msgid "@EXAMPLE2@"
4939 msgstr "ПРИКЛАД"
4940
4941 #. type: textblock
4942 #: ../erlang/examples/guestfs-erlang.pod:99
4943 #, fuzzy
4944 #| msgid ""
4945 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4946 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4947 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4948 msgid ""
4949 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4950 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4951 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4952 msgstr ""
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::Lib"
4955 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4956
4957 #. type: =head1
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:60
4961 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4962 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
4963 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4964 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4965 #: ../python/examples/guestfs-python.pod:54
4966 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3261
4967 #: ../test-tool/libguestfs-test-tool.pod:106
4968 msgid "AUTHORS"
4969 msgstr "АВТОРИ"
4970
4971 #. type: textblock
4972 #: ../erlang/examples/guestfs-erlang.pod:112
4973 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4974 #: ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:62
4975 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4976 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
4977 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4978 #: ../perl/examples/guestfs-perl.pod:54
4979 #: ../python/examples/guestfs-python.pod:56
4980 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3263
4981 #: ../test-tool/libguestfs-test-tool.pod:108
4982 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4983 msgstr ""
4984
4985 #. type: textblock
4986 #: ../erlang/examples/guestfs-erlang.pod:116
4987 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4988 #, fuzzy
4989 #| msgid "Copyright (C) 2009 Red Hat Inc."
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4991 msgstr "© Red Hat Inc., 2009"
4992
4993 #. type: textblock
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5000 msgid ""
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3270
5013 msgid ""
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3275
5028 msgid ""
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5032 "for more details."
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3280
5043 msgid ""
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5052 msgstr ""
5053
5054 #. type: verbatim
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5056 #, no-wrap
5057 msgid ""
5058 " #include <guestfs.h>\n"
5059 " \n"
5060 msgstr ""
5061 " #include <guestfs.h>\n"
5062 " \n"
5063
5064 #. type: verbatim
5065 #: ../examples/guestfs-examples.pod:11
5066 #, no-wrap
5067 msgid ""
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5071 "\n"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5076 #, no-wrap
5077 msgid ""
5078 " cc prog.c -o prog -lguestfs\n"
5079 "or:\n"
5080 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5081 "\n"
5082 msgstr ""
5083 " cc prog.c -o prog -lguestfs\n"
5084 "або:\n"
5085 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5086 "\n"
5087
5088 #. type: textblock
5089 #: ../examples/guestfs-examples.pod:21
5090 msgid ""
5091 "This manual page contains examples of calling libguestfs from the C "
5092 "programming language.  If you are not familiar with using libguestfs, you "
5093 "also need to read L<guestfs(3)>."
5094 msgstr ""
5095
5096 #. type: textblock
5097 #: ../examples/guestfs-examples.pod:35
5098 #, fuzzy
5099 #| msgid ""
5100 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5101 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5102 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5103 msgid ""
5104 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5105 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5106 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5107 msgstr ""
5108 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5109 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5110 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5114 #: ../python/examples/guestfs-python.pod:60
5115 #: ../ruby/examples/guestfs-ruby.pod:54
5116 #, fuzzy
5117 #| msgid "Copyright (C) 2009 Red Hat Inc."
5118 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5119 msgstr "© Red Hat Inc., 2009"
5120
5121 #. type: =end
5122 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5123 msgid "comment"
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../examples/guestfs-recipes.pod:5
5128 msgid ""
5129 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5130 "here.  The only way which works for both sorts of output is to just write "
5131 "the URL directly.  Do NOT use L<...> for URLs."
5132 msgstr ""
5133
5134 #. type: textblock
5135 #: ../examples/guestfs-recipes.pod:9
5136 msgid ""
5137 "We break with tradition here and don't use ALL CAPS for the section "
5138 "headings, as this makes them much easier to read."
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../examples/guestfs-recipes.pod:16
5143 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../examples/guestfs-recipes.pod:20
5148 msgid ""
5149 "This page contains recipes for and links to things you can do using "
5150 "libguestfs, L<guestfish(1)> and the virt tools."
5151 msgstr ""
5152
5153 #. type: =head1
5154 #: ../examples/guestfs-recipes.pod:23
5155 msgid "Audit a virtual machine for setuid files"
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../examples/guestfs-recipes.pod:25
5160 msgid ""
5161 "The link below contains a small program which can be used to audit a Linux "
5162 "virtual machine to see what setuid and setgid files it contains."
5163 msgstr ""
5164
5165 #. type: textblock
5166 #: ../examples/guestfs-recipes.pod:28
5167 msgid ""
5168 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5169 "files/#content"
5170 msgstr ""
5171
5172 #. type: =head1
5173 #: ../examples/guestfs-recipes.pod:30
5174 msgid "Change the background image in a Windows XP VM"
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../examples/guestfs-recipes.pod:32
5179 msgid ""
5180 "The links below explain how to use L<guestfish(1)> to change the background "
5181 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5182 "be substantially different for each version of Windows."
5183 msgstr ""
5184
5185 #. type: textblock
5186 #: ../examples/guestfs-recipes.pod:37
5187 msgid ""
5188 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5189 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5190 msgstr ""
5191
5192 #. type: =head1
5193 #: ../examples/guestfs-recipes.pod:40
5194 msgid "Cloning a virtual machine (Linux)"
5195 msgstr ""
5196
5197 #. type: textblock
5198 #: ../examples/guestfs-recipes.pod:42
5199 msgid ""
5200 "The guestfish technique described in the link below works well for most "
5201 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5202 "slightly."
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../examples/guestfs-recipes.pod:46
5207 msgid ""
5208 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5209 "vm/#content"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../examples/guestfs-recipes.pod:48
5214 msgid ""
5215 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5216 "discussion."
5217 msgstr ""
5218
5219 #. type: textblock
5220 #: ../examples/guestfs-recipes.pod:51
5221 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5222 msgstr ""
5223
5224 #. type: =head1
5225 #: ../examples/guestfs-recipes.pod:53
5226 msgid "Cloning a virtual machine (Windows)"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:55
5231 msgid ""
5232 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5233 "straightforward.  Currently there is code in the Aeolus Oz project which "
5234 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5235 "we may add sysprepping ability."
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../examples/guestfs-recipes.pod:60
5240 msgid ""
5241 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5242 "list/2011-May/msg00019.html"
5243 msgstr ""
5244
5245 #. type: =head1
5246 #: ../examples/guestfs-recipes.pod:63
5247 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5248 msgstr ""
5249
5250 #. type: textblock
5251 #: ../examples/guestfs-recipes.pod:65
5252 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5253 msgstr ""
5254
5255 #. type: verbatim
5256 #: ../examples/guestfs-recipes.pod:67
5257 #, no-wrap
5258 msgid ""
5259 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5260 "\n"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../examples/guestfs-recipes.pod:69
5265 msgid "To export just a subdirectory, eg. C</files>, do:"
5266 msgstr ""
5267
5268 #. type: verbatim
5269 #: ../examples/guestfs-recipes.pod:71
5270 #, no-wrap
5271 msgid ""
5272 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5273 "\n"
5274 msgstr ""
5275
5276 #. type: =head1
5277 #: ../examples/guestfs-recipes.pod:73
5278 msgid "Create empty disk images"
5279 msgstr ""
5280
5281 #. type: textblock
5282 #: ../examples/guestfs-recipes.pod:75
5283 msgid ""
5284 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5285 "The useful guide below explains the options available."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../examples/guestfs-recipes.pod:78
5290 msgid ""
5291 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5292 "#content"
5293 msgstr ""
5294
5295 #. type: =head1
5296 #: ../examples/guestfs-recipes.pod:80
5297 msgid "Dump raw filesystem content from inside a disk image or VM"
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../examples/guestfs-recipes.pod:82
5302 msgid ""
5303 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5304 "filesystem content from any filesystem in a disk image or a VM (even one "
5305 "which is encrypted or buried inside an LV):"
5306 msgstr ""
5307
5308 #. type: verbatim
5309 #: ../examples/guestfs-recipes.pod:86
5310 #, fuzzy, no-wrap
5311 #| msgid ""
5312 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
5313 #| "\n"
5314 msgid ""
5315 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5316 "\n"
5317 msgstr ""
5318 " guestfish --format=raw -a disk.img --format -a another.img\n"
5319 "\n"
5320
5321 #. type: verbatim
5322 #: ../examples/guestfs-recipes.pod:88
5323 #, no-wrap
5324 msgid ""
5325 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5326 "\n"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../examples/guestfs-recipes.pod:90
5331 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5332 msgstr ""
5333
5334 #. type: =head1
5335 #: ../examples/guestfs-recipes.pod:92
5336 msgid "Edit grub configuration in a VM"
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../examples/guestfs-recipes.pod:94
5341 msgid "You can use this to:"
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../examples/guestfs-recipes.pod:100
5346 msgid "Fix a virtual machine that does not boot."
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../examples/guestfs-recipes.pod:104
5351 msgid "Change which kernel is used to boot the VM."
5352 msgstr ""
5353
5354 #. type: textblock
5355 #: ../examples/guestfs-recipes.pod:108
5356 msgid "Change kernel command line options."
5357 msgstr ""
5358
5359 #. type: textblock
5360 #: ../examples/guestfs-recipes.pod:112
5361 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5362 msgstr ""
5363
5364 #. type: verbatim
5365 #: ../examples/guestfs-recipes.pod:114
5366 #, no-wrap
5367 msgid ""
5368 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5369 "\n"
5370 msgstr ""
5371
5372 #. type: textblock
5373 #: ../examples/guestfs-recipes.pod:116
5374 msgid ""
5375 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5376 "this:"
5377 msgstr ""
5378
5379 #. type: verbatim
5380 #: ../examples/guestfs-recipes.pod:119
5381 #, no-wrap
5382 msgid ""
5383 " virt-rescue -d BrokenGuest\n"
5384 "\n"
5385 msgstr ""
5386
5387 #. type: =head1
5388 #: ../examples/guestfs-recipes.pod:121
5389 msgid "Export any directory from a VM"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:123
5394 msgid ""
5395 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5396 msgstr ""
5397
5398 #. type: verbatim
5399 #: ../examples/guestfs-recipes.pod:126
5400 #, fuzzy, no-wrap
5401 #| msgid ""
5402 #| " copy-out /home .\n"
5403 #| "\n"
5404 msgid ""
5405 " virt-copy-out -d Guest /home .\n"
5406 "\n"
5407 msgstr ""
5408 " copy-out /home .\n"
5409 "\n"
5410
5411 #. type: textblock
5412 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5413 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
5414 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
5415 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
5416 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
5417 #: ../tools/virt-win-reg.pl:706
5418 msgid "Notes:"
5419 msgstr "Нотатки:"
5420
5421 #. type: textblock
5422 #: ../examples/guestfs-recipes.pod:134
5423 msgid ""
5424 "The final dot of the command is not a printing error.  It means we want to "
5425 "copy out to the current directory."
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../examples/guestfs-recipes.pod:139
5430 msgid "This creates a directory called C<home> under the current directory."
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../examples/guestfs-recipes.pod:143
5435 msgid ""
5436 "If the guest is a Windows guest then you can use drive letters and "
5437 "backslashes, but you must prefix the path with C<win:> and quote it to "
5438 "protect it from the shell, like this:"
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-recipes.pod:147
5443 #, no-wrap
5444 msgid ""
5445 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5446 "\n"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:149
5451 msgid "To get the output as a compressed tarball, do:"
5452 msgstr ""
5453
5454 #. type: verbatim
5455 #: ../examples/guestfs-recipes.pod:151
5456 #, no-wrap
5457 msgid ""
5458 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5459 "\n"
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../examples/guestfs-recipes.pod:153
5464 msgid ""
5465 "Although it sounds tempting, this is usually not a reliable way to get a "
5466 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5467 "org/FAQ.html#backup"
5468 msgstr ""
5469
5470 #. type: =head1
5471 #: ../examples/guestfs-recipes.pod:157
5472 msgid "Find out which user is using the most space"
5473 msgstr ""
5474
5475 #. type: textblock
5476 #: ../examples/guestfs-recipes.pod:159
5477 msgid ""
5478 "This simple script examines a Linux guest to find out which user is using "
5479 "the most space in their home directory:"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../examples/guestfs-recipes.pod:162
5484 #, fuzzy, no-wrap
5485 #| msgid ""
5486 #| " #!/usr/bin/guestfish -f\n"
5487 #| "\n"
5488 msgid ""
5489 " #!/bin/sh -\n"
5490 " \n"
5491 msgstr ""
5492 " #!/usr/bin/guestfish -f\n"
5493 "\n"
5494
5495 #. type: verbatim
5496 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5497 #, fuzzy, no-wrap
5498 #| msgid ""
5499 #| " set-qemu qemu\n"
5500 #| "\n"
5501 msgid ""
5502 " set -e\n"
5503 " \n"
5504 msgstr ""
5505 " set-qemu qemu\n"
5506 "\n"
5507
5508 #. type: verbatim
5509 #: ../examples/guestfs-recipes.pod:166
5510 #, no-wrap
5511 msgid ""
5512 " vm=\"$1\"\n"
5513 " dir=/home\n"
5514 " \n"
5515 msgstr ""
5516
5517 #. type: verbatim
5518 #: ../examples/guestfs-recipes.pod:169
5519 #, fuzzy, no-wrap
5520 #| msgid ""
5521 #| " guestfish --ro -d myguest -i\n"
5522 #| "\n"
5523 msgid ""
5524 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5525 " \n"
5526 msgstr ""
5527 " guestfish --ro -d myguest -i\n"
5528 "\n"
5529
5530 #. type: verbatim
5531 #: ../examples/guestfs-recipes.pod:171
5532 #, no-wrap
5533 msgid ""
5534 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5535 "     echo -n \"$dir/$d\"\n"
5536 "     echo -ne '\\t'\n"
5537 "     guestfish --remote du \"$dir/$d\";\n"
5538 " done | sort -nr -k 2\n"
5539 " \n"
5540 msgstr ""
5541
5542 #. type: verbatim
5543 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5544 #, no-wrap
5545 msgid ""
5546 " guestfish --remote exit\n"
5547 "\n"
5548 msgstr ""
5549
5550 #. type: =head1
5551 #: ../examples/guestfs-recipes.pod:179
5552 msgid "Get DHCP address from a VM"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:181
5557 msgid ""
5558 "The link below explains the many different possible techniques for getting "
5559 "the last assigned DHCP address of a virtual machine."
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../examples/guestfs-recipes.pod:184
5564 msgid ""
5565 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5566 "a-virtual-machine-disk-image/#content"
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../examples/guestfs-recipes.pod:186
5571 msgid ""
5572 "In the libguestfs source examples directory you will find the latest version "
5573 "of the C<virt-dhcp-address.c> program."
5574 msgstr ""
5575
5576 #. type: =head1
5577 #: ../examples/guestfs-recipes.pod:189
5578 msgid "Get the operating system product name string"
5579 msgstr ""
5580
5581 #. type: textblock
5582 #: ../examples/guestfs-recipes.pod:191
5583 msgid "Save the following script into a file called C<product-name.sh>:"
5584 msgstr ""
5585
5586 #. type: verbatim
5587 #: ../examples/guestfs-recipes.pod:193
5588 #, fuzzy, no-wrap
5589 #| msgid ""
5590 #| " eval \"`guestfish --listen`\"\n"
5591 #| " guestfish --remote add-ro disk.img\n"
5592 #| " guestfish --remote run\n"
5593 #| " guestfish --remote lvs\n"
5594 #| "\n"
5595 msgid ""
5596 " #!/bin/sh -\n"
5597 " set -e\n"
5598 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5599 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5600 " guestfish --remote inspect-get-product-name \"$root\"\n"
5601 " guestfish --remote exit\n"
5602 "\n"
5603 msgstr ""
5604 " eval \"`guestfish --listen`\"\n"
5605 " guestfish --remote add-ro disk.img\n"
5606 " guestfish --remote run\n"
5607 " guestfish --remote lvs\n"
5608 "\n"
5609
5610 #. type: textblock
5611 #: ../examples/guestfs-recipes.pod:200
5612 msgid "Make the script executable and run it on a named guest:"
5613 msgstr ""
5614
5615 #. type: verbatim
5616 #: ../examples/guestfs-recipes.pod:202
5617 #, no-wrap
5618 msgid ""
5619 " # product-name.sh RHEL60x64\n"
5620 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5621 "\n"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:205
5626 msgid ""
5627 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5628 "C<xpath> command line tool or from your favourite programming language:"
5629 msgstr ""
5630
5631 #. type: verbatim
5632 #: ../examples/guestfs-recipes.pod:209
5633 #, no-wrap
5634 msgid ""
5635 " # virt-inspector RHEL60x64 > xml\n"
5636 " # xpath '//product_name' < xml\n"
5637 " Found 1 nodes:\n"
5638 " -- NODE --\n"
5639 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: =head1
5644 #: ../examples/guestfs-recipes.pod:215
5645 msgid "Get the default boot kernel for a Linux VM"
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../examples/guestfs-recipes.pod:217
5650 msgid ""
5651 "The link below contains a program to print the default boot kernel for a "
5652 "Linux VM."
5653 msgstr ""
5654
5655 #. type: textblock
5656 #: ../examples/guestfs-recipes.pod:220
5657 msgid ""
5658 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5659 "kernel-for-a-vm/#content"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:222
5664 msgid ""
5665 "It uses Augeas, and the technique is generally applicable for many different "
5666 "tasks, such as:"
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../examples/guestfs-recipes.pod:229
5671 msgid "listing the user accounts in the guest"
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../examples/guestfs-recipes.pod:233
5676 msgid "what repositories is it configured to use"
5677 msgstr ""
5678
5679 #. type: textblock
5680 #: ../examples/guestfs-recipes.pod:237
5681 msgid "what NTP servers does it connect to"
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../examples/guestfs-recipes.pod:241
5686 msgid "what were the boot messages last time it booted"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-recipes.pod:245
5691 msgid "listing who was logged in recently"
5692 msgstr ""
5693
5694 #. type: textblock
5695 #: ../examples/guestfs-recipes.pod:249
5696 msgid "http://augeas.net/"
5697 msgstr ""
5698
5699 #. type: =head1
5700 #: ../examples/guestfs-recipes.pod:251
5701 msgid "Install RPMs in a guest"
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../examples/guestfs-recipes.pod:253
5706 msgid ""
5707 "The link below contains a method to install RPMs in a guest.  In fact the "
5708 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5709 "installs them next time the guest is booted.  You could use this technique "
5710 "to install vital security updates in an offline guest."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../examples/guestfs-recipes.pod:259
5715 msgid ""
5716 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5717 msgstr ""
5718
5719 #. type: =head1
5720 #: ../examples/guestfs-recipes.pod:261
5721 msgid "List applications installed in a VM"
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../examples/guestfs-recipes.pod:263
5726 msgid "Save the following to a file C<list-apps.sh>:"
5727 msgstr ""
5728
5729 #. type: verbatim
5730 #: ../examples/guestfs-recipes.pod:265
5731 #, fuzzy, no-wrap
5732 #| msgid ""
5733 #| " eval \"`guestfish --listen`\"\n"
5734 #| " guestfish --remote add-ro disk.img\n"
5735 #| " guestfish --remote run\n"
5736 #| " guestfish --remote lvs\n"
5737 #| "\n"
5738 msgid ""
5739 " #!/bin/sh -\n"
5740 " set -e\n"
5741 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5742 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5743 " guestfish --remote inspect-list-applications \"$root\"\n"
5744 " guestfish --remote exit\n"
5745 "\n"
5746 msgstr ""
5747 " eval \"`guestfish --listen`\"\n"
5748 " guestfish --remote add-ro disk.img\n"
5749 " guestfish --remote run\n"
5750 " guestfish --remote lvs\n"
5751 "\n"
5752
5753 #. type: textblock
5754 #: ../examples/guestfs-recipes.pod:272
5755 msgid ""
5756 "Make the file executable and then you can run it on any named virtual "
5757 "machine:"
5758 msgstr ""
5759
5760 #. type: verbatim
5761 #: ../examples/guestfs-recipes.pod:275
5762 #, no-wrap
5763 msgid ""
5764 " # list-apps.sh WinGuest\n"
5765 " [0] = {\n"
5766 "   app_name: Mozilla Firefox (3.6.12)\n"
5767 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5768 "   app_epoch: 0\n"
5769 "   app_version: 3.6.12 (en-GB)\n"
5770 "   app_release:\n"
5771 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5772 "   app_trans_path:\n"
5773 "   app_publisher: Mozilla\n"
5774 "   app_url: http://www.mozilla.com/en-GB/\n"
5775 "   app_source_package:\n"
5776 "   app_summary:\n"
5777 "   app_description: Mozilla Firefox\n"
5778 " }\n"
5779 " [1] = {\n"
5780 "   app_name: VLC media player\n"
5781 "   app_display_name: VLC media player 1.1.5\n"
5782 "   app_epoch: 0\n"
5783 "   app_version: 1.1.5\n"
5784 "   app_release:\n"
5785 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5786 "   app_trans_path:\n"
5787 "   app_publisher: VideoLAN\n"
5788 "   app_url: http://www.videolan.org/\n"
5789 "   app_source_package:\n"
5790 "   app_summary:\n"
5791 "   app_description:\n"
5792 " }\n"
5793 "\n"
5794 msgstr ""
5795
5796 #. type: textblock
5797 #: ../examples/guestfs-recipes.pod:305
5798 msgid ""
5799 "If you want to run the script on disk images (instead of libvirt virtual "
5800 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5801 ">."
5802 msgstr ""
5803
5804 #. type: =head1
5805 #: ../examples/guestfs-recipes.pod:309
5806 msgid "List files and directories in a VM"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../examples/guestfs-recipes.pod:311
5811 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5812 msgstr ""
5813
5814 #. type: verbatim
5815 #: ../examples/guestfs-recipes.pod:313
5816 #, fuzzy, no-wrap
5817 #| msgid ""
5818 #| " guestfish --ro -d myguest -i\n"
5819 #| "\n"
5820 msgid ""
5821 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5822 "\n"
5823 msgstr ""
5824 " guestfish --ro -d myguest -i\n"
5825 "\n"
5826
5827 #. type: =head1
5828 #: ../examples/guestfs-recipes.pod:315
5829 msgid "List services in a Windows VM"
5830 msgstr ""
5831
5832 #. type: textblock
5833 #: ../examples/guestfs-recipes.pod:317
5834 msgid ""
5835 "The link below contains a script that can be used to list out the services "
5836 "from a Windows VM, and whether those services run at boot time or are loaded "
5837 "on demand."
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-recipes.pod:321
5842 msgid ""
5843 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5844 "#content"
5845 msgstr ""
5846
5847 #. type: =head1
5848 #: ../examples/guestfs-recipes.pod:323
5849 msgid "Make a disk image sparse"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../examples/guestfs-recipes.pod:325
5854 msgid ""
5855 "The link below contains some guides for making a disk image sparse (or "
5856 "reintroducing sparseness)."
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../examples/guestfs-recipes.pod:328
5861 msgid ""
5862 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5863 msgstr ""
5864
5865 #. type: =head1
5866 #: ../examples/guestfs-recipes.pod:330
5867 msgid "Monitor disk usage over time"
5868 msgstr ""
5869
5870 #. type: textblock
5871 #: ../examples/guestfs-recipes.pod:332
5872 msgid ""
5873 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5874 "The link below contains a guide."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../examples/guestfs-recipes.pod:335
5879 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5880 msgstr ""
5881
5882 #. type: =head1
5883 #: ../examples/guestfs-recipes.pod:337
5884 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5885 msgstr ""
5886
5887 #. type: textblock
5888 #: ../examples/guestfs-recipes.pod:339
5889 msgid ""
5890 "L<guestfish(1)> plus the tools described in the link below can be used to "
5891 "read out the Windows Event Log from any virtual machine running Windows "
5892 "Vista or a later version."
5893 msgstr ""
5894
5895 #. type: textblock
5896 #: ../examples/guestfs-recipes.pod:343
5897 msgid ""
5898 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5899 "guestfish/#content"
5900 msgstr ""
5901
5902 #. type: =head1
5903 #: ../examples/guestfs-recipes.pod:345
5904 msgid "Remove root password (Linux)"
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../examples/guestfs-recipes.pod:347
5909 msgid ""
5910 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5911 "files.  One use is to remove the root password from a Linux guest:"
5912 msgstr ""
5913
5914 #. type: verbatim
5915 #: ../examples/guestfs-recipes.pod:350
5916 #, no-wrap
5917 msgid ""
5918 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5919 "\n"
5920 msgstr ""
5921
5922 #. type: =head1
5923 #: ../examples/guestfs-recipes.pod:352
5924 msgid "Remove Administrator password (Windows)"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-recipes.pod:354
5929 msgid ""
5930 "The link below contains one technique for removing the Administrator "
5931 "password from a Windows VM, or to be more precise, it gives you a command "
5932 "prompt the next time you log in which you can use to bypass any security:"
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../examples/guestfs-recipes.pod:359
5937 msgid ""
5938 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5939 "administrator-password-with-guestfish/"
5940 msgstr ""
5941
5942 #. type: =head1
5943 #: ../examples/guestfs-recipes.pod:361
5944 msgid "Unpack a live CD"
5945 msgstr ""
5946
5947 #. type: textblock
5948 #: ../examples/guestfs-recipes.pod:363
5949 msgid ""
5950 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5951 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5952 "layers, as outlined in the guide below."
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../examples/guestfs-recipes.pod:367
5957 msgid ""
5958 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5959 "cd/#content"
5960 msgstr ""
5961
5962 #. type: =head1
5963 #: ../examples/guestfs-recipes.pod:369
5964 msgid "Uploading and downloading files"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../examples/guestfs-recipes.pod:371
5969 msgid ""
5970 "The link below contains general tips on uploading (copying in)  and "
5971 "downloading (copying out) files from VMs."
5972 msgstr ""
5973
5974 #. type: textblock
5975 #: ../examples/guestfs-recipes.pod:374
5976 msgid ""
5977 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5978 msgstr ""
5979
5980 #. type: =head1
5981 #: ../examples/guestfs-recipes.pod:376
5982 msgid "Use libguestfs tools on VMware ESX guests"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../examples/guestfs-recipes.pod:378
5987 msgid ""
5988 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5989 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../examples/guestfs-recipes.pod:382
5994 msgid ""
5995 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5996 "guests/#content"
5997 msgstr ""
5998
5999 #. type: textblock
6000 #: ../examples/guestfs-recipes.pod:386
6001 #, fuzzy
6002 #| msgid ""
6003 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6004 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
6005 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6006 msgid ""
6007 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
6008 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
6009 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
6010 msgstr ""
6011 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6012 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
6013 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6014
6015 #. type: textblock
6016 #: ../examples/guestfs-recipes.pod:403
6017 #, fuzzy
6018 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
6019 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
6020 msgstr "© Red Hat Inc., 2009–2010"
6021
6022 #. type: =head2
6023 #: ../fish/guestfish-actions.pod:1
6024 msgid "add-cdrom"
6025 msgstr ""
6026
6027 #. type: verbatim
6028 #: ../fish/guestfish-actions.pod:3
6029 #, no-wrap
6030 msgid ""
6031 " add-cdrom filename\n"
6032 "\n"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6037 msgid "This function adds a virtual CD-ROM disk image to the guest."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6042 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:15
6047 msgid ""
6048 "This call checks for the existence of C<filename>.  This stops you from "
6049 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6050 "and C<http:> URLs.  To specify those, use the general L</config> call "
6051 "instead."
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:22
6056 msgid ""
6057 "If you just want to add an ISO file (often you use this as an efficient way "
6058 "to transfer large files into the guest), then you should probably use L</add-"
6059 "drive-ro> instead."
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
6064 #: ../fish/guestfish-actions.pod:177
6065 msgid ""
6066 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6067 "instead."
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
6072 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
6073 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
6074 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
6075 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
6076 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
6077 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
6078 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
6079 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6080 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
6081 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
6082 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
6083 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
6084 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
6085 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
6086 #: ../src/guestfs-actions.pod:8040
6087 msgid ""
6088 "Deprecated functions will not be removed from the API, but the fact that "
6089 "they are deprecated indicates that there are problems with correct use of "
6090 "these functions."
6091 msgstr ""
6092
6093 #. type: =head2
6094 #: ../fish/guestfish-actions.pod:35
6095 msgid "add-domain"
6096 msgstr "add-domain"
6097
6098 #. type: =head2
6099 #: ../fish/guestfish-actions.pod:37
6100 msgid "domain"
6101 msgstr ""
6102
6103 #. type: verbatim
6104 #: ../fish/guestfish-actions.pod:39
6105 #, no-wrap
6106 msgid ""
6107 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
6108 "\n"
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../fish/guestfish-actions.pod:41
6113 msgid ""
6114 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6115 "It works by connecting to libvirt, requesting the domain and domain XML from "
6116 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
6121 msgid ""
6122 "The number of disks added is returned.  This operation is atomic: if an "
6123 "error is returned, then no disks are added."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
6128 msgid ""
6129 "This function does some minimal checks to make sure the libvirt domain is "
6130 "not running (unless C<readonly> is true).  In a future version we will try "
6131 "to acquire the libvirt lock on each disk."
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
6136 msgid ""
6137 "Disks must be accessible locally.  This often means that adding disks from a "
6138 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6139 "unless those disks are accessible via the same device path locally too."
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
6144 msgid ""
6145 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6146 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6147 "libvirt URI (or one set through an environment variable, see the libvirt "
6148 "documentation for full details)."
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
6153 msgid ""
6154 "The optional C<live> flag controls whether this call will try to connect to "
6155 "a running virtual machine C<guestfsd> process if it sees a suitable "
6156 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6157 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6158 "DAEMONS> for more information."
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
6163 msgid ""
6164 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6165 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6166 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6167 "as usual."
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:76
6172 msgid ""
6173 "The other optional parameters are passed directly through to L</add-drive-"
6174 "opts>."
6175 msgstr ""
6176
6177 #. type: textblock
6178 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
6179 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
6180 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
6181 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
6182 #: ../fish/guestfish-actions.pod:3504
6183 msgid ""
6184 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:81
6189 msgid "add-drive"
6190 msgstr "add-drive"
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:83
6194 #, no-wrap
6195 msgid ""
6196 " add-drive filename\n"
6197 "\n"
6198 msgstr ""
6199 " add-drive назва_файла\n"
6200 "\n"
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:85
6204 msgid ""
6205 "This function is the equivalent of calling L</add-drive-opts> with no "
6206 "optional parameters, so the disk is added writable, with the format being "
6207 "detected automatically."
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:89
6212 msgid ""
6213 "Automatic detection of the format opens you up to a potential security hole "
6214 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6215 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6216 "you should think about replacing calls to this function with calls to L</add-"
6217 "drive-opts>, and specifying the format."
6218 msgstr ""
6219
6220 #. type: =head2
6221 #: ../fish/guestfish-actions.pod:96
6222 msgid "add-drive-opts"
6223 msgstr "add-drive-opts"
6224
6225 #. type: =head2
6226 #: ../fish/guestfish-actions.pod:98
6227 msgid "add"
6228 msgstr "add"
6229
6230 #. type: verbatim
6231 #: ../fish/guestfish-actions.pod:100
6232 #, no-wrap
6233 msgid ""
6234 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
6235 "\n"
6236 msgstr ""
6237
6238 #. type: textblock
6239 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
6240 msgid ""
6241 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6242 "The first time you call this function, the disk appears as C</dev/sda>, the "
6243 "second time as C</dev/sdb>, and so on."
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
6248 msgid ""
6249 "You don't necessarily need to be root when using libguestfs.  However you "
6250 "obviously do need sufficient permissions to access the filename for whatever "
6251 "operations you want to perform (ie. read access if you just want to read the "
6252 "image or write access if you want to modify the image)."
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
6257 msgid "This call checks that C<filename> exists."
6258 msgstr ""
6259
6260 #. type: textblock
6261 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
6262 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
6263 msgid "The optional arguments are:"
6264 msgstr ""
6265
6266 #. type: =item
6267 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
6268 msgid "C<readonly>"
6269 msgstr "C<readonly>"
6270
6271 #. type: textblock
6272 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
6273 msgid ""
6274 "If true then the image is treated as read-only.  Writes are still allowed, "
6275 "but they are stored in a temporary snapshot overlay which is discarded at "
6276 "the end.  The disk that you add is not modified."
6277 msgstr ""
6278
6279 #. type: =item
6280 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
6281 msgid "C<format>"
6282 msgstr "C<format>"
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:127
6286 msgid ""
6287 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6288 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6289 "include C<raw> and C<qcow2>."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
6294 msgid ""
6295 "Automatic detection of the format opens you up to a potential security hole "
6296 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6297 "RHBZ#642934.  Specifying the format closes this security hole."
6298 msgstr ""
6299
6300 #. type: =item
6301 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
6302 msgid "C<iface>"
6303 msgstr "C<iface>"
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:138
6307 msgid ""
6308 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6309 "add-drive-with-if> call (q.v.)"
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:145
6314 msgid "add-drive-ro"
6315 msgstr "add-drive-ro"
6316
6317 #. type: =head2
6318 #: ../fish/guestfish-actions.pod:147
6319 msgid "add-ro"
6320 msgstr "add-ro"
6321
6322 #. type: verbatim
6323 #: ../fish/guestfish-actions.pod:149
6324 #, no-wrap
6325 msgid ""
6326 " add-drive-ro filename\n"
6327 "\n"
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:151
6332 msgid ""
6333 "This function is the equivalent of calling L</add-drive-opts> with the "
6334 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6335 "is added read-only, with the format being detected automatically."
6336 msgstr ""
6337
6338 #. type: =head2
6339 #: ../fish/guestfish-actions.pod:156
6340 msgid "add-drive-ro-with-if"
6341 msgstr ""
6342
6343 #. type: verbatim
6344 #: ../fish/guestfish-actions.pod:158
6345 #, no-wrap
6346 msgid ""
6347 " add-drive-ro-with-if filename iface\n"
6348 "\n"
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:160
6353 msgid ""
6354 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6355 "interface emulation to use at run time."
6356 msgstr ""
6357
6358 #. type: =head2
6359 #: ../fish/guestfish-actions.pod:170
6360 msgid "add-drive-with-if"
6361 msgstr ""
6362
6363 #. type: verbatim
6364 #: ../fish/guestfish-actions.pod:172
6365 #, no-wrap
6366 msgid ""
6367 " add-drive-with-if filename iface\n"
6368 "\n"
6369 msgstr ""
6370
6371 #. type: textblock
6372 #: ../fish/guestfish-actions.pod:174
6373 msgid ""
6374 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6375 "interface emulation to use at run time."
6376 msgstr ""
6377
6378 #. type: =head2
6379 #: ../fish/guestfish-actions.pod:184
6380 msgid "aug-clear"
6381 msgstr ""
6382
6383 #. type: verbatim
6384 #: ../fish/guestfish-actions.pod:186
6385 #, no-wrap
6386 msgid ""
6387 " aug-clear augpath\n"
6388 "\n"
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
6393 msgid ""
6394 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6395 "L<augtool(1)> C<clear> command."
6396 msgstr ""
6397
6398 #. type: =head2
6399 #: ../fish/guestfish-actions.pod:191
6400 msgid "aug-close"
6401 msgstr ""
6402
6403 #. type: verbatim
6404 #: ../fish/guestfish-actions.pod:193
6405 #, no-wrap
6406 msgid ""
6407 " aug-close\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:195
6413 msgid ""
6414 "Close the current Augeas handle and free up any resources used by it.  After "
6415 "calling this, you have to call L</aug-init> again before you can use any "
6416 "other Augeas functions."
6417 msgstr ""
6418
6419 #. type: =head2
6420 #: ../fish/guestfish-actions.pod:200
6421 msgid "aug-defnode"
6422 msgstr ""
6423
6424 #. type: verbatim
6425 #: ../fish/guestfish-actions.pod:202
6426 #, no-wrap
6427 msgid ""
6428 " aug-defnode name expr val\n"
6429 "\n"
6430 msgstr ""
6431
6432 #. type: textblock
6433 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
6434 msgid ""
6435 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:207
6440 msgid ""
6441 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6442 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6443 "containing that single node."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
6448 msgid ""
6449 "On success this returns a pair containing the number of nodes in the "
6450 "nodeset, and a boolean flag if a node was created."
6451 msgstr ""
6452
6453 #. type: =head2
6454 #: ../fish/guestfish-actions.pod:215
6455 msgid "aug-defvar"
6456 msgstr ""
6457
6458 #. type: verbatim
6459 #: ../fish/guestfish-actions.pod:217
6460 #, no-wrap
6461 msgid ""
6462 " aug-defvar name expr\n"
6463 "\n"
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
6468 msgid ""
6469 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6470 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
6475 msgid ""
6476 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6477 "evaluates to something which is not a nodeset."
6478 msgstr ""
6479
6480 #. type: =head2
6481 #: ../fish/guestfish-actions.pod:226
6482 msgid "aug-get"
6483 msgstr ""
6484
6485 #. type: verbatim
6486 #: ../fish/guestfish-actions.pod:228
6487 #, no-wrap
6488 msgid ""
6489 " aug-get augpath\n"
6490 "\n"
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
6495 msgid ""
6496 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6497 "node, the C<value> is returned."
6498 msgstr ""
6499
6500 #. type: =head2
6501 #: ../fish/guestfish-actions.pod:233
6502 msgid "aug-init"
6503 msgstr ""
6504
6505 #. type: verbatim
6506 #: ../fish/guestfish-actions.pod:235
6507 #, no-wrap
6508 msgid ""
6509 " aug-init root flags\n"
6510 "\n"
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
6515 msgid ""
6516 "Create a new Augeas handle for editing configuration files.  If there was "
6517 "any previous Augeas handle associated with this guestfs session, then it is "
6518 "closed."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:241
6523 msgid "You must call this before using any other L</aug-*> commands."
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
6528 msgid ""
6529 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
6534 msgid ""
6535 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6536 "logical I<or> of the following integers:"
6537 msgstr ""
6538
6539 #. type: =item
6540 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
6541 msgid "C<AUG_SAVE_BACKUP> = 1"
6542 msgstr "C<AUG_SAVE_BACKUP> = 1"
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
6546 msgid "Keep the original file with a C<.augsave> extension."
6547 msgstr ""
6548
6549 #. type: =item
6550 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
6551 msgid "C<AUG_SAVE_NEWFILE> = 2"
6552 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6553
6554 #. type: textblock
6555 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
6556 msgid ""
6557 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6558 "original.  Overrides C<AUG_SAVE_BACKUP>."
6559 msgstr ""
6560
6561 #. type: =item
6562 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
6563 msgid "C<AUG_TYPE_CHECK> = 4"
6564 msgstr "C<AUG_TYPE_CHECK> = 4"
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
6568 msgid "Typecheck lenses."
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:266
6573 msgid ""
6574 "This option is only useful when debugging Augeas lenses.  Use of this option "
6575 "may require additional memory for the libguestfs appliance.  You may need to "
6576 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6577 msgstr ""
6578
6579 #. type: =item
6580 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
6581 msgid "C<AUG_NO_STDINC> = 8"
6582 msgstr "C<AUG_NO_STDINC> = 8"
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
6586 msgid "Do not use standard load path for modules."
6587 msgstr ""
6588
6589 #. type: =item
6590 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
6591 msgid "C<AUG_SAVE_NOOP> = 16"
6592 msgstr "C<AUG_SAVE_NOOP> = 16"
6593
6594 #. type: textblock
6595 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
6596 msgid "Make save a no-op, just record what would have been changed."
6597 msgstr ""
6598
6599 #. type: =item
6600 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
6601 msgid "C<AUG_NO_LOAD> = 32"
6602 msgstr "C<AUG_NO_LOAD> = 32"
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:281
6606 msgid "Do not load the tree in L</aug-init>."
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../fish/guestfish-actions.pod:285
6611 msgid "To close the handle, you can call L</aug-close>."
6612 msgstr ""
6613
6614 #. type: textblock
6615 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
6616 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6617 msgstr ""
6618
6619 #. type: =head2
6620 #: ../fish/guestfish-actions.pod:289
6621 msgid "aug-insert"
6622 msgstr ""
6623
6624 #. type: verbatim
6625 #: ../fish/guestfish-actions.pod:291
6626 #, no-wrap
6627 msgid ""
6628 " aug-insert augpath label true|false\n"
6629 "\n"
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
6634 msgid ""
6635 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6636 "or after C<path> (depending on the boolean flag C<before>)."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
6641 msgid ""
6642 "C<path> must match exactly one existing node in the tree, and C<label> must "
6643 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6644 msgstr ""
6645
6646 #. type: =head2
6647 #: ../fish/guestfish-actions.pod:301
6648 msgid "aug-load"
6649 msgstr ""
6650
6651 #. type: verbatim
6652 #: ../fish/guestfish-actions.pod:303
6653 #, no-wrap
6654 msgid ""
6655 " aug-load\n"
6656 "\n"
6657 msgstr ""
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
6661 msgid "Load files into the tree."
6662 msgstr "Завантажити файли до ієрархії."
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
6666 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6667 msgstr ""
6668
6669 #. type: =head2
6670 #: ../fish/guestfish-actions.pod:310
6671 msgid "aug-ls"
6672 msgstr ""
6673
6674 #. type: verbatim
6675 #: ../fish/guestfish-actions.pod:312
6676 #, no-wrap
6677 msgid ""
6678 " aug-ls augpath\n"
6679 "\n"
6680 msgstr ""
6681
6682 #. type: textblock
6683 #: ../fish/guestfish-actions.pod:314
6684 msgid ""
6685 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6686 "resulting nodes into alphabetical order."
6687 msgstr ""
6688
6689 #. type: =head2
6690 #: ../fish/guestfish-actions.pod:317
6691 msgid "aug-match"
6692 msgstr ""
6693
6694 #. type: verbatim
6695 #: ../fish/guestfish-actions.pod:319
6696 #, no-wrap
6697 msgid ""
6698 " aug-match augpath\n"
6699 "\n"
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
6704 msgid ""
6705 "Returns a list of paths which match the path expression C<path>.  The "
6706 "returned paths are sufficiently qualified so that they match exactly one "
6707 "node in the current tree."
6708 msgstr ""
6709
6710 #. type: =head2
6711 #: ../fish/guestfish-actions.pod:325
6712 msgid "aug-mv"
6713 msgstr ""
6714
6715 #. type: verbatim
6716 #: ../fish/guestfish-actions.pod:327
6717 #, no-wrap
6718 msgid ""
6719 " aug-mv src dest\n"
6720 "\n"
6721 msgstr ""
6722
6723 #. type: textblock
6724 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
6725 msgid ""
6726 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6727 "C<dest> is overwritten if it exists."
6728 msgstr ""
6729
6730 #. type: =head2
6731 #: ../fish/guestfish-actions.pod:332
6732 msgid "aug-rm"
6733 msgstr ""
6734
6735 #. type: verbatim
6736 #: ../fish/guestfish-actions.pod:334
6737 #, no-wrap
6738 msgid ""
6739 " aug-rm augpath\n"
6740 "\n"
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
6745 msgid "Remove C<path> and all of its children."
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
6750 msgid "On success this returns the number of entries which were removed."
6751 msgstr ""
6752
6753 #. type: =head2
6754 #: ../fish/guestfish-actions.pod:340
6755 msgid "aug-save"
6756 msgstr ""
6757
6758 #. type: verbatim
6759 #: ../fish/guestfish-actions.pod:342
6760 #, no-wrap
6761 msgid ""
6762 " aug-save\n"
6763 "\n"
6764 msgstr ""
6765
6766 #. type: textblock
6767 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
6768 msgid "This writes all pending changes to disk."
6769 msgstr ""
6770
6771 #. type: textblock
6772 #: ../fish/guestfish-actions.pod:346
6773 msgid ""
6774 "The flags which were passed to L</aug-init> affect exactly how files are "
6775 "saved."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:349
6780 msgid "aug-set"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:351
6785 #, no-wrap
6786 msgid ""
6787 " aug-set augpath val\n"
6788 "\n"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
6793 msgid "Set the value associated with C<path> to C<val>."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:355
6798 msgid ""
6799 "In the Augeas API, it is possible to clear a node by setting the value to "
6800 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6801 "this call.  Instead you must use the L</aug-clear> call."
6802 msgstr ""
6803
6804 #. type: =head2
6805 #: ../fish/guestfish-actions.pod:360
6806 msgid "available"
6807 msgstr ""
6808
6809 #. type: verbatim
6810 #: ../fish/guestfish-actions.pod:362
6811 #, no-wrap
6812 msgid ""
6813 " available 'groups ...'\n"
6814 "\n"
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
6819 msgid ""
6820 "This command is used to check the availability of some groups of "
6821 "functionality in the appliance, which not all builds of the libguestfs "
6822 "appliance will be able to provide."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:368
6827 msgid ""
6828 "The libguestfs groups, and the functions that those groups correspond to, "
6829 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6830 "runtime by calling L</available-all-groups>."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
6835 msgid ""
6836 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6837 "\"]> would check for the availability of the Linux inotify functions and "
6838 "Augeas (configuration file editing) functions."
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
6843 msgid "The command returns no error if I<all> requested groups are available."
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
6848 msgid ""
6849 "It fails with an error if one or more of the requested groups is unavailable "
6850 "in the appliance."
6851 msgstr ""
6852
6853 #. type: textblock
6854 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
6855 msgid ""
6856 "If an unknown group name is included in the list of groups then an error is "
6857 "always returned."
6858 msgstr ""
6859
6860 #. type: textblock
6861 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
6862 msgid "I<Notes:>"
6863 msgstr "I<Нотатки:>"
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:392
6867 msgid "You must call L</launch> before calling this function."
6868 msgstr ""
6869
6870 #. type: textblock
6871 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
6872 msgid ""
6873 "The reason is because we don't know what groups are supported by the "
6874 "appliance/daemon until it is running and can be queried."
6875 msgstr ""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
6879 msgid ""
6880 "If a group of functions is available, this does not necessarily mean that "
6881 "they will work.  You still have to check for errors when calling individual "
6882 "API functions even if they are available."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
6887 msgid ""
6888 "It is usually the job of distro packagers to build complete functionality "
6889 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6890 "with all requirements satisfied, will support everything."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:414
6895 msgid ""
6896 "This call was added in version C<1.0.80>.  In previous versions of "
6897 "libguestfs all you could do would be to speculatively execute a command to "
6898 "find out if the daemon implemented it.  See also L</version>."
6899 msgstr ""
6900
6901 #. type: =head2
6902 #: ../fish/guestfish-actions.pod:421
6903 msgid "available-all-groups"
6904 msgstr ""
6905
6906 #. type: verbatim
6907 #: ../fish/guestfish-actions.pod:423
6908 #, no-wrap
6909 msgid ""
6910 " available-all-groups\n"
6911 "\n"
6912 msgstr ""
6913
6914 #. type: textblock
6915 #: ../fish/guestfish-actions.pod:425
6916 msgid ""
6917 "This command returns a list of all optional groups that this daemon knows "
6918 "about.  Note this returns both supported and unsupported groups.  To find "
6919 "out which ones the daemon can actually support you have to call L</"
6920 "available> on each member of the returned list."
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:431
6925 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6926 msgstr ""
6927
6928 #. type: =head2
6929 #: ../fish/guestfish-actions.pod:433
6930 msgid "base64-in"
6931 msgstr ""
6932
6933 #. type: verbatim
6934 #: ../fish/guestfish-actions.pod:435
6935 #, no-wrap
6936 msgid ""
6937 " base64-in (base64file|-) filename\n"
6938 "\n"
6939 msgstr ""
6940
6941 #. type: textblock
6942 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6943 msgid ""
6944 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
6949 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
6950 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
6951 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
6952 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
6953 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
6954 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
6955 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
6956 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6957 msgstr ""
6958
6959 #. type: =head2
6960 #: ../fish/guestfish-actions.pod:442
6961 msgid "base64-out"
6962 msgstr ""
6963
6964 #. type: verbatim
6965 #: ../fish/guestfish-actions.pod:444
6966 #, no-wrap
6967 msgid ""
6968 " base64-out filename (base64file|-)\n"
6969 "\n"
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6974 msgid ""
6975 "This command downloads the contents of C<filename>, writing it out to local "
6976 "file C<base64file> encoded as base64."
6977 msgstr ""
6978
6979 #. type: =head2
6980 #: ../fish/guestfish-actions.pod:451
6981 msgid "blockdev-flushbufs"
6982 msgstr ""
6983
6984 #. type: verbatim
6985 #: ../fish/guestfish-actions.pod:453
6986 #, no-wrap
6987 msgid ""
6988 " blockdev-flushbufs device\n"
6989 "\n"
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6994 msgid ""
6995 "This tells the kernel to flush internal buffers associated with C<device>."
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
7000 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
7001 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
7002 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
7003 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
7004 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
7005 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
7006 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
7007 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
7008 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
7009 msgid "This uses the L<blockdev(8)> command."
7010 msgstr ""
7011
7012 #. type: =head2
7013 #: ../fish/guestfish-actions.pod:460
7014 msgid "blockdev-getbsz"
7015 msgstr ""
7016
7017 #. type: verbatim
7018 #: ../fish/guestfish-actions.pod:462
7019 #, no-wrap
7020 msgid ""
7021 " blockdev-getbsz device\n"
7022 "\n"
7023 msgstr ""
7024
7025 #. type: textblock
7026 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
7027 msgid "This returns the block size of a device."
7028 msgstr ""
7029
7030 #. type: textblock
7031 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
7032 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
7033 msgid ""
7034 "(Note this is different from both I<size in blocks> and I<filesystem block "
7035 "size>)."
7036 msgstr ""
7037
7038 #. type: =head2
7039 #: ../fish/guestfish-actions.pod:471
7040 msgid "blockdev-getro"
7041 msgstr ""
7042
7043 #. type: verbatim
7044 #: ../fish/guestfish-actions.pod:473
7045 #, no-wrap
7046 msgid ""
7047 " blockdev-getro device\n"
7048 "\n"
7049 msgstr ""
7050
7051 #. type: textblock
7052 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
7053 msgid ""
7054 "Returns a boolean indicating if the block device is read-only (true if read-"
7055 "only, false if not)."
7056 msgstr ""
7057
7058 #. type: =head2
7059 #: ../fish/guestfish-actions.pod:480
7060 msgid "blockdev-getsize64"
7061 msgstr ""
7062
7063 #. type: verbatim
7064 #: ../fish/guestfish-actions.pod:482
7065 #, no-wrap
7066 msgid ""
7067 " blockdev-getsize64 device\n"
7068 "\n"
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
7073 msgid "This returns the size of the device in bytes."
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../fish/guestfish-actions.pod:486
7078 msgid "See also L</blockdev-getsz>."
7079 msgstr ""
7080
7081 #. type: =head2
7082 #: ../fish/guestfish-actions.pod:490
7083 msgid "blockdev-getss"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../fish/guestfish-actions.pod:492
7088 #, no-wrap
7089 msgid ""
7090 " blockdev-getss device\n"
7091 "\n"
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
7096 msgid ""
7097 "This returns the size of sectors on a block device.  Usually 512, but can be "
7098 "larger for modern devices."
7099 msgstr ""
7100
7101 #. type: textblock
7102 #: ../fish/guestfish-actions.pod:497
7103 msgid ""
7104 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7105 msgstr ""
7106
7107 #. type: =head2
7108 #: ../fish/guestfish-actions.pod:502
7109 msgid "blockdev-getsz"
7110 msgstr ""
7111
7112 #. type: verbatim
7113 #: ../fish/guestfish-actions.pod:504
7114 #, no-wrap
7115 msgid ""
7116 " blockdev-getsz device\n"
7117 "\n"
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
7122 msgid ""
7123 "This returns the size of the device in units of 512-byte sectors (even if "
7124 "the sectorsize isn't 512 bytes ... weird)."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:509
7129 msgid ""
7130 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7131 "blockdev-getsize64> for the more useful I<size in bytes>."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:515
7136 msgid "blockdev-rereadpt"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:517
7141 #, no-wrap
7142 msgid ""
7143 " blockdev-rereadpt device\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
7149 msgid "Reread the partition table on C<device>."
7150 msgstr ""
7151
7152 #. type: =head2
7153 #: ../fish/guestfish-actions.pod:523
7154 msgid "blockdev-setbsz"
7155 msgstr ""
7156
7157 #. type: verbatim
7158 #: ../fish/guestfish-actions.pod:525
7159 #, no-wrap
7160 msgid ""
7161 " blockdev-setbsz device blocksize\n"
7162 "\n"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
7167 msgid "This sets the block size of a device."
7168 msgstr ""
7169
7170 #. type: =head2
7171 #: ../fish/guestfish-actions.pod:534
7172 msgid "blockdev-setro"
7173 msgstr ""
7174
7175 #. type: verbatim
7176 #: ../fish/guestfish-actions.pod:536
7177 #, no-wrap
7178 msgid ""
7179 " blockdev-setro device\n"
7180 "\n"
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
7185 msgid "Sets the block device named C<device> to read-only."
7186 msgstr ""
7187
7188 #. type: =head2
7189 #: ../fish/guestfish-actions.pod:542
7190 msgid "blockdev-setrw"
7191 msgstr ""
7192
7193 #. type: verbatim
7194 #: ../fish/guestfish-actions.pod:544
7195 #, no-wrap
7196 msgid ""
7197 " blockdev-setrw device\n"
7198 "\n"
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
7203 msgid "Sets the block device named C<device> to read-write."
7204 msgstr ""
7205
7206 #. type: =head2
7207 #: ../fish/guestfish-actions.pod:550
7208 msgid "btrfs-filesystem-resize"
7209 msgstr ""
7210
7211 #. type: verbatim
7212 #: ../fish/guestfish-actions.pod:552
7213 #, no-wrap
7214 msgid ""
7215 " btrfs-filesystem-resize mountpoint [size:..]\n"
7216 "\n"
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
7221 msgid "This command resizes a btrfs filesystem."
7222 msgstr ""
7223
7224 #. type: textblock
7225 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
7226 msgid ""
7227 "Note that unlike other resize calls, the filesystem has to be mounted and "
7228 "the parameter is the mountpoint not the device (this is a requirement of "
7229 "btrfs itself)."
7230 msgstr ""
7231
7232 #. type: textblock
7233 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
7234 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
7235 msgid "The optional parameters are:"
7236 msgstr ""
7237
7238 #. type: =item
7239 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
7240 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
7241 msgid "C<size>"
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
7246 msgid ""
7247 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7248 "resized to the maximum size."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
7253 msgid "See also L<btrfs(8)>."
7254 msgstr ""
7255
7256 #. type: =head2
7257 #: ../fish/guestfish-actions.pod:575
7258 msgid "case-sensitive-path"
7259 msgstr ""
7260
7261 #. type: verbatim
7262 #: ../fish/guestfish-actions.pod:577
7263 #, no-wrap
7264 msgid ""
7265 " case-sensitive-path path\n"
7266 "\n"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
7271 msgid ""
7272 "This can be used to resolve case insensitive paths on a filesystem which is "
7273 "case sensitive.  The use case is to resolve paths which you have read from "
7274 "Windows configuration files or the Windows Registry, to the true path."
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
7279 msgid ""
7280 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7281 "(and probably others), which is that although the underlying filesystem is "
7282 "case-insensitive, the driver exports the filesystem to Linux as case-"
7283 "sensitive."
7284 msgstr ""
7285
7286 #. type: textblock
7287 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
7288 msgid ""
7289 "One consequence of this is that special directories such as C<c:\\windows> "
7290 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7291 "precise details of how they were created.  In Windows itself this would not "
7292 "be a problem."
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
7297 msgid ""
7298 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7299 "#posixfilenames1>"
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
7304 msgid ""
7305 "This function resolves the true case of each element in the path and returns "
7306 "the case-sensitive path."
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../fish/guestfish-actions.pod:601
7311 msgid ""
7312 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7313 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7314 "the directories were originally created under Windows)."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
7319 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:609
7324 msgid "See also L</realpath>."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:611
7329 msgid "cat"
7330 msgstr "cat"
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:613
7334 #, no-wrap
7335 msgid ""
7336 " cat path\n"
7337 "\n"
7338 msgstr ""
7339 " cat шлях\n"
7340 "\n"
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
7344 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
7345 msgid "Return the contents of the file named C<path>."
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../fish/guestfish-actions.pod:617
7350 msgid ""
7351 "Note that this function cannot correctly handle binary files (specifically, "
7352 "files containing C<\\0> character which is treated as end of string).  For "
7353 "those you need to use the L</read-file> or L</download> functions which have "
7354 "a more complex interface."
7355 msgstr ""
7356
7357 #. type: textblock
7358 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
7359 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
7360 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
7361 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
7362 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
7363 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
7364 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
7365 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
7366 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
7367 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
7368 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
7369 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
7370 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
7371 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
7372 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
7373 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
7374 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
7375 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
7376 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
7377 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
7378 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
7379 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
7380 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
7381 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
7382 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
7383 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
7384 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
7385 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
7386 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
7387 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
7388 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
7389 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
7390 msgid ""
7391 "Because of the message protocol, there is a transfer limit of somewhere "
7392 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7393 msgstr ""
7394
7395 #. type: =head2
7396 #: ../fish/guestfish-actions.pod:625
7397 msgid "checksum"
7398 msgstr "checksum"
7399
7400 #. type: verbatim
7401 #: ../fish/guestfish-actions.pod:627
7402 #, no-wrap
7403 msgid ""
7404 " checksum csumtype path\n"
7405 "\n"
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
7410 msgid ""
7411 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
7416 msgid ""
7417 "The type of checksum to compute is given by the C<csumtype> parameter which "
7418 "must have one of the following values:"
7419 msgstr ""
7420
7421 #. type: =item
7422 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
7423 msgid "C<crc>"
7424 msgstr "C<crc>"
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
7428 msgid ""
7429 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7430 "C<cksum> command."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
7435 msgid "C<md5>"
7436 msgstr "C<md5>"
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
7440 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
7445 msgid "C<sha1>"
7446 msgstr "C<sha1>"
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
7450 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
7455 msgid "C<sha224>"
7456 msgstr "C<sha224>"
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
7460 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
7465 msgid "C<sha256>"
7466 msgstr "C<sha256>"
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
7470 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
7475 msgid "C<sha384>"
7476 msgstr "C<sha384>"
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
7480 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7481 msgstr ""
7482
7483 #. type: =item
7484 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
7485 msgid "C<sha512>"
7486 msgstr "C<sha512>"
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
7490 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
7495 msgid "The checksum is returned as a printable string."
7496 msgstr ""
7497
7498 #. type: textblock
7499 #: ../fish/guestfish-actions.pod:670
7500 msgid "To get the checksum for a device, use L</checksum-device>."
7501 msgstr ""
7502
7503 #. type: textblock
7504 #: ../fish/guestfish-actions.pod:672
7505 msgid "To get the checksums for many files, use L</checksums-out>."
7506 msgstr ""
7507
7508 #. type: =head2
7509 #: ../fish/guestfish-actions.pod:674
7510 msgid "checksum-device"
7511 msgstr "checksum-device"
7512
7513 #. type: verbatim
7514 #: ../fish/guestfish-actions.pod:676
7515 #, no-wrap
7516 msgid ""
7517 " checksum-device csumtype device\n"
7518 "\n"
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:678
7523 msgid ""
7524 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7525 "device named C<device>.  For the types of checksums supported see the L</"
7526 "checksum> command."
7527 msgstr ""
7528
7529 #. type: =head2
7530 #: ../fish/guestfish-actions.pod:682
7531 msgid "checksums-out"
7532 msgstr ""
7533
7534 #. type: verbatim
7535 #: ../fish/guestfish-actions.pod:684
7536 #, no-wrap
7537 msgid ""
7538 " checksums-out csumtype directory (sumsfile|-)\n"
7539 "\n"
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
7544 msgid ""
7545 "This command computes the checksums of all regular files in C<directory> and "
7546 "then emits a list of those checksums to the local output file C<sumsfile>."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
7551 msgid ""
7552 "This can be used for verifying the integrity of a virtual machine.  However "
7553 "to be properly secure you should pay attention to the output of the checksum "
7554 "command (it uses the ones from GNU coreutils).  In particular when the "
7555 "filename is not printable, coreutils uses a special backslash syntax.  For "
7556 "more information, see the GNU coreutils info file."
7557 msgstr ""
7558
7559 #. type: =head2
7560 #: ../fish/guestfish-actions.pod:700
7561 msgid "chmod"
7562 msgstr "chmod"
7563
7564 #. type: verbatim
7565 #: ../fish/guestfish-actions.pod:702
7566 #, no-wrap
7567 msgid ""
7568 " chmod mode path\n"
7569 "\n"
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
7574 msgid ""
7575 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7576 "supported."
7577 msgstr ""
7578
7579 #. type: textblock
7580 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
7581 msgid ""
7582 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7583 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7584 "C<700>."
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
7589 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
7590 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
7591 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
7592 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
7593 msgid "The mode actually set is affected by the umask."
7594 msgstr ""
7595
7596 #. type: =head2
7597 #: ../fish/guestfish-actions.pod:713
7598 msgid "chown"
7599 msgstr "chown"
7600
7601 #. type: verbatim
7602 #: ../fish/guestfish-actions.pod:715
7603 #, no-wrap
7604 msgid ""
7605 " chown owner group path\n"
7606 "\n"
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
7611 msgid "Change the file owner to C<owner> and group to C<group>."
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
7616 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
7617 msgid ""
7618 "Only numeric uid and gid are supported.  If you want to use names, you will "
7619 "need to locate and parse the password file yourself (Augeas support makes "
7620 "this relatively easy)."
7621 msgstr ""
7622
7623 #. type: =head2
7624 #: ../fish/guestfish-actions.pod:723
7625 msgid "command"
7626 msgstr ""
7627
7628 #. type: verbatim
7629 #: ../fish/guestfish-actions.pod:725
7630 #, no-wrap
7631 msgid ""
7632 " command 'arguments ...'\n"
7633 "\n"
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
7638 msgid ""
7639 "This call runs a command from the guest filesystem.  The filesystem must be "
7640 "mounted, and must contain a compatible operating system (ie. something "
7641 "Linux, with the same or compatible processor architecture)."
7642 msgstr ""
7643
7644 #. type: textblock
7645 #: ../fish/guestfish-actions.pod:732
7646 msgid ""
7647 "The single parameter is an argv-style list of arguments.  The first element "
7648 "is the name of the program to run.  Subsequent elements are parameters.  The "
7649 "list must be non-empty (ie. must contain a program name).  Note that the "
7650 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
7655 msgid "The return value is anything printed to I<stdout> by the command."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
7660 msgid ""
7661 "If the command returns a non-zero exit status, then this function returns an "
7662 "error message.  The error message string is the content of I<stderr> from "
7663 "the command."
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
7668 msgid ""
7669 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7670 "bin>.  If you require a program from another location, you should provide "
7671 "the full path in the first parameter."
7672 msgstr ""
7673
7674 #. type: textblock
7675 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
7676 msgid ""
7677 "Shared libraries and data files required by the program must be available on "
7678 "filesystems which are mounted in the correct places.  It is the caller's "
7679 "responsibility to ensure all filesystems that are needed are mounted at the "
7680 "right locations."
7681 msgstr ""
7682
7683 #. type: =head2
7684 #: ../fish/guestfish-actions.pod:760
7685 msgid "command-lines"
7686 msgstr ""
7687
7688 #. type: verbatim
7689 #: ../fish/guestfish-actions.pod:762
7690 #, no-wrap
7691 msgid ""
7692 " command-lines 'arguments ...'\n"
7693 "\n"
7694 msgstr ""
7695
7696 #. type: textblock
7697 #: ../fish/guestfish-actions.pod:764
7698 msgid ""
7699 "This is the same as L</command>, but splits the result into a list of lines."
7700 msgstr ""
7701
7702 #. type: textblock
7703 #: ../fish/guestfish-actions.pod:767
7704 msgid "See also: L</sh-lines>"
7705 msgstr ""
7706
7707 #. type: =head2
7708 #: ../fish/guestfish-actions.pod:772
7709 #, fuzzy
7710 #| msgid "pread-device"
7711 msgid "compress-device-out"
7712 msgstr "pread-device"
7713
7714 #. type: verbatim
7715 #: ../fish/guestfish-actions.pod:774
7716 #, no-wrap
7717 msgid ""
7718 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7719 "\n"
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
7724 msgid ""
7725 "This command compresses C<device> and writes it out to the local file "
7726 "C<zdevice>."
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:779
7731 msgid ""
7732 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7733 "compress-out>."
7734 msgstr ""
7735
7736 #. type: =head2
7737 #: ../fish/guestfish-actions.pod:786
7738 #, fuzzy
7739 #| msgid "copy-out"
7740 msgid "compress-out"
7741 msgstr "copy-out"
7742
7743 #. type: verbatim
7744 #: ../fish/guestfish-actions.pod:788
7745 #, no-wrap
7746 msgid ""
7747 " compress-out ctype file (zfile|-) [level:..]\n"
7748 "\n"
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
7753 msgid ""
7754 "This command compresses C<file> and writes it out to the local file C<zfile>."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
7759 msgid ""
7760 "The compression program used is controlled by the C<ctype> parameter.  "
7761 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7762 "Some compression types may not be supported by particular builds of "
7763 "libguestfs, in which case you will get an error containing the substring "
7764 "\"not supported\"."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
7769 msgid ""
7770 "The optional C<level> parameter controls compression level.  The meaning and "
7771 "default for this parameter depends on the compression program being used."
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../fish/guestfish-actions.pod:807
7776 msgid "config"
7777 msgstr ""
7778
7779 #. type: verbatim
7780 #: ../fish/guestfish-actions.pod:809
7781 #, no-wrap
7782 msgid ""
7783 " config qemuparam qemuvalue\n"
7784 "\n"
7785 msgstr ""
7786
7787 #. type: textblock
7788 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
7789 msgid ""
7790 "This can be used to add arbitrary qemu command line parameters of the form "
7791 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7792 "setting some parameters which would interfere with parameters that we use."
7793 msgstr ""
7794
7795 #. type: textblock
7796 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
7797 msgid "The first character of C<param> string must be a C<-> (dash)."
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
7802 msgid "C<value> can be NULL."
7803 msgstr ""
7804
7805 #. type: =head2
7806 #: ../fish/guestfish-actions.pod:820
7807 msgid "copy-size"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:822
7812 #, no-wrap
7813 msgid ""
7814 " copy-size src dest size\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
7820 msgid ""
7821 "This command copies exactly C<size> bytes from one source device or file "
7822 "C<src> to another destination device or file C<dest>."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
7827 msgid ""
7828 "Note this will fail if the source is too short or if the destination is not "
7829 "large enough."
7830 msgstr ""
7831
7832 #. type: =head2
7833 #: ../fish/guestfish-actions.pod:830
7834 msgid "cp"
7835 msgstr "cp"
7836
7837 #. type: verbatim
7838 #: ../fish/guestfish-actions.pod:832
7839 #, no-wrap
7840 msgid ""
7841 " cp src dest\n"
7842 "\n"
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
7847 msgid ""
7848 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7849 "destination filename or destination directory."
7850 msgstr ""
7851
7852 #. type: =head2
7853 #: ../fish/guestfish-actions.pod:837
7854 msgid "cp-a"
7855 msgstr "cp-a"
7856
7857 #. type: verbatim
7858 #: ../fish/guestfish-actions.pod:839
7859 #, no-wrap
7860 msgid ""
7861 " cp-a src dest\n"
7862 "\n"
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
7867 msgid ""
7868 "This copies a file or directory from C<src> to C<dest> recursively using the "
7869 "C<cp -a> command."
7870 msgstr ""
7871
7872 #. type: =head2
7873 #: ../fish/guestfish-actions.pod:844
7874 msgid "dd"
7875 msgstr "dd"
7876
7877 #. type: verbatim
7878 #: ../fish/guestfish-actions.pod:846
7879 #, no-wrap
7880 msgid ""
7881 " dd src dest\n"
7882 "\n"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
7887 msgid ""
7888 "This command copies from one source device or file C<src> to another "
7889 "destination device or file C<dest>.  Normally you would use this to copy to "
7890 "or from a device or partition, for example to duplicate a filesystem."
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:853
7895 msgid ""
7896 "If the destination is a device, it must be as large or larger than the "
7897 "source file or device, otherwise the copy will fail.  This command cannot do "
7898 "partial copies (see L</copy-size>)."
7899 msgstr ""
7900
7901 #. type: =head2
7902 #: ../fish/guestfish-actions.pod:857
7903 msgid "df"
7904 msgstr "df"
7905
7906 #. type: verbatim
7907 #: ../fish/guestfish-actions.pod:859
7908 #, no-wrap
7909 msgid ""
7910 " df\n"
7911 "\n"
7912 msgstr ""
7913 " df\n"
7914 "\n"
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7918 msgid "This command runs the C<df> command to report disk space used."
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7923 msgid ""
7924 "This command is mostly useful for interactive sessions.  It is I<not> "
7925 "intended that you try to parse the output string.  Use L</statvfs> from "
7926 "programs."
7927 msgstr ""
7928
7929 #. type: =head2
7930 #: ../fish/guestfish-actions.pod:867
7931 msgid "df-h"
7932 msgstr "df-h"
7933
7934 #. type: verbatim
7935 #: ../fish/guestfish-actions.pod:869
7936 #, no-wrap
7937 msgid ""
7938 " df-h\n"
7939 "\n"
7940 msgstr ""
7941 " df-h\n"
7942 "\n"
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7946 msgid ""
7947 "This command runs the C<df -h> command to report disk space used in human-"
7948 "readable format."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../fish/guestfish-actions.pod:878
7953 msgid "dmesg"
7954 msgstr "dmesg"
7955
7956 #. type: verbatim
7957 #: ../fish/guestfish-actions.pod:880
7958 #, no-wrap
7959 msgid ""
7960 " dmesg\n"
7961 "\n"
7962 msgstr ""
7963 " dmesg\n"
7964 "\n"
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7968 msgid ""
7969 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7970 "This is sometimes useful for extended debugging of problems."
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:886
7975 msgid ""
7976 "Another way to get the same information is to enable verbose messages with "
7977 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7978 "before running the program."
7979 msgstr ""
7980
7981 #. type: =head2
7982 #: ../fish/guestfish-actions.pod:891
7983 msgid "download"
7984 msgstr "download"
7985
7986 #. type: verbatim
7987 #: ../fish/guestfish-actions.pod:893
7988 #, no-wrap
7989 msgid ""
7990 " download remotefilename (filename|-)\n"
7991 "\n"
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
7996 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7997 msgid ""
7998 "Download file C<remotefilename> and save it as C<filename> on the local "
7999 "machine."
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
8004 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
8005 msgid "C<filename> can also be a named pipe."
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../fish/guestfish-actions.pod:900
8010 msgid "See also L</upload>, L</cat>."
8011 msgstr ""
8012
8013 #. type: =head2
8014 #: ../fish/guestfish-actions.pod:904
8015 msgid "download-offset"
8016 msgstr "download-offset"
8017
8018 #. type: verbatim
8019 #: ../fish/guestfish-actions.pod:906
8020 #, no-wrap
8021 msgid ""
8022 " download-offset remotefilename (filename|-) offset size\n"
8023 "\n"
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
8028 msgid ""
8029 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8030 "region must be within the file or device)."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:914
8035 msgid ""
8036 "Note that there is no limit on the amount of data that can be downloaded "
8037 "with this call, unlike with L</pread>, and this call always reads the full "
8038 "amount unless an error occurs."
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:919
8043 msgid "See also L</download>, L</pread>."
8044 msgstr ""
8045
8046 #. type: =head2
8047 #: ../fish/guestfish-actions.pod:923
8048 msgid "drop-caches"
8049 msgstr ""
8050
8051 #. type: verbatim
8052 #: ../fish/guestfish-actions.pod:925
8053 #, no-wrap
8054 msgid ""
8055 " drop-caches whattodrop\n"
8056 "\n"
8057 msgstr ""
8058
8059 #. type: textblock
8060 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
8061 msgid ""
8062 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8063 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8064 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
8069 msgid "Setting C<whattodrop> to 3 should drop everything."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
8074 msgid ""
8075 "This automatically calls L<sync(2)> before the operation, so that the "
8076 "maximum guest memory is freed."
8077 msgstr ""
8078
8079 #. type: =head2
8080 #: ../fish/guestfish-actions.pod:937
8081 msgid "du"
8082 msgstr "du"
8083
8084 #. type: verbatim
8085 #: ../fish/guestfish-actions.pod:939
8086 #, no-wrap
8087 msgid ""
8088 " du path\n"
8089 "\n"
8090 msgstr ""
8091 " du шлях\n"
8092 "\n"
8093
8094 #. type: textblock
8095 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
8096 msgid ""
8097 "This command runs the C<du -s> command to estimate file space usage for "
8098 "C<path>."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
8103 msgid ""
8104 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8105 "estimate includes the contents of the directory and all subdirectories "
8106 "(recursively)."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
8111 msgid ""
8112 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8113 msgstr ""
8114
8115 #. type: =head2
8116 #: ../fish/guestfish-actions.pod:951
8117 msgid "e2fsck-f"
8118 msgstr "e2fsck-f"
8119
8120 #. type: verbatim
8121 #: ../fish/guestfish-actions.pod:953
8122 #, no-wrap
8123 msgid ""
8124 " e2fsck-f device\n"
8125 "\n"
8126 msgstr ""
8127
8128 #. type: textblock
8129 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
8130 msgid ""
8131 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8132 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8133 "clean (I<-f>)."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:959
8138 msgid ""
8139 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8140 "should use L</fsck>."
8141 msgstr ""
8142
8143 #. type: =head2
8144 #: ../fish/guestfish-actions.pod:962
8145 msgid "echo-daemon"
8146 msgstr ""
8147
8148 #. type: verbatim
8149 #: ../fish/guestfish-actions.pod:964
8150 #, no-wrap
8151 msgid ""
8152 " echo-daemon 'words ...'\n"
8153 "\n"
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
8158 msgid ""
8159 "This command concatenates the list of C<words> passed with single spaces "
8160 "between them and returns the resulting string."
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
8165 msgid "You can use this command to test the connection through to the daemon."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:971
8170 msgid "See also L</ping-daemon>."
8171 msgstr ""
8172
8173 #. type: =head2
8174 #: ../fish/guestfish-actions.pod:973
8175 msgid "egrep"
8176 msgstr "egrep"
8177
8178 #. type: verbatim
8179 #: ../fish/guestfish-actions.pod:975
8180 #, no-wrap
8181 msgid ""
8182 " egrep regex path\n"
8183 "\n"
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
8188 msgid ""
8189 "This calls the external C<egrep> program and returns the matching lines."
8190 msgstr ""
8191
8192 #. type: =head2
8193 #: ../fish/guestfish-actions.pod:983
8194 msgid "egrepi"
8195 msgstr "egrepi"
8196
8197 #. type: verbatim
8198 #: ../fish/guestfish-actions.pod:985
8199 #, no-wrap
8200 msgid ""
8201 " egrepi regex path\n"
8202 "\n"
8203 msgstr ""
8204
8205 #. type: textblock
8206 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
8207 msgid ""
8208 "This calls the external C<egrep -i> program and returns the matching lines."
8209 msgstr ""
8210
8211 #. type: =head2
8212 #: ../fish/guestfish-actions.pod:993
8213 msgid "equal"
8214 msgstr "equal"
8215
8216 #. type: verbatim
8217 #: ../fish/guestfish-actions.pod:995
8218 #, no-wrap
8219 msgid ""
8220 " equal file1 file2\n"
8221 "\n"
8222 msgstr ""
8223 " equal файл1 файл2\n"
8224 "\n"
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
8228 msgid ""
8229 "This compares the two files C<file1> and C<file2> and returns true if their "
8230 "content is exactly equal, or false otherwise."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
8235 msgid "The external L<cmp(1)> program is used for the comparison."
8236 msgstr ""
8237
8238 #. type: =head2
8239 #: ../fish/guestfish-actions.pod:1002
8240 msgid "exists"
8241 msgstr "exists"
8242
8243 #. type: verbatim
8244 #: ../fish/guestfish-actions.pod:1004
8245 #, no-wrap
8246 msgid ""
8247 " exists path\n"
8248 "\n"
8249 msgstr ""
8250 " exists шлях\n"
8251 "\n"
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
8255 msgid ""
8256 "This returns C<true> if and only if there is a file, directory (or anything) "
8257 "with the given C<path> name."
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../fish/guestfish-actions.pod:1009
8262 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8263 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8264
8265 #. type: =head2
8266 #: ../fish/guestfish-actions.pod:1011
8267 msgid "fallocate"
8268 msgstr "fallocate"
8269
8270 #. type: verbatim
8271 #: ../fish/guestfish-actions.pod:1013
8272 #, no-wrap
8273 msgid ""
8274 " fallocate path len\n"
8275 "\n"
8276 msgstr ""
8277 " fallocate шлях довжина\n"
8278 "\n"
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
8282 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
8283 msgid ""
8284 "This command preallocates a file (containing zero bytes) named C<path> of "
8285 "size C<len> bytes.  If the file exists already, it is overwritten."
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
8290 msgid ""
8291 "Do not confuse this with the guestfish-specific C<alloc> command which "
8292 "allocates a file in the host and attaches it as a device."
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1023
8297 msgid ""
8298 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8299 "instead."
8300 msgstr ""
8301
8302 #. type: =head2
8303 #: ../fish/guestfish-actions.pod:1030
8304 msgid "fallocate64"
8305 msgstr "fallocate64"
8306
8307 #. type: verbatim
8308 #: ../fish/guestfish-actions.pod:1032
8309 #, no-wrap
8310 msgid ""
8311 " fallocate64 path len\n"
8312 "\n"
8313 msgstr ""
8314 " fallocate64 шлях довжина\n"
8315 "\n"
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:1038
8319 msgid ""
8320 "Note that this call allocates disk blocks for the file.  To create a sparse "
8321 "file use L</truncate-size> instead."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1041
8326 msgid ""
8327 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8328 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8329 "maximum size of files created through that call to 1GB."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
8334 msgid ""
8335 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8336 "commands which create a file in the host and attach it as a device."
8337 msgstr ""
8338
8339 #. type: =head2
8340 #: ../fish/guestfish-actions.pod:1050
8341 msgid "fgrep"
8342 msgstr "fgrep"
8343
8344 #. type: verbatim
8345 #: ../fish/guestfish-actions.pod:1052
8346 #, no-wrap
8347 msgid ""
8348 " fgrep pattern path\n"
8349 "\n"
8350 msgstr ""
8351 " fgrep шаблон шлях\n"
8352 "\n"
8353
8354 #. type: textblock
8355 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
8356 msgid ""
8357 "This calls the external C<fgrep> program and returns the matching lines."
8358 msgstr ""
8359
8360 #. type: =head2
8361 #: ../fish/guestfish-actions.pod:1060
8362 msgid "fgrepi"
8363 msgstr "fgrepi"
8364
8365 #. type: verbatim
8366 #: ../fish/guestfish-actions.pod:1062
8367 #, no-wrap
8368 msgid ""
8369 " fgrepi pattern path\n"
8370 "\n"
8371 msgstr ""
8372 " fgrepi шаблон шлях\n"
8373 "\n"
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
8377 msgid ""
8378 "This calls the external C<fgrep -i> program and returns the matching lines."
8379 msgstr ""
8380
8381 #. type: =head2
8382 #: ../fish/guestfish-actions.pod:1070
8383 msgid "file"
8384 msgstr "file"
8385
8386 #. type: verbatim
8387 #: ../fish/guestfish-actions.pod:1072
8388 #, no-wrap
8389 msgid ""
8390 " file path\n"
8391 "\n"
8392 msgstr ""
8393 " file шлях\n"
8394 "\n"
8395
8396 #. type: textblock
8397 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
8398 msgid ""
8399 "This call uses the standard L<file(1)> command to determine the type or "
8400 "contents of the file."
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
8405 msgid ""
8406 "This call will also transparently look inside various types of compressed "
8407 "file."
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
8412 msgid ""
8413 "The exact command which runs is C<file -zb path>.  Note in particular that "
8414 "the filename is not prepended to the output (the I<-b> option)."
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
8419 msgid ""
8420 "The output depends on the output of the underlying L<file(1)> command and it "
8421 "can change in future in ways beyond our control.  In other words, the output "
8422 "is not guaranteed by the ABI."
8423 msgstr ""
8424
8425 #. type: textblock
8426 #: ../fish/guestfish-actions.pod:1088
8427 msgid ""
8428 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8429 "(etc), L</is-zero>."
8430 msgstr ""
8431
8432 #. type: =head2
8433 #: ../fish/guestfish-actions.pod:1091
8434 msgid "file-architecture"
8435 msgstr "file-architecture"
8436
8437 #. type: verbatim
8438 #: ../fish/guestfish-actions.pod:1093
8439 #, no-wrap
8440 msgid ""
8441 " file-architecture filename\n"
8442 "\n"
8443 msgstr ""
8444 " file-architecture назва_файла\n"
8445 "\n"
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
8449 msgid ""
8450 "This detects the architecture of the binary C<filename>, and returns it if "
8451 "known."
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
8456 msgid "Currently defined architectures are:"
8457 msgstr ""
8458
8459 #. type: =item
8460 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
8461 msgid "\"i386\""
8462 msgstr "\"i386\""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
8466 msgid ""
8467 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8468 "irrespective of the precise processor requirements of the binary."
8469 msgstr ""
8470
8471 #. type: =item
8472 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
8473 msgid "\"x86_64\""
8474 msgstr "\"x86_64\""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
8478 msgid "64 bit x86-64."
8479 msgstr ""
8480
8481 #. type: =item
8482 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
8483 msgid "\"sparc\""
8484 msgstr ""
8485
8486 #. type: textblock
8487 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
8488 msgid "32 bit SPARC."
8489 msgstr ""
8490
8491 #. type: =item
8492 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
8493 msgid "\"sparc64\""
8494 msgstr ""
8495
8496 #. type: textblock
8497 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
8498 msgid "64 bit SPARC V9 and above."
8499 msgstr ""
8500
8501 #. type: =item
8502 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
8503 msgid "\"ia64\""
8504 msgstr "\"ia64\""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
8508 msgid "Intel Itanium."
8509 msgstr "Intel Itanium."
8510
8511 #. type: =item
8512 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
8513 msgid "\"ppc\""
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
8518 msgid "32 bit Power PC."
8519 msgstr ""
8520
8521 #. type: =item
8522 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
8523 msgid "\"ppc64\""
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
8528 msgid "64 bit Power PC."
8529 msgstr ""
8530
8531 #. type: textblock
8532 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
8533 msgid "Libguestfs may return other architecture strings in future."
8534 msgstr ""
8535
8536 #. type: textblock
8537 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
8538 msgid "The function works on at least the following types of files:"
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
8543 msgid "many types of Un*x and Linux binary"
8544 msgstr ""
8545
8546 #. type: textblock
8547 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
8548 msgid "many types of Un*x and Linux shared library"
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
8553 msgid "Windows Win32 and Win64 binaries"
8554 msgstr ""
8555
8556 #. type: textblock
8557 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
8558 msgid "Windows Win32 and Win64 DLLs"
8559 msgstr ""
8560
8561 #. type: textblock
8562 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
8563 msgid "Win32 binaries and DLLs return C<i386>."
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
8568 msgid "Win64 binaries and DLLs return C<x86_64>."
8569 msgstr ""
8570
8571 #. type: textblock
8572 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
8573 msgid "Linux kernel modules"
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
8578 msgid "Linux new-style initrd images"
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
8583 msgid "some non-x86 Linux vmlinuz kernels"
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
8588 msgid "What it can't do currently:"
8589 msgstr ""
8590
8591 #. type: textblock
8592 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
8593 msgid "static libraries (libfoo.a)"
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
8598 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
8603 msgid "x86 Linux vmlinuz kernels"
8604 msgstr ""
8605
8606 #. type: textblock
8607 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
8608 msgid ""
8609 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8610 "compressed code, and are horribly hard to unpack.  If you want to find the "
8611 "architecture of a kernel, use the architecture of the associated initrd or "
8612 "kernel module(s) instead."
8613 msgstr ""
8614
8615 #. type: =head2
8616 #: ../fish/guestfish-actions.pod:1196
8617 msgid "filesize"
8618 msgstr "filesize"
8619
8620 #. type: verbatim
8621 #: ../fish/guestfish-actions.pod:1198
8622 #, no-wrap
8623 msgid ""
8624 " filesize file\n"
8625 "\n"
8626 msgstr ""
8627 " filesize файл\n"
8628 "\n"
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
8632 msgid "This command returns the size of C<file> in bytes."
8633 msgstr ""
8634
8635 #. type: textblock
8636 #: ../fish/guestfish-actions.pod:1202
8637 msgid ""
8638 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8639 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8640 msgstr ""
8641
8642 #. type: =head2
8643 #: ../fish/guestfish-actions.pod:1206
8644 msgid "fill"
8645 msgstr "fill"
8646
8647 #. type: verbatim
8648 #: ../fish/guestfish-actions.pod:1208
8649 #, no-wrap
8650 msgid ""
8651 " fill c len path\n"
8652 "\n"
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
8657 msgid ""
8658 "This command creates a new file called C<path>.  The initial content of the "
8659 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8660 "[0..255]>."
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:1214
8665 msgid ""
8666 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8667 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8668 "L</fill-pattern>."
8669 msgstr ""
8670
8671 #. type: =head2
8672 #: ../fish/guestfish-actions.pod:1219
8673 msgid "fill-pattern"
8674 msgstr "fill-pattern"
8675
8676 #. type: verbatim
8677 #: ../fish/guestfish-actions.pod:1221
8678 #, no-wrap
8679 msgid ""
8680 " fill-pattern pattern len path\n"
8681 "\n"
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../fish/guestfish-actions.pod:1223
8686 msgid ""
8687 "This function is like L</fill> except that it creates a new file of length "
8688 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8689 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8690 "bytes."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1228
8695 msgid "find"
8696 msgstr "find"
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1230
8700 #, no-wrap
8701 msgid ""
8702 " find directory\n"
8703 "\n"
8704 msgstr ""
8705 " find каталог\n"
8706 "\n"
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
8710 msgid ""
8711 "This command lists out all files and directories, recursively, starting at "
8712 "C<directory>.  It is essentially equivalent to running the shell command "
8713 "C<find directory -print> but some post-processing happens on the output, "
8714 "described below."
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
8719 msgid ""
8720 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8721 "structure was:"
8722 msgstr ""
8723
8724 #. type: verbatim
8725 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
8726 #, no-wrap
8727 msgid ""
8728 " /tmp/a\n"
8729 " /tmp/b\n"
8730 " /tmp/c/d\n"
8731 "\n"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1244
8736 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8737 msgstr ""
8738
8739 #. type: verbatim
8740 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
8741 #, no-wrap
8742 msgid ""
8743 " a\n"
8744 " b\n"
8745 " c\n"
8746 " c/d\n"
8747 "\n"
8748 msgstr ""
8749
8750 #. type: textblock
8751 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
8752 msgid "If C<directory> is not a directory, then this command returns an error."
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
8757 msgid "The returned list is sorted."
8758 msgstr ""
8759
8760 #. type: textblock
8761 #: ../fish/guestfish-actions.pod:1257
8762 msgid "See also L</find0>."
8763 msgstr "Див. також L</find0>."
8764
8765 #. type: =head2
8766 #: ../fish/guestfish-actions.pod:1262
8767 msgid "find0"
8768 msgstr "find0"
8769
8770 #. type: verbatim
8771 #: ../fish/guestfish-actions.pod:1264
8772 #, no-wrap
8773 msgid ""
8774 " find0 directory (files|-)\n"
8775 "\n"
8776 msgstr ""
8777 " find0 каталог (файли|-)\n"
8778 "\n"
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
8782 msgid ""
8783 "This command lists out all files and directories, recursively, starting at "
8784 "C<directory>, placing the resulting list in the external file called "
8785 "C<files>."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1270
8790 msgid ""
8791 "This command works the same way as L</find> with the following exceptions:"
8792 msgstr ""
8793
8794 #. type: textblock
8795 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
8796 msgid "The resulting list is written to an external file."
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
8801 msgid ""
8802 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8803 "L<find(1)> option I<-print0>."
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
8808 msgid "This command is not limited in the number of names that it can return."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
8813 msgid "The result list is not sorted."
8814 msgstr ""
8815
8816 #. type: =head2
8817 #: ../fish/guestfish-actions.pod:1297
8818 msgid "findfs-label"
8819 msgstr "findfs-label"
8820
8821 #. type: verbatim
8822 #: ../fish/guestfish-actions.pod:1299
8823 #, no-wrap
8824 msgid ""
8825 " findfs-label label\n"
8826 "\n"
8827 msgstr ""
8828 " findfs-label мітка\n"
8829 "\n"
8830
8831 #. type: textblock
8832 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
8833 msgid ""
8834 "This command searches the filesystems and returns the one which has the "
8835 "given label.  An error is returned if no such filesystem can be found."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1305
8840 msgid "To find the label of a filesystem, use L</vfs-label>."
8841 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8842
8843 #. type: =head2
8844 #: ../fish/guestfish-actions.pod:1307
8845 msgid "findfs-uuid"
8846 msgstr "findfs-uuid"
8847
8848 #. type: verbatim
8849 #: ../fish/guestfish-actions.pod:1309
8850 #, no-wrap
8851 msgid ""
8852 " findfs-uuid uuid\n"
8853 "\n"
8854 msgstr ""
8855 " findfs-uuid uuid\n"
8856 "\n"
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
8860 msgid ""
8861 "This command searches the filesystems and returns the one which has the "
8862 "given UUID.  An error is returned if no such filesystem can be found."
8863 msgstr ""
8864
8865 #. type: textblock
8866 #: ../fish/guestfish-actions.pod:1315
8867 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8868 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8869
8870 #. type: =head2
8871 #: ../fish/guestfish-actions.pod:1317
8872 msgid "fsck"
8873 msgstr "fsck"
8874
8875 #. type: verbatim
8876 #: ../fish/guestfish-actions.pod:1319
8877 #, no-wrap
8878 msgid ""
8879 " fsck fstype device\n"
8880 "\n"
8881 msgstr ""
8882 " fsck тип_файлової_системи пристрій\n"
8883 "\n"
8884
8885 #. type: textblock
8886 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
8887 msgid ""
8888 "This runs the filesystem checker (fsck) on C<device> which should have "
8889 "filesystem type C<fstype>."
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
8894 msgid ""
8895 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8896 "codes from C<fsck>."
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
8901 msgid "Multiple status codes can be summed together."
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
8906 msgid ""
8907 "A non-zero return code can mean \"success\", for example if errors have been "
8908 "corrected on the filesystem."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
8913 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
8918 msgid ""
8919 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8920 msgstr ""
8921
8922 #. type: =head2
8923 #: ../fish/guestfish-actions.pod:1349
8924 msgid "get-append"
8925 msgstr "get-append"
8926
8927 #. type: verbatim
8928 #: ../fish/guestfish-actions.pod:1351
8929 #, no-wrap
8930 msgid ""
8931 " get-append\n"
8932 "\n"
8933 msgstr ""
8934 " get-append\n"
8935 "\n"
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
8939 msgid ""
8940 "Return the additional kernel options which are added to the guest kernel "
8941 "command line."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8946 msgid "If C<NULL> then no options are added."
8947 msgstr ""
8948
8949 #. type: =head2
8950 #: ../fish/guestfish-actions.pod:1358
8951 msgid "get-attach-method"
8952 msgstr "get-attach-method"
8953
8954 #. type: verbatim
8955 #: ../fish/guestfish-actions.pod:1360
8956 #, no-wrap
8957 msgid ""
8958 " get-attach-method\n"
8959 "\n"
8960 msgstr ""
8961 " get-attach-method\n"
8962 "\n"
8963
8964 #. type: textblock
8965 #: ../fish/guestfish-actions.pod:1362
8966 msgid "Return the current attach method.  See L</set-attach-method>."
8967 msgstr ""
8968
8969 #. type: =head2
8970 #: ../fish/guestfish-actions.pod:1364
8971 msgid "get-autosync"
8972 msgstr "get-autosync"
8973
8974 #. type: verbatim
8975 #: ../fish/guestfish-actions.pod:1366
8976 #, no-wrap
8977 msgid ""
8978 " get-autosync\n"
8979 "\n"
8980 msgstr ""
8981 " get-autosync\n"
8982 "\n"
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8986 msgid "Get the autosync flag."
8987 msgstr ""
8988
8989 #. type: =head2
8990 #: ../fish/guestfish-actions.pod:1370
8991 msgid "get-direct"
8992 msgstr "get-direct"
8993
8994 #. type: verbatim
8995 #: ../fish/guestfish-actions.pod:1372
8996 #, no-wrap
8997 msgid ""
8998 " get-direct\n"
8999 "\n"
9000 msgstr ""
9001 " get-direct\n"
9002 "\n"
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
9006 msgid "Return the direct appliance mode flag."
9007 msgstr ""
9008
9009 #. type: =head2
9010 #: ../fish/guestfish-actions.pod:1376
9011 msgid "get-e2label"
9012 msgstr "get-e2label"
9013
9014 #. type: verbatim
9015 #: ../fish/guestfish-actions.pod:1378
9016 #, no-wrap
9017 msgid ""
9018 " get-e2label device\n"
9019 "\n"
9020 msgstr ""
9021 " get-e2label пристрій\n"
9022 "\n"
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
9026 msgid ""
9027 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../fish/guestfish-actions.pod:1383
9032 msgid ""
9033 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9034 "instead."
9035 msgstr ""
9036
9037 #. type: =head2
9038 #: ../fish/guestfish-actions.pod:1390
9039 msgid "get-e2uuid"
9040 msgstr "get-e2uuid"
9041
9042 #. type: verbatim
9043 #: ../fish/guestfish-actions.pod:1392
9044 #, no-wrap
9045 msgid ""
9046 " get-e2uuid device\n"
9047 "\n"
9048 msgstr ""
9049 " get-e2uuid пристрій\n"
9050 "\n"
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
9054 msgid ""
9055 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1397
9060 msgid ""
9061 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9062 "instead."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1404
9067 msgid "get-memsize"
9068 msgstr "get-memsize"
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1406
9072 #, no-wrap
9073 msgid ""
9074 " get-memsize\n"
9075 "\n"
9076 msgstr ""
9077 " get-memsize\n"
9078 "\n"
9079
9080 #. type: textblock
9081 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
9082 msgid ""
9083 "This gets the memory size in megabytes allocated to the qemu subprocess."
9084 msgstr ""
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:1411
9088 msgid ""
9089 "If L</set-memsize> was not called on this handle, and if "
9090 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9091 "value for memsize."
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
9096 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
9097 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
9098 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
9099 msgid ""
9100 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9101 msgstr ""
9102
9103 #. type: =head2
9104 #: ../fish/guestfish-actions.pod:1418
9105 msgid "get-network"
9106 msgstr "get-network"
9107
9108 #. type: verbatim
9109 #: ../fish/guestfish-actions.pod:1420
9110 #, no-wrap
9111 msgid ""
9112 " get-network\n"
9113 "\n"
9114 msgstr ""
9115 " get-network\n"
9116 "\n"
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
9120 msgid "This returns the enable network flag."
9121 msgstr ""
9122
9123 #. type: =head2
9124 #: ../fish/guestfish-actions.pod:1424
9125 msgid "get-path"
9126 msgstr "get-path"
9127
9128 #. type: verbatim
9129 #: ../fish/guestfish-actions.pod:1426
9130 #, no-wrap
9131 msgid ""
9132 " get-path\n"
9133 "\n"
9134 msgstr ""
9135 " get-path\n"
9136 "\n"
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
9140 msgid "Return the current search path."
9141 msgstr ""
9142
9143 #. type: textblock
9144 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
9145 msgid ""
9146 "This is always non-NULL.  If it wasn't set already, then this will return "
9147 "the default path."
9148 msgstr ""
9149
9150 #. type: =head2
9151 #: ../fish/guestfish-actions.pod:1433
9152 msgid "get-pgroup"
9153 msgstr ""
9154
9155 #. type: verbatim
9156 #: ../fish/guestfish-actions.pod:1435
9157 #, no-wrap
9158 msgid ""
9159 " get-pgroup\n"
9160 "\n"
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
9165 msgid "This returns the process group flag."
9166 msgstr ""
9167
9168 #. type: =head2
9169 #: ../fish/guestfish-actions.pod:1439
9170 msgid "get-pid"
9171 msgstr "get-pid"
9172
9173 #. type: =head2
9174 #: ../fish/guestfish-actions.pod:1441
9175 msgid "pid"
9176 msgstr ""
9177
9178 #. type: verbatim
9179 #: ../fish/guestfish-actions.pod:1443
9180 #, no-wrap
9181 msgid ""
9182 " get-pid\n"
9183 "\n"
9184 msgstr ""
9185 " get-pid\n"
9186 "\n"
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
9190 msgid ""
9191 "Return the process ID of the qemu subprocess.  If there is no qemu "
9192 "subprocess, then this will return an error."
9193 msgstr ""
9194
9195 #. type: textblock
9196 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
9197 msgid "This is an internal call used for debugging and testing."
9198 msgstr ""
9199
9200 #. type: =head2
9201 #: ../fish/guestfish-actions.pod:1450
9202 msgid "get-qemu"
9203 msgstr "get-qemu"
9204
9205 #. type: verbatim
9206 #: ../fish/guestfish-actions.pod:1452
9207 #, no-wrap
9208 msgid ""
9209 " get-qemu\n"
9210 "\n"
9211 msgstr ""
9212 " get-qemu\n"
9213 "\n"
9214
9215 #. type: textblock
9216 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
9217 msgid "Return the current qemu binary."
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
9222 msgid ""
9223 "This is always non-NULL.  If it wasn't set already, then this will return "
9224 "the default qemu binary name."
9225 msgstr ""
9226
9227 #. type: =head2
9228 #: ../fish/guestfish-actions.pod:1459
9229 msgid "get-recovery-proc"
9230 msgstr "get-recovery-proc"
9231
9232 #. type: verbatim
9233 #: ../fish/guestfish-actions.pod:1461
9234 #, no-wrap
9235 msgid ""
9236 " get-recovery-proc\n"
9237 "\n"
9238 msgstr ""
9239 " get-recovery-proc\n"
9240 "\n"
9241
9242 #. type: textblock
9243 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
9244 msgid "Return the recovery process enabled flag."
9245 msgstr ""
9246
9247 #. type: =head2
9248 #: ../fish/guestfish-actions.pod:1465
9249 msgid "get-selinux"
9250 msgstr "get-selinux"
9251
9252 #. type: verbatim
9253 #: ../fish/guestfish-actions.pod:1467
9254 #, no-wrap
9255 msgid ""
9256 " get-selinux\n"
9257 "\n"
9258 msgstr ""
9259 " get-selinux\n"
9260 "\n"
9261
9262 #. type: textblock
9263 #: ../fish/guestfish-actions.pod:1469
9264 msgid ""
9265 "This returns the current setting of the selinux flag which is passed to the "
9266 "appliance at boot time.  See L</set-selinux>."
9267 msgstr ""
9268
9269 #. type: =head2
9270 #: ../fish/guestfish-actions.pod:1475
9271 #, fuzzy
9272 #| msgid "get-pid"
9273 msgid "get-smp"
9274 msgstr "get-pid"
9275
9276 #. type: verbatim
9277 #: ../fish/guestfish-actions.pod:1477
9278 #, fuzzy, no-wrap
9279 #| msgid ""
9280 #| " get-pid\n"
9281 #| "\n"
9282 msgid ""
9283 " get-smp\n"
9284 "\n"
9285 msgstr ""
9286 " get-pid\n"
9287 "\n"
9288
9289 #. type: textblock
9290 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
9291 msgid "This returns the number of virtual CPUs assigned to the appliance."
9292 msgstr ""
9293
9294 #. type: =head2
9295 #: ../fish/guestfish-actions.pod:1481
9296 msgid "get-state"
9297 msgstr "get-state"
9298
9299 #. type: verbatim
9300 #: ../fish/guestfish-actions.pod:1483
9301 #, no-wrap
9302 msgid ""
9303 " get-state\n"
9304 "\n"
9305 msgstr ""
9306 " get-state\n"
9307 "\n"
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
9311 msgid ""
9312 "This returns the current state as an opaque integer.  This is only useful "
9313 "for printing debug and internal error messages."
9314 msgstr ""
9315
9316 #. type: textblock
9317 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
9318 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
9319 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
9320 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
9321 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
9322 msgid "For more information on states, see L<guestfs(3)>."
9323 msgstr ""
9324
9325 #. type: =head2
9326 #: ../fish/guestfish-actions.pod:1490
9327 msgid "get-trace"
9328 msgstr "get-trace"
9329
9330 #. type: verbatim
9331 #: ../fish/guestfish-actions.pod:1492
9332 #, no-wrap
9333 msgid ""
9334 " get-trace\n"
9335 "\n"
9336 msgstr ""
9337 " get-trace\n"
9338 "\n"
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
9342 msgid "Return the command trace flag."
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../fish/guestfish-actions.pod:1496
9347 msgid "get-umask"
9348 msgstr "get-umask"
9349
9350 #. type: verbatim
9351 #: ../fish/guestfish-actions.pod:1498
9352 #, no-wrap
9353 msgid ""
9354 " get-umask\n"
9355 "\n"
9356 msgstr ""
9357 " get-umask\n"
9358 "\n"
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:1500
9362 msgid ""
9363 "Return the current umask.  By default the umask is C<022> unless it has been "
9364 "set by calling L</umask>."
9365 msgstr ""
9366
9367 #. type: =head2
9368 #: ../fish/guestfish-actions.pod:1503
9369 msgid "get-verbose"
9370 msgstr "get-verbose"
9371
9372 #. type: verbatim
9373 #: ../fish/guestfish-actions.pod:1505
9374 #, no-wrap
9375 msgid ""
9376 " get-verbose\n"
9377 "\n"
9378 msgstr ""
9379 " get-verbose\n"
9380 "\n"
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
9384 msgid "This returns the verbose messages flag."
9385 msgstr ""
9386
9387 #. type: =head2
9388 #: ../fish/guestfish-actions.pod:1509
9389 msgid "getcon"
9390 msgstr "getcon"
9391
9392 #. type: verbatim
9393 #: ../fish/guestfish-actions.pod:1511
9394 #, no-wrap
9395 msgid ""
9396 " getcon\n"
9397 "\n"
9398 msgstr ""
9399 " getcon\n"
9400 "\n"
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
9404 msgid "This gets the SELinux security context of the daemon."
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1515
9409 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9410 msgstr ""
9411
9412 #. type: =head2
9413 #: ../fish/guestfish-actions.pod:1518
9414 msgid "getxattr"
9415 msgstr "getxattr"
9416
9417 #. type: verbatim
9418 #: ../fish/guestfish-actions.pod:1520
9419 #, no-wrap
9420 msgid ""
9421 " getxattr path name\n"
9422 "\n"
9423 msgstr ""
9424 " getxattr шлях назва\n"
9425 "\n"
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:1522
9429 msgid ""
9430 "Get a single extended attribute from file C<path> named C<name>.  This call "
9431 "follows symlinks.  If you want to lookup an extended attribute for the "
9432 "symlink itself, use L</lgetxattr>."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
9437 msgid ""
9438 "Normally it is better to get all extended attributes from a file in one go "
9439 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9440 "buggy and do not provide a way to list out attributes.  For these "
9441 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9442 "attributes you want in advance and call this function."
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
9447 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
9448 msgid ""
9449 "Extended attribute values are blobs of binary data.  If there is no extended "
9450 "attribute named C<name>, this returns an error."
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1536
9455 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9456 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9457
9458 #. type: =head2
9459 #: ../fish/guestfish-actions.pod:1538
9460 msgid "getxattrs"
9461 msgstr "getxattrs"
9462
9463 #. type: verbatim
9464 #: ../fish/guestfish-actions.pod:1540
9465 #, no-wrap
9466 msgid ""
9467 " getxattrs path\n"
9468 "\n"
9469 msgstr ""
9470 " getxattrs шлях\n"
9471 "\n"
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
9475 msgid ""
9476 "This call lists the extended attributes of the file or directory C<path>."
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
9481 msgid ""
9482 "At the system call level, this is a combination of the L<listxattr(2)> and "
9483 "L<getxattr(2)> calls."
9484 msgstr ""
9485
9486 #. type: textblock
9487 #: ../fish/guestfish-actions.pod:1548
9488 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9489 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9490
9491 #. type: =head2
9492 #: ../fish/guestfish-actions.pod:1550
9493 msgid "glob-expand"
9494 msgstr "glob-expand"
9495
9496 #. type: verbatim
9497 #: ../fish/guestfish-actions.pod:1552
9498 #, no-wrap
9499 msgid ""
9500 " glob-expand pattern\n"
9501 "\n"
9502 msgstr ""
9503 " glob-expand шаблон\n"
9504 "\n"
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
9508 msgid ""
9509 "This command searches for all the pathnames matching C<pattern> according to "
9510 "the wildcard expansion rules used by the shell."
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
9515 msgid ""
9516 "If no paths match, then this returns an empty list (note: not an error)."
9517 msgstr ""
9518
9519 #. type: textblock
9520 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
9521 msgid ""
9522 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9523 "GLOB_BRACE>.  See that manual page for more details."
9524 msgstr ""
9525
9526 #. type: =head2
9527 #: ../fish/guestfish-actions.pod:1565
9528 msgid "grep"
9529 msgstr "grep"
9530
9531 #. type: verbatim
9532 #: ../fish/guestfish-actions.pod:1567
9533 #, no-wrap
9534 msgid ""
9535 " grep regex path\n"
9536 "\n"
9537 msgstr ""
9538 " grepi формальний_вираз шлях\n"
9539 "\n"
9540
9541 #. type: textblock
9542 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
9543 msgid "This calls the external C<grep> program and returns the matching lines."
9544 msgstr ""
9545
9546 #. type: =head2
9547 #: ../fish/guestfish-actions.pod:1575
9548 msgid "grepi"
9549 msgstr "grepi"
9550
9551 #. type: verbatim
9552 #: ../fish/guestfish-actions.pod:1577
9553 #, no-wrap
9554 msgid ""
9555 " grepi regex path\n"
9556 "\n"
9557 msgstr ""
9558 " grepi формальний_вираз шлях\n"
9559 "\n"
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
9563 msgid ""
9564 "This calls the external C<grep -i> program and returns the matching lines."
9565 msgstr ""
9566
9567 #. type: =head2
9568 #: ../fish/guestfish-actions.pod:1585
9569 msgid "grub-install"
9570 msgstr "grub-install"
9571
9572 #. type: verbatim
9573 #: ../fish/guestfish-actions.pod:1587
9574 #, no-wrap
9575 msgid ""
9576 " grub-install root device\n"
9577 "\n"
9578 msgstr ""
9579 " grub-install кореневий пристрій\n"
9580 "\n"
9581
9582 #. type: textblock
9583 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
9584 msgid ""
9585 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9586 "with the root directory being C<root>."
9587 msgstr ""
9588
9589 #. type: textblock
9590 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
9591 msgid ""
9592 "There is currently no way in the API to install grub2, which is used by most "
9593 "modern Linux guests.  It is possible to run the grub2 command from the "
9594 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
9599 msgid ""
9600 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9601 "compatible with itself, so this only works in rather narrow circumstances.  "
9602 "Careful testing with each guest version is advisable."
9603 msgstr ""
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
9607 msgid ""
9608 "If grub-install reports the error \"No suitable drive was found in the "
9609 "generated device map.\" it may be that you need to create a C</boot/grub/"
9610 "device.map> file first that contains the mapping between grub device names "
9611 "and Linux device names.  It is usually sufficient to create a file "
9612 "containing:"
9613 msgstr ""
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
9617 #, no-wrap
9618 msgid ""
9619 " (hd0) /dev/vda\n"
9620 "\n"
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
9625 msgid "replacing C</dev/vda> with the name of the installation device."
9626 msgstr ""
9627
9628 #. type: =head2
9629 #: ../fish/guestfish-actions.pod:1625
9630 msgid "head"
9631 msgstr "head"
9632
9633 #. type: verbatim
9634 #: ../fish/guestfish-actions.pod:1627
9635 #, no-wrap
9636 msgid ""
9637 " head path\n"
9638 "\n"
9639 msgstr ""
9640 " head шлях\n"
9641 "\n"
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
9645 msgid ""
9646 "This command returns up to the first 10 lines of a file as a list of strings."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:1635
9651 msgid "head-n"
9652 msgstr "head-n"
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:1637
9656 #, no-wrap
9657 msgid ""
9658 " head-n nrlines path\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
9664 msgid ""
9665 "If the parameter C<nrlines> is a positive number, this returns the first "
9666 "C<nrlines> lines of the file C<path>."
9667 msgstr ""
9668
9669 #. type: textblock
9670 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
9671 msgid ""
9672 "If the parameter C<nrlines> is a negative number, this returns lines from "
9673 "the file C<path>, excluding the last C<nrlines> lines."
9674 msgstr ""
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
9678 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
9679 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9680 msgstr ""
9681
9682 #. type: =head2
9683 #: ../fish/guestfish-actions.pod:1650
9684 msgid "hexdump"
9685 msgstr "hexdump"
9686
9687 #. type: verbatim
9688 #: ../fish/guestfish-actions.pod:1652
9689 #, no-wrap
9690 msgid ""
9691 " hexdump path\n"
9692 "\n"
9693 msgstr ""
9694 " hexdump шлях\n"
9695 "\n"
9696
9697 #. type: textblock
9698 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
9699 msgid ""
9700 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9701 "readable, canonical hex dump of the file."
9702 msgstr ""
9703
9704 #. type: =head2
9705 #: ../fish/guestfish-actions.pod:1660
9706 msgid "initrd-cat"
9707 msgstr "initrd-cat"
9708
9709 #. type: verbatim
9710 #: ../fish/guestfish-actions.pod:1662
9711 #, no-wrap
9712 msgid ""
9713 " initrd-cat initrdpath filename\n"
9714 "\n"
9715 msgstr ""
9716 " initrd-cat шлях_initrd назва_файла\n"
9717 "\n"
9718
9719 #. type: textblock
9720 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
9721 msgid ""
9722 "This command unpacks the file C<filename> from the initrd file called "
9723 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9724 "character."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
9729 msgid ""
9730 "For example, in guestfish you could use the following command to examine the "
9731 "boot script (usually called C</init>)  contained in a Linux initrd or "
9732 "initramfs image:"
9733 msgstr ""
9734
9735 #. type: verbatim
9736 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
9737 #, no-wrap
9738 msgid ""
9739 " initrd-cat /boot/initrd-<version>.img init\n"
9740 "\n"
9741 msgstr ""
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:1674
9745 msgid "See also L</initrd-list>."
9746 msgstr "Див. також L</initrd-list>."
9747
9748 #. type: =head2
9749 #: ../fish/guestfish-actions.pod:1679
9750 msgid "initrd-list"
9751 msgstr "initrd-list"
9752
9753 #. type: verbatim
9754 #: ../fish/guestfish-actions.pod:1681
9755 #, no-wrap
9756 msgid ""
9757 " initrd-list path\n"
9758 "\n"
9759 msgstr ""
9760 " initrd-list шлях\n"
9761 "\n"
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
9765 msgid "This command lists out files contained in an initrd."
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
9770 msgid ""
9771 "The files are listed without any initial C</> character.  The files are "
9772 "listed in the order they appear (not necessarily alphabetical).  Directory "
9773 "names are listed as separate items."
9774 msgstr ""
9775
9776 #. type: textblock
9777 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
9778 msgid ""
9779 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9780 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9781 "files)."
9782 msgstr ""
9783
9784 #. type: =head2
9785 #: ../fish/guestfish-actions.pod:1693
9786 msgid "inotify-add-watch"
9787 msgstr "inotify-add-watch"
9788
9789 #. type: verbatim
9790 #: ../fish/guestfish-actions.pod:1695
9791 #, no-wrap
9792 msgid ""
9793 " inotify-add-watch path mask\n"
9794 "\n"
9795 msgstr ""
9796 " inotify-add-watch шлях маска\n"
9797 "\n"
9798
9799 #. type: textblock
9800 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
9801 msgid "Watch C<path> for the events listed in C<mask>."
9802 msgstr ""
9803
9804 #. type: textblock
9805 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
9806 msgid ""
9807 "Note that if C<path> is a directory then events within that directory are "
9808 "watched, but this does I<not> happen recursively (in subdirectories)."
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
9813 msgid ""
9814 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9815 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9816 msgstr ""
9817
9818 #. type: =head2
9819 #: ../fish/guestfish-actions.pod:1707
9820 msgid "inotify-close"
9821 msgstr "inotify-close"
9822
9823 #. type: verbatim
9824 #: ../fish/guestfish-actions.pod:1709
9825 #, no-wrap
9826 msgid ""
9827 " inotify-close\n"
9828 "\n"
9829 msgstr ""
9830 " inotify-close\n"
9831 "\n"
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
9835 msgid ""
9836 "This closes the inotify handle which was previously opened by inotify_init.  "
9837 "It removes all watches, throws away any pending events, and deallocates all "
9838 "resources."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:1715
9843 msgid "inotify-files"
9844 msgstr "inotify-files"
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:1717
9848 #, no-wrap
9849 msgid ""
9850 " inotify-files\n"
9851 "\n"
9852 msgstr ""
9853 " inotify-files\n"
9854 "\n"
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:1719
9858 msgid ""
9859 "This function is a helpful wrapper around L</inotify-read> which just "
9860 "returns a list of pathnames of objects that were touched.  The returned "
9861 "pathnames are sorted and deduplicated."
9862 msgstr ""
9863
9864 #. type: =head2
9865 #: ../fish/guestfish-actions.pod:1723
9866 msgid "inotify-init"
9867 msgstr "inotify-init"
9868
9869 #. type: verbatim
9870 #: ../fish/guestfish-actions.pod:1725
9871 #, no-wrap
9872 msgid ""
9873 " inotify-init maxevents\n"
9874 "\n"
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
9879 msgid ""
9880 "This command creates a new inotify handle.  The inotify subsystem can be "
9881 "used to notify events which happen to objects in the guest filesystem."
9882 msgstr ""
9883
9884 #. type: textblock
9885 #: ../fish/guestfish-actions.pod:1731
9886 msgid ""
9887 "C<maxevents> is the maximum number of events which will be queued up between "
9888 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9889 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9890 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9891 "but records the fact that it threw them away by setting a flag "
9892 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1741
9897 msgid ""
9898 "Before any events are generated, you have to add some watches to the "
9899 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9900 "L</inotify-watch-all>."
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1747
9905 msgid ""
9906 "Queued up events should be read periodically by calling L</inotify-read> (or "
9907 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9908 "If you don't read the events out often enough then you risk the internal "
9909 "queue overflowing."
9910 msgstr ""
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:1754
9914 msgid ""
9915 "The handle should be closed after use by calling L</inotify-close>.  This "
9916 "also removes any watches automatically."
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
9921 msgid ""
9922 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9923 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9924 "that there is one global inotify handle per libguestfs instance."
9925 msgstr ""
9926
9927 #. type: =head2
9928 #: ../fish/guestfish-actions.pod:1763
9929 msgid "inotify-read"
9930 msgstr "inotify-read"
9931
9932 #. type: verbatim
9933 #: ../fish/guestfish-actions.pod:1765
9934 #, no-wrap
9935 msgid ""
9936 " inotify-read\n"
9937 "\n"
9938 msgstr ""
9939 " inotify-read\n"
9940 "\n"
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
9944 msgid ""
9945 "Return the complete queue of events that have happened since the previous "
9946 "read call."
9947 msgstr ""
9948
9949 #. type: textblock
9950 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
9951 msgid "If no events have happened, this returns an empty list."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
9956 msgid ""
9957 "I<Note>: In order to make sure that all events have been read, you must call "
9958 "this function repeatedly until it returns an empty list.  The reason is that "
9959 "the call will read events up to the maximum appliance-to-host message size "
9960 "and leave remaining events in the queue."
9961 msgstr ""
9962
9963 #. type: =head2
9964 #: ../fish/guestfish-actions.pod:1778
9965 msgid "inotify-rm-watch"
9966 msgstr "inotify-rm-watch"
9967
9968 #. type: verbatim
9969 #: ../fish/guestfish-actions.pod:1780
9970 #, no-wrap
9971 msgid ""
9972 " inotify-rm-watch wd\n"
9973 "\n"
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:1782
9978 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9979 msgstr ""
9980
9981 #. type: =head2
9982 #: ../fish/guestfish-actions.pod:1785
9983 msgid "inspect-get-arch"
9984 msgstr "inspect-get-arch"
9985
9986 #. type: verbatim
9987 #: ../fish/guestfish-actions.pod:1787
9988 #, no-wrap
9989 msgid ""
9990 " inspect-get-arch root\n"
9991 "\n"
9992 msgstr ""
9993 " inspect-get-arch корінь\n"
9994 "\n"
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:1789
9998 msgid ""
9999 "This returns the architecture of the inspected operating system.  The "
10000 "possible return values are listed under L</file-architecture>."
10001 msgstr ""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
10005 msgid ""
10006 "If the architecture could not be determined, then the string C<unknown> is "
10007 "returned."
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
10012 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
10013 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
10014 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
10015 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
10016 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
10017 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
10018 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
10019 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
10020 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
10021 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
10022 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
10023 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
10024 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
10025 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
10026 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
10027 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
10028 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10029 msgstr ""
10030
10031 #. type: =head2
10032 #: ../fish/guestfish-actions.pod:1798
10033 msgid "inspect-get-distro"
10034 msgstr "inspect-get-distro"
10035
10036 #. type: verbatim
10037 #: ../fish/guestfish-actions.pod:1800
10038 #, no-wrap
10039 msgid ""
10040 " inspect-get-distro root\n"
10041 "\n"
10042 msgstr ""
10043 " inspect-get-distro корінь\n"
10044 "\n"
10045
10046 #. type: textblock
10047 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
10048 msgid ""
10049 "This returns the distro (distribution) of the inspected operating system."
10050 msgstr ""
10051
10052 #. type: textblock
10053 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
10054 msgid "Currently defined distros are:"
10055 msgstr ""
10056
10057 #. type: =item
10058 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
10059 msgid "\"archlinux\""
10060 msgstr "\"archlinux\""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
10064 msgid "Arch Linux."
10065 msgstr "Arch Linux."
10066
10067 #. type: =item
10068 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
10069 msgid "\"centos\""
10070 msgstr ""
10071
10072 #. type: textblock
10073 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
10074 msgid "CentOS."
10075 msgstr ""
10076
10077 #. type: =item
10078 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
10079 msgid "\"debian\""
10080 msgstr "\"debian\""
10081
10082 #. type: textblock
10083 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
10084 msgid "Debian."
10085 msgstr "Debian."
10086
10087 #. type: =item
10088 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
10089 msgid "\"fedora\""
10090 msgstr "\"fedora\""
10091
10092 #. type: textblock
10093 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
10094 msgid "Fedora."
10095 msgstr "Fedora."
10096
10097 #. type: =item
10098 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
10099 msgid "\"gentoo\""
10100 msgstr "\"gentoo\""
10101
10102 #. type: textblock
10103 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
10104 msgid "Gentoo."
10105 msgstr "Gentoo."
10106
10107 #. type: =item
10108 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
10109 msgid "\"linuxmint\""
10110 msgstr "\"linuxmint\""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
10114 msgid "Linux Mint."
10115 msgstr "Linux Mint."
10116
10117 #. type: =item
10118 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
10119 msgid "\"mandriva\""
10120 msgstr "\"mandriva\""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
10124 msgid "Mandriva."
10125 msgstr "Mandriva."
10126
10127 #. type: =item
10128 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
10129 msgid "\"meego\""
10130 msgstr "\"meego\""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
10134 msgid "MeeGo."
10135 msgstr "MeeGo."
10136
10137 #. type: =item
10138 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
10139 msgid "\"pardus\""
10140 msgstr "\"pardus\""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
10144 msgid "Pardus."
10145 msgstr "Pardus."
10146
10147 #. type: =item
10148 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
10149 msgid "\"redhat-based\""
10150 msgstr "\"redhat-based\""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
10154 msgid "Some Red Hat-derived distro."
10155 msgstr "Дистрибутив, що походить від Red Hat."
10156
10157 #. type: =item
10158 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
10159 msgid "\"rhel\""
10160 msgstr "\"rhel\""
10161
10162 #. type: textblock
10163 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
10164 msgid "Red Hat Enterprise Linux."
10165 msgstr ""
10166
10167 #. type: =item
10168 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
10169 msgid "\"scientificlinux\""
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
10174 msgid "Scientific Linux."
10175 msgstr ""
10176
10177 #. type: =item
10178 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
10179 msgid "\"slackware\""
10180 msgstr ""
10181
10182 #. type: textblock
10183 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
10184 msgid "Slackware."
10185 msgstr ""
10186
10187 #. type: =item
10188 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
10189 #, fuzzy
10190 #| msgid "\"linux\""
10191 msgid "\"ttylinux\""
10192 msgstr "\"linux\""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
10196 #, fuzzy
10197 #| msgid "\"linux\""
10198 msgid "ttylinux."
10199 msgstr "\"linux\""
10200
10201 #. type: =item
10202 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
10203 msgid "\"ubuntu\""
10204 msgstr "\"ubuntu\""
10205
10206 #. type: textblock
10207 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
10208 msgid "Ubuntu."
10209 msgstr "Ubuntu."
10210
10211 #. type: =item
10212 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
10213 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
10214 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
10215 msgid "\"unknown\""
10216 msgstr "\"unknown\""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
10220 msgid "The distro could not be determined."
10221 msgstr "Дистрибутив, тип якого не вдалося визначити."
10222
10223 #. type: =item
10224 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
10225 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
10226 msgid "\"windows\""
10227 msgstr "\"windows\""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
10231 msgid ""
10232 "Windows does not have distributions.  This string is returned if the OS type "
10233 "is Windows."
10234 msgstr ""
10235
10236 #. type: textblock
10237 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
10238 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
10239 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
10240 msgid ""
10241 "Future versions of libguestfs may return other strings here.  The caller "
10242 "should be prepared to handle any string."
10243 msgstr ""
10244
10245 #. type: =head2
10246 #: ../fish/guestfish-actions.pod:1885
10247 msgid "inspect-get-drive-mappings"
10248 msgstr ""
10249
10250 #. type: verbatim
10251 #: ../fish/guestfish-actions.pod:1887
10252 #, no-wrap
10253 msgid ""
10254 " inspect-get-drive-mappings root\n"
10255 "\n"
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
10260 msgid ""
10261 "This call is useful for Windows which uses a primitive system of assigning "
10262 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10263 "Windows Registry to find out how disks/partitions are mapped to drive "
10264 "letters, and returns a hash table as in the example below:"
10265 msgstr ""
10266
10267 #. type: verbatim
10268 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
10269 #, no-wrap
10270 msgid ""
10271 " C      =>     /dev/vda2\n"
10272 " E      =>     /dev/vdb1\n"
10273 " F      =>     /dev/vdc1\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
10279 msgid ""
10280 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10281 "and just contains the drive letter, without the customary colon separator "
10282 "character."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
10287 msgid ""
10288 "In future we may support other operating systems that also used drive "
10289 "letters, but the keys for those might not be case insensitive and might be "
10290 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10291 "C<h1> etc."
10292 msgstr ""
10293
10294 #. type: textblock
10295 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
10296 msgid ""
10297 "For Windows guests, currently only hard drive mappings are returned.  "
10298 "Removable disks (eg. DVD-ROMs) are ignored."
10299 msgstr ""
10300
10301 #. type: textblock
10302 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
10303 msgid ""
10304 "For guests that do not use drive mappings, or if the drive mappings could "
10305 "not be determined, this returns an empty hash table."
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:1914
10310 msgid ""
10311 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10312 "get-mountpoints>, L</inspect-get-filesystems>."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../fish/guestfish-actions.pod:1918
10317 msgid "inspect-get-filesystems"
10318 msgstr "inspect-get-filesystems"
10319
10320 #. type: verbatim
10321 #: ../fish/guestfish-actions.pod:1920
10322 #, no-wrap
10323 msgid ""
10324 " inspect-get-filesystems root\n"
10325 "\n"
10326 msgstr ""
10327 " inspect-get-filesystems корінь\n"
10328 "\n"
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
10332 msgid ""
10333 "This returns a list of all the filesystems that we think are associated with "
10334 "this operating system.  This includes the root filesystem, other ordinary "
10335 "filesystems, and non-mounted devices like swap partitions."
10336 msgstr ""
10337
10338 #. type: textblock
10339 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
10340 msgid ""
10341 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10342 "to be shared between operating systems."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:1930
10347 msgid ""
10348 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10349 "get-mountpoints>."
10350 msgstr ""
10351
10352 #. type: =head2
10353 #: ../fish/guestfish-actions.pod:1933
10354 msgid "inspect-get-format"
10355 msgstr "inspect-get-format"
10356
10357 #. type: verbatim
10358 #: ../fish/guestfish-actions.pod:1935
10359 #, no-wrap
10360 msgid ""
10361 " inspect-get-format root\n"
10362 "\n"
10363 msgstr ""
10364 " inspect-get-format корінь\n"
10365 "\n"
10366
10367 #. type: textblock
10368 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
10369 msgid ""
10370 "This returns the format of the inspected operating system.  You can use it "
10371 "to detect install images, live CDs and similar."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
10376 msgid "Currently defined formats are:"
10377 msgstr ""
10378
10379 #. type: =item
10380 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
10381 msgid "\"installed\""
10382 msgstr "\"installed\""
10383
10384 #. type: textblock
10385 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
10386 msgid "This is an installed operating system."
10387 msgstr "Це встановлена операційна система."
10388
10389 #. type: =item
10390 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
10391 msgid "\"installer\""
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
10396 msgid ""
10397 "The disk image being inspected is not an installed operating system, but a "
10398 "I<bootable> install disk, live CD, or similar."
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
10403 msgid "The format of this disk image is not known."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../fish/guestfish-actions.pod:1964
10408 msgid "inspect-get-hostname"
10409 msgstr "inspect-get-hostname"
10410
10411 #. type: verbatim
10412 #: ../fish/guestfish-actions.pod:1966
10413 #, no-wrap
10414 msgid ""
10415 " inspect-get-hostname root\n"
10416 "\n"
10417 msgstr ""
10418 " inspect-get-hostname корінь\n"
10419 "\n"
10420
10421 #. type: textblock
10422 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
10423 msgid ""
10424 "This function returns the hostname of the operating system as found by "
10425 "inspection of the guest's configuration files."
10426 msgstr ""
10427
10428 #. type: textblock
10429 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
10430 msgid ""
10431 "If the hostname could not be determined, then the string C<unknown> is "
10432 "returned."
10433 msgstr ""
10434
10435 #. type: =head2
10436 #: ../fish/guestfish-actions.pod:1976
10437 msgid "inspect-get-icon"
10438 msgstr ""
10439
10440 #. type: verbatim
10441 #: ../fish/guestfish-actions.pod:1978
10442 #, no-wrap
10443 msgid ""
10444 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10445 "\n"
10446 msgstr ""
10447
10448 #. type: textblock
10449 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
10450 msgid ""
10451 "This function returns an icon corresponding to the inspected operating "
10452 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10453 "to PNG if necessary)."
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
10458 msgid ""
10459 "If it was not possible to get an icon this function returns a zero-length "
10460 "(non-NULL) buffer.  I<Callers must check for this case>."
10461 msgstr ""
10462
10463 #. type: textblock
10464 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
10465 msgid ""
10466 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10467 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10468 "this file will be returned.  You can disable favicons by passing the "
10469 "optional C<favicon> boolean as false (default is true)."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
10474 msgid ""
10475 "If finding the favicon fails, then we look in other places in the guest for "
10476 "a suitable icon."
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
10481 msgid ""
10482 "If the optional C<highquality> boolean is true then only high quality icons "
10483 "are returned, which means only icons of high resolution with an alpha "
10484 "channel.  The default (false) is to return any icon we can, even if it is of "
10485 "substandard quality."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
10490 msgid ""
10491 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10492 "before you call this, since it needs to read information from the guest "
10493 "filesystem during the call."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
10498 msgid ""
10499 "B<Security:> The icon data comes from the untrusted guest, and should be "
10500 "treated with caution.  PNG files have been known to contain exploits.  "
10501 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10502 "trying to process or display the icon."
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
10507 msgid ""
10508 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10509 "tries to return the largest, highest quality icon available.  The "
10510 "application must scale the icon to the required size."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
10515 msgid ""
10516 "Extracting icons from Windows guests requires the external C<wrestool> "
10517 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10518 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10519 "installed separately."
10520 msgstr ""
10521
10522 #. type: textblock
10523 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
10524 msgid ""
10525 "Operating system icons are usually trademarks.  Seek legal advice before "
10526 "using trademarks in applications."
10527 msgstr ""
10528
10529 #. type: =head2
10530 #: ../fish/guestfish-actions.pod:2042
10531 msgid "inspect-get-major-version"
10532 msgstr "inspect-get-major-version"
10533
10534 #. type: verbatim
10535 #: ../fish/guestfish-actions.pod:2044
10536 #, no-wrap
10537 msgid ""
10538 " inspect-get-major-version root\n"
10539 "\n"
10540 msgstr ""
10541 " inspect-get-major-version корінь\n"
10542 "\n"
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
10546 msgid ""
10547 "This returns the major version number of the inspected operating system."
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
10552 msgid ""
10553 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10554 "popular public names used by the operating system.  Notably the operating "
10555 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10556 "1).  You can find out the real versions corresponding to releases of Windows "
10557 "by consulting Wikipedia or MSDN."
10558 msgstr ""
10559
10560 #. type: textblock
10561 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
10562 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
10563 msgid "If the version could not be determined, then C<0> is returned."
10564 msgstr ""
10565
10566 #. type: =head2
10567 #: ../fish/guestfish-actions.pod:2060
10568 msgid "inspect-get-minor-version"
10569 msgstr "inspect-get-minor-version"
10570
10571 #. type: verbatim
10572 #: ../fish/guestfish-actions.pod:2062
10573 #, no-wrap
10574 msgid ""
10575 " inspect-get-minor-version root\n"
10576 "\n"
10577 msgstr ""
10578 " inspect-get-minor-version корінь\n"
10579 "\n"
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
10583 msgid ""
10584 "This returns the minor version number of the inspected operating system."
10585 msgstr ""
10586
10587 #. type: textblock
10588 #: ../fish/guestfish-actions.pod:2069
10589 msgid ""
10590 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10591 "get-major-version>."
10592 msgstr ""
10593
10594 #. type: =head2
10595 #: ../fish/guestfish-actions.pod:2072
10596 msgid "inspect-get-mountpoints"
10597 msgstr "inspect-get-mountpoints"
10598
10599 #. type: verbatim
10600 #: ../fish/guestfish-actions.pod:2074
10601 #, no-wrap
10602 msgid ""
10603 " inspect-get-mountpoints root\n"
10604 "\n"
10605 msgstr ""
10606 " inspect-get-mountpoints корінь\n"
10607 "\n"
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
10611 msgid ""
10612 "This returns a hash of where we think the filesystems associated with this "
10613 "operating system should be mounted.  Callers should note that this is at "
10614 "best an educated guess made by reading configuration files such as C</etc/"
10615 "fstab>.  I<In particular note> that this may return filesystems which are "
10616 "non-existent or not mountable and callers should be prepared to handle or "
10617 "ignore failures if they try to mount them."
10618 msgstr ""
10619
10620 #. type: textblock
10621 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
10622 msgid ""
10623 "Each element in the returned hashtable has a key which is the path of the "
10624 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10625 "mounted there (eg. C</dev/sda1>)."
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
10630 msgid ""
10631 "Non-mounted devices such as swap devices are I<not> returned in this list."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2093
10636 msgid ""
10637 "For operating systems like Windows which still use drive letters, this call "
10638 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10639 "information about the mapping of drive letters to partitions, see L</inspect-"
10640 "get-drive-mappings>."
10641 msgstr ""
10642
10643 #. type: textblock
10644 #: ../fish/guestfish-actions.pod:2099
10645 msgid ""
10646 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10647 "get-filesystems>."
10648 msgstr ""
10649
10650 #. type: =head2
10651 #: ../fish/guestfish-actions.pod:2102
10652 msgid "inspect-get-package-format"
10653 msgstr "inspect-get-package-format"
10654
10655 #. type: verbatim
10656 #: ../fish/guestfish-actions.pod:2104
10657 #, no-wrap
10658 msgid ""
10659 " inspect-get-package-format root\n"
10660 "\n"
10661 msgstr ""
10662 " inspect-get-package-format корінь\n"
10663 "\n"
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2106
10667 msgid ""
10668 "This function and L</inspect-get-package-management> return the package "
10669 "format and package management tool used by the inspected operating system.  "
10670 "For example for Fedora these functions would return C<rpm> (package format) "
10671 "and C<yum> (package management)."
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
10676 msgid ""
10677 "This returns the string C<unknown> if we could not determine the package "
10678 "format I<or> if the operating system does not have a real packaging system "
10679 "(eg. Windows)."
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
10684 msgid ""
10685 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
10686 "Future versions of libguestfs may return other strings."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2121
10691 msgid "inspect-get-package-management"
10692 msgstr "inspect-get-package-management"
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2123
10696 #, no-wrap
10697 msgid ""
10698 " inspect-get-package-management root\n"
10699 "\n"
10700 msgstr ""
10701 " inspect-get-package-management корінь\n"
10702 "\n"
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:2125
10706 msgid ""
10707 "L</inspect-get-package-format> and this function return the package format "
10708 "and package management tool used by the inspected operating system.  For "
10709 "example for Fedora these functions would return C<rpm> (package format) and "
10710 "C<yum> (package management)."
10711 msgstr ""
10712
10713 #. type: textblock
10714 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
10715 msgid ""
10716 "This returns the string C<unknown> if we could not determine the package "
10717 "management tool I<or> if the operating system does not have a real packaging "
10718 "system (eg. Windows)."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
10723 msgid ""
10724 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10725 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
10726 "libguestfs may return other strings."
10727 msgstr ""
10728
10729 #. type: =head2
10730 #: ../fish/guestfish-actions.pod:2142
10731 msgid "inspect-get-product-name"
10732 msgstr "inspect-get-product-name"
10733
10734 #. type: verbatim
10735 #: ../fish/guestfish-actions.pod:2144
10736 #, no-wrap
10737 msgid ""
10738 " inspect-get-product-name root\n"
10739 "\n"
10740 msgstr ""
10741 " inspect-get-product-name корінь\n"
10742 "\n"
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
10746 msgid ""
10747 "This returns the product name of the inspected operating system.  The "
10748 "product name is generally some freeform string which can be displayed to the "
10749 "user, but should not be parsed by programs."
10750 msgstr ""
10751
10752 #. type: textblock
10753 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
10754 msgid ""
10755 "If the product name could not be determined, then the string C<unknown> is "
10756 "returned."
10757 msgstr ""
10758
10759 #. type: =head2
10760 #: ../fish/guestfish-actions.pod:2156
10761 msgid "inspect-get-product-variant"
10762 msgstr ""
10763
10764 #. type: verbatim
10765 #: ../fish/guestfish-actions.pod:2158
10766 #, no-wrap
10767 msgid ""
10768 " inspect-get-product-variant root\n"
10769 "\n"
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
10774 msgid "This returns the product variant of the inspected operating system."
10775 msgstr ""
10776
10777 #. type: textblock
10778 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
10779 msgid ""
10780 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10781 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10782 "is usually a string such as C<Client> or C<Server> (other values are "
10783 "possible).  This can be used to distinguish consumer and enterprise versions "
10784 "of Windows that have the same version number (for example, Windows 7 and "
10785 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10786 "the latter is C<Server>)."
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
10791 msgid ""
10792 "For enterprise Linux guests, in future we intend this to return the product "
10793 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10794 "implemented at present."
10795 msgstr ""
10796
10797 #. type: textblock
10798 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
10799 msgid ""
10800 "If the product variant could not be determined, then the string C<unknown> "
10801 "is returned."
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:2179
10806 msgid ""
10807 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10808 "get-product-name>, L</inspect-get-major-version>."
10809 msgstr ""
10810
10811 #. type: =head2
10812 #: ../fish/guestfish-actions.pod:2183
10813 msgid "inspect-get-roots"
10814 msgstr "inspect-get-roots"
10815
10816 #. type: verbatim
10817 #: ../fish/guestfish-actions.pod:2185
10818 #, no-wrap
10819 msgid ""
10820 " inspect-get-roots\n"
10821 "\n"
10822 msgstr ""
10823 " inspect-get-roots\n"
10824 "\n"
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:2187
10828 msgid ""
10829 "This function is a convenient way to get the list of root devices, as "
10830 "returned from a previous call to L</inspect-os>, but without redoing the "
10831 "whole inspection process."
10832 msgstr ""
10833
10834 #. type: textblock
10835 #: ../fish/guestfish-actions.pod:2191
10836 msgid ""
10837 "This returns an empty list if either no root devices were found or the "
10838 "caller has not called L</inspect-os>."
10839 msgstr ""
10840
10841 #. type: =head2
10842 #: ../fish/guestfish-actions.pod:2196
10843 msgid "inspect-get-type"
10844 msgstr "inspect-get-type"
10845
10846 #. type: verbatim
10847 #: ../fish/guestfish-actions.pod:2198
10848 #, no-wrap
10849 msgid ""
10850 " inspect-get-type root\n"
10851 "\n"
10852 msgstr ""
10853 " inspect-get-type корінь\n"
10854 "\n"
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
10858 msgid ""
10859 "This returns the type of the inspected operating system.  Currently defined "
10860 "types are:"
10861 msgstr ""
10862
10863 #. type: =item
10864 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
10865 msgid "\"linux\""
10866 msgstr "\"linux\""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
10870 msgid "Any Linux-based operating system."
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
10875 msgid "Any Microsoft Windows operating system."
10876 msgstr ""
10877
10878 #. type: =item
10879 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
10880 msgid "\"freebsd\""
10881 msgstr "\"freebsd\""
10882
10883 #. type: textblock
10884 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
10885 msgid "FreeBSD."
10886 msgstr "FreeBSD."
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
10890 msgid "The operating system type could not be determined."
10891 msgstr ""
10892
10893 #. type: =head2
10894 #: ../fish/guestfish-actions.pod:2228
10895 msgid "inspect-get-windows-current-control-set"
10896 msgstr ""
10897
10898 #. type: verbatim
10899 #: ../fish/guestfish-actions.pod:2230
10900 #, no-wrap
10901 msgid ""
10902 " inspect-get-windows-current-control-set root\n"
10903 "\n"
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
10908 msgid ""
10909 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10910 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
10915 msgid ""
10916 "This call assumes that the guest is Windows and that the Registry could be "
10917 "examined by inspection.  If this is not the case then an error is returned."
10918 msgstr ""
10919
10920 #. type: =head2
10921 #: ../fish/guestfish-actions.pod:2241
10922 msgid "inspect-get-windows-systemroot"
10923 msgstr "inspect-get-windows-systemroot"
10924
10925 #. type: verbatim
10926 #: ../fish/guestfish-actions.pod:2243
10927 #, no-wrap
10928 msgid ""
10929 " inspect-get-windows-systemroot root\n"
10930 "\n"
10931 msgstr ""
10932 " inspect-get-windows-systemroot корінь\n"
10933 "\n"
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
10937 msgid ""
10938 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10939 "is a directory path such as C</WINDOWS>."
10940 msgstr ""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
10944 msgid ""
10945 "This call assumes that the guest is Windows and that the systemroot could be "
10946 "determined by inspection.  If this is not the case then an error is returned."
10947 msgstr ""
10948
10949 #. type: =head2
10950 #: ../fish/guestfish-actions.pod:2254
10951 msgid "inspect-is-live"
10952 msgstr "inspect-is-live"
10953
10954 #. type: verbatim
10955 #: ../fish/guestfish-actions.pod:2256
10956 #, no-wrap
10957 msgid ""
10958 " inspect-is-live root\n"
10959 "\n"
10960 msgstr ""
10961 " inspect-is-live корінь\n"
10962 "\n"
10963
10964 #. type: textblock
10965 #: ../fish/guestfish-actions.pod:2258
10966 msgid ""
10967 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10968 "then this returns true if a live image was detected on the disk."
10969 msgstr ""
10970
10971 #. type: =head2
10972 #: ../fish/guestfish-actions.pod:2264
10973 msgid "inspect-is-multipart"
10974 msgstr "inspect-is-multipart"
10975
10976 #. type: verbatim
10977 #: ../fish/guestfish-actions.pod:2266
10978 #, no-wrap
10979 msgid ""
10980 " inspect-is-multipart root\n"
10981 "\n"
10982 msgstr ""
10983 " inspect-is-multipart корінь\n"
10984 "\n"
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:2268
10988 msgid ""
10989 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10990 "then this returns true if the disk is part of a set."
10991 msgstr ""
10992
10993 #. type: =head2
10994 #: ../fish/guestfish-actions.pod:2274
10995 msgid "inspect-is-netinst"
10996 msgstr "inspect-is-netinst"
10997
10998 #. type: verbatim
10999 #: ../fish/guestfish-actions.pod:2276
11000 #, no-wrap
11001 msgid ""
11002 " inspect-is-netinst root\n"
11003 "\n"
11004 msgstr ""
11005 " inspect-is-netinst корінь\n"
11006 "\n"
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:2278
11010 msgid ""
11011 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11012 "then this returns true if the disk is a network installer, ie. not a self-"
11013 "contained install CD but one which is likely to require network access to "
11014 "complete the install."
11015 msgstr ""
11016
11017 #. type: =head2
11018 #: ../fish/guestfish-actions.pod:2286
11019 msgid "inspect-list-applications"
11020 msgstr "inspect-list-applications"
11021
11022 #. type: verbatim
11023 #: ../fish/guestfish-actions.pod:2288
11024 #, no-wrap
11025 msgid ""
11026 " inspect-list-applications root\n"
11027 "\n"
11028 msgstr ""
11029 " inspect-list-applications кореневий_каталог\n"
11030 "\n"
11031
11032 #. type: textblock
11033 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
11034 msgid "Return the list of applications installed in the operating system."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2292
11039 msgid ""
11040 "I<Note:> This call works differently from other parts of the inspection "
11041 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11042 "then mount up the disks, before calling this.  Listing applications is a "
11043 "significantly more difficult operation which requires access to the full "
11044 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11045 "are just returning data cached in the libguestfs handle, this call actually "
11046 "reads parts of the mounted filesystems during the call."
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
11051 msgid ""
11052 "This returns an empty list if the inspection code was not able to determine "
11053 "the list of applications."
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
11058 msgid "The application structure contains the following fields:"
11059 msgstr ""
11060
11061 #. type: =item
11062 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
11063 msgid "C<app_name>"
11064 msgstr "C<app_name>"
11065
11066 #. type: textblock
11067 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
11068 msgid ""
11069 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11070 "guests, this is the package name."
11071 msgstr ""
11072
11073 #. type: =item
11074 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
11075 msgid "C<app_display_name>"
11076 msgstr "C<app_display_name>"
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
11080 msgid ""
11081 "The display name of the application, sometimes localized to the install "
11082 "language of the guest operating system."
11083 msgstr ""
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
11087 msgid ""
11088 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11089 "to display something can use C<app_name> instead."
11090 msgstr ""
11091
11092 #. type: =item
11093 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
11094 msgid "C<app_epoch>"
11095 msgstr "C<app_epoch>"
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
11099 msgid ""
11100 "For package managers which use epochs, this contains the epoch of the "
11101 "package (an integer).  If unavailable, this is returned as C<0>."
11102 msgstr ""
11103
11104 #. type: =item
11105 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
11106 msgid "C<app_version>"
11107 msgstr "C<app_version>"
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
11111 msgid ""
11112 "The version string of the application or package.  If unavailable this is "
11113 "returned as an empty string C<\"\">."
11114 msgstr ""
11115
11116 #. type: =item
11117 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
11118 msgid "C<app_release>"
11119 msgstr "C<app_release>"
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
11123 msgid ""
11124 "The release string of the application or package, for package managers that "
11125 "use this.  If unavailable this is returned as an empty string C<\"\">."
11126 msgstr ""
11127
11128 #. type: =item
11129 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
11130 msgid "C<app_install_path>"
11131 msgstr "C<app_install_path>"
11132
11133 #. type: textblock
11134 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
11135 msgid ""
11136 "The installation path of the application (on operating systems such as "
11137 "Windows which use installation paths).  This path is in the format used by "
11138 "the guest operating system, it is not a libguestfs path."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
11143 msgid "If unavailable this is returned as an empty string C<\"\">."
11144 msgstr ""
11145
11146 #. type: =item
11147 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
11148 msgid "C<app_trans_path>"
11149 msgstr "C<app_trans_path>"
11150
11151 #. type: textblock
11152 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
11153 msgid ""
11154 "The install path translated into a libguestfs path.  If unavailable this is "
11155 "returned as an empty string C<\"\">."
11156 msgstr ""
11157
11158 #. type: =item
11159 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
11160 msgid "C<app_publisher>"
11161 msgstr "C<app_publisher>"
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
11165 msgid ""
11166 "The name of the publisher of the application, for package managers that use "
11167 "this.  If unavailable this is returned as an empty string C<\"\">."
11168 msgstr ""
11169
11170 #. type: =item
11171 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
11172 msgid "C<app_url>"
11173 msgstr "C<app_url>"
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
11177 msgid ""
11178 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11179 "returned as an empty string C<\"\">."
11180 msgstr ""
11181
11182 #. type: =item
11183 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
11184 msgid "C<app_source_package>"
11185 msgstr "C<app_source_package>"
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
11189 msgid ""
11190 "For packaging systems which support this, the name of the source package.  "
11191 "If unavailable this is returned as an empty string C<\"\">."
11192 msgstr ""
11193
11194 #. type: =item
11195 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
11196 msgid "C<app_summary>"
11197 msgstr "C<app_summary>"
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
11201 msgid ""
11202 "A short (usually one line) description of the application or package.  If "
11203 "unavailable this is returned as an empty string C<\"\">."
11204 msgstr ""
11205
11206 #. type: =item
11207 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
11208 msgid "C<app_description>"
11209 msgstr "C<app_description>"
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
11213 msgid ""
11214 "A longer description of the application or package.  If unavailable this is "
11215 "returned as an empty string C<\"\">."
11216 msgstr ""
11217
11218 #. type: =head2
11219 #: ../fish/guestfish-actions.pod:2382
11220 msgid "inspect-os"
11221 msgstr "inspect-os"
11222
11223 #. type: verbatim
11224 #: ../fish/guestfish-actions.pod:2384
11225 #, no-wrap
11226 msgid ""
11227 " inspect-os\n"
11228 "\n"
11229 msgstr ""
11230 " inspect-os\n"
11231 "\n"
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
11235 msgid ""
11236 "This function uses other libguestfs functions and certain heuristics to "
11237 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11238 "for operating systems."
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
11243 msgid "The list returned is empty if no operating systems were found."
11244 msgstr ""
11245
11246 #. type: textblock
11247 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
11248 msgid ""
11249 "If one operating system was found, then this returns a list with a single "
11250 "element, which is the name of the root filesystem of this operating system.  "
11251 "It is also possible for this function to return a list containing more than "
11252 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11253 "element being the root filesystem of one of the operating systems."
11254 msgstr ""
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2399
11258 msgid ""
11259 "You can pass the root string(s) returned to other L</inspect-get-*> "
11260 "functions in order to query further information about each operating system, "
11261 "such as the name and version."
11262 msgstr ""
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:2404
11266 msgid ""
11267 "This function uses other libguestfs features such as L</mount-ro> and L</"
11268 "umount-all> in order to mount and unmount filesystems and look at the "
11269 "contents.  This should be called with no disks currently mounted.  The "
11270 "function may also use Augeas, so any existing Augeas handle will be closed."
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
11275 msgid ""
11276 "This function cannot decrypt encrypted disks.  The caller must do that first "
11277 "(supplying the necessary keys) if the disk is encrypted."
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
11282 #: ../fish/guestfish-actions.pod:2673
11283 msgid "See also L</list-filesystems>."
11284 msgstr "Див. також L</list-filesystems>."
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:2418
11288 msgid "is-blockdev"
11289 msgstr "is-blockdev"
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:2420
11293 #, no-wrap
11294 msgid ""
11295 " is-blockdev path\n"
11296 "\n"
11297 msgstr ""
11298 " is-blockdev шлях\n"
11299 "\n"
11300
11301 #. type: textblock
11302 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
11303 msgid ""
11304 "This returns C<true> if and only if there is a block device with the given "
11305 "C<path> name."
11306 msgstr ""
11307
11308 #. type: textblock
11309 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
11310 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
11311 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
11312 #: ../fish/guestfish-actions.pod:2524
11313 msgid "See also L</stat>."
11314 msgstr "Див. також L</stat>."
11315
11316 #. type: =head2
11317 #: ../fish/guestfish-actions.pod:2427
11318 msgid "is-busy"
11319 msgstr "is-busy"
11320
11321 #. type: verbatim
11322 #: ../fish/guestfish-actions.pod:2429
11323 #, no-wrap
11324 msgid ""
11325 " is-busy\n"
11326 "\n"
11327 msgstr ""
11328 " is-busy\n"
11329 "\n"
11330
11331 #. type: textblock
11332 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
11333 msgid ""
11334 "This returns true iff this handle is busy processing a command (in the "
11335 "C<BUSY> state)."
11336 msgstr ""
11337
11338 #. type: =head2
11339 #: ../fish/guestfish-actions.pod:2436
11340 msgid "is-chardev"
11341 msgstr "is-chardev"
11342
11343 #. type: verbatim
11344 #: ../fish/guestfish-actions.pod:2438
11345 #, no-wrap
11346 msgid ""
11347 " is-chardev path\n"
11348 "\n"
11349 msgstr ""
11350 " is-chardev шлях\n"
11351 "\n"
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
11355 msgid ""
11356 "This returns C<true> if and only if there is a character device with the "
11357 "given C<path> name."
11358 msgstr ""
11359
11360 #. type: =head2
11361 #: ../fish/guestfish-actions.pod:2445
11362 msgid "is-config"
11363 msgstr "is-config"
11364
11365 #. type: verbatim
11366 #: ../fish/guestfish-actions.pod:2447
11367 #, no-wrap
11368 msgid ""
11369 " is-config\n"
11370 "\n"
11371 msgstr ""
11372 " is-config\n"
11373 "\n"
11374
11375 #. type: textblock
11376 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
11377 msgid ""
11378 "This returns true iff this handle is being configured (in the C<CONFIG> "
11379 "state)."
11380 msgstr ""
11381
11382 #. type: =head2
11383 #: ../fish/guestfish-actions.pod:2454
11384 msgid "is-dir"
11385 msgstr "is-dir"
11386
11387 #. type: verbatim
11388 #: ../fish/guestfish-actions.pod:2456
11389 #, no-wrap
11390 msgid ""
11391 " is-dir path\n"
11392 "\n"
11393 msgstr ""
11394 " is-dir шлях\n"
11395 "\n"
11396
11397 #. type: textblock
11398 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
11399 msgid ""
11400 "This returns C<true> if and only if there is a directory with the given "
11401 "C<path> name.  Note that it returns false for other objects like files."
11402 msgstr ""
11403
11404 #. type: =head2
11405 #: ../fish/guestfish-actions.pod:2464
11406 msgid "is-fifo"
11407 msgstr "is-fifo"
11408
11409 #. type: verbatim
11410 #: ../fish/guestfish-actions.pod:2466
11411 #, no-wrap
11412 msgid ""
11413 " is-fifo path\n"
11414 "\n"
11415 msgstr ""
11416 " is-fifo шлях\n"
11417 "\n"
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
11421 msgid ""
11422 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11423 "given C<path> name."
11424 msgstr ""
11425
11426 #. type: =head2
11427 #: ../fish/guestfish-actions.pod:2473
11428 msgid "is-file"
11429 msgstr "is-file"
11430
11431 #. type: verbatim
11432 #: ../fish/guestfish-actions.pod:2475
11433 #, no-wrap
11434 msgid ""
11435 " is-file path\n"
11436 "\n"
11437 msgstr ""
11438 " is-file шлях\n"
11439 "\n"
11440
11441 #. type: textblock
11442 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
11443 msgid ""
11444 "This returns C<true> if and only if there is a regular file with the given "
11445 "C<path> name.  Note that it returns false for other objects like directories."
11446 msgstr ""
11447
11448 #. type: =head2
11449 #: ../fish/guestfish-actions.pod:2483
11450 msgid "is-launching"
11451 msgstr "is-launching"
11452
11453 #. type: verbatim
11454 #: ../fish/guestfish-actions.pod:2485
11455 #, no-wrap
11456 msgid ""
11457 " is-launching\n"
11458 "\n"
11459 msgstr ""
11460 " is-launching\n"
11461 "\n"
11462
11463 #. type: textblock
11464 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
11465 msgid ""
11466 "This returns true iff this handle is launching the subprocess (in the "
11467 "C<LAUNCHING> state)."
11468 msgstr ""
11469
11470 #. type: =head2
11471 #: ../fish/guestfish-actions.pod:2492
11472 msgid "is-lv"
11473 msgstr "is-lv"
11474
11475 #. type: verbatim
11476 #: ../fish/guestfish-actions.pod:2494
11477 #, no-wrap
11478 msgid ""
11479 " is-lv device\n"
11480 "\n"
11481 msgstr ""
11482 " is-lv пристрій\n"
11483 "\n"
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
11487 msgid ""
11488 "This command tests whether C<device> is a logical volume, and returns true "
11489 "iff this is the case."
11490 msgstr ""
11491
11492 #. type: =head2
11493 #: ../fish/guestfish-actions.pod:2499
11494 msgid "is-ready"
11495 msgstr "is-ready"
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:2501
11499 #, no-wrap
11500 msgid ""
11501 " is-ready\n"
11502 "\n"
11503 msgstr ""
11504 " is-ready\n"
11505 "\n"
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
11509 msgid ""
11510 "This returns true iff this handle is ready to accept commands (in the "
11511 "C<READY> state)."
11512 msgstr ""
11513
11514 #. type: =head2
11515 #: ../fish/guestfish-actions.pod:2508
11516 msgid "is-socket"
11517 msgstr "is-socket"
11518
11519 #. type: verbatim
11520 #: ../fish/guestfish-actions.pod:2510
11521 #, no-wrap
11522 msgid ""
11523 " is-socket path\n"
11524 "\n"
11525 msgstr ""
11526 " is-socket шлях\n"
11527 "\n"
11528
11529 #. type: textblock
11530 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
11531 msgid ""
11532 "This returns C<true> if and only if there is a Unix domain socket with the "
11533 "given C<path> name."
11534 msgstr ""
11535
11536 #. type: =head2
11537 #: ../fish/guestfish-actions.pod:2517
11538 msgid "is-symlink"
11539 msgstr "is-symlink"
11540
11541 #. type: verbatim
11542 #: ../fish/guestfish-actions.pod:2519
11543 #, no-wrap
11544 msgid ""
11545 " is-symlink path\n"
11546 "\n"
11547 msgstr ""
11548 " is-symlink шлях\n"
11549 "\n"
11550
11551 #. type: textblock
11552 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
11553 msgid ""
11554 "This returns C<true> if and only if there is a symbolic link with the given "
11555 "C<path> name."
11556 msgstr ""
11557
11558 #. type: =head2
11559 #: ../fish/guestfish-actions.pod:2526
11560 msgid "is-zero"
11561 msgstr ""
11562
11563 #. type: verbatim
11564 #: ../fish/guestfish-actions.pod:2528
11565 #, no-wrap
11566 msgid ""
11567 " is-zero path\n"
11568 "\n"
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
11573 msgid ""
11574 "This returns true iff the file exists and the file is empty or it contains "
11575 "all zero bytes."
11576 msgstr ""
11577
11578 #. type: =head2
11579 #: ../fish/guestfish-actions.pod:2533
11580 msgid "is-zero-device"
11581 msgstr ""
11582
11583 #. type: verbatim
11584 #: ../fish/guestfish-actions.pod:2535
11585 #, no-wrap
11586 msgid ""
11587 " is-zero-device device\n"
11588 "\n"
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
11593 msgid "This returns true iff the device exists and contains all zero bytes."
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
11598 msgid "Note that for large devices this can take a long time to run."
11599 msgstr ""
11600
11601 #. type: =head2
11602 #: ../fish/guestfish-actions.pod:2541
11603 msgid "kill-subprocess"
11604 msgstr "kill-subprocess"
11605
11606 #. type: verbatim
11607 #: ../fish/guestfish-actions.pod:2543
11608 #, no-wrap
11609 msgid ""
11610 " kill-subprocess\n"
11611 "\n"
11612 msgstr ""
11613 " kill-subprocess\n"
11614 "\n"
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
11618 msgid "This kills the qemu subprocess.  You should never need to call this."
11619 msgstr ""
11620
11621 #. type: =head2
11622 #: ../fish/guestfish-actions.pod:2547
11623 msgid "launch"
11624 msgstr "launch"
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:2549
11628 msgid "run"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:2551
11633 #, no-wrap
11634 msgid ""
11635 " launch\n"
11636 "\n"
11637 msgstr ""
11638 " launch\n"
11639 "\n"
11640
11641 #. type: textblock
11642 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
11643 msgid ""
11644 "Internally libguestfs is implemented by running a virtual machine using "
11645 "L<qemu(1)>."
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
11650 msgid ""
11651 "You should call this after configuring the handle (eg. adding drives) but "
11652 "before performing any actions."
11653 msgstr ""
11654
11655 #. type: =head2
11656 #: ../fish/guestfish-actions.pod:2559
11657 msgid "lchown"
11658 msgstr "lchown"
11659
11660 #. type: verbatim
11661 #: ../fish/guestfish-actions.pod:2561
11662 #, no-wrap
11663 msgid ""
11664 " lchown owner group path\n"
11665 "\n"
11666 msgstr ""
11667 " lchown власник група шлях\n"
11668 "\n"
11669
11670 #. type: textblock
11671 #: ../fish/guestfish-actions.pod:2563
11672 msgid ""
11673 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11674 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11675 "target."
11676 msgstr ""
11677
11678 #. type: =head2
11679 #: ../fish/guestfish-actions.pod:2571
11680 msgid "lgetxattr"
11681 msgstr "lgetxattr"
11682
11683 #. type: verbatim
11684 #: ../fish/guestfish-actions.pod:2573
11685 #, no-wrap
11686 msgid ""
11687 " lgetxattr path name\n"
11688 "\n"
11689 msgstr ""
11690 " lgetxattr шлях назва\n"
11691 "\n"
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
11695 msgid ""
11696 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11697 "is a symlink, then this call returns an extended attribute from the symlink."
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:2589
11702 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11703 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11704
11705 #. type: =head2
11706 #: ../fish/guestfish-actions.pod:2591
11707 msgid "lgetxattrs"
11708 msgstr "lgetxattrs"
11709
11710 #. type: verbatim
11711 #: ../fish/guestfish-actions.pod:2593
11712 #, no-wrap
11713 msgid ""
11714 " lgetxattrs path\n"
11715 "\n"
11716 msgstr ""
11717 " lgetxattrs шлях\n"
11718 "\n"
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2595
11722 msgid ""
11723 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11724 "it returns the extended attributes of the link itself."
11725 msgstr ""
11726
11727 #. type: =head2
11728 #: ../fish/guestfish-actions.pod:2599
11729 msgid "list-9p"
11730 msgstr ""
11731
11732 #. type: verbatim
11733 #: ../fish/guestfish-actions.pod:2601
11734 #, no-wrap
11735 msgid ""
11736 " list-9p\n"
11737 "\n"
11738 msgstr ""
11739
11740 #. type: textblock
11741 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
11742 msgid ""
11743 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11744 "returned."
11745 msgstr ""
11746
11747 #. type: =head2
11748 #: ../fish/guestfish-actions.pod:2606
11749 msgid "list-devices"
11750 msgstr "list-devices"
11751
11752 #. type: verbatim
11753 #: ../fish/guestfish-actions.pod:2608
11754 #, no-wrap
11755 msgid ""
11756 " list-devices\n"
11757 "\n"
11758 msgstr ""
11759 " list-devices\n"
11760 "\n"
11761
11762 #. type: textblock
11763 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
11764 msgid "List all the block devices."
11765 msgstr ""
11766
11767 #. type: textblock
11768 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
11769 msgid "The full block device names are returned, eg. C</dev/sda>."
11770 msgstr ""
11771
11772 #. type: =head2
11773 #: ../fish/guestfish-actions.pod:2616
11774 msgid "list-dm-devices"
11775 msgstr ""
11776
11777 #. type: verbatim
11778 #: ../fish/guestfish-actions.pod:2618
11779 #, no-wrap
11780 msgid ""
11781 " list-dm-devices\n"
11782 "\n"
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
11787 msgid "List all device mapper devices."
11788 msgstr ""
11789
11790 #. type: textblock
11791 #: ../fish/guestfish-actions.pod:2622
11792 msgid ""
11793 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11794 "previous call to L</luks-open>."
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:2625
11799 msgid ""
11800 "Device mapper devices which correspond to logical volumes are I<not> "
11801 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11802 msgstr ""
11803
11804 #. type: =head2
11805 #: ../fish/guestfish-actions.pod:2629
11806 msgid "list-filesystems"
11807 msgstr "list-filesystems"
11808
11809 #. type: verbatim
11810 #: ../fish/guestfish-actions.pod:2631
11811 #, no-wrap
11812 msgid ""
11813 " list-filesystems\n"
11814 "\n"
11815 msgstr ""
11816 " list-filesystems\n"
11817 "\n"
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
11821 msgid ""
11822 "This inspection command looks for filesystems on partitions, block devices "
11823 "and logical volumes, returning a list of devices containing filesystems and "
11824 "their type."
11825 msgstr ""
11826
11827 #. type: textblock
11828 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
11829 msgid ""
11830 "The return value is a hash, where the keys are the devices containing "
11831 "filesystems, and the values are the filesystem types.  For example:"
11832 msgstr ""
11833
11834 #. type: verbatim
11835 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
11836 #, no-wrap
11837 msgid ""
11838 " \"/dev/sda1\" => \"ntfs\"\n"
11839 " \"/dev/sda2\" => \"ext2\"\n"
11840 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11841 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11842 "\n"
11843 msgstr ""
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
11847 msgid ""
11848 "The value can have the special value \"unknown\", meaning the content of the "
11849 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11850 msgstr ""
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:2650
11854 msgid ""
11855 "This command runs other libguestfs commands, which might include L</mount> "
11856 "and L</umount>, and therefore you should use this soon after launch and only "
11857 "when nothing is mounted."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:2654
11862 msgid ""
11863 "Not all of the filesystems returned will be mountable.  In particular, swap "
11864 "partitions are returned in the list.  Also this command does not check that "
11865 "each filesystem found is valid and mountable, and some filesystems might be "
11866 "mountable but require special options.  Filesystems may not all belong to a "
11867 "single logical operating system (use L</inspect-os> to look for OSes)."
11868 msgstr ""
11869
11870 #. type: =head2
11871 #: ../fish/guestfish-actions.pod:2662
11872 msgid "list-partitions"
11873 msgstr "list-partitions"
11874
11875 #. type: verbatim
11876 #: ../fish/guestfish-actions.pod:2664
11877 #, no-wrap
11878 msgid ""
11879 " list-partitions\n"
11880 "\n"
11881 msgstr ""
11882 " list-partitions\n"
11883 "\n"
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
11887 msgid "List all the partitions detected on all block devices."
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
11892 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:2670
11897 msgid ""
11898 "This does not return logical volumes.  For that you will need to call L</"
11899 "lvs>."
11900 msgstr ""
11901
11902 #. type: =head2
11903 #: ../fish/guestfish-actions.pod:2675
11904 msgid "ll"
11905 msgstr "ll"
11906
11907 #. type: verbatim
11908 #: ../fish/guestfish-actions.pod:2677
11909 #, no-wrap
11910 msgid ""
11911 " ll directory\n"
11912 "\n"
11913 msgstr ""
11914 " ll каталог\n"
11915 "\n"
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
11919 msgid ""
11920 "List the files in C<directory> (relative to the root directory, there is no "
11921 "cwd) in the format of 'ls -la'."
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
11926 msgid ""
11927 "This command is mostly useful for interactive sessions.  It is I<not> "
11928 "intended that you try to parse the output string."
11929 msgstr ""
11930
11931 #. type: =head2
11932 #: ../fish/guestfish-actions.pod:2685
11933 msgid "ln"
11934 msgstr "ln"
11935
11936 #. type: verbatim
11937 #: ../fish/guestfish-actions.pod:2687
11938 #, no-wrap
11939 msgid ""
11940 " ln target linkname\n"
11941 "\n"
11942 msgstr ""
11943 " ln призначення назва_посилання\n"
11944 "\n"
11945
11946 #. type: textblock
11947 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
11948 msgid "This command creates a hard link using the C<ln> command."
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../fish/guestfish-actions.pod:2691
11953 msgid "ln-f"
11954 msgstr "ln-f"
11955
11956 #. type: verbatim
11957 #: ../fish/guestfish-actions.pod:2693
11958 #, no-wrap
11959 msgid ""
11960 " ln-f target linkname\n"
11961 "\n"
11962 msgstr ""
11963 " ln-f призначення назва_посилання\n"
11964 "\n"
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
11968 msgid ""
11969 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11970 "option removes the link (C<linkname>) if it exists already."
11971 msgstr ""
11972
11973 #. type: =head2
11974 #: ../fish/guestfish-actions.pod:2698
11975 msgid "ln-s"
11976 msgstr "ln-s"
11977
11978 #. type: verbatim
11979 #: ../fish/guestfish-actions.pod:2700
11980 #, no-wrap
11981 msgid ""
11982 " ln-s target linkname\n"
11983 "\n"
11984 msgstr ""
11985 " ln-s призначення назва_посилання\n"
11986 "\n"
11987
11988 #. type: textblock
11989 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
11990 msgid "This command creates a symbolic link using the C<ln -s> command."
11991 msgstr ""
11992
11993 #. type: =head2
11994 #: ../fish/guestfish-actions.pod:2704
11995 msgid "ln-sf"
11996 msgstr "ln-sf"
11997
11998 #. type: verbatim
11999 #: ../fish/guestfish-actions.pod:2706
12000 #, no-wrap
12001 msgid ""
12002 " ln-sf target linkname\n"
12003 "\n"
12004 msgstr ""
12005 " ln-sf призначення назва_посилання\n"
12006 "\n"
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
12010 msgid ""
12011 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12012 "option removes the link (C<linkname>) if it exists already."
12013 msgstr ""
12014
12015 #. type: =head2
12016 #: ../fish/guestfish-actions.pod:2711
12017 msgid "lremovexattr"
12018 msgstr "lremovexattr"
12019
12020 #. type: verbatim
12021 #: ../fish/guestfish-actions.pod:2713
12022 #, no-wrap
12023 msgid ""
12024 " lremovexattr xattr path\n"
12025 "\n"
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:2715
12030 msgid ""
12031 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12032 "it removes an extended attribute of the link itself."
12033 msgstr ""
12034
12035 #. type: =head2
12036 #: ../fish/guestfish-actions.pod:2719
12037 msgid "ls"
12038 msgstr "ls"
12039
12040 #. type: verbatim
12041 #: ../fish/guestfish-actions.pod:2721
12042 #, no-wrap
12043 msgid ""
12044 " ls directory\n"
12045 "\n"
12046 msgstr ""
12047 " ls каталог\n"
12048 "\n"
12049
12050 #. type: textblock
12051 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
12052 msgid ""
12053 "List the files in C<directory> (relative to the root directory, there is no "
12054 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2727
12059 msgid ""
12060 "This command is mostly useful for interactive sessions.  Programs should "
12061 "probably use L</readdir> instead."
12062 msgstr ""
12063
12064 #. type: =head2
12065 #: ../fish/guestfish-actions.pod:2730
12066 msgid "lsetxattr"
12067 msgstr "lsetxattr"
12068
12069 #. type: verbatim
12070 #: ../fish/guestfish-actions.pod:2732
12071 #, no-wrap
12072 msgid ""
12073 " lsetxattr xattr val vallen path\n"
12074 "\n"
12075 msgstr ""
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:2734
12079 msgid ""
12080 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12081 "sets an extended attribute of the link itself."
12082 msgstr ""
12083
12084 #. type: =head2
12085 #: ../fish/guestfish-actions.pod:2738
12086 msgid "lstat"
12087 msgstr "lstat"
12088
12089 #. type: verbatim
12090 #: ../fish/guestfish-actions.pod:2740
12091 #, no-wrap
12092 msgid ""
12093 " lstat path\n"
12094 "\n"
12095 msgstr ""
12096 " lstat шлях\n"
12097 "\n"
12098
12099 #. type: textblock
12100 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
12101 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
12102 msgid "Returns file information for the given C<path>."
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:2744
12107 msgid ""
12108 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12109 "the link is stat-ed, not the file it refers to."
12110 msgstr ""
12111
12112 #. type: textblock
12113 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
12114 msgid "This is the same as the C<lstat(2)> system call."
12115 msgstr ""
12116
12117 #. type: =head2
12118 #: ../fish/guestfish-actions.pod:2750
12119 msgid "lstatlist"
12120 msgstr "lstatlist"
12121
12122 #. type: verbatim
12123 #: ../fish/guestfish-actions.pod:2752
12124 #, no-wrap
12125 msgid ""
12126 " lstatlist path 'names ...'\n"
12127 "\n"
12128 msgstr ""
12129
12130 #. type: textblock
12131 #: ../fish/guestfish-actions.pod:2754
12132 msgid ""
12133 "This call allows you to perform the L</lstat> operation on multiple files, "
12134 "where all files are in the directory C<path>.  C<names> is the list of files "
12135 "from this directory."
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
12140 msgid ""
12141 "On return you get a list of stat structs, with a one-to-one correspondence "
12142 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12143 "then the C<ino> field of that structure is set to C<-1>."
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:2763
12148 msgid ""
12149 "This call is intended for programs that want to efficiently list a directory "
12150 "contents without making many round-trips.  See also L</lxattrlist> for a "
12151 "similarly efficient call for getting extended attributes.  Very long "
12152 "directory listings might cause the protocol message size to be exceeded, "
12153 "causing this call to fail.  The caller must split up such requests into "
12154 "smaller groups of names."
12155 msgstr ""
12156
12157 #. type: =head2
12158 #: ../fish/guestfish-actions.pod:2771
12159 msgid "luks-add-key"
12160 msgstr "luks-add-key"
12161
12162 #. type: verbatim
12163 #: ../fish/guestfish-actions.pod:2773
12164 #, no-wrap
12165 msgid ""
12166 " luks-add-key device keyslot\n"
12167 "\n"
12168 msgstr ""
12169
12170 #. type: textblock
12171 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
12172 msgid ""
12173 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12174 "existing key, and is used to access the device.  C<newkey> is the new key to "
12175 "add.  C<keyslot> is the key slot that will be replaced."
12176 msgstr ""
12177
12178 #. type: textblock
12179 #: ../fish/guestfish-actions.pod:2780
12180 msgid ""
12181 "Note that if C<keyslot> already contains a key, then this command will "
12182 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
12187 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
12188 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
12189 msgid ""
12190 "This command has one or more key or passphrase parameters.  Guestfish will "
12191 "prompt for these separately."
12192 msgstr ""
12193
12194 #. type: =head2
12195 #: ../fish/guestfish-actions.pod:2787
12196 msgid "luks-close"
12197 msgstr "luks-close"
12198
12199 #. type: verbatim
12200 #: ../fish/guestfish-actions.pod:2789
12201 #, no-wrap
12202 msgid ""
12203 " luks-close device\n"
12204 "\n"
12205 msgstr ""
12206 " luks-close пристрій\n"
12207 "\n"
12208
12209 #. type: textblock
12210 #: ../fish/guestfish-actions.pod:2791
12211 msgid ""
12212 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12213 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12214 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12215 "block device."
12216 msgstr ""
12217
12218 #. type: =head2
12219 #: ../fish/guestfish-actions.pod:2797
12220 msgid "luks-format"
12221 msgstr "luks-format"
12222
12223 #. type: verbatim
12224 #: ../fish/guestfish-actions.pod:2799
12225 #, no-wrap
12226 msgid ""
12227 " luks-format device keyslot\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
12233 msgid ""
12234 "This command erases existing data on C<device> and formats the device as a "
12235 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12236 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
12241 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
12242 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
12243 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
12244 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
12245 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
12246 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
12247 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
12248 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
12249 msgid ""
12250 "B<This command is dangerous.  Without careful use you can easily destroy all "
12251 "your data>."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:2812
12256 msgid "luks-format-cipher"
12257 msgstr "luks-format-cipher"
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:2814
12261 #, no-wrap
12262 msgid ""
12263 " luks-format-cipher device keyslot cipher\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:2816
12269 msgid ""
12270 "This command is the same as L</luks-format> but it also allows you to set "
12271 "the C<cipher> used."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:2825
12276 msgid "luks-kill-slot"
12277 msgstr "luks-kill-slot"
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:2827
12281 #, no-wrap
12282 msgid ""
12283 " luks-kill-slot device keyslot\n"
12284 "\n"
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
12289 msgid ""
12290 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12291 "device C<device>.  C<key> must be one of the I<other> keys."
12292 msgstr ""
12293
12294 #. type: =head2
12295 #: ../fish/guestfish-actions.pod:2836
12296 msgid "luks-open"
12297 msgstr "luks-open"
12298
12299 #. type: verbatim
12300 #: ../fish/guestfish-actions.pod:2838
12301 #, no-wrap
12302 msgid ""
12303 " luks-open device mapname\n"
12304 "\n"
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
12309 msgid ""
12310 "This command opens a block device which has been encrypted according to the "
12311 "Linux Unified Key Setup (LUKS) standard."
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
12316 msgid "C<device> is the encrypted block device or partition."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
12321 msgid ""
12322 "The caller must supply one of the keys associated with the LUKS block "
12323 "device, in the C<key> parameter."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
12328 msgid ""
12329 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12330 "writes to this block device are decrypted from and encrypted to the "
12331 "underlying C<device> respectively."
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../fish/guestfish-actions.pod:2852
12336 msgid ""
12337 "If this block device contains LVM volume groups, then calling L</vgscan> "
12338 "followed by L</vg-activate-all> will make them visible."
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:2856
12343 msgid "Use L</list-dm-devices> to list all device mapper devices."
12344 msgstr ""
12345
12346 #. type: =head2
12347 #: ../fish/guestfish-actions.pod:2862
12348 msgid "luks-open-ro"
12349 msgstr "luks-open-ro"
12350
12351 #. type: verbatim
12352 #: ../fish/guestfish-actions.pod:2864
12353 #, no-wrap
12354 msgid ""
12355 " luks-open-ro device mapname\n"
12356 "\n"
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:2866
12361 msgid ""
12362 "This is the same as L</luks-open> except that a read-only mapping is created."
12363 msgstr ""
12364
12365 #. type: =head2
12366 #: ../fish/guestfish-actions.pod:2872
12367 msgid "lvcreate"
12368 msgstr "lvcreate"
12369
12370 #. type: verbatim
12371 #: ../fish/guestfish-actions.pod:2874
12372 #, no-wrap
12373 msgid ""
12374 " lvcreate logvol volgroup mbytes\n"
12375 "\n"
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
12380 msgid ""
12381 "This creates an LVM logical volume called C<logvol> on the volume group "
12382 "C<volgroup>, with C<size> megabytes."
12383 msgstr ""
12384
12385 #. type: =head2
12386 #: ../fish/guestfish-actions.pod:2879
12387 msgid "lvm-canonical-lv-name"
12388 msgstr "lvm-canonical-lv-name"
12389
12390 #. type: verbatim
12391 #: ../fish/guestfish-actions.pod:2881
12392 #, no-wrap
12393 msgid ""
12394 " lvm-canonical-lv-name lvname\n"
12395 "\n"
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
12400 msgid ""
12401 "This converts alternative naming schemes for LVs that you might find to the "
12402 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12403 "LV>."
12404 msgstr ""
12405
12406 #. type: textblock
12407 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
12408 msgid ""
12409 "This command returns an error if the C<lvname> parameter does not refer to a "
12410 "logical volume."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:2890
12415 msgid "See also L</is-lv>."
12416 msgstr "Див. також L</is-lv>."
12417
12418 #. type: =head2
12419 #: ../fish/guestfish-actions.pod:2892
12420 msgid "lvm-clear-filter"
12421 msgstr "lvm-clear-filter"
12422
12423 #. type: verbatim
12424 #: ../fish/guestfish-actions.pod:2894
12425 #, no-wrap
12426 msgid ""
12427 " lvm-clear-filter\n"
12428 "\n"
12429 msgstr ""
12430 " lvm-clear-filter\n"
12431 "\n"
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:2896
12435 msgid ""
12436 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12437 "block device."
12438 msgstr ""
12439
12440 #. type: textblock
12441 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
12442 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
12443 msgid ""
12444 "This command also clears the LVM cache and performs a volume group scan."
12445 msgstr ""
12446
12447 #. type: =head2
12448 #: ../fish/guestfish-actions.pod:2902
12449 msgid "lvm-remove-all"
12450 msgstr "lvm-remove-all"
12451
12452 #. type: verbatim
12453 #: ../fish/guestfish-actions.pod:2904
12454 #, no-wrap
12455 msgid ""
12456 " lvm-remove-all\n"
12457 "\n"
12458 msgstr ""
12459 " lvm-remove-all\n"
12460 "\n"
12461
12462 #. type: textblock
12463 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
12464 msgid ""
12465 "This command removes all LVM logical volumes, volume groups and physical "
12466 "volumes."
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../fish/guestfish-actions.pod:2912
12471 msgid "lvm-set-filter"
12472 msgstr "lvm-set-filter"
12473
12474 #. type: verbatim
12475 #: ../fish/guestfish-actions.pod:2914
12476 #, no-wrap
12477 msgid ""
12478 " lvm-set-filter 'devices ...'\n"
12479 "\n"
12480 msgstr ""
12481 " lvm-set-filter 'пристрої...'\n"
12482 "\n"
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
12486 msgid ""
12487 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12488 "block devices in the list C<devices>, and will ignore all other attached "
12489 "block devices."
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
12494 msgid ""
12495 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12496 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12497 "there are two types of duplication possible: either cloned PVs/VGs which "
12498 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12499 "same name.  In normal operation you cannot create this situation, but you "
12500 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12501 "inside the LVM metadata."
12502 msgstr ""
12503
12504 #. type: textblock
12505 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
12506 msgid "You can filter whole block devices or individual partitions."
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
12511 msgid ""
12512 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12513 "filesystem), even if you are not filtering out that VG."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:2939
12518 msgid "lvremove"
12519 msgstr "lvremove"
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:2941
12523 #, no-wrap
12524 msgid ""
12525 " lvremove device\n"
12526 "\n"
12527 msgstr ""
12528 " lvremove пристрій\n"
12529 "\n"
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
12533 msgid ""
12534 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12535 "LV, such as C</dev/VG/LV>."
12536 msgstr ""
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
12540 msgid ""
12541 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12542 "dev/VG>."
12543 msgstr ""
12544
12545 #. type: =head2
12546 #: ../fish/guestfish-actions.pod:2949
12547 msgid "lvrename"
12548 msgstr "lvrename"
12549
12550 #. type: verbatim
12551 #: ../fish/guestfish-actions.pod:2951
12552 #, no-wrap
12553 msgid ""
12554 " lvrename logvol newlogvol\n"
12555 "\n"
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
12560 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12561 msgstr ""
12562
12563 #. type: =head2
12564 #: ../fish/guestfish-actions.pod:2955
12565 msgid "lvresize"
12566 msgstr "lvresize"
12567
12568 #. type: verbatim
12569 #: ../fish/guestfish-actions.pod:2957
12570 #, no-wrap
12571 msgid ""
12572 " lvresize device mbytes\n"
12573 "\n"
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
12578 msgid ""
12579 "This resizes (expands or shrinks) an existing LVM logical volume to "
12580 "C<mbytes>.  When reducing, data in the reduced part is lost."
12581 msgstr ""
12582
12583 #. type: =head2
12584 #: ../fish/guestfish-actions.pod:2963
12585 msgid "lvresize-free"
12586 msgstr "lvresize-free"
12587
12588 #. type: verbatim
12589 #: ../fish/guestfish-actions.pod:2965
12590 #, no-wrap
12591 msgid ""
12592 " lvresize-free lv percent\n"
12593 "\n"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
12598 msgid ""
12599 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12600 "remaining free space in the volume group.  Commonly you would call this with "
12601 "pc = 100 which expands the logical volume as much as possible, using all "
12602 "remaining free space in the volume group."
12603 msgstr ""
12604
12605 #. type: =head2
12606 #: ../fish/guestfish-actions.pod:2973
12607 msgid "lvs"
12608 msgstr "lvs"
12609
12610 #. type: verbatim
12611 #: ../fish/guestfish-actions.pod:2975
12612 #, no-wrap
12613 msgid ""
12614 " lvs\n"
12615 "\n"
12616 msgstr ""
12617 " lvs\n"
12618 "\n"
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
12622 msgid ""
12623 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12624 "(8)> command."
12625 msgstr ""
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
12629 msgid ""
12630 "This returns a list of the logical volume device names (eg. C</dev/"
12631 "VolGroup00/LogVol00>)."
12632 msgstr ""
12633
12634 #. type: textblock
12635 #: ../fish/guestfish-actions.pod:2983
12636 msgid "See also L</lvs-full>, L</list-filesystems>."
12637 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12638
12639 #. type: =head2
12640 #: ../fish/guestfish-actions.pod:2985
12641 msgid "lvs-full"
12642 msgstr "lvs-full"
12643
12644 #. type: verbatim
12645 #: ../fish/guestfish-actions.pod:2987
12646 #, no-wrap
12647 msgid ""
12648 " lvs-full\n"
12649 "\n"
12650 msgstr ""
12651 " lvs-full\n"
12652 "\n"
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
12656 msgid ""
12657 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12658 "(8)> command.  The \"full\" version includes all fields."
12659 msgstr ""
12660
12661 #. type: =head2
12662 #: ../fish/guestfish-actions.pod:2992
12663 msgid "lvuuid"
12664 msgstr "lvuuid"
12665
12666 #. type: verbatim
12667 #: ../fish/guestfish-actions.pod:2994
12668 #, no-wrap
12669 msgid ""
12670 " lvuuid device\n"
12671 "\n"
12672 msgstr ""
12673 " lvuuid пристрій\n"
12674 "\n"
12675
12676 #. type: textblock
12677 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
12678 msgid "This command returns the UUID of the LVM LV C<device>."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:2998
12683 msgid "lxattrlist"
12684 msgstr "lxattrlist"
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:3000
12688 #, no-wrap
12689 msgid ""
12690 " lxattrlist path 'names ...'\n"
12691 "\n"
12692 msgstr ""
12693
12694 #. type: textblock
12695 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
12696 msgid ""
12697 "This call allows you to get the extended attributes of multiple files, where "
12698 "all files are in the directory C<path>.  C<names> is the list of files from "
12699 "this directory."
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
12704 msgid ""
12705 "On return you get a flat list of xattr structs which must be interpreted "
12706 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12707 "C<attrval> in this struct is zero-length to indicate there was an error "
12708 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12709 "number (the number of following attributes for this file, which could be C<"
12710 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12711 "for the first named file.  This repeats for the second and subsequent files."
12712 msgstr ""
12713
12714 #. type: textblock
12715 #: ../fish/guestfish-actions.pod:3016
12716 msgid ""
12717 "This call is intended for programs that want to efficiently list a directory "
12718 "contents without making many round-trips.  See also L</lstatlist> for a "
12719 "similarly efficient call for getting standard stats.  Very long directory "
12720 "listings might cause the protocol message size to be exceeded, causing this "
12721 "call to fail.  The caller must split up such requests into smaller groups of "
12722 "names."
12723 msgstr ""
12724
12725 #. type: =head2
12726 #: ../fish/guestfish-actions.pod:3024
12727 msgid "mkdir"
12728 msgstr "mkdir"
12729
12730 #. type: verbatim
12731 #: ../fish/guestfish-actions.pod:3026
12732 #, no-wrap
12733 msgid ""
12734 " mkdir path\n"
12735 "\n"
12736 msgstr ""
12737 " mkdir шлях\n"
12738 "\n"
12739
12740 #. type: textblock
12741 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
12742 msgid "Create a directory named C<path>."
12743 msgstr ""
12744
12745 #. type: =head2
12746 #: ../fish/guestfish-actions.pod:3030
12747 msgid "mkdir-mode"
12748 msgstr "mkdir-mode"
12749
12750 #. type: verbatim
12751 #: ../fish/guestfish-actions.pod:3032
12752 #, no-wrap
12753 msgid ""
12754 " mkdir-mode path mode\n"
12755 "\n"
12756 msgstr ""
12757 " mkdir-mode шлях режим\n"
12758 "\n"
12759
12760 #. type: textblock
12761 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
12762 msgid ""
12763 "This command creates a directory, setting the initial permissions of the "
12764 "directory to C<mode>."
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
12769 msgid ""
12770 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12771 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12772 "other ways."
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:3041
12777 msgid "See also L</mkdir>, L</umask>"
12778 msgstr "Див. також L</mkdir>, L</umask>"
12779
12780 #. type: =head2
12781 #: ../fish/guestfish-actions.pod:3043
12782 msgid "mkdir-p"
12783 msgstr "mkdir-p"
12784
12785 #. type: verbatim
12786 #: ../fish/guestfish-actions.pod:3045
12787 #, no-wrap
12788 msgid ""
12789 " mkdir-p path\n"
12790 "\n"
12791 msgstr ""
12792 " mkdir-p шлях\n"
12793 "\n"
12794
12795 #. type: textblock
12796 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
12797 msgid ""
12798 "Create a directory named C<path>, creating any parent directories as "
12799 "necessary.  This is like the C<mkdir -p> shell command."
12800 msgstr ""
12801
12802 #. type: =head2
12803 #: ../fish/guestfish-actions.pod:3050
12804 msgid "mkdtemp"
12805 msgstr "mkdtemp"
12806
12807 #. type: verbatim
12808 #: ../fish/guestfish-actions.pod:3052
12809 #, no-wrap
12810 msgid ""
12811 " mkdtemp template\n"
12812 "\n"
12813 msgstr ""
12814 " mkdtemp шаблон\n"
12815 "\n"
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
12819 msgid ""
12820 "This command creates a temporary directory.  The C<template> parameter "
12821 "should be a full pathname for the temporary directory name with the final "
12822 "six characters being \"XXXXXX\"."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
12827 msgid ""
12828 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12829 "being suitable for Windows filesystems."
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
12834 msgid "The name of the temporary directory that was created is returned."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
12839 msgid "The temporary directory is created with mode 0700 and is owned by root."
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
12844 msgid ""
12845 "The caller is responsible for deleting the temporary directory and its "
12846 "contents after use."
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
12851 msgid "See also: L<mkdtemp(3)>"
12852 msgstr ""
12853
12854 #. type: =head2
12855 #: ../fish/guestfish-actions.pod:3073
12856 msgid "mke2fs-J"
12857 msgstr "mke2fs-J"
12858
12859 #. type: verbatim
12860 #: ../fish/guestfish-actions.pod:3075
12861 #, no-wrap
12862 msgid ""
12863 " mke2fs-J fstype blocksize device journal\n"
12864 "\n"
12865 msgstr ""
12866
12867 #. type: textblock
12868 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
12869 msgid ""
12870 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12871 "C<journal>.  It is equivalent to the command:"
12872 msgstr ""
12873
12874 #. type: verbatim
12875 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
12876 #, no-wrap
12877 msgid ""
12878 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12879 "\n"
12880 msgstr ""
12881 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12882 "\n"
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3083
12886 msgid "See also L</mke2journal>."
12887 msgstr "Див. також L</mke2journal>."
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:3085
12891 msgid "mke2fs-JL"
12892 msgstr "mke2fs-JL"
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:3087
12896 #, no-wrap
12897 msgid ""
12898 " mke2fs-JL fstype blocksize device label\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
12904 msgid ""
12905 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12906 "the journal labeled C<label>."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:3092
12911 msgid "See also L</mke2journal-L>."
12912 msgstr "Див. також L</mke2journal-L>."
12913
12914 #. type: =head2
12915 #: ../fish/guestfish-actions.pod:3094
12916 msgid "mke2fs-JU"
12917 msgstr "mke2fs-JU"
12918
12919 #. type: verbatim
12920 #: ../fish/guestfish-actions.pod:3096
12921 #, no-wrap
12922 msgid ""
12923 " mke2fs-JU fstype blocksize device uuid\n"
12924 "\n"
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
12929 msgid ""
12930 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12931 "the journal with UUID C<uuid>."
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3101
12936 msgid "See also L</mke2journal-U>."
12937 msgstr "Див. також L</mke2journal-U>."
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:3103
12941 msgid "mke2journal"
12942 msgstr "mke2journal"
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:3105
12946 #, no-wrap
12947 msgid ""
12948 " mke2journal blocksize device\n"
12949 "\n"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
12954 msgid ""
12955 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12956 "command:"
12957 msgstr ""
12958
12959 #. type: verbatim
12960 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
12961 #, no-wrap
12962 msgid ""
12963 " mke2fs -O journal_dev -b blocksize device\n"
12964 "\n"
12965 msgstr ""
12966
12967 #. type: =head2
12968 #: ../fish/guestfish-actions.pod:3112
12969 msgid "mke2journal-L"
12970 msgstr "mke2journal-L"
12971
12972 #. type: verbatim
12973 #: ../fish/guestfish-actions.pod:3114
12974 #, no-wrap
12975 msgid ""
12976 " mke2journal-L blocksize label device\n"
12977 "\n"
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
12982 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12983 msgstr ""
12984
12985 #. type: =head2
12986 #: ../fish/guestfish-actions.pod:3118
12987 msgid "mke2journal-U"
12988 msgstr "mke2journal-U"
12989
12990 #. type: verbatim
12991 #: ../fish/guestfish-actions.pod:3120
12992 #, no-wrap
12993 msgid ""
12994 " mke2journal-U blocksize uuid device\n"
12995 "\n"
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
13000 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13001 msgstr ""
13002
13003 #. type: =head2
13004 #: ../fish/guestfish-actions.pod:3124
13005 msgid "mkfifo"
13006 msgstr "mkfifo"
13007
13008 #. type: verbatim
13009 #: ../fish/guestfish-actions.pod:3126
13010 #, no-wrap
13011 msgid ""
13012 " mkfifo mode path\n"
13013 "\n"
13014 msgstr ""
13015 " mkfifo режим шлях\n"
13016 "\n"
13017
13018 #. type: textblock
13019 #: ../fish/guestfish-actions.pod:3128
13020 msgid ""
13021 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13022 "is just a convenient wrapper around L</mknod>."
13023 msgstr ""
13024
13025 #. type: =head2
13026 #: ../fish/guestfish-actions.pod:3134
13027 msgid "mkfs"
13028 msgstr "mkfs"
13029
13030 #. type: verbatim
13031 #: ../fish/guestfish-actions.pod:3136
13032 #, no-wrap
13033 msgid ""
13034 " mkfs fstype device\n"
13035 "\n"
13036 msgstr ""
13037 " mkfs тип_файлової_системи пристрій\n"
13038 "\n"
13039
13040 #. type: textblock
13041 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
13042 msgid ""
13043 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13044 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13045 msgstr ""
13046
13047 #. type: =head2
13048 #: ../fish/guestfish-actions.pod:3142
13049 msgid "mkfs-b"
13050 msgstr "mkfs-b"
13051
13052 #. type: verbatim
13053 #: ../fish/guestfish-actions.pod:3144
13054 #, no-wrap
13055 msgid ""
13056 " mkfs-b fstype blocksize device\n"
13057 "\n"
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../fish/guestfish-actions.pod:3146
13062 msgid ""
13063 "This call is similar to L</mkfs>, but it allows you to control the block "
13064 "size of the resulting filesystem.  Supported block sizes depend on the "
13065 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
13070 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
13071 msgid ""
13072 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13073 "cluster size."
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:3154
13078 msgid ""
13079 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13080 "instead."
13081 msgstr ""
13082
13083 #. type: =head2
13084 #: ../fish/guestfish-actions.pod:3161
13085 msgid "mkfs-opts"
13086 msgstr "mkfs-opts"
13087
13088 #. type: verbatim
13089 #: ../fish/guestfish-actions.pod:3163
13090 #, no-wrap
13091 msgid ""
13092 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13093 "\n"
13094 msgstr ""
13095
13096 #. type: textblock
13097 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
13098 msgid ""
13099 "This function creates a filesystem on C<device>.  The filesystem type is "
13100 "C<fstype>, for example C<ext3>."
13101 msgstr ""
13102
13103 #. type: =item
13104 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
13105 msgid "C<blocksize>"
13106 msgstr "C<blocksize>"
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
13110 msgid ""
13111 "The filesystem block size.  Supported block sizes depend on the filesystem "
13112 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13113 "filesystems."
13114 msgstr ""
13115
13116 #. type: textblock
13117 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
13118 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13119 msgstr ""
13120
13121 #. type: =item
13122 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
13123 msgid "C<features>"
13124 msgstr "C<features>"
13125
13126 #. type: textblock
13127 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
13128 msgid "This passes the I<-O> parameter to the external mkfs program."
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
13133 msgid ""
13134 "For certain filesystem types, this allows extra filesystem features to be "
13135 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
13140 msgid ""
13141 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13142 "type."
13143 msgstr ""
13144
13145 #. type: =item
13146 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
13147 msgid "C<inode>"
13148 msgstr ""
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
13152 msgid ""
13153 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13154 "sets the inode size (only for ext2/3/4 filesystems at present)."
13155 msgstr ""
13156
13157 #. type: =item
13158 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
13159 msgid "C<sectorsize>"
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
13164 msgid ""
13165 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13166 "sets sector size for ufs filesystem."
13167 msgstr ""
13168
13169 #. type: =head2
13170 #: ../fish/guestfish-actions.pod:3208
13171 msgid "mkmountpoint"
13172 msgstr "mkmountpoint"
13173
13174 #. type: verbatim
13175 #: ../fish/guestfish-actions.pod:3210
13176 #, no-wrap
13177 msgid ""
13178 " mkmountpoint exemptpath\n"
13179 "\n"
13180 msgstr ""
13181
13182 #. type: textblock
13183 #: ../fish/guestfish-actions.pod:3212
13184 msgid ""
13185 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13186 "to create extra mountpoints before mounting the first filesystem."
13187 msgstr ""
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
13191 msgid ""
13192 "These calls are I<only> necessary in some very limited circumstances, mainly "
13193 "the case where you want to mount a mix of unrelated and/or read-only "
13194 "filesystems together."
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
13199 msgid ""
13200 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13201 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13202 "inside that.  You can unpack this as follows in guestfish:"
13203 msgstr ""
13204
13205 #. type: verbatim
13206 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
13207 #, no-wrap
13208 msgid ""
13209 " add-ro Fedora-11-i686-Live.iso\n"
13210 " run\n"
13211 " mkmountpoint /cd\n"
13212 " mkmountpoint /sqsh\n"
13213 " mkmountpoint /ext3fs\n"
13214 " mount /dev/sda /cd\n"
13215 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13216 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13217 "\n"
13218 msgstr ""
13219 " add-ro Fedora-11-i686-Live.iso\n"
13220 " run\n"
13221 " mkmountpoint /cd\n"
13222 " mkmountpoint /sqsh\n"
13223 " mkmountpoint /ext3fs\n"
13224 " mount /dev/sda /cd\n"
13225 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13226 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13227 "\n"
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
13231 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13232 msgstr ""
13233
13234 #. type: textblock
13235 #: ../fish/guestfish-actions.pod:3236
13236 msgid ""
13237 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13238 "unexpected errors if you try to mix these calls.  It is safest to manually "
13239 "unmount filesystems and remove mountpoints after use."
13240 msgstr ""
13241
13242 #. type: textblock
13243 #: ../fish/guestfish-actions.pod:3240
13244 msgid ""
13245 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13246 "for this to work for manual mountpoints, you must ensure that the innermost "
13247 "mountpoints have the longest pathnames, as in the example code above."
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
13252 msgid ""
13253 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3247
13258 msgid ""
13259 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13260 "L</umount-all> to be called when the handle is closed which can also trigger "
13261 "these issues."
13262 msgstr ""
13263
13264 #. type: =head2
13265 #: ../fish/guestfish-actions.pod:3251
13266 msgid "mknod"
13267 msgstr "mknod"
13268
13269 #. type: verbatim
13270 #: ../fish/guestfish-actions.pod:3253
13271 #, no-wrap
13272 msgid ""
13273 " mknod mode devmajor devminor path\n"
13274 "\n"
13275 msgstr ""
13276
13277 #. type: textblock
13278 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
13279 msgid ""
13280 "This call creates block or character special devices, or named pipes (FIFOs)."
13281 msgstr ""
13282
13283 #. type: textblock
13284 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
13285 msgid ""
13286 "The C<mode> parameter should be the mode, using the standard constants.  "
13287 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13288 "used when creating block and character special devices."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3263
13293 msgid ""
13294 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13295 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13296 "regular file).  These constants are available in the standard Linux header "
13297 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13298 "wrappers around this command which bitwise OR in the appropriate constant "
13299 "for you."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:3273
13304 msgid "mknod-b"
13305 msgstr "mknod-b"
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:3275
13309 #, no-wrap
13310 msgid ""
13311 " mknod-b mode devmajor devminor path\n"
13312 "\n"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3277
13317 msgid ""
13318 "This call creates a block device node called C<path> with mode C<mode> and "
13319 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13320 "wrapper around L</mknod>."
13321 msgstr ""
13322
13323 #. type: =head2
13324 #: ../fish/guestfish-actions.pod:3283
13325 msgid "mknod-c"
13326 msgstr "mknod-c"
13327
13328 #. type: verbatim
13329 #: ../fish/guestfish-actions.pod:3285
13330 #, no-wrap
13331 msgid ""
13332 " mknod-c mode devmajor devminor path\n"
13333 "\n"
13334 msgstr ""
13335
13336 #. type: textblock
13337 #: ../fish/guestfish-actions.pod:3287
13338 msgid ""
13339 "This call creates a char device node called C<path> with mode C<mode> and "
13340 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13341 "wrapper around L</mknod>."
13342 msgstr ""
13343
13344 #. type: =head2
13345 #: ../fish/guestfish-actions.pod:3293
13346 msgid "mkswap"
13347 msgstr "mkswap"
13348
13349 #. type: verbatim
13350 #: ../fish/guestfish-actions.pod:3295
13351 #, no-wrap
13352 msgid ""
13353 " mkswap device\n"
13354 "\n"
13355 msgstr ""
13356 " mkswap пристрій\n"
13357 "\n"
13358
13359 #. type: textblock
13360 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
13361 msgid "Create a swap partition on C<device>."
13362 msgstr ""
13363
13364 #. type: =head2
13365 #: ../fish/guestfish-actions.pod:3299
13366 msgid "mkswap-L"
13367 msgstr "mkswap-L"
13368
13369 #. type: verbatim
13370 #: ../fish/guestfish-actions.pod:3301
13371 #, no-wrap
13372 msgid ""
13373 " mkswap-L label device\n"
13374 "\n"
13375 msgstr ""
13376 " mkswap-L мітка пристрій\n"
13377 "\n"
13378
13379 #. type: textblock
13380 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
13381 msgid "Create a swap partition on C<device> with label C<label>."
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
13386 msgid ""
13387 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13388 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13389 "or swap tools."
13390 msgstr ""
13391
13392 #. type: =head2
13393 #: ../fish/guestfish-actions.pod:3309
13394 msgid "mkswap-U"
13395 msgstr "mkswap-U"
13396
13397 #. type: verbatim
13398 #: ../fish/guestfish-actions.pod:3311
13399 #, no-wrap
13400 msgid ""
13401 " mkswap-U uuid device\n"
13402 "\n"
13403 msgstr ""
13404 " mkswap-U uuid пристрій\n"
13405 "\n"
13406
13407 #. type: textblock
13408 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
13409 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13410 msgstr ""
13411
13412 #. type: =head2
13413 #: ../fish/guestfish-actions.pod:3315
13414 msgid "mkswap-file"
13415 msgstr "mkswap-file"
13416
13417 #. type: verbatim
13418 #: ../fish/guestfish-actions.pod:3317
13419 #, no-wrap
13420 msgid ""
13421 " mkswap-file path\n"
13422 "\n"
13423 msgstr ""
13424 " mkswap-file шлях\n"
13425 "\n"
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
13429 msgid "Create a swap file."
13430 msgstr "Створити файл резервної пам’яті."
13431
13432 #. type: textblock
13433 #: ../fish/guestfish-actions.pod:3321
13434 msgid ""
13435 "This command just writes a swap file signature to an existing file.  To "
13436 "create the file itself, use something like L</fallocate>."
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../fish/guestfish-actions.pod:3324
13441 msgid "modprobe"
13442 msgstr "modprobe"
13443
13444 #. type: verbatim
13445 #: ../fish/guestfish-actions.pod:3326
13446 #, no-wrap
13447 msgid ""
13448 " modprobe modulename\n"
13449 "\n"
13450 msgstr ""
13451 " modprobe назва_модуля\n"
13452 "\n"
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
13456 msgid "This loads a kernel module in the appliance."
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
13461 msgid ""
13462 "The kernel module must have been whitelisted when libguestfs was built (see "
13463 "C<appliance/kmod.whitelist.in> in the source)."
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3333
13468 msgid "mount"
13469 msgstr "mount"
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3335
13473 #, no-wrap
13474 msgid ""
13475 " mount device mountpoint\n"
13476 "\n"
13477 msgstr ""
13478 " mount пристрій точка_монтування\n"
13479 "\n"
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
13483 msgid ""
13484 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13485 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13486 "those block devices contain partitions, they will have the usual names (eg. "
13487 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
13492 msgid ""
13493 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13494 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13495 "mounted on directories which already exist."
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
13500 msgid ""
13501 "The mounted filesystem is writable, if we have sufficient permissions on the "
13502 "underlying device."
13503 msgstr ""
13504
13505 #. type: textblock
13506 #: ../fish/guestfish-actions.pod:3351
13507 msgid ""
13508 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13509 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13510 "problems for users.  If your program might need to work with older versions "
13511 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13512 "first parameter if you don't want any options)."
13513 msgstr ""
13514
13515 #. type: =head2
13516 #: ../fish/guestfish-actions.pod:3358
13517 msgid "mount-9p"
13518 msgstr ""
13519
13520 #. type: verbatim
13521 #: ../fish/guestfish-actions.pod:3360
13522 #, no-wrap
13523 msgid ""
13524 " mount-9p mounttag mountpoint [options:..]\n"
13525 "\n"
13526 msgstr ""
13527
13528 #. type: textblock
13529 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
13530 msgid ""
13531 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13532 "C<mountpoint>."
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
13537 msgid ""
13538 "If required, C<trans=virtio> will be automatically added to the options.  "
13539 "Any other options required can be passed in the optional C<options> "
13540 "parameter."
13541 msgstr ""
13542
13543 #. type: =head2
13544 #: ../fish/guestfish-actions.pod:3371
13545 msgid "mount-loop"
13546 msgstr "mount-loop"
13547
13548 #. type: verbatim
13549 #: ../fish/guestfish-actions.pod:3373
13550 #, no-wrap
13551 msgid ""
13552 " mount-loop file mountpoint\n"
13553 "\n"
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
13558 msgid ""
13559 "This command lets you mount C<file> (a filesystem image in a file) on a "
13560 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13561 "mountpoint>."
13562 msgstr ""
13563
13564 #. type: =head2
13565 #: ../fish/guestfish-actions.pod:3379
13566 msgid "mount-options"
13567 msgstr "mount-options"
13568
13569 #. type: verbatim
13570 #: ../fish/guestfish-actions.pod:3381
13571 #, no-wrap
13572 msgid ""
13573 " mount-options options device mountpoint\n"
13574 "\n"
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:3383
13579 msgid ""
13580 "This is the same as the L</mount> command, but it allows you to set the "
13581 "mount options as for the L<mount(8)> I<-o> flag."
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
13586 msgid ""
13587 "If the C<options> parameter is an empty string, then no options are passed "
13588 "(all options default to whatever the filesystem uses)."
13589 msgstr ""
13590
13591 #. type: =head2
13592 #: ../fish/guestfish-actions.pod:3391
13593 msgid "mount-ro"
13594 msgstr "mount-ro"
13595
13596 #. type: verbatim
13597 #: ../fish/guestfish-actions.pod:3393
13598 #, no-wrap
13599 msgid ""
13600 " mount-ro device mountpoint\n"
13601 "\n"
13602 msgstr ""
13603 " mount-ro пристрій точка_монтування\n"
13604 "\n"
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:3395
13608 msgid ""
13609 "This is the same as the L</mount> command, but it mounts the filesystem with "
13610 "the read-only (I<-o ro>) flag."
13611 msgstr ""
13612
13613 #. type: =head2
13614 #: ../fish/guestfish-actions.pod:3398
13615 msgid "mount-vfs"
13616 msgstr "mount-vfs"
13617
13618 #. type: verbatim
13619 #: ../fish/guestfish-actions.pod:3400
13620 #, no-wrap
13621 msgid ""
13622 " mount-vfs options vfstype device mountpoint\n"
13623 "\n"
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:3402
13628 msgid ""
13629 "This is the same as the L</mount> command, but it allows you to set both the "
13630 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13631 msgstr ""
13632
13633 #. type: =head2
13634 #: ../fish/guestfish-actions.pod:3406
13635 msgid "mountpoints"
13636 msgstr "mountpoints"
13637
13638 #. type: verbatim
13639 #: ../fish/guestfish-actions.pod:3408
13640 #, no-wrap
13641 msgid ""
13642 " mountpoints\n"
13643 "\n"
13644 msgstr ""
13645 " mountpoints\n"
13646 "\n"
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:3410
13650 msgid ""
13651 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13652 "This one returns a hash table (map) of device name to directory where the "
13653 "device is mounted."
13654 msgstr ""
13655
13656 #. type: =head2
13657 #: ../fish/guestfish-actions.pod:3414
13658 msgid "mounts"
13659 msgstr "mounts"
13660
13661 #. type: verbatim
13662 #: ../fish/guestfish-actions.pod:3416
13663 #, no-wrap
13664 msgid ""
13665 " mounts\n"
13666 "\n"
13667 msgstr ""
13668 " mounts\n"
13669 "\n"
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
13673 msgid ""
13674 "This returns the list of currently mounted filesystems.  It returns the list "
13675 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13676 msgstr ""
13677
13678 #. type: textblock
13679 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
13680 msgid "Some internal mounts are not shown."
13681 msgstr ""
13682
13683 #. type: textblock
13684 #: ../fish/guestfish-actions.pod:3423
13685 msgid "See also: L</mountpoints>"
13686 msgstr "Див. також L</mountpoints>"
13687
13688 #. type: =head2
13689 #: ../fish/guestfish-actions.pod:3425
13690 msgid "mv"
13691 msgstr "mv"
13692
13693 #. type: verbatim
13694 #: ../fish/guestfish-actions.pod:3427
13695 #, no-wrap
13696 msgid ""
13697 " mv src dest\n"
13698 "\n"
13699 msgstr ""
13700 " mv джерело призначення\n"
13701 "\n"
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
13705 msgid ""
13706 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13707 "destination filename or destination directory."
13708 msgstr ""
13709
13710 #. type: =head2
13711 #: ../fish/guestfish-actions.pod:3432
13712 msgid "ntfs-3g-probe"
13713 msgstr "ntfs-3g-probe"
13714
13715 #. type: verbatim
13716 #: ../fish/guestfish-actions.pod:3434
13717 #, no-wrap
13718 msgid ""
13719 " ntfs-3g-probe true|false device\n"
13720 "\n"
13721 msgstr ""
13722
13723 #. type: textblock
13724 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
13725 msgid ""
13726 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13727 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13728 "write, and some cannot be mounted at all)."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
13733 msgid ""
13734 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13735 "can be mounted read-write.  Set it to false if you want to test if the "
13736 "volume can be mounted read-only."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
13741 msgid ""
13742 "The return value is an integer which C<0> if the operation would succeed, or "
13743 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13744 msgstr ""
13745
13746 #. type: =head2
13747 #: ../fish/guestfish-actions.pod:3448
13748 msgid "ntfsresize"
13749 msgstr "ntfsresize"
13750
13751 #. type: verbatim
13752 #: ../fish/guestfish-actions.pod:3450
13753 #, no-wrap
13754 msgid ""
13755 " ntfsresize device\n"
13756 "\n"
13757 msgstr ""
13758 " ntfsresize пристрій\n"
13759 "\n"
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
13763 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
13764 msgid ""
13765 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13766 "size of the underlying device."
13767 msgstr ""
13768
13769 #. type: textblock
13770 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
13771 msgid ""
13772 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13773 "consistency check (for safety).  You have to boot into Windows to perform "
13774 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13775 "resize filesystems which have been marked in this way.  So in effect it is "
13776 "not possible to call ntfsresize multiple times on a single filesystem "
13777 "without booting into Windows between each resize."
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
13782 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
13783 msgid "See also L<ntfsresize(8)>."
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
13788 msgid ""
13789 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13790 "call instead."
13791 msgstr ""
13792
13793 #. type: =head2
13794 #: ../fish/guestfish-actions.pod:3472
13795 msgid "ntfsresize-opts"
13796 msgstr ""
13797
13798 #. type: verbatim
13799 #: ../fish/guestfish-actions.pod:3474
13800 #, no-wrap
13801 msgid ""
13802 " ntfsresize-opts device [size:..] [force:..]\n"
13803 "\n"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
13808 msgid ""
13809 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13810 "resized to fit the container (eg. partition)."
13811 msgstr ""
13812
13813 #. type: =item
13814 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
13815 msgid "C<force>"
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
13820 msgid ""
13821 "If this option is true, then force the resize of the filesystem even if the "
13822 "filesystem is marked as requiring a consistency check."
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:3493
13827 msgid ""
13828 "After the resize operation, the filesystem is always marked as requiring a "
13829 "consistency check (for safety).  You have to boot into Windows to perform "
13830 "this check and clear this condition.  If you I<don't> set the C<force> "
13831 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13832 "a single filesystem without booting into Windows between each resize."
13833 msgstr ""
13834
13835 #. type: =head2
13836 #: ../fish/guestfish-actions.pod:3506
13837 msgid "ntfsresize-size"
13838 msgstr "ntfsresize-size"
13839
13840 #. type: verbatim
13841 #: ../fish/guestfish-actions.pod:3508
13842 #, no-wrap
13843 msgid ""
13844 " ntfsresize-size device size\n"
13845 "\n"
13846 msgstr ""
13847
13848 #. type: textblock
13849 #: ../fish/guestfish-actions.pod:3510
13850 msgid ""
13851 "This command is the same as L</ntfsresize> except that it allows you to "
13852 "specify the new size (in bytes) explicitly."
13853 msgstr ""
13854
13855 #. type: =head2
13856 #: ../fish/guestfish-actions.pod:3520
13857 msgid "part-add"
13858 msgstr "part-add"
13859
13860 #. type: verbatim
13861 #: ../fish/guestfish-actions.pod:3522
13862 #, no-wrap
13863 msgid ""
13864 " part-add device prlogex startsect endsect\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:3524
13870 msgid ""
13871 "This command adds a partition to C<device>.  If there is no partition table "
13872 "on the device, call L</part-init> first."
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
13877 msgid ""
13878 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13879 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13880 "C<logical>) and C<e> (or C<extended>) partition types."
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
13885 msgid ""
13886 "C<startsect> and C<endsect> are the start and end of the partition in "
13887 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13888 "from the end of the disk (C<-1> is the last sector)."
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:3536
13893 msgid ""
13894 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13895 "part-disk> to do that."
13896 msgstr ""
13897
13898 #. type: =head2
13899 #: ../fish/guestfish-actions.pod:3539
13900 msgid "part-del"
13901 msgstr "part-del"
13902
13903 #. type: verbatim
13904 #: ../fish/guestfish-actions.pod:3541
13905 #, no-wrap
13906 msgid ""
13907 " part-del device partnum\n"
13908 "\n"
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
13913 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
13918 msgid ""
13919 "Note that in the case of MBR partitioning, deleting an extended partition "
13920 "also deletes any logical partitions it contains."
13921 msgstr ""
13922
13923 #. type: =head2
13924 #: ../fish/guestfish-actions.pod:3549
13925 msgid "part-disk"
13926 msgstr "part-disk"
13927
13928 #. type: verbatim
13929 #: ../fish/guestfish-actions.pod:3551
13930 #, no-wrap
13931 msgid ""
13932 " part-disk device parttype\n"
13933 "\n"
13934 msgstr ""
13935 " part-disk пристрій тип_розділу\n"
13936 "\n"
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:3553
13940 msgid ""
13941 "This command is simply a combination of L</part-init> followed by L</part-"
13942 "add> to create a single primary partition covering the whole disk."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:3557
13947 msgid ""
13948 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13949 "possible values are described in L</part-init>."
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:3563
13954 msgid "part-get-bootable"
13955 msgstr "part-get-bootable"
13956
13957 #. type: verbatim
13958 #: ../fish/guestfish-actions.pod:3565
13959 #, no-wrap
13960 msgid ""
13961 " part-get-bootable device partnum\n"
13962 "\n"
13963 msgstr ""
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
13967 msgid ""
13968 "This command returns true if the partition C<partnum> on C<device> has the "
13969 "bootable flag set."
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:3570
13974 msgid "See also L</part-set-bootable>."
13975 msgstr "Див. також L</part-set-bootable>."
13976
13977 #. type: =head2
13978 #: ../fish/guestfish-actions.pod:3572
13979 msgid "part-get-mbr-id"
13980 msgstr "part-get-mbr-id"
13981
13982 #. type: verbatim
13983 #: ../fish/guestfish-actions.pod:3574
13984 #, no-wrap
13985 msgid ""
13986 " part-get-mbr-id device partnum\n"
13987 "\n"
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
13992 msgid ""
13993 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13994 "partition C<partnum>."
13995 msgstr ""
13996
13997 #. type: textblock
13998 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
13999 msgid ""
14000 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14001 "undefined results for other partition table types (see L</part-get-"
14002 "parttype>)."
14003 msgstr ""
14004
14005 #. type: =head2
14006 #: ../fish/guestfish-actions.pod:3583
14007 msgid "part-get-parttype"
14008 msgstr "part-get-parttype"
14009
14010 #. type: verbatim
14011 #: ../fish/guestfish-actions.pod:3585
14012 #, no-wrap
14013 msgid ""
14014 " part-get-parttype device\n"
14015 "\n"
14016 msgstr ""
14017 " part-get-parttype пристрій\n"
14018 "\n"
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
14022 msgid ""
14023 "This command examines the partition table on C<device> and returns the "
14024 "partition table type (format) being used."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:3590
14029 msgid ""
14030 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14031 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14032 "possible, although unusual.  See L</part-init> for a full list."
14033 msgstr ""
14034
14035 #. type: =head2
14036 #: ../fish/guestfish-actions.pod:3595
14037 msgid "part-init"
14038 msgstr "part-init"
14039
14040 #. type: verbatim
14041 #: ../fish/guestfish-actions.pod:3597
14042 #, no-wrap
14043 msgid ""
14044 " part-init device parttype\n"
14045 "\n"
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
14050 msgid ""
14051 "This creates an empty partition table on C<device> of one of the partition "
14052 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14053 "(for large disks)."
14054 msgstr ""
14055
14056 #. type: textblock
14057 #: ../fish/guestfish-actions.pod:3603
14058 msgid ""
14059 "Initially there are no partitions.  Following this, you should call L</part-"
14060 "add> for each partition required."
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
14065 msgid "Possible values for C<parttype> are:"
14066 msgstr ""
14067
14068 #. type: =item
14069 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
14070 msgid "B<efi>"
14071 msgstr ""
14072
14073 #. type: =item
14074 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
14075 msgid "B<gpt>"
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
14080 msgid "Intel EFI / GPT partition table."
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
14085 msgid ""
14086 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14087 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14088 "the C<mbr> format."
14089 msgstr ""
14090
14091 #. type: =item
14092 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
14093 msgid "B<mbr>"
14094 msgstr ""
14095
14096 #. type: =item
14097 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
14098 msgid "B<msdos>"
14099 msgstr ""
14100
14101 #. type: textblock
14102 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
14103 msgid ""
14104 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14105 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14106 "TB.  For large disks we recommend using C<gpt>."
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
14111 msgid ""
14112 "Other partition table types that may work but are not supported include:"
14113 msgstr ""
14114
14115 #. type: =item
14116 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
14117 msgid "B<aix>"
14118 msgstr "B<aix>"
14119
14120 #. type: textblock
14121 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
14122 msgid "AIX disk labels."
14123 msgstr "Мітки дисків AIX."
14124
14125 #. type: =item
14126 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
14127 #, fuzzy
14128 #| msgid "B<amiga> | B<rdb>"
14129 msgid "B<amiga>"
14130 msgstr "B<amiga> | B<rdb>"
14131
14132 #. type: =item
14133 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
14134 msgid "B<rdb>"
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
14139 msgid "Amiga \"Rigid Disk Block\" format."
14140 msgstr "Формат \"Rigid Disk Block\" Amiga."
14141
14142 #. type: =item
14143 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
14144 msgid "B<bsd>"
14145 msgstr "B<bsd>"
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
14149 msgid "BSD disk labels."
14150 msgstr "Мітки дисків BSD."
14151
14152 #. type: =item
14153 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
14154 msgid "B<dasd>"
14155 msgstr "B<dasd>"
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
14159 msgid "DASD, used on IBM mainframes."
14160 msgstr "DASD, використовувалися у мейнфреймах IBM."
14161
14162 #. type: =item
14163 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
14164 msgid "B<dvh>"
14165 msgstr "B<dvh>"
14166
14167 #. type: textblock
14168 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
14169 msgid "MIPS/SGI volumes."
14170 msgstr "Томи MIPS/SGI."
14171
14172 #. type: =item
14173 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
14174 msgid "B<mac>"
14175 msgstr "B<mac>"
14176
14177 #. type: textblock
14178 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
14179 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14180 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14181
14182 #. type: =item
14183 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
14184 msgid "B<pc98>"
14185 msgstr "B<pc98>"
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
14189 msgid "NEC PC-98 format, common in Japan apparently."
14190 msgstr "Формат NEC PC-98, поширений у Японії."
14191
14192 #. type: =item
14193 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
14194 msgid "B<sun>"
14195 msgstr "B<sun>"
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
14199 msgid "Sun disk labels."
14200 msgstr "Мітки дисків Sun."
14201
14202 #. type: =head2
14203 #: ../fish/guestfish-actions.pod:3672
14204 msgid "part-list"
14205 msgstr "part-list"
14206
14207 #. type: verbatim
14208 #: ../fish/guestfish-actions.pod:3674
14209 #, no-wrap
14210 msgid ""
14211 " part-list device\n"
14212 "\n"
14213 msgstr ""
14214 " part-list device\n"
14215 "\n"
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
14219 msgid ""
14220 "This command parses the partition table on C<device> and returns the list of "
14221 "partitions found."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
14226 msgid "The fields in the returned structure are:"
14227 msgstr ""
14228
14229 #. type: =item
14230 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
14231 msgid "B<part_num>"
14232 msgstr "B<part_num>"
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
14236 msgid "Partition number, counting from 1."
14237 msgstr ""
14238
14239 #. type: =item
14240 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
14241 msgid "B<part_start>"
14242 msgstr "B<part_start>"
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3689
14246 msgid ""
14247 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14248 "the device's sector size, see L</blockdev-getss>."
14249 msgstr ""
14250
14251 #. type: =item
14252 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
14253 msgid "B<part_end>"
14254 msgstr "B<part_end>"
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
14258 msgid "End of the partition in bytes."
14259 msgstr ""
14260
14261 #. type: =item
14262 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
14263 msgid "B<part_size>"
14264 msgstr "B<part_size>"
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
14268 msgid "Size of the partition in bytes."
14269 msgstr ""
14270
14271 #. type: =head2
14272 #: ../fish/guestfish-actions.pod:3702
14273 msgid "part-set-bootable"
14274 msgstr "part-set-bootable"
14275
14276 #. type: verbatim
14277 #: ../fish/guestfish-actions.pod:3704
14278 #, no-wrap
14279 msgid ""
14280 " part-set-bootable device partnum true|false\n"
14281 "\n"
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
14286 msgid ""
14287 "This sets the bootable flag on partition numbered C<partnum> on device "
14288 "C<device>.  Note that partitions are numbered from 1."
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
14293 msgid ""
14294 "The bootable flag is used by some operating systems (notably Windows) to "
14295 "determine which partition to boot from.  It is by no means universally "
14296 "recognized."
14297 msgstr ""
14298
14299 #. type: =head2
14300 #: ../fish/guestfish-actions.pod:3713
14301 msgid "part-set-mbr-id"
14302 msgstr "part-set-mbr-id"
14303
14304 #. type: verbatim
14305 #: ../fish/guestfish-actions.pod:3715
14306 #, no-wrap
14307 msgid ""
14308 " part-set-mbr-id device partnum idbyte\n"
14309 "\n"
14310 msgstr ""
14311
14312 #. type: textblock
14313 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
14314 msgid ""
14315 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14316 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14317 "documentation are in fact hexadecimal numbers, but usually documented "
14318 "without any leading \"0x\" which might be confusing."
14319 msgstr ""
14320
14321 #. type: =head2
14322 #: ../fish/guestfish-actions.pod:3727
14323 msgid "part-set-name"
14324 msgstr "part-set-name"
14325
14326 #. type: verbatim
14327 #: ../fish/guestfish-actions.pod:3729
14328 #, no-wrap
14329 msgid ""
14330 " part-set-name device partnum name\n"
14331 "\n"
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
14336 msgid ""
14337 "This sets the partition name on partition numbered C<partnum> on device "
14338 "C<device>.  Note that partitions are numbered from 1."
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
14343 msgid ""
14344 "The partition name can only be set on certain types of partition table.  "
14345 "This works on C<gpt> but not on C<mbr> partitions."
14346 msgstr ""
14347
14348 #. type: =head2
14349 #: ../fish/guestfish-actions.pod:3737
14350 msgid "part-to-dev"
14351 msgstr "part-to-dev"
14352
14353 #. type: verbatim
14354 #: ../fish/guestfish-actions.pod:3739
14355 #, no-wrap
14356 msgid ""
14357 " part-to-dev partition\n"
14358 "\n"
14359 msgstr ""
14360 " part-to-dev розділ\n"
14361 "\n"
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
14365 msgid ""
14366 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14367 "partition number, returning the device name (eg. \"/dev/sdb\")."
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:3745
14372 msgid ""
14373 "The named partition must exist, for example as a string returned from L</"
14374 "list-partitions>."
14375 msgstr ""
14376
14377 #. type: =head2
14378 #: ../fish/guestfish-actions.pod:3748
14379 msgid "ping-daemon"
14380 msgstr "ping-daemon"
14381
14382 #. type: verbatim
14383 #: ../fish/guestfish-actions.pod:3750
14384 #, no-wrap
14385 msgid ""
14386 " ping-daemon\n"
14387 "\n"
14388 msgstr ""
14389 " ping-daemon\n"
14390 "\n"
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
14394 msgid ""
14395 "This is a test probe into the guestfs daemon running inside the qemu "
14396 "subprocess.  Calling this function checks that the daemon responds to the "
14397 "ping message, without affecting the daemon or attached block device(s) in "
14398 "any other way."
14399 msgstr ""
14400
14401 #. type: =head2
14402 #: ../fish/guestfish-actions.pod:3757
14403 msgid "pread"
14404 msgstr "pread"
14405
14406 #. type: verbatim
14407 #: ../fish/guestfish-actions.pod:3759
14408 #, no-wrap
14409 msgid ""
14410 " pread path count offset\n"
14411 "\n"
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
14416 msgid ""
14417 "This command lets you read part of a file.  It reads C<count> bytes of the "
14418 "file, starting at C<offset>, from file C<path>."
14419 msgstr ""
14420
14421 #. type: textblock
14422 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
14423 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
14424 msgid ""
14425 "This may read fewer bytes than requested.  For further details see the "
14426 "L<pread(2)> system call."
14427 msgstr ""
14428
14429 #. type: textblock
14430 #: ../fish/guestfish-actions.pod:3767
14431 msgid "See also L</pwrite>, L</pread-device>."
14432 msgstr "Див. також L</pwrite>, L</pread-device>."
14433
14434 #. type: =head2
14435 #: ../fish/guestfish-actions.pod:3772
14436 msgid "pread-device"
14437 msgstr "pread-device"
14438
14439 #. type: verbatim
14440 #: ../fish/guestfish-actions.pod:3774
14441 #, no-wrap
14442 msgid ""
14443 " pread-device device count offset\n"
14444 "\n"
14445 msgstr ""
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
14449 msgid ""
14450 "This command lets you read part of a file.  It reads C<count> bytes of "
14451 "C<device>, starting at C<offset>."
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:3782
14456 msgid "See also L</pread>."
14457 msgstr "Див. також L</pread>."
14458
14459 #. type: =head2
14460 #: ../fish/guestfish-actions.pod:3787
14461 msgid "pvcreate"
14462 msgstr "pvcreate"
14463
14464 #. type: verbatim
14465 #: ../fish/guestfish-actions.pod:3789
14466 #, no-wrap
14467 msgid ""
14468 " pvcreate device\n"
14469 "\n"
14470 msgstr ""
14471 " pvcreate пристрій\n"
14472 "\n"
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
14476 msgid ""
14477 "This creates an LVM physical volume on the named C<device>, where C<device> "
14478 "should usually be a partition name such as C</dev/sda1>."
14479 msgstr ""
14480
14481 #. type: =head2
14482 #: ../fish/guestfish-actions.pod:3795
14483 msgid "pvremove"
14484 msgstr "pvremove"
14485
14486 #. type: verbatim
14487 #: ../fish/guestfish-actions.pod:3797
14488 #, no-wrap
14489 msgid ""
14490 " pvremove device\n"
14491 "\n"
14492 msgstr ""
14493 " pvremove пристрій\n"
14494 "\n"
14495
14496 #. type: textblock
14497 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
14498 msgid ""
14499 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14500 "it."
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
14505 msgid ""
14506 "The implementation uses the C<pvremove> command which refuses to wipe "
14507 "physical volumes that contain any volume groups, so you have to remove those "
14508 "first."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:3806
14513 msgid "pvresize"
14514 msgstr "pvresize"
14515
14516 #. type: verbatim
14517 #: ../fish/guestfish-actions.pod:3808
14518 #, no-wrap
14519 msgid ""
14520 " pvresize device\n"
14521 "\n"
14522 msgstr ""
14523 " pvresize пристрій\n"
14524 "\n"
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
14528 msgid ""
14529 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14530 "the new size of the underlying device."
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../fish/guestfish-actions.pod:3813
14535 msgid "pvresize-size"
14536 msgstr "pvresize-size"
14537
14538 #. type: verbatim
14539 #: ../fish/guestfish-actions.pod:3815
14540 #, no-wrap
14541 msgid ""
14542 " pvresize-size device size\n"
14543 "\n"
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:3817
14548 msgid ""
14549 "This command is the same as L</pvresize> except that it allows you to "
14550 "specify the new size (in bytes) explicitly."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../fish/guestfish-actions.pod:3820
14555 msgid "pvs"
14556 msgstr "pvs"
14557
14558 #. type: verbatim
14559 #: ../fish/guestfish-actions.pod:3822
14560 #, no-wrap
14561 msgid ""
14562 " pvs\n"
14563 "\n"
14564 msgstr ""
14565 " pvs\n"
14566 "\n"
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
14570 msgid ""
14571 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14572 "(8)> command."
14573 msgstr ""
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
14577 msgid ""
14578 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14579 "sda2>)."
14580 msgstr ""
14581
14582 #. type: textblock
14583 #: ../fish/guestfish-actions.pod:3830
14584 msgid "See also L</pvs-full>."
14585 msgstr "Див. також L</pvs-full>."
14586
14587 #. type: =head2
14588 #: ../fish/guestfish-actions.pod:3832
14589 msgid "pvs-full"
14590 msgstr "pvs-full"
14591
14592 #. type: verbatim
14593 #: ../fish/guestfish-actions.pod:3834
14594 #, no-wrap
14595 msgid ""
14596 " pvs-full\n"
14597 "\n"
14598 msgstr ""
14599 " pvs-full\n"
14600 "\n"
14601
14602 #. type: textblock
14603 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
14604 msgid ""
14605 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14606 "(8)> command.  The \"full\" version includes all fields."
14607 msgstr ""
14608
14609 #. type: =head2
14610 #: ../fish/guestfish-actions.pod:3839
14611 msgid "pvuuid"
14612 msgstr "pvuuid"
14613
14614 #. type: verbatim
14615 #: ../fish/guestfish-actions.pod:3841
14616 #, no-wrap
14617 msgid ""
14618 " pvuuid device\n"
14619 "\n"
14620 msgstr ""
14621 " pvuuid пристрій\n"
14622 "\n"
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
14626 msgid "This command returns the UUID of the LVM PV C<device>."
14627 msgstr ""
14628
14629 #. type: =head2
14630 #: ../fish/guestfish-actions.pod:3845
14631 msgid "pwrite"
14632 msgstr "pwrite"
14633
14634 #. type: verbatim
14635 #: ../fish/guestfish-actions.pod:3847
14636 #, no-wrap
14637 msgid ""
14638 " pwrite path content offset\n"
14639 "\n"
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
14644 msgid ""
14645 "This command writes to part of a file.  It writes the data buffer C<content> "
14646 "to the file C<path> starting at offset C<offset>."
14647 msgstr ""
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
14651 msgid ""
14652 "This command implements the L<pwrite(2)> system call, and like that system "
14653 "call it may not write the full data requested.  The return value is the "
14654 "number of bytes that were actually written to the file.  This could even be "
14655 "0, although short writes are unlikely for regular files in ordinary "
14656 "circumstances."
14657 msgstr ""
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:3858
14661 msgid "See also L</pread>, L</pwrite-device>."
14662 msgstr "Див. також L</pread>, L</pwrite-device>."
14663
14664 #. type: =head2
14665 #: ../fish/guestfish-actions.pod:3863
14666 msgid "pwrite-device"
14667 msgstr "pwrite-device"
14668
14669 #. type: verbatim
14670 #: ../fish/guestfish-actions.pod:3865
14671 #, no-wrap
14672 msgid ""
14673 " pwrite-device device content offset\n"
14674 "\n"
14675 msgstr ""
14676
14677 #. type: textblock
14678 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
14679 msgid ""
14680 "This command writes to part of a device.  It writes the data buffer "
14681 "C<content> to C<device> starting at offset C<offset>."
14682 msgstr ""
14683
14684 #. type: textblock
14685 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
14686 msgid ""
14687 "This command implements the L<pwrite(2)> system call, and like that system "
14688 "call it may not write the full data requested (although short writes to disk "
14689 "devices and partitions are probably impossible with standard Linux kernels)."
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:3875
14694 msgid "See also L</pwrite>."
14695 msgstr "Див. також L</pwrite>."
14696
14697 #. type: =head2
14698 #: ../fish/guestfish-actions.pod:3880
14699 msgid "read-file"
14700 msgstr "read-file"
14701
14702 #. type: verbatim
14703 #: ../fish/guestfish-actions.pod:3882
14704 #, no-wrap
14705 msgid ""
14706 " read-file path\n"
14707 "\n"
14708 msgstr ""
14709 " read-file шлях\n"
14710 "\n"
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
14714 msgid "This calls returns the contents of the file C<path> as a buffer."
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:3887
14719 msgid ""
14720 "Unlike L</cat>, this function can correctly handle files that contain "
14721 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14722 "is limited in the total size of file that can be handled."
14723 msgstr ""
14724
14725 #. type: =head2
14726 #: ../fish/guestfish-actions.pod:3895
14727 msgid "read-lines"
14728 msgstr "read-lines"
14729
14730 #. type: verbatim
14731 #: ../fish/guestfish-actions.pod:3897
14732 #, no-wrap
14733 msgid ""
14734 " read-lines path\n"
14735 "\n"
14736 msgstr ""
14737 " read-lines шлях\n"
14738 "\n"
14739
14740 #. type: textblock
14741 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
14742 msgid ""
14743 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14744 "C<CRLF> character sequences are I<not> returned."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:3904
14749 msgid ""
14750 "Note that this function cannot correctly handle binary files (specifically, "
14751 "files containing C<\\0> character which is treated as end of line).  For "
14752 "those you need to use the L</read-file> function which has a more complex "
14753 "interface."
14754 msgstr ""
14755
14756 #. type: =head2
14757 #: ../fish/guestfish-actions.pod:3909
14758 msgid "readdir"
14759 msgstr "readdir"
14760
14761 #. type: verbatim
14762 #: ../fish/guestfish-actions.pod:3911
14763 #, no-wrap
14764 msgid ""
14765 " readdir dir\n"
14766 "\n"
14767 msgstr ""
14768 " readdir каталог\n"
14769 "\n"
14770
14771 #. type: textblock
14772 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
14773 msgid "This returns the list of directory entries in directory C<dir>."
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
14778 msgid ""
14779 "All entries in the directory are returned, including C<.> and C<..>.  The "
14780 "entries are I<not> sorted, but returned in the same order as the underlying "
14781 "filesystem."
14782 msgstr ""
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
14786 msgid ""
14787 "Also this call returns basic file type information about each file.  The "
14788 "C<ftyp> field will contain one of the following characters:"
14789 msgstr ""
14790
14791 #. type: =item
14792 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
14793 msgid "'b'"
14794 msgstr "'b'"
14795
14796 #. type: textblock
14797 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
14798 msgid "Block special"
14799 msgstr "Блоковий особливий"
14800
14801 #. type: =item
14802 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
14803 msgid "'c'"
14804 msgstr "'c'"
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
14808 msgid "Char special"
14809 msgstr "Символьний особливий"
14810
14811 #. type: =item
14812 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
14813 msgid "'d'"
14814 msgstr "'d'"
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
14818 msgid "Directory"
14819 msgstr "Каталог"
14820
14821 #. type: =item
14822 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
14823 msgid "'f'"
14824 msgstr "'f'"
14825
14826 #. type: textblock
14827 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
14828 msgid "FIFO (named pipe)"
14829 msgstr "FIFO (іменований канал)"
14830
14831 #. type: =item
14832 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
14833 msgid "'l'"
14834 msgstr "'l'"
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
14838 msgid "Symbolic link"
14839 msgstr "Символічне посилання"
14840
14841 #. type: =item
14842 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
14843 msgid "'r'"
14844 msgstr "'r'"
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
14848 msgid "Regular file"
14849 msgstr "Звичайний файл"
14850
14851 #. type: =item
14852 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
14853 msgid "'s'"
14854 msgstr "'s'"
14855
14856 #. type: textblock
14857 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
14858 msgid "Socket"
14859 msgstr "Сокет"
14860
14861 #. type: =item
14862 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
14863 msgid "'u'"
14864 msgstr "'u'"
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
14868 msgid "Unknown file type"
14869 msgstr "Невідомий тип файла"
14870
14871 #. type: =item
14872 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
14873 msgid "'?'"
14874 msgstr ""
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
14878 msgid ""
14879 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14880 msgstr ""
14881
14882 #. type: textblock
14883 #: ../fish/guestfish-actions.pod:3963
14884 msgid ""
14885 "This function is primarily intended for use by programs.  To get a simple "
14886 "list of names, use L</ls>.  To get a printable directory for human "
14887 "consumption, use L</ll>."
14888 msgstr ""
14889
14890 #. type: =head2
14891 #: ../fish/guestfish-actions.pod:3967
14892 msgid "readlink"
14893 msgstr "readlink"
14894
14895 #. type: verbatim
14896 #: ../fish/guestfish-actions.pod:3969
14897 #, no-wrap
14898 msgid ""
14899 " readlink path\n"
14900 "\n"
14901 msgstr ""
14902 " readlink шлях\n"
14903 "\n"
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
14907 msgid "This command reads the target of a symbolic link."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:3973
14912 msgid "readlinklist"
14913 msgstr "readlinklist"
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:3975
14917 #, no-wrap
14918 msgid ""
14919 " readlinklist path 'names ...'\n"
14920 "\n"
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
14925 msgid ""
14926 "This call allows you to do a C<readlink> operation on multiple files, where "
14927 "all files are in the directory C<path>.  C<names> is the list of files from "
14928 "this directory."
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
14933 msgid ""
14934 "On return you get a list of strings, with a one-to-one correspondence to the "
14935 "C<names> list.  Each string is the value of the symbolic link."
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
14940 msgid ""
14941 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14942 "result string is the empty string C<\"\">.  However the whole operation is "
14943 "completed even if there were C<readlink(2)> errors, and so you can call this "
14944 "function with names where you don't know if they are symbolic links already "
14945 "(albeit slightly less efficient)."
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
14950 msgid ""
14951 "This call is intended for programs that want to efficiently list a directory "
14952 "contents without making many round-trips.  Very long directory listings "
14953 "might cause the protocol message size to be exceeded, causing this call to "
14954 "fail.  The caller must split up such requests into smaller groups of names."
14955 msgstr ""
14956
14957 #. type: =head2
14958 #: ../fish/guestfish-actions.pod:3999
14959 msgid "realpath"
14960 msgstr "realpath"
14961
14962 #. type: verbatim
14963 #: ../fish/guestfish-actions.pod:4001
14964 #, no-wrap
14965 msgid ""
14966 " realpath path\n"
14967 "\n"
14968 msgstr ""
14969 " realpath шлях\n"
14970 "\n"
14971
14972 #. type: textblock
14973 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
14974 msgid ""
14975 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14976 "has no C<.>, C<..> or symbolic link path elements."
14977 msgstr ""
14978
14979 #. type: =head2
14980 #: ../fish/guestfish-actions.pod:4006
14981 msgid "removexattr"
14982 msgstr "removexattr"
14983
14984 #. type: verbatim
14985 #: ../fish/guestfish-actions.pod:4008
14986 #, no-wrap
14987 msgid ""
14988 " removexattr xattr path\n"
14989 "\n"
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
14994 msgid ""
14995 "This call removes the extended attribute named C<xattr> of the file C<path>."
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:4013
15000 msgid "See also: L</lremovexattr>, L<attr(5)>."
15001 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4015
15005 msgid "resize2fs"
15006 msgstr "resize2fs"
15007
15008 #. type: verbatim
15009 #: ../fish/guestfish-actions.pod:4017
15010 #, no-wrap
15011 msgid ""
15012 " resize2fs device\n"
15013 "\n"
15014 msgstr ""
15015 " resize2fs пристрій\n"
15016 "\n"
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
15020 msgid ""
15021 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15022 "underlying device."
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:4022
15027 msgid ""
15028 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15029 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15030 "gives an error about this and sometimes not.  In any case, it is always safe "
15031 "to call L</e2fsck-f> before calling this function."
15032 msgstr ""
15033
15034 #. type: =head2
15035 #: ../fish/guestfish-actions.pod:4028
15036 msgid "resize2fs-M"
15037 msgstr "resize2fs-M"
15038
15039 #. type: verbatim
15040 #: ../fish/guestfish-actions.pod:4030
15041 #, no-wrap
15042 msgid ""
15043 " resize2fs-M device\n"
15044 "\n"
15045 msgstr ""
15046 " resize2fs-M пристрій\n"
15047 "\n"
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4032
15051 msgid ""
15052 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15053 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15054 "command."
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:4036
15059 msgid ""
15060 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15061 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15062 "multiplied together, give the resulting size of the minimal filesystem in "
15063 "bytes."
15064 msgstr ""
15065
15066 #. type: =head2
15067 #: ../fish/guestfish-actions.pod:4041
15068 msgid "resize2fs-size"
15069 msgstr "resize2fs-size"
15070
15071 #. type: verbatim
15072 #: ../fish/guestfish-actions.pod:4043
15073 #, no-wrap
15074 msgid ""
15075 " resize2fs-size device size\n"
15076 "\n"
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4045
15081 msgid ""
15082 "This command is the same as L</resize2fs> except that it allows you to "
15083 "specify the new size (in bytes) explicitly."
15084 msgstr ""
15085
15086 #. type: =head2
15087 #: ../fish/guestfish-actions.pod:4048
15088 msgid "rm"
15089 msgstr "rm"
15090
15091 #. type: verbatim
15092 #: ../fish/guestfish-actions.pod:4050
15093 #, no-wrap
15094 msgid ""
15095 " rm path\n"
15096 "\n"
15097 msgstr ""
15098 " rm шлях\n"
15099 "\n"
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
15103 msgid "Remove the single file C<path>."
15104 msgstr ""
15105
15106 #. type: =head2
15107 #: ../fish/guestfish-actions.pod:4054
15108 msgid "rm-rf"
15109 msgstr "rm-rf"
15110
15111 #. type: verbatim
15112 #: ../fish/guestfish-actions.pod:4056
15113 #, no-wrap
15114 msgid ""
15115 " rm-rf path\n"
15116 "\n"
15117 msgstr ""
15118 " rm-rf шлях\n"
15119 "\n"
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
15123 msgid ""
15124 "Remove the file or directory C<path>, recursively removing the contents if "
15125 "its a directory.  This is like the C<rm -rf> shell command."
15126 msgstr ""
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-actions.pod:4062
15130 msgid "rmdir"
15131 msgstr "rmdir"
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-actions.pod:4064
15135 #, no-wrap
15136 msgid ""
15137 " rmdir path\n"
15138 "\n"
15139 msgstr ""
15140 " rmdir шлях\n"
15141 "\n"
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
15145 msgid "Remove the single directory C<path>."
15146 msgstr ""
15147
15148 #. type: =head2
15149 #: ../fish/guestfish-actions.pod:4068
15150 msgid "rmmountpoint"
15151 msgstr "rmmountpoint"
15152
15153 #. type: verbatim
15154 #: ../fish/guestfish-actions.pod:4070
15155 #, no-wrap
15156 msgid ""
15157 " rmmountpoint exemptpath\n"
15158 "\n"
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../fish/guestfish-actions.pod:4072
15163 msgid ""
15164 "This calls removes a mountpoint that was previously created with L</"
15165 "mkmountpoint>.  See L</mkmountpoint> for full details."
15166 msgstr ""
15167
15168 #. type: =head2
15169 #: ../fish/guestfish-actions.pod:4076
15170 msgid "scrub-device"
15171 msgstr "scrub-device"
15172
15173 #. type: verbatim
15174 #: ../fish/guestfish-actions.pod:4078
15175 #, no-wrap
15176 msgid ""
15177 " scrub-device device\n"
15178 "\n"
15179 msgstr ""
15180 " scrub-device пристрій\n"
15181 "\n"
15182
15183 #. type: textblock
15184 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
15185 msgid ""
15186 "This command writes patterns over C<device> to make data retrieval more "
15187 "difficult."
15188 msgstr ""
15189
15190 #. type: textblock
15191 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
15192 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
15193 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
15194 msgid ""
15195 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15196 "more details."
15197 msgstr ""
15198
15199 #. type: =head2
15200 #: ../fish/guestfish-actions.pod:4089
15201 msgid "scrub-file"
15202 msgstr "scrub-file"
15203
15204 #. type: verbatim
15205 #: ../fish/guestfish-actions.pod:4091
15206 #, no-wrap
15207 msgid ""
15208 " scrub-file file\n"
15209 "\n"
15210 msgstr ""
15211 " scrub-file файл\n"
15212 "\n"
15213
15214 #. type: textblock
15215 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
15216 msgid ""
15217 "This command writes patterns over a file to make data retrieval more "
15218 "difficult."
15219 msgstr ""
15220
15221 #. type: textblock
15222 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
15223 msgid "The file is I<removed> after scrubbing."
15224 msgstr ""
15225
15226 #. type: =head2
15227 #: ../fish/guestfish-actions.pod:4101
15228 msgid "scrub-freespace"
15229 msgstr "scrub-freespace"
15230
15231 #. type: verbatim
15232 #: ../fish/guestfish-actions.pod:4103
15233 #, no-wrap
15234 msgid ""
15235 " scrub-freespace dir\n"
15236 "\n"
15237 msgstr ""
15238 " scrub-freespace каталог\n"
15239 "\n"
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4105
15243 msgid ""
15244 "This command creates the directory C<dir> and then fills it with files until "
15245 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15246 "deletes them.  The intention is to scrub any free space on the partition "
15247 "containing C<dir>."
15248 msgstr ""
15249
15250 #. type: =head2
15251 #: ../fish/guestfish-actions.pod:4114
15252 msgid "set-append"
15253 msgstr "set-append"
15254
15255 #. type: =head2
15256 #: ../fish/guestfish-actions.pod:4116
15257 msgid "append"
15258 msgstr ""
15259
15260 #. type: verbatim
15261 #: ../fish/guestfish-actions.pod:4118
15262 #, no-wrap
15263 msgid ""
15264 " set-append append\n"
15265 "\n"
15266 msgstr ""
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
15270 msgid ""
15271 "This function is used to add additional options to the guest kernel command "
15272 "line."
15273 msgstr ""
15274
15275 #. type: textblock
15276 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
15277 msgid ""
15278 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15279 "environment variable."
15280 msgstr ""
15281
15282 #. type: textblock
15283 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
15284 msgid ""
15285 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15286 "(libguestfs always adds a few of its own)."
15287 msgstr ""
15288
15289 #. type: =head2
15290 #: ../fish/guestfish-actions.pod:4129
15291 msgid "set-attach-method"
15292 msgstr "set-attach-method"
15293
15294 #. type: =head2
15295 #: ../fish/guestfish-actions.pod:4131
15296 msgid "attach-method"
15297 msgstr ""
15298
15299 #. type: verbatim
15300 #: ../fish/guestfish-actions.pod:4133
15301 #, no-wrap
15302 msgid ""
15303 " set-attach-method attachmethod\n"
15304 "\n"
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
15309 msgid ""
15310 "Set the method that libguestfs uses to connect to the back end guestfsd "
15311 "daemon.  Possible methods are:"
15312 msgstr ""
15313
15314 #. type: =item
15315 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
15316 #: ../src/guestfs.pod:2830
15317 msgid "C<appliance>"
15318 msgstr "C<appliance>"
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
15322 msgid ""
15323 "Launch an appliance and connect to it.  This is the ordinary method and the "
15324 "default."
15325 msgstr ""
15326
15327 #. type: =item
15328 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
15329 msgid "C<unix:I<path>>"
15330 msgstr "C<unix:I<шлях>>"
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
15334 msgid "Connect to the Unix domain socket I<path>."
15335 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
15339 msgid ""
15340 "This method lets you connect to an existing daemon or (using virtio-serial) "
15341 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15342 "RUNNING DAEMONS>."
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4155
15347 msgid "set-autosync"
15348 msgstr "set-autosync"
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:4157
15352 msgid "autosync"
15353 msgstr "autosync"
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:4159
15357 #, no-wrap
15358 msgid ""
15359 " set-autosync true|false\n"
15360 "\n"
15361 msgstr ""
15362 " set-autosync true|false\n"
15363 "\n"
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
15367 msgid ""
15368 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15369 "effort attempt to make filesystems consistent and synchronized when the "
15370 "handle is closed (also if the program exits without closing handles)."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
15375 msgid ""
15376 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15377 "disabled by default)."
15378 msgstr ""
15379
15380 #. type: =head2
15381 #: ../fish/guestfish-actions.pod:4169
15382 msgid "set-direct"
15383 msgstr "set-direct"
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:4171
15387 msgid "direct"
15388 msgstr "direct"
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:4173
15392 #, no-wrap
15393 msgid ""
15394 " set-direct true|false\n"
15395 "\n"
15396 msgstr ""
15397 " set-direct true|false\n"
15398 "\n"
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
15402 msgid ""
15403 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15404 "passed directly through to the appliance once it is launched."
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:4179
15409 msgid ""
15410 "One consequence of this is that log messages aren't caught by the library "
15411 "and handled by L</set-log-message-callback>, but go straight to stdout."
15412 msgstr ""
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
15416 msgid "You probably don't want to use this unless you know what you are doing."
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
15421 msgid "The default is disabled."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-actions.pod:4188
15426 msgid "set-e2label"
15427 msgstr "set-e2label"
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish-actions.pod:4190
15431 #, no-wrap
15432 msgid ""
15433 " set-e2label device label\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
15439 msgid ""
15440 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15441 "C<label>.  Filesystem labels are limited to 16 characters."
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4196
15446 msgid ""
15447 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15448 "label on a filesystem."
15449 msgstr ""
15450
15451 #. type: =head2
15452 #: ../fish/guestfish-actions.pod:4199
15453 msgid "set-e2uuid"
15454 msgstr "set-e2uuid"
15455
15456 #. type: verbatim
15457 #: ../fish/guestfish-actions.pod:4201
15458 #, no-wrap
15459 msgid ""
15460 " set-e2uuid device uuid\n"
15461 "\n"
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
15466 msgid ""
15467 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15468 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15469 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4208
15474 msgid ""
15475 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15476 "UUID of a filesystem."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../fish/guestfish-actions.pod:4211
15481 msgid "set-memsize"
15482 msgstr "set-memsize"
15483
15484 #. type: =head2
15485 #: ../fish/guestfish-actions.pod:4213
15486 msgid "memsize"
15487 msgstr ""
15488
15489 #. type: verbatim
15490 #: ../fish/guestfish-actions.pod:4215
15491 #, no-wrap
15492 msgid ""
15493 " set-memsize memsize\n"
15494 "\n"
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4217
15499 msgid ""
15500 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15501 "This only has any effect if called before L</launch>."
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
15506 msgid ""
15507 "You can also change this by setting the environment variable "
15508 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15509 msgstr ""
15510
15511 #. type: =head2
15512 #: ../fish/guestfish-actions.pod:4228
15513 msgid "set-network"
15514 msgstr "set-network"
15515
15516 #. type: =head2
15517 #: ../fish/guestfish-actions.pod:4230
15518 msgid "network"
15519 msgstr "network"
15520
15521 #. type: verbatim
15522 #: ../fish/guestfish-actions.pod:4232
15523 #, no-wrap
15524 msgid ""
15525 " set-network true|false\n"
15526 "\n"
15527 msgstr ""
15528 " set-network true|false\n"
15529 "\n"
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
15533 msgid ""
15534 "If C<network> is true, then the network is enabled in the libguestfs "
15535 "appliance.  The default is false."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
15540 msgid ""
15541 "This affects whether commands are able to access the network (see L<guestfs"
15542 "(3)/RUNNING COMMANDS>)."
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4240
15547 msgid ""
15548 "You must call this before calling L</launch>, otherwise it has no effect."
15549 msgstr ""
15550
15551 #. type: =head2
15552 #: ../fish/guestfish-actions.pod:4243
15553 msgid "set-path"
15554 msgstr "set-path"
15555
15556 #. type: verbatim
15557 #: ../fish/guestfish-actions.pod:4247
15558 #, no-wrap
15559 msgid ""
15560 " set-path searchpath\n"
15561 "\n"
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
15566 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15567 msgstr ""
15568
15569 #. type: textblock
15570 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
15571 msgid ""
15572 "The default is C<$libdir/guestfs> unless overridden by setting "
15573 "C<LIBGUESTFS_PATH> environment variable."
15574 msgstr ""
15575
15576 #. type: textblock
15577 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
15578 msgid "Setting C<path> to C<NULL> restores the default path."
15579 msgstr ""
15580
15581 #. type: =head2
15582 #: ../fish/guestfish-actions.pod:4256
15583 msgid "set-pgroup"
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../fish/guestfish-actions.pod:4258
15588 msgid "pgroup"
15589 msgstr ""
15590
15591 #. type: verbatim
15592 #: ../fish/guestfish-actions.pod:4260
15593 #, no-wrap
15594 msgid ""
15595 " set-pgroup true|false\n"
15596 "\n"
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
15601 msgid ""
15602 "If C<pgroup> is true, child processes are placed into their own process "
15603 "group."
15604 msgstr ""
15605
15606 #. type: textblock
15607 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
15608 msgid ""
15609 "The practical upshot of this is that signals like C<SIGINT> (from users "
15610 "pressing C<^C>) won't be received by the child process."
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
15615 msgid ""
15616 "The default for this flag is false, because usually you want C<^C> to kill "
15617 "the subprocess."
15618 msgstr ""
15619
15620 #. type: =head2
15621 #: ../fish/guestfish-actions.pod:4271
15622 msgid "set-qemu"
15623 msgstr "set-qemu"
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-actions.pod:4273
15627 msgid "qemu"
15628 msgstr "qemu"
15629
15630 #. type: verbatim
15631 #: ../fish/guestfish-actions.pod:4275
15632 #, no-wrap
15633 msgid ""
15634 " set-qemu qemu\n"
15635 "\n"
15636 msgstr ""
15637 " set-qemu qemu\n"
15638 "\n"
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
15642 msgid "Set the qemu binary that we will use."
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
15647 msgid ""
15648 "The default is chosen when the library was compiled by the configure script."
15649 msgstr ""
15650
15651 #. type: textblock
15652 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
15653 msgid ""
15654 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15655 "variable."
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
15660 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
15665 msgid ""
15666 "Note that you should call this function as early as possible after creating "
15667 "the handle.  This is because some pre-launch operations depend on testing "
15668 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15669 "don't retest features, and so you might see inconsistent results.  Using the "
15670 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15671 "the qemu binary at the same time as the handle is created."
15672 msgstr ""
15673
15674 #. type: =head2
15675 #: ../fish/guestfish-actions.pod:4295
15676 msgid "set-recovery-proc"
15677 msgstr "set-recovery-proc"
15678
15679 #. type: =head2
15680 #: ../fish/guestfish-actions.pod:4297
15681 msgid "recovery-proc"
15682 msgstr "recovery-proc"
15683
15684 #. type: verbatim
15685 #: ../fish/guestfish-actions.pod:4299
15686 #, no-wrap
15687 msgid ""
15688 " set-recovery-proc true|false\n"
15689 "\n"
15690 msgstr ""
15691 " set-recovery-proc true|false\n"
15692 "\n"
15693
15694 #. type: textblock
15695 #: ../fish/guestfish-actions.pod:4301
15696 msgid ""
15697 "If this is called with the parameter C<false> then L</launch> does not "
15698 "create a recovery process.  The purpose of the recovery process is to stop "
15699 "runaway qemu processes in the case where the main program aborts abruptly."
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-actions.pod:4306
15704 msgid ""
15705 "This only has any effect if called before L</launch>, and the default is "
15706 "true."
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
15711 msgid ""
15712 "About the only time when you would want to disable this is if the main "
15713 "process will fork itself into the background (\"daemonize\" itself).  In "
15714 "this case the recovery process thinks that the main program has disappeared "
15715 "and so kills qemu, which is not very helpful."
15716 msgstr ""
15717
15718 #. type: =head2
15719 #: ../fish/guestfish-actions.pod:4315
15720 msgid "set-selinux"
15721 msgstr "set-selinux"
15722
15723 #. type: =head2
15724 #: ../fish/guestfish-actions.pod:4317
15725 msgid "selinux"
15726 msgstr "selinux"
15727
15728 #. type: verbatim
15729 #: ../fish/guestfish-actions.pod:4319
15730 #, no-wrap
15731 msgid ""
15732 " set-selinux true|false\n"
15733 "\n"
15734 msgstr ""
15735 " set-selinux true|false\n"
15736 "\n"
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
15740 msgid ""
15741 "This sets the selinux flag that is passed to the appliance at boot time.  "
15742 "The default is C<selinux=0> (disabled)."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
15747 msgid ""
15748 "Note that if SELinux is enabled, it is always in Permissive mode "
15749 "(C<enforcing=0>)."
15750 msgstr ""
15751
15752 #. type: =head2
15753 #: ../fish/guestfish-actions.pod:4330
15754 #, fuzzy
15755 #| msgid "set-path"
15756 msgid "set-smp"
15757 msgstr "set-path"
15758
15759 #. type: =head2
15760 #: ../fish/guestfish-actions.pod:4332
15761 msgid "smp"
15762 msgstr ""
15763
15764 #. type: verbatim
15765 #: ../fish/guestfish-actions.pod:4334
15766 #, fuzzy, no-wrap
15767 #| msgid ""
15768 #| " set-qemu qemu\n"
15769 #| "\n"
15770 msgid ""
15771 " set-smp smp\n"
15772 "\n"
15773 msgstr ""
15774 " set-qemu qemu\n"
15775 "\n"
15776
15777 #. type: textblock
15778 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
15779 msgid ""
15780 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15781 "C<1>.  Increasing this may improve performance, though often it has no "
15782 "effect."
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:4340
15787 msgid "This function must be called before L</launch>."
15788 msgstr ""
15789
15790 #. type: =head2
15791 #: ../fish/guestfish-actions.pod:4342
15792 msgid "set-trace"
15793 msgstr "set-trace"
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4344
15797 msgid "trace"
15798 msgstr "trace"
15799
15800 #. type: verbatim
15801 #: ../fish/guestfish-actions.pod:4346
15802 #, no-wrap
15803 msgid ""
15804 " set-trace true|false\n"
15805 "\n"
15806 msgstr ""
15807 " set-trace true|false\n"
15808 "\n"
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
15812 msgid ""
15813 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15814 "return values are traced."
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
15819 msgid ""
15820 "If you want to trace C API calls into libguestfs (and other libraries) then "
15821 "possibly a better way is to use the external ltrace(1) command."
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
15826 msgid ""
15827 "Command traces are disabled unless the environment variable "
15828 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4358
15833 msgid ""
15834 "Trace messages are normally sent to C<stderr>, unless you register a "
15835 "callback to send them somewhere else (see L</set-event-callback>)."
15836 msgstr ""
15837
15838 #. type: =head2
15839 #: ../fish/guestfish-actions.pod:4362
15840 msgid "set-verbose"
15841 msgstr "set-verbose"
15842
15843 #. type: =head2
15844 #: ../fish/guestfish-actions.pod:4364
15845 msgid "verbose"
15846 msgstr ""
15847
15848 #. type: verbatim
15849 #: ../fish/guestfish-actions.pod:4366
15850 #, no-wrap
15851 msgid ""
15852 " set-verbose true|false\n"
15853 "\n"
15854 msgstr ""
15855 " set-verbose true|false\n"
15856 "\n"
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
15860 msgid "If C<verbose> is true, this turns on verbose messages."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
15865 msgid ""
15866 "Verbose messages are disabled unless the environment variable "
15867 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish-actions.pod:4373
15872 msgid ""
15873 "Verbose messages are normally sent to C<stderr>, unless you register a "
15874 "callback to send them somewhere else (see L</set-event-callback>)."
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4377
15879 msgid "setcon"
15880 msgstr "setcon"
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4379
15884 #, no-wrap
15885 msgid ""
15886 " setcon context\n"
15887 "\n"
15888 msgstr ""
15889 " setcon контекст\n"
15890 "\n"
15891
15892 #. type: textblock
15893 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
15894 msgid ""
15895 "This sets the SELinux security context of the daemon to the string "
15896 "C<context>."
15897 msgstr ""
15898
15899 #. type: textblock
15900 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
15901 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15902 msgstr ""
15903
15904 #. type: =head2
15905 #: ../fish/guestfish-actions.pod:4386
15906 msgid "setxattr"
15907 msgstr "setxattr"
15908
15909 #. type: verbatim
15910 #: ../fish/guestfish-actions.pod:4388
15911 #, no-wrap
15912 msgid ""
15913 " setxattr xattr val vallen path\n"
15914 "\n"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
15919 msgid ""
15920 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15921 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4394
15926 msgid "See also: L</lsetxattr>, L<attr(5)>."
15927 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15928
15929 #. type: =head2
15930 #: ../fish/guestfish-actions.pod:4396
15931 msgid "sfdisk"
15932 msgstr "sfdisk"
15933
15934 #. type: verbatim
15935 #: ../fish/guestfish-actions.pod:4398
15936 #, no-wrap
15937 msgid ""
15938 " sfdisk device cyls heads sectors 'lines ...'\n"
15939 "\n"
15940 msgstr ""
15941
15942 #. type: textblock
15943 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
15944 msgid ""
15945 "This is a direct interface to the L<sfdisk(8)> program for creating "
15946 "partitions on block devices."
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
15951 msgid "C<device> should be a block device, for example C</dev/sda>."
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
15956 msgid ""
15957 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15958 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15959 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15960 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15961 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15962 "the kernel) cannot work out the right geometry and you will need to tell it."
15963 msgstr ""
15964
15965 #. type: textblock
15966 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
15967 msgid ""
15968 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15969 "refer to the L<sfdisk(8)> manpage."
15970 msgstr ""
15971
15972 #. type: textblock
15973 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
15974 msgid ""
15975 "To create a single partition occupying the whole disk, you would pass "
15976 "C<lines> as a single element list, when the single element being the string "
15977 "C<,> (comma)."
15978 msgstr ""
15979
15980 #. type: textblock
15981 #: ../fish/guestfish-actions.pod:4420
15982 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15983 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15984
15985 #. type: textblock
15986 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
15987 #: ../fish/guestfish-actions.pod:4471
15988 msgid ""
15989 "I<This function is deprecated.> In new code, use the L</part_add> call "
15990 "instead."
15991 msgstr ""
15992
15993 #. type: =head2
15994 #: ../fish/guestfish-actions.pod:4433
15995 msgid "sfdiskM"
15996 msgstr "sfdiskM"
15997
15998 #. type: verbatim
15999 #: ../fish/guestfish-actions.pod:4435
16000 #, no-wrap
16001 msgid ""
16002 " sfdiskM device 'lines ...'\n"
16003 "\n"
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish-actions.pod:4437
16008 msgid ""
16009 "This is a simplified interface to the L</sfdisk> command, where partition "
16010 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16011 "you don't need to specify the cyls, heads and sectors parameters which were "
16012 "rarely if ever used anyway."
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:4443
16017 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16018 msgstr ""
16019 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16020
16021 #. type: =head2
16022 #: ../fish/guestfish-actions.pod:4456
16023 msgid "sfdisk-N"
16024 msgstr "sfdisk-N"
16025
16026 #. type: verbatim
16027 #: ../fish/guestfish-actions.pod:4458
16028 #, no-wrap
16029 msgid ""
16030 " sfdisk-N device partnum cyls heads sectors line\n"
16031 "\n"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
16036 msgid ""
16037 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16038 "(note: C<n> counts from 1)."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-actions.pod:4463
16043 msgid ""
16044 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16045 "cyls/heads/sectors parameters."
16046 msgstr ""
16047
16048 #. type: textblock
16049 #: ../fish/guestfish-actions.pod:4466
16050 msgid "See also: L</part-add>"
16051 msgstr "Див. також L</part-add>"
16052
16053 #. type: =head2
16054 #: ../fish/guestfish-actions.pod:4478
16055 msgid "sfdisk-disk-geometry"
16056 msgstr "sfdisk-disk-geometry"
16057
16058 #. type: verbatim
16059 #: ../fish/guestfish-actions.pod:4480
16060 #, no-wrap
16061 msgid ""
16062 " sfdisk-disk-geometry device\n"
16063 "\n"
16064 msgstr ""
16065 " sfdisk-disk-geometry пристрій\n"
16066 "\n"
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4482
16070 msgid ""
16071 "This displays the disk geometry of C<device> read from the partition table.  "
16072 "Especially in the case where the underlying block device has been resized, "
16073 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16074 "kernel-geometry>)."
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
16079 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
16080 msgid "The result is in human-readable format, and not designed to be parsed."
16081 msgstr ""
16082
16083 #. type: =head2
16084 #: ../fish/guestfish-actions.pod:4490
16085 msgid "sfdisk-kernel-geometry"
16086 msgstr "sfdisk-kernel-geometry"
16087
16088 #. type: verbatim
16089 #: ../fish/guestfish-actions.pod:4492
16090 #, no-wrap
16091 msgid ""
16092 " sfdisk-kernel-geometry device\n"
16093 "\n"
16094 msgstr ""
16095 " sfdisk-kernel-geometry пристрій\n"
16096 "\n"
16097
16098 #. type: textblock
16099 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
16100 msgid "This displays the kernel's idea of the geometry of C<device>."
16101 msgstr ""
16102
16103 #. type: =head2
16104 #: ../fish/guestfish-actions.pod:4499
16105 msgid "sfdisk-l"
16106 msgstr "sfdisk-l"
16107
16108 #. type: verbatim
16109 #: ../fish/guestfish-actions.pod:4501
16110 #, no-wrap
16111 msgid ""
16112 " sfdisk-l device\n"
16113 "\n"
16114 msgstr ""
16115 " sfdisk-l пристрій\n"
16116 "\n"
16117
16118 #. type: textblock
16119 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
16120 msgid ""
16121 "This displays the partition table on C<device>, in the human-readable output "
16122 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16123 msgstr ""
16124
16125 #. type: textblock
16126 #: ../fish/guestfish-actions.pod:4507
16127 msgid "See also: L</part-list>"
16128 msgstr "Див. також L</part-list>"
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4509
16132 msgid ""
16133 "I<This function is deprecated.> In new code, use the L</part_list> call "
16134 "instead."
16135 msgstr ""
16136
16137 #. type: =head2
16138 #: ../fish/guestfish-actions.pod:4516
16139 msgid "sh"
16140 msgstr "sh"
16141
16142 #. type: verbatim
16143 #: ../fish/guestfish-actions.pod:4518
16144 #, no-wrap
16145 msgid ""
16146 " sh command\n"
16147 "\n"
16148 msgstr ""
16149 " sh команда\n"
16150 "\n"
16151
16152 #. type: textblock
16153 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
16154 msgid ""
16155 "This call runs a command from the guest filesystem via the guest's C</bin/"
16156 "sh>."
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish-actions.pod:4523
16161 msgid "This is like L</command>, but passes the command to:"
16162 msgstr ""
16163
16164 #. type: verbatim
16165 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
16166 #, no-wrap
16167 msgid ""
16168 " /bin/sh -c \"command\"\n"
16169 "\n"
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
16174 msgid ""
16175 "Depending on the guest's shell, this usually results in wildcards being "
16176 "expanded, shell expressions being interpolated and so on."
16177 msgstr ""
16178
16179 #. type: textblock
16180 #: ../fish/guestfish-actions.pod:4531
16181 msgid "All the provisos about L</command> apply to this call."
16182 msgstr ""
16183
16184 #. type: =head2
16185 #: ../fish/guestfish-actions.pod:4533
16186 msgid "sh-lines"
16187 msgstr "sh-lines"
16188
16189 #. type: verbatim
16190 #: ../fish/guestfish-actions.pod:4535
16191 #, no-wrap
16192 msgid ""
16193 " sh-lines command\n"
16194 "\n"
16195 msgstr ""
16196 " sh-lines команда\n"
16197 "\n"
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4537
16201 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:4540
16206 msgid "See also: L</command-lines>"
16207 msgstr "Див. також L</command-lines>"
16208
16209 #. type: =head2
16210 #: ../fish/guestfish-actions.pod:4542
16211 msgid "sleep"
16212 msgstr "sleep"
16213
16214 #. type: verbatim
16215 #: ../fish/guestfish-actions.pod:4544
16216 #, no-wrap
16217 msgid ""
16218 " sleep secs\n"
16219 "\n"
16220 msgstr ""
16221 " sleep час_у_секундах\n"
16222 "\n"
16223
16224 #. type: textblock
16225 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
16226 msgid "Sleep for C<secs> seconds."
16227 msgstr ""
16228
16229 #. type: =head2
16230 #: ../fish/guestfish-actions.pod:4548
16231 msgid "stat"
16232 msgstr "stat"
16233
16234 #. type: verbatim
16235 #: ../fish/guestfish-actions.pod:4550
16236 #, no-wrap
16237 msgid ""
16238 " stat path\n"
16239 "\n"
16240 msgstr ""
16241 " stat шлях\n"
16242 "\n"
16243
16244 #. type: textblock
16245 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
16246 msgid "This is the same as the C<stat(2)> system call."
16247 msgstr ""
16248
16249 #. type: =head2
16250 #: ../fish/guestfish-actions.pod:4556
16251 msgid "statvfs"
16252 msgstr "statvfs"
16253
16254 #. type: verbatim
16255 #: ../fish/guestfish-actions.pod:4558
16256 #, no-wrap
16257 msgid ""
16258 " statvfs path\n"
16259 "\n"
16260 msgstr ""
16261 " statvfs шлях\n"
16262 "\n"
16263
16264 #. type: textblock
16265 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
16266 msgid ""
16267 "Returns file system statistics for any mounted file system.  C<path> should "
16268 "be a file or directory in the mounted file system (typically it is the mount "
16269 "point itself, but it doesn't need to be)."
16270 msgstr ""
16271
16272 #. type: textblock
16273 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
16274 msgid "This is the same as the C<statvfs(2)> system call."
16275 msgstr ""
16276
16277 #. type: =head2
16278 #: ../fish/guestfish-actions.pod:4566
16279 msgid "strings"
16280 msgstr "strings"
16281
16282 #. type: verbatim
16283 #: ../fish/guestfish-actions.pod:4568
16284 #, no-wrap
16285 msgid ""
16286 " strings path\n"
16287 "\n"
16288 msgstr ""
16289 " strings шлях\n"
16290 "\n"
16291
16292 #. type: textblock
16293 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
16294 msgid ""
16295 "This runs the L<strings(1)> command on a file and returns the list of "
16296 "printable strings found."
16297 msgstr ""
16298
16299 #. type: =head2
16300 #: ../fish/guestfish-actions.pod:4576
16301 msgid "strings-e"
16302 msgstr "strings-e"
16303
16304 #. type: verbatim
16305 #: ../fish/guestfish-actions.pod:4578
16306 #, no-wrap
16307 msgid ""
16308 " strings-e encoding path\n"
16309 "\n"
16310 msgstr ""
16311 " strings-e кодування шлях\n"
16312 "\n"
16313
16314 #. type: textblock
16315 #: ../fish/guestfish-actions.pod:4580
16316 msgid ""
16317 "This is like the L</strings> command, but allows you to specify the encoding "
16318 "of strings that are looked for in the source file C<path>."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
16323 msgid "Allowed encodings are:"
16324 msgstr "Можливими кодуваннями є:"
16325
16326 #. type: =item
16327 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
16328 msgid "s"
16329 msgstr "s"
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-actions.pod:4590
16333 msgid ""
16334 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16335 "ISO-8859-X (this is what L</strings> uses)."
16336 msgstr ""
16337
16338 #. type: =item
16339 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
16340 msgid "S"
16341 msgstr "S"
16342
16343 #. type: textblock
16344 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
16345 msgid "Single 8-bit-byte characters."
16346 msgstr "Окремі 8-бітові-байтові символи."
16347
16348 #. type: =item
16349 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
16350 msgid "b"
16351 msgstr "b"
16352
16353 #. type: textblock
16354 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
16355 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16356 msgstr ""
16357
16358 #. type: =item
16359 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
16360 msgid "l (lower case letter L)"
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
16365 msgid ""
16366 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16367 "examining binaries in Windows guests."
16368 msgstr ""
16369
16370 #. type: =item
16371 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
16372 msgid "B"
16373 msgstr "B"
16374
16375 #. type: textblock
16376 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
16377 msgid "32-bit big endian such as UCS-4BE."
16378 msgstr ""
16379
16380 #. type: =item
16381 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
16382 msgid "L"
16383 msgstr "L"
16384
16385 #. type: textblock
16386 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
16387 msgid "32-bit little endian such as UCS-4LE."
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
16392 msgid "The returned strings are transcoded to UTF-8."
16393 msgstr ""
16394
16395 #. type: =head2
16396 #: ../fish/guestfish-actions.pod:4622
16397 msgid "swapoff-device"
16398 msgstr "swapoff-device"
16399
16400 #. type: verbatim
16401 #: ../fish/guestfish-actions.pod:4624
16402 #, no-wrap
16403 msgid ""
16404 " swapoff-device device\n"
16405 "\n"
16406 msgstr ""
16407 " swapoff-device пристрій\n"
16408 "\n"
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-actions.pod:4626
16412 msgid ""
16413 "This command disables the libguestfs appliance swap device or partition "
16414 "named C<device>.  See L</swapon-device>."
16415 msgstr ""
16416
16417 #. type: =head2
16418 #: ../fish/guestfish-actions.pod:4630
16419 msgid "swapoff-file"
16420 msgstr "swapoff-file"
16421
16422 #. type: verbatim
16423 #: ../fish/guestfish-actions.pod:4632
16424 #, no-wrap
16425 msgid ""
16426 " swapoff-file file\n"
16427 "\n"
16428 msgstr ""
16429 " swapoff-file файл\n"
16430 "\n"
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
16434 msgid "This command disables the libguestfs appliance swap on file."
16435 msgstr ""
16436
16437 #. type: =head2
16438 #: ../fish/guestfish-actions.pod:4636
16439 msgid "swapoff-label"
16440 msgstr "swapoff-label"
16441
16442 #. type: verbatim
16443 #: ../fish/guestfish-actions.pod:4638
16444 #, no-wrap
16445 msgid ""
16446 " swapoff-label label\n"
16447 "\n"
16448 msgstr ""
16449 " swapoff-label мітка\n"
16450 "\n"
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
16454 msgid ""
16455 "This command disables the libguestfs appliance swap on labeled swap "
16456 "partition."
16457 msgstr ""
16458
16459 #. type: =head2
16460 #: ../fish/guestfish-actions.pod:4643
16461 msgid "swapoff-uuid"
16462 msgstr "swapoff-uuid"
16463
16464 #. type: verbatim
16465 #: ../fish/guestfish-actions.pod:4645
16466 #, no-wrap
16467 msgid ""
16468 " swapoff-uuid uuid\n"
16469 "\n"
16470 msgstr ""
16471 " swapoff-uuid uuid\n"
16472 "\n"
16473
16474 #. type: textblock
16475 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
16476 msgid ""
16477 "This command disables the libguestfs appliance swap partition with the given "
16478 "UUID."
16479 msgstr ""
16480
16481 #. type: =head2
16482 #: ../fish/guestfish-actions.pod:4650
16483 msgid "swapon-device"
16484 msgstr "swapon-device"
16485
16486 #. type: verbatim
16487 #: ../fish/guestfish-actions.pod:4652
16488 #, no-wrap
16489 msgid ""
16490 " swapon-device device\n"
16491 "\n"
16492 msgstr ""
16493 " swapon-device пристрій\n"
16494 "\n"
16495
16496 #. type: textblock
16497 #: ../fish/guestfish-actions.pod:4654
16498 msgid ""
16499 "This command enables the libguestfs appliance to use the swap device or "
16500 "partition named C<device>.  The increased memory is made available for all "
16501 "commands, for example those run using L</command> or L</sh>."
16502 msgstr ""
16503
16504 #. type: textblock
16505 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
16506 msgid ""
16507 "Note that you should not swap to existing guest swap partitions unless you "
16508 "know what you are doing.  They may contain hibernation information, or other "
16509 "information that the guest doesn't want you to trash.  You also risk leaking "
16510 "information about the host to the guest this way.  Instead, attach a new "
16511 "host device to the guest and swap on that."
16512 msgstr ""
16513
16514 #. type: =head2
16515 #: ../fish/guestfish-actions.pod:4666
16516 msgid "swapon-file"
16517 msgstr "swapon-file"
16518
16519 #. type: verbatim
16520 #: ../fish/guestfish-actions.pod:4668
16521 #, no-wrap
16522 msgid ""
16523 " swapon-file file\n"
16524 "\n"
16525 msgstr ""
16526 " swapon-file файл\n"
16527 "\n"
16528
16529 #. type: textblock
16530 #: ../fish/guestfish-actions.pod:4670
16531 msgid ""
16532 "This command enables swap to a file.  See L</swapon-device> for other notes."
16533 msgstr ""
16534
16535 #. type: =head2
16536 #: ../fish/guestfish-actions.pod:4673
16537 msgid "swapon-label"
16538 msgstr "swapon-label"
16539
16540 #. type: verbatim
16541 #: ../fish/guestfish-actions.pod:4675
16542 #, no-wrap
16543 msgid ""
16544 " swapon-label label\n"
16545 "\n"
16546 msgstr ""
16547 " swapon-label мітка\n"
16548 "\n"
16549
16550 #. type: textblock
16551 #: ../fish/guestfish-actions.pod:4677
16552 msgid ""
16553 "This command enables swap to a labeled swap partition.  See L</swapon-"
16554 "device> for other notes."
16555 msgstr ""
16556
16557 #. type: =head2
16558 #: ../fish/guestfish-actions.pod:4680
16559 msgid "swapon-uuid"
16560 msgstr "swapon-uuid"
16561
16562 #. type: verbatim
16563 #: ../fish/guestfish-actions.pod:4682
16564 #, no-wrap
16565 msgid ""
16566 " swapon-uuid uuid\n"
16567 "\n"
16568 msgstr ""
16569 " swapon-uuid uuid\n"
16570 "\n"
16571
16572 #. type: textblock
16573 #: ../fish/guestfish-actions.pod:4684
16574 msgid ""
16575 "This command enables swap to a swap partition with the given UUID.  See L</"
16576 "swapon-device> for other notes."
16577 msgstr ""
16578
16579 #. type: =head2
16580 #: ../fish/guestfish-actions.pod:4687
16581 msgid "sync"
16582 msgstr "sync"
16583
16584 #. type: verbatim
16585 #: ../fish/guestfish-actions.pod:4689
16586 #, no-wrap
16587 msgid ""
16588 " sync\n"
16589 "\n"
16590 msgstr ""
16591 " sync\n"
16592 "\n"
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
16596 msgid ""
16597 "This syncs the disk, so that any writes are flushed through to the "
16598 "underlying disk image."
16599 msgstr ""
16600
16601 #. type: textblock
16602 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
16603 msgid ""
16604 "You should always call this if you have modified a disk image, before "
16605 "closing the handle."
16606 msgstr ""
16607
16608 #. type: =head2
16609 #: ../fish/guestfish-actions.pod:4697
16610 msgid "tail"
16611 msgstr "tail"
16612
16613 #. type: verbatim
16614 #: ../fish/guestfish-actions.pod:4699
16615 #, no-wrap
16616 msgid ""
16617 " tail path\n"
16618 "\n"
16619 msgstr ""
16620 " tail шлях\n"
16621 "\n"
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
16625 msgid ""
16626 "This command returns up to the last 10 lines of a file as a list of strings."
16627 msgstr ""
16628
16629 #. type: =head2
16630 #: ../fish/guestfish-actions.pod:4707
16631 msgid "tail-n"
16632 msgstr "tail-n"
16633
16634 #. type: verbatim
16635 #: ../fish/guestfish-actions.pod:4709
16636 #, no-wrap
16637 msgid ""
16638 " tail-n nrlines path\n"
16639 "\n"
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
16644 msgid ""
16645 "If the parameter C<nrlines> is a positive number, this returns the last "
16646 "C<nrlines> lines of the file C<path>."
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
16651 msgid ""
16652 "If the parameter C<nrlines> is a negative number, this returns lines from "
16653 "the file C<path>, starting with the C<-nrlines>th line."
16654 msgstr ""
16655
16656 #. type: =head2
16657 #: ../fish/guestfish-actions.pod:4722
16658 msgid "tar-in"
16659 msgstr "tar-in"
16660
16661 #. type: verbatim
16662 #: ../fish/guestfish-actions.pod:4724
16663 #, no-wrap
16664 msgid ""
16665 " tar-in (tarfile|-) directory\n"
16666 "\n"
16667 msgstr ""
16668 " tar-in (файл_tar|-) каталог\n"
16669 "\n"
16670
16671 #. type: textblock
16672 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
16673 msgid ""
16674 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16675 "tar file) into C<directory>."
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-actions.pod:4729
16680 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16681 msgstr ""
16682
16683 #. type: =head2
16684 #: ../fish/guestfish-actions.pod:4734
16685 msgid "tar-out"
16686 msgstr "tar-out"
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish-actions.pod:4736
16690 #, no-wrap
16691 msgid ""
16692 " tar-out directory (tarfile|-)\n"
16693 "\n"
16694 msgstr ""
16695 " tar-out каталог (файл tar|-)\n"
16696 "\n"
16697
16698 #. type: textblock
16699 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
16700 msgid ""
16701 "This command packs the contents of C<directory> and downloads it to local "
16702 "file C<tarfile>."
16703 msgstr ""
16704
16705 #. type: textblock
16706 #: ../fish/guestfish-actions.pod:4741
16707 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16708 msgstr ""
16709
16710 #. type: =head2
16711 #: ../fish/guestfish-actions.pod:4746
16712 msgid "tgz-in"
16713 msgstr "tgz-in"
16714
16715 #. type: verbatim
16716 #: ../fish/guestfish-actions.pod:4748
16717 #, no-wrap
16718 msgid ""
16719 " tgz-in (tarball|-) directory\n"
16720 "\n"
16721 msgstr ""
16722 " tgz-in (архів tar|-) каталог\n"
16723 "\n"
16724
16725 #. type: textblock
16726 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
16727 msgid ""
16728 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16729 "tar file) into C<directory>."
16730 msgstr ""
16731
16732 #. type: textblock
16733 #: ../fish/guestfish-actions.pod:4753
16734 msgid "To upload an uncompressed tarball, use L</tar-in>."
16735 msgstr ""
16736
16737 #. type: =head2
16738 #: ../fish/guestfish-actions.pod:4757
16739 msgid "tgz-out"
16740 msgstr "tgz-out"
16741
16742 #. type: verbatim
16743 #: ../fish/guestfish-actions.pod:4759
16744 #, no-wrap
16745 msgid ""
16746 " tgz-out directory (tarball|-)\n"
16747 "\n"
16748 msgstr ""
16749 " tgz-out каталог (архів tar|-)\n"
16750 "\n"
16751
16752 #. type: textblock
16753 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
16754 msgid ""
16755 "This command packs the contents of C<directory> and downloads it to local "
16756 "file C<tarball>."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish-actions.pod:4764
16761 msgid "To download an uncompressed tarball, use L</tar-out>."
16762 msgstr ""
16763
16764 #. type: =head2
16765 #: ../fish/guestfish-actions.pod:4768
16766 msgid "touch"
16767 msgstr "touch"
16768
16769 #. type: verbatim
16770 #: ../fish/guestfish-actions.pod:4770
16771 #, no-wrap
16772 msgid ""
16773 " touch path\n"
16774 "\n"
16775 msgstr ""
16776 " touch шлях\n"
16777 "\n"
16778
16779 #. type: textblock
16780 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
16781 msgid ""
16782 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16783 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16784 "length file."
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
16789 msgid ""
16790 "This command only works on regular files, and will fail on other file types "
16791 "such as directories, symbolic links, block special etc."
16792 msgstr ""
16793
16794 #. type: =head2
16795 #: ../fish/guestfish-actions.pod:4779
16796 msgid "truncate"
16797 msgstr "truncate"
16798
16799 #. type: verbatim
16800 #: ../fish/guestfish-actions.pod:4781
16801 #, no-wrap
16802 msgid ""
16803 " truncate path\n"
16804 "\n"
16805 msgstr ""
16806 " truncate шлях\n"
16807 "\n"
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
16811 msgid ""
16812 "This command truncates C<path> to a zero-length file.  The file must exist "
16813 "already."
16814 msgstr ""
16815
16816 #. type: =head2
16817 #: ../fish/guestfish-actions.pod:4786
16818 msgid "truncate-size"
16819 msgstr "truncate-size"
16820
16821 #. type: verbatim
16822 #: ../fish/guestfish-actions.pod:4788
16823 #, no-wrap
16824 msgid ""
16825 " truncate-size path size\n"
16826 "\n"
16827 msgstr ""
16828 " truncate-size шлях розмір\n"
16829 "\n"
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
16833 msgid ""
16834 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16835 "already."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:4793
16840 msgid ""
16841 "If the current file size is less than C<size> then the file is extended to "
16842 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16843 "blocks are not allocated for the file until you write to it).  To create a "
16844 "non-sparse file of zeroes, use L</fallocate64> instead."
16845 msgstr ""
16846
16847 #. type: =head2
16848 #: ../fish/guestfish-actions.pod:4799
16849 msgid "tune2fs-l"
16850 msgstr "tune2fs-l"
16851
16852 #. type: verbatim
16853 #: ../fish/guestfish-actions.pod:4801
16854 #, no-wrap
16855 msgid ""
16856 " tune2fs-l device\n"
16857 "\n"
16858 msgstr ""
16859 " tune2fs-l пристрій\n"
16860 "\n"
16861
16862 #. type: textblock
16863 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
16864 msgid ""
16865 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16866 "C<device>."
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
16871 msgid ""
16872 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16873 "for more details.  The list of fields returned isn't clearly defined, and "
16874 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16875 "and the filesystem itself."
16876 msgstr ""
16877
16878 #. type: =head2
16879 #: ../fish/guestfish-actions.pod:4811
16880 msgid "txz-in"
16881 msgstr "txz-in"
16882
16883 #. type: verbatim
16884 #: ../fish/guestfish-actions.pod:4813
16885 #, no-wrap
16886 msgid ""
16887 " txz-in (tarball|-) directory\n"
16888 "\n"
16889 msgstr ""
16890 " txz-in (архів tar|-) каталог\n"
16891 "\n"
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
16895 msgid ""
16896 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16897 "tar file) into C<directory>."
16898 msgstr ""
16899
16900 #. type: =head2
16901 #: ../fish/guestfish-actions.pod:4820
16902 msgid "txz-out"
16903 msgstr "txz-out"
16904
16905 #. type: verbatim
16906 #: ../fish/guestfish-actions.pod:4822
16907 #, no-wrap
16908 msgid ""
16909 " txz-out directory (tarball|-)\n"
16910 "\n"
16911 msgstr ""
16912 " txz-out каталог (архів tar|-)\n"
16913 "\n"
16914
16915 #. type: textblock
16916 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
16917 msgid ""
16918 "This command packs the contents of C<directory> and downloads it to local "
16919 "file C<tarball> (as an xz compressed tar archive)."
16920 msgstr ""
16921
16922 #. type: =head2
16923 #: ../fish/guestfish-actions.pod:4829
16924 msgid "umask"
16925 msgstr "umask"
16926
16927 #. type: verbatim
16928 #: ../fish/guestfish-actions.pod:4831
16929 #, no-wrap
16930 msgid ""
16931 " umask mask\n"
16932 "\n"
16933 msgstr ""
16934 " umask маска\n"
16935 "\n"
16936
16937 #. type: textblock
16938 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
16939 msgid ""
16940 "This function sets the mask used for creating new files and device nodes to "
16941 "C<mask & 0777>."
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
16946 msgid ""
16947 "Typical umask values would be C<022> which creates new files with "
16948 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16949 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
16954 msgid ""
16955 "The default umask is C<022>.  This is important because it means that "
16956 "directories and device nodes will be created with C<0644> or C<0755> mode "
16957 "even if you specify C<0777>."
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish-actions.pod:4845
16962 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16963 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16964
16965 #. type: textblock
16966 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
16967 msgid "This call returns the previous umask."
16968 msgstr ""
16969
16970 #. type: =head2
16971 #: ../fish/guestfish-actions.pod:4850
16972 msgid "umount"
16973 msgstr "umount"
16974
16975 #. type: =head2
16976 #: ../fish/guestfish-actions.pod:4852
16977 msgid "unmount"
16978 msgstr "unmount"
16979
16980 #. type: verbatim
16981 #: ../fish/guestfish-actions.pod:4854
16982 #, no-wrap
16983 msgid ""
16984 " umount pathordevice\n"
16985 "\n"
16986 msgstr ""
16987 " umount шлях_або_пристрій\n"
16988 "\n"
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
16992 msgid ""
16993 "This unmounts the given filesystem.  The filesystem may be specified either "
16994 "by its mountpoint (path) or the device which contains the filesystem."
16995 msgstr ""
16996
16997 #. type: =head2
16998 #: ../fish/guestfish-actions.pod:4860
16999 msgid "umount-all"
17000 msgstr "umount-all"
17001
17002 #. type: =head2
17003 #: ../fish/guestfish-actions.pod:4862
17004 msgid "unmount-all"
17005 msgstr "unmount-all"
17006
17007 #. type: verbatim
17008 #: ../fish/guestfish-actions.pod:4864
17009 #, no-wrap
17010 msgid ""
17011 " umount-all\n"
17012 "\n"
17013 msgstr ""
17014 " umount-all\n"
17015 "\n"
17016
17017 #. type: textblock
17018 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
17019 msgid "This unmounts all mounted filesystems."
17020 msgstr ""
17021
17022 #. type: textblock
17023 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
17024 msgid "Some internal mounts are not unmounted by this call."
17025 msgstr ""
17026
17027 #. type: =head2
17028 #: ../fish/guestfish-actions.pod:4870
17029 msgid "upload"
17030 msgstr "upload"
17031
17032 #. type: verbatim
17033 #: ../fish/guestfish-actions.pod:4872
17034 #, no-wrap
17035 msgid ""
17036 " upload (filename|-) remotefilename\n"
17037 "\n"
17038 msgstr ""
17039 " upload (назва_файла|-) назва_віддаленого_файла\n"
17040 "\n"
17041
17042 #. type: textblock
17043 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
17044 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
17045 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish-actions.pod:4879
17050 msgid "See also L</download>."
17051 msgstr "Див. також L</download>."
17052
17053 #. type: =head2
17054 #: ../fish/guestfish-actions.pod:4883
17055 msgid "upload-offset"
17056 msgstr "upload-offset"
17057
17058 #. type: verbatim
17059 #: ../fish/guestfish-actions.pod:4885
17060 #, no-wrap
17061 msgid ""
17062 " upload-offset (filename|-) remotefilename offset\n"
17063 "\n"
17064 msgstr ""
17065 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17066 "\n"
17067
17068 #. type: textblock
17069 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
17070 msgid ""
17071 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17072 "The intention is to overwrite parts of existing files or devices, although "
17073 "if a non-existant file is specified then it is created with a \"hole\" "
17074 "before C<offset>.  The size of the data written is implicit in the size of "
17075 "the source C<filename>."
17076 msgstr ""
17077
17078 #. type: textblock
17079 #: ../fish/guestfish-actions.pod:4897
17080 msgid ""
17081 "Note that there is no limit on the amount of data that can be uploaded with "
17082 "this call, unlike with L</pwrite>, and this call always writes the full "
17083 "amount unless an error occurs."
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish-actions.pod:4902
17088 msgid "See also L</upload>, L</pwrite>."
17089 msgstr "Див. також L</upload>, L</pwrite>."
17090
17091 #. type: =head2
17092 #: ../fish/guestfish-actions.pod:4906
17093 msgid "utimens"
17094 msgstr "utimens"
17095
17096 #. type: verbatim
17097 #: ../fish/guestfish-actions.pod:4908
17098 #, no-wrap
17099 msgid ""
17100 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17101 "\n"
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
17106 msgid "This command sets the timestamps of a file with nanosecond precision."
17107 msgstr ""
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
17111 msgid ""
17112 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17113 "from the epoch."
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
17118 msgid ""
17119 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17120 "nanoseconds from the epoch."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
17125 msgid ""
17126 "If the C<*nsecs> field contains the special value C<-1> then the "
17127 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17128 "ignored in this case)."
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
17133 msgid ""
17134 "If the C<*nsecs> field contains the special value C<-2> then the "
17135 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17136 "in this case)."
17137 msgstr ""
17138
17139 #. type: =head2
17140 #: ../fish/guestfish-actions.pod:4927
17141 msgid "version"
17142 msgstr "version"
17143
17144 #. type: verbatim
17145 #: ../fish/guestfish-actions.pod:4929
17146 #, no-wrap
17147 msgid ""
17148 " version\n"
17149 "\n"
17150 msgstr ""
17151 " version\n"
17152 "\n"
17153
17154 #. type: textblock
17155 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
17156 msgid ""
17157 "Return the libguestfs version number that the program is linked against."
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
17162 msgid ""
17163 "Note that because of dynamic linking this is not necessarily the version of "
17164 "libguestfs that you compiled against.  You can compile the program, and then "
17165 "at runtime dynamically link against a completely different C<libguestfs.so> "
17166 "library."
17167 msgstr ""
17168
17169 #. type: textblock
17170 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
17171 msgid ""
17172 "This call was added in version C<1.0.58>.  In previous versions of "
17173 "libguestfs there was no way to get the version number.  From C code you can "
17174 "use dynamic linker functions to find out if this symbol exists (if it "
17175 "doesn't, then it's an earlier version)."
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
17180 msgid ""
17181 "The call returns a structure with four elements.  The first three (C<major>, "
17182 "C<minor> and C<release>) are numbers and correspond to the usual version "
17183 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17184 "but may be used for distro-specific information."
17185 msgstr ""
17186
17187 #. type: textblock
17188 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
17189 msgid ""
17190 "To construct the original version string: C<$major.$minor.$release$extra>"
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
17195 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17196 msgstr ""
17197
17198 #. type: textblock
17199 #: ../fish/guestfish-actions.pod:4956
17200 msgid ""
17201 "I<Note:> Don't use this call to test for availability of features.  In "
17202 "enterprise distributions we backport features from later versions into "
17203 "earlier versions, making this an unreliable way to test for features.  Use "
17204 "L</available> instead."
17205 msgstr ""
17206
17207 #. type: =head2
17208 #: ../fish/guestfish-actions.pod:4962
17209 msgid "vfs-label"
17210 msgstr "vfs-label"
17211
17212 #. type: verbatim
17213 #: ../fish/guestfish-actions.pod:4964
17214 #, no-wrap
17215 msgid ""
17216 " vfs-label device\n"
17217 "\n"
17218 msgstr ""
17219 " vfs-label пристрій\n"
17220 "\n"
17221
17222 #. type: textblock
17223 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
17224 msgid "This returns the filesystem label of the filesystem on C<device>."
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
17229 msgid "If the filesystem is unlabeled, this returns the empty string."
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../fish/guestfish-actions.pod:4971
17234 msgid "To find a filesystem from the label, use L</findfs-label>."
17235 msgstr ""
17236
17237 #. type: =head2
17238 #: ../fish/guestfish-actions.pod:4973
17239 msgid "vfs-type"
17240 msgstr "vfs-type"
17241
17242 #. type: verbatim
17243 #: ../fish/guestfish-actions.pod:4975
17244 #, no-wrap
17245 msgid ""
17246 " vfs-type device\n"
17247 "\n"
17248 msgstr ""
17249 " vfs-type пристрій\n"
17250 "\n"
17251
17252 #. type: textblock
17253 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
17254 msgid ""
17255 "This command gets the filesystem type corresponding to the filesystem on "
17256 "C<device>."
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
17261 msgid ""
17262 "For most filesystems, the result is the name of the Linux VFS module which "
17263 "would be used to mount this filesystem if you mounted it without specifying "
17264 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17265 msgstr ""
17266
17267 #. type: =head2
17268 #: ../fish/guestfish-actions.pod:4985
17269 msgid "vfs-uuid"
17270 msgstr "vfs-uuid"
17271
17272 #. type: verbatim
17273 #: ../fish/guestfish-actions.pod:4987
17274 #, no-wrap
17275 msgid ""
17276 " vfs-uuid device\n"
17277 "\n"
17278 msgstr ""
17279 " vfs-uuid пристрій\n"
17280 "\n"
17281
17282 #. type: textblock
17283 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
17284 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
17289 msgid "If the filesystem does not have a UUID, this returns the empty string."
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish-actions.pod:4994
17294 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17295 msgstr ""
17296
17297 #. type: =head2
17298 #: ../fish/guestfish-actions.pod:4996
17299 msgid "vg-activate"
17300 msgstr "vg-activate"
17301
17302 #. type: verbatim
17303 #: ../fish/guestfish-actions.pod:4998
17304 #, no-wrap
17305 msgid ""
17306 " vg-activate true|false 'volgroups ...'\n"
17307 "\n"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
17312 msgid ""
17313 "This command activates or (if C<activate> is false) deactivates all logical "
17314 "volumes in the listed volume groups C<volgroups>."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
17319 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17320 msgstr ""
17321
17322 #. type: textblock
17323 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
17324 msgid ""
17325 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17326 "activated or deactivated."
17327 msgstr ""
17328
17329 #. type: =head2
17330 #: ../fish/guestfish-actions.pod:5008
17331 msgid "vg-activate-all"
17332 msgstr "vg-activate-all"
17333
17334 #. type: verbatim
17335 #: ../fish/guestfish-actions.pod:5010
17336 #, no-wrap
17337 msgid ""
17338 " vg-activate-all true|false\n"
17339 "\n"
17340 msgstr ""
17341 " vg-activate-all true|false\n"
17342 "\n"
17343
17344 #. type: textblock
17345 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
17346 msgid ""
17347 "This command activates or (if C<activate> is false) deactivates all logical "
17348 "volumes in all volume groups."
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
17353 msgid "This command is the same as running C<vgchange -a y|n>"
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish-actions.pod:5017
17358 msgid "vgcreate"
17359 msgstr "vgcreate"
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish-actions.pod:5019
17363 #, no-wrap
17364 msgid ""
17365 " vgcreate volgroup 'physvols ...'\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
17371 msgid ""
17372 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17373 "of physical volumes C<physvols>."
17374 msgstr ""
17375
17376 #. type: =head2
17377 #: ../fish/guestfish-actions.pod:5024
17378 msgid "vglvuuids"
17379 msgstr "vglvuuids"
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:5026
17383 #, no-wrap
17384 msgid ""
17385 " vglvuuids vgname\n"
17386 "\n"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
17391 msgid ""
17392 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17393 "volumes created in this volume group."
17394 msgstr ""
17395
17396 #. type: textblock
17397 #: ../fish/guestfish-actions.pod:5031
17398 msgid ""
17399 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17400 "logical volumes and volume groups."
17401 msgstr ""
17402
17403 #. type: textblock
17404 #: ../fish/guestfish-actions.pod:5034
17405 msgid "See also L</vgpvuuids>."
17406 msgstr "Див. також L</vgpvuuids>."
17407
17408 #. type: =head2
17409 #: ../fish/guestfish-actions.pod:5036
17410 msgid "vgpvuuids"
17411 msgstr "vgpvuuids"
17412
17413 #. type: verbatim
17414 #: ../fish/guestfish-actions.pod:5038
17415 #, no-wrap
17416 msgid ""
17417 " vgpvuuids vgname\n"
17418 "\n"
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
17423 msgid ""
17424 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17425 "volumes that this volume group resides on."
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish-actions.pod:5043
17430 msgid ""
17431 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17432 "physical volumes and volume groups."
17433 msgstr ""
17434
17435 #. type: textblock
17436 #: ../fish/guestfish-actions.pod:5046
17437 msgid "See also L</vglvuuids>."
17438 msgstr "Див. також L</vglvuuids>."
17439
17440 #. type: =head2
17441 #: ../fish/guestfish-actions.pod:5048
17442 msgid "vgremove"
17443 msgstr "vgremove"
17444
17445 #. type: verbatim
17446 #: ../fish/guestfish-actions.pod:5050
17447 #, no-wrap
17448 msgid ""
17449 " vgremove vgname\n"
17450 "\n"
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
17455 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17456 msgstr ""
17457
17458 #. type: textblock
17459 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
17460 msgid ""
17461 "This also forcibly removes all logical volumes in the volume group (if any)."
17462 msgstr ""
17463
17464 #. type: =head2
17465 #: ../fish/guestfish-actions.pod:5057
17466 msgid "vgrename"
17467 msgstr "vgrename"
17468
17469 #. type: verbatim
17470 #: ../fish/guestfish-actions.pod:5059
17471 #, no-wrap
17472 msgid ""
17473 " vgrename volgroup newvolgroup\n"
17474 "\n"
17475 msgstr ""
17476
17477 #. type: textblock
17478 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
17479 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17480 msgstr ""
17481
17482 #. type: =head2
17483 #: ../fish/guestfish-actions.pod:5063
17484 msgid "vgs"
17485 msgstr "vgs"
17486
17487 #. type: verbatim
17488 #: ../fish/guestfish-actions.pod:5065
17489 #, no-wrap
17490 msgid ""
17491 " vgs\n"
17492 "\n"
17493 msgstr ""
17494 " vgs\n"
17495 "\n"
17496
17497 #. type: textblock
17498 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
17499 msgid ""
17500 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17501 "> command."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
17506 msgid ""
17507 "This returns a list of just the volume group names that were detected (eg. "
17508 "C<VolGroup00>)."
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish-actions.pod:5073
17513 msgid "See also L</vgs-full>."
17514 msgstr "Див. також L</vgs-full>."
17515
17516 #. type: =head2
17517 #: ../fish/guestfish-actions.pod:5075
17518 msgid "vgs-full"
17519 msgstr "vgs-full"
17520
17521 #. type: verbatim
17522 #: ../fish/guestfish-actions.pod:5077
17523 #, no-wrap
17524 msgid ""
17525 " vgs-full\n"
17526 "\n"
17527 msgstr ""
17528 " vgs-full\n"
17529 "\n"
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
17533 msgid ""
17534 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17535 "> command.  The \"full\" version includes all fields."
17536 msgstr ""
17537
17538 #. type: =head2
17539 #: ../fish/guestfish-actions.pod:5082
17540 msgid "vgscan"
17541 msgstr "vgscan"
17542
17543 #. type: verbatim
17544 #: ../fish/guestfish-actions.pod:5084
17545 #, no-wrap
17546 msgid ""
17547 " vgscan\n"
17548 "\n"
17549 msgstr ""
17550 " vgscan\n"
17551 "\n"
17552
17553 #. type: textblock
17554 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
17555 msgid ""
17556 "This rescans all block devices and rebuilds the list of LVM physical "
17557 "volumes, volume groups and logical volumes."
17558 msgstr ""
17559
17560 #. type: =head2
17561 #: ../fish/guestfish-actions.pod:5089
17562 msgid "vguuid"
17563 msgstr "vguuid"
17564
17565 #. type: verbatim
17566 #: ../fish/guestfish-actions.pod:5091
17567 #, no-wrap
17568 msgid ""
17569 " vguuid vgname\n"
17570 "\n"
17571 msgstr ""
17572
17573 #. type: textblock
17574 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
17575 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17576 msgstr ""
17577
17578 #. type: =head2
17579 #: ../fish/guestfish-actions.pod:5095
17580 msgid "wc-c"
17581 msgstr "wc-c"
17582
17583 #. type: verbatim
17584 #: ../fish/guestfish-actions.pod:5097
17585 #, no-wrap
17586 msgid ""
17587 " wc-c path\n"
17588 "\n"
17589 msgstr ""
17590 " wc-c шлях\n"
17591 "\n"
17592
17593 #. type: textblock
17594 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
17595 msgid ""
17596 "This command counts the characters in a file, using the C<wc -c> external "
17597 "command."
17598 msgstr ""
17599
17600 #. type: =head2
17601 #: ../fish/guestfish-actions.pod:5102
17602 msgid "wc-l"
17603 msgstr "wc-l"
17604
17605 #. type: verbatim
17606 #: ../fish/guestfish-actions.pod:5104
17607 #, no-wrap
17608 msgid ""
17609 " wc-l path\n"
17610 "\n"
17611 msgstr ""
17612 " wc-l шлях\n"
17613 "\n"
17614
17615 #. type: textblock
17616 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
17617 msgid ""
17618 "This command counts the lines in a file, using the C<wc -l> external command."
17619 msgstr ""
17620
17621 #. type: =head2
17622 #: ../fish/guestfish-actions.pod:5109
17623 msgid "wc-w"
17624 msgstr "wc-w"
17625
17626 #. type: verbatim
17627 #: ../fish/guestfish-actions.pod:5111
17628 #, no-wrap
17629 msgid ""
17630 " wc-w path\n"
17631 "\n"
17632 msgstr ""
17633 " wc-w шлях\n"
17634 "\n"
17635
17636 #. type: textblock
17637 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
17638 msgid ""
17639 "This command counts the words in a file, using the C<wc -w> external command."
17640 msgstr ""
17641
17642 #. type: =head2
17643 #: ../fish/guestfish-actions.pod:5116
17644 msgid "write"
17645 msgstr "write"
17646
17647 #. type: verbatim
17648 #: ../fish/guestfish-actions.pod:5118
17649 #, no-wrap
17650 msgid ""
17651 " write path content\n"
17652 "\n"
17653 msgstr ""
17654 " write шлях дані\n"
17655 "\n"
17656
17657 #. type: textblock
17658 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
17659 msgid ""
17660 "This call creates a file called C<path>.  The content of the file is the "
17661 "string C<content> (which can contain any 8 bit data)."
17662 msgstr ""
17663
17664 #. type: textblock
17665 #: ../fish/guestfish-actions.pod:5123
17666 msgid "See also L</write-append>."
17667 msgstr ""
17668
17669 #. type: =head2
17670 #: ../fish/guestfish-actions.pod:5128
17671 msgid "write-append"
17672 msgstr ""
17673
17674 #. type: verbatim
17675 #: ../fish/guestfish-actions.pod:5130
17676 #, no-wrap
17677 msgid ""
17678 " write-append path content\n"
17679 "\n"
17680 msgstr ""
17681
17682 #. type: textblock
17683 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
17684 msgid ""
17685 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17686 "not exist, then a new file is created."
17687 msgstr ""
17688
17689 #. type: textblock
17690 #: ../fish/guestfish-actions.pod:5135
17691 msgid "See also L</write>."
17692 msgstr ""
17693
17694 #. type: =head2
17695 #: ../fish/guestfish-actions.pod:5140
17696 msgid "write-file"
17697 msgstr "write-file"
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish-actions.pod:5142
17701 #, no-wrap
17702 msgid ""
17703 " write-file path content size\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
17709 msgid ""
17710 "This call creates a file called C<path>.  The contents of the file is the "
17711 "string C<content> (which can contain any 8 bit data), with length C<size>."
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
17716 msgid ""
17717 "As a special case, if C<size> is C<0> then the length is calculated using "
17718 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
17723 msgid ""
17724 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17725 "I<not> work, even if the length is specified."
17726 msgstr ""
17727
17728 #. type: textblock
17729 #: ../fish/guestfish-actions.pod:5158
17730 msgid ""
17731 "I<This function is deprecated.> In new code, use the L</write> call instead."
17732 msgstr ""
17733
17734 #. type: =head2
17735 #: ../fish/guestfish-actions.pod:5165
17736 msgid "zegrep"
17737 msgstr "zegrep"
17738
17739 #. type: verbatim
17740 #: ../fish/guestfish-actions.pod:5167
17741 #, no-wrap
17742 msgid ""
17743 " zegrep regex path\n"
17744 "\n"
17745 msgstr ""
17746 " zegrep формальний_вираз шлях\n"
17747 "\n"
17748
17749 #. type: textblock
17750 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
17751 msgid ""
17752 "This calls the external C<zegrep> program and returns the matching lines."
17753 msgstr ""
17754
17755 #. type: =head2
17756 #: ../fish/guestfish-actions.pod:5175
17757 msgid "zegrepi"
17758 msgstr "zegrepi"
17759
17760 #. type: verbatim
17761 #: ../fish/guestfish-actions.pod:5177
17762 #, no-wrap
17763 msgid ""
17764 " zegrepi regex path\n"
17765 "\n"
17766 msgstr ""
17767
17768 #. type: textblock
17769 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
17770 msgid ""
17771 "This calls the external C<zegrep -i> program and returns the matching lines."
17772 msgstr ""
17773
17774 #. type: =head2
17775 #: ../fish/guestfish-actions.pod:5185
17776 msgid "zero"
17777 msgstr "zero"
17778
17779 #. type: verbatim
17780 #: ../fish/guestfish-actions.pod:5187
17781 #, no-wrap
17782 msgid ""
17783 " zero device\n"
17784 "\n"
17785 msgstr ""
17786 " zero пристрій\n"
17787 "\n"
17788
17789 #. type: textblock
17790 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
17791 msgid "This command writes zeroes over the first few blocks of C<device>."
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
17796 msgid ""
17797 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17798 "securely wipe the device).  It should be sufficient to remove any partition "
17799 "tables, filesystem superblocks and so on."
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
17804 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
17805 msgid ""
17806 "If blocks are already zero, then this command avoids writing zeroes.  This "
17807 "prevents the underlying device from becoming non-sparse or growing "
17808 "unnecessarily."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:5199
17813 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17814 msgstr ""
17815
17816 #. type: =head2
17817 #: ../fish/guestfish-actions.pod:5202
17818 msgid "zero-device"
17819 msgstr "zero-device"
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish-actions.pod:5204
17823 #, no-wrap
17824 msgid ""
17825 " zero-device device\n"
17826 "\n"
17827 msgstr ""
17828 " zero-device пристрій\n"
17829 "\n"
17830
17831 #. type: textblock
17832 #: ../fish/guestfish-actions.pod:5206
17833 msgid ""
17834 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17835 "which just zeroes the first few blocks of a device."
17836 msgstr ""
17837
17838 #. type: =head2
17839 #: ../fish/guestfish-actions.pod:5217
17840 msgid "zerofree"
17841 msgstr "zerofree"
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish-actions.pod:5219
17845 #, no-wrap
17846 msgid ""
17847 " zerofree device\n"
17848 "\n"
17849 msgstr ""
17850 " zerofree пристрій\n"
17851 "\n"
17852
17853 #. type: textblock
17854 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
17855 msgid ""
17856 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17857 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17858 "possible to compress the filesystem more effectively."
17859 msgstr ""
17860
17861 #. type: textblock
17862 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
17863 msgid "You should B<not> run this program if the filesystem is mounted."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
17868 msgid ""
17869 "It is possible that using this program can damage the filesystem or data on "
17870 "the filesystem."
17871 msgstr ""
17872
17873 #. type: =head2
17874 #: ../fish/guestfish-actions.pod:5232
17875 msgid "zfgrep"
17876 msgstr "zfgrep"
17877
17878 #. type: verbatim
17879 #: ../fish/guestfish-actions.pod:5234
17880 #, no-wrap
17881 msgid ""
17882 " zfgrep pattern path\n"
17883 "\n"
17884 msgstr ""
17885 " zfgrep шаблон шлях\n"
17886 "\n"
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
17890 msgid ""
17891 "This calls the external C<zfgrep> program and returns the matching lines."
17892 msgstr ""
17893
17894 #. type: =head2
17895 #: ../fish/guestfish-actions.pod:5242
17896 msgid "zfgrepi"
17897 msgstr "zfgrepi"
17898
17899 #. type: verbatim
17900 #: ../fish/guestfish-actions.pod:5244
17901 #, no-wrap
17902 msgid ""
17903 " zfgrepi pattern path\n"
17904 "\n"
17905 msgstr ""
17906 " zfgrepi шаблон шлях\n"
17907 "\n"
17908
17909 #. type: textblock
17910 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
17911 msgid ""
17912 "This calls the external C<zfgrep -i> program and returns the matching lines."
17913 msgstr ""
17914
17915 #. type: =head2
17916 #: ../fish/guestfish-actions.pod:5252
17917 msgid "zfile"
17918 msgstr "zfile"
17919
17920 #. type: verbatim
17921 #: ../fish/guestfish-actions.pod:5254
17922 #, no-wrap
17923 msgid ""
17924 " zfile meth path\n"
17925 "\n"
17926 msgstr ""
17927 " zfile метод шлях\n"
17928 "\n"
17929
17930 #. type: textblock
17931 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
17932 msgid ""
17933 "This command runs C<file> after first decompressing C<path> using C<method>."
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
17938 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish-actions.pod:5261
17943 msgid ""
17944 "Since 1.0.63, use L</file> instead which can now process compressed files."
17945 msgstr ""
17946
17947 #. type: textblock
17948 #: ../fish/guestfish-actions.pod:5264
17949 msgid ""
17950 "I<This function is deprecated.> In new code, use the L</file> call instead."
17951 msgstr ""
17952
17953 #. type: =head2
17954 #: ../fish/guestfish-actions.pod:5271
17955 msgid "zgrep"
17956 msgstr "zgrep"
17957
17958 #. type: verbatim
17959 #: ../fish/guestfish-actions.pod:5273
17960 #, no-wrap
17961 msgid ""
17962 " zgrep regex path\n"
17963 "\n"
17964 msgstr ""
17965 " zgrep формальний_вираз шлях\n"
17966 "\n"
17967
17968 #. type: textblock
17969 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
17970 msgid ""
17971 "This calls the external C<zgrep> program and returns the matching lines."
17972 msgstr ""
17973
17974 #. type: =head2
17975 #: ../fish/guestfish-actions.pod:5281
17976 msgid "zgrepi"
17977 msgstr "zgrepi"
17978
17979 #. type: verbatim
17980 #: ../fish/guestfish-actions.pod:5283
17981 #, no-wrap
17982 msgid ""
17983 " zgrepi regex path\n"
17984 "\n"
17985 msgstr ""
17986 " zgrepi формальний_вираз шлях\n"
17987 "\n"
17988
17989 #. type: textblock
17990 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
17991 msgid ""
17992 "This calls the external C<zgrep -i> program and returns the matching lines."
17993 msgstr ""
17994
17995 #. type: =head2
17996 #: ../fish/guestfish-commands.pod:1
17997 msgid "alloc"
17998 msgstr "alloc"
17999
18000 #. type: =head2
18001 #: ../fish/guestfish-commands.pod:3
18002 msgid "allocate"
18003 msgstr ""
18004
18005 #. type: verbatim
18006 #: ../fish/guestfish-commands.pod:5
18007 #, no-wrap
18008 msgid ""
18009 " alloc filename size\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:7
18015 msgid ""
18016 "This creates an empty (zeroed) file of the given size, and then adds so it "
18017 "can be further examined."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18022 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18023 msgstr ""
18024
18025 #. type: textblock
18026 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18027 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish-commands.pod:14
18032 msgid ""
18033 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18034 "image, see L</PREPARED DISK IMAGES>."
18035 msgstr ""
18036
18037 #. type: =head2
18038 #: ../fish/guestfish-commands.pod:17
18039 msgid "copy-in"
18040 msgstr "copy-in"
18041
18042 #. type: verbatim
18043 #: ../fish/guestfish-commands.pod:19
18044 #, no-wrap
18045 msgid ""
18046 " copy-in local [local ...] /remotedir\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish-commands.pod:21
18052 msgid ""
18053 "C<copy-in> copies local files or directories recursively into the disk "
18054 "image, placing them in the directory called C</remotedir> (which must "
18055 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18056 "other commands as necessary."
18057 msgstr ""
18058
18059 #. type: textblock
18060 #: ../fish/guestfish-commands.pod:26
18061 msgid ""
18062 "Multiple local files and directories can be specified, but the last "
18063 "parameter must always be a remote directory.  Wildcards cannot be used."
18064 msgstr ""
18065
18066 #. type: =head2
18067 #: ../fish/guestfish-commands.pod:30
18068 msgid "copy-out"
18069 msgstr "copy-out"
18070
18071 #. type: verbatim
18072 #: ../fish/guestfish-commands.pod:32
18073 #, no-wrap
18074 msgid ""
18075 " copy-out remote [remote ...] localdir\n"
18076 "\n"
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-commands.pod:34
18081 msgid ""
18082 "C<copy-out> copies remote files or directories recursively out of the disk "
18083 "image, placing them on the host disk in a local directory called C<localdir> "
18084 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18085 "download>, L</tar-out> and other commands as necessary."
18086 msgstr ""
18087
18088 #. type: textblock
18089 #: ../fish/guestfish-commands.pod:40
18090 msgid ""
18091 "Multiple remote files and directories can be specified, but the last "
18092 "parameter must always be a local directory.  To download to the current "
18093 "directory, use C<.> as in:"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../fish/guestfish-commands.pod:44
18098 #, no-wrap
18099 msgid ""
18100 " copy-out /home .\n"
18101 "\n"
18102 msgstr ""
18103 " copy-out /home .\n"
18104 "\n"
18105
18106 #. type: textblock
18107 #: ../fish/guestfish-commands.pod:46
18108 msgid ""
18109 "Wildcards cannot be used in the ordinary command, but you can use them with "
18110 "the help of L</glob> like this:"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish-commands.pod:49
18115 #, no-wrap
18116 msgid ""
18117 " glob copy-out /home/* .\n"
18118 "\n"
18119 msgstr ""
18120 " glob copy-out /home/* .\n"
18121 "\n"
18122
18123 #. type: =head2
18124 #: ../fish/guestfish-commands.pod:51
18125 msgid "display"
18126 msgstr ""
18127
18128 #. type: verbatim
18129 #: ../fish/guestfish-commands.pod:53
18130 #, no-wrap
18131 msgid ""
18132 " display filename\n"
18133 "\n"
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../fish/guestfish-commands.pod:55
18138 msgid ""
18139 "Use C<display> (a graphical display program) to display an image file.  It "
18140 "downloads the file, and runs C<display> on it."
18141 msgstr ""
18142
18143 #. type: textblock
18144 #: ../fish/guestfish-commands.pod:58
18145 msgid ""
18146 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18147 "environment variable.  For example to use the GNOME display program:"
18148 msgstr ""
18149
18150 #. type: verbatim
18151 #: ../fish/guestfish-commands.pod:61
18152 #, no-wrap
18153 msgid ""
18154 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18155 "\n"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish-commands.pod:63
18160 msgid "See also L<display(1)>."
18161 msgstr ""
18162
18163 #. type: =head2
18164 #: ../fish/guestfish-commands.pod:65
18165 msgid "echo"
18166 msgstr "echo"
18167
18168 #. type: verbatim
18169 #: ../fish/guestfish-commands.pod:67
18170 #, no-wrap
18171 msgid ""
18172 " echo [params ...]\n"
18173 "\n"
18174 msgstr ""
18175 " echo [параметри...]\n"
18176 "\n"
18177
18178 #. type: textblock
18179 #: ../fish/guestfish-commands.pod:69
18180 msgid "This echos the parameters to the terminal."
18181 msgstr ""
18182
18183 #. type: =head2
18184 #: ../fish/guestfish-commands.pod:71
18185 msgid "edit"
18186 msgstr "edit"
18187
18188 #. type: =head2
18189 #: ../fish/guestfish-commands.pod:73
18190 msgid "vi"
18191 msgstr "vi"
18192
18193 #. type: =head2
18194 #: ../fish/guestfish-commands.pod:75
18195 msgid "emacs"
18196 msgstr "emacs"
18197
18198 #. type: verbatim
18199 #: ../fish/guestfish-commands.pod:77
18200 #, no-wrap
18201 msgid ""
18202 " edit filename\n"
18203 "\n"
18204 msgstr ""
18205 " edit назва_файла\n"
18206 "\n"
18207
18208 #. type: textblock
18209 #: ../fish/guestfish-commands.pod:79
18210 msgid ""
18211 "This is used to edit a file.  It downloads the file, edits it locally using "
18212 "your editor, then uploads the result."
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish-commands.pod:82
18217 msgid ""
18218 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18219 "or C<emacs> you will get those corresponding editors."
18220 msgstr ""
18221
18222 #. type: =head2
18223 #: ../fish/guestfish-commands.pod:86
18224 msgid "glob"
18225 msgstr "glob"
18226
18227 #. type: verbatim
18228 #: ../fish/guestfish-commands.pod:88
18229 #, no-wrap
18230 msgid ""
18231 " glob command args...\n"
18232 "\n"
18233 msgstr ""
18234 " glob команда параметри...\n"
18235 "\n"
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-commands.pod:90
18239 msgid ""
18240 "Expand wildcards in any paths in the args list, and run C<command> "
18241 "repeatedly on each matching path."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish-commands.pod:93
18246 msgid "See L</WILDCARDS AND GLOBBING>."
18247 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18248
18249 #. type: =head2
18250 #: ../fish/guestfish-commands.pod:95
18251 msgid "hexedit"
18252 msgstr "hexedit"
18253
18254 #. type: verbatim
18255 #: ../fish/guestfish-commands.pod:97
18256 #, no-wrap
18257 msgid ""
18258 " hexedit <filename|device>\n"
18259 " hexedit <filename|device> <max>\n"
18260 " hexedit <filename|device> <start> <max>\n"
18261 "\n"
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish-commands.pod:101
18266 msgid ""
18267 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18268 "device."
18269 msgstr ""
18270
18271 #. type: textblock
18272 #: ../fish/guestfish-commands.pod:104
18273 msgid ""
18274 "This command works by downloading potentially the whole file or device, "
18275 "editing it locally, then uploading it.  If the file or device is large, you "
18276 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18277 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18278 "usual modifiers allowed such as C<1M> (1 megabyte)."
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish-commands.pod:111
18283 msgid "For example to edit the first few sectors of a disk you might do:"
18284 msgstr ""
18285
18286 #. type: verbatim
18287 #: ../fish/guestfish-commands.pod:114
18288 #, no-wrap
18289 msgid ""
18290 " hexedit /dev/sda 1M\n"
18291 "\n"
18292 msgstr ""
18293 " hexedit /dev/sda 1M\n"
18294 "\n"
18295
18296 #. type: textblock
18297 #: ../fish/guestfish-commands.pod:116
18298 msgid ""
18299 "which would allow you to edit anywhere within the first megabyte of the disk."
18300 msgstr ""
18301
18302 #. type: textblock
18303 #: ../fish/guestfish-commands.pod:119
18304 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18305 msgstr ""
18306
18307 #. type: verbatim
18308 #: ../fish/guestfish-commands.pod:121
18309 #, no-wrap
18310 msgid ""
18311 " hexedit /dev/sda1 0x400 0x400\n"
18312 "\n"
18313 msgstr ""
18314 " hexedit /dev/sda1 0x400 0x400\n"
18315 "\n"
18316
18317 #. type: textblock
18318 #: ../fish/guestfish-commands.pod:123
18319 msgid "(assuming the superblock is in the standard location)."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:125
18324 msgid ""
18325 "This command requires the external L<hexedit(1)> program.  You can specify "
18326 "another program to use by setting the C<HEXEDITOR> environment variable."
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../fish/guestfish-commands.pod:129
18331 msgid "See also L</hexdump>."
18332 msgstr "Див. також L</hexdump>."
18333
18334 #. type: =head2
18335 #: ../fish/guestfish-commands.pod:131
18336 msgid "lcd"
18337 msgstr "lcd"
18338
18339 #. type: verbatim
18340 #: ../fish/guestfish-commands.pod:133
18341 #, no-wrap
18342 msgid ""
18343 " lcd directory\n"
18344 "\n"
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish-commands.pod:135
18349 msgid ""
18350 "Change the local directory, ie. the current directory of guestfish itself."
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish-commands.pod:138
18355 msgid "Note that C<!cd> won't do what you might expect."
18356 msgstr ""
18357
18358 #. type: =head2
18359 #: ../fish/guestfish-commands.pod:140
18360 msgid "man"
18361 msgstr "man"
18362
18363 #. type: =head2
18364 #: ../fish/guestfish-commands.pod:142
18365 msgid "manual"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish-commands.pod:144
18370 #, no-wrap
18371 msgid ""
18372 "  man\n"
18373 "\n"
18374 msgstr ""
18375 "  man\n"
18376 "\n"
18377
18378 #. type: textblock
18379 #: ../fish/guestfish-commands.pod:146
18380 msgid "Opens the manual page for guestfish."
18381 msgstr ""
18382
18383 #. type: =head2
18384 #: ../fish/guestfish-commands.pod:148
18385 msgid "more"
18386 msgstr "more"
18387
18388 #. type: =head2
18389 #: ../fish/guestfish-commands.pod:150
18390 msgid "less"
18391 msgstr "less"
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish-commands.pod:152
18395 #, no-wrap
18396 msgid ""
18397 " more filename\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: verbatim
18402 #: ../fish/guestfish-commands.pod:154
18403 #, no-wrap
18404 msgid ""
18405 " less filename\n"
18406 "\n"
18407 msgstr ""
18408
18409 #. type: textblock
18410 #: ../fish/guestfish-commands.pod:156
18411 msgid "This is used to view a file."
18412 msgstr ""
18413
18414 #. type: textblock
18415 #: ../fish/guestfish-commands.pod:158
18416 msgid ""
18417 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18418 "C<less> you will get the C<less> command specifically."
18419 msgstr ""
18420
18421 #. type: =head2
18422 #: ../fish/guestfish-commands.pod:161
18423 msgid "reopen"
18424 msgstr "reopen"
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish-commands.pod:163
18428 #, no-wrap
18429 msgid ""
18430 "  reopen\n"
18431 "\n"
18432 msgstr ""
18433
18434 #. type: textblock
18435 #: ../fish/guestfish-commands.pod:165
18436 msgid ""
18437 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18438 "normally, because the handle is closed properly when guestfish exits.  "
18439 "However this is occasionally useful for testing."
18440 msgstr ""
18441
18442 #. type: =head2
18443 #: ../fish/guestfish-commands.pod:169
18444 msgid "setenv"
18445 msgstr ""
18446
18447 #. type: verbatim
18448 #: ../fish/guestfish-commands.pod:171
18449 #, no-wrap
18450 msgid ""
18451 "  setenv VAR value\n"
18452 "\n"
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish-commands.pod:173
18457 msgid "Set the environment variable C<VAR> to the string C<value>."
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish-commands.pod:175
18462 msgid ""
18463 "To print the value of an environment variable use a shell command such as:"
18464 msgstr ""
18465
18466 #. type: verbatim
18467 #: ../fish/guestfish-commands.pod:178
18468 #, no-wrap
18469 msgid ""
18470 " !echo $VAR\n"
18471 "\n"
18472 msgstr ""
18473
18474 #. type: =head2
18475 #: ../fish/guestfish-commands.pod:180
18476 msgid "sparse"
18477 msgstr "sparse"
18478
18479 #. type: verbatim
18480 #: ../fish/guestfish-commands.pod:182
18481 #, no-wrap
18482 msgid ""
18483 " sparse filename size\n"
18484 "\n"
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../fish/guestfish-commands.pod:184
18489 msgid ""
18490 "This creates an empty sparse file of the given size, and then adds so it can "
18491 "be further examined."
18492 msgstr ""
18493
18494 #. type: textblock
18495 #: ../fish/guestfish-commands.pod:187
18496 msgid ""
18497 "In all respects it works the same as the L</alloc> command, except that the "
18498 "image file is allocated sparsely, which means that disk blocks are not "
18499 "assigned to the file until they are needed.  Sparse disk files only use "
18500 "space when written to, but they are slower and there is a danger you could "
18501 "run out of real disk space during a write operation."
18502 msgstr ""
18503
18504 #. type: =head2
18505 #: ../fish/guestfish-commands.pod:197
18506 msgid "supported"
18507 msgstr "supported"
18508
18509 #. type: verbatim
18510 #: ../fish/guestfish-commands.pod:199
18511 #, no-wrap
18512 msgid ""
18513 " supported\n"
18514 "\n"
18515 msgstr ""
18516 " supported\n"
18517 "\n"
18518
18519 #. type: textblock
18520 #: ../fish/guestfish-commands.pod:201
18521 msgid ""
18522 "This command returns a list of the optional groups known to the daemon, and "
18523 "indicates which ones are supported by this build of the libguestfs appliance."
18524 msgstr ""
18525
18526 #. type: textblock
18527 #: ../fish/guestfish-commands.pod:205
18528 msgid "See also L<guestfs(3)/AVAILABILITY>."
18529 msgstr ""
18530
18531 #. type: =head2
18532 #: ../fish/guestfish-commands.pod:207
18533 msgid "time"
18534 msgstr "time"
18535
18536 #. type: verbatim
18537 #: ../fish/guestfish-commands.pod:209
18538 #, no-wrap
18539 msgid ""
18540 " time command args...\n"
18541 "\n"
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish-commands.pod:211
18546 msgid ""
18547 "Run the command as usual, but print the elapsed time afterwards.  This can "
18548 "be useful for benchmarking operations."
18549 msgstr ""
18550
18551 #. type: =head2
18552 #: ../fish/guestfish-commands.pod:214
18553 msgid "unsetenv"
18554 msgstr ""
18555
18556 #. type: verbatim
18557 #: ../fish/guestfish-commands.pod:216
18558 #, no-wrap
18559 msgid ""
18560 "  unsetenv VAR\n"
18561 "\n"
18562 msgstr ""
18563
18564 #. type: textblock
18565 #: ../fish/guestfish-commands.pod:218
18566 msgid "Remove C<VAR> from the environment."
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:5
18571 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18572 msgstr ""
18573
18574 #. type: verbatim
18575 #: ../fish/guestfish.pod:9
18576 #, no-wrap
18577 msgid ""
18578 " guestfish [--options] [commands]\n"
18579 "\n"
18580 msgstr ""
18581
18582 #. type: verbatim
18583 #: ../fish/guestfish.pod:11
18584 #, no-wrap
18585 msgid ""
18586 " guestfish\n"
18587 "\n"
18588 msgstr ""
18589
18590 #. type: verbatim
18591 #: ../fish/guestfish.pod:13
18592 #, no-wrap
18593 msgid ""
18594 " guestfish [--ro|--rw] -a disk.img\n"
18595 "\n"
18596 msgstr ""
18597
18598 #. type: verbatim
18599 #: ../fish/guestfish.pod:15
18600 #, no-wrap
18601 msgid ""
18602 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18603 "\n"
18604 msgstr ""
18605
18606 #. type: verbatim
18607 #: ../fish/guestfish.pod:17
18608 #, no-wrap
18609 msgid ""
18610 " guestfish -d libvirt-domain\n"
18611 "\n"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../fish/guestfish.pod:19
18616 #, no-wrap
18617 msgid ""
18618 " guestfish [--ro|--rw] -a disk.img -i\n"
18619 "\n"
18620 msgstr ""
18621
18622 #. type: verbatim
18623 #: ../fish/guestfish.pod:21
18624 #, no-wrap
18625 msgid ""
18626 " guestfish -d libvirt-domain -i\n"
18627 "\n"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:25
18632 msgid ""
18633 "Using guestfish in read/write mode on live virtual machines can be "
18634 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18635 "option to use guestfish safely if the disk image or virtual machine might be "
18636 "live."
18637 msgstr ""
18638
18639 #. type: textblock
18640 #: ../fish/guestfish.pod:32
18641 msgid ""
18642 "Guestfish is a shell and command-line tool for examining and modifying "
18643 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18644 "functionality of the guestfs API, see L<guestfs(3)>."
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:36
18649 msgid ""
18650 "Guestfish gives you structured access to the libguestfs API, from shell "
18651 "scripts or the command line or interactively.  If you want to rescue a "
18652 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18653 "command."
18654 msgstr ""
18655
18656 #. type: =head2
18657 #: ../fish/guestfish.pod:43
18658 msgid "As an interactive shell"
18659 msgstr ""
18660
18661 #. type: verbatim
18662 #: ../fish/guestfish.pod:45
18663 #, no-wrap
18664 msgid ""
18665 " $ guestfish\n"
18666 " \n"
18667 msgstr ""
18668
18669 #. type: verbatim
18670 #: ../fish/guestfish.pod:47
18671 #, no-wrap
18672 msgid ""
18673 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18674 " editing virtual machine filesystems.\n"
18675 " \n"
18676 msgstr ""
18677
18678 #. type: verbatim
18679 #: ../fish/guestfish.pod:50
18680 #, no-wrap
18681 msgid ""
18682 " Type: 'help' for a list of commands\n"
18683 "       'man' to read the manual\n"
18684 "       'quit' to quit the shell\n"
18685 " \n"
18686 msgstr ""
18687
18688 #. type: verbatim
18689 #: ../fish/guestfish.pod:54
18690 #, no-wrap
18691 msgid ""
18692 " ><fs> add-ro disk.img\n"
18693 " ><fs> run\n"
18694 " ><fs> list-filesystems\n"
18695 " /dev/sda1: ext4\n"
18696 " /dev/vg_guest/lv_root: ext4\n"
18697 " /dev/vg_guest/lv_swap: swap\n"
18698 " ><fs> mount /dev/vg_guest/lv_root /\n"
18699 " ><fs> cat /etc/fstab\n"
18700 " # /etc/fstab\n"
18701 " # Created by anaconda\n"
18702 " [...]\n"
18703 " ><fs> exit\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: =head2
18708 #: ../fish/guestfish.pod:67
18709 msgid "From shell scripts"
18710 msgstr ""
18711
18712 #. type: textblock
18713 #: ../fish/guestfish.pod:69
18714 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18715 msgstr ""
18716
18717 #. type: verbatim
18718 #: ../fish/guestfish.pod:71
18719 #, no-wrap
18720 msgid ""
18721 " guestfish <<_EOF_\n"
18722 " add disk.img\n"
18723 " run\n"
18724 " mount /dev/vg_guest/lv_root /\n"
18725 " write /etc/motd \"Welcome, new users\"\n"
18726 " _EOF_\n"
18727 "\n"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/guestfish.pod:78
18732 msgid "List the LVM logical volumes in a disk image:"
18733 msgstr ""
18734
18735 #. type: verbatim
18736 #: ../fish/guestfish.pod:80
18737 #, no-wrap
18738 msgid ""
18739 " guestfish -a disk.img --ro <<_EOF_\n"
18740 " run\n"
18741 " lvs\n"
18742 " _EOF_\n"
18743 "\n"
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/guestfish.pod:85
18748 msgid "List all the filesystems in a disk image:"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/guestfish.pod:87
18753 #, no-wrap
18754 msgid ""
18755 " guestfish -a disk.img --ro <<_EOF_\n"
18756 " run\n"
18757 " list-filesystems\n"
18758 " _EOF_\n"
18759 "\n"
18760 msgstr ""
18761
18762 #. type: =head2
18763 #: ../fish/guestfish.pod:92
18764 msgid "On one command line"
18765 msgstr ""
18766
18767 #. type: textblock
18768 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18769 msgid "Update C</etc/resolv.conf> in a guest:"
18770 msgstr ""
18771
18772 #. type: verbatim
18773 #: ../fish/guestfish.pod:96
18774 #, no-wrap
18775 msgid ""
18776 " guestfish \\\n"
18777 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18778 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: textblock
18783 #: ../fish/guestfish.pod:100
18784 msgid "Edit C</boot/grub/grub.conf> interactively:"
18785 msgstr ""
18786
18787 #. type: verbatim
18788 #: ../fish/guestfish.pod:102
18789 #, no-wrap
18790 msgid ""
18791 " guestfish --rw --add disk.img \\\n"
18792 "   --mount /dev/vg_guest/lv_root \\\n"
18793 "   --mount /dev/sda1:/boot \\\n"
18794 "   edit /boot/grub/grub.conf\n"
18795 "\n"
18796 msgstr ""
18797
18798 #. type: =head2
18799 #: ../fish/guestfish.pod:107
18800 msgid "Mount disks automatically"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:109
18805 msgid ""
18806 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18807 msgstr ""
18808
18809 #. type: verbatim
18810 #: ../fish/guestfish.pod:112
18811 #, no-wrap
18812 msgid ""
18813 " guestfish --ro -a disk.img -i cat /etc/group\n"
18814 "\n"
18815 msgstr ""
18816
18817 #. type: verbatim
18818 #: ../fish/guestfish.pod:114
18819 #, no-wrap
18820 msgid ""
18821 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18822 "\n"
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:116
18827 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18828 msgstr ""
18829
18830 #. type: verbatim
18831 #: ../fish/guestfish.pod:118
18832 #, no-wrap
18833 msgid ""
18834 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18835 "\n"
18836 msgstr ""
18837
18838 #. type: =head2
18839 #: ../fish/guestfish.pod:120
18840 msgid "As a script interpreter"
18841 msgstr ""
18842
18843 #. type: textblock
18844 #: ../fish/guestfish.pod:122
18845 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18846 msgstr ""
18847
18848 #. type: verbatim
18849 #: ../fish/guestfish.pod:124
18850 #, no-wrap
18851 msgid ""
18852 " #!/usr/bin/guestfish -f\n"
18853 " sparse test1.img 100M\n"
18854 " run\n"
18855 " part-disk /dev/sda mbr\n"
18856 " mkfs ext2 /dev/sda1\n"
18857 "\n"
18858 msgstr ""
18859
18860 #. type: =head2
18861 #: ../fish/guestfish.pod:130
18862 msgid "Start with a prepared disk"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:132
18867 msgid ""
18868 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18869 "single ext2-formatted partition:"
18870 msgstr ""
18871
18872 #. type: verbatim
18873 #: ../fish/guestfish.pod:135
18874 #, no-wrap
18875 msgid ""
18876 " guestfish -N fs\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:137
18882 msgid "To list what is available do:"
18883 msgstr ""
18884
18885 #. type: verbatim
18886 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1041
18887 #, no-wrap
18888 msgid ""
18889 " guestfish -N help | less\n"
18890 "\n"
18891 msgstr ""
18892
18893 #. type: =head2
18894 #: ../fish/guestfish.pod:141
18895 msgid "Remote control"
18896 msgstr "Дистанційне керування"
18897
18898 #. type: verbatim
18899 #: ../fish/guestfish.pod:143
18900 #, no-wrap
18901 msgid ""
18902 " eval \"`guestfish --listen`\"\n"
18903 " guestfish --remote add-ro disk.img\n"
18904 " guestfish --remote run\n"
18905 " guestfish --remote lvs\n"
18906 "\n"
18907 msgstr ""
18908 " eval \"`guestfish --listen`\"\n"
18909 " guestfish --remote add-ro disk.img\n"
18910 " guestfish --remote run\n"
18911 " guestfish --remote lvs\n"
18912 "\n"
18913
18914 #. type: textblock
18915 #: ../fish/guestfish.pod:154
18916 msgid "Displays general help on options."
18917 msgstr ""
18918
18919 #. type: =item
18920 #: ../fish/guestfish.pod:158
18921 msgid "B<--cmd-help>"
18922 msgstr "B<--cmd-help>"
18923
18924 #. type: textblock
18925 #: ../fish/guestfish.pod:160
18926 msgid "Lists all available guestfish commands."
18927 msgstr ""
18928
18929 #. type: =item
18930 #: ../fish/guestfish.pod:162
18931 msgid "B<-h cmd>"
18932 msgstr "B<-h команда>"
18933
18934 #. type: =item
18935 #: ../fish/guestfish.pod:164
18936 msgid "B<--cmd-help cmd>"
18937 msgstr "B<--cmd-help команда>"
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:166
18941 msgid "Displays detailed help on a single command C<cmd>."
18942 msgstr ""
18943
18944 #. type: =item
18945 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
18946 msgid "B<-a image>"
18947 msgstr "B<-a образ>"
18948
18949 #. type: =item
18950 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
18951 msgid "B<--add image>"
18952 msgstr "B<--add образ>"
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:172
18956 msgid "Add a block device or virtual machine image to the shell."
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/guestfish.pod:177
18961 msgid ""
18962 "Using this flag is mostly equivalent to using the C<add> command, with "
18963 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18964 "the I<--format=...> flag was given."
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
18969 msgid ""
18970 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18971 "URI to use.  The default is to use the default libvirt connection."
18972 msgstr ""
18973
18974 #. type: =item
18975 #: ../fish/guestfish.pod:189
18976 msgid "B<--csh>"
18977 msgstr "B<--csh>"
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:191
18981 msgid ""
18982 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18983 "section L</REMOTE CONTROL AND CSH> below."
18984 msgstr ""
18985
18986 #. type: =item
18987 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
18988 msgid "B<-d libvirt-domain>"
18989 msgstr "B<-d домен-libvirt>"
18990
18991 #. type: =item
18992 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
18993 msgid "B<--domain libvirt-domain>"
18994 msgstr "B<--domain домен-libvirt>"
18995
18996 #. type: textblock
18997 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
18998 msgid ""
18999 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19000 "used, then any libvirt domain can be used.  However in write mode, only "
19001 "libvirt domains which are shut down can be named here."
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
19006 msgid "Domain UUIDs can be used instead of names."
19007 msgstr ""
19008
19009 #. type: textblock
19010 #: ../fish/guestfish.pod:204
19011 msgid ""
19012 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19013 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19014 "if the I<--format:...> flag was given."
19015 msgstr ""
19016
19017 #. type: =item
19018 #: ../fish/guestfish.pod:208
19019 msgid "B<-D>"
19020 msgstr "B<-D>"
19021
19022 #. type: =item
19023 #: ../fish/guestfish.pod:210
19024 msgid "B<--no-dest-paths>"
19025 msgstr "B<--no-dest-paths>"
19026
19027 #. type: textblock
19028 #: ../fish/guestfish.pod:212
19029 msgid ""
19030 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19031 "to hit the tab key to complete paths on the guest filesystem, but this "
19032 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19033 "allow this feature to be disabled."
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
19038 msgid ""
19039 "When prompting for keys and passphrases, guestfish normally turns echoing "
19040 "off so you cannot see what you are typing.  If you are not worried about "
19041 "Tempest attacks and there is no one else in the room you can specify this "
19042 "flag to see what you are typing."
19043 msgstr ""
19044
19045 #. type: =item
19046 #: ../fish/guestfish.pod:224
19047 msgid "B<-f file>"
19048 msgstr "B<-f файл>"
19049
19050 #. type: =item
19051 #: ../fish/guestfish.pod:226
19052 msgid "B<--file file>"
19053 msgstr "B<--file файл>"
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:228
19057 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19058 msgstr ""
19059
19060 #. type: verbatim
19061 #: ../fish/guestfish.pod:231
19062 #, no-wrap
19063 msgid ""
19064 " #!/usr/bin/guestfish -f\n"
19065 "\n"
19066 msgstr ""
19067 " #!/usr/bin/guestfish -f\n"
19068 "\n"
19069
19070 #. type: verbatim
19071 #: ../fish/guestfish.pod:244
19072 #, no-wrap
19073 msgid ""
19074 " guestfish --format=raw -a disk.img\n"
19075 "\n"
19076 msgstr ""
19077 " guestfish --format=raw -a disk.img\n"
19078 "\n"
19079
19080 #. type: verbatim
19081 #: ../fish/guestfish.pod:248
19082 #, no-wrap
19083 msgid ""
19084 " guestfish --format=raw -a disk.img --format -a another.img\n"
19085 "\n"
19086 msgstr ""
19087 " guestfish --format=raw -a disk.img --format -a another.img\n"
19088 "\n"
19089
19090 #. type: textblock
19091 #: ../fish/guestfish.pod:253
19092 msgid ""
19093 "If you have untrusted raw-format guest disk images, you should use this "
19094 "option to specify the disk format.  This avoids a possible security problem "
19095 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19096 msgstr ""
19097
19098 #. type: =item
19099 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
19100 msgid "B<--inspector>"
19101 msgstr "B<--inspector>"
19102
19103 #. type: textblock
19104 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
19105 msgid ""
19106 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19107 "system and mount filesystems as they would be mounted on the real virtual "
19108 "machine."
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../fish/guestfish.pod:266
19113 msgid "Typical usage is either:"
19114 msgstr ""
19115
19116 #. type: verbatim
19117 #: ../fish/guestfish.pod:268
19118 #, no-wrap
19119 msgid ""
19120 " guestfish -d myguest -i\n"
19121 "\n"
19122 msgstr ""
19123 " guestfish -d myguest -i\n"
19124 "\n"
19125
19126 #. type: textblock
19127 #: ../fish/guestfish.pod:270
19128 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fish/guestfish.pod:272
19133 #, no-wrap
19134 msgid ""
19135 " guestfish --ro -d myguest -i\n"
19136 "\n"
19137 msgstr ""
19138 " guestfish --ro -d myguest -i\n"
19139 "\n"
19140
19141 #. type: textblock
19142 #: ../fish/guestfish.pod:274
19143 msgid "(for active domains, readonly), or specify the block device directly:"
19144 msgstr ""
19145
19146 #. type: verbatim
19147 #: ../fish/guestfish.pod:276
19148 #, no-wrap
19149 msgid ""
19150 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19151 "\n"
19152 msgstr ""
19153 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19154 "\n"
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:278
19158 msgid ""
19159 "Note that the command line syntax changed slightly over older versions of "
19160 "guestfish.  You can still use the old syntax:"
19161 msgstr ""
19162
19163 #. type: verbatim
19164 #: ../fish/guestfish.pod:281
19165 #, no-wrap
19166 msgid ""
19167 " guestfish [--ro] -i disk.img\n"
19168 "\n"
19169 msgstr ""
19170 " guestfish [--ro] -i disk.img\n"
19171 "\n"
19172
19173 #. type: verbatim
19174 #: ../fish/guestfish.pod:283
19175 #, no-wrap
19176 msgid ""
19177 " guestfish [--ro] -i libvirt-domain\n"
19178 "\n"
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fish/guestfish.pod:285
19183 msgid ""
19184 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19185 "then using other commands to mount the filesystems that were found."
19186 msgstr ""
19187
19188 #. type: =item
19189 #: ../fish/guestfish.pod:294
19190 msgid "B<--listen>"
19191 msgstr "B<--listen>"
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:296
19195 msgid ""
19196 "Fork into the background and listen for remote commands.  See section L</"
19197 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19198 msgstr ""
19199
19200 #. type: =item
19201 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
19202 msgid "B<--live>"
19203 msgstr "B<--live>"
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
19207 msgid ""
19208 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19209 "ATTACHING TO RUNNING DAEMONS>)."
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
19214 msgid "B<-m dev[:mountpoint[:options]]>"
19215 msgstr ""
19216
19217 #. type: =item
19218 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
19219 msgid "B<--mount dev[:mountpoint[:options]]>"
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fish/guestfish.pod:308
19224 msgid "Mount the named partition or logical volume on the given mountpoint."
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../fish/guestfish.pod:310
19229 msgid "If the mountpoint is omitted, it defaults to C</>."
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:312
19234 msgid "You have to mount something on C</> before most commands will work."
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fish/guestfish.pod:314
19239 msgid ""
19240 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19241 "launched."
19242 msgstr ""
19243
19244 #. type: textblock
19245 #: ../fish/guestfish.pod:317
19246 msgid ""
19247 "If you don't know what filesystems a disk image contains, you can either run "
19248 "guestfish without this option, then list the partitions, filesystems and LVs "
19249 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19250 "commands), or you can use the L<virt-filesystems(1)> program."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
19255 msgid ""
19256 "The third (and rarely used) part of the mount parameter is the list of mount "
19257 "options used to mount the underlying filesystem.  If this is not given, then "
19258 "the mount options are either the empty string or C<ro> (the latter if the "
19259 "I<--ro> flag is used).  By specifying the mount options, you override this "
19260 "default choice.  Probably the only time you would use this is to enable ACLs "
19261 "and/or extended attributes if the filesystem can support them:"
19262 msgstr ""
19263
19264 #. type: verbatim
19265 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
19266 #, no-wrap
19267 msgid ""
19268 " -m /dev/sda1:/:acl,user_xattr\n"
19269 "\n"
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish.pod:333
19274 msgid "Using this flag is equivalent to using the C<mount-options> command."
19275 msgstr ""
19276
19277 #. type: =item
19278 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
19279 #: ../resize/virt-resize.pod:358
19280 msgid "B<-n>"
19281 msgstr "B<-n>"
19282
19283 #. type: =item
19284 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
19285 msgid "B<--no-sync>"
19286 msgstr "B<--no-sync>"
19287
19288 #. type: textblock
19289 #: ../fish/guestfish.pod:339
19290 msgid ""
19291 "Disable autosync.  This is enabled by default.  See the discussion of "
19292 "autosync in the L<guestfs(3)> manpage."
19293 msgstr ""
19294
19295 #. type: =item
19296 #: ../fish/guestfish.pod:342
19297 msgid "B<-N type>"
19298 msgstr "B<-N тип>"
19299
19300 #. type: =item
19301 #: ../fish/guestfish.pod:344
19302 msgid "B<--new type>"
19303 msgstr "B<--new тип>"
19304
19305 #. type: =item
19306 #: ../fish/guestfish.pod:346
19307 msgid "B<-N help>"
19308 msgstr "B<-N help>"
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:348
19312 msgid ""
19313 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19314 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19315 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19316 "IMAGES> below."
19317 msgstr ""
19318
19319 #. type: =item
19320 #: ../fish/guestfish.pod:353
19321 msgid "B<--progress-bars>"
19322 msgstr "B<--progress-bars>"
19323
19324 #. type: textblock
19325 #: ../fish/guestfish.pod:355
19326 msgid "Enable progress bars, even when guestfish is used non-interactively."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:357
19331 msgid ""
19332 "Progress bars are enabled by default when guestfish is used as an "
19333 "interactive shell."
19334 msgstr ""
19335
19336 #. type: =item
19337 #: ../fish/guestfish.pod:360
19338 msgid "B<--no-progress-bars>"
19339 msgstr "B<--no-progress-bars>"
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:362
19343 msgid "Disable progress bars."
19344 msgstr ""
19345
19346 #. type: =item
19347 #: ../fish/guestfish.pod:364
19348 msgid "B<--remote[=pid]>"
19349 msgstr "B<--remote[=pid]>"
19350
19351 #. type: textblock
19352 #: ../fish/guestfish.pod:366
19353 msgid ""
19354 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19355 "CONTROL GUESTFISH OVER A SOCKET> below."
19356 msgstr ""
19357
19358 #. type: =item
19359 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
19360 #: ../rescue/virt-rescue.pod:161
19361 msgid "B<-r>"
19362 msgstr "B<-r>"
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
19366 #: ../rescue/virt-rescue.pod:163
19367 msgid "B<--ro>"
19368 msgstr "B<--ro>"
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:373
19372 msgid ""
19373 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19374 "mounts are done read-only."
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19379 msgid ""
19380 "The option must always be used if the disk image or virtual machine might be "
19381 "running, and is generally recommended in cases where you don't need write "
19382 "access to the disk."
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../fish/guestfish.pod:380
19387 msgid ""
19388 "Note that prepared disk images created with I<-N> are not affected by this "
19389 "option.  Also commands like C<add> are not affected - you have to specify "
19390 "the C<readonly:true> option explicitly if you need it."
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fish/guestfish.pod:384
19395 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19396 msgstr ""
19397
19398 #. type: =item
19399 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
19400 #: ../rescue/virt-rescue.pod:173
19401 msgid "B<--selinux>"
19402 msgstr "B<--selinux>"
19403
19404 #. type: textblock
19405 #: ../fish/guestfish.pod:388
19406 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19407 msgstr ""
19408
19409 #. type: textblock
19410 #: ../fish/guestfish.pod:394
19411 msgid ""
19412 "Enable very verbose messages.  This is particularly useful if you find a bug."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:401
19417 msgid "Display the guestfish / libguestfs version number and exit."
19418 msgstr ""
19419
19420 #. type: =item
19421 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
19422 #: ../rescue/virt-rescue.pod:194
19423 msgid "B<-w>"
19424 msgstr "B<-w>"
19425
19426 #. type: =item
19427 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
19428 #: ../rescue/virt-rescue.pod:196
19429 msgid "B<--rw>"
19430 msgstr "B<--rw>"
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
19434 msgid ""
19435 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19436 "mounts are done read-write."
19437 msgstr ""
19438
19439 #. type: textblock
19440 #: ../fish/guestfish.pod:410
19441 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:414
19446 msgid "Echo each command before executing it."
19447 msgstr ""
19448
19449 #. type: =head1
19450 #: ../fish/guestfish.pod:418
19451 msgid "COMMANDS ON COMMAND LINE"
19452 msgstr ""
19453
19454 #. type: textblock
19455 #: ../fish/guestfish.pod:420
19456 msgid ""
19457 "Any additional (non-option) arguments are treated as commands to execute."
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:423
19462 msgid ""
19463 "Commands to execute should be separated by a colon (C<:>), where the colon "
19464 "is a separate parameter.  Thus:"
19465 msgstr ""
19466
19467 #. type: verbatim
19468 #: ../fish/guestfish.pod:426
19469 #, no-wrap
19470 msgid ""
19471 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19472 "\n"
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../fish/guestfish.pod:428
19477 msgid ""
19478 "If there are no additional arguments, then we enter a shell, either an "
19479 "interactive shell with a prompt (if the input is a terminal) or a non-"
19480 "interactive shell."
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:432
19485 msgid ""
19486 "In either command line mode or non-interactive shell, the first command that "
19487 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19488 "prompt) if a command fails, you can continue to enter commands."
19489 msgstr ""
19490
19491 #. type: =head1
19492 #: ../fish/guestfish.pod:437
19493 msgid "USING launch (OR run)"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:439
19498 msgid ""
19499 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19500 "then launch it, then mount any disks you need, and finally issue actions/"
19501 "commands.  So the general order of the day is:"
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:447
19506 msgid "add or -a/--add"
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fish/guestfish.pod:451
19511 msgid "launch (aka run)"
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../fish/guestfish.pod:455
19516 msgid "mount or -m/--mount"
19517 msgstr ""
19518
19519 #. type: textblock
19520 #: ../fish/guestfish.pod:459
19521 msgid "any other commands"
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../fish/guestfish.pod:463
19526 msgid ""
19527 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19528 "guest before mounting or performing any other commands."
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:466
19533 msgid ""
19534 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19535 "I<--new> options were given then C<run> is done automatically, simply "
19536 "because guestfish can't perform the action you asked for without doing this."
19537 msgstr ""
19538
19539 #. type: =head1
19540 #: ../fish/guestfish.pod:471
19541 msgid "OPENING DISKS FOR READ AND WRITE"
19542 msgstr ""
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:473
19546 msgid ""
19547 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19548 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19549 "I<-i> and I<-m> open disk images read-only or for writing."
19550 msgstr ""
19551
19552 #. type: textblock
19553 #: ../fish/guestfish.pod:478
19554 msgid ""
19555 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19556 "opening disk images supplied on the command line for write.  To open a disk "
19557 "image read-only you have to do I<-a image --ro>."
19558 msgstr ""
19559
19560 #. type: textblock
19561 #: ../fish/guestfish.pod:482
19562 msgid ""
19563 "This matters: If you accidentally open a live VM disk image writable then "
19564 "you will cause irreversible disk corruption."
19565 msgstr ""
19566
19567 #. type: textblock
19568 #: ../fish/guestfish.pod:485
19569 msgid ""
19570 "In a future libguestfs we intend to change the default the other way.  Disk "
19571 "images will be opened read-only.  You will have to either specify "
19572 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19573 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19574 "access for disk images specified by those other command line options."
19575 msgstr ""
19576
19577 #. type: textblock
19578 #: ../fish/guestfish.pod:492
19579 msgid ""
19580 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19581 "which does nothing (it is already the default).  However it is highly "
19582 "recommended that you use this option to indicate that you need write access, "
19583 "and prepare your scripts for the day when this option will be required for "
19584 "write access."
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../fish/guestfish.pod:498
19589 msgid ""
19590 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19591 "other libguestfs program apart from guestfish and guestmount."
19592 msgstr ""
19593
19594 #. type: =head1
19595 #: ../fish/guestfish.pod:501
19596 msgid "QUOTING"
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../fish/guestfish.pod:503
19601 msgid ""
19602 "You can quote ordinary parameters using either single or double quotes.  For "
19603 "example:"
19604 msgstr ""
19605
19606 #. type: verbatim
19607 #: ../fish/guestfish.pod:506
19608 #, no-wrap
19609 msgid ""
19610 " add \"file with a space.img\"\n"
19611 "\n"
19612 msgstr ""
19613
19614 #. type: verbatim
19615 #: ../fish/guestfish.pod:508
19616 #, no-wrap
19617 msgid ""
19618 " rm '/file name'\n"
19619 "\n"
19620 msgstr ""
19621
19622 #. type: verbatim
19623 #: ../fish/guestfish.pod:510
19624 #, no-wrap
19625 msgid ""
19626 " rm '/\"'\n"
19627 "\n"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../fish/guestfish.pod:512
19632 msgid ""
19633 "A few commands require a list of strings to be passed.  For these, use a "
19634 "whitespace-separated list, enclosed in quotes.  Strings containing "
19635 "whitespace to be passed through must be enclosed in single quotes.  A "
19636 "literal single quote must be escaped with a backslash."
19637 msgstr ""
19638
19639 #. type: verbatim
19640 #: ../fish/guestfish.pod:517
19641 #, no-wrap
19642 msgid ""
19643 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19644 " command \"/bin/echo 'foo      bar'\"\n"
19645 " command \"/bin/echo \\'foo\\'\"\n"
19646 "\n"
19647 msgstr ""
19648
19649 #. type: =head2
19650 #: ../fish/guestfish.pod:521
19651 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:523
19656 msgid ""
19657 "In double-quoted arguments (only) use backslash to insert special characters:"
19658 msgstr ""
19659
19660 #. type: =item
19661 #: ../fish/guestfish.pod:528
19662 msgid "C<\\a>"
19663 msgstr ""
19664
19665 #. type: textblock
19666 #: ../fish/guestfish.pod:530
19667 msgid "Alert (bell) character."
19668 msgstr ""
19669
19670 #. type: =item
19671 #: ../fish/guestfish.pod:532
19672 msgid "C<\\b>"
19673 msgstr ""
19674
19675 #. type: textblock
19676 #: ../fish/guestfish.pod:534
19677 msgid "Backspace character."
19678 msgstr ""
19679
19680 #. type: =item
19681 #: ../fish/guestfish.pod:536
19682 msgid "C<\\f>"
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../fish/guestfish.pod:538
19687 msgid "Form feed character."
19688 msgstr ""
19689
19690 #. type: =item
19691 #: ../fish/guestfish.pod:540
19692 msgid "C<\\n>"
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../fish/guestfish.pod:542
19697 msgid "Newline character."
19698 msgstr ""
19699
19700 #. type: =item
19701 #: ../fish/guestfish.pod:544
19702 msgid "C<\\r>"
19703 msgstr ""
19704
19705 #. type: textblock
19706 #: ../fish/guestfish.pod:546
19707 msgid "Carriage return character."
19708 msgstr ""
19709
19710 #. type: =item
19711 #: ../fish/guestfish.pod:548
19712 msgid "C<\\t>"
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/guestfish.pod:550
19717 msgid "Horizontal tab character."
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:552
19722 msgid "C<\\v>"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:554
19727 msgid "Vertical tab character."
19728 msgstr ""
19729
19730 #. type: =item
19731 #: ../fish/guestfish.pod:556
19732 msgid "C<\\\">"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:558
19737 msgid "A literal double quote character."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:560
19742 msgid "C<\\ooo>"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:562
19747 msgid ""
19748 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19749 "(unlike C)."
19750 msgstr ""
19751
19752 #. type: =item
19753 #: ../fish/guestfish.pod:565
19754 msgid "C<\\xhh>"
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../fish/guestfish.pod:567
19759 msgid ""
19760 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish.pod:570
19765 msgid ""
19766 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19767 "strings."
19768 msgstr ""
19769
19770 #. type: =item
19771 #: ../fish/guestfish.pod:573
19772 msgid "C<\\\\>"
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:575
19777 msgid "A literal backslash character."
19778 msgstr ""
19779
19780 #. type: =head1
19781 #: ../fish/guestfish.pod:579
19782 msgid "OPTIONAL ARGUMENTS"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:581
19787 msgid ""
19788 "Some commands take optional arguments.  These arguments appear in this "
19789 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19790 msgstr ""
19791
19792 #. type: verbatim
19793 #: ../fish/guestfish.pod:585
19794 #, no-wrap
19795 msgid ""
19796 " add-drive-opts filename\n"
19797 "\n"
19798 msgstr ""
19799
19800 #. type: verbatim
19801 #: ../fish/guestfish.pod:587
19802 #, no-wrap
19803 msgid ""
19804 " add-drive-opts filename readonly:true\n"
19805 "\n"
19806 msgstr ""
19807
19808 #. type: verbatim
19809 #: ../fish/guestfish.pod:589
19810 #, no-wrap
19811 msgid ""
19812 " add-drive-opts filename format:qcow2 readonly:false\n"
19813 "\n"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:591
19818 msgid ""
19819 "Each optional argument can appear at most once.  All optional arguments must "
19820 "appear after the required ones."
19821 msgstr ""
19822
19823 #. type: =head1
19824 #: ../fish/guestfish.pod:594
19825 msgid "NUMBERS"
19826 msgstr "ЧИСЛА"
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:596
19830 msgid ""
19831 "This section applies to all commands which can take integers as parameters."
19832 msgstr ""
19833
19834 #. type: =head2
19835 #: ../fish/guestfish.pod:599
19836 msgid "SIZE SUFFIX"
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:601
19841 msgid ""
19842 "When the command takes a parameter measured in bytes, you can use one of the "
19843 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19844 msgstr ""
19845
19846 #. type: =item
19847 #: ../fish/guestfish.pod:607
19848 msgid "B<k> or B<K> or B<KiB>"
19849 msgstr "B<k>, B<K> або B<KiB>"
19850
19851 #. type: textblock
19852 #: ../fish/guestfish.pod:609
19853 msgid "The size in kilobytes (multiplied by 1024)."
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:611
19858 msgid "B<KB>"
19859 msgstr "B<KB>"
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:613
19863 msgid "The size in SI 1000 byte units."
19864 msgstr ""
19865
19866 #. type: =item
19867 #: ../fish/guestfish.pod:615
19868 msgid "B<M> or B<MiB>"
19869 msgstr "B<M> або B<MiB>"
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:617
19873 msgid "The size in megabytes (multiplied by 1048576)."
19874 msgstr ""
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:619
19878 msgid "B<MB>"
19879 msgstr "B<MB>"
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:621
19883 msgid "The size in SI 1000000 byte units."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:623
19888 msgid "B<G> or B<GiB>"
19889 msgstr "B<G> або B<GiB>"
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:625
19893 msgid "The size in gigabytes (multiplied by 2**30)."
19894 msgstr "Розмір у гігабайтах (з множником 2**30)."
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:627
19898 msgid "B<GB>"
19899 msgstr "B<GB>"
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:629
19903 msgid "The size in SI 10**9 byte units."
19904 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19905
19906 #. type: =item
19907 #: ../fish/guestfish.pod:631
19908 msgid "B<T> or B<TiB>"
19909 msgstr "B<T> або B<TiB>"
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:633
19913 msgid "The size in terabytes (multiplied by 2**40)."
19914 msgstr "Розмір у терабайтах (з множником 2**40)."
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:635
19918 msgid "B<TB>"
19919 msgstr "B<TB>"
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:637
19923 msgid "The size in SI 10**12 byte units."
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:639
19928 msgid "B<P> or B<PiB>"
19929 msgstr "B<P> або B<PiB>"
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:641
19933 msgid "The size in petabytes (multiplied by 2**50)."
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:643
19938 msgid "B<PB>"
19939 msgstr "B<PB>"
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:645
19943 msgid "The size in SI 10**15 byte units."
19944 msgstr ""
19945
19946 #. type: =item
19947 #: ../fish/guestfish.pod:647
19948 msgid "B<E> or B<EiB>"
19949 msgstr "B<E> або B<EiB>"
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:649
19953 msgid "The size in exabytes (multiplied by 2**60)."
19954 msgstr ""
19955
19956 #. type: =item
19957 #: ../fish/guestfish.pod:651
19958 msgid "B<EB>"
19959 msgstr "B<EB>"
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:653
19963 msgid "The size in SI 10**18 byte units."
19964 msgstr ""
19965
19966 #. type: =item
19967 #: ../fish/guestfish.pod:655
19968 msgid "B<Z> or B<ZiB>"
19969 msgstr "B<Z> або B<ZiB>"
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:657
19973 msgid "The size in zettabytes (multiplied by 2**70)."
19974 msgstr ""
19975
19976 #. type: =item
19977 #: ../fish/guestfish.pod:659
19978 msgid "B<ZB>"
19979 msgstr "B<ZB>"
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:661
19983 msgid "The size in SI 10**21 byte units."
19984 msgstr ""
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:663
19988 msgid "B<Y> or B<YiB>"
19989 msgstr "B<Y> або B<YiB>"
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:665
19993 msgid "The size in yottabytes (multiplied by 2**80)."
19994 msgstr ""
19995
19996 #. type: =item
19997 #: ../fish/guestfish.pod:667
19998 msgid "B<YB>"
19999 msgstr "B<YB>"
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:669
20003 msgid "The size in SI 10**24 byte units."
20004 msgstr ""
20005
20006 #. type: verbatim
20007 #: ../fish/guestfish.pod:675
20008 #, no-wrap
20009 msgid ""
20010 " truncate-size /file 1G\n"
20011 "\n"
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:677
20016 msgid "would truncate the file to 1 gigabyte."
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:679
20021 msgid ""
20022 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20023 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20024 "suffix will probably not do what you expect."
20025 msgstr ""
20026
20027 #. type: =head2
20028 #: ../fish/guestfish.pod:683
20029 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../fish/guestfish.pod:685
20034 msgid ""
20035 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20036 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20037 msgstr ""
20038
20039 #. type: verbatim
20040 #: ../fish/guestfish.pod:688
20041 #, no-wrap
20042 msgid ""
20043 " 1234      decimal number 1234\n"
20044 " 02322     octal number, equivalent to decimal 1234\n"
20045 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:692
20051 msgid ""
20052 "When using the C<chmod> command, you almost always want to specify an octal "
20053 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20054 "L<chmod(1)> program):"
20055 msgstr ""
20056
20057 #. type: verbatim
20058 #: ../fish/guestfish.pod:696
20059 #, no-wrap
20060 msgid ""
20061 " chmod 0777 /public  # OK\n"
20062 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20063 "\n"
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:699
20068 msgid ""
20069 "Commands that return numbers usually print them in decimal, but some "
20070 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20071 "octal, preceeded by C<0>)."
20072 msgstr ""
20073
20074 #. type: =head1
20075 #: ../fish/guestfish.pod:703
20076 msgid "WILDCARDS AND GLOBBING"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fish/guestfish.pod:705
20081 msgid ""
20082 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20083 "(globbing) by default.  So for example the following will not do what you "
20084 "expect:"
20085 msgstr ""
20086
20087 #. type: verbatim
20088 #: ../fish/guestfish.pod:709
20089 #, no-wrap
20090 msgid ""
20091 " rm-rf /home/*\n"
20092 "\n"
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/guestfish.pod:711
20097 msgid ""
20098 "Assuming you don't have a directory called literally C</home/*> then the "
20099 "above command will return an error."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:714
20104 msgid "To perform wildcard expansion, use the C<glob> command."
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:716
20109 #, no-wrap
20110 msgid ""
20111 " glob rm-rf /home/*\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:718
20117 msgid ""
20118 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20119 "many times), equivalent to:"
20120 msgstr ""
20121
20122 #. type: verbatim
20123 #: ../fish/guestfish.pod:721
20124 #, no-wrap
20125 msgid ""
20126 " rm-rf /home/jim\n"
20127 " rm-rf /home/joe\n"
20128 " rm-rf /home/mary\n"
20129 "\n"
20130 msgstr ""
20131
20132 #. type: textblock
20133 #: ../fish/guestfish.pod:725
20134 msgid "C<glob> only works on simple guest paths and not on device names."
20135 msgstr ""
20136
20137 #. type: textblock
20138 #: ../fish/guestfish.pod:727
20139 msgid ""
20140 "If you have several parameters, each containing a wildcard, then glob will "
20141 "perform a Cartesian product."
20142 msgstr ""
20143
20144 #. type: =head1
20145 #: ../fish/guestfish.pod:730
20146 msgid "COMMENTS"
20147 msgstr "КОМЕНТАРІ"
20148
20149 #. type: textblock
20150 #: ../fish/guestfish.pod:732
20151 msgid ""
20152 "Any line which starts with a I<#> character is treated as a comment and "
20153 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20154 "a command.  For example:"
20155 msgstr ""
20156
20157 #. type: verbatim
20158 #: ../fish/guestfish.pod:736
20159 #, no-wrap
20160 msgid ""
20161 " # this is a comment\n"
20162 "         # this is a comment\n"
20163 " foo # NOT a comment\n"
20164 "\n"
20165 msgstr ""
20166
20167 #. type: textblock
20168 #: ../fish/guestfish.pod:740
20169 msgid "Blank lines are also ignored."
20170 msgstr ""
20171
20172 #. type: =head1
20173 #: ../fish/guestfish.pod:742
20174 msgid "RUNNING COMMANDS LOCALLY"
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:744
20179 msgid ""
20180 "Any line which starts with a I<!> character is treated as a command sent to "
20181 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20182 msgstr ""
20183
20184 #. type: verbatim
20185 #: ../fish/guestfish.pod:748
20186 #, no-wrap
20187 msgid ""
20188 " !mkdir local\n"
20189 " tgz-out /remote local/remote-data.tar.gz\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:751
20195 msgid ""
20196 "will create a directory C<local> on the host, and then export the contents "
20197 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20198 "(See C<tgz-out>)."
20199 msgstr ""
20200
20201 #. type: textblock
20202 #: ../fish/guestfish.pod:755
20203 msgid ""
20204 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20205 "effect, due to the way that subprocesses work in Unix."
20206 msgstr ""
20207
20208 #. type: =head2
20209 #: ../fish/guestfish.pod:758
20210 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../fish/guestfish.pod:760
20215 msgid ""
20216 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20217 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20218 "and executed as guestfish commands."
20219 msgstr ""
20220
20221 #. type: textblock
20222 #: ../fish/guestfish.pod:764
20223 msgid ""
20224 "Thus you can use shell script to construct arbitrary guestfish commands "
20225 "which are then parsed by guestfish."
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:767
20230 msgid ""
20231 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20232 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20233 "if we use a shell script to create the guestfish commands for us:"
20234 msgstr ""
20235
20236 #. type: verbatim
20237 #: ../fish/guestfish.pod:772
20238 #, no-wrap
20239 msgid ""
20240 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20241 "\n"
20242 msgstr ""
20243
20244 #. type: textblock
20245 #: ../fish/guestfish.pod:774
20246 msgid "or with names like C</foo.001>:"
20247 msgstr ""
20248
20249 #. type: verbatim
20250 #: ../fish/guestfish.pod:776
20251 #, no-wrap
20252 msgid ""
20253 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20254 "\n"
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:778
20259 msgid ""
20260 "When using guestfish interactively it can be helpful to just run the shell "
20261 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20262 "ordinary I<!> local command), see what guestfish commands it would run, and "
20263 "when you are happy with those prepend the C<E<lt>> character to run the "
20264 "guestfish commands for real."
20265 msgstr ""
20266
20267 #. type: =head1
20268 #: ../fish/guestfish.pod:784
20269 msgid "PIPES"
20270 msgstr "КАНАЛИ"
20271
20272 #. type: textblock
20273 #: ../fish/guestfish.pod:786
20274 msgid ""
20275 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20276 "command (a guestfish command) to the second command (any host command).  For "
20277 "example:"
20278 msgstr ""
20279
20280 #. type: verbatim
20281 #: ../fish/guestfish.pod:790
20282 #, no-wrap
20283 msgid ""
20284 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20285 "\n"
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fish/guestfish.pod:792
20290 msgid ""
20291 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20292 "program).  The above command would list all accounts in the guest filesystem "
20293 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../fish/guestfish.pod:797
20298 #, no-wrap
20299 msgid ""
20300 " hexdump /bin/ls | head\n"
20301 " list-devices | tail -1\n"
20302 " tgz-out / - | tar ztf -\n"
20303 "\n"
20304 msgstr ""
20305
20306 #. type: textblock
20307 #: ../fish/guestfish.pod:801
20308 msgid ""
20309 "The space before the pipe symbol is required, any space after the pipe "
20310 "symbol is optional.  Everything after the pipe symbol is just passed "
20311 "straight to the host shell, so it can contain redirections, globs and "
20312 "anything else that makes sense on the host side."
20313 msgstr ""
20314
20315 #. type: textblock
20316 #: ../fish/guestfish.pod:806
20317 msgid ""
20318 "To use a literal argument which begins with a pipe symbol, you have to quote "
20319 "it, eg:"
20320 msgstr ""
20321
20322 #. type: verbatim
20323 #: ../fish/guestfish.pod:809
20324 #, no-wrap
20325 msgid ""
20326 " echo \"|\"\n"
20327 "\n"
20328 msgstr ""
20329
20330 #. type: =head1
20331 #: ../fish/guestfish.pod:811
20332 msgid "HOME DIRECTORIES"
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:813
20337 msgid ""
20338 "If a parameter starts with the character C<~> then the tilde may be expanded "
20339 "as a home directory path (either C<~> for the current user's home directory, "
20340 "or C<~user> for another user)."
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:817
20345 msgid ""
20346 "Note that home directory expansion happens for users known I<on the host>, "
20347 "not in the guest filesystem."
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../fish/guestfish.pod:820
20352 msgid ""
20353 "To use a literal argument which begins with a tilde, you have to quote it, "
20354 "eg:"
20355 msgstr ""
20356
20357 #. type: verbatim
20358 #: ../fish/guestfish.pod:823
20359 #, no-wrap
20360 msgid ""
20361 " echo \"~\"\n"
20362 "\n"
20363 msgstr ""
20364
20365 #. type: =head2
20366 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20367 msgid "ENCRYPTED DISKS"
20368 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:827
20372 msgid ""
20373 "Libguestfs has some support for Linux guests encrypted according to the "
20374 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20375 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20376 "LUKS is supported."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../fish/guestfish.pod:832
20381 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20382 msgstr ""
20383
20384 #. type: verbatim
20385 #: ../fish/guestfish.pod:834
20386 #, no-wrap
20387 msgid ""
20388 " ><fs> vfs-type /dev/sda2\n"
20389 " crypto_LUKS\n"
20390 "\n"
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../fish/guestfish.pod:837
20395 msgid ""
20396 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20397 "device called C</dev/mapper/luksdev>."
20398 msgstr ""
20399
20400 #. type: verbatim
20401 #: ../fish/guestfish.pod:840
20402 #, no-wrap
20403 msgid ""
20404 " ><fs> luks-open /dev/sda2 luksdev\n"
20405 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20406 "\n"
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../fish/guestfish.pod:843
20411 msgid ""
20412 "Finally you have to tell LVM to scan for volume groups on the newly created "
20413 "mapper device:"
20414 msgstr ""
20415
20416 #. type: verbatim
20417 #: ../fish/guestfish.pod:846
20418 #, no-wrap
20419 msgid ""
20420 " vgscan\n"
20421 " vg-activate-all true\n"
20422 "\n"
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/guestfish.pod:849
20427 msgid "The logical volume(s) can now be mounted in the usual way."
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:851
20432 msgid ""
20433 "Before closing a LUKS device you must unmount any logical volumes on it and "
20434 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20435 "one.  Then you can close the mapper device:"
20436 msgstr ""
20437
20438 #. type: verbatim
20439 #: ../fish/guestfish.pod:855
20440 #, no-wrap
20441 msgid ""
20442 " vg-activate false /dev/VG\n"
20443 " luks-close /dev/mapper/luksdev\n"
20444 "\n"
20445 msgstr ""
20446
20447 #. type: textblock
20448 #: ../fish/guestfish.pod:860
20449 msgid ""
20450 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20451 "letters and paths (with some limitations).  The following commands are "
20452 "equivalent:"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:864
20457 #, no-wrap
20458 msgid ""
20459 " file /WINDOWS/system32/config/system.LOG\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: verbatim
20464 #: ../fish/guestfish.pod:866
20465 #, no-wrap
20466 msgid ""
20467 " file win:\\windows\\system32\\config\\system.log\n"
20468 "\n"
20469 msgstr ""
20470
20471 #. type: verbatim
20472 #: ../fish/guestfish.pod:868
20473 #, no-wrap
20474 msgid ""
20475 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20476 "\n"
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../fish/guestfish.pod:870
20481 msgid ""
20482 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20483 "where the drive is mounted, prepending that to the path, changing all "
20484 "backslash characters to forward slash, then resolving the result using L</"
20485 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20486 "the parameter might be rewritten like this:"
20487 msgstr ""
20488
20489 #. type: verbatim
20490 #: ../fish/guestfish.pod:876
20491 #, no-wrap
20492 msgid ""
20493 " win:e:\\foo\\bar => /e/FOO/bar\n"
20494 "\n"
20495 msgstr ""
20496
20497 #. type: textblock
20498 #: ../fish/guestfish.pod:878
20499 msgid "This only works in argument positions that expect a path."
20500 msgstr ""
20501
20502 #. type: =head1
20503 #: ../fish/guestfish.pod:880
20504 msgid "UPLOADING AND DOWNLOADING FILES"
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../fish/guestfish.pod:882
20509 msgid ""
20510 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20511 "others which upload from or download to a local file, you can use the "
20512 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:886
20517 #, no-wrap
20518 msgid ""
20519 " upload - /foo\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish.pod:888
20525 msgid ""
20526 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20527 msgstr ""
20528
20529 #. type: verbatim
20530 #: ../fish/guestfish.pod:891
20531 #, no-wrap
20532 msgid ""
20533 " tar-out /etc - | tar tf -\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:893
20539 msgid ""
20540 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20541 "command (see L</PIPES>)."
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../fish/guestfish.pod:896
20546 msgid ""
20547 "When using C<-> to read from stdin, the input is read up to the end of "
20548 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20549 "some arbitrary end marker:"
20550 msgstr ""
20551
20552 #. type: verbatim
20553 #: ../fish/guestfish.pod:900
20554 #, no-wrap
20555 msgid ""
20556 " upload -<<END /foo\n"
20557 " input line 1\n"
20558 " input line 2\n"
20559 " input line 3\n"
20560 " END\n"
20561 "\n"
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:906
20566 msgid ""
20567 "Any string of characters can be used instead of C<END>.  The end marker must "
20568 "appear on a line of its own, without any preceeding or following characters "
20569 "(not even spaces)."
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:910
20574 msgid ""
20575 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20576 "upload local files (so-called \"FileIn\" parameters in the generator)."
20577 msgstr ""
20578
20579 #. type: =head1
20580 #: ../fish/guestfish.pod:913
20581 msgid "EXIT ON ERROR BEHAVIOUR"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:915
20586 msgid ""
20587 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20588 "taking commands from a human over a tty), and will exit on the first error "
20589 "in non-interactive mode (scripts, commands given on the command line)."
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:920
20594 msgid ""
20595 "If you prefix a command with a I<-> character, then that command will not "
20596 "cause guestfish to exit, even if that (one) command returns an error."
20597 msgstr ""
20598
20599 #. type: =head1
20600 #: ../fish/guestfish.pod:924
20601 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:926
20606 msgid ""
20607 "Guestfish can be remote-controlled over a socket.  This is useful "
20608 "particularly in shell scripts where you want to make several different "
20609 "changes to a filesystem, but you don't want the overhead of starting up a "
20610 "guestfish process each time."
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../fish/guestfish.pod:931
20615 msgid "Start a guestfish server process using:"
20616 msgstr ""
20617
20618 #. type: verbatim
20619 #: ../fish/guestfish.pod:933
20620 #, no-wrap
20621 msgid ""
20622 " eval \"`guestfish --listen`\"\n"
20623 "\n"
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../fish/guestfish.pod:935
20628 msgid "and then send it commands by doing:"
20629 msgstr ""
20630
20631 #. type: verbatim
20632 #: ../fish/guestfish.pod:937
20633 #, no-wrap
20634 msgid ""
20635 " guestfish --remote cmd [...]\n"
20636 "\n"
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../fish/guestfish.pod:939
20641 msgid "To cause the server to exit, send it the exit command:"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:943
20646 msgid ""
20647 "Note that the server will normally exit if there is an error in a command.  "
20648 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20649 "BEHAVIOUR>."
20650 msgstr ""
20651
20652 #. type: =head2
20653 #: ../fish/guestfish.pod:947
20654 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:949
20659 msgid ""
20660 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20661 "is how the I<--remote> option knows where to send the commands.  You can "
20662 "have several guestfish listener processes running using:"
20663 msgstr ""
20664
20665 #. type: verbatim
20666 #: ../fish/guestfish.pod:953
20667 #, no-wrap
20668 msgid ""
20669 " eval \"`guestfish --listen`\"\n"
20670 " pid1=$GUESTFISH_PID\n"
20671 " eval \"`guestfish --listen`\"\n"
20672 " pid2=$GUESTFISH_PID\n"
20673 " ...\n"
20674 " guestfish --remote=$pid1 cmd\n"
20675 " guestfish --remote=$pid2 cmd\n"
20676 "\n"
20677 msgstr ""
20678
20679 #. type: =head2
20680 #: ../fish/guestfish.pod:961
20681 msgid "REMOTE CONTROL AND CSH"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../fish/guestfish.pod:963
20686 msgid ""
20687 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20688 "option:"
20689 msgstr ""
20690
20691 #. type: verbatim
20692 #: ../fish/guestfish.pod:966
20693 #, no-wrap
20694 msgid ""
20695 " eval \"`guestfish --listen --csh`\"\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: =head2
20700 #: ../fish/guestfish.pod:968
20701 msgid "REMOTE CONTROL DETAILS"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:970
20706 msgid ""
20707 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20708 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20709 "and C<$PID> is the process ID of the server."
20710 msgstr ""
20711
20712 #. type: textblock
20713 #: ../fish/guestfish.pod:974
20714 msgid "Guestfish client and server versions must match exactly."
20715 msgstr ""
20716
20717 #. type: =head2
20718 #: ../fish/guestfish.pod:976
20719 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../fish/guestfish.pod:978
20724 msgid ""
20725 "From Bash, you can use the following code which creates a guestfish "
20726 "instance, correctly quotes the command line, handles failure to start, and "
20727 "cleans up guestfish when the script exits:"
20728 msgstr ""
20729
20730 #. type: verbatim
20731 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20732 #, fuzzy, no-wrap
20733 #| msgid ""
20734 #| " #!/usr/bin/guestfish -f\n"
20735 #| "\n"
20736 msgid ""
20737 " #!/bin/bash -\n"
20738 " \n"
20739 msgstr ""
20740 " #!/usr/bin/guestfish -f\n"
20741 "\n"
20742
20743 #. type: verbatim
20744 #: ../fish/guestfish.pod:986
20745 #, no-wrap
20746 msgid ""
20747 " guestfish[0]=\"guestfish\"\n"
20748 " guestfish[1]=\"--listen\"\n"
20749 " guestfish[2]=\"--ro\"\n"
20750 " guestfish[3]=\"-a\"\n"
20751 " guestfish[4]=\"disk.img\"\n"
20752 " \n"
20753 msgstr ""
20754
20755 #. type: verbatim
20756 #: ../fish/guestfish.pod:992
20757 #, no-wrap
20758 msgid ""
20759 " GUESTFISH_PID=\n"
20760 " eval $(\"${guestfish[@]}\")\n"
20761 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20762 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20763 "     exit 1\n"
20764 " fi\n"
20765 " \n"
20766 msgstr ""
20767
20768 #. type: verbatim
20769 #: ../fish/guestfish.pod:999
20770 #, no-wrap
20771 msgid ""
20772 " kill_guestfish ()\n"
20773 " {\n"
20774 "     kill $GUESTFISH_PID >/dev/null 2>&1 ||:\n"
20775 " }\n"
20776 " trap kill_guestfish EXIT\n"
20777 " \n"
20778 msgstr ""
20779
20780 #. type: verbatim
20781 #: ../fish/guestfish.pod:1005
20782 #, fuzzy, no-wrap
20783 #| msgid ""
20784 #| " guestfish --ro -d myguest -i\n"
20785 #| "\n"
20786 msgid ""
20787 " guestfish --remote run\n"
20788 " # etc.\n"
20789 "\n"
20790 msgstr ""
20791 " guestfish --ro -d myguest -i\n"
20792 "\n"
20793
20794 #. type: =head2
20795 #: ../fish/guestfish.pod:1008
20796 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../fish/guestfish.pod:1010
20801 msgid ""
20802 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20803 "context hangs, ie. don't do (note the backquotes):"
20804 msgstr ""
20805
20806 #. type: verbatim
20807 #: ../fish/guestfish.pod:1013
20808 #, fuzzy, no-wrap
20809 #| msgid ""
20810 #| " guestfish --ro -d myguest -i\n"
20811 #| "\n"
20812 msgid ""
20813 " a=`guestfish --remote run`\n"
20814 "\n"
20815 msgstr ""
20816 " guestfish --ro -d myguest -i\n"
20817 "\n"
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:1015
20821 msgid ""
20822 "Since the C<run> command produces no output on stdout, this is not useful "
20823 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20824 "cgi?id=592910>."
20825 msgstr ""
20826
20827 #. type: =head1
20828 #: ../fish/guestfish.pod:1019
20829 msgid "PREPARED DISK IMAGES"
20830 msgstr ""
20831
20832 #. type: textblock
20833 #: ../fish/guestfish.pod:1021
20834 msgid ""
20835 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20836 "preformatted disk images that guestfish can make for you to save typing.  "
20837 "This is particularly useful for testing purposes.  This option is used "
20838 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20839 "can be mixed with I<-a>)."
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../fish/guestfish.pod:1027
20844 msgid ""
20845 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20846 "the second and so on.  Existing files in the current directory are "
20847 "I<overwritten>."
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:1031
20852 msgid ""
20853 "The type briefly describes how the disk should be sized, partitioned, how "
20854 "filesystem(s) should be created, and how content should be added.  "
20855 "Optionally the type can be followed by extra parameters, separated by C<:> "
20856 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20857 "allocated disk, containing a single partition, with the partition formatted "
20858 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20859 "disk instead."
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../fish/guestfish.pod:1039
20864 msgid "To list the available types and any extra parameters they take, run:"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../fish/guestfish.pod:1043
20869 msgid ""
20870 "Note that the prepared filesystem is not mounted.  You would usually have to "
20871 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../fish/guestfish.pod:1047
20876 msgid ""
20877 "If any I<-N> or I<--new> options are given, the guest is automatically "
20878 "launched."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/guestfish.pod:1052
20883 msgid "Create a 100MB disk with an ext4-formatted partition:"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../fish/guestfish.pod:1054
20888 #, no-wrap
20889 msgid ""
20890 " guestfish -N fs:ext4\n"
20891 "\n"
20892 msgstr ""
20893
20894 #. type: textblock
20895 #: ../fish/guestfish.pod:1056
20896 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20897 msgstr ""
20898
20899 #. type: verbatim
20900 #: ../fish/guestfish.pod:1058
20901 #, no-wrap
20902 msgid ""
20903 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20904 "\n"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:1060
20909 msgid "Create a blank 200MB disk:"
20910 msgstr ""
20911
20912 #. type: verbatim
20913 #: ../fish/guestfish.pod:1062
20914 #, no-wrap
20915 msgid ""
20916 " guestfish -N disk:200M\n"
20917 "\n"
20918 msgstr ""
20919
20920 #. type: =head1
20921 #: ../fish/guestfish.pod:1064
20922 msgid "PROGRESS BARS"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1066
20927 msgid ""
20928 "Some (not all) long-running commands send progress notification messages as "
20929 "they are running.  Guestfish turns these messages into progress bars."
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fish/guestfish.pod:1070
20934 msgid ""
20935 "When a command that supports progress bars takes longer than two seconds to "
20936 "run, and if progress bars are enabled, then you will see one appearing below "
20937 "the command:"
20938 msgstr ""
20939
20940 #. type: verbatim
20941 #: ../fish/guestfish.pod:1074
20942 #, no-wrap
20943 msgid ""
20944 " ><fs> copy-size /large-file /another-file 2048M\n"
20945 " / 10% [#####-----------------------------------------] 00:30\n"
20946 "\n"
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:1077
20951 msgid ""
20952 "The spinner on the left hand side moves round once for every progress "
20953 "notification received from the backend.  This is a (reasonably) golden "
20954 "assurance that the command is \"doing something\" even if the progress bar "
20955 "is not moving, because the command is able to send the progress "
20956 "notifications.  When the bar reaches 100% and the command finishes, the "
20957 "spinner disappears."
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:1084
20962 msgid ""
20963 "Progress bars are enabled by default when guestfish is used interactively.  "
20964 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20965 "and you can disable them completely using I<--no-progress-bars>."
20966 msgstr ""
20967
20968 #. type: =head1
20969 #: ../fish/guestfish.pod:1089
20970 msgid "GUESTFISH COMMANDS"
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../fish/guestfish.pod:1091
20975 msgid ""
20976 "The commands in this section are guestfish convenience commands, in other "
20977 "words, they are not part of the L<guestfs(3)> API."
20978 msgstr ""
20979
20980 #. type: =head2
20981 #: ../fish/guestfish.pod:1094
20982 msgid "help"
20983 msgstr "help"
20984
20985 #. type: verbatim
20986 #: ../fish/guestfish.pod:1096
20987 #, no-wrap
20988 msgid ""
20989 " help\n"
20990 " help cmd\n"
20991 "\n"
20992 msgstr ""
20993 " help\n"
20994 " help команда\n"
20995 "\n"
20996
20997 #. type: textblock
20998 #: ../fish/guestfish.pod:1099
20999 msgid "Without any parameter, this provides general help."
21000 msgstr "Без параметра показує загальну довідкову інформацію."
21001
21002 #. type: textblock
21003 #: ../fish/guestfish.pod:1101
21004 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21005 msgstr ""
21006
21007 #. type: =head2
21008 #: ../fish/guestfish.pod:1103
21009 msgid "quit | exit"
21010 msgstr ""
21011
21012 #. type: textblock
21013 #: ../fish/guestfish.pod:1105
21014 msgid "This exits guestfish.  You can also use C<^D> key."
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fish/guestfish.pod:1107
21019 msgid "@FISH_COMMANDS@"
21020 msgstr ""
21021
21022 #. type: =head1
21023 #: ../fish/guestfish.pod:1109
21024 msgid "COMMANDS"
21025 msgstr "КОМАНДИ"
21026
21027 #. type: textblock
21028 #: ../fish/guestfish.pod:1111 ../src/guestfs.pod:1505
21029 msgid "@ACTIONS@"
21030 msgstr "@ACTIONS@"
21031
21032 #. type: textblock
21033 #: ../fish/guestfish.pod:1115
21034 msgid ""
21035 "guestfish returns 0 if the commands completed without error, or 1 if there "
21036 "was an error."
21037 msgstr ""
21038
21039 #. type: =item
21040 #: ../fish/guestfish.pod:1122
21041 msgid "EDITOR"
21042 msgstr "РЕДАКТОР"
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:1124
21046 msgid ""
21047 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21048 "C<vi>."
21049 msgstr ""
21050
21051 #. type: =item
21052 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3127
21053 msgid "FEBOOTSTRAP_KERNEL"
21054 msgstr ""
21055
21056 #. type: =item
21057 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3129
21058 msgid "FEBOOTSTRAP_MODULES"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3131
21063 msgid ""
21064 "These two environment variables allow the kernel that libguestfs uses in the "
21065 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21066 "most recent host kernel is chosen.  For more information about kernel "
21067 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21068 "available in febootstrap E<ge> 3.8."
21069 msgstr ""
21070
21071 #. type: =item
21072 #: ../fish/guestfish.pod:1137
21073 msgid "GUESTFISH_DISPLAY_IMAGE"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fish/guestfish.pod:1139
21078 msgid ""
21079 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21080 "If not set, it uses L<display(1)>."
21081 msgstr ""
21082
21083 #. type: =item
21084 #: ../fish/guestfish.pod:1142
21085 msgid "GUESTFISH_PID"
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../fish/guestfish.pod:1144
21090 msgid ""
21091 "Used with the I<--remote> option to specify the remote guestfish process to "
21092 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21093 msgstr ""
21094
21095 #. type: =item
21096 #: ../fish/guestfish.pod:1148
21097 msgid "HEXEDITOR"
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../fish/guestfish.pod:1150
21102 msgid ""
21103 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21104 "not specified, the external L<hexedit(1)> program is used."
21105 msgstr ""
21106
21107 #. type: =item
21108 #: ../fish/guestfish.pod:1154
21109 msgid "HOME"
21110 msgstr "ДОМІВКА"
21111
21112 #. type: textblock
21113 #: ../fish/guestfish.pod:1156
21114 msgid ""
21115 "If compiled with GNU readline support, various files in the home directory "
21116 "can be used.  See L</FILES>."
21117 msgstr ""
21118
21119 #. type: =item
21120 #: ../fish/guestfish.pod:1159 ../src/guestfs.pod:3137
21121 msgid "LIBGUESTFS_APPEND"
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../fish/guestfish.pod:1161 ../src/guestfs.pod:3139
21126 msgid "Pass additional options to the guest kernel."
21127 msgstr ""
21128
21129 #. type: =item
21130 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3141
21131 msgid "LIBGUESTFS_DEBUG"
21132 msgstr "LIBGUESTFS_DEBUG"
21133
21134 #. type: textblock
21135 #: ../fish/guestfish.pod:1165
21136 msgid ""
21137 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21138 "effect as using the B<-v> option."
21139 msgstr ""
21140
21141 #. type: =item
21142 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3146
21143 msgid "LIBGUESTFS_MEMSIZE"
21144 msgstr "LIBGUESTFS_MEMSIZE"
21145
21146 #. type: textblock
21147 #: ../fish/guestfish.pod:1170 ../src/guestfs.pod:3148
21148 msgid ""
21149 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21150 msgstr ""
21151
21152 #. type: verbatim
21153 #: ../fish/guestfish.pod:1173 ../src/guestfs.pod:3151
21154 #, no-wrap
21155 msgid ""
21156 " LIBGUESTFS_MEMSIZE=700\n"
21157 "\n"
21158 msgstr ""
21159 " LIBGUESTFS_MEMSIZE=700\n"
21160 "\n"
21161
21162 #. type: =item
21163 #: ../fish/guestfish.pod:1175 ../src/guestfs.pod:3153
21164 msgid "LIBGUESTFS_PATH"
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fish/guestfish.pod:1177
21169 msgid ""
21170 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21171 "the discussion of paths in L<guestfs(3)>."
21172 msgstr ""
21173
21174 #. type: =item
21175 #: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3158
21176 msgid "LIBGUESTFS_QEMU"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../fish/guestfish.pod:1182 ../src/guestfs.pod:3160
21181 msgid ""
21182 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21183 "which was found at compile time by the configure script is used."
21184 msgstr ""
21185
21186 #. type: =item
21187 #: ../fish/guestfish.pod:1186 ../src/guestfs.pod:3166
21188 msgid "LIBGUESTFS_TRACE"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:1188
21193 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21194 msgstr ""
21195
21196 #. type: =item
21197 #: ../fish/guestfish.pod:1190
21198 msgid "PAGER"
21199 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21200
21201 #. type: textblock
21202 #: ../fish/guestfish.pod:1192
21203 msgid ""
21204 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21205 "C<more>."
21206 msgstr ""
21207
21208 #. type: =item
21209 #: ../fish/guestfish.pod:1195 ../sparsify/virt-sparsify.pod:236
21210 #: ../src/guestfs.pod:3171
21211 msgid "TMPDIR"
21212 msgstr ""
21213
21214 #. type: textblock
21215 #: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3173
21216 msgid ""
21217 "Location of temporary directory, defaults to C</tmp> except for the cached "
21218 "supermin appliance which defaults to C</var/tmp>."
21219 msgstr ""
21220
21221 #. type: textblock
21222 #: ../fish/guestfish.pod:1200 ../src/guestfs.pod:3176
21223 msgid ""
21224 "If libguestfs was compiled to use the supermin appliance then the real "
21225 "appliance is cached in this directory, shared between all handles belonging "
21226 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21227 "use in case C</var/tmp> is not large enough."
21228 msgstr ""
21229
21230 #. type: =head1
21231 #: ../fish/guestfish.pod:1208 ../fuse/guestmount.pod:288
21232 #: ../rescue/virt-rescue.pod:273
21233 msgid "FILES"
21234 msgstr "ФАЙЛИ"
21235
21236 #. type: =item
21237 #: ../fish/guestfish.pod:1212 ../fuse/guestmount.pod:292
21238 #: ../rescue/virt-rescue.pod:277
21239 msgid "$HOME/.libguestfs-tools.rc"
21240 msgstr ""
21241
21242 #. type: =item
21243 #: ../fish/guestfish.pod:1214 ../fuse/guestmount.pod:294
21244 #: ../rescue/virt-rescue.pod:279
21245 msgid "/etc/libguestfs-tools.conf"
21246 msgstr ""
21247
21248 #. type: textblock
21249 #: ../fish/guestfish.pod:1216 ../fuse/guestmount.pod:296
21250 #: ../rescue/virt-rescue.pod:281
21251 msgid ""
21252 "This configuration file controls the default read-only or read-write mode "
21253 "(I<--ro> or I<--rw>)."
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fish/guestfish.pod:1219
21258 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21259 msgstr ""
21260
21261 #. type: =item
21262 #: ../fish/guestfish.pod:1221
21263 msgid "$HOME/.guestfish"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../fish/guestfish.pod:1223
21268 msgid ""
21269 "If compiled with GNU readline support, then the command history is saved in "
21270 "this file."
21271 msgstr ""
21272
21273 #. type: =item
21274 #: ../fish/guestfish.pod:1226
21275 msgid "$HOME/.inputrc"
21276 msgstr ""
21277
21278 #. type: =item
21279 #: ../fish/guestfish.pod:1228
21280 msgid "/etc/inputrc"
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../fish/guestfish.pod:1230
21285 msgid ""
21286 "If compiled with GNU readline support, then these files can be used to "
21287 "configure readline.  For further information, please see L<readline(3)/"
21288 "INITIALIZATION FILE>."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fish/guestfish.pod:1234
21293 msgid "To write rules which only apply to guestfish, use:"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../fish/guestfish.pod:1236
21298 #, no-wrap
21299 msgid ""
21300 " $if guestfish\n"
21301 " ...\n"
21302 " $endif\n"
21303 "\n"
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../fish/guestfish.pod:1240
21308 msgid ""
21309 "Variables that you can set in inputrc that change the behaviour of guestfish "
21310 "in useful ways include:"
21311 msgstr ""
21312
21313 #. type: =item
21314 #: ../fish/guestfish.pod:1245
21315 msgid "completion-ignore-case (default: on)"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../fish/guestfish.pod:1247
21320 msgid ""
21321 "By default, guestfish will ignore case when tab-completing paths on the "
21322 "disk.  Use:"
21323 msgstr ""
21324
21325 #. type: verbatim
21326 #: ../fish/guestfish.pod:1250
21327 #, no-wrap
21328 msgid ""
21329 " set completion-ignore-case off\n"
21330 "\n"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../fish/guestfish.pod:1252
21335 msgid "to make guestfish case sensitive."
21336 msgstr ""
21337
21338 #. type: =item
21339 #: ../fish/guestfish.pod:1256
21340 msgid "test1.img"
21341 msgstr ""
21342
21343 #. type: =item
21344 #: ../fish/guestfish.pod:1258
21345 msgid "test2.img (etc)"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:1260
21350 msgid ""
21351 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21352 "will be created in the file C<test1.img> in the current directory.  The "
21353 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21354 "the same name will be overwritten."
21355 msgstr ""
21356
21357 #. type: textblock
21358 #: ../fish/guestfish.pod:1269
21359 msgid ""
21360 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21361 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21362 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21363 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21364 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21365 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21366 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../fish/guestfish.pod:1301 ../src/guestfs.pod:3267
21371 #: ../test-tool/libguestfs-test-tool.pod:112
21372 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../fish/virt-copy-in.pod:5
21377 msgid ""
21378 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21379 msgstr ""
21380
21381 #. type: verbatim
21382 #: ../fish/virt-copy-in.pod:9
21383 #, no-wrap
21384 msgid ""
21385 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21386 "\n"
21387 msgstr ""
21388
21389 #. type: verbatim
21390 #: ../fish/virt-copy-in.pod:11
21391 #, no-wrap
21392 msgid ""
21393 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21394 "\n"
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../fish/virt-copy-in.pod:15
21399 msgid ""
21400 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21401 "causing disk corruption.  The virtual machine must be shut down before you "
21402 "use this command."
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../fish/virt-copy-in.pod:21
21407 msgid ""
21408 "C<virt-copy-in> copies files and directories from the local disk into a "
21409 "virtual machine disk image or named libvirt domain."
21410 msgstr ""
21411
21412 #. type: textblock
21413 #: ../fish/virt-copy-in.pod:24
21414 msgid ""
21415 "You can give one of more filenames and directories on the command line.  "
21416 "Directories are copied in recursively.  The final parameter must be the "
21417 "destination directory in the disk image which must be an absolute path "
21418 "starting with a C</> character."
21419 msgstr ""
21420
21421 #. type: verbatim
21422 #: ../fish/virt-copy-in.pod:33
21423 #, no-wrap
21424 msgid ""
21425 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21426 "\n"
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21431 msgid "Upload a home directory to a guest:"
21432 msgstr ""
21433
21434 #. type: verbatim
21435 #: ../fish/virt-copy-in.pod:37
21436 #, no-wrap
21437 msgid ""
21438 " virt-copy-in -d MyGuest skel /home\n"
21439 "\n"
21440 msgstr ""
21441
21442 #. type: =head1
21443 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21444 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21445 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21446 msgstr ""
21447
21448 #. type: textblock
21449 #: ../fish/virt-copy-in.pod:41
21450 msgid ""
21451 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21452 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21453 "are probably better off using guestfish directly."
21454 msgstr ""
21455
21456 #. type: textblock
21457 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21458 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21459 msgid ""
21460 "Since the shell script just passes options straight to guestfish, read "
21461 "L<guestfish(1)> to see the full list of options."
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../fish/virt-copy-in.pod:52
21466 #, fuzzy
21467 #| msgid ""
21468 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21469 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21470 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21471 #| "libguestfs.org/>."
21472 msgid ""
21473 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21474 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21475 msgstr ""
21476 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21477 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21478 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21479 "org/>."
21480
21481 #. type: textblock
21482 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21483 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21484 #, fuzzy
21485 #| msgid "Copyright (C) 2009 Red Hat Inc."
21486 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21487 msgstr "© Red Hat Inc., 2009"
21488
21489 #. type: textblock
21490 #: ../fish/virt-copy-out.pod:5
21491 msgid ""
21492 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21493 "image."
21494 msgstr ""
21495
21496 #. type: verbatim
21497 #: ../fish/virt-copy-out.pod:9
21498 #, no-wrap
21499 msgid ""
21500 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21501 "\n"
21502 msgstr ""
21503
21504 #. type: verbatim
21505 #: ../fish/virt-copy-out.pod:11
21506 #, no-wrap
21507 msgid ""
21508 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../fish/virt-copy-out.pod:15
21514 msgid ""
21515 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21516 "image or named libvirt domain."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/virt-copy-out.pod:18
21521 msgid ""
21522 "You can give one of more filenames and directories on the command line.  "
21523 "Directories are copied out recursively."
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fish/virt-copy-out.pod:23
21528 msgid "Download the home directories from a virtual machine:"
21529 msgstr ""
21530
21531 #. type: verbatim
21532 #: ../fish/virt-copy-out.pod:25
21533 #, no-wrap
21534 msgid ""
21535 " mkdir homes\n"
21536 " virt-copy-out -d MyGuest /home homes\n"
21537 "\n"
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fish/virt-copy-out.pod:30
21542 msgid ""
21543 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21544 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21545 "are probably better off using guestfish directly."
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../fish/virt-copy-out.pod:41
21550 #, fuzzy
21551 #| msgid ""
21552 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21553 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21554 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21555 #| "libguestfs.org/>."
21556 msgid ""
21557 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21558 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21559 msgstr ""
21560 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21561 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21562 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21563 "org/>."
21564
21565 #. type: textblock
21566 #: ../fish/virt-tar-in.pod:5
21567 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21568 msgstr ""
21569
21570 #. type: verbatim
21571 #: ../fish/virt-tar-in.pod:9
21572 #, no-wrap
21573 msgid ""
21574 " virt-tar-in -a disk.img data.tar /destination\n"
21575 "\n"
21576 msgstr ""
21577
21578 #. type: verbatim
21579 #: ../fish/virt-tar-in.pod:11
21580 #, no-wrap
21581 msgid ""
21582 " virt-tar-in -d domain data.tar /destination\n"
21583 "\n"
21584 msgstr ""
21585
21586 #. type: verbatim
21587 #: ../fish/virt-tar-in.pod:13
21588 #, no-wrap
21589 msgid ""
21590 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21591 "\n"
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../fish/virt-tar-in.pod:17
21596 msgid ""
21597 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21598 "causing disk corruption.  The virtual machine must be shut down before you "
21599 "use this command."
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../fish/virt-tar-in.pod:23
21604 msgid ""
21605 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21606 "image or named libvirt domain."
21607 msgstr ""
21608
21609 #. type: textblock
21610 #: ../fish/virt-tar-in.pod:26
21611 msgid ""
21612 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21613 "standard input.  The second parameter is the absolute target directory to "
21614 "unpack into."
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../fish/virt-tar-in.pod:34
21619 #, no-wrap
21620 msgid ""
21621 " virt-tar-in -d MyGuest homes.tar /home\n"
21622 "\n"
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../fish/virt-tar-in.pod:38
21627 msgid ""
21628 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21629 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21630 "probably better off using guestfish directly."
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../fish/virt-tar-in.pod:49
21635 #, fuzzy
21636 #| msgid ""
21637 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21638 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21639 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21640 #| "libguestfs.org/>."
21641 msgid ""
21642 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21643 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21644 "org/>."
21645 msgstr ""
21646 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21647 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21648 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21649 "org/>."
21650
21651 #. type: textblock
21652 #: ../fish/virt-tar-out.pod:5
21653 msgid ""
21654 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../fish/virt-tar-out.pod:9
21659 #, no-wrap
21660 msgid ""
21661 " virt-tar-out -a disk.img /dir files.tar\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: verbatim
21666 #: ../fish/virt-tar-out.pod:11
21667 #, no-wrap
21668 msgid ""
21669 " virt-tar-out -d domain /dir files.tar\n"
21670 "\n"
21671 msgstr ""
21672
21673 #. type: verbatim
21674 #: ../fish/virt-tar-out.pod:13
21675 #, no-wrap
21676 msgid ""
21677 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21678 "\n"
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../fish/virt-tar-out.pod:17
21683 msgid ""
21684 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../fish/virt-tar-out.pod:20
21689 msgid ""
21690 "The first parameter is the absolute path of the virtual machine directory.  "
21691 "The second parameter is the tar file to write.  Use C<-> to write to "
21692 "standard output."
21693 msgstr ""
21694
21695 #. type: textblock
21696 #: ../fish/virt-tar-out.pod:26
21697 msgid "Download the home directories from a guest:"
21698 msgstr ""
21699
21700 #. type: verbatim
21701 #: ../fish/virt-tar-out.pod:28
21702 #, no-wrap
21703 msgid ""
21704 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21705 "\n"
21706 msgstr ""
21707
21708 #. type: textblock
21709 #: ../fish/virt-tar-out.pod:32
21710 msgid ""
21711 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21712 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21713 "are probably better off using guestfish directly."
21714 msgstr ""
21715
21716 #. type: textblock
21717 #: ../fish/virt-tar-out.pod:43
21718 #, fuzzy
21719 #| msgid ""
21720 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21721 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21722 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21723 #| "libguestfs.org/>."
21724 msgid ""
21725 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21726 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21727 msgstr ""
21728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21729 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21730 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21731 "org/>."
21732
21733 #. type: textblock
21734 #: ../fuse/guestmount.pod:5
21735 msgid ""
21736 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21737 msgstr ""
21738
21739 #. type: verbatim
21740 #: ../fuse/guestmount.pod:9
21741 #, no-wrap
21742 msgid ""
21743 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21744 "\n"
21745 msgstr ""
21746
21747 #. type: verbatim
21748 #: ../fuse/guestmount.pod:11
21749 #, no-wrap
21750 msgid ""
21751 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21752 "\n"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../fuse/guestmount.pod:13
21757 #, no-wrap
21758 msgid ""
21759 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21760 "\n"
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../fuse/guestmount.pod:17
21765 msgid ""
21766 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21767 "machines.  If you do this, you risk disk corruption in the VM."
21768 msgstr ""
21769
21770 #. type: textblock
21771 #: ../fuse/guestmount.pod:22
21772 msgid ""
21773 "The guestmount program can be used to mount virtual machine filesystems and "
21774 "other disk images on the host.  It uses libguestfs for access to the guest "
21775 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21776 "a mountable device."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../fuse/guestmount.pod:27
21781 msgid ""
21782 "Along with other options, you have to give at least one device (I<-a> "
21783 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21784 "option) or use the I<-i> inspection option.  How this works is better "
21785 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21786 "below."
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../fuse/guestmount.pod:33
21791 msgid ""
21792 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21793 "by you, and the filesystem will not be visible to any other users unless you "
21794 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21795 "the filesystem, use the C<fusermount -u> command."
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fuse/guestmount.pod:41
21800 msgid ""
21801 "For a typical Windows guest which has its main filesystem on the first "
21802 "partition:"
21803 msgstr ""
21804
21805 #. type: verbatim
21806 #: ../fuse/guestmount.pod:44
21807 #, no-wrap
21808 msgid ""
21809 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21810 "\n"
21811 msgstr ""
21812
21813 #. type: textblock
21814 #: ../fuse/guestmount.pod:46
21815 msgid ""
21816 "For a typical Linux guest which has a /boot filesystem on the first "
21817 "partition, and the root filesystem on a logical volume:"
21818 msgstr ""
21819
21820 #. type: verbatim
21821 #: ../fuse/guestmount.pod:49
21822 #, no-wrap
21823 msgid ""
21824 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21825 "\n"
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../fuse/guestmount.pod:51
21830 msgid "To get libguestfs to detect guest mountpoints for you:"
21831 msgstr ""
21832
21833 #. type: verbatim
21834 #: ../fuse/guestmount.pod:53
21835 #, no-wrap
21836 msgid ""
21837 " guestmount -a guest.img -i --ro /mnt\n"
21838 "\n"
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../fuse/guestmount.pod:55
21843 msgid "For a libvirt guest called \"Guest\" you could do:"
21844 msgstr ""
21845
21846 #. type: verbatim
21847 #: ../fuse/guestmount.pod:57
21848 #, no-wrap
21849 msgid ""
21850 " guestmount -d Guest -i --ro /mnt\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../fuse/guestmount.pod:59
21856 msgid ""
21857 "If you don't know what filesystems are contained in a guest or disk image, "
21858 "use L<virt-filesystems(1)> first:"
21859 msgstr ""
21860
21861 #. type: verbatim
21862 #: ../fuse/guestmount.pod:62
21863 #, no-wrap
21864 msgid ""
21865 " virt-filesystems MyGuest\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: textblock
21870 #: ../fuse/guestmount.pod:64
21871 msgid ""
21872 "If you want to trace the libguestfs calls but without excessive debugging "
21873 "information, we recommend:"
21874 msgstr ""
21875
21876 #. type: verbatim
21877 #: ../fuse/guestmount.pod:67
21878 #, no-wrap
21879 msgid ""
21880 " guestmount [...] --trace /mnt\n"
21881 "\n"
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../fuse/guestmount.pod:69
21886 msgid "If you want to debug the program, we recommend:"
21887 msgstr ""
21888
21889 #. type: verbatim
21890 #: ../fuse/guestmount.pod:71
21891 #, no-wrap
21892 msgid ""
21893 " guestmount [...] --trace --verbose /mnt\n"
21894 "\n"
21895 msgstr ""
21896
21897 #. type: =head1
21898 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21899 #: ../resize/virt-resize.pod:544
21900 msgid "NOTES"
21901 msgstr "ПРИМІТКИ"
21902
21903 #. type: =head2
21904 #: ../fuse/guestmount.pod:75
21905 msgid "Other users cannot see the filesystem by default"
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fuse/guestmount.pod:77
21910 msgid ""
21911 "If you mount a filesystem as one user (eg. root), then other users will not "
21912 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21913 "option when mounting:"
21914 msgstr ""
21915
21916 #. type: verbatim
21917 #: ../fuse/guestmount.pod:81
21918 #, no-wrap
21919 msgid ""
21920 " sudo guestmount [...] -o allow_other /mnt\n"
21921 "\n"
21922 msgstr ""
21923
21924 #. type: textblock
21925 #: ../fuse/guestmount.pod:91
21926 msgid "Add a block device or virtual machine image."
21927 msgstr ""
21928
21929 #. type: =item
21930 #: ../fuse/guestmount.pod:114
21931 msgid "B<--dir-cache-timeout N>"
21932 msgstr "B<--dir-cache-timeout N>"
21933
21934 #. type: textblock
21935 #: ../fuse/guestmount.pod:116
21936 msgid ""
21937 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21938 "seconds.  The readdir cache [actually, there are several semi-independent "
21939 "caches] is populated after a readdir(2) call with the stat and extended "
21940 "attributes of the files in the directory, in anticipation that they will be "
21941 "requested soon after."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:122
21946 msgid ""
21947 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21948 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21949 "requests, only cache existing ones."
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../fuse/guestmount.pod:142
21954 msgid ""
21955 "If you have untrusted raw-format guest disk images, you should use this "
21956 "option to specify the disk format.  This avoids a possible security problem "
21957 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21958 "guestfs_add_drive_opts>."
21959 msgstr ""
21960
21961 #. type: =item
21962 #: ../fuse/guestmount.pod:147
21963 msgid "B<--fuse-help>"
21964 msgstr "B<--fuse-help>"
21965
21966 #. type: textblock
21967 #: ../fuse/guestmount.pod:149
21968 msgid "Display help on special FUSE options (see I<-o> below)."
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../fuse/guestmount.pod:153
21973 msgid "Display brief help and exit."
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../fuse/guestmount.pod:177
21978 msgid ""
21979 "Mount the named partition or logical volume on the given mountpoint B<in the "
21980 "guest> (this has nothing to do with mountpoints in the host)."
21981 msgstr ""
21982
21983 #. type: textblock
21984 #: ../fuse/guestmount.pod:180
21985 msgid ""
21986 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21987 "something on C</>."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fuse/guestmount.pod:197
21992 msgid ""
21993 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21994 "unmounted.  If you specify this option, then we don't attempt to sync the "
21995 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21996 msgstr ""
21997
21998 #. type: =item
21999 #: ../fuse/guestmount.pod:202
22000 #, fuzzy
22001 #| msgid "B<--partition>"
22002 msgid "B<-o option>"
22003 msgstr "B<--partition>"
22004
22005 #. type: =item
22006 #: ../fuse/guestmount.pod:204
22007 #, fuzzy
22008 #| msgid "B<--partition>"
22009 msgid "B<--option option>"
22010 msgstr "B<--partition>"
22011
22012 #. type: textblock
22013 #: ../fuse/guestmount.pod:206
22014 msgid "Pass extra options to FUSE."
22015 msgstr ""
22016
22017 #. type: textblock
22018 #: ../fuse/guestmount.pod:208
22019 msgid ""
22020 "To get a list of all the extra options supported by FUSE, use the command "
22021 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22022 "of them are a good idea."
22023 msgstr ""
22024
22025 #. type: verbatim
22026 #: ../fuse/guestmount.pod:212
22027 #, no-wrap
22028 msgid ""
22029 " guestmount --fuse-help\n"
22030 "\n"
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../fuse/guestmount.pod:214
22035 msgid "Some potentially useful FUSE options:"
22036 msgstr ""
22037
22038 #. type: =item
22039 #: ../fuse/guestmount.pod:218
22040 msgid "B<-o allow_other>"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../fuse/guestmount.pod:220
22045 msgid "Allow other users to see the filesystem."
22046 msgstr ""
22047
22048 #. type: =item
22049 #: ../fuse/guestmount.pod:222
22050 msgid "B<-o attr_timeout=N>"
22051 msgstr "B<-o attr_timeout=N>"
22052
22053 #. type: textblock
22054 #: ../fuse/guestmount.pod:224
22055 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22056 msgstr ""
22057
22058 #. type: =item
22059 #: ../fuse/guestmount.pod:226
22060 msgid "B<-o kernel_cache>"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../fuse/guestmount.pod:228
22065 msgid ""
22066 "Allow the kernel to cache files (reduces the number of reads that have to go "
22067 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22068 "afford the extra memory usage."
22069 msgstr ""
22070
22071 #. type: =item
22072 #: ../fuse/guestmount.pod:232
22073 msgid "B<-o uid=N> B<-o gid=N>"
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../fuse/guestmount.pod:234
22078 msgid ""
22079 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22080 "the chosen values."
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../fuse/guestmount.pod:243
22085 msgid ""
22086 "Add devices and mount everything read-only.  Also disallow writes and make "
22087 "the disk appear read-only to FUSE."
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../fuse/guestmount.pod:246
22092 msgid ""
22093 "This is highly recommended if you are not going to edit the guest disk.  If "
22094 "the guest is running and this option is I<not> supplied, then there is a "
22095 "strong risk of disk corruption in the guest.  We try to prevent this from "
22096 "happening, but it is not always possible."
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
22101 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22102 msgstr ""
22103
22104 #. type: textblock
22105 #: ../fuse/guestmount.pod:255
22106 msgid "Enable SELinux support for the guest."
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../fuse/guestmount.pod:261
22111 msgid "Enable verbose messages from underlying libguestfs."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../fuse/guestmount.pod:267
22116 msgid "Display the program version and exit."
22117 msgstr ""
22118
22119 #. type: textblock
22120 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
22121 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22122 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22123 msgstr ""
22124
22125 #. type: =item
22126 #: ../fuse/guestmount.pod:280
22127 #, fuzzy
22128 #| msgid "B<--ro>"
22129 msgid "B<--trace>"
22130 msgstr "B<--ro>"
22131
22132 #. type: textblock
22133 #: ../fuse/guestmount.pod:282
22134 msgid "Trace libguestfs calls and entry into each FUSE function."
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../fuse/guestmount.pod:284
22139 msgid "This also stops the daemon from forking into the background."
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../fuse/guestmount.pod:310
22144 msgid ""
22145 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22146 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22147 "net/>."
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../fuse/guestmount.pod:325
22152 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../inspector/virt-inspector.pod:5
22157 msgid ""
22158 "virt-inspector - Display operating system version and other information "
22159 "about a virtual machine"
22160 msgstr ""
22161
22162 #. type: verbatim
22163 #: ../inspector/virt-inspector.pod:9
22164 #, fuzzy, no-wrap
22165 #| msgid ""
22166 #| " virt-list-partitions [--options] domname\n"
22167 #| "\n"
22168 msgid ""
22169 " virt-inspector [--options] -d domname\n"
22170 "\n"
22171 msgstr ""
22172 " virt-list-partitions [--параметри] назва_домену\n"
22173 "\n"
22174
22175 #. type: verbatim
22176 #: ../inspector/virt-inspector.pod:11
22177 #, fuzzy, no-wrap
22178 #| msgid ""
22179 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22180 #| "\n"
22181 msgid ""
22182 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22183 "\n"
22184 msgstr ""
22185 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22186 "\n"
22187
22188 #. type: verbatim
22189 #: ../inspector/virt-inspector.pod:15
22190 #, fuzzy, no-wrap
22191 #| msgid ""
22192 #| " virt-list-partitions [--options] domname\n"
22193 #| "\n"
22194 msgid ""
22195 " virt-inspector domname\n"
22196 "\n"
22197 msgstr ""
22198 " virt-list-partitions [--параметри] назва_домену\n"
22199 "\n"
22200
22201 #. type: verbatim
22202 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22203 #, fuzzy, no-wrap
22204 #| msgid ""
22205 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22206 #| "\n"
22207 msgid ""
22208 " virt-inspector disk.img [disk.img ...]\n"
22209 "\n"
22210 msgstr ""
22211 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22212 "\n"
22213
22214 #. type: textblock
22215 #: ../inspector/virt-inspector.pod:21
22216 msgid ""
22217 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22218 "determine the version of the operating system and other information about "
22219 "the virtual machine."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../inspector/virt-inspector.pod:25
22224 msgid "Virt-inspector produces XML output for feeding into other programs."
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../inspector/virt-inspector.pod:27
22229 msgid ""
22230 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22231 "the libvirt domain (see: C<virsh list --all>)."
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../inspector/virt-inspector.pod:30
22236 msgid ""
22237 "You can also run virt-inspector directly on disk images from a single "
22238 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22239 "has several block devices, in which case you should list several I<-a> "
22240 "options one after another, with the first corresponding to the guest's C</"
22241 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22242 msgstr ""
22243
22244 #. type: textblock
22245 #: ../inspector/virt-inspector.pod:37
22246 msgid ""
22247 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22248 "keys and similar."
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../inspector/virt-inspector.pod:40
22253 msgid ""
22254 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22255 "inspect several virtual machines, you have to run virt-inspector several "
22256 "times (for example, from a shell script for-loop)."
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../inspector/virt-inspector.pod:45
22261 msgid ""
22262 "Because virt-inspector needs direct access to guest images, it won't "
22263 "normally work over remote libvirt connections."
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../inspector/virt-inspector.pod:48
22268 msgid ""
22269 "All of the information available from virt-inspector is also available "
22270 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22271 "The same information can also be fetched using guestfish or via libguestfs "
22272 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22273 "WITH OTHER PROGRAMMING LANGUAGES>)."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../inspector/virt-inspector.pod:81
22278 msgid ""
22279 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22280 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22281 "at all."
22282 msgstr ""
22283
22284 #. type: textblock
22285 #: ../inspector/virt-inspector.pod:94
22286 msgid ""
22287 "When prompting for keys and passphrases, virt-inspector normally turns "
22288 "echoing off so you cannot see what you are typing.  If you are not worried "
22289 "about Tempest attacks and there is no one else in the room you can specify "
22290 "this flag to see what you are typing."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22295 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22296 #: ../tools/virt-win-reg.pl:144
22297 msgid ""
22298 "Specify the format of disk images given on the command line.  If this is "
22299 "omitted then the format is autodetected from the content of the disk image."
22300 msgstr ""
22301
22302 #. type: textblock
22303 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22304 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22305 #: ../tools/virt-win-reg.pl:148
22306 msgid ""
22307 "If disk images are requested from libvirt, then this program asks libvirt "
22308 "for this information.  In this case, the value of the format parameter is "
22309 "ignored."
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22314 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22315 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22316 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22317 msgid ""
22318 "If working with untrusted raw-format guest disk images, you should ensure "
22319 "the format is always specified."
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../inspector/virt-inspector.pod:139
22324 msgid "Previous versions of virt-inspector allowed you to write either:"
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../inspector/virt-inspector.pod:145
22329 #, fuzzy, no-wrap
22330 #| msgid ""
22331 #| " inspect-get-hostname root\n"
22332 #| "\n"
22333 msgid ""
22334 " virt-inspector guestname\n"
22335 "\n"
22336 msgstr ""
22337 " inspect-get-hostname корінь\n"
22338 "\n"
22339
22340 #. type: =head1
22341 #: ../inspector/virt-inspector.pod:153
22342 msgid "XML FORMAT"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../inspector/virt-inspector.pod:155
22347 msgid ""
22348 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22349 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22350 "just an overview."
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../inspector/virt-inspector.pod:159
22355 msgid ""
22356 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22357 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22358 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22359 "which is vanishingly rare in real world VMs."
22360 msgstr ""
22361
22362 #. type: =head2
22363 #: ../inspector/virt-inspector.pod:164
22364 msgid "E<lt>operatingsystemE<gt>"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:166
22369 msgid ""
22370 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22371 "describe the operating system, its architecture, the descriptive \"product "
22372 "name\" string, the type of OS and so on, as in this example:"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../inspector/virt-inspector.pod:170
22377 #, no-wrap
22378 msgid ""
22379 " <operatingsystems>\n"
22380 "   <operatingsystem>\n"
22381 "     <root>/dev/sda2</root>\n"
22382 "     <name>windows</name>\n"
22383 "     <arch>i386</arch>\n"
22384 "     <distro>windows</distro>\n"
22385 "     <product_name>Windows 7 Enterprise</product_name>\n"
22386 "     <product_variant>Client</product_variant>\n"
22387 "     <major_version>6</major_version>\n"
22388 "     <minor_version>1</minor_version>\n"
22389 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22390 "     <format>installed</format>\n"
22391 "\n"
22392 msgstr ""
22393
22394 #. type: textblock
22395 #: ../inspector/virt-inspector.pod:183
22396 msgid ""
22397 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22398 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22399 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22400 "architecture.  The other fields are fairly self-explanatory, but because "
22401 "these fields are taken directly from the libguestfs inspection API you can "
22402 "find precise information from L<guestfs(3)/INSPECTION>."
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../inspector/virt-inspector.pod:191
22407 msgid ""
22408 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22409 "of view of libguestfs (block devices may have completely different names "
22410 "inside the VM itself)."
22411 msgstr ""
22412
22413 #. type: =head2
22414 #: ../inspector/virt-inspector.pod:195
22415 #, fuzzy
22416 #| msgid "mountpoints"
22417 msgid "E<lt>mountpointsE<gt>"
22418 msgstr "mountpoints"
22419
22420 #. type: textblock
22421 #: ../inspector/virt-inspector.pod:197
22422 msgid ""
22423 "Un*x-like guests typically have multiple filesystems which are mounted at "
22424 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22425 "element which looks like this:"
22426 msgstr ""
22427
22428 #. type: verbatim
22429 #: ../inspector/virt-inspector.pod:201
22430 #, no-wrap
22431 msgid ""
22432 " <operatingsystems>\n"
22433 "   <operatingsystem>\n"
22434 "     ...\n"
22435 "     <mountpoints>\n"
22436 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22437 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22438 "     </mountpoints>\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../inspector/virt-inspector.pod:209
22444 msgid ""
22445 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22446 "and may have completely different names inside the guest.  Only mountable "
22447 "filesystems appear in this list, not things like swap devices."
22448 msgstr ""
22449
22450 #. type: =head2
22451 #: ../inspector/virt-inspector.pod:214
22452 #, fuzzy
22453 #| msgid "list-filesystems"
22454 msgid "E<lt>filesystemsE<gt>"
22455 msgstr "list-filesystems"
22456
22457 #. type: textblock
22458 #: ../inspector/virt-inspector.pod:216
22459 msgid ""
22460 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22461 "filesystems belonging to the guest, including swap and empty partitions.  "
22462 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22463 "this OS or shared with this OS and other OSes)."
22464 msgstr ""
22465
22466 #. type: textblock
22467 #: ../inspector/virt-inspector.pod:222
22468 msgid "You might see something like this:"
22469 msgstr ""
22470
22471 #. type: verbatim
22472 #: ../inspector/virt-inspector.pod:224
22473 #, no-wrap
22474 msgid ""
22475 " <operatingsystems>\n"
22476 "   <operatingsystem>\n"
22477 "     ...\n"
22478 "     <filesystems>\n"
22479 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22480 "         <type>ext4</type>\n"
22481 "         <label>Fedora-13-x86_64</label>\n"
22482 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22483 "       </filesystem>\n"
22484 "\n"
22485 msgstr ""
22486
22487 #. type: textblock
22488 #: ../inspector/virt-inspector.pod:234
22489 msgid ""
22490 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22491 "the label, and the UUID."
22492 msgstr ""
22493
22494 #. type: =head2
22495 #: ../inspector/virt-inspector.pod:237
22496 msgid "E<lt>applicationsE<gt>"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../inspector/virt-inspector.pod:239
22501 msgid ""
22502 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22503 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22504 "machine."
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../inspector/virt-inspector.pod:243
22509 msgid ""
22510 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22511 "Typical values would be C<rpm> and C<deb>."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../inspector/virt-inspector.pod:246
22516 msgid ""
22517 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22518 "Typical values include C<yum>, C<up2date> and C<apt>"
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../inspector/virt-inspector.pod:249
22523 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22524 msgstr ""
22525
22526 #. type: verbatim
22527 #: ../inspector/virt-inspector.pod:252
22528 #, no-wrap
22529 msgid ""
22530 " <operatingsystems>\n"
22531 "   <operatingsystem>\n"
22532 "     ...\n"
22533 "     <applications>\n"
22534 "       <application>\n"
22535 "         <name>coreutils</name>\n"
22536 "         <version>8.5</version>\n"
22537 "         <release>1</release>\n"
22538 "       </application>\n"
22539 "\n"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../inspector/virt-inspector.pod:262
22544 msgid ""
22545 "The version and release fields may not be available for some types guests.  "
22546 "Other fields are possible, see L<guestfs(3)/"
22547 "guestfs_inspect_list_applications>."
22548 msgstr ""
22549
22550 #. type: =head2
22551 #: ../inspector/virt-inspector.pod:266
22552 msgid "E<lt>drive_mappingsE<gt>"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../inspector/virt-inspector.pod:268
22557 msgid ""
22558 "For operating systems like Windows which use drive letters, virt-inspector "
22559 "is able to find out how drive letters map to filesystems."
22560 msgstr ""
22561
22562 #. type: verbatim
22563 #: ../inspector/virt-inspector.pod:272
22564 #, no-wrap
22565 msgid ""
22566 " <operatingsystems>\n"
22567 "   <operatingsystem>\n"
22568 "     ...\n"
22569 "     <drive_mappings>\n"
22570 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22571 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22572 "     </drive_mappings>\n"
22573 "\n"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../inspector/virt-inspector.pod:280
22578 msgid ""
22579 "In the example above, drive C maps to the filesystem on the second partition "
22580 "on the first disk, and drive E maps to the filesystem on the first partition "
22581 "on the second disk."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../inspector/virt-inspector.pod:284
22586 msgid ""
22587 "Note that this only covers permanent local filesystem mappings, not things "
22588 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22589 "here."
22590 msgstr ""
22591
22592 #. type: =head2
22593 #: ../inspector/virt-inspector.pod:288
22594 #, fuzzy
22595 #| msgid "B<-s E<lt>NE<gt>>"
22596 msgid "E<lt>iconE<gt>"
22597 msgstr "B<-s E<lt>NE<gt>>"
22598
22599 #. type: textblock
22600 #: ../inspector/virt-inspector.pod:290
22601 msgid ""
22602 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22603 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22604 "very large and high quality."
22605 msgstr ""
22606
22607 #. type: verbatim
22608 #: ../inspector/virt-inspector.pod:294
22609 #, no-wrap
22610 msgid ""
22611 " <operatingsystems>\n"
22612 "   <operatingsystem>\n"
22613 "     ...\n"
22614 "     <icon>\n"
22615 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22616 "       [... many lines of base64 data ...]\n"
22617 "     </icon>\n"
22618 "\n"
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../inspector/virt-inspector.pod:302
22623 msgid ""
22624 "To display the icon, you have to extract it and convert the base64 data back "
22625 "to a binary file.  Use an XPath query or simply an editor to extract the "
22626 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22627 "to a PNG file:"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../inspector/virt-inspector.pod:307
22632 #, no-wrap
22633 msgid ""
22634 " base64 -i -d < icon.data > icon.png\n"
22635 "\n"
22636 msgstr ""
22637
22638 #. type: =head2
22639 #: ../inspector/virt-inspector.pod:309
22640 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22641 msgstr ""
22642
22643 #. type: textblock
22644 #: ../inspector/virt-inspector.pod:311
22645 msgid ""
22646 "Virt-inspector can detect some operating system installers on install disks, "
22647 "live CDs, bootable USB keys and more."
22648 msgstr ""
22649
22650 #. type: textblock
22651 #: ../inspector/virt-inspector.pod:314
22652 msgid ""
22653 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22654 "fields may be present to indicate a live CD, network installer, or one part "
22655 "of a multipart CD.  For example:"
22656 msgstr ""
22657
22658 #. type: verbatim
22659 #: ../inspector/virt-inspector.pod:318
22660 #, no-wrap
22661 msgid ""
22662 " <operatingsystems>\n"
22663 "   <operatingsystem>\n"
22664 "     <root>/dev/sda</root>\n"
22665 "     <name>linux</name>\n"
22666 "     <arch>i386</arch>\n"
22667 "     <distro>ubuntu</distro>\n"
22668 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22669 "     <major_version>10</major_version>\n"
22670 "     <minor_version>10</minor_version>\n"
22671 "     <format>installer</format>\n"
22672 "     <live/>\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: =head1
22677 #: ../inspector/virt-inspector.pod:330
22678 msgid "USING XPATH"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../inspector/virt-inspector.pod:332
22683 msgid ""
22684 "You can use the XPath query language to select parts of the XML.  We "
22685 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22686 msgstr ""
22687
22688 #. type: verbatim
22689 #: ../inspector/virt-inspector.pod:338
22690 #, no-wrap
22691 msgid ""
22692 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22693 " <filesystems>\n"
22694 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22695 "        <type>ext4</type>\n"
22696 " [...]\n"
22697 "\n"
22698 msgstr ""
22699
22700 #. type: verbatim
22701 #: ../inspector/virt-inspector.pod:344
22702 #, no-wrap
22703 msgid ""
22704 " $ virt-inspector -d Guest | \\\n"
22705 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22706 " ext4\n"
22707 "\n"
22708 msgstr ""
22709
22710 #. type: verbatim
22711 #: ../inspector/virt-inspector.pod:348
22712 #, no-wrap
22713 msgid ""
22714 " $ virt-inspector -d Guest | \\\n"
22715 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22716 " [displays the guest icon, if there is one]\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: =head1
22721 #: ../inspector/virt-inspector.pod:359
22722 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../inspector/virt-inspector.pod:361
22727 msgid ""
22728 "Early versions of libguestfs shipped with a different virt-inspector program "
22729 "written in Perl (the current version is written in C).  The XML output of "
22730 "the Perl virt-inspector was different and it could also output in other "
22731 "formats like text."
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../inspector/virt-inspector.pod:366
22736 msgid ""
22737 "The old virt-inspector is no longer supported or shipped with libguestfs."
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../inspector/virt-inspector.pod:369
22742 msgid ""
22743 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22744 "versions of virt-inspector with different names:"
22745 msgstr ""
22746
22747 #. type: verbatim
22748 #: ../inspector/virt-inspector.pod:372
22749 #, no-wrap
22750 msgid ""
22751 " virt-inspector     Old Perl version.\n"
22752 " virt-inspector2    New C version.\n"
22753 "\n"
22754 msgstr ""
22755
22756 #. type: textblock
22757 #: ../inspector/virt-inspector.pod:382
22758 #, fuzzy
22759 #| msgid ""
22760 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22761 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22762 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22763 msgid ""
22764 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22765 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22766 msgstr ""
22767 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22768 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22769 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22770
22771 #. type: textblock
22772 #: ../inspector/virt-inspector.pod:399
22773 msgid "Matthew Booth L<mbooth@redhat.com>"
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../java/examples/guestfs-java.pod:5
22778 msgid "guestfs-java - How to use libguestfs from Java"
22779 msgstr ""
22780
22781 #. type: verbatim
22782 #: ../java/examples/guestfs-java.pod:9
22783 #, no-wrap
22784 msgid ""
22785 " import com.redhat.et.libguestfs.*;\n"
22786 " \n"
22787 msgstr ""
22788
22789 #. type: verbatim
22790 #: ../java/examples/guestfs-java.pod:11
22791 #, no-wrap
22792 msgid ""
22793 " GuestFS g = new GuestFS ();\n"
22794 " g.add_drive_opts (\"disk.img\", null);\n"
22795 " g.launch ();\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../java/examples/guestfs-java.pod:17
22801 msgid ""
22802 "This manual page documents how to call libguestfs from the Java programming "
22803 "language.  This page just documents the differences from the C API and gives "
22804 "some examples.  If you are not familiar with using libguestfs, you also need "
22805 "to read L<guestfs(3)>."
22806 msgstr ""
22807
22808 #. type: =head2
22809 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22810 msgid "CLOSING THE HANDLE"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../java/examples/guestfs-java.pod:24
22815 msgid ""
22816 "The handle is closed when it is reaped by the garbage collector.  Because "
22817 "libguestfs handles include a lot of state, it is also possible to close (and "
22818 "hence free) them explicitly by calling the C<close> method."
22819 msgstr ""
22820
22821 #. type: =head2
22822 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22823 #: ../python/examples/guestfs-python.pod:21
22824 #: ../ruby/examples/guestfs-ruby.pod:22
22825 #, fuzzy
22826 #| msgid "OPTIONS"
22827 msgid "EXCEPTIONS"
22828 msgstr "ПАРАМЕТРИ"
22829
22830 #. type: textblock
22831 #: ../java/examples/guestfs-java.pod:31
22832 msgid ""
22833 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22834 "exception.  This has a single parameter which is the error message (a "
22835 "C<String>)."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../java/examples/guestfs-java.pod:35
22840 msgid "Calling any method on a closed handle raises the same exception."
22841 msgstr ""
22842
22843 #. type: textblock
22844 #: ../java/examples/guestfs-java.pod:47
22845 #, fuzzy
22846 #| msgid ""
22847 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22848 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22849 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22850 msgid ""
22851 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22852 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22853 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22854 msgstr ""
22855 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22856 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22857 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22858
22859 #. type: textblock
22860 #: ../ocaml/examples/guestfs-ocaml.pod:5
22861 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../ocaml/examples/guestfs-ocaml.pod:9
22866 msgid "Module style:"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../ocaml/examples/guestfs-ocaml.pod:11
22871 #, no-wrap
22872 msgid ""
22873 " let g = Guestfs.create () in\n"
22874 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22875 " Guestfs.launch g;\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../ocaml/examples/guestfs-ocaml.pod:15
22881 msgid "Object-oriented style:"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../ocaml/examples/guestfs-ocaml.pod:17
22886 #, no-wrap
22887 msgid ""
22888 " let g = new Guestfs.guestfs () in\n"
22889 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22890 " g#launch ();\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: verbatim
22895 #: ../ocaml/examples/guestfs-ocaml.pod:21
22896 #, no-wrap
22897 msgid ""
22898 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22899 "or:\n"
22900 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22901 "\n"
22902 msgstr ""
22903
22904 #. type: textblock
22905 #: ../ocaml/examples/guestfs-ocaml.pod:27
22906 msgid ""
22907 "This manual page documents how to call libguestfs from the OCaml programming "
22908 "language.  This page just documents the differences from the C API and gives "
22909 "some examples.  If you are not familiar with using libguestfs, you also need "
22910 "to read L<guestfs(3)>."
22911 msgstr ""
22912
22913 #. type: =head2
22914 #: ../ocaml/examples/guestfs-ocaml.pod:32
22915 msgid "PROGRAMMING STYLES"
22916 msgstr ""
22917
22918 #. type: textblock
22919 #: ../ocaml/examples/guestfs-ocaml.pod:34
22920 msgid ""
22921 "There are two different programming styles supported by the OCaml bindings.  "
22922 "You can use a module style, with each C function mapped to an OCaml function:"
22923 msgstr ""
22924
22925 #. type: verbatim
22926 #: ../ocaml/examples/guestfs-ocaml.pod:38
22927 #, fuzzy, no-wrap
22928 #| msgid ""
22929 #| " int guestfs_last_errno (guestfs_h *g);\n"
22930 #| "\n"
22931 msgid ""
22932 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22933 "\n"
22934 msgstr ""
22935 " int guestfs_last_errno (guestfs_h *g);\n"
22936 "\n"
22937
22938 #. type: textblock
22939 #: ../ocaml/examples/guestfs-ocaml.pod:40
22940 msgid "becomes:"
22941 msgstr ""
22942
22943 #. type: verbatim
22944 #: ../ocaml/examples/guestfs-ocaml.pod:42
22945 #, no-wrap
22946 msgid ""
22947 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22948 "\n"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../ocaml/examples/guestfs-ocaml.pod:44
22953 msgid ""
22954 "Alternately you can use an object-oriented style, calling methods on the "
22955 "class C<Guestfs.guestfs>:"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../ocaml/examples/guestfs-ocaml.pod:47
22960 #, no-wrap
22961 msgid ""
22962 " method set_verbose : bool -> unit\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../ocaml/examples/guestfs-ocaml.pod:49
22968 msgid ""
22969 "The object-oriented style is usually briefer, and the minor performance "
22970 "penalty isn't noticable in the general overhead of performing libguestfs "
22971 "functions."
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../ocaml/examples/guestfs-ocaml.pod:55
22976 msgid ""
22977 "The handle is closed when it is reaped by the garbage collector.  Because "
22978 "libguestfs handles include a lot of state, it is also possible to close (and "
22979 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22980 "method."
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../ocaml/examples/guestfs-ocaml.pod:62
22985 msgid ""
22986 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22987 "exception.  This has a single parameter which is the error message (a "
22988 "string)."
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../ocaml/examples/guestfs-ocaml.pod:66
22993 msgid ""
22994 "Calling any function/method on a closed handle raises C<Guestfs."
22995 "Handle_closed>.  The single parameter is the name of the function that you "
22996 "called."
22997 msgstr ""
22998
22999 #. type: textblock
23000 #: ../ocaml/examples/guestfs-ocaml.pod:80
23001 #, fuzzy
23002 #| msgid ""
23003 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23004 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23005 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23006 msgid ""
23007 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23008 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23009 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23010 msgstr ""
23011 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23012 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23013 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23014
23015 #. type: textblock
23016 #: ../perl/examples/guestfs-perl.pod:5
23017 msgid "guestfs-perl - How to use libguestfs from Perl"
23018 msgstr ""
23019
23020 #. type: verbatim
23021 #: ../perl/examples/guestfs-perl.pod:9
23022 #, no-wrap
23023 msgid ""
23024 " use Sys::Guestfs;\n"
23025 " \n"
23026 msgstr ""
23027
23028 #. type: verbatim
23029 #: ../perl/examples/guestfs-perl.pod:11
23030 #, no-wrap
23031 msgid ""
23032 " my $h = Sys::Guestfs->new ();\n"
23033 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23034 " $h->launch ();\n"
23035 " $h->mount_options ('', '/dev/sda1', '/');\n"
23036 " $h->touch ('/hello');\n"
23037 " $h->sync ();\n"
23038 "\n"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../perl/examples/guestfs-perl.pod:20
23043 msgid ""
23044 "This manual page documents how to call libguestfs from the Perl programming "
23045 "language.  This page just documents the differences from the C API and gives "
23046 "some examples.  If you are not familiar with using libguestfs, you also need "
23047 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23048 msgstr ""
23049
23050 #. type: =head2
23051 #: ../perl/examples/guestfs-perl.pod:26
23052 msgid "ERRORS"
23053 msgstr ""
23054
23055 #. type: textblock
23056 #: ../perl/examples/guestfs-perl.pod:28
23057 msgid ""
23058 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23059 ">)."
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../perl/examples/guestfs-perl.pod:41
23064 #, fuzzy
23065 #| msgid ""
23066 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23067 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23068 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23069 msgid ""
23070 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23071 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23072 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23073 msgstr ""
23074 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23075 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23076 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23077
23078 #. type: textblock
23079 #: ../python/examples/guestfs-python.pod:5
23080 msgid "guestfs-python - How to use libguestfs from Python"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../python/examples/guestfs-python.pod:9
23085 #, no-wrap
23086 msgid ""
23087 " import guestfs\n"
23088 " g = guestfs.GuestFS ()\n"
23089 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23090 " g.launch\n"
23091 "\n"
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../python/examples/guestfs-python.pod:16
23096 msgid ""
23097 "This manual page documents how to call libguestfs from the Python "
23098 "programming language.  This page just documents the differences from the C "
23099 "API and gives some examples.  If you are not familiar with using libguestfs, "
23100 "you also need to read L<guestfs(3)>."
23101 msgstr ""
23102
23103 #. type: textblock
23104 #: ../python/examples/guestfs-python.pod:23
23105 msgid ""
23106 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23107 "single string argument which is the error message."
23108 msgstr ""
23109
23110 #. type: =head2
23111 #: ../python/examples/guestfs-python.pod:26
23112 msgid "MORE DOCUMENTATION"
23113 msgstr ""
23114
23115 #. type: textblock
23116 #: ../python/examples/guestfs-python.pod:28
23117 msgid "Type:"
23118 msgstr ""
23119
23120 #. type: verbatim
23121 #: ../python/examples/guestfs-python.pod:30
23122 #, no-wrap
23123 msgid ""
23124 " $ python\n"
23125 " >>> import guestfs\n"
23126 " >>> help (guestfs)\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../python/examples/guestfs-python.pod:44
23132 #, fuzzy
23133 #| msgid ""
23134 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23135 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23136 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23137 msgid ""
23138 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23139 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23140 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23141 msgstr ""
23142 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23143 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23144 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23145
23146 #. type: textblock
23147 #: ../rescue/virt-rescue.pod:5
23148 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23149 msgstr ""
23150
23151 #. type: verbatim
23152 #: ../rescue/virt-rescue.pod:9
23153 #, fuzzy, no-wrap
23154 #| msgid ""
23155 #| " virt-list-partitions [--options] domname\n"
23156 #| "\n"
23157 msgid ""
23158 " virt-rescue [--options] -d domname\n"
23159 "\n"
23160 msgstr ""
23161 " virt-list-partitions [--параметри] назва_домену\n"
23162 "\n"
23163
23164 #. type: verbatim
23165 #: ../rescue/virt-rescue.pod:11
23166 #, fuzzy, no-wrap
23167 #| msgid ""
23168 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23169 #| "\n"
23170 msgid ""
23171 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23172 "\n"
23173 msgstr ""
23174 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23175 "\n"
23176
23177 #. type: verbatim
23178 #: ../rescue/virt-rescue.pod:15
23179 #, fuzzy, no-wrap
23180 #| msgid ""
23181 #| " virt-list-partitions [--options] domname\n"
23182 #| "\n"
23183 msgid ""
23184 " virt-rescue [--options] domname\n"
23185 "\n"
23186 msgstr ""
23187 " virt-list-partitions [--параметри] назва_домену\n"
23188 "\n"
23189
23190 #. type: verbatim
23191 #: ../rescue/virt-rescue.pod:17
23192 #, fuzzy, no-wrap
23193 #| msgid ""
23194 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23195 #| "\n"
23196 msgid ""
23197 " virt-rescue [--options] disk.img [disk.img ...]\n"
23198 "\n"
23199 msgstr ""
23200 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23201 "\n"
23202
23203 #. type: textblock
23204 #: ../rescue/virt-rescue.pod:21
23205 msgid ""
23206 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23207 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23208 "you from doing this, but doesn't catch all cases."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../rescue/virt-rescue.pod:25
23213 msgid ""
23214 "However if you use the I<--ro> (read only) option, then you can attach a "
23215 "shell to a live virtual machine.  The results might be strange or "
23216 "inconsistent at times but you won't get disk corruption."
23217 msgstr ""
23218
23219 #. type: textblock
23220 #: ../rescue/virt-rescue.pod:31
23221 msgid ""
23222 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23223 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23224 "recovery tools which you can use to examine or rescue a virtual machine or "
23225 "disk image."
23226 msgstr ""
23227
23228 #. type: textblock
23229 #: ../rescue/virt-rescue.pod:36
23230 msgid ""
23231 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23232 "on disk image(s):"
23233 msgstr ""
23234
23235 #. type: verbatim
23236 #: ../rescue/virt-rescue.pod:39
23237 #, no-wrap
23238 msgid ""
23239 " virt-rescue -d GuestName\n"
23240 "\n"
23241 msgstr ""
23242
23243 #. type: verbatim
23244 #: ../rescue/virt-rescue.pod:41
23245 #, no-wrap
23246 msgid ""
23247 " virt-rescue --ro -a /path/to/disk.img\n"
23248 "\n"
23249 msgstr ""
23250
23251 #. type: verbatim
23252 #: ../rescue/virt-rescue.pod:43
23253 #, no-wrap
23254 msgid ""
23255 " virt-rescue -a /dev/sdc\n"
23256 "\n"
23257 msgstr ""
23258
23259 #. type: textblock
23260 #: ../rescue/virt-rescue.pod:45
23261 msgid "For live VMs you I<must> use the --ro option."
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../rescue/virt-rescue.pod:47
23266 msgid ""
23267 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23268 "in an interactive bash shell where you can use many ordinary Linux "
23269 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23270 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23271 "is an empty directory called C</sysroot> where you can mount filesystems."
23272 msgstr ""
23273
23274 #. type: textblock
23275 #: ../rescue/virt-rescue.pod:54
23276 msgid ""
23277 "In the example below, we list logical volumes, then choose one to mount "
23278 "under C</sysroot>:"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../rescue/virt-rescue.pod:57
23283 #, no-wrap
23284 msgid ""
23285 " ><rescue> lvs\n"
23286 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23287 " lv_root vg_f11x64 -wi-a-   8.83G\n"
23288 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23289 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23290 " ><rescue> ls /sysroot\n"
23291 "\n"
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../rescue/virt-rescue.pod:64
23296 msgid ""
23297 "If you don't know what filesystems are available on the virtual machine then "
23298 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../rescue/virt-rescue.pod:70
23303 msgid ""
23304 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23305 "virtual machine.  For example you can use it on a blank file if you want to "
23306 "partition that file (although we would recommend using L<guestfish(1)> "
23307 "instead as it is more suitable for this purpose).  You can even use virt-"
23308 "rescue on things like SD cards."
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../rescue/virt-rescue.pod:76
23313 msgid ""
23314 "Virt-rescue does not require root.  You only need to run it as root if you "
23315 "need root to open the disk image."
23316 msgstr ""
23317
23318 #. type: textblock
23319 #: ../rescue/virt-rescue.pod:79
23320 msgid ""
23321 "This tool is just designed for quick interactive hacking on a virtual "
23322 "machine.  For more structured access to a virtual machine disk image, you "
23323 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23324 "make scripted changes to guests, use L<guestfish(1)>."
23325 msgstr ""
23326
23327 #. type: =item
23328 #: ../rescue/virt-rescue.pod:103
23329 msgid "B<--append kernelopts>"
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../rescue/virt-rescue.pod:105
23334 msgid "Pass additional options to the rescue kernel."
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../rescue/virt-rescue.pod:135
23339 #, fuzzy, no-wrap
23340 #| msgid ""
23341 #| " guestfish --format=raw -a disk.img\n"
23342 #| "\n"
23343 msgid ""
23344 " virt-rescue --format=raw -a disk.img\n"
23345 "\n"
23346 msgstr ""
23347 " guestfish --format=raw -a disk.img\n"
23348 "\n"
23349
23350 #. type: verbatim
23351 #: ../rescue/virt-rescue.pod:139
23352 #, fuzzy, no-wrap
23353 #| msgid ""
23354 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
23355 #| "\n"
23356 msgid ""
23357 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23358 "\n"
23359 msgstr ""
23360 " guestfish --format=raw -a disk.img --format -a another.img\n"
23361 "\n"
23362
23363 #. type: =item
23364 #: ../rescue/virt-rescue.pod:148
23365 msgid "B<-m MB>"
23366 msgstr ""
23367
23368 #. type: =item
23369 #: ../rescue/virt-rescue.pod:150
23370 #, fuzzy
23371 #| msgid "B<--merge>"
23372 msgid "B<--memsize MB>"
23373 msgstr "B<--merge>"
23374
23375 #. type: textblock
23376 #: ../rescue/virt-rescue.pod:152
23377 msgid ""
23378 "Change the amount of memory allocated to the rescue system.  The default is "
23379 "set by libguestfs and is small but adequate for running system tools.  The "
23380 "occasional program might need more memory.  The parameter is specified in "
23381 "megabytes."
23382 msgstr ""
23383
23384 #. type: =item
23385 #: ../rescue/virt-rescue.pod:157
23386 #, fuzzy
23387 #| msgid "B<--inspector>"
23388 msgid "B<--network>"
23389 msgstr "B<--inspector>"
23390
23391 #. type: textblock
23392 #: ../rescue/virt-rescue.pod:159
23393 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../rescue/virt-rescue.pod:165
23398 msgid "Open the image read-only."
23399 msgstr ""
23400
23401 #. type: textblock
23402 #: ../rescue/virt-rescue.pod:175
23403 msgid ""
23404 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23405 "SELINUX> before using this option."
23406 msgstr ""
23407
23408 #. type: =item
23409 #: ../rescue/virt-rescue.pod:178
23410 #, fuzzy
23411 #| msgid "B<--csh>"
23412 msgid "B<--smp> N"
23413 msgstr "B<--csh>"
23414
23415 #. type: textblock
23416 #: ../rescue/virt-rescue.pod:180
23417 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../rescue/virt-rescue.pod:198
23422 msgid ""
23423 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23424 "are done read-write."
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../rescue/virt-rescue.pod:211
23429 msgid "Previous versions of virt-rescue allowed you to write either:"
23430 msgstr ""
23431
23432 #. type: verbatim
23433 #: ../rescue/virt-rescue.pod:213
23434 #, fuzzy, no-wrap
23435 #| msgid ""
23436 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23437 #| "\n"
23438 msgid ""
23439 " virt-rescue disk.img [disk.img ...]\n"
23440 "\n"
23441 msgstr ""
23442 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23443 "\n"
23444
23445 #. type: verbatim
23446 #: ../rescue/virt-rescue.pod:217
23447 #, fuzzy, no-wrap
23448 #| msgid ""
23449 #| " file-architecture filename\n"
23450 #| "\n"
23451 msgid ""
23452 " virt-rescue guestname\n"
23453 "\n"
23454 msgstr ""
23455 " file-architecture назва_файла\n"
23456 "\n"
23457
23458 #. type: =head1
23459 #: ../rescue/virt-rescue.pod:225
23460 msgid "NETWORK"
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../rescue/virt-rescue.pod:227
23465 msgid ""
23466 "Adding the I<--network> option enables QEMU user networking in the rescue "
23467 "appliance.  There are some differences between user networking and ordinary "
23468 "networking:"
23469 msgstr ""
23470
23471 #. type: =item
23472 #: ../rescue/virt-rescue.pod:233
23473 msgid "ping does not work"
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../rescue/virt-rescue.pod:235
23478 msgid ""
23479 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23480 "send the ping packets, and because virt-rescue must be able to run as non-"
23481 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23482 "The ping command will appear to resolve addresses but will not be able to "
23483 "send or receive any packets.  This does not mean that the network is not "
23484 "working."
23485 msgstr ""
23486
23487 #. type: =item
23488 #: ../rescue/virt-rescue.pod:242
23489 msgid "cannot receive connections"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../rescue/virt-rescue.pod:244
23494 msgid "QEMU user networking cannot receive incoming connections."
23495 msgstr ""
23496
23497 #. type: =item
23498 #: ../rescue/virt-rescue.pod:246
23499 msgid "making TCP connections"
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../rescue/virt-rescue.pod:248
23504 msgid ""
23505 "The virt-rescue appliance needs to be small and so does not include many "
23506 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23507 "make TCP connections from the shell using the magical C</dev/tcp/"
23508 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23509 msgstr ""
23510
23511 #. type: verbatim
23512 #: ../rescue/virt-rescue.pod:253
23513 #, no-wrap
23514 msgid ""
23515 " exec 3<>/dev/tcp/redhat.com/80\n"
23516 " echo \"GET /\" >&3\n"
23517 " cat <&3\n"
23518 "\n"
23519 msgstr ""
23520
23521 #. type: textblock
23522 #: ../rescue/virt-rescue.pod:257
23523 msgid "See L<bash(1)> for more details."
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../rescue/virt-rescue.pod:263
23528 msgid ""
23529 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23530 "ENVIRONMENT VARIABLES> for the complete list."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../rescue/virt-rescue.pod:290
23535 #, fuzzy
23536 #| msgid ""
23537 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23538 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23539 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23540 msgid ""
23541 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23542 "libguestfs.org/>."
23543 msgstr ""
23544 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23545 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23546 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23547
23548 #. type: textblock
23549 #: ../resize/virt-resize.pod:5
23550 msgid "virt-resize - Resize a virtual machine disk"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../resize/virt-resize.pod:9
23555 #, no-wrap
23556 msgid ""
23557 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23558 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23559 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23560 "\n"
23561 msgstr ""
23562
23563 #. type: textblock
23564 #: ../resize/virt-resize.pod:15
23565 msgid ""
23566 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23567 "larger or smaller overall, and resizing or deleting any partitions contained "
23568 "within."
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../resize/virt-resize.pod:19
23573 msgid ""
23574 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23575 "not> be used on live virtual machines - for consistent results, shut the "
23576 "virtual machine down before resizing it."
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../resize/virt-resize.pod:23
23581 msgid ""
23582 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23583 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23584 msgstr ""
23585
23586 #. type: =item
23587 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23588 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23589 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
23590 msgid "1."
23591 msgstr "1."
23592
23593 #. type: textblock
23594 #: ../resize/virt-resize.pod:33
23595 msgid ""
23596 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23597 "fill the extra 5GB of space."
23598 msgstr ""
23599
23600 #. type: verbatim
23601 #: ../resize/virt-resize.pod:36
23602 #, no-wrap
23603 msgid ""
23604 " virt-filesystems --long -h --all -a olddisk\n"
23605 " \n"
23606 msgstr ""
23607
23608 #. type: verbatim
23609 #: ../resize/virt-resize.pod:38
23610 #, no-wrap
23611 msgid ""
23612 " truncate -r olddisk newdisk\n"
23613 " truncate -s +5G newdisk\n"
23614 " \n"
23615 msgstr ""
23616
23617 #. type: verbatim
23618 #: ../resize/virt-resize.pod:41
23619 #, no-wrap
23620 msgid ""
23621 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23622 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23623 "\n"
23624 msgstr ""
23625
23626 #. type: =item
23627 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23628 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23629 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
23630 msgid "2."
23631 msgstr "2."
23632
23633 #. type: textblock
23634 #: ../resize/virt-resize.pod:46
23635 msgid ""
23636 "As above, but make the /boot partition 200MB bigger, while giving the "
23637 "remaining space to /dev/sda2:"
23638 msgstr ""
23639
23640 #. type: verbatim
23641 #: ../resize/virt-resize.pod:49
23642 #, no-wrap
23643 msgid ""
23644 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23645 "   olddisk newdisk\n"
23646 "\n"
23647 msgstr ""
23648
23649 #. type: =item
23650 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23651 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23652 #: ../src/guestfs.pod:1436
23653 msgid "3."
23654 msgstr "3."
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:54
23658 msgid ""
23659 "As in the first example, but expand a logical volume as the final step.  "
23660 "This is what you would typically use for Linux guests that use LVM:"
23661 msgstr ""
23662
23663 #. type: verbatim
23664 #: ../resize/virt-resize.pod:58
23665 #, no-wrap
23666 msgid ""
23667 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23668 "   olddisk newdisk\n"
23669 "\n"
23670 msgstr ""
23671
23672 #. type: =item
23673 #: ../resize/virt-resize.pod:61
23674 msgid "4."
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../resize/virt-resize.pod:63
23679 msgid ""
23680 "As in the first example, but the output format will be qcow2 instead of a "
23681 "raw disk:"
23682 msgstr ""
23683
23684 #. type: verbatim
23685 #: ../resize/virt-resize.pod:66
23686 #, no-wrap
23687 msgid ""
23688 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23689 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23690 "\n"
23691 msgstr ""
23692
23693 #. type: =head1
23694 #: ../resize/virt-resize.pod:71
23695 msgid "DETAILED USAGE"
23696 msgstr ""
23697
23698 #. type: =head2
23699 #: ../resize/virt-resize.pod:73
23700 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23701 msgstr ""
23702
23703 #. type: =item
23704 #: ../resize/virt-resize.pod:77
23705 msgid "1. Shut down the virtual machine"
23706 msgstr ""
23707
23708 #. type: =item
23709 #: ../resize/virt-resize.pod:79
23710 msgid "2. Locate input disk image"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../resize/virt-resize.pod:81
23715 msgid ""
23716 "Locate the input disk image (ie. the file or device on the host containing "
23717 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23718 "dumpxml> like this to find the disk image name:"
23719 msgstr ""
23720
23721 #. type: verbatim
23722 #: ../resize/virt-resize.pod:85
23723 #, no-wrap
23724 msgid ""
23725 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23726 " Found 1 nodes:\n"
23727 " -- NODE --\n"
23728 " <source dev=\"/dev/vg/lv_guest\" />\n"
23729 "\n"
23730 msgstr ""
23731
23732 #. type: =item
23733 #: ../resize/virt-resize.pod:90
23734 msgid "3. Look at current sizing"
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../resize/virt-resize.pod:92
23739 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23740 msgstr ""
23741
23742 #. type: verbatim
23743 #: ../resize/virt-resize.pod:95
23744 #, no-wrap
23745 msgid ""
23746 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23747 " Name       Type       Size  Parent\n"
23748 " /dev/sda1  partition  101M  /dev/sda\n"
23749 " /dev/sda2  partition  7.9G  /dev/sda\n"
23750 " /dev/sda   device     8.0G  -\n"
23751 "\n"
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../resize/virt-resize.pod:101
23756 msgid ""
23757 "(This example is a virtual machine with an 8 GB disk which we would like to "
23758 "expand up to 10 GB)."
23759 msgstr ""
23760
23761 #. type: =item
23762 #: ../resize/virt-resize.pod:104
23763 msgid "4. Create output disk"
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../resize/virt-resize.pod:106
23768 msgid ""
23769 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23770 "to store the resized output disk."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:109
23775 msgid ""
23776 "To store the resized disk image in a file, create a file of a suitable size:"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../resize/virt-resize.pod:112
23781 #, no-wrap
23782 msgid ""
23783 " # rm -f outdisk\n"
23784 " # truncate -s 10G outdisk\n"
23785 "\n"
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../resize/virt-resize.pod:115
23790 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23791 msgstr ""
23792
23793 #. type: verbatim
23794 #: ../resize/virt-resize.pod:117
23795 #, no-wrap
23796 msgid ""
23797 " # lvcreate -L 10G -n lv_name vg_name\n"
23798 "\n"
23799 msgstr ""
23800
23801 #. type: textblock
23802 #: ../resize/virt-resize.pod:119
23803 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23804 msgstr ""
23805
23806 #. type: verbatim
23807 #: ../resize/virt-resize.pod:121
23808 #, no-wrap
23809 msgid ""
23810 " # virsh pool-list\n"
23811 " # virsh vol-create-as poolname newvol 10G\n"
23812 "\n"
23813 msgstr ""
23814
23815 #. type: =item
23816 #: ../resize/virt-resize.pod:124
23817 msgid "5. Resize"
23818 msgstr ""
23819
23820 #. type: textblock
23821 #: ../resize/virt-resize.pod:126
23822 msgid ""
23823 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23824 "file) and the output disk.  The output disk is the one created in the "
23825 "previous step."
23826 msgstr ""
23827
23828 #. type: verbatim
23829 #: ../resize/virt-resize.pod:130
23830 #, no-wrap
23831 msgid ""
23832 " # virt-resize indisk outdisk\n"
23833 "\n"
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../resize/virt-resize.pod:132
23838 msgid ""
23839 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23840 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23841 "larger, then an extra, empty partition is created at the end of the disk "
23842 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23843 "error."
23844 msgstr ""
23845
23846 #. type: textblock
23847 #: ../resize/virt-resize.pod:138
23848 msgid ""
23849 "More realistically you'd want to expand existing partitions in the disk "
23850 "image by passing extra options (for the full list see the L</OPTIONS> "
23851 "section below)."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:142
23856 msgid ""
23857 "L</--expand> is the most useful option.  It expands the named partition "
23858 "within the disk to fill any extra space:"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../resize/virt-resize.pod:145
23863 #, no-wrap
23864 msgid ""
23865 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23866 "\n"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../resize/virt-resize.pod:147
23871 msgid ""
23872 "(In this case, an extra partition is I<not> created at the end of the disk, "
23873 "because there will be no unused space)."
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:150
23878 msgid ""
23879 "L</--resize> is the other commonly used option.  The following would "
23880 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23881 "rest of the available space:"
23882 msgstr ""
23883
23884 #. type: verbatim
23885 #: ../resize/virt-resize.pod:154
23886 #, no-wrap
23887 msgid ""
23888 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23889 "     indisk outdisk\n"
23890 "\n"
23891 msgstr ""
23892
23893 #. type: textblock
23894 #: ../resize/virt-resize.pod:157
23895 msgid ""
23896 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23897 "if virt-resize knows how, it will resize the contents, the equivalent of "
23898 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23899 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23900 "filesystems, so you would have to online resize them after booting the guest."
23901 msgstr ""
23902
23903 #. type: textblock
23904 #: ../resize/virt-resize.pod:164
23905 msgid "Other options are covered below."
23906 msgstr ""
23907
23908 #. type: =item
23909 #: ../resize/virt-resize.pod:166
23910 msgid "6. Test"
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../resize/virt-resize.pod:168
23915 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../resize/virt-resize.pod:170
23920 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23921 msgstr ""
23922
23923 #. type: verbatim
23924 #: ../resize/virt-resize.pod:172
23925 #, fuzzy, no-wrap
23926 #| msgid ""
23927 #| " edit filename\n"
23928 #| "\n"
23929 msgid ""
23930 " # virsh edit guestname\n"
23931 "\n"
23932 msgstr ""
23933 " edit назва_файла\n"
23934 "\n"
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:174
23938 msgid ""
23939 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23940 "html#elementsDisks>"
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../resize/virt-resize.pod:177
23945 msgid "Then start up the domain with the new, resized disk:"
23946 msgstr ""
23947
23948 #. type: verbatim
23949 #: ../resize/virt-resize.pod:179
23950 #, fuzzy, no-wrap
23951 #| msgid ""
23952 #| " ln-s target linkname\n"
23953 #| "\n"
23954 msgid ""
23955 " # virsh start guestname\n"
23956 "\n"
23957 msgstr ""
23958 " ln-s призначення назва_посилання\n"
23959 "\n"
23960
23961 #. type: textblock
23962 #: ../resize/virt-resize.pod:181
23963 msgid ""
23964 "and check that it still works.  See also the L</NOTES> section below for "
23965 "additional information."
23966 msgstr ""
23967
23968 #. type: =item
23969 #: ../resize/virt-resize.pod:184
23970 msgid "7. Resize LVs etc inside the guest"
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../resize/virt-resize.pod:186
23975 msgid "(This can also be done offline using L<guestfish(1)>)"
23976 msgstr ""
23977
23978 #. type: textblock
23979 #: ../resize/virt-resize.pod:188
23980 msgid ""
23981 "Once the guest has booted you should see the new space available, at least "
23982 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23983 "may need to resize LVs inside PVs, and also resize filesystem types that "
23984 "virt-resize does not know how to expand."
23985 msgstr ""
23986
23987 #. type: =head2
23988 #: ../resize/virt-resize.pod:195
23989 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23990 msgstr ""
23991
23992 #. type: textblock
23993 #: ../resize/virt-resize.pod:197
23994 msgid ""
23995 "Shrinking is somewhat more complex than expanding, and only an overview is "
23996 "given here."
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../resize/virt-resize.pod:200
24001 msgid ""
24002 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24003 "filesystems).  The user has to shrink content before passing the disk image "
24004 "to virt-resize, and virt-resize will check that the content has been shrunk "
24005 "properly."
24006 msgstr ""
24007
24008 #. type: textblock
24009 #: ../resize/virt-resize.pod:205
24010 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:207
24015 msgid ""
24016 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24017 "steps 3 and 4 above to allocate a new disk image."
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../resize/virt-resize.pod:210
24022 msgid ""
24023 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24024 msgstr ""
24025
24026 #. type: =head2
24027 #: ../resize/virt-resize.pod:213
24028 msgid "IGNORING OR DELETING PARTITIONS"
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../resize/virt-resize.pod:215
24033 msgid ""
24034 "virt-resize also gives a convenient way to ignore or delete partitions when "
24035 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24036 "up the copy where you don't care about the existing contents of a "
24037 "partition.  Deleting a partition removes it completely, but note that it "
24038 "also renumbers any partitions after the one which is deleted, which can "
24039 "leave some guests unbootable."
24040 msgstr ""
24041
24042 #. type: =head2
24043 #: ../resize/virt-resize.pod:222
24044 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../resize/virt-resize.pod:224
24049 msgid ""
24050 "If the input disk is in qcow2 format, then you may prefer that the output is "
24051 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24052 "the fly.  The output format is simply determined by the format of the empty "
24053 "output container that you provide.  Thus to create qcow2 output, use:"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../resize/virt-resize.pod:230
24058 #, no-wrap
24059 msgid ""
24060 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24061 "\n"
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../resize/virt-resize.pod:232
24066 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24067 msgstr ""
24068
24069 #. type: textblock
24070 #: ../resize/virt-resize.pod:234
24071 msgid "Similarly, to get non-sparse raw output use:"
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../resize/virt-resize.pod:236
24076 #, fuzzy, no-wrap
24077 #| msgid ""
24078 #| " fallocate path len\n"
24079 #| "\n"
24080 msgid ""
24081 " fallocate -l size outdisk\n"
24082 "\n"
24083 msgstr ""
24084 " fallocate шлях довжина\n"
24085 "\n"
24086
24087 #. type: textblock
24088 #: ../resize/virt-resize.pod:238
24089 msgid ""
24090 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24091 "dev/zero of=outdisk bs=1M count=..>)"
24092 msgstr ""
24093
24094 #. type: textblock
24095 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
24096 msgid "Display help."
24097 msgstr ""
24098
24099 #. type: =item
24100 #: ../resize/virt-resize.pod:249
24101 msgid "B<-d>"
24102 msgstr ""
24103
24104 #. type: =item
24105 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
24106 #: ../tools/virt-win-reg.pl:120
24107 msgid "B<--debug>"
24108 msgstr "B<--debug>"
24109
24110 #. type: textblock
24111 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
24112 msgid "Enable debugging messages."
24113 msgstr ""
24114
24115 #. type: =item
24116 #: ../resize/virt-resize.pod:255
24117 #, fuzzy
24118 #| msgid "B<--no-dest-paths>"
24119 msgid "B<--delete part>"
24120 msgstr "B<--no-dest-paths>"
24121
24122 #. type: textblock
24123 #: ../resize/virt-resize.pod:257
24124 msgid ""
24125 "Delete the named partition.  It would be more accurate to describe this as "
24126 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24127 "the original disk image is left intact."
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../resize/virt-resize.pod:261
24132 msgid ""
24133 "Note that when you delete a partition, then anything contained in the "
24134 "partition is also deleted.  Furthermore, this causes any partitions that "
24135 "come after to be I<renumbered>, which can easily make your guest unbootable."
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
24140 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
24141 msgid "You can give this option multiple times."
24142 msgstr ""
24143
24144 #. type: =item
24145 #: ../resize/virt-resize.pod:268
24146 #, fuzzy
24147 #| msgid "B<--partition>"
24148 msgid "B<--expand part>"
24149 msgstr "B<--partition>"
24150
24151 #. type: textblock
24152 #: ../resize/virt-resize.pod:270
24153 msgid ""
24154 "Expand the named partition so it uses up all extra space (space left over "
24155 "after any other resize changes that you request have been done)."
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../resize/virt-resize.pod:273
24160 msgid ""
24161 "If virt-resize knows how, it will expand the direct content of the "
24162 "partition.  For example, if the partition is an LVM PV, it will expand the "
24163 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24164 "content it doesn't know about alone."
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../resize/virt-resize.pod:278
24169 msgid "Currently virt-resize can resize:"
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../resize/virt-resize.pod:284
24174 msgid "ext2, ext3 and ext4 filesystems."
24175 msgstr ""
24176
24177 #. type: textblock
24178 #: ../resize/virt-resize.pod:288
24179 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../resize/virt-resize.pod:290
24184 msgid ""
24185 "The filesystem must have been shut down consistently last time it was used.  "
24186 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24187 "consistency check, so at the first boot after resizing Windows will check "
24188 "the disk."
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../resize/virt-resize.pod:297
24193 msgid ""
24194 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24195 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24196 "resize LVs as desired after boot."
24197 msgstr ""
24198
24199 #. type: textblock
24200 #: ../resize/virt-resize.pod:303
24201 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24202 msgstr ""
24203
24204 #. type: textblock
24205 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
24206 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24207 msgstr ""
24208
24209 #. type: =item
24210 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
24211 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24212 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24213 msgid "B<--format> raw"
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
24218 msgid ""
24219 "Specify the format of the input disk image.  If this flag is not given then "
24220 "it is auto-detected from the image itself."
24221 msgstr ""
24222
24223 #. type: textblock
24224 #: ../resize/virt-resize.pod:317
24225 msgid ""
24226 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24227 "AND NON-SPARSE RAW FORMATS>."
24228 msgstr ""
24229
24230 #. type: =item
24231 #: ../resize/virt-resize.pod:320
24232 #, fuzzy
24233 #| msgid "B<--format>"
24234 msgid "B<--ignore part>"
24235 msgstr "B<--format>"
24236
24237 #. type: textblock
24238 #: ../resize/virt-resize.pod:322
24239 msgid ""
24240 "Ignore the named partition.  Effectively this means the partition is "
24241 "allocated on the destination disk, but the content is not copied across from "
24242 "the source disk.  The content of the partition will be blank (all zero "
24243 "bytes)."
24244 msgstr ""
24245
24246 #. type: =item
24247 #: ../resize/virt-resize.pod:329
24248 msgid "B<--LV-expand logvol>"
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../resize/virt-resize.pod:331
24253 msgid ""
24254 "This takes the logical volume and, as a final step, expands it to fill all "
24255 "the space available in its volume group.  A typical usage, assuming a Linux "
24256 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24257 "lv_root> would be:"
24258 msgstr ""
24259
24260 #. type: verbatim
24261 #: ../resize/virt-resize.pod:336
24262 #, no-wrap
24263 msgid ""
24264 " virt-resize indisk outdisk \\\n"
24265 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24266 "\n"
24267 msgstr ""
24268
24269 #. type: textblock
24270 #: ../resize/virt-resize.pod:339
24271 msgid ""
24272 "This would first expand the partition (and PV), and then expand the root "
24273 "device to fill the extra space in the PV."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../resize/virt-resize.pod:342
24278 msgid ""
24279 "The contents of the LV are also resized if virt-resize knows how to do "
24280 "that.  You can stop virt-resize from trying to expand the content by using "
24281 "the option I<--no-expand-content>."
24282 msgstr ""
24283
24284 #. type: textblock
24285 #: ../resize/virt-resize.pod:346
24286 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../resize/virt-resize.pod:348
24291 msgid ""
24292 "You can give this option multiple times, I<but> it doesn't make sense to do "
24293 "this unless the logical volumes you specify are all in different volume "
24294 "groups."
24295 msgstr ""
24296
24297 #. type: =item
24298 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
24299 #, fuzzy
24300 #| msgid "B<-h> | B<--human-readable>"
24301 msgid "B<--machine-readable>"
24302 msgstr "B<-h> | B<--human-readable>"
24303
24304 #. type: textblock
24305 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
24306 msgid ""
24307 "This option is used to make the output more machine friendly when being "
24308 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24309 msgstr ""
24310
24311 #. type: =item
24312 #: ../resize/virt-resize.pod:360
24313 #, fuzzy
24314 #| msgid "B<--debug>"
24315 msgid "B<--dryrun>"
24316 msgstr "B<--debug>"
24317
24318 #. type: textblock
24319 #: ../resize/virt-resize.pod:362
24320 msgid "Print a summary of what would be done, but don't do anything."
24321 msgstr ""
24322
24323 #. type: =item
24324 #: ../resize/virt-resize.pod:364
24325 msgid "B<--no-copy-boot-loader>"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../resize/virt-resize.pod:366
24330 msgid ""
24331 "By default, virt-resize copies over some sectors at the start of the disk "
24332 "(up to the beginning of the first partition).  Commonly these sectors "
24333 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24334 "in order for the guest to boot correctly."
24335 msgstr ""
24336
24337 #. type: textblock
24338 #: ../resize/virt-resize.pod:371
24339 msgid ""
24340 "If you specify this flag, then this initial copy is not done.  You may need "
24341 "to reinstall the boot loader in this case."
24342 msgstr ""
24343
24344 #. type: =item
24345 #: ../resize/virt-resize.pod:374
24346 #, fuzzy
24347 #| msgid "B<--partition>"
24348 msgid "B<--no-extra-partition>"
24349 msgstr "B<--partition>"
24350
24351 #. type: textblock
24352 #: ../resize/virt-resize.pod:376
24353 msgid ""
24354 "By default, virt-resize creates an extra partition if there is any extra, "
24355 "unused space after all resizing has happened.  Use this option to prevent "
24356 "the extra partition from being created.  If you do this then the extra space "
24357 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24358 "tool in the guest."
24359 msgstr ""
24360
24361 #. type: textblock
24362 #: ../resize/virt-resize.pod:382
24363 msgid ""
24364 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24365 "will be created."
24366 msgstr ""
24367
24368 #. type: =item
24369 #: ../resize/virt-resize.pod:385
24370 #, fuzzy
24371 #| msgid "B<--no-dest-paths>"
24372 msgid "B<--no-expand-content>"
24373 msgstr "B<--no-dest-paths>"
24374
24375 #. type: textblock
24376 #: ../resize/virt-resize.pod:387
24377 msgid ""
24378 "By default, virt-resize will try to expand the direct contents of "
24379 "partitions, if it knows how (see I<--expand> option above)."
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../resize/virt-resize.pod:390
24384 msgid ""
24385 "If you give the I<--no-expand-content> option then virt-resize will not "
24386 "attempt this."
24387 msgstr ""
24388
24389 #. type: =item
24390 #: ../resize/virt-resize.pod:393
24391 #, fuzzy
24392 #| msgid "ntfsresize-size"
24393 msgid "B<--ntfsresize-force>"
24394 msgstr "ntfsresize-size"
24395
24396 #. type: textblock
24397 #: ../resize/virt-resize.pod:395
24398 msgid ""
24399 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24400 "the NTFS disk is marked as needing a consistency check.  You have to use "
24401 "this option if you want to resize a Windows guest multiple times without "
24402 "booting into Windows between each resize."
24403 msgstr ""
24404
24405 #. type: =item
24406 #: ../resize/virt-resize.pod:401
24407 #, fuzzy
24408 #| msgid "B<--format>"
24409 msgid "B<--output-format> raw"
24410 msgstr "B<--format>"
24411
24412 #. type: textblock
24413 #: ../resize/virt-resize.pod:403
24414 msgid ""
24415 "Specify the format of the output disk image.  If this flag is not given then "
24416 "it is auto-detected from the image itself."
24417 msgstr ""
24418
24419 #. type: textblock
24420 #: ../resize/virt-resize.pod:409
24421 msgid ""
24422 "Note that this option I<does not create> the output format.  This option "
24423 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24424 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24425 "SPARSE RAW FORMATS>."
24426 msgstr ""
24427
24428 #. type: textblock
24429 #: ../resize/virt-resize.pod:418
24430 msgid "Don't print the summary."
24431 msgstr ""
24432
24433 #. type: =item
24434 #: ../resize/virt-resize.pod:420
24435 #, fuzzy
24436 #| msgid "B<part_size>"
24437 msgid "B<--resize part=size>"
24438 msgstr "B<part_size>"
24439
24440 #. type: textblock
24441 #: ../resize/virt-resize.pod:422
24442 msgid ""
24443 "Resize the named partition (expanding or shrinking it) so that it has the "
24444 "given size."
24445 msgstr ""
24446
24447 #. type: textblock
24448 #: ../resize/virt-resize.pod:425
24449 msgid ""
24450 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24451 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24452 "size; or as a relative number or percentage.  For example:"
24453 msgstr ""
24454
24455 #. type: verbatim
24456 #: ../resize/virt-resize.pod:431
24457 #, fuzzy, no-wrap
24458 #| msgid ""
24459 #| " hexedit /dev/sda 1M\n"
24460 #| "\n"
24461 msgid ""
24462 " --resize /dev/sda2=10G\n"
24463 "\n"
24464 msgstr ""
24465 " hexedit /dev/sda 1M\n"
24466 "\n"
24467
24468 #. type: verbatim
24469 #: ../resize/virt-resize.pod:433
24470 #, fuzzy, no-wrap
24471 #| msgid ""
24472 #| " pvresize device\n"
24473 #| "\n"
24474 msgid ""
24475 " --resize /dev/sda4=90%\n"
24476 "\n"
24477 msgstr ""
24478 " pvresize пристрій\n"
24479 "\n"
24480
24481 #. type: verbatim
24482 #: ../resize/virt-resize.pod:435
24483 #, fuzzy, no-wrap
24484 #| msgid ""
24485 #| " hexedit /dev/sda 1M\n"
24486 #| "\n"
24487 msgid ""
24488 " --resize /dev/sda2=+1G\n"
24489 "\n"
24490 msgstr ""
24491 " hexedit /dev/sda 1M\n"
24492 "\n"
24493
24494 #. type: verbatim
24495 #: ../resize/virt-resize.pod:437
24496 #, fuzzy, no-wrap
24497 #| msgid ""
24498 #| " hexedit /dev/sda 1M\n"
24499 #| "\n"
24500 msgid ""
24501 " --resize /dev/sda2=-200M\n"
24502 "\n"
24503 msgstr ""
24504 " hexedit /dev/sda 1M\n"
24505 "\n"
24506
24507 #. type: verbatim
24508 #: ../resize/virt-resize.pod:439
24509 #, fuzzy, no-wrap
24510 #| msgid ""
24511 #| " hexedit /dev/sda 1M\n"
24512 #| "\n"
24513 msgid ""
24514 " --resize /dev/sda1=+128K\n"
24515 "\n"
24516 msgstr ""
24517 " hexedit /dev/sda 1M\n"
24518 "\n"
24519
24520 #. type: verbatim
24521 #: ../resize/virt-resize.pod:441
24522 #, fuzzy, no-wrap
24523 #| msgid ""
24524 #| " hexedit /dev/sda 1M\n"
24525 #| "\n"
24526 msgid ""
24527 " --resize /dev/sda1=+10%\n"
24528 "\n"
24529 msgstr ""
24530 " hexedit /dev/sda 1M\n"
24531 "\n"
24532
24533 #. type: verbatim
24534 #: ../resize/virt-resize.pod:443
24535 #, fuzzy, no-wrap
24536 #| msgid ""
24537 #| " hexedit /dev/sda 1M\n"
24538 #| "\n"
24539 msgid ""
24540 " --resize /dev/sda1=-10%\n"
24541 "\n"
24542 msgstr ""
24543 " hexedit /dev/sda 1M\n"
24544 "\n"
24545
24546 #. type: textblock
24547 #: ../resize/virt-resize.pod:445
24548 msgid ""
24549 "You can increase the size of any partition.  Virt-resize will expand the "
24550 "direct content of the partition if it knows how (see I<--expand> below)."
24551 msgstr ""
24552
24553 #. type: textblock
24554 #: ../resize/virt-resize.pod:449
24555 msgid ""
24556 "You can only I<decrease> the size of partitions that contain filesystems or "
24557 "PVs which have already been shrunk.  Virt-resize will check this has been "
24558 "done before proceeding, or else will print an error (see also I<--resize-"
24559 "force>)."
24560 msgstr ""
24561
24562 #. type: =item
24563 #: ../resize/virt-resize.pod:456
24564 msgid "B<--resize-force part=size>"
24565 msgstr ""
24566
24567 #. type: textblock
24568 #: ../resize/virt-resize.pod:458
24569 msgid ""
24570 "This is the same as I<--resize> except that it will let you decrease the "
24571 "size of any partition.  Generally this means you will lose any data which "
24572 "was at the end of the partition you shrink, but you may not care about that "
24573 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24574 "as a swap partition)."
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../resize/virt-resize.pod:464
24579 msgid "See also the I<--ignore> option."
24580 msgstr ""
24581
24582 #. type: =item
24583 #: ../resize/virt-resize.pod:466
24584 #, fuzzy
24585 #| msgid "B<--partition>"
24586 msgid "B<--shrink part>"
24587 msgstr "B<--partition>"
24588
24589 #. type: textblock
24590 #: ../resize/virt-resize.pod:468
24591 msgid ""
24592 "Shrink the named partition until the overall disk image fits in the "
24593 "destination.  The named partition B<must> contain a filesystem or PV which "
24594 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24595 "online tools).  Virt-resize will check this and give an error if it has not "
24596 "been done."
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../resize/virt-resize.pod:474
24601 msgid ""
24602 "The amount by which the overall disk must be shrunk (after carrying out all "
24603 "other operations requested by the user) is called the \"deficit\".  For "
24604 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24605 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24606 "would give an error unless the user specified a partition to shrink and that "
24607 "partition had more than a gigabyte of free space."
24608 msgstr ""
24609
24610 #. type: =head1
24611 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24612 msgid "MACHINE READABLE OUTPUT"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../resize/virt-resize.pod:494
24617 msgid ""
24618 "The I<--machine-readable> option can be used to make the output more machine "
24619 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24620 "etc."
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24625 msgid "There are two ways to use this option."
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../resize/virt-resize.pod:500
24630 msgid ""
24631 "Firstly use the option on its own to query the capabilities of the virt-"
24632 "resize binary.  Typical output looks like this:"
24633 msgstr ""
24634
24635 #. type: verbatim
24636 #: ../resize/virt-resize.pod:503
24637 #, no-wrap
24638 msgid ""
24639 " $ virt-resize --machine-readable\n"
24640 " virt-resize\n"
24641 " ntfsresize-force\n"
24642 " 32bitok\n"
24643 " ntfs\n"
24644 " btrfs\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24650 msgid ""
24651 "A list of features is printed, one per line, and the program exits with "
24652 "status 0."
24653 msgstr ""
24654
24655 #. type: textblock
24656 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24657 msgid ""
24658 "Secondly use the option in conjunction with other options to make the "
24659 "regular program output more machine friendly."
24660 msgstr ""
24661
24662 #. type: textblock
24663 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24664 msgid "At the moment this means:"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
24669 msgid ""
24670 "Progress bar messages can be parsed from stdout by looking for this regular "
24671 "expression:"
24672 msgstr ""
24673
24674 #. type: verbatim
24675 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
24676 #, no-wrap
24677 msgid ""
24678 " ^[0-9]+/[0-9]+$\n"
24679 "\n"
24680 msgstr ""
24681
24682 #. type: textblock
24683 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
24684 msgid ""
24685 "The calling program should treat messages sent to stdout (except for "
24686 "progress bar messages) as status messages.  They can be logged and/or "
24687 "displayed to the user."
24688 msgstr ""
24689
24690 #. type: textblock
24691 #: ../resize/virt-resize.pod:535
24692 msgid ""
24693 "The calling program should treat messages sent to stderr as error messages.  "
24694 "In addition, virt-resize exits with a non-zero status code if there was a "
24695 "fatal error."
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../resize/virt-resize.pod:541
24700 msgid ""
24701 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24702 "readable> option and will return an error."
24703 msgstr ""
24704
24705 #. type: =head2
24706 #: ../resize/virt-resize.pod:546
24707 msgid "\"Partition 1 does not end on cylinder boundary.\""
24708 msgstr ""
24709
24710 #. type: textblock
24711 #: ../resize/virt-resize.pod:548
24712 msgid ""
24713 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
24714 "means the partitions will not be aligned to the ancient CHS geometry.  "
24715 "However CHS geometry is meaningless for disks manufactured since the early "
24716 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
24717 "cylinders is not required by any modern operating system."
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../resize/virt-resize.pod:555
24722 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../resize/virt-resize.pod:557
24727 msgid ""
24728 "In Windows Vista and later versions, Microsoft switched to using a separate "
24729 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24730 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
24731 "the boot partition.  Doing so seems to break the guest completely.  However "
24732 "expanding the second partition (ie. C: drive) should work."
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../resize/virt-resize.pod:564
24737 msgid ""
24738 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24739 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24740 "it find errors) is nothing to worry about."
24741 msgstr ""
24742
24743 #. type: =head2
24744 #: ../resize/virt-resize.pod:568
24745 msgid "GUEST BOOT STUCK AT \"GRUB\""
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../resize/virt-resize.pod:570
24750 msgid ""
24751 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24752 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
24753 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
24754 "although we think is to do with partition alignment."
24755 msgstr ""
24756
24757 #. type: verbatim
24758 #: ../resize/virt-resize.pod:575
24759 #, no-wrap
24760 msgid ""
24761 " guestfish -i -a newdisk\n"
24762 " ><fs> cat /boot/grub/device.map\n"
24763 " # check the contents of this file are sensible or\n"
24764 " # edit the file if necessary\n"
24765 " ><fs> grub-install / /dev/vda\n"
24766 " ><fs> exit\n"
24767 "\n"
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../resize/virt-resize.pod:582
24772 msgid ""
24773 "For more flexible guest reconfiguration, including if you need to specify "
24774 "other parameters to grub-install, use L<virt-rescue(1)>."
24775 msgstr ""
24776
24777 #. type: =head1
24778 #: ../resize/virt-resize.pod:585
24779 msgid "ALTERNATIVE TOOLS"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../resize/virt-resize.pod:587
24784 msgid ""
24785 "There are several proprietary tools for resizing partitions.  We won't "
24786 "mention any here."
24787 msgstr ""
24788
24789 #. type: textblock
24790 #: ../resize/virt-resize.pod:590
24791 msgid ""
24792 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24793 "operations on disk images.  They can resize and move partitions, but I don't "
24794 "think they can do anything with the contents, and they certainly don't "
24795 "understand LVM."
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../resize/virt-resize.pod:595
24800 msgid ""
24801 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24802 "but at a much lower level.  You will probably end up hand-calculating sector "
24803 "offsets, which is something that virt-resize was designed to avoid.  If you "
24804 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24805 "I<--debug> flag."
24806 msgstr ""
24807
24808 #. type: textblock
24809 #: ../resize/virt-resize.pod:615
24810 msgid ""
24811 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24812 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24813 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24814 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24815 "L<http://libguestfs.org/>."
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../ruby/examples/guestfs-ruby.pod:5
24820 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24821 msgstr ""
24822
24823 #. type: verbatim
24824 #: ../ruby/examples/guestfs-ruby.pod:9
24825 #, no-wrap
24826 msgid ""
24827 " require 'guestfs'\n"
24828 " g = Guestfs::Guestfs.new()\n"
24829 " g.add_drive_opts(\"disk.img\",\n"
24830 "                  :readonly => 1, :format => \"raw\")\n"
24831 " g.launch()\n"
24832 "\n"
24833 msgstr ""
24834
24835 #. type: textblock
24836 #: ../ruby/examples/guestfs-ruby.pod:17
24837 msgid ""
24838 "This manual page documents how to call libguestfs from the Ruby programming "
24839 "language.  This page just documents the differences from the C API and gives "
24840 "some examples.  If you are not familiar with using libguestfs, you also need "
24841 "to read L<guestfs(3)>."
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../ruby/examples/guestfs-ruby.pod:24
24846 msgid ""
24847 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24848 "This has a single parameter which is the error message (a string)."
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../ruby/examples/guestfs-ruby.pod:38
24853 #, fuzzy
24854 #| msgid ""
24855 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
24856 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
24857 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24858 msgid ""
24859 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24860 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24861 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24862 msgstr ""
24863 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
24864 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
24865 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24866
24867 #. type: textblock
24868 #: ../sparsify/virt-sparsify.pod:5
24869 msgid "virt-sparsify - Make a virtual machine disk sparse"
24870 msgstr ""
24871
24872 #. type: verbatim
24873 #: ../sparsify/virt-sparsify.pod:9
24874 #, fuzzy, no-wrap
24875 #| msgid ""
24876 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
24877 #| "\n"
24878 msgid ""
24879 " virt-sparsify [--options] indisk outdisk\n"
24880 "\n"
24881 msgstr ""
24882 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
24883 "\n"
24884
24885 #. type: textblock
24886 #: ../sparsify/virt-sparsify.pod:13
24887 msgid ""
24888 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24889 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24890 "the disk image can be converted back to free space on the host."
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../sparsify/virt-sparsify.pod:18
24895 msgid ""
24896 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24897 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24898 msgstr ""
24899
24900 #. type: textblock
24901 #: ../sparsify/virt-sparsify.pod:21
24902 msgid ""
24903 "Virt-sparsify can also convert between some disk formats, for example "
24904 "converting a raw disk image to a thin-provisioned qcow2 image."
24905 msgstr ""
24906
24907 #. type: textblock
24908 #: ../sparsify/virt-sparsify.pod:24
24909 msgid ""
24910 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24911 "machines.  If a virtual machine has more than one attached disk, you must "
24912 "sparsify each one separately."
24913 msgstr ""
24914
24915 #. type: =head2
24916 #: ../sparsify/virt-sparsify.pod:28
24917 msgid "IMPORTANT LIMITATIONS"
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../sparsify/virt-sparsify.pod:34
24922 msgid ""
24923 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24924 "image to a destination image, leaving the source unchanged.  I<Check that "
24925 "the sparsification was successful before deleting the source image>."
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../sparsify/virt-sparsify.pod:41
24930 msgid "The virtual machine I<must be shut down> before using this tool."
24931 msgstr ""
24932
24933 #. type: textblock
24934 #: ../sparsify/virt-sparsify.pod:45
24935 msgid ""
24936 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24937 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24938 "usually much less space is required."
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../sparsify/virt-sparsify.pod:51
24943 msgid ""
24944 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../sparsify/virt-sparsify.pod:56
24949 msgid "Virt-sparsify cannot handle encrypted disks."
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../sparsify/virt-sparsify.pod:60
24954 msgid ""
24955 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24956 "this space is often used for critical items like bootloaders so it's not "
24957 "really unused."
24958 msgstr ""
24959
24960 #. type: textblock
24961 #: ../sparsify/virt-sparsify.pod:66
24962 msgid ""
24963 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24964 "to do this unless we can be sure there is no hibernation data, so at the "
24965 "moment swap partitions are ignored."
24966 msgstr ""
24967
24968 #. type: textblock
24969 #: ../sparsify/virt-sparsify.pod:72
24970 msgid ""
24971 "You may also want to read the manual pages for the associated tools L<virt-"
24972 "filesystems(1)> and L<virt-df(1)> before starting."
24973 msgstr ""
24974
24975 #. type: textblock
24976 #: ../sparsify/virt-sparsify.pod:77
24977 msgid "Typical usage is:"
24978 msgstr ""
24979
24980 #. type: verbatim
24981 #: ../sparsify/virt-sparsify.pod:79
24982 #, no-wrap
24983 msgid ""
24984 " virt-sparsify indisk outdisk\n"
24985 "\n"
24986 msgstr ""
24987
24988 #. type: textblock
24989 #: ../sparsify/virt-sparsify.pod:81
24990 msgid ""
24991 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24992 "is created, or overwritten if it already exists.  The format of the input "
24993 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24994 msgstr ""
24995
24996 #. type: textblock
24997 #: ../sparsify/virt-sparsify.pod:86
24998 msgid "To convert between formats, use the I<--convert> option:"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../sparsify/virt-sparsify.pod:88
25003 #, no-wrap
25004 msgid ""
25005 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25006 "\n"
25007 msgstr ""
25008
25009 #. type: textblock
25010 #: ../sparsify/virt-sparsify.pod:90
25011 msgid ""
25012 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25013 "can find within the source disk image.  You can get it to ignore (don't zero "
25014 "free space on) certain filesystems by doing:"
25015 msgstr ""
25016
25017 #. type: verbatim
25018 #: ../sparsify/virt-sparsify.pod:94
25019 #, no-wrap
25020 msgid ""
25021 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25022 "\n"
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../sparsify/virt-sparsify.pod:96
25027 msgid ""
25028 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25029 msgstr ""
25030
25031 #. type: =item
25032 #: ../sparsify/virt-sparsify.pod:107
25033 #, fuzzy
25034 #| msgid "B<--connect URI>"
25035 msgid "B<--convert> raw"
25036 msgstr "B<--connect адреса>"
25037
25038 #. type: =item
25039 #: ../sparsify/virt-sparsify.pod:109
25040 #, fuzzy
25041 #| msgid "B<--format=raw|qcow2|..>"
25042 msgid "B<--convert> qcow2"
25043 msgstr "B<--format=raw|qcow2|..>"
25044
25045 #. type: =item
25046 #: ../sparsify/virt-sparsify.pod:111
25047 msgid "B<--convert> [other formats]"
25048 msgstr ""
25049
25050 #. type: textblock
25051 #: ../sparsify/virt-sparsify.pod:113
25052 msgid ""
25053 "Use C<output-format> as the format for the destination image.  If this is "
25054 "not specified, then the input format is used."
25055 msgstr ""
25056
25057 #. type: textblock
25058 #: ../sparsify/virt-sparsify.pod:116
25059 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25060 msgstr ""
25061
25062 #. type: textblock
25063 #: ../sparsify/virt-sparsify.pod:118
25064 msgid ""
25065 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25066 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../sparsify/virt-sparsify.pod:122
25071 msgid ""
25072 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25073 "sparsify doesn't need to try to guess the input format."
25074 msgstr ""
25075
25076 #. type: =item
25077 #: ../sparsify/virt-sparsify.pod:127
25078 #, fuzzy
25079 #| msgid "B<--format=raw|qcow2|..>"
25080 msgid "B<--format> qcow2"
25081 msgstr "B<--format=raw|qcow2|..>"
25082
25083 #. type: =item
25084 #: ../sparsify/virt-sparsify.pod:135
25085 #, fuzzy
25086 #| msgid "list-filesystems"
25087 msgid "B<--ignore> filesystem"
25088 msgstr "list-filesystems"
25089
25090 #. type: =item
25091 #: ../sparsify/virt-sparsify.pod:137
25092 #, fuzzy
25093 #| msgid "B<--verbose>"
25094 msgid "B<--ignore> volgroup"
25095 msgstr "B<--verbose>"
25096
25097 #. type: textblock
25098 #: ../sparsify/virt-sparsify.pod:139
25099 msgid ""
25100 "Ignore the named filesystem.  Free space on the filesystem will not be "
25101 "zeroed, but existing blocks of zeroes will still be sparsified."
25102 msgstr ""
25103
25104 #. type: textblock
25105 #: ../sparsify/virt-sparsify.pod:142
25106 msgid ""
25107 "In the second form, this ignores the named volume group.  Use the volume "
25108 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../sparsify/virt-sparsify.pod:157
25113 msgid "This disables progress bars and other unnecessary output."
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../sparsify/virt-sparsify.pod:179
25118 msgid ""
25119 "The I<--machine-readable> option can be used to make the output more machine "
25120 "friendly, which is useful when calling virt-sparsify from other programs, "
25121 "GUIs etc."
25122 msgstr ""
25123
25124 #. type: textblock
25125 #: ../sparsify/virt-sparsify.pod:185
25126 msgid ""
25127 "Firstly use the option on its own to query the capabilities of the virt-"
25128 "sparsify binary.  Typical output looks like this:"
25129 msgstr ""
25130
25131 #. type: verbatim
25132 #: ../sparsify/virt-sparsify.pod:188
25133 #, no-wrap
25134 msgid ""
25135 " $ virt-sparsify --machine-readable\n"
25136 " virt-sparsify\n"
25137 " ntfs\n"
25138 " btrfs\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../sparsify/virt-sparsify.pod:218
25144 msgid ""
25145 "The calling program should treat messages sent to stderr as error messages.  "
25146 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25147 "fatal error."
25148 msgstr ""
25149
25150 #. type: textblock
25151 #: ../sparsify/virt-sparsify.pod:224
25152 msgid ""
25153 "All versions of virt-sparsify have supported the I<--machine-readable> "
25154 "option."
25155 msgstr ""
25156
25157 #. type: textblock
25158 #: ../sparsify/virt-sparsify.pod:238
25159 msgid ""
25160 "Location of the temporary directory used for the potentially large temporary "
25161 "overlay file."
25162 msgstr ""
25163
25164 #. type: textblock
25165 #: ../sparsify/virt-sparsify.pod:241
25166 msgid ""
25167 "You should ensure there is enough free space in the worst case for a full "
25168 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25169 "to another directory that has enough space."
25170 msgstr ""
25171
25172 #. type: textblock
25173 #: ../sparsify/virt-sparsify.pod:245
25174 #, fuzzy
25175 #| msgid "The default is C<ext2>."
25176 msgid "This defaults to C</tmp>."
25177 msgstr "Типовим значенням є C<ext2>."
25178
25179 #. type: textblock
25180 #: ../sparsify/virt-sparsify.pod:249
25181 msgid ""
25182 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../sparsify/virt-sparsify.pod:253
25187 #, fuzzy
25188 #| msgid ""
25189 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25190 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
25191 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
25192 #| "libguestfs.org/>."
25193 msgid ""
25194 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25195 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25196 "(1)>, L<http://libguestfs.org/>."
25197 msgstr ""
25198 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
25199 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
25200 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25201 "org/>."
25202
25203 #. type: =head2
25204 #: ../src/guestfs-actions.pod:1
25205 msgid "guestfs_add_cdrom"
25206 msgstr ""
25207
25208 #. type: verbatim
25209 #: ../src/guestfs-actions.pod:3
25210 #, no-wrap
25211 msgid ""
25212 " int\n"
25213 " guestfs_add_cdrom (guestfs_h *g,\n"
25214 "                    const char *filename);\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
25220 #: ../src/guestfs-actions.pod:270
25221 msgid ""
25222 "I<This function is deprecated.> In new code, use the L</"
25223 "guestfs_add_drive_opts> call instead."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../src/guestfs-actions.pod:24
25228 msgid ""
25229 "This call checks for the existence of C<filename>.  This stops you from "
25230 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25231 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25232 "instead."
25233 msgstr ""
25234
25235 #. type: textblock
25236 #: ../src/guestfs-actions.pod:31
25237 msgid ""
25238 "If you just want to add an ISO file (often you use this as an efficient way "
25239 "to transfer large files into the guest), then you should probably use "
25240 "C<guestfs_add_drive_ro> instead."
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25245 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
25246 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
25247 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
25248 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
25249 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
25250 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
25251 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
25252 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
25253 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
25254 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
25255 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
25256 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
25257 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
25258 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
25259 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
25260 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
25261 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
25262 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
25263 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
25264 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
25265 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
25266 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
25267 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
25268 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
25269 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
25270 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
25271 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
25272 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
25273 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
25274 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
25275 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
25276 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
25277 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
25278 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
25279 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
25280 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
25281 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
25282 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
25283 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
25284 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
25285 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
25286 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
25287 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
25288 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
25289 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
25290 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
25291 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
25292 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
25293 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
25294 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
25295 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
25296 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
25297 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
25298 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
25299 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
25300 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
25301 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
25302 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
25303 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
25304 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
25305 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
25306 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
25307 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
25308 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
25309 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
25310 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
25311 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
25312 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
25313 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
25314 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
25315 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
25316 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
25317 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
25318 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
25319 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
25320 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
25321 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
25322 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
25323 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
25324 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
25325 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
25326 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
25327 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
25328 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
25329 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
25330 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
25331 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
25332 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
25333 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
25334 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
25335 #: ../src/guestfs-actions.pod:7988
25336 msgid "This function returns 0 on success or -1 on error."
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25341 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
25342 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
25343 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
25344 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
25345 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
25346 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
25347 #: ../src/guestfs-actions.pod:7765
25348 msgid "(Added in 0.3)"
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:41
25353 msgid "guestfs_add_domain"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:43
25358 #, no-wrap
25359 msgid ""
25360 " int\n"
25361 " guestfs_add_domain (guestfs_h *g,\n"
25362 "                     const char *dom,\n"
25363 "                     ...);\n"
25364 "\n"
25365 msgstr ""
25366
25367 #. type: textblock
25368 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25369 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
25370 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
25371 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
25372 #: ../src/guestfs-actions.pod:5321
25373 msgid ""
25374 "You may supply a list of optional arguments to this call.  Use zero or more "
25375 "of the following pairs of parameters, and terminate the list with C<-1> on "
25376 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25377 msgstr ""
25378
25379 #. type: verbatim
25380 #: ../src/guestfs-actions.pod:53
25381 #, no-wrap
25382 msgid ""
25383 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25384 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25385 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25386 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25387 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25388 "\n"
25389 msgstr ""
25390
25391 #. type: textblock
25392 #: ../src/guestfs-actions.pod:59
25393 msgid ""
25394 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25395 "It works by connecting to libvirt, requesting the domain and domain XML from "
25396 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25397 "one."
25398 msgstr ""
25399
25400 #. type: textblock
25401 #: ../src/guestfs-actions.pod:94
25402 msgid ""
25403 "The other optional parameters are passed directly through to "
25404 "C<guestfs_add_drive_opts>."
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
25409 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
25410 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
25411 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
25412 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
25413 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
25414 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
25415 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
25416 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
25417 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
25418 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
25419 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
25420 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
25421 msgid "On error this function returns -1."
25422 msgstr ""
25423
25424 #. type: textblock
25425 #: ../src/guestfs-actions.pod:99
25426 msgid "(Added in 1.7.4)"
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../src/guestfs-actions.pod:101
25431 msgid "guestfs_add_domain_va"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../src/guestfs-actions.pod:103
25436 #, no-wrap
25437 msgid ""
25438 " int\n"
25439 " guestfs_add_domain_va (guestfs_h *g,\n"
25440 "                        const char *dom,\n"
25441 "                        va_list args);\n"
25442 "\n"
25443 msgstr ""
25444
25445 #. type: textblock
25446 #: ../src/guestfs-actions.pod:108
25447 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25452 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
25453 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
25454 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
25455 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
25456 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
25457 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
25458 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
25459 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
25460 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25461 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:112
25465 msgid "guestfs_add_domain_argv"
25466 msgstr "guestfs_add_domain_argv"
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:114
25470 #, no-wrap
25471 msgid ""
25472 " int\n"
25473 " guestfs_add_domain_argv (guestfs_h *g,\n"
25474 "                          const char *dom,\n"
25475 "                          const struct guestfs_add_domain_argv *optargs);\n"
25476 "\n"
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:119
25481 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../src/guestfs-actions.pod:123
25486 msgid "guestfs_add_drive"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../src/guestfs-actions.pod:125
25491 #, no-wrap
25492 msgid ""
25493 " int\n"
25494 " guestfs_add_drive (guestfs_h *g,\n"
25495 "                    const char *filename);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:129
25501 msgid ""
25502 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25503 "optional parameters, so the disk is added writable, with the format being "
25504 "detected automatically."
25505 msgstr ""
25506
25507 #. type: textblock
25508 #: ../src/guestfs-actions.pod:133
25509 msgid ""
25510 "Automatic detection of the format opens you up to a potential security hole "
25511 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25512 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25513 "you should think about replacing calls to this function with calls to "
25514 "C<guestfs_add_drive_opts>, and specifying the format."
25515 msgstr ""
25516
25517 #. type: =head2
25518 #: ../src/guestfs-actions.pod:144
25519 msgid "guestfs_add_drive_opts"
25520 msgstr ""
25521
25522 #. type: verbatim
25523 #: ../src/guestfs-actions.pod:146
25524 #, no-wrap
25525 msgid ""
25526 " int\n"
25527 " guestfs_add_drive_opts (guestfs_h *g,\n"
25528 "                         const char *filename,\n"
25529 "                         ...);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:156
25535 #, no-wrap
25536 msgid ""
25537 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25538 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25539 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:185
25545 msgid ""
25546 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25547 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25548 "Possible formats include C<raw> and C<qcow2>."
25549 msgstr ""
25550
25551 #. type: textblock
25552 #: ../src/guestfs-actions.pod:196
25553 msgid ""
25554 "This rarely-used option lets you emulate the behaviour of the deprecated "
25555 "C<guestfs_add_drive_with_if> call (q.v.)"
25556 msgstr ""
25557
25558 #. type: textblock
25559 #: ../src/guestfs-actions.pod:203
25560 msgid "(Added in 1.5.23)"
25561 msgstr ""
25562
25563 #. type: =head2
25564 #: ../src/guestfs-actions.pod:205
25565 msgid "guestfs_add_drive_opts_va"
25566 msgstr ""
25567
25568 #. type: verbatim
25569 #: ../src/guestfs-actions.pod:207
25570 #, no-wrap
25571 msgid ""
25572 " int\n"
25573 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25574 "                            const char *filename,\n"
25575 "                            va_list args);\n"
25576 "\n"
25577 msgstr ""
25578
25579 #. type: textblock
25580 #: ../src/guestfs-actions.pod:212
25581 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25582 msgstr ""
25583
25584 #. type: =head2
25585 #: ../src/guestfs-actions.pod:216
25586 msgid "guestfs_add_drive_opts_argv"
25587 msgstr ""
25588
25589 #. type: verbatim
25590 #: ../src/guestfs-actions.pod:218
25591 #, no-wrap
25592 msgid ""
25593 " int\n"
25594 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25595 "                              const char *filename,\n"
25596 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25597 "\n"
25598 msgstr ""
25599
25600 #. type: textblock
25601 #: ../src/guestfs-actions.pod:223
25602 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25603 msgstr ""
25604
25605 #. type: =head2
25606 #: ../src/guestfs-actions.pod:227
25607 msgid "guestfs_add_drive_ro"
25608 msgstr ""
25609
25610 #. type: verbatim
25611 #: ../src/guestfs-actions.pod:229
25612 #, no-wrap
25613 msgid ""
25614 " int\n"
25615 " guestfs_add_drive_ro (guestfs_h *g,\n"
25616 "                       const char *filename);\n"
25617 "\n"
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../src/guestfs-actions.pod:233
25622 msgid ""
25623 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25624 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25625 "disk is added read-only, with the format being detected automatically."
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../src/guestfs-actions.pod:240
25630 msgid "(Added in 1.0.38)"
25631 msgstr ""
25632
25633 #. type: =head2
25634 #: ../src/guestfs-actions.pod:242
25635 msgid "guestfs_add_drive_ro_with_if"
25636 msgstr ""
25637
25638 #. type: verbatim
25639 #: ../src/guestfs-actions.pod:244
25640 #, no-wrap
25641 msgid ""
25642 " int\n"
25643 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25644 "                               const char *filename,\n"
25645 "                               const char *iface);\n"
25646 "\n"
25647 msgstr ""
25648
25649 #. type: textblock
25650 #: ../src/guestfs-actions.pod:256
25651 msgid ""
25652 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25653 "QEMU interface emulation to use at run time."
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
25658 #: ../src/guestfs-actions.pod:2580
25659 msgid "(Added in 1.0.84)"
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:263
25664 msgid "guestfs_add_drive_with_if"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:265
25669 #, no-wrap
25670 msgid ""
25671 " int\n"
25672 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25673 "                            const char *filename,\n"
25674 "                            const char *iface);\n"
25675 "\n"
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:277
25680 msgid ""
25681 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25682 "QEMU interface emulation to use at run time."
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:284
25687 msgid "guestfs_aug_clear"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:286
25692 #, no-wrap
25693 msgid ""
25694 " int\n"
25695 " guestfs_aug_clear (guestfs_h *g,\n"
25696 "                    const char *augpath);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
25702 msgid "(Added in 1.3.4)"
25703 msgstr ""
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:297
25707 msgid "guestfs_aug_close"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:299
25712 #, no-wrap
25713 msgid ""
25714 " int\n"
25715 " guestfs_aug_close (guestfs_h *g);\n"
25716 "\n"
25717 msgstr ""
25718
25719 #. type: textblock
25720 #: ../src/guestfs-actions.pod:302
25721 msgid ""
25722 "Close the current Augeas handle and free up any resources used by it.  After "
25723 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25724 "any other Augeas functions."
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
25729 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
25730 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
25731 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
25732 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
25733 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
25734 #: ../src/guestfs-actions.pod:5989
25735 msgid "(Added in 0.7)"
25736 msgstr ""
25737
25738 #. type: =head2
25739 #: ../src/guestfs-actions.pod:311
25740 msgid "guestfs_aug_defnode"
25741 msgstr ""
25742
25743 #. type: verbatim
25744 #: ../src/guestfs-actions.pod:313
25745 #, no-wrap
25746 msgid ""
25747 " struct guestfs_int_bool *\n"
25748 " guestfs_aug_defnode (guestfs_h *g,\n"
25749 "                      const char *name,\n"
25750 "                      const char *expr,\n"
25751 "                      const char *val);\n"
25752 "\n"
25753 msgstr ""
25754
25755 #. type: textblock
25756 #: ../src/guestfs-actions.pod:322
25757 msgid ""
25758 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25759 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25760 "containing that single node."
25761 msgstr ""
25762
25763 #. type: textblock
25764 #: ../src/guestfs-actions.pod:330
25765 msgid ""
25766 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25767 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../src/guestfs-actions.pod:336
25772 msgid "guestfs_aug_defvar"
25773 msgstr ""
25774
25775 #. type: verbatim
25776 #: ../src/guestfs-actions.pod:338
25777 #, no-wrap
25778 msgid ""
25779 " int\n"
25780 " guestfs_aug_defvar (guestfs_h *g,\n"
25781 "                     const char *name,\n"
25782 "                     const char *expr);\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../src/guestfs-actions.pod:354
25788 msgid "guestfs_aug_get"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../src/guestfs-actions.pod:356
25793 #, no-wrap
25794 msgid ""
25795 " char *\n"
25796 " guestfs_aug_get (guestfs_h *g,\n"
25797 "                  const char *augpath);\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
25803 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
25804 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
25805 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
25806 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
25807 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
25808 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
25809 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
25810 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
25811 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
25812 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
25813 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
25814 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
25815 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
25816 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
25817 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
25818 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
25819 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
25820 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
25821 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
25822 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
25823 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
25824 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
25825 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
25826 msgid ""
25827 "This function returns a string, or NULL on error.  I<The caller must free "
25828 "the returned string after use>."
25829 msgstr ""
25830
25831 #. type: =head2
25832 #: ../src/guestfs-actions.pod:368
25833 msgid "guestfs_aug_init"
25834 msgstr ""
25835
25836 #. type: verbatim
25837 #: ../src/guestfs-actions.pod:370
25838 #, no-wrap
25839 msgid ""
25840 " int\n"
25841 " guestfs_aug_init (guestfs_h *g,\n"
25842 "                   const char *root,\n"
25843 "                   int flags);\n"
25844 "\n"
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:379
25849 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:404
25854 msgid ""
25855 "This option is only useful when debugging Augeas lenses.  Use of this option "
25856 "may require additional memory for the libguestfs appliance.  You may need to "
25857 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25858 "C<guestfs_set_memsize>."
25859 msgstr ""
25860
25861 #. type: textblock
25862 #: ../src/guestfs-actions.pod:419
25863 msgid "Do not load the tree in C<guestfs_aug_init>."
25864 msgstr ""
25865
25866 #. type: textblock
25867 #: ../src/guestfs-actions.pod:423
25868 msgid "To close the handle, you can call C<guestfs_aug_close>."
25869 msgstr ""
25870
25871 #. type: =head2
25872 #: ../src/guestfs-actions.pod:431
25873 msgid "guestfs_aug_insert"
25874 msgstr ""
25875
25876 #. type: verbatim
25877 #: ../src/guestfs-actions.pod:433
25878 #, no-wrap
25879 msgid ""
25880 " int\n"
25881 " guestfs_aug_insert (guestfs_h *g,\n"
25882 "                     const char *augpath,\n"
25883 "                     const char *label,\n"
25884 "                     int before);\n"
25885 "\n"
25886 msgstr ""
25887
25888 #. type: =head2
25889 #: ../src/guestfs-actions.pod:451
25890 msgid "guestfs_aug_load"
25891 msgstr ""
25892
25893 #. type: verbatim
25894 #: ../src/guestfs-actions.pod:453
25895 #, no-wrap
25896 msgid ""
25897 " int\n"
25898 " guestfs_aug_load (guestfs_h *g);\n"
25899 "\n"
25900 msgstr ""
25901
25902 #. type: =head2
25903 #: ../src/guestfs-actions.pod:465
25904 msgid "guestfs_aug_ls"
25905 msgstr ""
25906
25907 #. type: verbatim
25908 #: ../src/guestfs-actions.pod:467
25909 #, no-wrap
25910 msgid ""
25911 " char **\n"
25912 " guestfs_aug_ls (guestfs_h *g,\n"
25913 "                 const char *augpath);\n"
25914 "\n"
25915 msgstr ""
25916
25917 #. type: textblock
25918 #: ../src/guestfs-actions.pod:471
25919 msgid ""
25920 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25921 "sorting the resulting nodes into alphabetical order."
25922 msgstr ""
25923
25924 #. type: textblock
25925 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
25926 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
25927 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
25928 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
25929 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
25930 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
25931 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
25932 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
25933 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
25934 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
25935 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
25936 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
25937 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
25938 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
25939 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
25940 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
25941 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
25942 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
25943 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
25944 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
25945 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
25946 #: ../src/guestfs-actions.pod:8086
25947 msgid ""
25948 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25949 ">), or NULL if there was an error.  I<The caller must free the strings and "
25950 "the array after use>."
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
25955 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
25956 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
25957 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
25958 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
25959 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
25960 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
25961 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
25962 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
25963 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
25964 #: ../src/guestfs-actions.pod:7877
25965 msgid "(Added in 0.8)"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:480
25970 msgid "guestfs_aug_match"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:482
25975 #, no-wrap
25976 msgid ""
25977 " char **\n"
25978 " guestfs_aug_match (guestfs_h *g,\n"
25979 "                    const char *augpath);\n"
25980 "\n"
25981 msgstr ""
25982
25983 #. type: =head2
25984 #: ../src/guestfs-actions.pod:496
25985 msgid "guestfs_aug_mv"
25986 msgstr ""
25987
25988 #. type: verbatim
25989 #: ../src/guestfs-actions.pod:498
25990 #, no-wrap
25991 msgid ""
25992 " int\n"
25993 " guestfs_aug_mv (guestfs_h *g,\n"
25994 "                 const char *src,\n"
25995 "                 const char *dest);\n"
25996 "\n"
25997 msgstr ""
25998
25999 #. type: =head2
26000 #: ../src/guestfs-actions.pod:510
26001 msgid "guestfs_aug_rm"
26002 msgstr ""
26003
26004 #. type: verbatim
26005 #: ../src/guestfs-actions.pod:512
26006 #, no-wrap
26007 msgid ""
26008 " int\n"
26009 " guestfs_aug_rm (guestfs_h *g,\n"
26010 "                 const char *augpath);\n"
26011 "\n"
26012 msgstr ""
26013
26014 #. type: =head2
26015 #: ../src/guestfs-actions.pod:524
26016 msgid "guestfs_aug_save"
26017 msgstr ""
26018
26019 #. type: verbatim
26020 #: ../src/guestfs-actions.pod:526
26021 #, no-wrap
26022 msgid ""
26023 " int\n"
26024 " guestfs_aug_save (guestfs_h *g);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:531
26030 msgid ""
26031 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26032 "are saved."
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:538
26037 msgid "guestfs_aug_set"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:540
26042 #, no-wrap
26043 msgid ""
26044 " int\n"
26045 " guestfs_aug_set (guestfs_h *g,\n"
26046 "                  const char *augpath,\n"
26047 "                  const char *val);\n"
26048 "\n"
26049 msgstr ""
26050
26051 #. type: textblock
26052 #: ../src/guestfs-actions.pod:547
26053 msgid ""
26054 "In the Augeas API, it is possible to clear a node by setting the value to "
26055 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26056 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26057 msgstr ""
26058
26059 #. type: =head2
26060 #: ../src/guestfs-actions.pod:556
26061 msgid "guestfs_available"
26062 msgstr ""
26063
26064 #. type: verbatim
26065 #: ../src/guestfs-actions.pod:558
26066 #, no-wrap
26067 msgid ""
26068 " int\n"
26069 " guestfs_available (guestfs_h *g,\n"
26070 "                    char *const *groups);\n"
26071 "\n"
26072 msgstr ""
26073
26074 #. type: textblock
26075 #: ../src/guestfs-actions.pod:566
26076 msgid ""
26077 "The libguestfs groups, and the functions that those groups correspond to, "
26078 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26079 "runtime by calling C<guestfs_available_all_groups>."
26080 msgstr ""
26081
26082 #. type: textblock
26083 #: ../src/guestfs-actions.pod:590
26084 msgid "You must call C<guestfs_launch> before calling this function."
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../src/guestfs-actions.pod:612
26089 msgid ""
26090 "This call was added in version C<1.0.80>.  In previous versions of "
26091 "libguestfs all you could do would be to speculatively execute a command to "
26092 "find out if the daemon implemented it.  See also C<guestfs_version>."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
26097 msgid "(Added in 1.0.80)"
26098 msgstr ""
26099
26100 #. type: =head2
26101 #: ../src/guestfs-actions.pod:623
26102 msgid "guestfs_available_all_groups"
26103 msgstr ""
26104
26105 #. type: verbatim
26106 #: ../src/guestfs-actions.pod:625
26107 #, no-wrap
26108 msgid ""
26109 " char **\n"
26110 " guestfs_available_all_groups (guestfs_h *g);\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:628
26116 msgid ""
26117 "This command returns a list of all optional groups that this daemon knows "
26118 "about.  Note this returns both supported and unsupported groups.  To find "
26119 "out which ones the daemon can actually support you have to call "
26120 "C<guestfs_available> on each member of the returned list."
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:634
26125 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:640
26130 msgid "(Added in 1.3.15)"
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:642
26135 msgid "guestfs_base64_in"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:644
26140 #, no-wrap
26141 msgid ""
26142 " int\n"
26143 " guestfs_base64_in (guestfs_h *g,\n"
26144 "                    const char *base64file,\n"
26145 "                    const char *filename);\n"
26146 "\n"
26147 msgstr ""
26148
26149 #. type: textblock
26150 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
26151 msgid "(Added in 1.3.5)"
26152 msgstr ""
26153
26154 #. type: =head2
26155 #: ../src/guestfs-actions.pod:656
26156 msgid "guestfs_base64_out"
26157 msgstr ""
26158
26159 #. type: verbatim
26160 #: ../src/guestfs-actions.pod:658
26161 #, no-wrap
26162 msgid ""
26163 " int\n"
26164 " guestfs_base64_out (guestfs_h *g,\n"
26165 "                     const char *filename,\n"
26166 "                     const char *base64file);\n"
26167 "\n"
26168 msgstr ""
26169
26170 #. type: =head2
26171 #: ../src/guestfs-actions.pod:670
26172 msgid "guestfs_blockdev_flushbufs"
26173 msgstr ""
26174
26175 #. type: verbatim
26176 #: ../src/guestfs-actions.pod:672
26177 #, no-wrap
26178 msgid ""
26179 " int\n"
26180 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26181 "                             const char *device);\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
26187 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
26188 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
26189 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26190 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
26191 msgid "(Added in 0.9.3)"
26192 msgstr ""
26193
26194 #. type: =head2
26195 #: ../src/guestfs-actions.pod:685
26196 msgid "guestfs_blockdev_getbsz"
26197 msgstr ""
26198
26199 #. type: verbatim
26200 #: ../src/guestfs-actions.pod:687
26201 #, no-wrap
26202 msgid ""
26203 " int\n"
26204 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26205 "                          const char *device);\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:702
26211 msgid "guestfs_blockdev_getro"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:704
26216 #, no-wrap
26217 msgid ""
26218 " int\n"
26219 " guestfs_blockdev_getro (guestfs_h *g,\n"
26220 "                         const char *device);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
26226 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
26227 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
26228 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
26229 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
26230 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
26231 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
26232 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
26233 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
26234 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
26235 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
26236 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
26237 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
26238 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
26239 #: ../src/guestfs-actions.pod:5482
26240 msgid "This function returns a C truth value on success or -1 on error."
26241 msgstr ""
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:717
26245 msgid "guestfs_blockdev_getsize64"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:719
26250 #, no-wrap
26251 msgid ""
26252 " int64_t\n"
26253 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26254 "                             const char *device);\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:725
26260 msgid "See also C<guestfs_blockdev_getsz>."
26261 msgstr ""
26262
26263 #. type: =head2
26264 #: ../src/guestfs-actions.pod:733
26265 msgid "guestfs_blockdev_getss"
26266 msgstr ""
26267
26268 #. type: verbatim
26269 #: ../src/guestfs-actions.pod:735
26270 #, no-wrap
26271 msgid ""
26272 " int\n"
26273 " guestfs_blockdev_getss (guestfs_h *g,\n"
26274 "                         const char *device);\n"
26275 "\n"
26276 msgstr ""
26277
26278 #. type: textblock
26279 #: ../src/guestfs-actions.pod:742
26280 msgid ""
26281 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26282 "that)."
26283 msgstr ""
26284
26285 #. type: =head2
26286 #: ../src/guestfs-actions.pod:751
26287 msgid "guestfs_blockdev_getsz"
26288 msgstr ""
26289
26290 #. type: verbatim
26291 #: ../src/guestfs-actions.pod:753
26292 #, no-wrap
26293 msgid ""
26294 " int64_t\n"
26295 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26296 "                         const char *device);\n"
26297 "\n"
26298 msgstr ""
26299
26300 #. type: textblock
26301 #: ../src/guestfs-actions.pod:760
26302 msgid ""
26303 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26304 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26305 msgstr ""
26306
26307 #. type: =head2
26308 #: ../src/guestfs-actions.pod:770
26309 msgid "guestfs_blockdev_rereadpt"
26310 msgstr ""
26311
26312 #. type: verbatim
26313 #: ../src/guestfs-actions.pod:772
26314 #, no-wrap
26315 msgid ""
26316 " int\n"
26317 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26318 "                            const char *device);\n"
26319 "\n"
26320 msgstr ""
26321
26322 #. type: =head2
26323 #: ../src/guestfs-actions.pod:784
26324 msgid "guestfs_blockdev_setbsz"
26325 msgstr ""
26326
26327 #. type: verbatim
26328 #: ../src/guestfs-actions.pod:786
26329 #, no-wrap
26330 msgid ""
26331 " int\n"
26332 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26333 "                          const char *device,\n"
26334 "                          int blocksize);\n"
26335 "\n"
26336 msgstr ""
26337
26338 #. type: =head2
26339 #: ../src/guestfs-actions.pod:802
26340 msgid "guestfs_blockdev_setro"
26341 msgstr ""
26342
26343 #. type: verbatim
26344 #: ../src/guestfs-actions.pod:804
26345 #, no-wrap
26346 msgid ""
26347 " int\n"
26348 " guestfs_blockdev_setro (guestfs_h *g,\n"
26349 "                         const char *device);\n"
26350 "\n"
26351 msgstr ""
26352
26353 #. type: =head2
26354 #: ../src/guestfs-actions.pod:816
26355 msgid "guestfs_blockdev_setrw"
26356 msgstr ""
26357
26358 #. type: verbatim
26359 #: ../src/guestfs-actions.pod:818
26360 #, no-wrap
26361 msgid ""
26362 " int\n"
26363 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26364 "                         const char *device);\n"
26365 "\n"
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../src/guestfs-actions.pod:830
26370 msgid "guestfs_btrfs_filesystem_resize"
26371 msgstr ""
26372
26373 #. type: verbatim
26374 #: ../src/guestfs-actions.pod:832
26375 #, no-wrap
26376 msgid ""
26377 " int\n"
26378 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26379 "                                  const char *mountpoint,\n"
26380 "                                  ...);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: verbatim
26385 #: ../src/guestfs-actions.pod:842
26386 #, no-wrap
26387 msgid ""
26388 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26389 "\n"
26390 msgstr ""
26391
26392 #. type: textblock
26393 #: ../src/guestfs-actions.pod:865
26394 msgid "(Added in 1.11.17)"
26395 msgstr ""
26396
26397 #. type: =head2
26398 #: ../src/guestfs-actions.pod:867
26399 msgid "guestfs_btrfs_filesystem_resize_va"
26400 msgstr ""
26401
26402 #. type: verbatim
26403 #: ../src/guestfs-actions.pod:869
26404 #, no-wrap
26405 msgid ""
26406 " int\n"
26407 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26408 "                                     const char *mountpoint,\n"
26409 "                                     va_list args);\n"
26410 "\n"
26411 msgstr ""
26412
26413 #. type: textblock
26414 #: ../src/guestfs-actions.pod:874
26415 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26416 msgstr ""
26417
26418 #. type: =head2
26419 #: ../src/guestfs-actions.pod:878
26420 msgid "guestfs_btrfs_filesystem_resize_argv"
26421 msgstr ""
26422
26423 #. type: verbatim
26424 #: ../src/guestfs-actions.pod:880
26425 #, no-wrap
26426 msgid ""
26427 " int\n"
26428 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26429 "                                       const char *mountpoint,\n"
26430 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26431 "\n"
26432 msgstr ""
26433
26434 #. type: textblock
26435 #: ../src/guestfs-actions.pod:885
26436 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26437 msgstr ""
26438
26439 #. type: =head2
26440 #: ../src/guestfs-actions.pod:889
26441 msgid "guestfs_case_sensitive_path"
26442 msgstr ""
26443
26444 #. type: verbatim
26445 #: ../src/guestfs-actions.pod:891
26446 #, no-wrap
26447 msgid ""
26448 " char *\n"
26449 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26450 "                              const char *path);\n"
26451 "\n"
26452 msgstr ""
26453
26454 #. type: textblock
26455 #: ../src/guestfs-actions.pod:917
26456 msgid ""
26457 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26458 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26459 "how the directories were originally created under Windows)."
26460 msgstr ""
26461
26462 #. type: textblock
26463 #: ../src/guestfs-actions.pod:925
26464 msgid "See also C<guestfs_realpath>."
26465 msgstr ""
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
26469 msgid "(Added in 1.0.75)"
26470 msgstr ""
26471
26472 #. type: =head2
26473 #: ../src/guestfs-actions.pod:932
26474 msgid "guestfs_cat"
26475 msgstr ""
26476
26477 #. type: verbatim
26478 #: ../src/guestfs-actions.pod:934
26479 #, no-wrap
26480 msgid ""
26481 " char *\n"
26482 " guestfs_cat (guestfs_h *g,\n"
26483 "              const char *path);\n"
26484 "\n"
26485 msgstr ""
26486
26487 #. type: textblock
26488 #: ../src/guestfs-actions.pod:940
26489 msgid ""
26490 "Note that this function cannot correctly handle binary files (specifically, "
26491 "files containing C<\\0> character which is treated as end of string).  For "
26492 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26493 "functions which have a more complex interface."
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
26498 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
26499 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
26500 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
26501 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
26502 #: ../src/guestfs-actions.pod:7713
26503 msgid "(Added in 0.4)"
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:953
26508 msgid "guestfs_checksum"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:955
26513 #, no-wrap
26514 msgid ""
26515 " char *\n"
26516 " guestfs_checksum (guestfs_h *g,\n"
26517 "                   const char *csumtype,\n"
26518 "                   const char *path);\n"
26519 "\n"
26520 msgstr ""
26521
26522 #. type: textblock
26523 #: ../src/guestfs-actions.pod:1001
26524 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26525 msgstr ""
26526
26527 #. type: textblock
26528 #: ../src/guestfs-actions.pod:1003
26529 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26530 msgstr ""
26531
26532 #. type: textblock
26533 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
26534 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
26535 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
26536 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
26537 msgid "(Added in 1.0.2)"
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:1010
26542 msgid "guestfs_checksum_device"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:1012
26547 #, no-wrap
26548 msgid ""
26549 " char *\n"
26550 " guestfs_checksum_device (guestfs_h *g,\n"
26551 "                          const char *csumtype,\n"
26552 "                          const char *device);\n"
26553 "\n"
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:1017
26558 msgid ""
26559 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26560 "device named C<device>.  For the types of checksums supported see the "
26561 "C<guestfs_checksum> command."
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
26566 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
26567 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
26568 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
26569 #: ../src/guestfs-actions.pod:7725
26570 msgid "(Added in 1.3.2)"
26571 msgstr ""
26572
26573 #. type: =head2
26574 #: ../src/guestfs-actions.pod:1026
26575 msgid "guestfs_checksums_out"
26576 msgstr ""
26577
26578 #. type: verbatim
26579 #: ../src/guestfs-actions.pod:1028
26580 #, no-wrap
26581 msgid ""
26582 " int\n"
26583 " guestfs_checksums_out (guestfs_h *g,\n"
26584 "                        const char *csumtype,\n"
26585 "                        const char *directory,\n"
26586 "                        const char *sumsfile);\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: textblock
26591 #: ../src/guestfs-actions.pod:1048
26592 msgid "(Added in 1.3.7)"
26593 msgstr ""
26594
26595 #. type: =head2
26596 #: ../src/guestfs-actions.pod:1050
26597 msgid "guestfs_chmod"
26598 msgstr ""
26599
26600 #. type: verbatim
26601 #: ../src/guestfs-actions.pod:1052
26602 #, no-wrap
26603 msgid ""
26604 " int\n"
26605 " guestfs_chmod (guestfs_h *g,\n"
26606 "                int mode,\n"
26607 "                const char *path);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: =head2
26612 #: ../src/guestfs-actions.pod:1070
26613 msgid "guestfs_chown"
26614 msgstr ""
26615
26616 #. type: verbatim
26617 #: ../src/guestfs-actions.pod:1072
26618 #, no-wrap
26619 msgid ""
26620 " int\n"
26621 " guestfs_chown (guestfs_h *g,\n"
26622 "                int owner,\n"
26623 "                int group,\n"
26624 "                const char *path);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../src/guestfs-actions.pod:1088
26630 msgid "guestfs_command"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../src/guestfs-actions.pod:1090
26635 #, no-wrap
26636 msgid ""
26637 " char *\n"
26638 " guestfs_command (guestfs_h *g,\n"
26639 "                  char *const *arguments);\n"
26640 "\n"
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:1099
26645 msgid ""
26646 "The single parameter is an argv-style list of arguments.  The first element "
26647 "is the name of the program to run.  Subsequent elements are parameters.  The "
26648 "list must be non-empty (ie. must contain a program name).  Note that the "
26649 "command runs directly, and is I<not> invoked via the shell (see "
26650 "C<guestfs_sh>)."
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
26655 #: ../src/guestfs-actions.pod:1726
26656 msgid "(Added in 0.9.1)"
26657 msgstr ""
26658
26659 #. type: =head2
26660 #: ../src/guestfs-actions.pod:1132
26661 msgid "guestfs_command_lines"
26662 msgstr ""
26663
26664 #. type: verbatim
26665 #: ../src/guestfs-actions.pod:1134
26666 #, no-wrap
26667 msgid ""
26668 " char **\n"
26669 " guestfs_command_lines (guestfs_h *g,\n"
26670 "                        char *const *arguments);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:1138
26676 msgid ""
26677 "This is the same as C<guestfs_command>, but splits the result into a list of "
26678 "lines."
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:1141
26683 msgid "See also: C<guestfs_sh_lines>"
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../src/guestfs-actions.pod:1152
26688 #, fuzzy
26689 #| msgid "guestfs_zero_device"
26690 msgid "guestfs_compress_device_out"
26691 msgstr "guestfs_zero_device"
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:1154
26695 #, fuzzy, no-wrap
26696 #| msgid ""
26697 #| " int\n"
26698 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
26699 #| "                             const char *device,\n"
26700 #| "                             const char *key,\n"
26701 #| "                             int keyslot,\n"
26702 #| "                             const char *cipher);\n"
26703 #| "\n"
26704 msgid ""
26705 " int\n"
26706 " guestfs_compress_device_out (guestfs_h *g,\n"
26707 "                              const char *ctype,\n"
26708 "                              const char *device,\n"
26709 "                              const char *zdevice,\n"
26710 "                              ...);\n"
26711 "\n"
26712 msgstr ""
26713 " int\n"
26714 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26715 "                             const char *device,\n"
26716 "                             const char *key,\n"
26717 "                             int keyslot,\n"
26718 "                             const char *cipher);\n"
26719 "\n"
26720
26721 #. type: verbatim
26722 #: ../src/guestfs-actions.pod:1166
26723 #, no-wrap
26724 msgid ""
26725 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26726 "\n"
26727 msgstr ""
26728
26729 #. type: textblock
26730 #: ../src/guestfs-actions.pod:1171
26731 msgid ""
26732 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26733 "C<guestfs_compress_out>."
26734 msgstr ""
26735
26736 #. type: textblock
26737 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
26738 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
26739 #, fuzzy
26740 #| msgid "(Added in 1.3.1)"
26741 msgid "(Added in 1.13.15)"
26742 msgstr "(Додано у 1.3.1)"
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:1178
26746 #, fuzzy
26747 #| msgid "guestfs_zero_device"
26748 msgid "guestfs_compress_device_out_va"
26749 msgstr "guestfs_zero_device"
26750
26751 #. type: verbatim
26752 #: ../src/guestfs-actions.pod:1180
26753 #, fuzzy, no-wrap
26754 #| msgid ""
26755 #| " int\n"
26756 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
26757 #| "                             const char *device,\n"
26758 #| "                             const char *key,\n"
26759 #| "                             int keyslot,\n"
26760 #| "                             const char *cipher);\n"
26761 #| "\n"
26762 msgid ""
26763 " int\n"
26764 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26765 "                                 const char *ctype,\n"
26766 "                                 const char *device,\n"
26767 "                                 const char *zdevice,\n"
26768 "                                 va_list args);\n"
26769 "\n"
26770 msgstr ""
26771 " int\n"
26772 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26773 "                             const char *device,\n"
26774 "                             const char *key,\n"
26775 "                             int keyslot,\n"
26776 "                             const char *cipher);\n"
26777 "\n"
26778
26779 #. type: textblock
26780 #: ../src/guestfs-actions.pod:1187
26781 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26782 msgstr ""
26783
26784 #. type: =head2
26785 #: ../src/guestfs-actions.pod:1191
26786 #, fuzzy
26787 #| msgid "guestfs_mkfs_opts_argv"
26788 msgid "guestfs_compress_device_out_argv"
26789 msgstr "guestfs_mkfs_opts_argv"
26790
26791 #. type: verbatim
26792 #: ../src/guestfs-actions.pod:1193
26793 #, fuzzy, no-wrap
26794 #| msgid ""
26795 #| " int\n"
26796 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26797 #| "                         const char *fstype,\n"
26798 #| "                         const char *device,\n"
26799 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26800 #| "\n"
26801 msgid ""
26802 " int\n"
26803 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26804 "                                   const char *ctype,\n"
26805 "                                   const char *device,\n"
26806 "                                   const char *zdevice,\n"
26807 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26808 "\n"
26809 msgstr ""
26810 " int\n"
26811 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26812 "                         const char *fstype,\n"
26813 "                         const char *device,\n"
26814 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26815 "\n"
26816
26817 #. type: textblock
26818 #: ../src/guestfs-actions.pod:1200
26819 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26820 msgstr ""
26821
26822 #. type: =head2
26823 #: ../src/guestfs-actions.pod:1204
26824 #, fuzzy
26825 #| msgid "guestfs_create"
26826 msgid "guestfs_compress_out"
26827 msgstr "guestfs_create"
26828
26829 #. type: verbatim
26830 #: ../src/guestfs-actions.pod:1206
26831 #, fuzzy, no-wrap
26832 #| msgid ""
26833 #| " int\n"
26834 #| " guestfs_luks_add_key (guestfs_h *g,\n"
26835 #| "                       const char *device,\n"
26836 #| "                       const char *key,\n"
26837 #| "                       const char *newkey,\n"
26838 #| "                       int keyslot);\n"
26839 #| "\n"
26840 msgid ""
26841 " int\n"
26842 " guestfs_compress_out (guestfs_h *g,\n"
26843 "                       const char *ctype,\n"
26844 "                       const char *file,\n"
26845 "                       const char *zfile,\n"
26846 "                       ...);\n"
26847 "\n"
26848 msgstr ""
26849 " int\n"
26850 " guestfs_luks_add_key (guestfs_h *g,\n"
26851 "                       const char *device,\n"
26852 "                       const char *key,\n"
26853 "                       const char *newkey,\n"
26854 "                       int keyslot);\n"
26855 "\n"
26856
26857 #. type: verbatim
26858 #: ../src/guestfs-actions.pod:1218
26859 #, no-wrap
26860 msgid ""
26861 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:1237
26867 #, fuzzy
26868 #| msgid "guestfs_mkfs_opts_va"
26869 msgid "guestfs_compress_out_va"
26870 msgstr "guestfs_mkfs_opts_va"
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:1239
26874 #, fuzzy, no-wrap
26875 #| msgid ""
26876 #| " int\n"
26877 #| " guestfs_luks_add_key (guestfs_h *g,\n"
26878 #| "                       const char *device,\n"
26879 #| "                       const char *key,\n"
26880 #| "                       const char *newkey,\n"
26881 #| "                       int keyslot);\n"
26882 #| "\n"
26883 msgid ""
26884 " int\n"
26885 " guestfs_compress_out_va (guestfs_h *g,\n"
26886 "                          const char *ctype,\n"
26887 "                          const char *file,\n"
26888 "                          const char *zfile,\n"
26889 "                          va_list args);\n"
26890 "\n"
26891 msgstr ""
26892 " int\n"
26893 " guestfs_luks_add_key (guestfs_h *g,\n"
26894 "                       const char *device,\n"
26895 "                       const char *key,\n"
26896 "                       const char *newkey,\n"
26897 "                       int keyslot);\n"
26898 "\n"
26899
26900 #. type: textblock
26901 #: ../src/guestfs-actions.pod:1246
26902 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26903 msgstr ""
26904
26905 #. type: =head2
26906 #: ../src/guestfs-actions.pod:1250
26907 #, fuzzy
26908 #| msgid "guestfs_mkfs_opts_argv"
26909 msgid "guestfs_compress_out_argv"
26910 msgstr "guestfs_mkfs_opts_argv"
26911
26912 #. type: verbatim
26913 #: ../src/guestfs-actions.pod:1252
26914 #, fuzzy, no-wrap
26915 #| msgid ""
26916 #| " int\n"
26917 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26918 #| "                         const char *fstype,\n"
26919 #| "                         const char *device,\n"
26920 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26921 #| "\n"
26922 msgid ""
26923 " int\n"
26924 " guestfs_compress_out_argv (guestfs_h *g,\n"
26925 "                            const char *ctype,\n"
26926 "                            const char *file,\n"
26927 "                            const char *zfile,\n"
26928 "                            const struct guestfs_compress_out_argv *optargs);\n"
26929 "\n"
26930 msgstr ""
26931 " int\n"
26932 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26933 "                         const char *fstype,\n"
26934 "                         const char *device,\n"
26935 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26936 "\n"
26937
26938 #. type: textblock
26939 #: ../src/guestfs-actions.pod:1259
26940 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26941 msgstr ""
26942
26943 #. type: =head2
26944 #: ../src/guestfs-actions.pod:1263
26945 msgid "guestfs_config"
26946 msgstr ""
26947
26948 #. type: verbatim
26949 #: ../src/guestfs-actions.pod:1265
26950 #, no-wrap
26951 msgid ""
26952 " int\n"
26953 " guestfs_config (guestfs_h *g,\n"
26954 "                 const char *qemuparam,\n"
26955 "                 const char *qemuvalue);\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../src/guestfs-actions.pod:1283
26961 msgid "guestfs_copy_size"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../src/guestfs-actions.pod:1285
26966 #, no-wrap
26967 msgid ""
26968 " int\n"
26969 " guestfs_copy_size (guestfs_h *g,\n"
26970 "                    const char *src,\n"
26971 "                    const char *dest,\n"
26972 "                    int64_t size);\n"
26973 "\n"
26974 msgstr ""
26975
26976 #. type: textblock
26977 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
26978 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
26979 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
26980 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
26981 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
26982 #: ../src/guestfs-actions.pod:7961
26983 msgid ""
26984 "This long-running command can generate progress notification messages so "
26985 "that the caller can display a progress bar or indicator.  To receive these "
26986 "messages, the caller must register a progress event callback.  See L<guestfs"
26987 "(3)/GUESTFS_EVENT_PROGRESS>."
26988 msgstr ""
26989
26990 #. type: textblock
26991 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
26992 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
26993 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
26994 msgid "(Added in 1.0.87)"
26995 msgstr ""
26996
26997 #. type: =head2
26998 #: ../src/guestfs-actions.pod:1306
26999 msgid "guestfs_cp"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../src/guestfs-actions.pod:1308
27004 #, no-wrap
27005 msgid ""
27006 " int\n"
27007 " guestfs_cp (guestfs_h *g,\n"
27008 "             const char *src,\n"
27009 "             const char *dest);\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
27015 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
27016 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
27017 #: ../src/guestfs-actions.pod:5734
27018 msgid "(Added in 1.0.18)"
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../src/guestfs-actions.pod:1320
27023 msgid "guestfs_cp_a"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:1322
27028 #, no-wrap
27029 msgid ""
27030 " int\n"
27031 " guestfs_cp_a (guestfs_h *g,\n"
27032 "               const char *src,\n"
27033 "               const char *dest);\n"
27034 "\n"
27035 msgstr ""
27036
27037 #. type: =head2
27038 #: ../src/guestfs-actions.pod:1334
27039 msgid "guestfs_dd"
27040 msgstr ""
27041
27042 #. type: verbatim
27043 #: ../src/guestfs-actions.pod:1336
27044 #, no-wrap
27045 msgid ""
27046 " int\n"
27047 " guestfs_dd (guestfs_h *g,\n"
27048 "             const char *src,\n"
27049 "             const char *dest);\n"
27050 "\n"
27051 msgstr ""
27052
27053 #. type: textblock
27054 #: ../src/guestfs-actions.pod:1346
27055 msgid ""
27056 "If the destination is a device, it must be as large or larger than the "
27057 "source file or device, otherwise the copy will fail.  This command cannot do "
27058 "partial copies (see C<guestfs_copy_size>)."
27059 msgstr ""
27060
27061 #. type: =head2
27062 #: ../src/guestfs-actions.pod:1354
27063 msgid "guestfs_df"
27064 msgstr ""
27065
27066 #. type: verbatim
27067 #: ../src/guestfs-actions.pod:1356
27068 #, no-wrap
27069 msgid ""
27070 " char *\n"
27071 " guestfs_df (guestfs_h *g);\n"
27072 "\n"
27073 msgstr ""
27074
27075 #. type: textblock
27076 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
27077 msgid ""
27078 "This command is mostly useful for interactive sessions.  It is I<not> "
27079 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27080 "from programs."
27081 msgstr ""
27082
27083 #. type: textblock
27084 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
27085 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
27086 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
27087 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
27088 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
27089 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
27090 #: ../src/guestfs-actions.pod:7804
27091 msgid "(Added in 1.0.54)"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:1370
27096 msgid "guestfs_df_h"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:1372
27101 #, no-wrap
27102 msgid ""
27103 " char *\n"
27104 " guestfs_df_h (guestfs_h *g);\n"
27105 "\n"
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../src/guestfs-actions.pod:1387
27110 msgid "guestfs_dmesg"
27111 msgstr ""
27112
27113 #. type: verbatim
27114 #: ../src/guestfs-actions.pod:1389
27115 #, no-wrap
27116 msgid ""
27117 " char *\n"
27118 " guestfs_dmesg (guestfs_h *g);\n"
27119 "\n"
27120 msgstr ""
27121
27122 #. type: textblock
27123 #: ../src/guestfs-actions.pod:1396
27124 msgid ""
27125 "Another way to get the same information is to enable verbose messages with "
27126 "C<guestfs_set_verbose> or by setting the environment variable "
27127 "C<LIBGUESTFS_DEBUG=1> before running the program."
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../src/guestfs-actions.pod:1406
27132 msgid "guestfs_download"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../src/guestfs-actions.pod:1408
27137 #, no-wrap
27138 msgid ""
27139 " int\n"
27140 " guestfs_download (guestfs_h *g,\n"
27141 "                   const char *remotefilename,\n"
27142 "                   const char *filename);\n"
27143 "\n"
27144 msgstr ""
27145
27146 #. type: textblock
27147 #: ../src/guestfs-actions.pod:1418
27148 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27149 msgstr ""
27150
27151 #. type: =head2
27152 #: ../src/guestfs-actions.pod:1429
27153 msgid "guestfs_download_offset"
27154 msgstr ""
27155
27156 #. type: verbatim
27157 #: ../src/guestfs-actions.pod:1431
27158 #, no-wrap
27159 msgid ""
27160 " int\n"
27161 " guestfs_download_offset (guestfs_h *g,\n"
27162 "                          const char *remotefilename,\n"
27163 "                          const char *filename,\n"
27164 "                          int64_t offset,\n"
27165 "                          int64_t size);\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:1444
27171 msgid ""
27172 "Note that there is no limit on the amount of data that can be downloaded "
27173 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27174 "full amount unless an error occurs."
27175 msgstr ""
27176
27177 #. type: textblock
27178 #: ../src/guestfs-actions.pod:1449
27179 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27180 msgstr ""
27181
27182 #. type: textblock
27183 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
27184 msgid "(Added in 1.5.17)"
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:1460
27189 msgid "guestfs_drop_caches"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:1462
27194 #, no-wrap
27195 msgid ""
27196 " int\n"
27197 " guestfs_drop_caches (guestfs_h *g,\n"
27198 "                      int whattodrop);\n"
27199 "\n"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:1480
27204 msgid "guestfs_du"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:1482
27209 #, no-wrap
27210 msgid ""
27211 " int64_t\n"
27212 " guestfs_du (guestfs_h *g,\n"
27213 "             const char *path);\n"
27214 "\n"
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../src/guestfs-actions.pod:1505
27219 msgid "guestfs_e2fsck_f"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../src/guestfs-actions.pod:1507
27224 #, no-wrap
27225 msgid ""
27226 " int\n"
27227 " guestfs_e2fsck_f (guestfs_h *g,\n"
27228 "                   const char *device);\n"
27229 "\n"
27230 msgstr ""
27231
27232 #. type: textblock
27233 #: ../src/guestfs-actions.pod:1515
27234 msgid ""
27235 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27236 "Normally you should use C<guestfs_fsck>."
27237 msgstr ""
27238
27239 #. type: textblock
27240 #: ../src/guestfs-actions.pod:1520
27241 msgid "(Added in 1.0.29)"
27242 msgstr ""
27243
27244 #. type: =head2
27245 #: ../src/guestfs-actions.pod:1522
27246 msgid "guestfs_echo_daemon"
27247 msgstr ""
27248
27249 #. type: verbatim
27250 #: ../src/guestfs-actions.pod:1524
27251 #, no-wrap
27252 msgid ""
27253 " char *\n"
27254 " guestfs_echo_daemon (guestfs_h *g,\n"
27255 "                      char *const *words);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:1533
27261 msgid "See also C<guestfs_ping_daemon>."
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
27266 #: ../src/guestfs-actions.pod:6607
27267 msgid "(Added in 1.0.69)"
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:1540
27272 msgid "guestfs_egrep"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:1542
27277 #, no-wrap
27278 msgid ""
27279 " char **\n"
27280 " guestfs_egrep (guestfs_h *g,\n"
27281 "                const char *regex,\n"
27282 "                const char *path);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
27288 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
27289 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
27290 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
27291 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
27292 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
27293 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
27294 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
27295 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
27296 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
27297 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
27298 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
27299 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
27300 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
27301 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
27302 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
27303 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
27304 msgid "(Added in 1.0.66)"
27305 msgstr ""
27306
27307 #. type: =head2
27308 #: ../src/guestfs-actions.pod:1559
27309 msgid "guestfs_egrepi"
27310 msgstr ""
27311
27312 #. type: verbatim
27313 #: ../src/guestfs-actions.pod:1561
27314 #, no-wrap
27315 msgid ""
27316 " char **\n"
27317 " guestfs_egrepi (guestfs_h *g,\n"
27318 "                 const char *regex,\n"
27319 "                 const char *path);\n"
27320 "\n"
27321 msgstr ""
27322
27323 #. type: =head2
27324 #: ../src/guestfs-actions.pod:1578
27325 msgid "guestfs_equal"
27326 msgstr ""
27327
27328 #. type: verbatim
27329 #: ../src/guestfs-actions.pod:1580
27330 #, no-wrap
27331 msgid ""
27332 " int\n"
27333 " guestfs_equal (guestfs_h *g,\n"
27334 "                const char *file1,\n"
27335 "                const char *file2);\n"
27336 "\n"
27337 msgstr ""
27338
27339 #. type: =head2
27340 #: ../src/guestfs-actions.pod:1594
27341 msgid "guestfs_exists"
27342 msgstr ""
27343
27344 #. type: verbatim
27345 #: ../src/guestfs-actions.pod:1596
27346 #, no-wrap
27347 msgid ""
27348 " int\n"
27349 " guestfs_exists (guestfs_h *g,\n"
27350 "                 const char *path);\n"
27351 "\n"
27352 msgstr ""
27353
27354 #. type: textblock
27355 #: ../src/guestfs-actions.pod:1603
27356 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27357 msgstr ""
27358
27359 #. type: =head2
27360 #: ../src/guestfs-actions.pod:1609
27361 msgid "guestfs_fallocate"
27362 msgstr ""
27363
27364 #. type: verbatim
27365 #: ../src/guestfs-actions.pod:1611
27366 #, no-wrap
27367 msgid ""
27368 " int\n"
27369 " guestfs_fallocate (guestfs_h *g,\n"
27370 "                    const char *path,\n"
27371 "                    int len);\n"
27372 "\n"
27373 msgstr ""
27374
27375 #. type: textblock
27376 #: ../src/guestfs-actions.pod:1616
27377 msgid ""
27378 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27379 "call instead."
27380 msgstr ""
27381
27382 #. type: =head2
27383 #: ../src/guestfs-actions.pod:1635
27384 msgid "guestfs_fallocate64"
27385 msgstr ""
27386
27387 #. type: verbatim
27388 #: ../src/guestfs-actions.pod:1637
27389 #, no-wrap
27390 msgid ""
27391 " int\n"
27392 " guestfs_fallocate64 (guestfs_h *g,\n"
27393 "                      const char *path,\n"
27394 "                      int64_t len);\n"
27395 "\n"
27396 msgstr ""
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:1646
27400 msgid ""
27401 "Note that this call allocates disk blocks for the file.  To create a sparse "
27402 "file use C<guestfs_truncate_size> instead."
27403 msgstr ""
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:1649
27407 msgid ""
27408 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27409 "oversight it only allowed 30 bit lengths to be specified, effectively "
27410 "limiting the maximum size of files created through that call to 1GB."
27411 msgstr ""
27412
27413 #. type: textblock
27414 #: ../src/guestfs-actions.pod:1660
27415 msgid "(Added in 1.3.17)"
27416 msgstr ""
27417
27418 #. type: =head2
27419 #: ../src/guestfs-actions.pod:1662
27420 msgid "guestfs_fgrep"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../src/guestfs-actions.pod:1664
27425 #, no-wrap
27426 msgid ""
27427 " char **\n"
27428 " guestfs_fgrep (guestfs_h *g,\n"
27429 "                const char *pattern,\n"
27430 "                const char *path);\n"
27431 "\n"
27432 msgstr ""
27433
27434 #. type: =head2
27435 #: ../src/guestfs-actions.pod:1681
27436 msgid "guestfs_fgrepi"
27437 msgstr ""
27438
27439 #. type: verbatim
27440 #: ../src/guestfs-actions.pod:1683
27441 #, no-wrap
27442 msgid ""
27443 " char **\n"
27444 " guestfs_fgrepi (guestfs_h *g,\n"
27445 "                 const char *pattern,\n"
27446 "                 const char *path);\n"
27447 "\n"
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:1700
27452 msgid "guestfs_file"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:1702
27457 #, no-wrap
27458 msgid ""
27459 " char *\n"
27460 " guestfs_file (guestfs_h *g,\n"
27461 "               const char *path);\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:1720
27467 msgid ""
27468 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27469 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27470 msgstr ""
27471
27472 #. type: =head2
27473 #: ../src/guestfs-actions.pod:1728
27474 msgid "guestfs_file_architecture"
27475 msgstr ""
27476
27477 #. type: verbatim
27478 #: ../src/guestfs-actions.pod:1730
27479 #, no-wrap
27480 msgid ""
27481 " char *\n"
27482 " guestfs_file_architecture (guestfs_h *g,\n"
27483 "                            const char *filename);\n"
27484 "\n"
27485 msgstr ""
27486
27487 #. type: textblock
27488 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
27489 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
27490 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
27491 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
27492 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
27493 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
27494 #: ../src/guestfs-actions.pod:3694
27495 msgid "(Added in 1.5.3)"
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:1840
27500 msgid "guestfs_filesize"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:1842
27505 #, no-wrap
27506 msgid ""
27507 " int64_t\n"
27508 " guestfs_filesize (guestfs_h *g,\n"
27509 "                   const char *file);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: textblock
27514 #: ../src/guestfs-actions.pod:1848
27515 msgid ""
27516 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27517 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27518 "devices, use C<guestfs_blockdev_getsize64>."
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:1854
27523 msgid "(Added in 1.0.82)"
27524 msgstr ""
27525
27526 #. type: =head2
27527 #: ../src/guestfs-actions.pod:1856
27528 msgid "guestfs_fill"
27529 msgstr ""
27530
27531 #. type: verbatim
27532 #: ../src/guestfs-actions.pod:1858
27533 #, no-wrap
27534 msgid ""
27535 " int\n"
27536 " guestfs_fill (guestfs_h *g,\n"
27537 "               int c,\n"
27538 "               int len,\n"
27539 "               const char *path);\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: textblock
27544 #: ../src/guestfs-actions.pod:1868
27545 msgid ""
27546 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27547 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27548 "bytes use C<guestfs_fill_pattern>."
27549 msgstr ""
27550
27551 #. type: textblock
27552 #: ../src/guestfs-actions.pod:1880
27553 msgid "(Added in 1.0.79)"
27554 msgstr ""
27555
27556 #. type: =head2
27557 #: ../src/guestfs-actions.pod:1882
27558 msgid "guestfs_fill_pattern"
27559 msgstr ""
27560
27561 #. type: verbatim
27562 #: ../src/guestfs-actions.pod:1884
27563 #, no-wrap
27564 msgid ""
27565 " int\n"
27566 " guestfs_fill_pattern (guestfs_h *g,\n"
27567 "                       const char *pattern,\n"
27568 "                       int len,\n"
27569 "                       const char *path);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:1890
27575 msgid ""
27576 "This function is like C<guestfs_fill> except that it creates a new file of "
27577 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27578 "pattern is truncated if necessary to ensure the length of the file is "
27579 "exactly C<len> bytes."
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:1902
27584 msgid "(Added in 1.3.12)"
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:1904
27589 msgid "guestfs_find"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:1906
27594 #, no-wrap
27595 msgid ""
27596 " char **\n"
27597 " guestfs_find (guestfs_h *g,\n"
27598 "               const char *directory);\n"
27599 "\n"
27600 msgstr ""
27601
27602 #. type: textblock
27603 #: ../src/guestfs-actions.pod:1922
27604 msgid ""
27605 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27606 msgstr ""
27607
27608 #. type: textblock
27609 #: ../src/guestfs-actions.pod:1935
27610 msgid "See also C<guestfs_find0>."
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
27615 #: ../src/guestfs-actions.pod:6152
27616 msgid "(Added in 1.0.27)"
27617 msgstr ""
27618
27619 #. type: =head2
27620 #: ../src/guestfs-actions.pod:1946
27621 msgid "guestfs_find0"
27622 msgstr ""
27623
27624 #. type: verbatim
27625 #: ../src/guestfs-actions.pod:1948
27626 #, no-wrap
27627 msgid ""
27628 " int\n"
27629 " guestfs_find0 (guestfs_h *g,\n"
27630 "                const char *directory,\n"
27631 "                const char *files);\n"
27632 "\n"
27633 msgstr ""
27634
27635 #. type: textblock
27636 #: ../src/guestfs-actions.pod:1957
27637 msgid ""
27638 "This command works the same way as C<guestfs_find> with the following "
27639 "exceptions:"
27640 msgstr ""
27641
27642 #. type: textblock
27643 #: ../src/guestfs-actions.pod:1984
27644 msgid "(Added in 1.0.74)"
27645 msgstr ""
27646
27647 #. type: =head2
27648 #: ../src/guestfs-actions.pod:1986
27649 msgid "guestfs_findfs_label"
27650 msgstr ""
27651
27652 #. type: verbatim
27653 #: ../src/guestfs-actions.pod:1988
27654 #, no-wrap
27655 msgid ""
27656 " char *\n"
27657 " guestfs_findfs_label (guestfs_h *g,\n"
27658 "                       const char *label);\n"
27659 "\n"
27660 msgstr ""
27661
27662 #. type: textblock
27663 #: ../src/guestfs-actions.pod:1996
27664 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27665 msgstr ""
27666
27667 #. type: =head2
27668 #: ../src/guestfs-actions.pod:2003
27669 msgid "guestfs_findfs_uuid"
27670 msgstr ""
27671
27672 #. type: verbatim
27673 #: ../src/guestfs-actions.pod:2005
27674 #, no-wrap
27675 msgid ""
27676 " char *\n"
27677 " guestfs_findfs_uuid (guestfs_h *g,\n"
27678 "                      const char *uuid);\n"
27679 "\n"
27680 msgstr ""
27681
27682 #. type: textblock
27683 #: ../src/guestfs-actions.pod:2013
27684 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27685 msgstr ""
27686
27687 #. type: =head2
27688 #: ../src/guestfs-actions.pod:2020
27689 msgid "guestfs_fsck"
27690 msgstr ""
27691
27692 #. type: verbatim
27693 #: ../src/guestfs-actions.pod:2022
27694 #, no-wrap
27695 msgid ""
27696 " int\n"
27697 " guestfs_fsck (guestfs_h *g,\n"
27698 "               const char *fstype,\n"
27699 "               const char *device);\n"
27700 "\n"
27701 msgstr ""
27702
27703 #. type: textblock
27704 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
27705 msgid "(Added in 1.0.16)"
27706 msgstr ""
27707
27708 #. type: =head2
27709 #: ../src/guestfs-actions.pod:2059
27710 msgid "guestfs_get_append"
27711 msgstr ""
27712
27713 #. type: verbatim
27714 #: ../src/guestfs-actions.pod:2061
27715 #, no-wrap
27716 msgid ""
27717 " const char *\n"
27718 " guestfs_get_append (guestfs_h *g);\n"
27719 "\n"
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:2069
27724 msgid ""
27725 "This function returns a string which may be NULL.  There is no way to return "
27726 "an error from this function.  The string is owned by the guest handle and "
27727 "must I<not> be freed."
27728 msgstr ""
27729
27730 #. type: textblock
27731 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
27732 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
27733 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
27734 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
27735 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
27736 msgid "(Added in 1.0.26)"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../src/guestfs-actions.pod:2075
27741 msgid "guestfs_get_attach_method"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../src/guestfs-actions.pod:2077
27746 #, no-wrap
27747 msgid ""
27748 " char *\n"
27749 " guestfs_get_attach_method (guestfs_h *g);\n"
27750 "\n"
27751 msgstr ""
27752
27753 #. type: textblock
27754 #: ../src/guestfs-actions.pod:2080
27755 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
27760 msgid "(Added in 1.9.8)"
27761 msgstr ""
27762
27763 #. type: =head2
27764 #: ../src/guestfs-actions.pod:2087
27765 msgid "guestfs_get_autosync"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:2089
27770 #, no-wrap
27771 msgid ""
27772 " int\n"
27773 " guestfs_get_autosync (guestfs_h *g);\n"
27774 "\n"
27775 msgstr ""
27776
27777 #. type: =head2
27778 #: ../src/guestfs-actions.pod:2098
27779 msgid "guestfs_get_direct"
27780 msgstr ""
27781
27782 #. type: verbatim
27783 #: ../src/guestfs-actions.pod:2100
27784 #, no-wrap
27785 msgid ""
27786 " int\n"
27787 " guestfs_get_direct (guestfs_h *g);\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: textblock
27792 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
27793 msgid "(Added in 1.0.72)"
27794 msgstr ""
27795
27796 #. type: =head2
27797 #: ../src/guestfs-actions.pod:2109
27798 msgid "guestfs_get_e2label"
27799 msgstr ""
27800
27801 #. type: verbatim
27802 #: ../src/guestfs-actions.pod:2111
27803 #, no-wrap
27804 msgid ""
27805 " char *\n"
27806 " guestfs_get_e2label (guestfs_h *g,\n"
27807 "                      const char *device);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: textblock
27812 #: ../src/guestfs-actions.pod:2115
27813 msgid ""
27814 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27815 "call instead."
27816 msgstr ""
27817
27818 #. type: textblock
27819 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
27820 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
27821 msgid "(Added in 1.0.15)"
27822 msgstr ""
27823
27824 #. type: =head2
27825 #: ../src/guestfs-actions.pod:2130
27826 msgid "guestfs_get_e2uuid"
27827 msgstr ""
27828
27829 #. type: verbatim
27830 #: ../src/guestfs-actions.pod:2132
27831 #, no-wrap
27832 msgid ""
27833 " char *\n"
27834 " guestfs_get_e2uuid (guestfs_h *g,\n"
27835 "                     const char *device);\n"
27836 "\n"
27837 msgstr ""
27838
27839 #. type: textblock
27840 #: ../src/guestfs-actions.pod:2136
27841 msgid ""
27842 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27843 "call instead."
27844 msgstr ""
27845
27846 #. type: =head2
27847 #: ../src/guestfs-actions.pod:2151
27848 msgid "guestfs_get_memsize"
27849 msgstr ""
27850
27851 #. type: verbatim
27852 #: ../src/guestfs-actions.pod:2153
27853 #, no-wrap
27854 msgid ""
27855 " int\n"
27856 " guestfs_get_memsize (guestfs_h *g);\n"
27857 "\n"
27858 msgstr ""
27859
27860 #. type: textblock
27861 #: ../src/guestfs-actions.pod:2159
27862 msgid ""
27863 "If C<guestfs_set_memsize> was not called on this handle, and if "
27864 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27865 "value for memsize."
27866 msgstr ""
27867
27868 #. type: textblock
27869 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
27870 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
27871 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
27872 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
27873 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
27874 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
27875 msgid "(Added in 1.0.55)"
27876 msgstr ""
27877
27878 #. type: =head2
27879 #: ../src/guestfs-actions.pod:2170
27880 msgid "guestfs_get_network"
27881 msgstr ""
27882
27883 #. type: verbatim
27884 #: ../src/guestfs-actions.pod:2172
27885 #, no-wrap
27886 msgid ""
27887 " int\n"
27888 " guestfs_get_network (guestfs_h *g);\n"
27889 "\n"
27890 msgstr ""
27891
27892 #. type: textblock
27893 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
27894 msgid "(Added in 1.5.4)"
27895 msgstr ""
27896
27897 #. type: =head2
27898 #: ../src/guestfs-actions.pod:2181
27899 msgid "guestfs_get_path"
27900 msgstr ""
27901
27902 #. type: verbatim
27903 #: ../src/guestfs-actions.pod:2183
27904 #, no-wrap
27905 msgid ""
27906 " const char *\n"
27907 " guestfs_get_path (guestfs_h *g);\n"
27908 "\n"
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
27913 msgid ""
27914 "This function returns a string, or NULL on error.  The string is owned by "
27915 "the guest handle and must I<not> be freed."
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:2196
27920 msgid "guestfs_get_pgroup"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:2198
27925 #, no-wrap
27926 msgid ""
27927 " int\n"
27928 " guestfs_get_pgroup (guestfs_h *g);\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: textblock
27933 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
27934 #: ../src/guestfs-actions.pod:7844
27935 #, fuzzy
27936 #| msgid "(Added in 1.5.1)"
27937 msgid "(Added in 1.11.18)"
27938 msgstr "(Додано у 1.5.1)"
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:2207
27942 msgid "guestfs_get_pid"
27943 msgstr ""
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:2209
27947 #, no-wrap
27948 msgid ""
27949 " int\n"
27950 " guestfs_get_pid (guestfs_h *g);\n"
27951 "\n"
27952 msgstr ""
27953
27954 #. type: textblock
27955 #: ../src/guestfs-actions.pod:2219
27956 msgid "(Added in 1.0.56)"
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:2221
27961 msgid "guestfs_get_qemu"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:2223
27966 #, no-wrap
27967 msgid ""
27968 " const char *\n"
27969 " guestfs_get_qemu (guestfs_h *g);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
27975 msgid "(Added in 1.0.6)"
27976 msgstr ""
27977
27978 #. type: =head2
27979 #: ../src/guestfs-actions.pod:2236
27980 msgid "guestfs_get_recovery_proc"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../src/guestfs-actions.pod:2238
27985 #, no-wrap
27986 msgid ""
27987 " int\n"
27988 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27989 "\n"
27990 msgstr ""
27991
27992 #. type: textblock
27993 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
27994 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
27995 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
27996 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
27997 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
27998 #: ../src/guestfs-actions.pod:7467
27999 msgid "(Added in 1.0.77)"
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:2247
28004 msgid "guestfs_get_selinux"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:2249
28009 #, no-wrap
28010 msgid ""
28011 " int\n"
28012 " guestfs_get_selinux (guestfs_h *g);\n"
28013 "\n"
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../src/guestfs-actions.pod:2252
28018 msgid ""
28019 "This returns the current setting of the selinux flag which is passed to the "
28020 "appliance at boot time.  See C<guestfs_set_selinux>."
28021 msgstr ""
28022
28023 #. type: textblock
28024 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
28025 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
28026 msgid "(Added in 1.0.67)"
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../src/guestfs-actions.pod:2262
28031 #, fuzzy
28032 #| msgid "guestfs_zgrep"
28033 msgid "guestfs_get_smp"
28034 msgstr "guestfs_zgrep"
28035
28036 #. type: verbatim
28037 #: ../src/guestfs-actions.pod:2264
28038 #, fuzzy, no-wrap
28039 #| msgid ""
28040 #| " int guestfs_last_errno (guestfs_h *g);\n"
28041 #| "\n"
28042 msgid ""
28043 " int\n"
28044 " guestfs_get_smp (guestfs_h *g);\n"
28045 "\n"
28046 msgstr ""
28047 " int guestfs_last_errno (guestfs_h *g);\n"
28048 "\n"
28049
28050 #. type: =head2
28051 #: ../src/guestfs-actions.pod:2273
28052 msgid "guestfs_get_state"
28053 msgstr ""
28054
28055 #. type: verbatim
28056 #: ../src/guestfs-actions.pod:2275
28057 #, no-wrap
28058 msgid ""
28059 " int\n"
28060 " guestfs_get_state (guestfs_h *g);\n"
28061 "\n"
28062 msgstr ""
28063
28064 #. type: =head2
28065 #: ../src/guestfs-actions.pod:2287
28066 msgid "guestfs_get_trace"
28067 msgstr ""
28068
28069 #. type: verbatim
28070 #: ../src/guestfs-actions.pod:2289
28071 #, no-wrap
28072 msgid ""
28073 " int\n"
28074 " guestfs_get_trace (guestfs_h *g);\n"
28075 "\n"
28076 msgstr ""
28077
28078 #. type: =head2
28079 #: ../src/guestfs-actions.pod:2298
28080 msgid "guestfs_get_umask"
28081 msgstr ""
28082
28083 #. type: verbatim
28084 #: ../src/guestfs-actions.pod:2300
28085 #, no-wrap
28086 msgid ""
28087 " int\n"
28088 " guestfs_get_umask (guestfs_h *g);\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:2303
28094 msgid ""
28095 "Return the current umask.  By default the umask is C<022> unless it has been "
28096 "set by calling C<guestfs_umask>."
28097 msgstr ""
28098
28099 #. type: =head2
28100 #: ../src/guestfs-actions.pod:2310
28101 msgid "guestfs_get_verbose"
28102 msgstr ""
28103
28104 #. type: verbatim
28105 #: ../src/guestfs-actions.pod:2312
28106 #, no-wrap
28107 msgid ""
28108 " int\n"
28109 " guestfs_get_verbose (guestfs_h *g);\n"
28110 "\n"
28111 msgstr ""
28112
28113 #. type: =head2
28114 #: ../src/guestfs-actions.pod:2321
28115 msgid "guestfs_getcon"
28116 msgstr ""
28117
28118 #. type: verbatim
28119 #: ../src/guestfs-actions.pod:2323
28120 #, no-wrap
28121 msgid ""
28122 " char *\n"
28123 " guestfs_getcon (guestfs_h *g);\n"
28124 "\n"
28125 msgstr ""
28126
28127 #. type: textblock
28128 #: ../src/guestfs-actions.pod:2328
28129 msgid ""
28130 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28131 msgstr ""
28132
28133 #. type: =head2
28134 #: ../src/guestfs-actions.pod:2336
28135 msgid "guestfs_getxattr"
28136 msgstr ""
28137
28138 #. type: verbatim
28139 #: ../src/guestfs-actions.pod:2338
28140 #, no-wrap
28141 msgid ""
28142 " char *\n"
28143 " guestfs_getxattr (guestfs_h *g,\n"
28144 "                   const char *path,\n"
28145 "                   const char *name,\n"
28146 "                   size_t *size_r);\n"
28147 "\n"
28148 msgstr ""
28149
28150 #. type: textblock
28151 #: ../src/guestfs-actions.pod:2344
28152 msgid ""
28153 "Get a single extended attribute from file C<path> named C<name>.  This call "
28154 "follows symlinks.  If you want to lookup an extended attribute for the "
28155 "symlink itself, use C<guestfs_lgetxattr>."
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
28160 msgid ""
28161 "Normally it is better to get all extended attributes from a file in one go "
28162 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28163 "implementations are buggy and do not provide a way to list out attributes.  "
28164 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28165 "extended attributes you want in advance and call this function."
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../src/guestfs-actions.pod:2358
28170 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28171 msgstr ""
28172
28173 #. type: textblock
28174 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
28175 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
28176 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
28177 #: ../src/guestfs-actions.pod:5960
28178 msgid ""
28179 "This function returns a buffer, or NULL on error.  The size of the returned "
28180 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28181 "after use>."
28182 msgstr ""
28183
28184 #. type: textblock
28185 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
28186 msgid "(Added in 1.7.24)"
28187 msgstr ""
28188
28189 #. type: =head2
28190 #: ../src/guestfs-actions.pod:2366
28191 msgid "guestfs_getxattrs"
28192 msgstr ""
28193
28194 #. type: verbatim
28195 #: ../src/guestfs-actions.pod:2368
28196 #, no-wrap
28197 msgid ""
28198 " struct guestfs_xattr_list *\n"
28199 " guestfs_getxattrs (guestfs_h *g,\n"
28200 "                    const char *path);\n"
28201 "\n"
28202 msgstr ""
28203
28204 #. type: textblock
28205 #: ../src/guestfs-actions.pod:2378
28206 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
28211 #: ../src/guestfs-actions.pod:4546
28212 msgid ""
28213 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28214 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28215 msgstr ""
28216
28217 #. type: textblock
28218 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
28219 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
28220 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
28221 #: ../src/guestfs-actions.pod:8055
28222 msgid "(Added in 1.0.59)"
28223 msgstr ""
28224
28225 #. type: =head2
28226 #: ../src/guestfs-actions.pod:2386
28227 msgid "guestfs_glob_expand"
28228 msgstr ""
28229
28230 #. type: verbatim
28231 #: ../src/guestfs-actions.pod:2388
28232 #, no-wrap
28233 msgid ""
28234 " char **\n"
28235 " guestfs_glob_expand (guestfs_h *g,\n"
28236 "                      const char *pattern);\n"
28237 "\n"
28238 msgstr ""
28239
28240 #. type: textblock
28241 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
28242 #: ../src/guestfs-actions.pod:6870
28243 msgid "(Added in 1.0.50)"
28244 msgstr ""
28245
28246 #. type: =head2
28247 #: ../src/guestfs-actions.pod:2409
28248 msgid "guestfs_grep"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../src/guestfs-actions.pod:2411
28253 #, no-wrap
28254 msgid ""
28255 " char **\n"
28256 " guestfs_grep (guestfs_h *g,\n"
28257 "               const char *regex,\n"
28258 "               const char *path);\n"
28259 "\n"
28260 msgstr ""
28261
28262 #. type: =head2
28263 #: ../src/guestfs-actions.pod:2428
28264 msgid "guestfs_grepi"
28265 msgstr ""
28266
28267 #. type: verbatim
28268 #: ../src/guestfs-actions.pod:2430
28269 #, no-wrap
28270 msgid ""
28271 " char **\n"
28272 " guestfs_grepi (guestfs_h *g,\n"
28273 "                const char *regex,\n"
28274 "                const char *path);\n"
28275 "\n"
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:2447
28280 msgid "guestfs_grub_install"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:2449
28285 #, no-wrap
28286 msgid ""
28287 " int\n"
28288 " guestfs_grub_install (guestfs_h *g,\n"
28289 "                       const char *root,\n"
28290 "                       const char *device);\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: textblock
28295 #: ../src/guestfs-actions.pod:2492
28296 msgid "(Added in 1.0.17)"
28297 msgstr ""
28298
28299 #. type: =head2
28300 #: ../src/guestfs-actions.pod:2494
28301 msgid "guestfs_head"
28302 msgstr ""
28303
28304 #. type: verbatim
28305 #: ../src/guestfs-actions.pod:2496
28306 #, no-wrap
28307 msgid ""
28308 " char **\n"
28309 " guestfs_head (guestfs_h *g,\n"
28310 "               const char *path);\n"
28311 "\n"
28312 msgstr ""
28313
28314 #. type: =head2
28315 #: ../src/guestfs-actions.pod:2512
28316 msgid "guestfs_head_n"
28317 msgstr ""
28318
28319 #. type: verbatim
28320 #: ../src/guestfs-actions.pod:2514
28321 #, no-wrap
28322 msgid ""
28323 " char **\n"
28324 " guestfs_head_n (guestfs_h *g,\n"
28325 "                 int nrlines,\n"
28326 "                 const char *path);\n"
28327 "\n"
28328 msgstr ""
28329
28330 #. type: =head2
28331 #: ../src/guestfs-actions.pod:2536
28332 msgid "guestfs_hexdump"
28333 msgstr ""
28334
28335 #. type: verbatim
28336 #: ../src/guestfs-actions.pod:2538
28337 #, no-wrap
28338 msgid ""
28339 " char *\n"
28340 " guestfs_hexdump (guestfs_h *g,\n"
28341 "                  const char *path);\n"
28342 "\n"
28343 msgstr ""
28344
28345 #. type: textblock
28346 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
28347 #: ../src/guestfs-actions.pod:6989
28348 msgid "(Added in 1.0.22)"
28349 msgstr ""
28350
28351 #. type: =head2
28352 #: ../src/guestfs-actions.pod:2553
28353 msgid "guestfs_initrd_cat"
28354 msgstr ""
28355
28356 #. type: verbatim
28357 #: ../src/guestfs-actions.pod:2555
28358 #, no-wrap
28359 msgid ""
28360 " char *\n"
28361 " guestfs_initrd_cat (guestfs_h *g,\n"
28362 "                     const char *initrdpath,\n"
28363 "                     const char *filename,\n"
28364 "                     size_t *size_r);\n"
28365 "\n"
28366 msgstr ""
28367
28368 #. type: textblock
28369 #: ../src/guestfs-actions.pod:2571
28370 msgid "See also C<guestfs_initrd_list>."
28371 msgstr ""
28372
28373 #. type: =head2
28374 #: ../src/guestfs-actions.pod:2582
28375 msgid "guestfs_initrd_list"
28376 msgstr ""
28377
28378 #. type: verbatim
28379 #: ../src/guestfs-actions.pod:2584
28380 #, no-wrap
28381 msgid ""
28382 " char **\n"
28383 " guestfs_initrd_list (guestfs_h *g,\n"
28384 "                      const char *path);\n"
28385 "\n"
28386 msgstr ""
28387
28388 #. type: =head2
28389 #: ../src/guestfs-actions.pod:2604
28390 msgid "guestfs_inotify_add_watch"
28391 msgstr ""
28392
28393 #. type: verbatim
28394 #: ../src/guestfs-actions.pod:2606
28395 #, no-wrap
28396 msgid ""
28397 " int64_t\n"
28398 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28399 "                            const char *path,\n"
28400 "                            int mask);\n"
28401 "\n"
28402 msgstr ""
28403
28404 #. type: =head2
28405 #: ../src/guestfs-actions.pod:2625
28406 msgid "guestfs_inotify_close"
28407 msgstr ""
28408
28409 #. type: verbatim
28410 #: ../src/guestfs-actions.pod:2627
28411 #, no-wrap
28412 msgid ""
28413 " int\n"
28414 " guestfs_inotify_close (guestfs_h *g);\n"
28415 "\n"
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:2638
28420 msgid "guestfs_inotify_files"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:2640
28425 #, no-wrap
28426 msgid ""
28427 " char **\n"
28428 " guestfs_inotify_files (guestfs_h *g);\n"
28429 "\n"
28430 msgstr ""
28431
28432 #. type: textblock
28433 #: ../src/guestfs-actions.pod:2643
28434 msgid ""
28435 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28436 "returns a list of pathnames of objects that were touched.  The returned "
28437 "pathnames are sorted and deduplicated."
28438 msgstr ""
28439
28440 #. type: =head2
28441 #: ../src/guestfs-actions.pod:2653
28442 msgid "guestfs_inotify_init"
28443 msgstr ""
28444
28445 #. type: verbatim
28446 #: ../src/guestfs-actions.pod:2655
28447 #, no-wrap
28448 msgid ""
28449 " int\n"
28450 " guestfs_inotify_init (guestfs_h *g,\n"
28451 "                       int maxevents);\n"
28452 "\n"
28453 msgstr ""
28454
28455 #. type: textblock
28456 #: ../src/guestfs-actions.pod:2663
28457 msgid ""
28458 "C<maxevents> is the maximum number of events which will be queued up between "
28459 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28460 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28461 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28462 "throws away events, but records the fact that it threw them away by setting "
28463 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28464 "C<guestfs_inotify_read>)."
28465 msgstr ""
28466
28467 #. type: textblock
28468 #: ../src/guestfs-actions.pod:2673
28469 msgid ""
28470 "Before any events are generated, you have to add some watches to the "
28471 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28472 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28473 msgstr ""
28474
28475 #. type: textblock
28476 #: ../src/guestfs-actions.pod:2679
28477 msgid ""
28478 "Queued up events should be read periodically by calling "
28479 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28480 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28481 "often enough then you risk the internal queue overflowing."
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../src/guestfs-actions.pod:2686
28486 msgid ""
28487 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28488 "This also removes any watches automatically."
28489 msgstr ""
28490
28491 #. type: =head2
28492 #: ../src/guestfs-actions.pod:2699
28493 msgid "guestfs_inotify_read"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../src/guestfs-actions.pod:2701
28498 #, no-wrap
28499 msgid ""
28500 " struct guestfs_inotify_event_list *\n"
28501 " guestfs_inotify_read (guestfs_h *g);\n"
28502 "\n"
28503 msgstr ""
28504
28505 #. type: textblock
28506 #: ../src/guestfs-actions.pod:2715
28507 msgid ""
28508 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28509 "there was an error.  I<The caller must call "
28510 "C<guestfs_free_inotify_event_list> after use>."
28511 msgstr ""
28512
28513 #. type: =head2
28514 #: ../src/guestfs-actions.pod:2721
28515 msgid "guestfs_inotify_rm_watch"
28516 msgstr ""
28517
28518 #. type: verbatim
28519 #: ../src/guestfs-actions.pod:2723
28520 #, no-wrap
28521 msgid ""
28522 " int\n"
28523 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28524 "                           int wd);\n"
28525 "\n"
28526 msgstr ""
28527
28528 #. type: textblock
28529 #: ../src/guestfs-actions.pod:2727
28530 msgid ""
28531 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:2734
28536 msgid "guestfs_inspect_get_arch"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:2736
28541 #, no-wrap
28542 msgid ""
28543 " char *\n"
28544 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28545 "                           const char *root);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:2740
28551 msgid ""
28552 "This returns the architecture of the inspected operating system.  The "
28553 "possible return values are listed under C<guestfs_file_architecture>."
28554 msgstr ""
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:2754
28558 msgid "guestfs_inspect_get_distro"
28559 msgstr ""
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:2756
28563 #, no-wrap
28564 msgid ""
28565 " char *\n"
28566 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28567 "                             const char *root);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: =head2
28572 #: ../src/guestfs-actions.pod:2848
28573 msgid "guestfs_inspect_get_drive_mappings"
28574 msgstr ""
28575
28576 #. type: verbatim
28577 #: ../src/guestfs-actions.pod:2850
28578 #, no-wrap
28579 msgid ""
28580 " char **\n"
28581 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28582 "                                     const char *root);\n"
28583 "\n"
28584 msgstr ""
28585
28586 #. type: textblock
28587 #: ../src/guestfs-actions.pod:2879
28588 msgid ""
28589 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28590 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28591 msgstr ""
28592
28593 #. type: textblock
28594 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
28595 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
28596 #: ../src/guestfs-actions.pod:7291
28597 msgid ""
28598 "This function returns a NULL-terminated array of strings, or NULL if there "
28599 "was an error.  The array of strings will always have length C<2n+1>, where "
28600 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28601 "caller must free the strings and the array after use>."
28602 msgstr ""
28603
28604 #. type: textblock
28605 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
28606 msgid "(Added in 1.9.17)"
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:2891
28611 msgid "guestfs_inspect_get_filesystems"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:2893
28616 #, no-wrap
28617 msgid ""
28618 " char **\n"
28619 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28620 "                                  const char *root);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: textblock
28625 #: ../src/guestfs-actions.pod:2905
28626 msgid ""
28627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28628 "C<guestfs_inspect_get_mountpoints>."
28629 msgstr ""
28630
28631 #. type: =head2
28632 #: ../src/guestfs-actions.pod:2914
28633 msgid "guestfs_inspect_get_format"
28634 msgstr ""
28635
28636 #. type: verbatim
28637 #: ../src/guestfs-actions.pod:2916
28638 #, no-wrap
28639 msgid ""
28640 " char *\n"
28641 " guestfs_inspect_get_format (guestfs_h *g,\n"
28642 "                             const char *root);\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
28648 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
28649 #: ../src/guestfs-actions.pod:6171
28650 msgid "(Added in 1.9.4)"
28651 msgstr ""
28652
28653 #. type: =head2
28654 #: ../src/guestfs-actions.pod:2952
28655 msgid "guestfs_inspect_get_hostname"
28656 msgstr ""
28657
28658 #. type: verbatim
28659 #: ../src/guestfs-actions.pod:2954
28660 #, no-wrap
28661 msgid ""
28662 " char *\n"
28663 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28664 "                               const char *root);\n"
28665 "\n"
28666 msgstr ""
28667
28668 #. type: textblock
28669 #: ../src/guestfs-actions.pod:2969
28670 msgid "(Added in 1.7.9)"
28671 msgstr ""
28672
28673 #. type: =head2
28674 #: ../src/guestfs-actions.pod:2971
28675 msgid "guestfs_inspect_get_icon"
28676 msgstr ""
28677
28678 #. type: verbatim
28679 #: ../src/guestfs-actions.pod:2973
28680 #, no-wrap
28681 msgid ""
28682 " char *\n"
28683 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28684 "                           const char *root,\n"
28685 "                           size_t *size_r,\n"
28686 "                           ...);\n"
28687 "\n"
28688 msgstr ""
28689
28690 #. type: verbatim
28691 #: ../src/guestfs-actions.pod:2984
28692 #, no-wrap
28693 msgid ""
28694 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28695 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28696 "\n"
28697 msgstr ""
28698
28699 #. type: textblock
28700 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
28701 #: ../src/guestfs-actions.pod:5120
28702 msgid "(Added in 1.11.12)"
28703 msgstr ""
28704
28705 #. type: =head2
28706 #: ../src/guestfs-actions.pod:3053
28707 msgid "guestfs_inspect_get_icon_va"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../src/guestfs-actions.pod:3055
28712 #, no-wrap
28713 msgid ""
28714 " char *\n"
28715 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28716 "                              const char *root,\n"
28717 "                              size_t *size_r,\n"
28718 "                              va_list args);\n"
28719 "\n"
28720 msgstr ""
28721
28722 #. type: textblock
28723 #: ../src/guestfs-actions.pod:3061
28724 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:3065
28729 msgid "guestfs_inspect_get_icon_argv"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:3067
28734 #, no-wrap
28735 msgid ""
28736 " char *\n"
28737 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28738 "                                const char *root,\n"
28739 "                                size_t *size_r,\n"
28740 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28741 "\n"
28742 msgstr ""
28743
28744 #. type: textblock
28745 #: ../src/guestfs-actions.pod:3073
28746 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28747 msgstr ""
28748
28749 #. type: =head2
28750 #: ../src/guestfs-actions.pod:3077
28751 msgid "guestfs_inspect_get_major_version"
28752 msgstr ""
28753
28754 #. type: verbatim
28755 #: ../src/guestfs-actions.pod:3079
28756 #, no-wrap
28757 msgid ""
28758 " int\n"
28759 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28760 "                                    const char *root);\n"
28761 "\n"
28762 msgstr ""
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:3101
28766 msgid "guestfs_inspect_get_minor_version"
28767 msgstr ""
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:3103
28771 #, no-wrap
28772 msgid ""
28773 " int\n"
28774 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28775 "                                    const char *root);\n"
28776 "\n"
28777 msgstr ""
28778
28779 #. type: textblock
28780 #: ../src/guestfs-actions.pod:3112
28781 msgid ""
28782 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28783 "C<guestfs_inspect_get_major_version>."
28784 msgstr ""
28785
28786 #. type: =head2
28787 #: ../src/guestfs-actions.pod:3119
28788 msgid "guestfs_inspect_get_mountpoints"
28789 msgstr ""
28790
28791 #. type: verbatim
28792 #: ../src/guestfs-actions.pod:3121
28793 #, no-wrap
28794 msgid ""
28795 " char **\n"
28796 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28797 "                                  const char *root);\n"
28798 "\n"
28799 msgstr ""
28800
28801 #. type: textblock
28802 #: ../src/guestfs-actions.pod:3142
28803 msgid ""
28804 "For operating systems like Windows which still use drive letters, this call "
28805 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28806 "information about the mapping of drive letters to partitions, see "
28807 "C<guestfs_inspect_get_drive_mappings>."
28808 msgstr ""
28809
28810 #. type: textblock
28811 #: ../src/guestfs-actions.pod:3148
28812 msgid ""
28813 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28814 "C<guestfs_inspect_get_filesystems>."
28815 msgstr ""
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:3159
28819 msgid "guestfs_inspect_get_package_format"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:3161
28824 #, no-wrap
28825 msgid ""
28826 " char *\n"
28827 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28828 "                                     const char *root);\n"
28829 "\n"
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../src/guestfs-actions.pod:3165
28834 msgid ""
28835 "This function and C<guestfs_inspect_get_package_management> return the "
28836 "package format and package management tool used by the inspected operating "
28837 "system.  For example for Fedora these functions would return C<rpm> (package "
28838 "format) and C<yum> (package management)."
28839 msgstr ""
28840
28841 #. type: textblock
28842 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
28843 msgid "(Added in 1.7.5)"
28844 msgstr ""
28845
28846 #. type: =head2
28847 #: ../src/guestfs-actions.pod:3185
28848 msgid "guestfs_inspect_get_package_management"
28849 msgstr ""
28850
28851 #. type: verbatim
28852 #: ../src/guestfs-actions.pod:3187
28853 #, no-wrap
28854 msgid ""
28855 " char *\n"
28856 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28857 "                                         const char *root);\n"
28858 "\n"
28859 msgstr ""
28860
28861 #. type: textblock
28862 #: ../src/guestfs-actions.pod:3191
28863 msgid ""
28864 "C<guestfs_inspect_get_package_format> and this function return the package "
28865 "format and package management tool used by the inspected operating system.  "
28866 "For example for Fedora these functions would return C<rpm> (package format) "
28867 "and C<yum> (package management)."
28868 msgstr ""
28869
28870 #. type: =head2
28871 #: ../src/guestfs-actions.pod:3213
28872 msgid "guestfs_inspect_get_product_name"
28873 msgstr ""
28874
28875 #. type: verbatim
28876 #: ../src/guestfs-actions.pod:3215
28877 #, no-wrap
28878 msgid ""
28879 " char *\n"
28880 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28881 "                                   const char *root);\n"
28882 "\n"
28883 msgstr ""
28884
28885 #. type: =head2
28886 #: ../src/guestfs-actions.pod:3234
28887 msgid "guestfs_inspect_get_product_variant"
28888 msgstr ""
28889
28890 #. type: verbatim
28891 #: ../src/guestfs-actions.pod:3236
28892 #, no-wrap
28893 msgid ""
28894 " char *\n"
28895 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28896 "                                      const char *root);\n"
28897 "\n"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:3259
28902 msgid ""
28903 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28904 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28905 msgstr ""
28906
28907 #. type: textblock
28908 #: ../src/guestfs-actions.pod:3266
28909 msgid "(Added in 1.9.13)"
28910 msgstr ""
28911
28912 #. type: =head2
28913 #: ../src/guestfs-actions.pod:3268
28914 msgid "guestfs_inspect_get_roots"
28915 msgstr ""
28916
28917 #. type: verbatim
28918 #: ../src/guestfs-actions.pod:3270
28919 #, no-wrap
28920 msgid ""
28921 " char **\n"
28922 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28923 "\n"
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../src/guestfs-actions.pod:3273
28928 msgid ""
28929 "This function is a convenient way to get the list of root devices, as "
28930 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28931 "the whole inspection process."
28932 msgstr ""
28933
28934 #. type: textblock
28935 #: ../src/guestfs-actions.pod:3277
28936 msgid ""
28937 "This returns an empty list if either no root devices were found or the "
28938 "caller has not called C<guestfs_inspect_os>."
28939 msgstr ""
28940
28941 #. type: textblock
28942 #: ../src/guestfs-actions.pod:3286
28943 msgid "(Added in 1.7.3)"
28944 msgstr ""
28945
28946 #. type: =head2
28947 #: ../src/guestfs-actions.pod:3288
28948 msgid "guestfs_inspect_get_type"
28949 msgstr ""
28950
28951 #. type: verbatim
28952 #: ../src/guestfs-actions.pod:3290
28953 #, no-wrap
28954 msgid ""
28955 " char *\n"
28956 " guestfs_inspect_get_type (guestfs_h *g,\n"
28957 "                           const char *root);\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:3327
28963 msgid "guestfs_inspect_get_windows_current_control_set"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:3329
28968 #, no-wrap
28969 msgid ""
28970 " char *\n"
28971 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28972 "                                                  const char *root);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:3347
28978 msgid "guestfs_inspect_get_windows_systemroot"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:3349
28983 #, no-wrap
28984 msgid ""
28985 " char *\n"
28986 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28987 "                                         const char *root);\n"
28988 "\n"
28989 msgstr ""
28990
28991 #. type: textblock
28992 #: ../src/guestfs-actions.pod:3365
28993 msgid "(Added in 1.5.25)"
28994 msgstr ""
28995
28996 #. type: =head2
28997 #: ../src/guestfs-actions.pod:3367
28998 msgid "guestfs_inspect_is_live"
28999 msgstr ""
29000
29001 #. type: verbatim
29002 #: ../src/guestfs-actions.pod:3369
29003 #, no-wrap
29004 msgid ""
29005 " int\n"
29006 " guestfs_inspect_is_live (guestfs_h *g,\n"
29007 "                          const char *root);\n"
29008 "\n"
29009 msgstr ""
29010
29011 #. type: textblock
29012 #: ../src/guestfs-actions.pod:3373
29013 msgid ""
29014 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29015 "disk), then this returns true if a live image was detected on the disk."
29016 msgstr ""
29017
29018 #. type: =head2
29019 #: ../src/guestfs-actions.pod:3383
29020 msgid "guestfs_inspect_is_multipart"
29021 msgstr ""
29022
29023 #. type: verbatim
29024 #: ../src/guestfs-actions.pod:3385
29025 #, no-wrap
29026 msgid ""
29027 " int\n"
29028 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29029 "                               const char *root);\n"
29030 "\n"
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../src/guestfs-actions.pod:3389
29035 msgid ""
29036 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29037 "disk), then this returns true if the disk is part of a set."
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:3399
29042 msgid "guestfs_inspect_is_netinst"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:3401
29047 #, no-wrap
29048 msgid ""
29049 " int\n"
29050 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29051 "                             const char *root);\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:3405
29057 msgid ""
29058 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29059 "disk), then this returns true if the disk is a network installer, ie. not a "
29060 "self-contained install CD but one which is likely to require network access "
29061 "to complete the install."
29062 msgstr ""
29063
29064 #. type: =head2
29065 #: ../src/guestfs-actions.pod:3417
29066 msgid "guestfs_inspect_list_applications"
29067 msgstr ""
29068
29069 #. type: verbatim
29070 #: ../src/guestfs-actions.pod:3419
29071 #, no-wrap
29072 msgid ""
29073 " struct guestfs_application_list *\n"
29074 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29075 "                                    const char *root);\n"
29076 "\n"
29077 msgstr ""
29078
29079 #. type: textblock
29080 #: ../src/guestfs-actions.pod:3425
29081 msgid ""
29082 "I<Note:> This call works differently from other parts of the inspection "
29083 "API.  You have to call C<guestfs_inspect_os>, then "
29084 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29085 "this.  Listing applications is a significantly more difficult operation "
29086 "which requires access to the full filesystem.  Also note that unlike the "
29087 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29088 "the libguestfs handle, this call actually reads parts of the mounted "
29089 "filesystems during the call."
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:3515
29094 msgid ""
29095 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29096 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29097 "after use>."
29098 msgstr ""
29099
29100 #. type: textblock
29101 #: ../src/guestfs-actions.pod:3519
29102 msgid "(Added in 1.7.8)"
29103 msgstr ""
29104
29105 #. type: =head2
29106 #: ../src/guestfs-actions.pod:3521
29107 msgid "guestfs_inspect_os"
29108 msgstr ""
29109
29110 #. type: verbatim
29111 #: ../src/guestfs-actions.pod:3523
29112 #, no-wrap
29113 msgid ""
29114 " char **\n"
29115 " guestfs_inspect_os (guestfs_h *g);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: textblock
29120 #: ../src/guestfs-actions.pod:3539
29121 msgid ""
29122 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29123 "functions in order to query further information about each operating system, "
29124 "such as the name and version."
29125 msgstr ""
29126
29127 #. type: textblock
29128 #: ../src/guestfs-actions.pod:3544
29129 msgid ""
29130 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29131 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29132 "the contents.  This should be called with no disks currently mounted.  The "
29133 "function may also use Augeas, so any existing Augeas handle will be closed."
29134 msgstr ""
29135
29136 #. type: textblock
29137 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
29138 #: ../src/guestfs-actions.pod:3969
29139 msgid "See also C<guestfs_list_filesystems>."
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:3564
29144 msgid "guestfs_is_blockdev"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:3566
29149 #, no-wrap
29150 msgid ""
29151 " int\n"
29152 " guestfs_is_blockdev (guestfs_h *g,\n"
29153 "                      const char *path);\n"
29154 "\n"
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
29159 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
29160 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
29161 #: ../src/guestfs-actions.pod:3734
29162 msgid "See also C<guestfs_stat>."
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
29167 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
29168 #: ../src/guestfs-actions.pod:3738
29169 msgid "(Added in 1.5.10)"
29170 msgstr ""
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:3579
29174 msgid "guestfs_is_busy"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:3581
29179 #, no-wrap
29180 msgid ""
29181 " int\n"
29182 " guestfs_is_busy (guestfs_h *g);\n"
29183 "\n"
29184 msgstr ""
29185
29186 #. type: =head2
29187 #: ../src/guestfs-actions.pod:3593
29188 msgid "guestfs_is_chardev"
29189 msgstr ""
29190
29191 #. type: verbatim
29192 #: ../src/guestfs-actions.pod:3595
29193 #, no-wrap
29194 msgid ""
29195 " int\n"
29196 " guestfs_is_chardev (guestfs_h *g,\n"
29197 "                     const char *path);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: =head2
29202 #: ../src/guestfs-actions.pod:3608
29203 msgid "guestfs_is_config"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../src/guestfs-actions.pod:3610
29208 #, no-wrap
29209 msgid ""
29210 " int\n"
29211 " guestfs_is_config (guestfs_h *g);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: =head2
29216 #: ../src/guestfs-actions.pod:3622
29217 msgid "guestfs_is_dir"
29218 msgstr ""
29219
29220 #. type: verbatim
29221 #: ../src/guestfs-actions.pod:3624
29222 #, no-wrap
29223 msgid ""
29224 " int\n"
29225 " guestfs_is_dir (guestfs_h *g,\n"
29226 "                 const char *path);\n"
29227 "\n"
29228 msgstr ""
29229
29230 #. type: =head2
29231 #: ../src/guestfs-actions.pod:3638
29232 msgid "guestfs_is_fifo"
29233 msgstr ""
29234
29235 #. type: verbatim
29236 #: ../src/guestfs-actions.pod:3640
29237 #, no-wrap
29238 msgid ""
29239 " int\n"
29240 " guestfs_is_fifo (guestfs_h *g,\n"
29241 "                  const char *path);\n"
29242 "\n"
29243 msgstr ""
29244
29245 #. type: =head2
29246 #: ../src/guestfs-actions.pod:3653
29247 msgid "guestfs_is_file"
29248 msgstr ""
29249
29250 #. type: verbatim
29251 #: ../src/guestfs-actions.pod:3655
29252 #, no-wrap
29253 msgid ""
29254 " int\n"
29255 " guestfs_is_file (guestfs_h *g,\n"
29256 "                  const char *path);\n"
29257 "\n"
29258 msgstr ""
29259
29260 #. type: =head2
29261 #: ../src/guestfs-actions.pod:3669
29262 msgid "guestfs_is_launching"
29263 msgstr ""
29264
29265 #. type: verbatim
29266 #: ../src/guestfs-actions.pod:3671
29267 #, no-wrap
29268 msgid ""
29269 " int\n"
29270 " guestfs_is_launching (guestfs_h *g);\n"
29271 "\n"
29272 msgstr ""
29273
29274 #. type: =head2
29275 #: ../src/guestfs-actions.pod:3683
29276 msgid "guestfs_is_lv"
29277 msgstr ""
29278
29279 #. type: verbatim
29280 #: ../src/guestfs-actions.pod:3685
29281 #, no-wrap
29282 msgid ""
29283 " int\n"
29284 " guestfs_is_lv (guestfs_h *g,\n"
29285 "                const char *device);\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: =head2
29290 #: ../src/guestfs-actions.pod:3696
29291 msgid "guestfs_is_ready"
29292 msgstr ""
29293
29294 #. type: verbatim
29295 #: ../src/guestfs-actions.pod:3698
29296 #, no-wrap
29297 msgid ""
29298 " int\n"
29299 " guestfs_is_ready (guestfs_h *g);\n"
29300 "\n"
29301 msgstr ""
29302
29303 #. type: =head2
29304 #: ../src/guestfs-actions.pod:3710
29305 msgid "guestfs_is_socket"
29306 msgstr ""
29307
29308 #. type: verbatim
29309 #: ../src/guestfs-actions.pod:3712
29310 #, no-wrap
29311 msgid ""
29312 " int\n"
29313 " guestfs_is_socket (guestfs_h *g,\n"
29314 "                    const char *path);\n"
29315 "\n"
29316 msgstr ""
29317
29318 #. type: =head2
29319 #: ../src/guestfs-actions.pod:3725
29320 msgid "guestfs_is_symlink"
29321 msgstr ""
29322
29323 #. type: verbatim
29324 #: ../src/guestfs-actions.pod:3727
29325 #, no-wrap
29326 msgid ""
29327 " int\n"
29328 " guestfs_is_symlink (guestfs_h *g,\n"
29329 "                     const char *path);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:3740
29335 msgid "guestfs_is_zero"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:3742
29340 #, no-wrap
29341 msgid ""
29342 " int\n"
29343 " guestfs_is_zero (guestfs_h *g,\n"
29344 "                  const char *path);\n"
29345 "\n"
29346 msgstr ""
29347
29348 #. type: textblock
29349 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
29350 msgid "(Added in 1.11.8)"
29351 msgstr ""
29352
29353 #. type: =head2
29354 #: ../src/guestfs-actions.pod:3753
29355 msgid "guestfs_is_zero_device"
29356 msgstr ""
29357
29358 #. type: verbatim
29359 #: ../src/guestfs-actions.pod:3755
29360 #, no-wrap
29361 msgid ""
29362 " int\n"
29363 " guestfs_is_zero_device (guestfs_h *g,\n"
29364 "                         const char *device);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: =head2
29369 #: ../src/guestfs-actions.pod:3767
29370 msgid "guestfs_kill_subprocess"
29371 msgstr ""
29372
29373 #. type: verbatim
29374 #: ../src/guestfs-actions.pod:3769
29375 #, no-wrap
29376 msgid ""
29377 " int\n"
29378 " guestfs_kill_subprocess (guestfs_h *g);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: =head2
29383 #: ../src/guestfs-actions.pod:3778
29384 msgid "guestfs_launch"
29385 msgstr ""
29386
29387 #. type: verbatim
29388 #: ../src/guestfs-actions.pod:3780
29389 #, no-wrap
29390 msgid ""
29391 " int\n"
29392 " guestfs_launch (guestfs_h *g);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: =head2
29397 #: ../src/guestfs-actions.pod:3798
29398 msgid "guestfs_lchown"
29399 msgstr ""
29400
29401 #. type: verbatim
29402 #: ../src/guestfs-actions.pod:3800
29403 #, no-wrap
29404 msgid ""
29405 " int\n"
29406 " guestfs_lchown (guestfs_h *g,\n"
29407 "                 int owner,\n"
29408 "                 int group,\n"
29409 "                 const char *path);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:3806
29415 msgid ""
29416 "Change the file owner to C<owner> and group to C<group>.  This is like "
29417 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29418 "changed, not the target."
29419 msgstr ""
29420
29421 #. type: =head2
29422 #: ../src/guestfs-actions.pod:3818
29423 msgid "guestfs_lgetxattr"
29424 msgstr ""
29425
29426 #. type: verbatim
29427 #: ../src/guestfs-actions.pod:3820
29428 #, no-wrap
29429 msgid ""
29430 " char *\n"
29431 " guestfs_lgetxattr (guestfs_h *g,\n"
29432 "                    const char *path,\n"
29433 "                    const char *name,\n"
29434 "                    size_t *size_r);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../src/guestfs-actions.pod:3840
29440 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:3848
29445 msgid "guestfs_lgetxattrs"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:3850
29450 #, no-wrap
29451 msgid ""
29452 " struct guestfs_xattr_list *\n"
29453 " guestfs_lgetxattrs (guestfs_h *g,\n"
29454 "                     const char *path);\n"
29455 "\n"
29456 msgstr ""
29457
29458 #. type: textblock
29459 #: ../src/guestfs-actions.pod:3854
29460 msgid ""
29461 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29462 "then it returns the extended attributes of the link itself."
29463 msgstr ""
29464
29465 #. type: =head2
29466 #: ../src/guestfs-actions.pod:3864
29467 msgid "guestfs_list_9p"
29468 msgstr ""
29469
29470 #. type: verbatim
29471 #: ../src/guestfs-actions.pod:3866
29472 #, no-wrap
29473 msgid ""
29474 " char **\n"
29475 " guestfs_list_9p (guestfs_h *g);\n"
29476 "\n"
29477 msgstr ""
29478
29479 #. type: =head2
29480 #: ../src/guestfs-actions.pod:3878
29481 msgid "guestfs_list_devices"
29482 msgstr ""
29483
29484 #. type: verbatim
29485 #: ../src/guestfs-actions.pod:3880
29486 #, no-wrap
29487 msgid ""
29488 " char **\n"
29489 " guestfs_list_devices (guestfs_h *g);\n"
29490 "\n"
29491 msgstr ""
29492
29493 #. type: =head2
29494 #: ../src/guestfs-actions.pod:3895
29495 msgid "guestfs_list_dm_devices"
29496 msgstr ""
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-actions.pod:3897
29500 #, no-wrap
29501 msgid ""
29502 " char **\n"
29503 " guestfs_list_dm_devices (guestfs_h *g);\n"
29504 "\n"
29505 msgstr ""
29506
29507 #. type: textblock
29508 #: ../src/guestfs-actions.pod:3902
29509 msgid ""
29510 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29511 "previous call to C<guestfs_luks_open>."
29512 msgstr ""
29513
29514 #. type: textblock
29515 #: ../src/guestfs-actions.pod:3905
29516 msgid ""
29517 "Device mapper devices which correspond to logical volumes are I<not> "
29518 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29519 "volumes."
29520 msgstr ""
29521
29522 #. type: textblock
29523 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
29524 msgid "(Added in 1.11.15)"
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:3915
29529 msgid "guestfs_list_filesystems"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:3917
29534 #, no-wrap
29535 msgid ""
29536 " char **\n"
29537 " guestfs_list_filesystems (guestfs_h *g);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: textblock
29542 #: ../src/guestfs-actions.pod:3937
29543 msgid ""
29544 "This command runs other libguestfs commands, which might include "
29545 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29546 "soon after launch and only when nothing is mounted."
29547 msgstr ""
29548
29549 #. type: textblock
29550 #: ../src/guestfs-actions.pod:3941
29551 msgid ""
29552 "Not all of the filesystems returned will be mountable.  In particular, swap "
29553 "partitions are returned in the list.  Also this command does not check that "
29554 "each filesystem found is valid and mountable, and some filesystems might be "
29555 "mountable but require special options.  Filesystems may not all belong to a "
29556 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29557 msgstr ""
29558
29559 #. type: textblock
29560 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
29561 msgid "(Added in 1.5.15)"
29562 msgstr ""
29563
29564 #. type: =head2
29565 #: ../src/guestfs-actions.pod:3957
29566 msgid "guestfs_list_partitions"
29567 msgstr "guestfs_list_partitions"
29568
29569 #. type: verbatim
29570 #: ../src/guestfs-actions.pod:3959
29571 #, no-wrap
29572 msgid ""
29573 " char **\n"
29574 " guestfs_list_partitions (guestfs_h *g);\n"
29575 "\n"
29576 msgstr ""
29577 " char **\n"
29578 " guestfs_list_partitions (guestfs_h *g);\n"
29579 "\n"
29580
29581 #. type: textblock
29582 #: ../src/guestfs-actions.pod:3966
29583 msgid ""
29584 "This does not return logical volumes.  For that you will need to call "
29585 "C<guestfs_lvs>."
29586 msgstr ""
29587
29588 #. type: =head2
29589 #: ../src/guestfs-actions.pod:3977
29590 msgid "guestfs_ll"
29591 msgstr "guestfs_ll"
29592
29593 #. type: verbatim
29594 #: ../src/guestfs-actions.pod:3979
29595 #, no-wrap
29596 msgid ""
29597 " char *\n"
29598 " guestfs_ll (guestfs_h *g,\n"
29599 "             const char *directory);\n"
29600 "\n"
29601 msgstr ""
29602 " char *\n"
29603 " guestfs_ll (guestfs_h *g,\n"
29604 "             const char *directory);\n"
29605 "\n"
29606
29607 #. type: =head2
29608 #: ../src/guestfs-actions.pod:3994
29609 msgid "guestfs_ln"
29610 msgstr "guestfs_ln"
29611
29612 #. type: verbatim
29613 #: ../src/guestfs-actions.pod:3996
29614 #, no-wrap
29615 msgid ""
29616 " int\n"
29617 " guestfs_ln (guestfs_h *g,\n"
29618 "             const char *target,\n"
29619 "             const char *linkname);\n"
29620 "\n"
29621 msgstr ""
29622 " int\n"
29623 " guestfs_ln (guestfs_h *g,\n"
29624 "             const char *target,\n"
29625 "             const char *linkname);\n"
29626 "\n"
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:4007
29630 msgid "guestfs_ln_f"
29631 msgstr "guestfs_ln_f"
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:4009
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_ln_f (guestfs_h *g,\n"
29639 "               const char *target,\n"
29640 "               const char *linkname);\n"
29641 "\n"
29642 msgstr ""
29643 " int\n"
29644 " guestfs_ln_f (guestfs_h *g,\n"
29645 "               const char *target,\n"
29646 "               const char *linkname);\n"
29647 "\n"
29648
29649 #. type: =head2
29650 #: ../src/guestfs-actions.pod:4021
29651 msgid "guestfs_ln_s"
29652 msgstr "guestfs_ln_s"
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:4023
29656 #, no-wrap
29657 msgid ""
29658 " int\n"
29659 " guestfs_ln_s (guestfs_h *g,\n"
29660 "               const char *target,\n"
29661 "               const char *linkname);\n"
29662 "\n"
29663 msgstr ""
29664 " int\n"
29665 " guestfs_ln_s (guestfs_h *g,\n"
29666 "               const char *target,\n"
29667 "               const char *linkname);\n"
29668 "\n"
29669
29670 #. type: =head2
29671 #: ../src/guestfs-actions.pod:4034
29672 msgid "guestfs_ln_sf"
29673 msgstr "guestfs_ln_sf"
29674
29675 #. type: verbatim
29676 #: ../src/guestfs-actions.pod:4036
29677 #, no-wrap
29678 msgid ""
29679 " int\n"
29680 " guestfs_ln_sf (guestfs_h *g,\n"
29681 "                const char *target,\n"
29682 "                const char *linkname);\n"
29683 "\n"
29684 msgstr ""
29685 " int\n"
29686 " guestfs_ln_sf (guestfs_h *g,\n"
29687 "                const char *target,\n"
29688 "                const char *linkname);\n"
29689 "\n"
29690
29691 #. type: =head2
29692 #: ../src/guestfs-actions.pod:4048
29693 msgid "guestfs_lremovexattr"
29694 msgstr "guestfs_lremovexattr"
29695
29696 #. type: verbatim
29697 #: ../src/guestfs-actions.pod:4050
29698 #, no-wrap
29699 msgid ""
29700 " int\n"
29701 " guestfs_lremovexattr (guestfs_h *g,\n"
29702 "                       const char *xattr,\n"
29703 "                       const char *path);\n"
29704 "\n"
29705 msgstr ""
29706 " int\n"
29707 " guestfs_lremovexattr (guestfs_h *g,\n"
29708 "                       const char *xattr,\n"
29709 "                       const char *path);\n"
29710 "\n"
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:4055
29714 msgid ""
29715 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29716 "link, then it removes an extended attribute of the link itself."
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:4063
29721 msgid "guestfs_ls"
29722 msgstr "guestfs_ls"
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:4065
29726 #, no-wrap
29727 msgid ""
29728 " char **\n"
29729 " guestfs_ls (guestfs_h *g,\n"
29730 "             const char *directory);\n"
29731 "\n"
29732 msgstr ""
29733 " char **\n"
29734 " guestfs_ls (guestfs_h *g,\n"
29735 "             const char *directory);\n"
29736 "\n"
29737
29738 #. type: textblock
29739 #: ../src/guestfs-actions.pod:4073
29740 msgid ""
29741 "This command is mostly useful for interactive sessions.  Programs should "
29742 "probably use C<guestfs_readdir> instead."
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:4082
29747 msgid "guestfs_lsetxattr"
29748 msgstr "guestfs_lsetxattr"
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:4084
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_lsetxattr (guestfs_h *g,\n"
29756 "                    const char *xattr,\n"
29757 "                    const char *val,\n"
29758 "                    int vallen,\n"
29759 "                    const char *path);\n"
29760 "\n"
29761 msgstr ""
29762 " int\n"
29763 " guestfs_lsetxattr (guestfs_h *g,\n"
29764 "                    const char *xattr,\n"
29765 "                    const char *val,\n"
29766 "                    int vallen,\n"
29767 "                    const char *path);\n"
29768 "\n"
29769
29770 #. type: textblock
29771 #: ../src/guestfs-actions.pod:4091
29772 msgid ""
29773 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29774 "then it sets an extended attribute of the link itself."
29775 msgstr ""
29776
29777 #. type: =head2
29778 #: ../src/guestfs-actions.pod:4099
29779 msgid "guestfs_lstat"
29780 msgstr "guestfs_lstat"
29781
29782 #. type: verbatim
29783 #: ../src/guestfs-actions.pod:4101
29784 #, no-wrap
29785 msgid ""
29786 " struct guestfs_stat *\n"
29787 " guestfs_lstat (guestfs_h *g,\n"
29788 "                const char *path);\n"
29789 "\n"
29790 msgstr ""
29791 " struct guestfs_stat *\n"
29792 " guestfs_lstat (guestfs_h *g,\n"
29793 "                const char *path);\n"
29794 "\n"
29795
29796 #. type: textblock
29797 #: ../src/guestfs-actions.pod:4107
29798 msgid ""
29799 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29800 "link, then the link is stat-ed, not the file it refers to."
29801 msgstr ""
29802
29803 #. type: textblock
29804 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
29805 msgid ""
29806 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29807 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29808 msgstr ""
29809
29810 #. type: textblock
29811 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
29812 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
29813 msgid "(Added in 0.9.2)"
29814 msgstr "(Додано у 0.9.2)"
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:4119
29818 msgid "guestfs_lstatlist"
29819 msgstr "guestfs_lstatlist"
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:4121
29823 #, no-wrap
29824 msgid ""
29825 " struct guestfs_stat_list *\n"
29826 " guestfs_lstatlist (guestfs_h *g,\n"
29827 "                    const char *path,\n"
29828 "                    char *const *names);\n"
29829 "\n"
29830 msgstr ""
29831 " struct guestfs_stat_list *\n"
29832 " guestfs_lstatlist (guestfs_h *g,\n"
29833 "                    const char *path,\n"
29834 "                    char *const *names);\n"
29835 "\n"
29836
29837 #. type: textblock
29838 #: ../src/guestfs-actions.pod:4126
29839 msgid ""
29840 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29841 "files, where all files are in the directory C<path>.  C<names> is the list "
29842 "of files from this directory."
29843 msgstr ""
29844
29845 #. type: textblock
29846 #: ../src/guestfs-actions.pod:4135
29847 msgid ""
29848 "This call is intended for programs that want to efficiently list a directory "
29849 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29850 "for a similarly efficient call for getting extended attributes.  Very long "
29851 "directory listings might cause the protocol message size to be exceeded, "
29852 "causing this call to fail.  The caller must split up such requests into "
29853 "smaller groups of names."
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:4143
29858 msgid ""
29859 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29860 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29861 msgstr ""
29862
29863 #. type: =head2
29864 #: ../src/guestfs-actions.pod:4149
29865 msgid "guestfs_luks_add_key"
29866 msgstr "guestfs_luks_add_key"
29867
29868 #. type: verbatim
29869 #: ../src/guestfs-actions.pod:4151
29870 #, no-wrap
29871 msgid ""
29872 " int\n"
29873 " guestfs_luks_add_key (guestfs_h *g,\n"
29874 "                       const char *device,\n"
29875 "                       const char *key,\n"
29876 "                       const char *newkey,\n"
29877 "                       int keyslot);\n"
29878 "\n"
29879 msgstr ""
29880 " int\n"
29881 " guestfs_luks_add_key (guestfs_h *g,\n"
29882 "                       const char *device,\n"
29883 "                       const char *key,\n"
29884 "                       const char *newkey,\n"
29885 "                       int keyslot);\n"
29886 "\n"
29887
29888 #. type: textblock
29889 #: ../src/guestfs-actions.pod:4163
29890 msgid ""
29891 "Note that if C<keyslot> already contains a key, then this command will "
29892 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29893 msgstr ""
29894
29895 #. type: textblock
29896 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
29897 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
29898 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
29899 msgid ""
29900 "This function takes a key or passphrase parameter which could contain "
29901 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29902 "information."
29903 msgstr ""
29904
29905 #. type: textblock
29906 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
29907 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
29908 msgid "(Added in 1.5.2)"
29909 msgstr "(Додано у 1.5.2)"
29910
29911 #. type: =head2
29912 #: ../src/guestfs-actions.pod:4175
29913 msgid "guestfs_luks_close"
29914 msgstr "guestfs_luks_close"
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-actions.pod:4177
29918 #, no-wrap
29919 msgid ""
29920 " int\n"
29921 " guestfs_luks_close (guestfs_h *g,\n"
29922 "                     const char *device);\n"
29923 "\n"
29924 msgstr ""
29925 " int\n"
29926 " guestfs_luks_close (guestfs_h *g,\n"
29927 "                     const char *device);\n"
29928 "\n"
29929
29930 #. type: textblock
29931 #: ../src/guestfs-actions.pod:4181
29932 msgid ""
29933 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29934 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29935 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29936 "underlying block device."
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
29941 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
29942 #: ../src/guestfs-actions.pod:4408
29943 msgid "(Added in 1.5.1)"
29944 msgstr "(Додано у 1.5.1)"
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:4191
29948 msgid "guestfs_luks_format"
29949 msgstr "guestfs_luks_format"
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:4193
29953 #, no-wrap
29954 msgid ""
29955 " int\n"
29956 " guestfs_luks_format (guestfs_h *g,\n"
29957 "                      const char *device,\n"
29958 "                      const char *key,\n"
29959 "                      int keyslot);\n"
29960 "\n"
29961 msgstr ""
29962 " int\n"
29963 " guestfs_luks_format (guestfs_h *g,\n"
29964 "                      const char *device,\n"
29965 "                      const char *key,\n"
29966 "                      int keyslot);\n"
29967 "\n"
29968
29969 #. type: =head2
29970 #: ../src/guestfs-actions.pod:4215
29971 msgid "guestfs_luks_format_cipher"
29972 msgstr "guestfs_luks_format_cipher"
29973
29974 #. type: verbatim
29975 #: ../src/guestfs-actions.pod:4217
29976 #, no-wrap
29977 msgid ""
29978 " int\n"
29979 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29980 "                             const char *device,\n"
29981 "                             const char *key,\n"
29982 "                             int keyslot,\n"
29983 "                             const char *cipher);\n"
29984 "\n"
29985 msgstr ""
29986 " int\n"
29987 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29988 "                             const char *device,\n"
29989 "                             const char *key,\n"
29990 "                             int keyslot,\n"
29991 "                             const char *cipher);\n"
29992 "\n"
29993
29994 #. type: textblock
29995 #: ../src/guestfs-actions.pod:4224
29996 msgid ""
29997 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29998 "set the C<cipher> used."
29999 msgstr ""
30000
30001 #. type: =head2
30002 #: ../src/guestfs-actions.pod:4238
30003 msgid "guestfs_luks_kill_slot"
30004 msgstr "guestfs_luks_kill_slot"
30005
30006 #. type: verbatim
30007 #: ../src/guestfs-actions.pod:4240
30008 #, no-wrap
30009 msgid ""
30010 " int\n"
30011 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30012 "                         const char *device,\n"
30013 "                         const char *key,\n"
30014 "                         int keyslot);\n"
30015 "\n"
30016 msgstr ""
30017 " int\n"
30018 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30019 "                         const char *device,\n"
30020 "                         const char *key,\n"
30021 "                         int keyslot);\n"
30022 "\n"
30023
30024 #. type: =head2
30025 #: ../src/guestfs-actions.pod:4258
30026 msgid "guestfs_luks_open"
30027 msgstr "guestfs_luks_open"
30028
30029 #. type: verbatim
30030 #: ../src/guestfs-actions.pod:4260
30031 #, no-wrap
30032 msgid ""
30033 " int\n"
30034 " guestfs_luks_open (guestfs_h *g,\n"
30035 "                    const char *device,\n"
30036 "                    const char *key,\n"
30037 "                    const char *mapname);\n"
30038 "\n"
30039 msgstr ""
30040 " int\n"
30041 " guestfs_luks_open (guestfs_h *g,\n"
30042 "                    const char *device,\n"
30043 "                    const char *key,\n"
30044 "                    const char *mapname);\n"
30045 "\n"
30046
30047 #. type: textblock
30048 #: ../src/guestfs-actions.pod:4278
30049 msgid ""
30050 "If this block device contains LVM volume groups, then calling "
30051 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30052 "visible."
30053 msgstr ""
30054
30055 #. type: textblock
30056 #: ../src/guestfs-actions.pod:4282
30057 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30058 msgstr ""
30059
30060 #. type: =head2
30061 #: ../src/guestfs-actions.pod:4293
30062 msgid "guestfs_luks_open_ro"
30063 msgstr "guestfs_luks_open_ro"
30064
30065 #. type: verbatim
30066 #: ../src/guestfs-actions.pod:4295
30067 #, no-wrap
30068 msgid ""
30069 " int\n"
30070 " guestfs_luks_open_ro (guestfs_h *g,\n"
30071 "                       const char *device,\n"
30072 "                       const char *key,\n"
30073 "                       const char *mapname);\n"
30074 "\n"
30075 msgstr ""
30076 " int\n"
30077 " guestfs_luks_open_ro (guestfs_h *g,\n"
30078 "                       const char *device,\n"
30079 "                       const char *key,\n"
30080 "                       const char *mapname);\n"
30081 "\n"
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:4301
30085 msgid ""
30086 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30087 "created."
30088 msgstr ""
30089
30090 #. type: =head2
30091 #: ../src/guestfs-actions.pod:4312
30092 msgid "guestfs_lvcreate"
30093 msgstr "guestfs_lvcreate"
30094
30095 #. type: verbatim
30096 #: ../src/guestfs-actions.pod:4314
30097 #, no-wrap
30098 msgid ""
30099 " int\n"
30100 " guestfs_lvcreate (guestfs_h *g,\n"
30101 "                   const char *logvol,\n"
30102 "                   const char *volgroup,\n"
30103 "                   int mbytes);\n"
30104 "\n"
30105 msgstr ""
30106 " int\n"
30107 " guestfs_lvcreate (guestfs_h *g,\n"
30108 "                   const char *logvol,\n"
30109 "                   const char *volgroup,\n"
30110 "                   int mbytes);\n"
30111 "\n"
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:4327
30115 msgid "guestfs_lvm_canonical_lv_name"
30116 msgstr "guestfs_lvm_canonical_lv_name"
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:4329
30120 #, no-wrap
30121 msgid ""
30122 " char *\n"
30123 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30124 "                                const char *lvname);\n"
30125 "\n"
30126 msgstr ""
30127 " char *\n"
30128 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30129 "                                const char *lvname);\n"
30130 "\n"
30131
30132 #. type: textblock
30133 #: ../src/guestfs-actions.pod:4340
30134 msgid "See also C<guestfs_is_lv>."
30135 msgstr ""
30136
30137 #. type: textblock
30138 #: ../src/guestfs-actions.pod:4345
30139 msgid "(Added in 1.5.24)"
30140 msgstr "(Додано у 1.5.24)"
30141
30142 #. type: =head2
30143 #: ../src/guestfs-actions.pod:4347
30144 msgid "guestfs_lvm_clear_filter"
30145 msgstr "guestfs_lvm_clear_filter"
30146
30147 #. type: verbatim
30148 #: ../src/guestfs-actions.pod:4349
30149 #, no-wrap
30150 msgid ""
30151 " int\n"
30152 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30153 "\n"
30154 msgstr ""
30155 " int\n"
30156 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30157 "\n"
30158
30159 #. type: textblock
30160 #: ../src/guestfs-actions.pod:4352
30161 msgid ""
30162 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30163 "see every block device."
30164 msgstr ""
30165
30166 #. type: =head2
30167 #: ../src/guestfs-actions.pod:4362
30168 msgid "guestfs_lvm_remove_all"
30169 msgstr "guestfs_lvm_remove_all"
30170
30171 #. type: verbatim
30172 #: ../src/guestfs-actions.pod:4364
30173 #, no-wrap
30174 msgid ""
30175 " int\n"
30176 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30177 "\n"
30178 msgstr ""
30179 " int\n"
30180 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30181 "\n"
30182
30183 #. type: =head2
30184 #: ../src/guestfs-actions.pod:4377
30185 msgid "guestfs_lvm_set_filter"
30186 msgstr "guestfs_lvm_set_filter"
30187
30188 #. type: verbatim
30189 #: ../src/guestfs-actions.pod:4379
30190 #, no-wrap
30191 msgid ""
30192 " int\n"
30193 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30194 "                         char *const *devices);\n"
30195 "\n"
30196 msgstr ""
30197 " int\n"
30198 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30199 "                         char *const *devices);\n"
30200 "\n"
30201
30202 #. type: =head2
30203 #: ../src/guestfs-actions.pod:4410
30204 msgid "guestfs_lvremove"
30205 msgstr "guestfs_lvremove"
30206
30207 #. type: verbatim
30208 #: ../src/guestfs-actions.pod:4412
30209 #, no-wrap
30210 msgid ""
30211 " int\n"
30212 " guestfs_lvremove (guestfs_h *g,\n"
30213 "                   const char *device);\n"
30214 "\n"
30215 msgstr ""
30216 " int\n"
30217 " guestfs_lvremove (guestfs_h *g,\n"
30218 "                   const char *device);\n"
30219 "\n"
30220
30221 #. type: textblock
30222 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
30223 #: ../src/guestfs-actions.pod:7667
30224 msgid "(Added in 1.0.13)"
30225 msgstr "(Додано у 1.0.13)"
30226
30227 #. type: =head2
30228 #: ../src/guestfs-actions.pod:4426
30229 msgid "guestfs_lvrename"
30230 msgstr "guestfs_lvrename"
30231
30232 #. type: verbatim
30233 #: ../src/guestfs-actions.pod:4428
30234 #, no-wrap
30235 msgid ""
30236 " int\n"
30237 " guestfs_lvrename (guestfs_h *g,\n"
30238 "                   const char *logvol,\n"
30239 "                   const char *newlogvol);\n"
30240 "\n"
30241 msgstr ""
30242 " int\n"
30243 " guestfs_lvrename (guestfs_h *g,\n"
30244 "                   const char *logvol,\n"
30245 "                   const char *newlogvol);\n"
30246 "\n"
30247
30248 #. type: textblock
30249 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
30250 msgid "(Added in 1.0.83)"
30251 msgstr "(Додано у 1.0.83)"
30252
30253 #. type: =head2
30254 #: ../src/guestfs-actions.pod:4439
30255 msgid "guestfs_lvresize"
30256 msgstr "guestfs_lvresize"
30257
30258 #. type: verbatim
30259 #: ../src/guestfs-actions.pod:4441
30260 #, no-wrap
30261 msgid ""
30262 " int\n"
30263 " guestfs_lvresize (guestfs_h *g,\n"
30264 "                   const char *device,\n"
30265 "                   int mbytes);\n"
30266 "\n"
30267 msgstr ""
30268 " int\n"
30269 " guestfs_lvresize (guestfs_h *g,\n"
30270 "                   const char *device,\n"
30271 "                   int mbytes);\n"
30272 "\n"
30273
30274 #. type: =head2
30275 #: ../src/guestfs-actions.pod:4454
30276 msgid "guestfs_lvresize_free"
30277 msgstr "guestfs_lvresize_free"
30278
30279 #. type: verbatim
30280 #: ../src/guestfs-actions.pod:4456
30281 #, no-wrap
30282 msgid ""
30283 " int\n"
30284 " guestfs_lvresize_free (guestfs_h *g,\n"
30285 "                        const char *lv,\n"
30286 "                        int percent);\n"
30287 "\n"
30288 msgstr ""
30289 " int\n"
30290 " guestfs_lvresize_free (guestfs_h *g,\n"
30291 "                        const char *lv,\n"
30292 "                        int percent);\n"
30293 "\n"
30294
30295 #. type: textblock
30296 #: ../src/guestfs-actions.pod:4469
30297 msgid "(Added in 1.3.3)"
30298 msgstr "(Додано у 1.3.3)"
30299
30300 #. type: =head2
30301 #: ../src/guestfs-actions.pod:4471
30302 msgid "guestfs_lvs"
30303 msgstr "guestfs_lvs"
30304
30305 #. type: verbatim
30306 #: ../src/guestfs-actions.pod:4473
30307 #, no-wrap
30308 msgid ""
30309 " char **\n"
30310 " guestfs_lvs (guestfs_h *g);\n"
30311 "\n"
30312 msgstr ""
30313 " char **\n"
30314 " guestfs_lvs (guestfs_h *g);\n"
30315 "\n"
30316
30317 #. type: textblock
30318 #: ../src/guestfs-actions.pod:4482
30319 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30320 msgstr ""
30321
30322 #. type: =head2
30323 #: ../src/guestfs-actions.pod:4490
30324 msgid "guestfs_lvs_full"
30325 msgstr "guestfs_lvs_full"
30326
30327 #. type: verbatim
30328 #: ../src/guestfs-actions.pod:4492
30329 #, no-wrap
30330 msgid ""
30331 " struct guestfs_lvm_lv_list *\n"
30332 " guestfs_lvs_full (guestfs_h *g);\n"
30333 "\n"
30334 msgstr ""
30335 " struct guestfs_lvm_lv_list *\n"
30336 " guestfs_lvs_full (guestfs_h *g);\n"
30337 "\n"
30338
30339 #. type: textblock
30340 #: ../src/guestfs-actions.pod:4498
30341 msgid ""
30342 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30343 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30344 msgstr ""
30345
30346 #. type: =head2
30347 #: ../src/guestfs-actions.pod:4504
30348 msgid "guestfs_lvuuid"
30349 msgstr "guestfs_lvuuid"
30350
30351 #. type: verbatim
30352 #: ../src/guestfs-actions.pod:4506
30353 #, no-wrap
30354 msgid ""
30355 " char *\n"
30356 " guestfs_lvuuid (guestfs_h *g,\n"
30357 "                 const char *device);\n"
30358 "\n"
30359 msgstr ""
30360 " char *\n"
30361 " guestfs_lvuuid (guestfs_h *g,\n"
30362 "                 const char *device);\n"
30363 "\n"
30364
30365 #. type: =head2
30366 #: ../src/guestfs-actions.pod:4517
30367 msgid "guestfs_lxattrlist"
30368 msgstr "guestfs_lxattrlist"
30369
30370 #. type: verbatim
30371 #: ../src/guestfs-actions.pod:4519
30372 #, no-wrap
30373 msgid ""
30374 " struct guestfs_xattr_list *\n"
30375 " guestfs_lxattrlist (guestfs_h *g,\n"
30376 "                     const char *path,\n"
30377 "                     char *const *names);\n"
30378 "\n"
30379 msgstr ""
30380 " struct guestfs_xattr_list *\n"
30381 " guestfs_lxattrlist (guestfs_h *g,\n"
30382 "                     const char *path,\n"
30383 "                     char *const *names);\n"
30384 "\n"
30385
30386 #. type: textblock
30387 #: ../src/guestfs-actions.pod:4538
30388 msgid ""
30389 "This call is intended for programs that want to efficiently list a directory "
30390 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30391 "a similarly efficient call for getting standard stats.  Very long directory "
30392 "listings might cause the protocol message size to be exceeded, causing this "
30393 "call to fail.  The caller must split up such requests into smaller groups of "
30394 "names."
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-actions.pod:4552
30399 msgid "guestfs_mkdir"
30400 msgstr "guestfs_mkdir"
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-actions.pod:4554
30404 #, no-wrap
30405 msgid ""
30406 " int\n"
30407 " guestfs_mkdir (guestfs_h *g,\n"
30408 "                const char *path);\n"
30409 "\n"
30410 msgstr ""
30411 " int\n"
30412 " guestfs_mkdir (guestfs_h *g,\n"
30413 "                const char *path);\n"
30414 "\n"
30415
30416 #. type: =head2
30417 #: ../src/guestfs-actions.pod:4564
30418 msgid "guestfs_mkdir_mode"
30419 msgstr "guestfs_mkdir_mode"
30420
30421 #. type: verbatim
30422 #: ../src/guestfs-actions.pod:4566
30423 #, no-wrap
30424 msgid ""
30425 " int\n"
30426 " guestfs_mkdir_mode (guestfs_h *g,\n"
30427 "                     const char *path,\n"
30428 "                     int mode);\n"
30429 "\n"
30430 msgstr ""
30431 " int\n"
30432 " guestfs_mkdir_mode (guestfs_h *g,\n"
30433 "                     const char *path,\n"
30434 "                     int mode);\n"
30435 "\n"
30436
30437 #. type: textblock
30438 #: ../src/guestfs-actions.pod:4578
30439 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30440 msgstr ""
30441
30442 #. type: =head2
30443 #: ../src/guestfs-actions.pod:4584
30444 msgid "guestfs_mkdir_p"
30445 msgstr "guestfs_mkdir_p"
30446
30447 #. type: verbatim
30448 #: ../src/guestfs-actions.pod:4586
30449 #, no-wrap
30450 msgid ""
30451 " int\n"
30452 " guestfs_mkdir_p (guestfs_h *g,\n"
30453 "                  const char *path);\n"
30454 "\n"
30455 msgstr ""
30456 " int\n"
30457 " guestfs_mkdir_p (guestfs_h *g,\n"
30458 "                  const char *path);\n"
30459 "\n"
30460
30461 #. type: =head2
30462 #: ../src/guestfs-actions.pod:4597
30463 msgid "guestfs_mkdtemp"
30464 msgstr "guestfs_mkdtemp"
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-actions.pod:4599
30468 #, no-wrap
30469 msgid ""
30470 " char *\n"
30471 " guestfs_mkdtemp (guestfs_h *g,\n"
30472 "                  const char *template);\n"
30473 "\n"
30474 msgstr ""
30475 " char *\n"
30476 " guestfs_mkdtemp (guestfs_h *g,\n"
30477 "                  const char *template);\n"
30478 "\n"
30479
30480 #. type: =head2
30481 #: ../src/guestfs-actions.pod:4627
30482 msgid "guestfs_mke2fs_J"
30483 msgstr "guestfs_mke2fs_J"
30484
30485 #. type: verbatim
30486 #: ../src/guestfs-actions.pod:4629
30487 #, no-wrap
30488 msgid ""
30489 " int\n"
30490 " guestfs_mke2fs_J (guestfs_h *g,\n"
30491 "                   const char *fstype,\n"
30492 "                   int blocksize,\n"
30493 "                   const char *device,\n"
30494 "                   const char *journal);\n"
30495 "\n"
30496 msgstr ""
30497 " int\n"
30498 " guestfs_mke2fs_J (guestfs_h *g,\n"
30499 "                   const char *fstype,\n"
30500 "                   int blocksize,\n"
30501 "                   const char *device,\n"
30502 "                   const char *journal);\n"
30503 "\n"
30504
30505 #. type: textblock
30506 #: ../src/guestfs-actions.pod:4642
30507 msgid "See also C<guestfs_mke2journal>."
30508 msgstr ""
30509
30510 #. type: textblock
30511 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
30512 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
30513 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
30514 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
30515 msgid "(Added in 1.0.68)"
30516 msgstr "(Додано у 1.0.68)"
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:4648
30520 msgid "guestfs_mke2fs_JL"
30521 msgstr "guestfs_mke2fs_JL"
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:4650
30525 #, no-wrap
30526 msgid ""
30527 " int\n"
30528 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30529 "                    const char *fstype,\n"
30530 "                    int blocksize,\n"
30531 "                    const char *device,\n"
30532 "                    const char *label);\n"
30533 "\n"
30534 msgstr ""
30535 " int\n"
30536 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30537 "                    const char *fstype,\n"
30538 "                    int blocksize,\n"
30539 "                    const char *device,\n"
30540 "                    const char *label);\n"
30541 "\n"
30542
30543 #. type: textblock
30544 #: ../src/guestfs-actions.pod:4660
30545 msgid "See also C<guestfs_mke2journal_L>."
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:4666
30550 msgid "guestfs_mke2fs_JU"
30551 msgstr "guestfs_mke2fs_JU"
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:4668
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30559 "                    const char *fstype,\n"
30560 "                    int blocksize,\n"
30561 "                    const char *device,\n"
30562 "                    const char *uuid);\n"
30563 "\n"
30564 msgstr ""
30565 " int\n"
30566 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30567 "                    const char *fstype,\n"
30568 "                    int blocksize,\n"
30569 "                    const char *device,\n"
30570 "                    const char *uuid);\n"
30571 "\n"
30572
30573 #. type: textblock
30574 #: ../src/guestfs-actions.pod:4678
30575 msgid "See also C<guestfs_mke2journal_U>."
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:4684
30580 msgid "guestfs_mke2journal"
30581 msgstr "guestfs_mke2journal"
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:4686
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_mke2journal (guestfs_h *g,\n"
30589 "                      int blocksize,\n"
30590 "                      const char *device);\n"
30591 "\n"
30592 msgstr ""
30593 " int\n"
30594 " guestfs_mke2journal (guestfs_h *g,\n"
30595 "                      int blocksize,\n"
30596 "                      const char *device);\n"
30597 "\n"
30598
30599 #. type: =head2
30600 #: ../src/guestfs-actions.pod:4700
30601 msgid "guestfs_mke2journal_L"
30602 msgstr "guestfs_mke2journal_L"
30603
30604 #. type: verbatim
30605 #: ../src/guestfs-actions.pod:4702
30606 #, no-wrap
30607 msgid ""
30608 " int\n"
30609 " guestfs_mke2journal_L (guestfs_h *g,\n"
30610 "                        int blocksize,\n"
30611 "                        const char *label,\n"
30612 "                        const char *device);\n"
30613 "\n"
30614 msgstr ""
30615 " int\n"
30616 " guestfs_mke2journal_L (guestfs_h *g,\n"
30617 "                        int blocksize,\n"
30618 "                        const char *label,\n"
30619 "                        const char *device);\n"
30620 "\n"
30621
30622 #. type: =head2
30623 #: ../src/guestfs-actions.pod:4714
30624 msgid "guestfs_mke2journal_U"
30625 msgstr "guestfs_mke2journal_U"
30626
30627 #. type: verbatim
30628 #: ../src/guestfs-actions.pod:4716
30629 #, no-wrap
30630 msgid ""
30631 " int\n"
30632 " guestfs_mke2journal_U (guestfs_h *g,\n"
30633 "                        int blocksize,\n"
30634 "                        const char *uuid,\n"
30635 "                        const char *device);\n"
30636 "\n"
30637 msgstr ""
30638 " int\n"
30639 " guestfs_mke2journal_U (guestfs_h *g,\n"
30640 "                        int blocksize,\n"
30641 "                        const char *uuid,\n"
30642 "                        const char *device);\n"
30643 "\n"
30644
30645 #. type: =head2
30646 #: ../src/guestfs-actions.pod:4728
30647 msgid "guestfs_mkfifo"
30648 msgstr "guestfs_mkfifo"
30649
30650 #. type: verbatim
30651 #: ../src/guestfs-actions.pod:4730
30652 #, no-wrap
30653 msgid ""
30654 " int\n"
30655 " guestfs_mkfifo (guestfs_h *g,\n"
30656 "                 int mode,\n"
30657 "                 const char *path);\n"
30658 "\n"
30659 msgstr ""
30660 " int\n"
30661 " guestfs_mkfifo (guestfs_h *g,\n"
30662 "                 int mode,\n"
30663 "                 const char *path);\n"
30664 "\n"
30665
30666 #. type: textblock
30667 #: ../src/guestfs-actions.pod:4735
30668 msgid ""
30669 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30670 "is just a convenient wrapper around C<guestfs_mknod>."
30671 msgstr ""
30672
30673 #. type: =head2
30674 #: ../src/guestfs-actions.pod:4745
30675 msgid "guestfs_mkfs"
30676 msgstr "guestfs_mkfs"
30677
30678 #. type: verbatim
30679 #: ../src/guestfs-actions.pod:4747
30680 #, no-wrap
30681 msgid ""
30682 " int\n"
30683 " guestfs_mkfs (guestfs_h *g,\n"
30684 "               const char *fstype,\n"
30685 "               const char *device);\n"
30686 "\n"
30687 msgstr ""
30688 " int\n"
30689 " guestfs_mkfs (guestfs_h *g,\n"
30690 "               const char *fstype,\n"
30691 "               const char *device);\n"
30692 "\n"
30693
30694 #. type: =head2
30695 #: ../src/guestfs-actions.pod:4760
30696 msgid "guestfs_mkfs_b"
30697 msgstr "guestfs_mkfs_b"
30698
30699 #. type: verbatim
30700 #: ../src/guestfs-actions.pod:4762
30701 #, no-wrap
30702 msgid ""
30703 " int\n"
30704 " guestfs_mkfs_b (guestfs_h *g,\n"
30705 "                 const char *fstype,\n"
30706 "                 int blocksize,\n"
30707 "                 const char *device);\n"
30708 "\n"
30709 msgstr ""
30710 " int\n"
30711 " guestfs_mkfs_b (guestfs_h *g,\n"
30712 "                 const char *fstype,\n"
30713 "                 int blocksize,\n"
30714 "                 const char *device);\n"
30715 "\n"
30716
30717 #. type: textblock
30718 #: ../src/guestfs-actions.pod:4768
30719 msgid ""
30720 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30721 "call instead."
30722 msgstr ""
30723
30724 #. type: textblock
30725 #: ../src/guestfs-actions.pod:4775
30726 msgid ""
30727 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30728 "block size of the resulting filesystem.  Supported block sizes depend on the "
30729 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:4787
30734 msgid "guestfs_mkfs_opts"
30735 msgstr "guestfs_mkfs_opts"
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:4789
30739 #, no-wrap
30740 msgid ""
30741 " int\n"
30742 " guestfs_mkfs_opts (guestfs_h *g,\n"
30743 "                    const char *fstype,\n"
30744 "                    const char *device,\n"
30745 "                    ...);\n"
30746 "\n"
30747 msgstr ""
30748 " int\n"
30749 " guestfs_mkfs_opts (guestfs_h *g,\n"
30750 "                    const char *fstype,\n"
30751 "                    const char *device,\n"
30752 "                    ...);\n"
30753 "\n"
30754
30755 #. type: verbatim
30756 #: ../src/guestfs-actions.pod:4800
30757 #, no-wrap
30758 msgid ""
30759 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30760 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30761 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30762 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30763 "\n"
30764 msgstr ""
30765
30766 #. type: textblock
30767 #: ../src/guestfs-actions.pod:4848
30768 msgid "(Added in 1.7.19)"
30769 msgstr "(Додано у 1.7.19)"
30770
30771 #. type: =head2
30772 #: ../src/guestfs-actions.pod:4850
30773 msgid "guestfs_mkfs_opts_va"
30774 msgstr "guestfs_mkfs_opts_va"
30775
30776 #. type: verbatim
30777 #: ../src/guestfs-actions.pod:4852
30778 #, no-wrap
30779 msgid ""
30780 " int\n"
30781 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30782 "                       const char *fstype,\n"
30783 "                       const char *device,\n"
30784 "                       va_list args);\n"
30785 "\n"
30786 msgstr ""
30787 " int\n"
30788 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30789 "                       const char *fstype,\n"
30790 "                       const char *device,\n"
30791 "                       va_list args);\n"
30792 "\n"
30793
30794 #. type: textblock
30795 #: ../src/guestfs-actions.pod:4858
30796 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:4862
30801 msgid "guestfs_mkfs_opts_argv"
30802 msgstr "guestfs_mkfs_opts_argv"
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:4864
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30810 "                         const char *fstype,\n"
30811 "                         const char *device,\n"
30812 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30813 "\n"
30814 msgstr ""
30815 " int\n"
30816 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30817 "                         const char *fstype,\n"
30818 "                         const char *device,\n"
30819 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30820 "\n"
30821
30822 #. type: textblock
30823 #: ../src/guestfs-actions.pod:4870
30824 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30825 msgstr ""
30826
30827 #. type: =head2
30828 #: ../src/guestfs-actions.pod:4874
30829 msgid "guestfs_mkmountpoint"
30830 msgstr "guestfs_mkmountpoint"
30831
30832 #. type: verbatim
30833 #: ../src/guestfs-actions.pod:4876
30834 #, no-wrap
30835 msgid ""
30836 " int\n"
30837 " guestfs_mkmountpoint (guestfs_h *g,\n"
30838 "                       const char *exemptpath);\n"
30839 "\n"
30840 msgstr ""
30841 " int\n"
30842 " guestfs_mkmountpoint (guestfs_h *g,\n"
30843 "                       const char *exemptpath);\n"
30844 "\n"
30845
30846 #. type: textblock
30847 #: ../src/guestfs-actions.pod:4880
30848 msgid ""
30849 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30850 "that can be used to create extra mountpoints before mounting the first "
30851 "filesystem."
30852 msgstr ""
30853
30854 #. type: textblock
30855 #: ../src/guestfs-actions.pod:4904
30856 msgid ""
30857 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30858 "may get unexpected errors if you try to mix these calls.  It is safest to "
30859 "manually unmount filesystems and remove mountpoints after use."
30860 msgstr ""
30861
30862 #. type: textblock
30863 #: ../src/guestfs-actions.pod:4908
30864 msgid ""
30865 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30866 "first, so for this to work for manual mountpoints, you must ensure that the "
30867 "innermost mountpoints have the longest pathnames, as in the example code "
30868 "above."
30869 msgstr ""
30870
30871 #. type: textblock
30872 #: ../src/guestfs-actions.pod:4915
30873 msgid ""
30874 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30875 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30876 "can also trigger these issues."
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
30881 #: ../src/guestfs-actions.pod:6237
30882 msgid "(Added in 1.0.62)"
30883 msgstr "(Додано у 1.0.62)"
30884
30885 #. type: =head2
30886 #: ../src/guestfs-actions.pod:4923
30887 msgid "guestfs_mknod"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-actions.pod:4925
30892 #, no-wrap
30893 msgid ""
30894 " int\n"
30895 " guestfs_mknod (guestfs_h *g,\n"
30896 "                int mode,\n"
30897 "                int devmajor,\n"
30898 "                int devminor,\n"
30899 "                const char *path);\n"
30900 "\n"
30901 msgstr ""
30902
30903 #. type: textblock
30904 #: ../src/guestfs-actions.pod:4940
30905 msgid ""
30906 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30907 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30908 "regular file).  These constants are available in the standard Linux header "
30909 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30910 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30911 "the appropriate constant for you."
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:4954
30916 msgid "guestfs_mknod_b"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:4956
30921 #, no-wrap
30922 msgid ""
30923 " int\n"
30924 " guestfs_mknod_b (guestfs_h *g,\n"
30925 "                  int mode,\n"
30926 "                  int devmajor,\n"
30927 "                  int devminor,\n"
30928 "                  const char *path);\n"
30929 "\n"
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs-actions.pod:4963
30934 msgid ""
30935 "This call creates a block device node called C<path> with mode C<mode> and "
30936 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30937 "wrapper around C<guestfs_mknod>."
30938 msgstr ""
30939
30940 #. type: =head2
30941 #: ../src/guestfs-actions.pod:4973
30942 msgid "guestfs_mknod_c"
30943 msgstr ""
30944
30945 #. type: verbatim
30946 #: ../src/guestfs-actions.pod:4975
30947 #, no-wrap
30948 msgid ""
30949 " int\n"
30950 " guestfs_mknod_c (guestfs_h *g,\n"
30951 "                  int mode,\n"
30952 "                  int devmajor,\n"
30953 "                  int devminor,\n"
30954 "                  const char *path);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: textblock
30959 #: ../src/guestfs-actions.pod:4982
30960 msgid ""
30961 "This call creates a char device node called C<path> with mode C<mode> and "
30962 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30963 "wrapper around C<guestfs_mknod>."
30964 msgstr ""
30965
30966 #. type: =head2
30967 #: ../src/guestfs-actions.pod:4992
30968 msgid "guestfs_mkswap"
30969 msgstr ""
30970
30971 #. type: verbatim
30972 #: ../src/guestfs-actions.pod:4994
30973 #, no-wrap
30974 msgid ""
30975 " int\n"
30976 " guestfs_mkswap (guestfs_h *g,\n"
30977 "                 const char *device);\n"
30978 "\n"
30979 msgstr ""
30980
30981 #. type: =head2
30982 #: ../src/guestfs-actions.pod:5004
30983 msgid "guestfs_mkswap_L"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-actions.pod:5006
30988 #, no-wrap
30989 msgid ""
30990 " int\n"
30991 " guestfs_mkswap_L (guestfs_h *g,\n"
30992 "                   const char *label,\n"
30993 "                   const char *device);\n"
30994 "\n"
30995 msgstr ""
30996
30997 #. type: =head2
30998 #: ../src/guestfs-actions.pod:5021
30999 msgid "guestfs_mkswap_U"
31000 msgstr ""
31001
31002 #. type: verbatim
31003 #: ../src/guestfs-actions.pod:5023
31004 #, no-wrap
31005 msgid ""
31006 " int\n"
31007 " guestfs_mkswap_U (guestfs_h *g,\n"
31008 "                   const char *uuid,\n"
31009 "                   const char *device);\n"
31010 "\n"
31011 msgstr ""
31012
31013 #. type: =head2
31014 #: ../src/guestfs-actions.pod:5034
31015 msgid "guestfs_mkswap_file"
31016 msgstr ""
31017
31018 #. type: verbatim
31019 #: ../src/guestfs-actions.pod:5036
31020 #, no-wrap
31021 msgid ""
31022 " int\n"
31023 " guestfs_mkswap_file (guestfs_h *g,\n"
31024 "                      const char *path);\n"
31025 "\n"
31026 msgstr ""
31027
31028 #. type: textblock
31029 #: ../src/guestfs-actions.pod:5042
31030 msgid ""
31031 "This command just writes a swap file signature to an existing file.  To "
31032 "create the file itself, use something like C<guestfs_fallocate>."
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-actions.pod:5049
31037 msgid "guestfs_modprobe"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-actions.pod:5051
31042 #, no-wrap
31043 msgid ""
31044 " int\n"
31045 " guestfs_modprobe (guestfs_h *g,\n"
31046 "                   const char *modulename);\n"
31047 "\n"
31048 msgstr ""
31049
31050 #. type: =head2
31051 #: ../src/guestfs-actions.pod:5064
31052 msgid "guestfs_mount"
31053 msgstr ""
31054
31055 #. type: verbatim
31056 #: ../src/guestfs-actions.pod:5066
31057 #, no-wrap
31058 msgid ""
31059 " int\n"
31060 " guestfs_mount (guestfs_h *g,\n"
31061 "                const char *device,\n"
31062 "                const char *mountpoint);\n"
31063 "\n"
31064 msgstr ""
31065
31066 #. type: textblock
31067 #: ../src/guestfs-actions.pod:5085
31068 msgid ""
31069 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31070 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31071 "problems for users.  If your program might need to work with older versions "
31072 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31073 "for the first parameter if you don't want any options)."
31074 msgstr ""
31075
31076 #. type: =head2
31077 #: ../src/guestfs-actions.pod:5096
31078 msgid "guestfs_mount_9p"
31079 msgstr ""
31080
31081 #. type: verbatim
31082 #: ../src/guestfs-actions.pod:5098
31083 #, no-wrap
31084 msgid ""
31085 " int\n"
31086 " guestfs_mount_9p (guestfs_h *g,\n"
31087 "                   const char *mounttag,\n"
31088 "                   const char *mountpoint,\n"
31089 "                   ...);\n"
31090 "\n"
31091 msgstr ""
31092
31093 #. type: verbatim
31094 #: ../src/guestfs-actions.pod:5109
31095 #, no-wrap
31096 msgid ""
31097 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31098 "\n"
31099 msgstr ""
31100
31101 #. type: =head2
31102 #: ../src/guestfs-actions.pod:5122
31103 msgid "guestfs_mount_9p_va"
31104 msgstr ""
31105
31106 #. type: verbatim
31107 #: ../src/guestfs-actions.pod:5124
31108 #, no-wrap
31109 msgid ""
31110 " int\n"
31111 " guestfs_mount_9p_va (guestfs_h *g,\n"
31112 "                      const char *mounttag,\n"
31113 "                      const char *mountpoint,\n"
31114 "                      va_list args);\n"
31115 "\n"
31116 msgstr ""
31117
31118 #. type: textblock
31119 #: ../src/guestfs-actions.pod:5130
31120 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31121 msgstr ""
31122
31123 #. type: =head2
31124 #: ../src/guestfs-actions.pod:5134
31125 msgid "guestfs_mount_9p_argv"
31126 msgstr ""
31127
31128 #. type: verbatim
31129 #: ../src/guestfs-actions.pod:5136
31130 #, no-wrap
31131 msgid ""
31132 " int\n"
31133 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31134 "                        const char *mounttag,\n"
31135 "                        const char *mountpoint,\n"
31136 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31137 "\n"
31138 msgstr ""
31139
31140 #. type: textblock
31141 #: ../src/guestfs-actions.pod:5142
31142 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31143 msgstr ""
31144
31145 #. type: =head2
31146 #: ../src/guestfs-actions.pod:5146
31147 msgid "guestfs_mount_loop"
31148 msgstr ""
31149
31150 #. type: verbatim
31151 #: ../src/guestfs-actions.pod:5148
31152 #, no-wrap
31153 msgid ""
31154 " int\n"
31155 " guestfs_mount_loop (guestfs_h *g,\n"
31156 "                     const char *file,\n"
31157 "                     const char *mountpoint);\n"
31158 "\n"
31159 msgstr ""
31160
31161 #. type: =head2
31162 #: ../src/guestfs-actions.pod:5161
31163 msgid "guestfs_mount_options"
31164 msgstr ""
31165
31166 #. type: verbatim
31167 #: ../src/guestfs-actions.pod:5163
31168 #, no-wrap
31169 msgid ""
31170 " int\n"
31171 " guestfs_mount_options (guestfs_h *g,\n"
31172 "                        const char *options,\n"
31173 "                        const char *device,\n"
31174 "                        const char *mountpoint);\n"
31175 "\n"
31176 msgstr ""
31177
31178 #. type: textblock
31179 #: ../src/guestfs-actions.pod:5169
31180 msgid ""
31181 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31182 "the mount options as for the L<mount(8)> I<-o> flag."
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
31187 #: ../src/guestfs-actions.pod:5210
31188 msgid "(Added in 1.0.10)"
31189 msgstr ""
31190
31191 #. type: =head2
31192 #: ../src/guestfs-actions.pod:5181
31193 msgid "guestfs_mount_ro"
31194 msgstr ""
31195
31196 #. type: verbatim
31197 #: ../src/guestfs-actions.pod:5183
31198 #, no-wrap
31199 msgid ""
31200 " int\n"
31201 " guestfs_mount_ro (guestfs_h *g,\n"
31202 "                   const char *device,\n"
31203 "                   const char *mountpoint);\n"
31204 "\n"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs-actions.pod:5188
31209 msgid ""
31210 "This is the same as the C<guestfs_mount> command, but it mounts the "
31211 "filesystem with the read-only (I<-o ro>) flag."
31212 msgstr ""
31213
31214 #. type: =head2
31215 #: ../src/guestfs-actions.pod:5195
31216 msgid "guestfs_mount_vfs"
31217 msgstr ""
31218
31219 #. type: verbatim
31220 #: ../src/guestfs-actions.pod:5197
31221 #, no-wrap
31222 msgid ""
31223 " int\n"
31224 " guestfs_mount_vfs (guestfs_h *g,\n"
31225 "                    const char *options,\n"
31226 "                    const char *vfstype,\n"
31227 "                    const char *device,\n"
31228 "                    const char *mountpoint);\n"
31229 "\n"
31230 msgstr ""
31231
31232 #. type: textblock
31233 #: ../src/guestfs-actions.pod:5204
31234 msgid ""
31235 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31236 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31237 "t> flags."
31238 msgstr ""
31239
31240 #. type: =head2
31241 #: ../src/guestfs-actions.pod:5212
31242 msgid "guestfs_mountpoints"
31243 msgstr ""
31244
31245 #. type: verbatim
31246 #: ../src/guestfs-actions.pod:5214
31247 #, no-wrap
31248 msgid ""
31249 " char **\n"
31250 " guestfs_mountpoints (guestfs_h *g);\n"
31251 "\n"
31252 msgstr ""
31253
31254 #. type: textblock
31255 #: ../src/guestfs-actions.pod:5217
31256 msgid ""
31257 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31258 "devices.  This one returns a hash table (map) of device name to directory "
31259 "where the device is mounted."
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:5229
31264 msgid "guestfs_mounts"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:5231
31269 #, no-wrap
31270 msgid ""
31271 " char **\n"
31272 " guestfs_mounts (guestfs_h *g);\n"
31273 "\n"
31274 msgstr ""
31275
31276 #. type: textblock
31277 #: ../src/guestfs-actions.pod:5239
31278 msgid "See also: C<guestfs_mountpoints>"
31279 msgstr ""
31280
31281 #. type: =head2
31282 #: ../src/guestfs-actions.pod:5247
31283 msgid "guestfs_mv"
31284 msgstr ""
31285
31286 #. type: verbatim
31287 #: ../src/guestfs-actions.pod:5249
31288 #, no-wrap
31289 msgid ""
31290 " int\n"
31291 " guestfs_mv (guestfs_h *g,\n"
31292 "             const char *src,\n"
31293 "             const char *dest);\n"
31294 "\n"
31295 msgstr ""
31296
31297 #. type: =head2
31298 #: ../src/guestfs-actions.pod:5261
31299 msgid "guestfs_ntfs_3g_probe"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs-actions.pod:5263
31304 #, no-wrap
31305 msgid ""
31306 " int\n"
31307 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31308 "                        int rw,\n"
31309 "                        const char *device);\n"
31310 "\n"
31311 msgstr ""
31312
31313 #. type: textblock
31314 #: ../src/guestfs-actions.pod:5282
31315 msgid "(Added in 1.0.43)"
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs-actions.pod:5284
31320 msgid "guestfs_ntfsresize"
31321 msgstr ""
31322
31323 #. type: verbatim
31324 #: ../src/guestfs-actions.pod:5286
31325 #, no-wrap
31326 msgid ""
31327 " int\n"
31328 " guestfs_ntfsresize (guestfs_h *g,\n"
31329 "                     const char *device);\n"
31330 "\n"
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
31335 msgid ""
31336 "I<This function is deprecated.> In new code, use the L</"
31337 "guestfs_ntfsresize_opts> call instead."
31338 msgstr ""
31339
31340 #. type: =head2
31341 #: ../src/guestfs-actions.pod:5314
31342 msgid "guestfs_ntfsresize_opts"
31343 msgstr ""
31344
31345 #. type: verbatim
31346 #: ../src/guestfs-actions.pod:5316
31347 #, no-wrap
31348 msgid ""
31349 " int\n"
31350 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31351 "                          const char *device,\n"
31352 "                          ...);\n"
31353 "\n"
31354 msgstr ""
31355
31356 #. type: verbatim
31357 #: ../src/guestfs-actions.pod:5326
31358 #, no-wrap
31359 msgid ""
31360 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31361 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31362 "\n"
31363 msgstr ""
31364
31365 #. type: textblock
31366 #: ../src/guestfs-actions.pod:5346
31367 msgid ""
31368 "After the resize operation, the filesystem is always marked as requiring a "
31369 "consistency check (for safety).  You have to boot into Windows to perform "
31370 "this check and clear this condition.  If you I<don't> set the C<force> "
31371 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31372 "times on a single filesystem without booting into Windows between each "
31373 "resize."
31374 msgstr ""
31375
31376 #. type: =head2
31377 #: ../src/guestfs-actions.pod:5361
31378 msgid "guestfs_ntfsresize_opts_va"
31379 msgstr ""
31380
31381 #. type: verbatim
31382 #: ../src/guestfs-actions.pod:5363
31383 #, no-wrap
31384 msgid ""
31385 " int\n"
31386 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31387 "                             const char *device,\n"
31388 "                             va_list args);\n"
31389 "\n"
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs-actions.pod:5368
31394 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31395 msgstr ""
31396
31397 #. type: =head2
31398 #: ../src/guestfs-actions.pod:5372
31399 msgid "guestfs_ntfsresize_opts_argv"
31400 msgstr ""
31401
31402 #. type: verbatim
31403 #: ../src/guestfs-actions.pod:5374
31404 #, no-wrap
31405 msgid ""
31406 " int\n"
31407 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31408 "                               const char *device,\n"
31409 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31410 "\n"
31411 msgstr ""
31412
31413 #. type: textblock
31414 #: ../src/guestfs-actions.pod:5379
31415 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31416 msgstr ""
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:5383
31420 msgid "guestfs_ntfsresize_size"
31421 msgstr ""
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:5385
31425 #, no-wrap
31426 msgid ""
31427 " int\n"
31428 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31429 "                          const char *device,\n"
31430 "                          int64_t size);\n"
31431 "\n"
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../src/guestfs-actions.pod:5397
31436 msgid ""
31437 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31438 "to specify the new size (in bytes) explicitly."
31439 msgstr ""
31440
31441 #. type: textblock
31442 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
31443 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
31444 #: ../src/guestfs-actions.pod:7824
31445 msgid "(Added in 1.3.14)"
31446 msgstr ""
31447
31448 #. type: =head2
31449 #: ../src/guestfs-actions.pod:5404
31450 msgid "guestfs_part_add"
31451 msgstr ""
31452
31453 #. type: verbatim
31454 #: ../src/guestfs-actions.pod:5406
31455 #, no-wrap
31456 msgid ""
31457 " int\n"
31458 " guestfs_part_add (guestfs_h *g,\n"
31459 "                   const char *device,\n"
31460 "                   const char *prlogex,\n"
31461 "                   int64_t startsect,\n"
31462 "                   int64_t endsect);\n"
31463 "\n"
31464 msgstr ""
31465
31466 #. type: textblock
31467 #: ../src/guestfs-actions.pod:5413
31468 msgid ""
31469 "This command adds a partition to C<device>.  If there is no partition table "
31470 "on the device, call C<guestfs_part_init> first."
31471 msgstr ""
31472
31473 #. type: textblock
31474 #: ../src/guestfs-actions.pod:5425
31475 msgid ""
31476 "Creating a partition which covers the whole disk is not so easy.  Use "
31477 "C<guestfs_part_disk> to do that."
31478 msgstr ""
31479
31480 #. type: textblock
31481 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
31482 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
31483 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
31484 #: ../src/guestfs-actions.pod:5702
31485 msgid "(Added in 1.0.78)"
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:5432
31490 msgid "guestfs_part_del"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:5434
31495 #, no-wrap
31496 msgid ""
31497 " int\n"
31498 " guestfs_part_del (guestfs_h *g,\n"
31499 "                   const char *device,\n"
31500 "                   int partnum);\n"
31501 "\n"
31502 msgstr ""
31503
31504 #. type: =head2
31505 #: ../src/guestfs-actions.pod:5449
31506 msgid "guestfs_part_disk"
31507 msgstr ""
31508
31509 #. type: verbatim
31510 #: ../src/guestfs-actions.pod:5451
31511 #, no-wrap
31512 msgid ""
31513 " int\n"
31514 " guestfs_part_disk (guestfs_h *g,\n"
31515 "                    const char *device,\n"
31516 "                    const char *parttype);\n"
31517 "\n"
31518 msgstr ""
31519
31520 #. type: textblock
31521 #: ../src/guestfs-actions.pod:5456
31522 msgid ""
31523 "This command is simply a combination of C<guestfs_part_init> followed by "
31524 "C<guestfs_part_add> to create a single primary partition covering the whole "
31525 "disk."
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs-actions.pod:5460
31530 msgid ""
31531 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31532 "possible values are described in C<guestfs_part_init>."
31533 msgstr ""
31534
31535 #. type: =head2
31536 #: ../src/guestfs-actions.pod:5470
31537 msgid "guestfs_part_get_bootable"
31538 msgstr ""
31539
31540 #. type: verbatim
31541 #: ../src/guestfs-actions.pod:5472
31542 #, no-wrap
31543 msgid ""
31544 " int\n"
31545 " guestfs_part_get_bootable (guestfs_h *g,\n"
31546 "                            const char *device,\n"
31547 "                            int partnum);\n"
31548 "\n"
31549 msgstr ""
31550
31551 #. type: textblock
31552 #: ../src/guestfs-actions.pod:5480
31553 msgid "See also C<guestfs_part_set_bootable>."
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs-actions.pod:5486
31558 msgid "guestfs_part_get_mbr_id"
31559 msgstr ""
31560
31561 #. type: verbatim
31562 #: ../src/guestfs-actions.pod:5488
31563 #, no-wrap
31564 msgid ""
31565 " int\n"
31566 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31567 "                          const char *device,\n"
31568 "                          int partnum);\n"
31569 "\n"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
31574 msgid ""
31575 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31576 "undefined results for other partition table types (see "
31577 "C<guestfs_part_get_parttype>)."
31578 msgstr ""
31579
31580 #. type: =head2
31581 #: ../src/guestfs-actions.pod:5504
31582 msgid "guestfs_part_get_parttype"
31583 msgstr ""
31584
31585 #. type: verbatim
31586 #: ../src/guestfs-actions.pod:5506
31587 #, no-wrap
31588 msgid ""
31589 " char *\n"
31590 " guestfs_part_get_parttype (guestfs_h *g,\n"
31591 "                            const char *device);\n"
31592 "\n"
31593 msgstr ""
31594
31595 #. type: textblock
31596 #: ../src/guestfs-actions.pod:5513
31597 msgid ""
31598 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31599 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31600 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31601 msgstr ""
31602
31603 #. type: =head2
31604 #: ../src/guestfs-actions.pod:5523
31605 msgid "guestfs_part_init"
31606 msgstr ""
31607
31608 #. type: verbatim
31609 #: ../src/guestfs-actions.pod:5525
31610 #, no-wrap
31611 msgid ""
31612 " int\n"
31613 " guestfs_part_init (guestfs_h *g,\n"
31614 "                    const char *device,\n"
31615 "                    const char *parttype);\n"
31616 "\n"
31617 msgstr ""
31618
31619 #. type: textblock
31620 #: ../src/guestfs-actions.pod:5534
31621 msgid ""
31622 "Initially there are no partitions.  Following this, you should call "
31623 "C<guestfs_part_add> for each partition required."
31624 msgstr ""
31625
31626 #. type: =head2
31627 #: ../src/guestfs-actions.pod:5607
31628 msgid "guestfs_part_list"
31629 msgstr "guestfs_part_list"
31630
31631 #. type: verbatim
31632 #: ../src/guestfs-actions.pod:5609
31633 #, no-wrap
31634 msgid ""
31635 " struct guestfs_partition_list *\n"
31636 " guestfs_part_list (guestfs_h *g,\n"
31637 "                    const char *device);\n"
31638 "\n"
31639 msgstr ""
31640 " struct guestfs_partition_list *\n"
31641 " guestfs_part_list (guestfs_h *g,\n"
31642 "                    const char *device);\n"
31643 "\n"
31644
31645 #. type: textblock
31646 #: ../src/guestfs-actions.pod:5626
31647 msgid ""
31648 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31649 "the device's sector size, see C<guestfs_blockdev_getss>."
31650 msgstr ""
31651
31652 #. type: textblock
31653 #: ../src/guestfs-actions.pod:5639
31654 msgid ""
31655 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31656 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31657 "use>."
31658 msgstr ""
31659
31660 #. type: =head2
31661 #: ../src/guestfs-actions.pod:5645
31662 msgid "guestfs_part_set_bootable"
31663 msgstr ""
31664
31665 #. type: verbatim
31666 #: ../src/guestfs-actions.pod:5647
31667 #, no-wrap
31668 msgid ""
31669 " int\n"
31670 " guestfs_part_set_bootable (guestfs_h *g,\n"
31671 "                            const char *device,\n"
31672 "                            int partnum,\n"
31673 "                            int bootable);\n"
31674 "\n"
31675 msgstr ""
31676
31677 #. type: =head2
31678 #: ../src/guestfs-actions.pod:5664
31679 msgid "guestfs_part_set_mbr_id"
31680 msgstr ""
31681
31682 #. type: verbatim
31683 #: ../src/guestfs-actions.pod:5666
31684 #, no-wrap
31685 msgid ""
31686 " int\n"
31687 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31688 "                          const char *device,\n"
31689 "                          int partnum,\n"
31690 "                          int idbyte);\n"
31691 "\n"
31692 msgstr ""
31693
31694 #. type: =head2
31695 #: ../src/guestfs-actions.pod:5686
31696 msgid "guestfs_part_set_name"
31697 msgstr ""
31698
31699 #. type: verbatim
31700 #: ../src/guestfs-actions.pod:5688
31701 #, no-wrap
31702 msgid ""
31703 " int\n"
31704 " guestfs_part_set_name (guestfs_h *g,\n"
31705 "                        const char *device,\n"
31706 "                        int partnum,\n"
31707 "                        const char *name);\n"
31708 "\n"
31709 msgstr ""
31710
31711 #. type: =head2
31712 #: ../src/guestfs-actions.pod:5704
31713 msgid "guestfs_part_to_dev"
31714 msgstr ""
31715
31716 #. type: verbatim
31717 #: ../src/guestfs-actions.pod:5706
31718 #, no-wrap
31719 msgid ""
31720 " char *\n"
31721 " guestfs_part_to_dev (guestfs_h *g,\n"
31722 "                      const char *partition);\n"
31723 "\n"
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:5714
31728 msgid ""
31729 "The named partition must exist, for example as a string returned from "
31730 "C<guestfs_list_partitions>."
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:5722
31735 msgid "guestfs_ping_daemon"
31736 msgstr ""
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:5724
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_ping_daemon (guestfs_h *g);\n"
31744 "\n"
31745 msgstr ""
31746
31747 #. type: =head2
31748 #: ../src/guestfs-actions.pod:5736
31749 msgid "guestfs_pread"
31750 msgstr ""
31751
31752 #. type: verbatim
31753 #: ../src/guestfs-actions.pod:5738
31754 #, no-wrap
31755 msgid ""
31756 " char *\n"
31757 " guestfs_pread (guestfs_h *g,\n"
31758 "                const char *path,\n"
31759 "                int count,\n"
31760 "                int64_t offset,\n"
31761 "                size_t *size_r);\n"
31762 "\n"
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs-actions.pod:5751
31767 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31768 msgstr ""
31769
31770 #. type: =head2
31771 #: ../src/guestfs-actions.pod:5762
31772 msgid "guestfs_pread_device"
31773 msgstr ""
31774
31775 #. type: verbatim
31776 #: ../src/guestfs-actions.pod:5764
31777 #, no-wrap
31778 msgid ""
31779 " char *\n"
31780 " guestfs_pread_device (guestfs_h *g,\n"
31781 "                       const char *device,\n"
31782 "                       int count,\n"
31783 "                       int64_t offset,\n"
31784 "                       size_t *size_r);\n"
31785 "\n"
31786 msgstr ""
31787
31788 #. type: textblock
31789 #: ../src/guestfs-actions.pod:5777
31790 msgid "See also C<guestfs_pread>."
31791 msgstr ""
31792
31793 #. type: textblock
31794 #: ../src/guestfs-actions.pod:5786
31795 msgid "(Added in 1.5.21)"
31796 msgstr ""
31797
31798 #. type: =head2
31799 #: ../src/guestfs-actions.pod:5788
31800 msgid "guestfs_pvcreate"
31801 msgstr ""
31802
31803 #. type: verbatim
31804 #: ../src/guestfs-actions.pod:5790
31805 #, no-wrap
31806 msgid ""
31807 " int\n"
31808 " guestfs_pvcreate (guestfs_h *g,\n"
31809 "                   const char *device);\n"
31810 "\n"
31811 msgstr ""
31812
31813 #. type: =head2
31814 #: ../src/guestfs-actions.pod:5802
31815 msgid "guestfs_pvremove"
31816 msgstr ""
31817
31818 #. type: verbatim
31819 #: ../src/guestfs-actions.pod:5804
31820 #, no-wrap
31821 msgid ""
31822 " int\n"
31823 " guestfs_pvremove (guestfs_h *g,\n"
31824 "                   const char *device);\n"
31825 "\n"
31826 msgstr ""
31827
31828 #. type: =head2
31829 #: ../src/guestfs-actions.pod:5819
31830 msgid "guestfs_pvresize"
31831 msgstr ""
31832
31833 #. type: verbatim
31834 #: ../src/guestfs-actions.pod:5821
31835 #, no-wrap
31836 msgid ""
31837 " int\n"
31838 " guestfs_pvresize (guestfs_h *g,\n"
31839 "                   const char *device);\n"
31840 "\n"
31841 msgstr ""
31842
31843 #. type: =head2
31844 #: ../src/guestfs-actions.pod:5832
31845 msgid "guestfs_pvresize_size"
31846 msgstr ""
31847
31848 #. type: verbatim
31849 #: ../src/guestfs-actions.pod:5834
31850 #, no-wrap
31851 msgid ""
31852 " int\n"
31853 " guestfs_pvresize_size (guestfs_h *g,\n"
31854 "                        const char *device,\n"
31855 "                        int64_t size);\n"
31856 "\n"
31857 msgstr ""
31858
31859 #. type: textblock
31860 #: ../src/guestfs-actions.pod:5839
31861 msgid ""
31862 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31863 "specify the new size (in bytes) explicitly."
31864 msgstr ""
31865
31866 #. type: =head2
31867 #: ../src/guestfs-actions.pod:5846
31868 msgid "guestfs_pvs"
31869 msgstr ""
31870
31871 #. type: verbatim
31872 #: ../src/guestfs-actions.pod:5848
31873 #, no-wrap
31874 msgid ""
31875 " char **\n"
31876 " guestfs_pvs (guestfs_h *g);\n"
31877 "\n"
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:5857
31882 msgid "See also C<guestfs_pvs_full>."
31883 msgstr ""
31884
31885 #. type: =head2
31886 #: ../src/guestfs-actions.pod:5865
31887 msgid "guestfs_pvs_full"
31888 msgstr ""
31889
31890 #. type: verbatim
31891 #: ../src/guestfs-actions.pod:5867
31892 #, no-wrap
31893 msgid ""
31894 " struct guestfs_lvm_pv_list *\n"
31895 " guestfs_pvs_full (guestfs_h *g);\n"
31896 "\n"
31897 msgstr ""
31898
31899 #. type: textblock
31900 #: ../src/guestfs-actions.pod:5873
31901 msgid ""
31902 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31903 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31904 msgstr ""
31905
31906 #. type: =head2
31907 #: ../src/guestfs-actions.pod:5879
31908 msgid "guestfs_pvuuid"
31909 msgstr ""
31910
31911 #. type: verbatim
31912 #: ../src/guestfs-actions.pod:5881
31913 #, no-wrap
31914 msgid ""
31915 " char *\n"
31916 " guestfs_pvuuid (guestfs_h *g,\n"
31917 "                 const char *device);\n"
31918 "\n"
31919 msgstr ""
31920
31921 #. type: =head2
31922 #: ../src/guestfs-actions.pod:5892
31923 msgid "guestfs_pwrite"
31924 msgstr ""
31925
31926 #. type: verbatim
31927 #: ../src/guestfs-actions.pod:5894
31928 #, no-wrap
31929 msgid ""
31930 " int\n"
31931 " guestfs_pwrite (guestfs_h *g,\n"
31932 "                 const char *path,\n"
31933 "                 const char *content,\n"
31934 "                 size_t content_size,\n"
31935 "                 int64_t offset);\n"
31936 "\n"
31937 msgstr ""
31938
31939 #. type: textblock
31940 #: ../src/guestfs-actions.pod:5910
31941 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31942 msgstr ""
31943
31944 #. type: =head2
31945 #: ../src/guestfs-actions.pod:5919
31946 msgid "guestfs_pwrite_device"
31947 msgstr ""
31948
31949 #. type: verbatim
31950 #: ../src/guestfs-actions.pod:5921
31951 #, no-wrap
31952 msgid ""
31953 " int\n"
31954 " guestfs_pwrite_device (guestfs_h *g,\n"
31955 "                        const char *device,\n"
31956 "                        const char *content,\n"
31957 "                        size_t content_size,\n"
31958 "                        int64_t offset);\n"
31959 "\n"
31960 msgstr ""
31961
31962 #. type: textblock
31963 #: ../src/guestfs-actions.pod:5936
31964 msgid "See also C<guestfs_pwrite>."
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs-actions.pod:5943
31969 msgid "(Added in 1.5.20)"
31970 msgstr ""
31971
31972 #. type: =head2
31973 #: ../src/guestfs-actions.pod:5945
31974 msgid "guestfs_read_file"
31975 msgstr ""
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-actions.pod:5947
31979 #, no-wrap
31980 msgid ""
31981 " char *\n"
31982 " guestfs_read_file (guestfs_h *g,\n"
31983 "                    const char *path,\n"
31984 "                    size_t *size_r);\n"
31985 "\n"
31986 msgstr ""
31987
31988 #. type: textblock
31989 #: ../src/guestfs-actions.pod:5955
31990 msgid ""
31991 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31992 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31993 "function is limited in the total size of file that can be handled."
31994 msgstr ""
31995
31996 #. type: textblock
31997 #: ../src/guestfs-actions.pod:5967
31998 msgid "(Added in 1.0.63)"
31999 msgstr ""
32000
32001 #. type: =head2
32002 #: ../src/guestfs-actions.pod:5969
32003 msgid "guestfs_read_lines"
32004 msgstr ""
32005
32006 #. type: verbatim
32007 #: ../src/guestfs-actions.pod:5971
32008 #, no-wrap
32009 msgid ""
32010 " char **\n"
32011 " guestfs_read_lines (guestfs_h *g,\n"
32012 "                     const char *path);\n"
32013 "\n"
32014 msgstr ""
32015
32016 #. type: textblock
32017 #: ../src/guestfs-actions.pod:5980
32018 msgid ""
32019 "Note that this function cannot correctly handle binary files (specifically, "
32020 "files containing C<\\0> character which is treated as end of line).  For "
32021 "those you need to use the C<guestfs_read_file> function which has a more "
32022 "complex interface."
32023 msgstr ""
32024
32025 #. type: =head2
32026 #: ../src/guestfs-actions.pod:5991
32027 msgid "guestfs_readdir"
32028 msgstr ""
32029
32030 #. type: verbatim
32031 #: ../src/guestfs-actions.pod:5993
32032 #, no-wrap
32033 msgid ""
32034 " struct guestfs_dirent_list *\n"
32035 " guestfs_readdir (guestfs_h *g,\n"
32036 "                  const char *dir);\n"
32037 "\n"
32038 msgstr ""
32039
32040 #. type: textblock
32041 #: ../src/guestfs-actions.pod:6047
32042 msgid ""
32043 "This function is primarily intended for use by programs.  To get a simple "
32044 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32045 "consumption, use C<guestfs_ll>."
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:6051
32050 msgid ""
32051 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32052 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32053 msgstr ""
32054
32055 #. type: =head2
32056 #: ../src/guestfs-actions.pod:6057
32057 msgid "guestfs_readlink"
32058 msgstr ""
32059
32060 #. type: verbatim
32061 #: ../src/guestfs-actions.pod:6059
32062 #, no-wrap
32063 msgid ""
32064 " char *\n"
32065 " guestfs_readlink (guestfs_h *g,\n"
32066 "                   const char *path);\n"
32067 "\n"
32068 msgstr ""
32069
32070 #. type: =head2
32071 #: ../src/guestfs-actions.pod:6070
32072 msgid "guestfs_readlinklist"
32073 msgstr ""
32074
32075 #. type: verbatim
32076 #: ../src/guestfs-actions.pod:6072
32077 #, no-wrap
32078 msgid ""
32079 " char **\n"
32080 " guestfs_readlinklist (guestfs_h *g,\n"
32081 "                       const char *path,\n"
32082 "                       char *const *names);\n"
32083 "\n"
32084 msgstr ""
32085
32086 #. type: =head2
32087 #: ../src/guestfs-actions.pod:6105
32088 msgid "guestfs_realpath"
32089 msgstr ""
32090
32091 #. type: verbatim
32092 #: ../src/guestfs-actions.pod:6107
32093 #, no-wrap
32094 msgid ""
32095 " char *\n"
32096 " guestfs_realpath (guestfs_h *g,\n"
32097 "                   const char *path);\n"
32098 "\n"
32099 msgstr ""
32100
32101 #. type: =head2
32102 #: ../src/guestfs-actions.pod:6119
32103 msgid "guestfs_removexattr"
32104 msgstr ""
32105
32106 #. type: verbatim
32107 #: ../src/guestfs-actions.pod:6121
32108 #, no-wrap
32109 msgid ""
32110 " int\n"
32111 " guestfs_removexattr (guestfs_h *g,\n"
32112 "                      const char *xattr,\n"
32113 "                      const char *path);\n"
32114 "\n"
32115 msgstr ""
32116
32117 #. type: textblock
32118 #: ../src/guestfs-actions.pod:6129
32119 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:6135
32124 msgid "guestfs_resize2fs"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:6137
32129 #, no-wrap
32130 msgid ""
32131 " int\n"
32132 " guestfs_resize2fs (guestfs_h *g,\n"
32133 "                    const char *device);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs-actions.pod:6144
32139 msgid ""
32140 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32141 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32142 "sometimes gives an error about this and sometimes not.  In any case, it is "
32143 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32144 msgstr ""
32145
32146 #. type: =head2
32147 #: ../src/guestfs-actions.pod:6154
32148 msgid "guestfs_resize2fs_M"
32149 msgstr ""
32150
32151 #. type: verbatim
32152 #: ../src/guestfs-actions.pod:6156
32153 #, no-wrap
32154 msgid ""
32155 " int\n"
32156 " guestfs_resize2fs_M (guestfs_h *g,\n"
32157 "                      const char *device);\n"
32158 "\n"
32159 msgstr ""
32160
32161 #. type: textblock
32162 #: ../src/guestfs-actions.pod:6160
32163 msgid ""
32164 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32165 "resized to its minimum size.  This works like the I<-M> option to the "
32166 "C<resize2fs> command."
32167 msgstr ""
32168
32169 #. type: textblock
32170 #: ../src/guestfs-actions.pod:6164
32171 msgid ""
32172 "To get the resulting size of the filesystem you should call "
32173 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32174 "These two numbers, multiplied together, give the resulting size of the "
32175 "minimal filesystem in bytes."
32176 msgstr ""
32177
32178 #. type: =head2
32179 #: ../src/guestfs-actions.pod:6173
32180 msgid "guestfs_resize2fs_size"
32181 msgstr ""
32182
32183 #. type: verbatim
32184 #: ../src/guestfs-actions.pod:6175
32185 #, no-wrap
32186 msgid ""
32187 " int\n"
32188 " guestfs_resize2fs_size (guestfs_h *g,\n"
32189 "                         const char *device,\n"
32190 "                         int64_t size);\n"
32191 "\n"
32192 msgstr ""
32193
32194 #. type: textblock
32195 #: ../src/guestfs-actions.pod:6180
32196 msgid ""
32197 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32198 "to specify the new size (in bytes) explicitly."
32199 msgstr ""
32200
32201 #. type: =head2
32202 #: ../src/guestfs-actions.pod:6187
32203 msgid "guestfs_rm"
32204 msgstr ""
32205
32206 #. type: verbatim
32207 #: ../src/guestfs-actions.pod:6189
32208 #, no-wrap
32209 msgid ""
32210 " int\n"
32211 " guestfs_rm (guestfs_h *g,\n"
32212 "             const char *path);\n"
32213 "\n"
32214 msgstr ""
32215
32216 #. type: =head2
32217 #: ../src/guestfs-actions.pod:6199
32218 msgid "guestfs_rm_rf"
32219 msgstr ""
32220
32221 #. type: verbatim
32222 #: ../src/guestfs-actions.pod:6201
32223 #, no-wrap
32224 msgid ""
32225 " int\n"
32226 " guestfs_rm_rf (guestfs_h *g,\n"
32227 "                const char *path);\n"
32228 "\n"
32229 msgstr ""
32230
32231 #. type: =head2
32232 #: ../src/guestfs-actions.pod:6213
32233 msgid "guestfs_rmdir"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs-actions.pod:6215
32238 #, no-wrap
32239 msgid ""
32240 " int\n"
32241 " guestfs_rmdir (guestfs_h *g,\n"
32242 "                const char *path);\n"
32243 "\n"
32244 msgstr ""
32245
32246 #. type: =head2
32247 #: ../src/guestfs-actions.pod:6225
32248 msgid "guestfs_rmmountpoint"
32249 msgstr ""
32250
32251 #. type: verbatim
32252 #: ../src/guestfs-actions.pod:6227
32253 #, no-wrap
32254 msgid ""
32255 " int\n"
32256 " guestfs_rmmountpoint (guestfs_h *g,\n"
32257 "                       const char *exemptpath);\n"
32258 "\n"
32259 msgstr ""
32260
32261 #. type: textblock
32262 #: ../src/guestfs-actions.pod:6231
32263 msgid ""
32264 "This calls removes a mountpoint that was previously created with "
32265 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32266 msgstr ""
32267
32268 #. type: =head2
32269 #: ../src/guestfs-actions.pod:6239
32270 msgid "guestfs_scrub_device"
32271 msgstr ""
32272
32273 #. type: verbatim
32274 #: ../src/guestfs-actions.pod:6241
32275 #, no-wrap
32276 msgid ""
32277 " int\n"
32278 " guestfs_scrub_device (guestfs_h *g,\n"
32279 "                       const char *device);\n"
32280 "\n"
32281 msgstr ""
32282
32283 #. type: textblock
32284 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
32285 #: ../src/guestfs-actions.pod:6293
32286 msgid "(Added in 1.0.52)"
32287 msgstr ""
32288
32289 #. type: =head2
32290 #: ../src/guestfs-actions.pod:6258
32291 msgid "guestfs_scrub_file"
32292 msgstr ""
32293
32294 #. type: verbatim
32295 #: ../src/guestfs-actions.pod:6260
32296 #, no-wrap
32297 msgid ""
32298 " int\n"
32299 " guestfs_scrub_file (guestfs_h *g,\n"
32300 "                     const char *file);\n"
32301 "\n"
32302 msgstr ""
32303
32304 #. type: =head2
32305 #: ../src/guestfs-actions.pod:6276
32306 msgid "guestfs_scrub_freespace"
32307 msgstr ""
32308
32309 #. type: verbatim
32310 #: ../src/guestfs-actions.pod:6278
32311 #, no-wrap
32312 msgid ""
32313 " int\n"
32314 " guestfs_scrub_freespace (guestfs_h *g,\n"
32315 "                          const char *dir);\n"
32316 "\n"
32317 msgstr ""
32318
32319 #. type: textblock
32320 #: ../src/guestfs-actions.pod:6282
32321 msgid ""
32322 "This command creates the directory C<dir> and then fills it with files until "
32323 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32324 "and deletes them.  The intention is to scrub any free space on the partition "
32325 "containing C<dir>."
32326 msgstr ""
32327
32328 #. type: =head2
32329 #: ../src/guestfs-actions.pod:6295
32330 msgid "guestfs_set_append"
32331 msgstr ""
32332
32333 #. type: verbatim
32334 #: ../src/guestfs-actions.pod:6297
32335 #, no-wrap
32336 msgid ""
32337 " int\n"
32338 " guestfs_set_append (guestfs_h *g,\n"
32339 "                     const char *append);\n"
32340 "\n"
32341 msgstr ""
32342
32343 #. type: =head2
32344 #: ../src/guestfs-actions.pod:6314
32345 msgid "guestfs_set_attach_method"
32346 msgstr ""
32347
32348 #. type: verbatim
32349 #: ../src/guestfs-actions.pod:6316
32350 #, no-wrap
32351 msgid ""
32352 " int\n"
32353 " guestfs_set_attach_method (guestfs_h *g,\n"
32354 "                            const char *attachmethod);\n"
32355 "\n"
32356 msgstr ""
32357
32358 #. type: =head2
32359 #: ../src/guestfs-actions.pod:6344
32360 msgid "guestfs_set_autosync"
32361 msgstr ""
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-actions.pod:6346
32365 #, no-wrap
32366 msgid ""
32367 " int\n"
32368 " guestfs_set_autosync (guestfs_h *g,\n"
32369 "                       int autosync);\n"
32370 "\n"
32371 msgstr ""
32372
32373 #. type: =head2
32374 #: ../src/guestfs-actions.pod:6362
32375 msgid "guestfs_set_direct"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:6364
32380 #, no-wrap
32381 msgid ""
32382 " int\n"
32383 " guestfs_set_direct (guestfs_h *g,\n"
32384 "                     int direct);\n"
32385 "\n"
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs-actions.pod:6372
32390 msgid ""
32391 "One consequence of this is that log messages aren't caught by the library "
32392 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32393 "stdout."
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-actions.pod:6385
32398 msgid "guestfs_set_e2label"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-actions.pod:6387
32403 #, no-wrap
32404 msgid ""
32405 " int\n"
32406 " guestfs_set_e2label (guestfs_h *g,\n"
32407 "                      const char *device,\n"
32408 "                      const char *label);\n"
32409 "\n"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs-actions.pod:6396
32414 msgid ""
32415 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32416 "the existing label on a filesystem."
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:6403
32421 msgid "guestfs_set_e2uuid"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:6405
32426 #, no-wrap
32427 msgid ""
32428 " int\n"
32429 " guestfs_set_e2uuid (guestfs_h *g,\n"
32430 "                     const char *device,\n"
32431 "                     const char *uuid);\n"
32432 "\n"
32433 msgstr ""
32434
32435 #. type: textblock
32436 #: ../src/guestfs-actions.pod:6415
32437 msgid ""
32438 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32439 "the existing UUID of a filesystem."
32440 msgstr ""
32441
32442 #. type: =head2
32443 #: ../src/guestfs-actions.pod:6422
32444 msgid "guestfs_set_memsize"
32445 msgstr ""
32446
32447 #. type: verbatim
32448 #: ../src/guestfs-actions.pod:6424
32449 #, no-wrap
32450 msgid ""
32451 " int\n"
32452 " guestfs_set_memsize (guestfs_h *g,\n"
32453 "                      int memsize);\n"
32454 "\n"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs-actions.pod:6428
32459 msgid ""
32460 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32461 "This only has any effect if called before C<guestfs_launch>."
32462 msgstr ""
32463
32464 #. type: =head2
32465 #: ../src/guestfs-actions.pod:6443
32466 msgid "guestfs_set_network"
32467 msgstr ""
32468
32469 #. type: verbatim
32470 #: ../src/guestfs-actions.pod:6445
32471 #, no-wrap
32472 msgid ""
32473 " int\n"
32474 " guestfs_set_network (guestfs_h *g,\n"
32475 "                      int network);\n"
32476 "\n"
32477 msgstr ""
32478
32479 #. type: textblock
32480 #: ../src/guestfs-actions.pod:6455
32481 msgid ""
32482 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32483 "effect."
32484 msgstr ""
32485
32486 #. type: =head2
32487 #: ../src/guestfs-actions.pod:6462
32488 msgid "guestfs_set_path"
32489 msgstr ""
32490
32491 #. type: verbatim
32492 #: ../src/guestfs-actions.pod:6464
32493 #, no-wrap
32494 msgid ""
32495 " int\n"
32496 " guestfs_set_path (guestfs_h *g,\n"
32497 "                   const char *searchpath);\n"
32498 "\n"
32499 msgstr ""
32500
32501 #. type: =head2
32502 #: ../src/guestfs-actions.pod:6479
32503 msgid "guestfs_set_pgroup"
32504 msgstr ""
32505
32506 #. type: verbatim
32507 #: ../src/guestfs-actions.pod:6481
32508 #, no-wrap
32509 msgid ""
32510 " int\n"
32511 " guestfs_set_pgroup (guestfs_h *g,\n"
32512 "                     int pgroup);\n"
32513 "\n"
32514 msgstr ""
32515
32516 #. type: =head2
32517 #: ../src/guestfs-actions.pod:6498
32518 msgid "guestfs_set_qemu"
32519 msgstr ""
32520
32521 #. type: verbatim
32522 #: ../src/guestfs-actions.pod:6500
32523 #, no-wrap
32524 msgid ""
32525 " int\n"
32526 " guestfs_set_qemu (guestfs_h *g,\n"
32527 "                   const char *qemu);\n"
32528 "\n"
32529 msgstr ""
32530
32531 #. type: =head2
32532 #: ../src/guestfs-actions.pod:6526
32533 msgid "guestfs_set_recovery_proc"
32534 msgstr ""
32535
32536 #. type: verbatim
32537 #: ../src/guestfs-actions.pod:6528
32538 #, no-wrap
32539 msgid ""
32540 " int\n"
32541 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32542 "                            int recoveryproc);\n"
32543 "\n"
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs-actions.pod:6532
32548 msgid ""
32549 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32550 "not create a recovery process.  The purpose of the recovery process is to "
32551 "stop runaway qemu processes in the case where the main program aborts "
32552 "abruptly."
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs-actions.pod:6537
32557 msgid ""
32558 "This only has any effect if called before C<guestfs_launch>, and the default "
32559 "is true."
32560 msgstr ""
32561
32562 #. type: =head2
32563 #: ../src/guestfs-actions.pod:6550
32564 msgid "guestfs_set_selinux"
32565 msgstr ""
32566
32567 #. type: verbatim
32568 #: ../src/guestfs-actions.pod:6552
32569 #, no-wrap
32570 msgid ""
32571 " int\n"
32572 " guestfs_set_selinux (guestfs_h *g,\n"
32573 "                      int selinux);\n"
32574 "\n"
32575 msgstr ""
32576
32577 #. type: =head2
32578 #: ../src/guestfs-actions.pod:6569
32579 #, fuzzy
32580 #| msgid "guestfs_ln_s"
32581 msgid "guestfs_set_smp"
32582 msgstr "guestfs_ln_s"
32583
32584 #. type: verbatim
32585 #: ../src/guestfs-actions.pod:6571
32586 #, fuzzy, no-wrap
32587 #| msgid ""
32588 #| " int\n"
32589 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32590 #| "                  const char *path);\n"
32591 #| "\n"
32592 msgid ""
32593 " int\n"
32594 " guestfs_set_smp (guestfs_h *g,\n"
32595 "                  int smp);\n"
32596 "\n"
32597 msgstr ""
32598 " int\n"
32599 " guestfs_mkdir_p (guestfs_h *g,\n"
32600 "                  const char *path);\n"
32601 "\n"
32602
32603 #. type: textblock
32604 #: ../src/guestfs-actions.pod:6579
32605 msgid "This function must be called before C<guestfs_launch>."
32606 msgstr ""
32607
32608 #. type: =head2
32609 #: ../src/guestfs-actions.pod:6585
32610 msgid "guestfs_set_trace"
32611 msgstr ""
32612
32613 #. type: verbatim
32614 #: ../src/guestfs-actions.pod:6587
32615 #, no-wrap
32616 msgid ""
32617 " int\n"
32618 " guestfs_set_trace (guestfs_h *g,\n"
32619 "                    int trace);\n"
32620 "\n"
32621 msgstr ""
32622
32623 #. type: textblock
32624 #: ../src/guestfs-actions.pod:6601
32625 msgid ""
32626 "Trace messages are normally sent to C<stderr>, unless you register a "
32627 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32628 msgstr ""
32629
32630 #. type: =head2
32631 #: ../src/guestfs-actions.pod:6609
32632 msgid "guestfs_set_verbose"
32633 msgstr ""
32634
32635 #. type: verbatim
32636 #: ../src/guestfs-actions.pod:6611
32637 #, no-wrap
32638 msgid ""
32639 " int\n"
32640 " guestfs_set_verbose (guestfs_h *g,\n"
32641 "                      int verbose);\n"
32642 "\n"
32643 msgstr ""
32644
32645 #. type: textblock
32646 #: ../src/guestfs-actions.pod:6620
32647 msgid ""
32648 "Verbose messages are normally sent to C<stderr>, unless you register a "
32649 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32650 msgstr ""
32651
32652 #. type: =head2
32653 #: ../src/guestfs-actions.pod:6628
32654 msgid "guestfs_setcon"
32655 msgstr ""
32656
32657 #. type: verbatim
32658 #: ../src/guestfs-actions.pod:6630
32659 #, no-wrap
32660 msgid ""
32661 " int\n"
32662 " guestfs_setcon (guestfs_h *g,\n"
32663 "                 const char *context);\n"
32664 "\n"
32665 msgstr ""
32666
32667 #. type: =head2
32668 #: ../src/guestfs-actions.pod:6643
32669 msgid "guestfs_setxattr"
32670 msgstr ""
32671
32672 #. type: verbatim
32673 #: ../src/guestfs-actions.pod:6645
32674 #, no-wrap
32675 msgid ""
32676 " int\n"
32677 " guestfs_setxattr (guestfs_h *g,\n"
32678 "                   const char *xattr,\n"
32679 "                   const char *val,\n"
32680 "                   int vallen,\n"
32681 "                   const char *path);\n"
32682 "\n"
32683 msgstr ""
32684
32685 #. type: textblock
32686 #: ../src/guestfs-actions.pod:6656
32687 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32688 msgstr ""
32689
32690 #. type: =head2
32691 #: ../src/guestfs-actions.pod:6662
32692 msgid "guestfs_sfdisk"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs-actions.pod:6664
32697 #, no-wrap
32698 msgid ""
32699 " int\n"
32700 " guestfs_sfdisk (guestfs_h *g,\n"
32701 "                 const char *device,\n"
32702 "                 int cyls,\n"
32703 "                 int heads,\n"
32704 "                 int sectors,\n"
32705 "                 char *const *lines);\n"
32706 "\n"
32707 msgstr ""
32708
32709 #. type: textblock
32710 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
32711 #: ../src/guestfs-actions.pod:6750
32712 msgid ""
32713 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32714 "call instead."
32715 msgstr ""
32716
32717 #. type: textblock
32718 #: ../src/guestfs-actions.pod:6699
32719 msgid ""
32720 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32721 msgstr ""
32722
32723 #. type: =head2
32724 #: ../src/guestfs-actions.pod:6709
32725 msgid "guestfs_sfdiskM"
32726 msgstr ""
32727
32728 #. type: verbatim
32729 #: ../src/guestfs-actions.pod:6711
32730 #, no-wrap
32731 msgid ""
32732 " int\n"
32733 " guestfs_sfdiskM (guestfs_h *g,\n"
32734 "                  const char *device,\n"
32735 "                  char *const *lines);\n"
32736 "\n"
32737 msgstr ""
32738
32739 #. type: textblock
32740 #: ../src/guestfs-actions.pod:6723
32741 msgid ""
32742 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32743 "partition sizes are specified in megabytes only (rounded to the nearest "
32744 "cylinder) and you don't need to specify the cyls, heads and sectors "
32745 "parameters which were rarely if ever used anyway."
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs-actions.pod:6729
32750 msgid ""
32751 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32752 "C<guestfs_part_disk>"
32753 msgstr ""
32754
32755 #. type: =head2
32756 #: ../src/guestfs-actions.pod:6739
32757 msgid "guestfs_sfdisk_N"
32758 msgstr ""
32759
32760 #. type: verbatim
32761 #: ../src/guestfs-actions.pod:6741
32762 #, no-wrap
32763 msgid ""
32764 " int\n"
32765 " guestfs_sfdisk_N (guestfs_h *g,\n"
32766 "                   const char *device,\n"
32767 "                   int partnum,\n"
32768 "                   int cyls,\n"
32769 "                   int heads,\n"
32770 "                   int sectors,\n"
32771 "                   const char *line);\n"
32772 "\n"
32773 msgstr ""
32774
32775 #. type: textblock
32776 #: ../src/guestfs-actions.pod:6760
32777 msgid ""
32778 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32779 "for the cyls/heads/sectors parameters."
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs-actions.pod:6763
32784 msgid "See also: C<guestfs_part_add>"
32785 msgstr ""
32786
32787 #. type: =head2
32788 #: ../src/guestfs-actions.pod:6772
32789 msgid "guestfs_sfdisk_disk_geometry"
32790 msgstr ""
32791
32792 #. type: verbatim
32793 #: ../src/guestfs-actions.pod:6774
32794 #, no-wrap
32795 msgid ""
32796 " char *\n"
32797 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32798 "                               const char *device);\n"
32799 "\n"
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs-actions.pod:6778
32804 msgid ""
32805 "This displays the disk geometry of C<device> read from the partition table.  "
32806 "Especially in the case where the underlying block device has been resized, "
32807 "this can be different from the kernel's idea of the geometry (see "
32808 "C<guestfs_sfdisk_kernel_geometry>)."
32809 msgstr ""
32810
32811 #. type: =head2
32812 #: ../src/guestfs-actions.pod:6791
32813 msgid "guestfs_sfdisk_kernel_geometry"
32814 msgstr ""
32815
32816 #. type: verbatim
32817 #: ../src/guestfs-actions.pod:6793
32818 #, no-wrap
32819 msgid ""
32820 " char *\n"
32821 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32822 "                                 const char *device);\n"
32823 "\n"
32824 msgstr ""
32825
32826 #. type: =head2
32827 #: ../src/guestfs-actions.pod:6807
32828 msgid "guestfs_sfdisk_l"
32829 msgstr ""
32830
32831 #. type: verbatim
32832 #: ../src/guestfs-actions.pod:6809
32833 #, no-wrap
32834 msgid ""
32835 " char *\n"
32836 " guestfs_sfdisk_l (guestfs_h *g,\n"
32837 "                   const char *device);\n"
32838 "\n"
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs-actions.pod:6813
32843 msgid ""
32844 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32845 "call instead."
32846 msgstr ""
32847
32848 #. type: textblock
32849 #: ../src/guestfs-actions.pod:6824
32850 msgid "See also: C<guestfs_part_list>"
32851 msgstr ""
32852
32853 #. type: =head2
32854 #: ../src/guestfs-actions.pod:6831
32855 msgid "guestfs_sh"
32856 msgstr ""
32857
32858 #. type: verbatim
32859 #: ../src/guestfs-actions.pod:6833
32860 #, no-wrap
32861 msgid ""
32862 " char *\n"
32863 " guestfs_sh (guestfs_h *g,\n"
32864 "             const char *command);\n"
32865 "\n"
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs-actions.pod:6840
32870 msgid "This is like C<guestfs_command>, but passes the command to:"
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs-actions.pod:6848
32875 msgid "All the provisos about C<guestfs_command> apply to this call."
32876 msgstr ""
32877
32878 #. type: =head2
32879 #: ../src/guestfs-actions.pod:6855
32880 msgid "guestfs_sh_lines"
32881 msgstr ""
32882
32883 #. type: verbatim
32884 #: ../src/guestfs-actions.pod:6857
32885 #, no-wrap
32886 msgid ""
32887 " char **\n"
32888 " guestfs_sh_lines (guestfs_h *g,\n"
32889 "                   const char *command);\n"
32890 "\n"
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs-actions.pod:6861
32895 msgid ""
32896 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32897 "lines."
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs-actions.pod:6864
32902 msgid "See also: C<guestfs_command_lines>"
32903 msgstr ""
32904
32905 #. type: =head2
32906 #: ../src/guestfs-actions.pod:6872
32907 msgid "guestfs_sleep"
32908 msgstr ""
32909
32910 #. type: verbatim
32911 #: ../src/guestfs-actions.pod:6874
32912 #, no-wrap
32913 msgid ""
32914 " int\n"
32915 " guestfs_sleep (guestfs_h *g,\n"
32916 "                int secs);\n"
32917 "\n"
32918 msgstr ""
32919
32920 #. type: textblock
32921 #: ../src/guestfs-actions.pod:6882
32922 msgid "(Added in 1.0.41)"
32923 msgstr ""
32924
32925 #. type: =head2
32926 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
32927 msgid "guestfs_stat"
32928 msgstr ""
32929
32930 #. type: verbatim
32931 #: ../src/guestfs-actions.pod:6886
32932 #, no-wrap
32933 msgid ""
32934 " struct guestfs_stat *\n"
32935 " guestfs_stat (guestfs_h *g,\n"
32936 "               const char *path);\n"
32937 "\n"
32938 msgstr ""
32939
32940 #. type: =head2
32941 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
32942 msgid "guestfs_statvfs"
32943 msgstr ""
32944
32945 #. type: verbatim
32946 #: ../src/guestfs-actions.pod:6902
32947 #, no-wrap
32948 msgid ""
32949 " struct guestfs_statvfs *\n"
32950 " guestfs_statvfs (guestfs_h *g,\n"
32951 "                  const char *path);\n"
32952 "\n"
32953 msgstr ""
32954
32955 #. type: textblock
32956 #: ../src/guestfs-actions.pod:6912
32957 msgid ""
32958 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32959 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32960 msgstr ""
32961
32962 #. type: =head2
32963 #: ../src/guestfs-actions.pod:6918
32964 msgid "guestfs_strings"
32965 msgstr ""
32966
32967 #. type: verbatim
32968 #: ../src/guestfs-actions.pod:6920
32969 #, no-wrap
32970 msgid ""
32971 " char **\n"
32972 " guestfs_strings (guestfs_h *g,\n"
32973 "                  const char *path);\n"
32974 "\n"
32975 msgstr ""
32976
32977 #. type: =head2
32978 #: ../src/guestfs-actions.pod:6936
32979 msgid "guestfs_strings_e"
32980 msgstr ""
32981
32982 #. type: verbatim
32983 #: ../src/guestfs-actions.pod:6938
32984 #, no-wrap
32985 msgid ""
32986 " char **\n"
32987 " guestfs_strings_e (guestfs_h *g,\n"
32988 "                    const char *encoding,\n"
32989 "                    const char *path);\n"
32990 "\n"
32991 msgstr ""
32992
32993 #. type: textblock
32994 #: ../src/guestfs-actions.pod:6943
32995 msgid ""
32996 "This is like the C<guestfs_strings> command, but allows you to specify the "
32997 "encoding of strings that are looked for in the source file C<path>."
32998 msgstr ""
32999
33000 #. type: textblock
33001 #: ../src/guestfs-actions.pod:6953
33002 msgid ""
33003 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33004 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33005 msgstr ""
33006
33007 #. type: =head2
33008 #: ../src/guestfs-actions.pod:6991
33009 msgid "guestfs_swapoff_device"
33010 msgstr ""
33011
33012 #. type: verbatim
33013 #: ../src/guestfs-actions.pod:6993
33014 #, no-wrap
33015 msgid ""
33016 " int\n"
33017 " guestfs_swapoff_device (guestfs_h *g,\n"
33018 "                         const char *device);\n"
33019 "\n"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs-actions.pod:6997
33024 msgid ""
33025 "This command disables the libguestfs appliance swap device or partition "
33026 "named C<device>.  See C<guestfs_swapon_device>."
33027 msgstr ""
33028
33029 #. type: =head2
33030 #: ../src/guestfs-actions.pod:7005
33031 msgid "guestfs_swapoff_file"
33032 msgstr ""
33033
33034 #. type: verbatim
33035 #: ../src/guestfs-actions.pod:7007
33036 #, no-wrap
33037 msgid ""
33038 " int\n"
33039 " guestfs_swapoff_file (guestfs_h *g,\n"
33040 "                       const char *file);\n"
33041 "\n"
33042 msgstr ""
33043
33044 #. type: =head2
33045 #: ../src/guestfs-actions.pod:7017
33046 msgid "guestfs_swapoff_label"
33047 msgstr ""
33048
33049 #. type: verbatim
33050 #: ../src/guestfs-actions.pod:7019
33051 #, no-wrap
33052 msgid ""
33053 " int\n"
33054 " guestfs_swapoff_label (guestfs_h *g,\n"
33055 "                        const char *label);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: =head2
33060 #: ../src/guestfs-actions.pod:7030
33061 msgid "guestfs_swapoff_uuid"
33062 msgstr ""
33063
33064 #. type: verbatim
33065 #: ../src/guestfs-actions.pod:7032
33066 #, no-wrap
33067 msgid ""
33068 " int\n"
33069 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33070 "                       const char *uuid);\n"
33071 "\n"
33072 msgstr ""
33073
33074 #. type: =head2
33075 #: ../src/guestfs-actions.pod:7043
33076 msgid "guestfs_swapon_device"
33077 msgstr ""
33078
33079 #. type: verbatim
33080 #: ../src/guestfs-actions.pod:7045
33081 #, no-wrap
33082 msgid ""
33083 " int\n"
33084 " guestfs_swapon_device (guestfs_h *g,\n"
33085 "                        const char *device);\n"
33086 "\n"
33087 msgstr ""
33088
33089 #. type: textblock
33090 #: ../src/guestfs-actions.pod:7049
33091 msgid ""
33092 "This command enables the libguestfs appliance to use the swap device or "
33093 "partition named C<device>.  The increased memory is made available for all "
33094 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33095 msgstr ""
33096
33097 #. type: =head2
33098 #: ../src/guestfs-actions.pod:7065
33099 msgid "guestfs_swapon_file"
33100 msgstr ""
33101
33102 #. type: verbatim
33103 #: ../src/guestfs-actions.pod:7067
33104 #, no-wrap
33105 msgid ""
33106 " int\n"
33107 " guestfs_swapon_file (guestfs_h *g,\n"
33108 "                      const char *file);\n"
33109 "\n"
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs-actions.pod:7071
33114 msgid ""
33115 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33116 "notes."
33117 msgstr ""
33118
33119 #. type: =head2
33120 #: ../src/guestfs-actions.pod:7078
33121 msgid "guestfs_swapon_label"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs-actions.pod:7080
33126 #, no-wrap
33127 msgid ""
33128 " int\n"
33129 " guestfs_swapon_label (guestfs_h *g,\n"
33130 "                       const char *label);\n"
33131 "\n"
33132 msgstr ""
33133
33134 #. type: textblock
33135 #: ../src/guestfs-actions.pod:7084
33136 msgid ""
33137 "This command enables swap to a labeled swap partition.  See "
33138 "C<guestfs_swapon_device> for other notes."
33139 msgstr ""
33140
33141 #. type: =head2
33142 #: ../src/guestfs-actions.pod:7091
33143 msgid "guestfs_swapon_uuid"
33144 msgstr ""
33145
33146 #. type: verbatim
33147 #: ../src/guestfs-actions.pod:7093
33148 #, no-wrap
33149 msgid ""
33150 " int\n"
33151 " guestfs_swapon_uuid (guestfs_h *g,\n"
33152 "                      const char *uuid);\n"
33153 "\n"
33154 msgstr ""
33155
33156 #. type: textblock
33157 #: ../src/guestfs-actions.pod:7097
33158 msgid ""
33159 "This command enables swap to a swap partition with the given UUID.  See "
33160 "C<guestfs_swapon_device> for other notes."
33161 msgstr ""
33162
33163 #. type: =head2
33164 #: ../src/guestfs-actions.pod:7104
33165 msgid "guestfs_sync"
33166 msgstr ""
33167
33168 #. type: verbatim
33169 #: ../src/guestfs-actions.pod:7106
33170 #, no-wrap
33171 msgid ""
33172 " int\n"
33173 " guestfs_sync (guestfs_h *g);\n"
33174 "\n"
33175 msgstr ""
33176
33177 #. type: =head2
33178 #: ../src/guestfs-actions.pod:7119
33179 msgid "guestfs_tail"
33180 msgstr ""
33181
33182 #. type: verbatim
33183 #: ../src/guestfs-actions.pod:7121
33184 #, no-wrap
33185 msgid ""
33186 " char **\n"
33187 " guestfs_tail (guestfs_h *g,\n"
33188 "               const char *path);\n"
33189 "\n"
33190 msgstr ""
33191
33192 #. type: =head2
33193 #: ../src/guestfs-actions.pod:7137
33194 msgid "guestfs_tail_n"
33195 msgstr ""
33196
33197 #. type: verbatim
33198 #: ../src/guestfs-actions.pod:7139
33199 #, no-wrap
33200 msgid ""
33201 " char **\n"
33202 " guestfs_tail_n (guestfs_h *g,\n"
33203 "                 int nrlines,\n"
33204 "                 const char *path);\n"
33205 "\n"
33206 msgstr ""
33207
33208 #. type: =head2
33209 #: ../src/guestfs-actions.pod:7161
33210 msgid "guestfs_tar_in"
33211 msgstr ""
33212
33213 #. type: verbatim
33214 #: ../src/guestfs-actions.pod:7163
33215 #, no-wrap
33216 msgid ""
33217 " int\n"
33218 " guestfs_tar_in (guestfs_h *g,\n"
33219 "                 const char *tarfile,\n"
33220 "                 const char *directory);\n"
33221 "\n"
33222 msgstr ""
33223
33224 #. type: textblock
33225 #: ../src/guestfs-actions.pod:7171
33226 msgid ""
33227 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
33232 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
33233 msgid "(Added in 1.0.3)"
33234 msgstr ""
33235
33236 #. type: =head2
33237 #: ../src/guestfs-actions.pod:7178
33238 msgid "guestfs_tar_out"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs-actions.pod:7180
33243 #, no-wrap
33244 msgid ""
33245 " int\n"
33246 " guestfs_tar_out (guestfs_h *g,\n"
33247 "                  const char *directory,\n"
33248 "                  const char *tarfile);\n"
33249 "\n"
33250 msgstr ""
33251
33252 #. type: textblock
33253 #: ../src/guestfs-actions.pod:7188
33254 msgid ""
33255 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33256 "C<guestfs_txz_out>."
33257 msgstr ""
33258
33259 #. type: =head2
33260 #: ../src/guestfs-actions.pod:7195
33261 msgid "guestfs_tgz_in"
33262 msgstr ""
33263
33264 #. type: verbatim
33265 #: ../src/guestfs-actions.pod:7197
33266 #, no-wrap
33267 msgid ""
33268 " int\n"
33269 " guestfs_tgz_in (guestfs_h *g,\n"
33270 "                 const char *tarball,\n"
33271 "                 const char *directory);\n"
33272 "\n"
33273 msgstr ""
33274
33275 #. type: textblock
33276 #: ../src/guestfs-actions.pod:7205
33277 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33278 msgstr ""
33279
33280 #. type: =head2
33281 #: ../src/guestfs-actions.pod:7211
33282 msgid "guestfs_tgz_out"
33283 msgstr ""
33284
33285 #. type: verbatim
33286 #: ../src/guestfs-actions.pod:7213
33287 #, no-wrap
33288 msgid ""
33289 " int\n"
33290 " guestfs_tgz_out (guestfs_h *g,\n"
33291 "                  const char *directory,\n"
33292 "                  const char *tarball);\n"
33293 "\n"
33294 msgstr ""
33295
33296 #. type: textblock
33297 #: ../src/guestfs-actions.pod:7221
33298 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33299 msgstr ""
33300
33301 #. type: =head2
33302 #: ../src/guestfs-actions.pod:7227
33303 msgid "guestfs_touch"
33304 msgstr ""
33305
33306 #. type: verbatim
33307 #: ../src/guestfs-actions.pod:7229
33308 #, no-wrap
33309 msgid ""
33310 " int\n"
33311 " guestfs_touch (guestfs_h *g,\n"
33312 "                const char *path);\n"
33313 "\n"
33314 msgstr ""
33315
33316 #. type: =head2
33317 #: ../src/guestfs-actions.pod:7244
33318 msgid "guestfs_truncate"
33319 msgstr ""
33320
33321 #. type: verbatim
33322 #: ../src/guestfs-actions.pod:7246
33323 #, no-wrap
33324 msgid ""
33325 " int\n"
33326 " guestfs_truncate (guestfs_h *g,\n"
33327 "                   const char *path);\n"
33328 "\n"
33329 msgstr ""
33330
33331 #. type: =head2
33332 #: ../src/guestfs-actions.pod:7257
33333 msgid "guestfs_truncate_size"
33334 msgstr ""
33335
33336 #. type: verbatim
33337 #: ../src/guestfs-actions.pod:7259
33338 #, no-wrap
33339 msgid ""
33340 " int\n"
33341 " guestfs_truncate_size (guestfs_h *g,\n"
33342 "                        const char *path,\n"
33343 "                        int64_t size);\n"
33344 "\n"
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs-actions.pod:7267
33349 msgid ""
33350 "If the current file size is less than C<size> then the file is extended to "
33351 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33352 "blocks are not allocated for the file until you write to it).  To create a "
33353 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33354 msgstr ""
33355
33356 #. type: =head2
33357 #: ../src/guestfs-actions.pod:7277
33358 msgid "guestfs_tune2fs_l"
33359 msgstr ""
33360
33361 #. type: verbatim
33362 #: ../src/guestfs-actions.pod:7279
33363 #, no-wrap
33364 msgid ""
33365 " char **\n"
33366 " guestfs_tune2fs_l (guestfs_h *g,\n"
33367 "                    const char *device);\n"
33368 "\n"
33369 msgstr ""
33370
33371 #. type: =head2
33372 #: ../src/guestfs-actions.pod:7299
33373 msgid "guestfs_txz_in"
33374 msgstr ""
33375
33376 #. type: verbatim
33377 #: ../src/guestfs-actions.pod:7301
33378 #, no-wrap
33379 msgid ""
33380 " int\n"
33381 " guestfs_txz_in (guestfs_h *g,\n"
33382 "                 const char *tarball,\n"
33383 "                 const char *directory);\n"
33384 "\n"
33385 msgstr ""
33386
33387 #. type: =head2
33388 #: ../src/guestfs-actions.pod:7313
33389 msgid "guestfs_txz_out"
33390 msgstr ""
33391
33392 #. type: verbatim
33393 #: ../src/guestfs-actions.pod:7315
33394 #, no-wrap
33395 msgid ""
33396 " int\n"
33397 " guestfs_txz_out (guestfs_h *g,\n"
33398 "                  const char *directory,\n"
33399 "                  const char *tarball);\n"
33400 "\n"
33401 msgstr ""
33402
33403 #. type: =head2
33404 #: ../src/guestfs-actions.pod:7327
33405 msgid "guestfs_umask"
33406 msgstr ""
33407
33408 #. type: verbatim
33409 #: ../src/guestfs-actions.pod:7329
33410 #, no-wrap
33411 msgid ""
33412 " int\n"
33413 " guestfs_umask (guestfs_h *g,\n"
33414 "                int mask);\n"
33415 "\n"
33416 msgstr ""
33417
33418 #. type: textblock
33419 #: ../src/guestfs-actions.pod:7345
33420 msgid ""
33421 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33422 "C<guestfs_mkdir>."
33423 msgstr ""
33424
33425 #. type: =head2
33426 #: ../src/guestfs-actions.pod:7354
33427 msgid "guestfs_umount"
33428 msgstr ""
33429
33430 #. type: verbatim
33431 #: ../src/guestfs-actions.pod:7356
33432 #, no-wrap
33433 msgid ""
33434 " int\n"
33435 " guestfs_umount (guestfs_h *g,\n"
33436 "                 const char *pathordevice);\n"
33437 "\n"
33438 msgstr ""
33439
33440 #. type: =head2
33441 #: ../src/guestfs-actions.pod:7368
33442 msgid "guestfs_umount_all"
33443 msgstr ""
33444
33445 #. type: verbatim
33446 #: ../src/guestfs-actions.pod:7370
33447 #, no-wrap
33448 msgid ""
33449 " int\n"
33450 " guestfs_umount_all (guestfs_h *g);\n"
33451 "\n"
33452 msgstr ""
33453
33454 #. type: =head2
33455 #: ../src/guestfs-actions.pod:7381
33456 msgid "guestfs_upload"
33457 msgstr ""
33458
33459 #. type: verbatim
33460 #: ../src/guestfs-actions.pod:7383
33461 #, no-wrap
33462 msgid ""
33463 " int\n"
33464 " guestfs_upload (guestfs_h *g,\n"
33465 "                 const char *filename,\n"
33466 "                 const char *remotefilename);\n"
33467 "\n"
33468 msgstr ""
33469
33470 #. type: textblock
33471 #: ../src/guestfs-actions.pod:7393
33472 msgid "See also C<guestfs_download>."
33473 msgstr ""
33474
33475 #. type: =head2
33476 #: ../src/guestfs-actions.pod:7404
33477 msgid "guestfs_upload_offset"
33478 msgstr ""
33479
33480 #. type: verbatim
33481 #: ../src/guestfs-actions.pod:7406
33482 #, no-wrap
33483 msgid ""
33484 " int\n"
33485 " guestfs_upload_offset (guestfs_h *g,\n"
33486 "                        const char *filename,\n"
33487 "                        const char *remotefilename,\n"
33488 "                        int64_t offset);\n"
33489 "\n"
33490 msgstr ""
33491
33492 #. type: textblock
33493 #: ../src/guestfs-actions.pod:7422
33494 msgid ""
33495 "Note that there is no limit on the amount of data that can be uploaded with "
33496 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33497 "full amount unless an error occurs."
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs-actions.pod:7427
33502 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33503 msgstr ""
33504
33505 #. type: =head2
33506 #: ../src/guestfs-actions.pod:7438
33507 msgid "guestfs_utimens"
33508 msgstr ""
33509
33510 #. type: verbatim
33511 #: ../src/guestfs-actions.pod:7440
33512 #, no-wrap
33513 msgid ""
33514 " int\n"
33515 " guestfs_utimens (guestfs_h *g,\n"
33516 "                  const char *path,\n"
33517 "                  int64_t atsecs,\n"
33518 "                  int64_t atnsecs,\n"
33519 "                  int64_t mtsecs,\n"
33520 "                  int64_t mtnsecs);\n"
33521 "\n"
33522 msgstr ""
33523
33524 #. type: =head2
33525 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
33526 msgid "guestfs_version"
33527 msgstr ""
33528
33529 #. type: verbatim
33530 #: ../src/guestfs-actions.pod:7471
33531 #, no-wrap
33532 msgid ""
33533 " struct guestfs_version *\n"
33534 " guestfs_version (guestfs_h *g);\n"
33535 "\n"
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs-actions.pod:7499
33540 msgid ""
33541 "I<Note:> Don't use this call to test for availability of features.  In "
33542 "enterprise distributions we backport features from later versions into "
33543 "earlier versions, making this an unreliable way to test for features.  Use "
33544 "C<guestfs_available> instead."
33545 msgstr ""
33546
33547 #. type: textblock
33548 #: ../src/guestfs-actions.pod:7505
33549 msgid ""
33550 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33551 "error.  I<The caller must call C<guestfs_free_version> after use>."
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs-actions.pod:7509
33556 msgid "(Added in 1.0.58)"
33557 msgstr ""
33558
33559 #. type: =head2
33560 #: ../src/guestfs-actions.pod:7511
33561 msgid "guestfs_vfs_label"
33562 msgstr ""
33563
33564 #. type: verbatim
33565 #: ../src/guestfs-actions.pod:7513
33566 #, no-wrap
33567 msgid ""
33568 " char *\n"
33569 " guestfs_vfs_label (guestfs_h *g,\n"
33570 "                    const char *device);\n"
33571 "\n"
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs-actions.pod:7522
33576 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
33581 msgid "(Added in 1.3.18)"
33582 msgstr ""
33583
33584 #. type: =head2
33585 #: ../src/guestfs-actions.pod:7529
33586 msgid "guestfs_vfs_type"
33587 msgstr ""
33588
33589 #. type: verbatim
33590 #: ../src/guestfs-actions.pod:7531
33591 #, no-wrap
33592 msgid ""
33593 " char *\n"
33594 " guestfs_vfs_type (guestfs_h *g,\n"
33595 "                   const char *device);\n"
33596 "\n"
33597 msgstr ""
33598
33599 #. type: =head2
33600 #: ../src/guestfs-actions.pod:7548
33601 msgid "guestfs_vfs_uuid"
33602 msgstr ""
33603
33604 #. type: verbatim
33605 #: ../src/guestfs-actions.pod:7550
33606 #, no-wrap
33607 msgid ""
33608 " char *\n"
33609 " guestfs_vfs_uuid (guestfs_h *g,\n"
33610 "                   const char *device);\n"
33611 "\n"
33612 msgstr ""
33613
33614 #. type: textblock
33615 #: ../src/guestfs-actions.pod:7559
33616 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33617 msgstr ""
33618
33619 #. type: =head2
33620 #: ../src/guestfs-actions.pod:7566
33621 msgid "guestfs_vg_activate"
33622 msgstr ""
33623
33624 #. type: verbatim
33625 #: ../src/guestfs-actions.pod:7568
33626 #, no-wrap
33627 msgid ""
33628 " int\n"
33629 " guestfs_vg_activate (guestfs_h *g,\n"
33630 "                      int activate,\n"
33631 "                      char *const *volgroups);\n"
33632 "\n"
33633 msgstr ""
33634
33635 #. type: =head2
33636 #: ../src/guestfs-actions.pod:7585
33637 msgid "guestfs_vg_activate_all"
33638 msgstr ""
33639
33640 #. type: verbatim
33641 #: ../src/guestfs-actions.pod:7587
33642 #, no-wrap
33643 msgid ""
33644 " int\n"
33645 " guestfs_vg_activate_all (guestfs_h *g,\n"
33646 "                          int activate);\n"
33647 "\n"
33648 msgstr ""
33649
33650 #. type: =head2
33651 #: ../src/guestfs-actions.pod:7600
33652 msgid "guestfs_vgcreate"
33653 msgstr ""
33654
33655 #. type: verbatim
33656 #: ../src/guestfs-actions.pod:7602
33657 #, no-wrap
33658 msgid ""
33659 " int\n"
33660 " guestfs_vgcreate (guestfs_h *g,\n"
33661 "                   const char *volgroup,\n"
33662 "                   char *const *physvols);\n"
33663 "\n"
33664 msgstr ""
33665
33666 #. type: =head2
33667 #: ../src/guestfs-actions.pod:7614
33668 msgid "guestfs_vglvuuids"
33669 msgstr ""
33670
33671 #. type: verbatim
33672 #: ../src/guestfs-actions.pod:7616
33673 #, no-wrap
33674 msgid ""
33675 " char **\n"
33676 " guestfs_vglvuuids (guestfs_h *g,\n"
33677 "                    const char *vgname);\n"
33678 "\n"
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs-actions.pod:7623
33683 msgid ""
33684 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33685 "associate logical volumes and volume groups."
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs-actions.pod:7626
33690 msgid "See also C<guestfs_vgpvuuids>."
33691 msgstr ""
33692
33693 #. type: =head2
33694 #: ../src/guestfs-actions.pod:7634
33695 msgid "guestfs_vgpvuuids"
33696 msgstr ""
33697
33698 #. type: verbatim
33699 #: ../src/guestfs-actions.pod:7636
33700 #, no-wrap
33701 msgid ""
33702 " char **\n"
33703 " guestfs_vgpvuuids (guestfs_h *g,\n"
33704 "                    const char *vgname);\n"
33705 "\n"
33706 msgstr ""
33707
33708 #. type: textblock
33709 #: ../src/guestfs-actions.pod:7643
33710 msgid ""
33711 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33712 "associate physical volumes and volume groups."
33713 msgstr ""
33714
33715 #. type: textblock
33716 #: ../src/guestfs-actions.pod:7646
33717 msgid "See also C<guestfs_vglvuuids>."
33718 msgstr ""
33719
33720 #. type: =head2
33721 #: ../src/guestfs-actions.pod:7654
33722 msgid "guestfs_vgremove"
33723 msgstr ""
33724
33725 #. type: verbatim
33726 #: ../src/guestfs-actions.pod:7656
33727 #, no-wrap
33728 msgid ""
33729 " int\n"
33730 " guestfs_vgremove (guestfs_h *g,\n"
33731 "                   const char *vgname);\n"
33732 "\n"
33733 msgstr ""
33734
33735 #. type: =head2
33736 #: ../src/guestfs-actions.pod:7669
33737 msgid "guestfs_vgrename"
33738 msgstr ""
33739
33740 #. type: verbatim
33741 #: ../src/guestfs-actions.pod:7671
33742 #, no-wrap
33743 msgid ""
33744 " int\n"
33745 " guestfs_vgrename (guestfs_h *g,\n"
33746 "                   const char *volgroup,\n"
33747 "                   const char *newvolgroup);\n"
33748 "\n"
33749 msgstr ""
33750
33751 #. type: =head2
33752 #: ../src/guestfs-actions.pod:7682
33753 msgid "guestfs_vgs"
33754 msgstr ""
33755
33756 #. type: verbatim
33757 #: ../src/guestfs-actions.pod:7684
33758 #, no-wrap
33759 msgid ""
33760 " char **\n"
33761 " guestfs_vgs (guestfs_h *g);\n"
33762 "\n"
33763 msgstr ""
33764
33765 #. type: textblock
33766 #: ../src/guestfs-actions.pod:7693
33767 msgid "See also C<guestfs_vgs_full>."
33768 msgstr ""
33769
33770 #. type: =head2
33771 #: ../src/guestfs-actions.pod:7701
33772 msgid "guestfs_vgs_full"
33773 msgstr ""
33774
33775 #. type: verbatim
33776 #: ../src/guestfs-actions.pod:7703
33777 #, no-wrap
33778 msgid ""
33779 " struct guestfs_lvm_vg_list *\n"
33780 " guestfs_vgs_full (guestfs_h *g);\n"
33781 "\n"
33782 msgstr ""
33783
33784 #. type: textblock
33785 #: ../src/guestfs-actions.pod:7709
33786 msgid ""
33787 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33788 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33789 msgstr ""
33790
33791 #. type: =head2
33792 #: ../src/guestfs-actions.pod:7715
33793 msgid "guestfs_vgscan"
33794 msgstr ""
33795
33796 #. type: verbatim
33797 #: ../src/guestfs-actions.pod:7717
33798 #, no-wrap
33799 msgid ""
33800 " int\n"
33801 " guestfs_vgscan (guestfs_h *g);\n"
33802 "\n"
33803 msgstr ""
33804
33805 #. type: =head2
33806 #: ../src/guestfs-actions.pod:7727
33807 msgid "guestfs_vguuid"
33808 msgstr ""
33809
33810 #. type: verbatim
33811 #: ../src/guestfs-actions.pod:7729
33812 #, no-wrap
33813 msgid ""
33814 " char *\n"
33815 " guestfs_vguuid (guestfs_h *g,\n"
33816 "                 const char *vgname);\n"
33817 "\n"
33818 msgstr ""
33819
33820 #. type: =head2
33821 #: ../src/guestfs-actions.pod:7740
33822 msgid "guestfs_wait_ready"
33823 msgstr ""
33824
33825 #. type: verbatim
33826 #: ../src/guestfs-actions.pod:7742
33827 #, no-wrap
33828 msgid ""
33829 " int\n"
33830 " guestfs_wait_ready (guestfs_h *g);\n"
33831 "\n"
33832 msgstr ""
33833
33834 #. type: textblock
33835 #: ../src/guestfs-actions.pod:7745
33836 msgid ""
33837 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33838 "instead."
33839 msgstr ""
33840
33841 #. type: textblock
33842 #: ../src/guestfs-actions.pod:7752
33843 msgid "This function is a no op."
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs-actions.pod:7754
33848 msgid ""
33849 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33850 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33851 "is no longer necessary because C<guestfs_launch> now does the waiting."
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs-actions.pod:7759
33856 msgid ""
33857 "If you see any calls to this function in code then you can just remove them, "
33858 "unless you want to retain compatibility with older versions of the API."
33859 msgstr ""
33860
33861 #. type: =head2
33862 #: ../src/guestfs-actions.pod:7767
33863 msgid "guestfs_wc_c"
33864 msgstr ""
33865
33866 #. type: verbatim
33867 #: ../src/guestfs-actions.pod:7769
33868 #, no-wrap
33869 msgid ""
33870 " int\n"
33871 " guestfs_wc_c (guestfs_h *g,\n"
33872 "               const char *path);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: =head2
33877 #: ../src/guestfs-actions.pod:7780
33878 msgid "guestfs_wc_l"
33879 msgstr ""
33880
33881 #. type: verbatim
33882 #: ../src/guestfs-actions.pod:7782
33883 #, no-wrap
33884 msgid ""
33885 " int\n"
33886 " guestfs_wc_l (guestfs_h *g,\n"
33887 "               const char *path);\n"
33888 "\n"
33889 msgstr ""
33890
33891 #. type: =head2
33892 #: ../src/guestfs-actions.pod:7793
33893 msgid "guestfs_wc_w"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs-actions.pod:7795
33898 #, no-wrap
33899 msgid ""
33900 " int\n"
33901 " guestfs_wc_w (guestfs_h *g,\n"
33902 "               const char *path);\n"
33903 "\n"
33904 msgstr ""
33905
33906 #. type: =head2
33907 #: ../src/guestfs-actions.pod:7806
33908 msgid "guestfs_write"
33909 msgstr ""
33910
33911 #. type: verbatim
33912 #: ../src/guestfs-actions.pod:7808
33913 #, no-wrap
33914 msgid ""
33915 " int\n"
33916 " guestfs_write (guestfs_h *g,\n"
33917 "                const char *path,\n"
33918 "                const char *content,\n"
33919 "                size_t content_size);\n"
33920 "\n"
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs-actions.pod:7817
33925 msgid "See also C<guestfs_write_append>."
33926 msgstr ""
33927
33928 #. type: =head2
33929 #: ../src/guestfs-actions.pod:7826
33930 msgid "guestfs_write_append"
33931 msgstr ""
33932
33933 #. type: verbatim
33934 #: ../src/guestfs-actions.pod:7828
33935 #, no-wrap
33936 msgid ""
33937 " int\n"
33938 " guestfs_write_append (guestfs_h *g,\n"
33939 "                       const char *path,\n"
33940 "                       const char *content,\n"
33941 "                       size_t content_size);\n"
33942 "\n"
33943 msgstr ""
33944
33945 #. type: textblock
33946 #: ../src/guestfs-actions.pod:7837
33947 msgid "See also C<guestfs_write>."
33948 msgstr ""
33949
33950 #. type: =head2
33951 #: ../src/guestfs-actions.pod:7846
33952 msgid "guestfs_write_file"
33953 msgstr "guestfs_write_file"
33954
33955 #. type: verbatim
33956 #: ../src/guestfs-actions.pod:7848
33957 #, no-wrap
33958 msgid ""
33959 " int\n"
33960 " guestfs_write_file (guestfs_h *g,\n"
33961 "                     const char *path,\n"
33962 "                     const char *content,\n"
33963 "                     int size);\n"
33964 "\n"
33965 msgstr ""
33966 " int\n"
33967 " guestfs_write_file (guestfs_h *g,\n"
33968 "                     const char *path,\n"
33969 "                     const char *content,\n"
33970 "                     int size);\n"
33971 "\n"
33972
33973 #. type: textblock
33974 #: ../src/guestfs-actions.pod:7854
33975 msgid ""
33976 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33977 "instead."
33978 msgstr ""
33979
33980 #. type: =head2
33981 #: ../src/guestfs-actions.pod:7879
33982 msgid "guestfs_zegrep"
33983 msgstr "guestfs_zegrep"
33984
33985 #. type: verbatim
33986 #: ../src/guestfs-actions.pod:7881
33987 #, no-wrap
33988 msgid ""
33989 " char **\n"
33990 " guestfs_zegrep (guestfs_h *g,\n"
33991 "                 const char *regex,\n"
33992 "                 const char *path);\n"
33993 "\n"
33994 msgstr ""
33995 " char **\n"
33996 " guestfs_zegrep (guestfs_h *g,\n"
33997 "                 const char *regex,\n"
33998 "                 const char *path);\n"
33999 "\n"
34000
34001 #. type: =head2
34002 #: ../src/guestfs-actions.pod:7898
34003 msgid "guestfs_zegrepi"
34004 msgstr "guestfs_zegrepi"
34005
34006 #. type: verbatim
34007 #: ../src/guestfs-actions.pod:7900
34008 #, no-wrap
34009 msgid ""
34010 " char **\n"
34011 " guestfs_zegrepi (guestfs_h *g,\n"
34012 "                  const char *regex,\n"
34013 "                  const char *path);\n"
34014 "\n"
34015 msgstr ""
34016 " char **\n"
34017 " guestfs_zegrepi (guestfs_h *g,\n"
34018 "                  const char *regex,\n"
34019 "                  const char *path);\n"
34020 "\n"
34021
34022 #. type: =head2
34023 #: ../src/guestfs-actions.pod:7917
34024 msgid "guestfs_zero"
34025 msgstr "guestfs_zero"
34026
34027 #. type: verbatim
34028 #: ../src/guestfs-actions.pod:7919
34029 #, no-wrap
34030 msgid ""
34031 " int\n"
34032 " guestfs_zero (guestfs_h *g,\n"
34033 "               const char *device);\n"
34034 "\n"
34035 msgstr ""
34036 " int\n"
34037 " guestfs_zero (guestfs_h *g,\n"
34038 "               const char *device);\n"
34039 "\n"
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:7933
34043 msgid ""
34044 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34045 "C<guestfs_is_zero_device>"
34046 msgstr ""
34047
34048 #. type: =head2
34049 #: ../src/guestfs-actions.pod:7945
34050 msgid "guestfs_zero_device"
34051 msgstr "guestfs_zero_device"
34052
34053 #. type: verbatim
34054 #: ../src/guestfs-actions.pod:7947
34055 #, no-wrap
34056 msgid ""
34057 " int\n"
34058 " guestfs_zero_device (guestfs_h *g,\n"
34059 "                      const char *device);\n"
34060 "\n"
34061 msgstr ""
34062 " int\n"
34063 " guestfs_zero_device (guestfs_h *g,\n"
34064 "                      const char *device);\n"
34065 "\n"
34066
34067 #. type: textblock
34068 #: ../src/guestfs-actions.pod:7951
34069 msgid ""
34070 "This command writes zeroes over the entire C<device>.  Compare with "
34071 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs-actions.pod:7969
34076 msgid "(Added in 1.3.1)"
34077 msgstr "(Додано у 1.3.1)"
34078
34079 #. type: =head2
34080 #: ../src/guestfs-actions.pod:7971
34081 msgid "guestfs_zerofree"
34082 msgstr "guestfs_zerofree"
34083
34084 #. type: verbatim
34085 #: ../src/guestfs-actions.pod:7973
34086 #, no-wrap
34087 msgid ""
34088 " int\n"
34089 " guestfs_zerofree (guestfs_h *g,\n"
34090 "                   const char *device);\n"
34091 "\n"
34092 msgstr ""
34093 " int\n"
34094 " guestfs_zerofree (guestfs_h *g,\n"
34095 "                   const char *device);\n"
34096 "\n"
34097
34098 #. type: =head2
34099 #: ../src/guestfs-actions.pod:7992
34100 msgid "guestfs_zfgrep"
34101 msgstr "guestfs_zfgrep"
34102
34103 #. type: verbatim
34104 #: ../src/guestfs-actions.pod:7994
34105 #, no-wrap
34106 msgid ""
34107 " char **\n"
34108 " guestfs_zfgrep (guestfs_h *g,\n"
34109 "                 const char *pattern,\n"
34110 "                 const char *path);\n"
34111 "\n"
34112 msgstr ""
34113 " char **\n"
34114 " guestfs_zfgrep (guestfs_h *g,\n"
34115 "                 const char *pattern,\n"
34116 "                 const char *path);\n"
34117 "\n"
34118
34119 #. type: =head2
34120 #: ../src/guestfs-actions.pod:8011
34121 msgid "guestfs_zfgrepi"
34122 msgstr "guestfs_zfgrepi"
34123
34124 #. type: verbatim
34125 #: ../src/guestfs-actions.pod:8013
34126 #, no-wrap
34127 msgid ""
34128 " char **\n"
34129 " guestfs_zfgrepi (guestfs_h *g,\n"
34130 "                  const char *pattern,\n"
34131 "                  const char *path);\n"
34132 "\n"
34133 msgstr ""
34134 " char **\n"
34135 " guestfs_zfgrepi (guestfs_h *g,\n"
34136 "                  const char *pattern,\n"
34137 "                  const char *path);\n"
34138 "\n"
34139
34140 #. type: =head2
34141 #: ../src/guestfs-actions.pod:8030
34142 msgid "guestfs_zfile"
34143 msgstr "guestfs_zfile"
34144
34145 #. type: verbatim
34146 #: ../src/guestfs-actions.pod:8032
34147 #, no-wrap
34148 msgid ""
34149 " char *\n"
34150 " guestfs_zfile (guestfs_h *g,\n"
34151 "                const char *meth,\n"
34152 "                const char *path);\n"
34153 "\n"
34154 msgstr ""
34155 " char *\n"
34156 " guestfs_zfile (guestfs_h *g,\n"
34157 "                const char *meth,\n"
34158 "                const char *path);\n"
34159 "\n"
34160
34161 #. type: textblock
34162 #: ../src/guestfs-actions.pod:8037
34163 msgid ""
34164 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34165 "instead."
34166 msgstr ""
34167
34168 #. type: textblock
34169 #: ../src/guestfs-actions.pod:8049
34170 msgid ""
34171 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34172 "files."
34173 msgstr ""
34174
34175 #. type: =head2
34176 #: ../src/guestfs-actions.pod:8057
34177 msgid "guestfs_zgrep"
34178 msgstr "guestfs_zgrep"
34179
34180 #. type: verbatim
34181 #: ../src/guestfs-actions.pod:8059
34182 #, no-wrap
34183 msgid ""
34184 " char **\n"
34185 " guestfs_zgrep (guestfs_h *g,\n"
34186 "                const char *regex,\n"
34187 "                const char *path);\n"
34188 "\n"
34189 msgstr ""
34190 " char **\n"
34191 " guestfs_zgrep (guestfs_h *g,\n"
34192 "                const char *regex,\n"
34193 "                const char *path);\n"
34194 "\n"
34195
34196 #. type: =head2
34197 #: ../src/guestfs-actions.pod:8076
34198 msgid "guestfs_zgrepi"
34199 msgstr "guestfs_zgrepi"
34200
34201 #. type: verbatim
34202 #: ../src/guestfs-actions.pod:8078
34203 #, no-wrap
34204 msgid ""
34205 " char **\n"
34206 " guestfs_zgrepi (guestfs_h *g,\n"
34207 "                 const char *regex,\n"
34208 "                 const char *path);\n"
34209 "\n"
34210 msgstr ""
34211 " char **\n"
34212 " guestfs_zgrepi (guestfs_h *g,\n"
34213 "                 const char *regex,\n"
34214 "                 const char *path);\n"
34215 "\n"
34216
34217 #. type: =item
34218 #: ../src/guestfs-availability.pod:3
34219 msgid "B<augeas>"
34220 msgstr "B<augeas>"
34221
34222 #. type: textblock
34223 #: ../src/guestfs-availability.pod:5
34224 msgid ""
34225 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34226 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34227 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34228 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34229 "L</guestfs_aug_save> L</guestfs_aug_set>"
34230 msgstr ""
34231
34232 #. type: =item
34233 #: ../src/guestfs-availability.pod:21
34234 msgid "B<btrfs>"
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs-availability.pod:23
34239 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34240 msgstr ""
34241
34242 #. type: =item
34243 #: ../src/guestfs-availability.pod:26
34244 #, fuzzy
34245 #| msgid "B<scrub>"
34246 msgid "B<grub>"
34247 msgstr "B<scrub>"
34248
34249 #. type: textblock
34250 #: ../src/guestfs-availability.pod:28
34251 msgid "The following functions: L</guestfs_grub_install>"
34252 msgstr ""
34253
34254 #. type: =item
34255 #: ../src/guestfs-availability.pod:31
34256 msgid "B<inotify>"
34257 msgstr "B<inotify>"
34258
34259 #. type: textblock
34260 #: ../src/guestfs-availability.pod:33
34261 msgid ""
34262 "The following functions: L</guestfs_inotify_add_watch> L</"
34263 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34264 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34265 msgstr ""
34266
34267 #. type: =item
34268 #: ../src/guestfs-availability.pod:41
34269 msgid "B<linuxfsuuid>"
34270 msgstr "B<linuxfsuuid>"
34271
34272 #. type: textblock
34273 #: ../src/guestfs-availability.pod:43
34274 msgid ""
34275 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34276 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34277 msgstr ""
34278
34279 #. type: =item
34280 #: ../src/guestfs-availability.pod:50
34281 msgid "B<linuxmodules>"
34282 msgstr "B<linuxmodules>"
34283
34284 #. type: textblock
34285 #: ../src/guestfs-availability.pod:52
34286 msgid "The following functions: L</guestfs_modprobe>"
34287 msgstr ""
34288
34289 #. type: =item
34290 #: ../src/guestfs-availability.pod:55
34291 msgid "B<linuxxattrs>"
34292 msgstr "B<linuxxattrs>"
34293
34294 #. type: textblock
34295 #: ../src/guestfs-availability.pod:57
34296 msgid ""
34297 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34298 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34299 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34300 "guestfs_setxattr>"
34301 msgstr ""
34302
34303 #. type: =item
34304 #: ../src/guestfs-availability.pod:68
34305 msgid "B<luks>"
34306 msgstr "B<luks>"
34307
34308 #. type: textblock
34309 #: ../src/guestfs-availability.pod:70
34310 msgid ""
34311 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34312 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34313 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34314 msgstr ""
34315
34316 #. type: =item
34317 #: ../src/guestfs-availability.pod:79
34318 msgid "B<lvm2>"
34319 msgstr "B<lvm2>"
34320
34321 #. type: textblock
34322 #: ../src/guestfs-availability.pod:81
34323 msgid ""
34324 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34325 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34326 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34327 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34328 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34329 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34330 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34331 msgstr ""
34332
34333 #. type: =item
34334 #: ../src/guestfs-availability.pod:104
34335 msgid "B<mknod>"
34336 msgstr "B<mknod>"
34337
34338 #. type: textblock
34339 #: ../src/guestfs-availability.pod:106
34340 msgid ""
34341 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34342 "guestfs_mknod_b> L</guestfs_mknod_c>"
34343 msgstr ""
34344
34345 #. type: =item
34346 #: ../src/guestfs-availability.pod:112
34347 msgid "B<ntfs3g>"
34348 msgstr "B<ntfs3g>"
34349
34350 #. type: textblock
34351 #: ../src/guestfs-availability.pod:114
34352 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34353 msgstr ""
34354
34355 #. type: =item
34356 #: ../src/guestfs-availability.pod:117
34357 msgid "B<ntfsprogs>"
34358 msgstr "B<ntfsprogs>"
34359
34360 #. type: textblock
34361 #: ../src/guestfs-availability.pod:119
34362 msgid ""
34363 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34364 "L</guestfs_ntfsresize_size>"
34365 msgstr ""
34366
34367 #. type: =item
34368 #: ../src/guestfs-availability.pod:124
34369 msgid "B<realpath>"
34370 msgstr "B<realpath>"
34371
34372 #. type: textblock
34373 #: ../src/guestfs-availability.pod:126
34374 msgid "The following functions: L</guestfs_realpath>"
34375 msgstr ""
34376
34377 #. type: =item
34378 #: ../src/guestfs-availability.pod:129
34379 msgid "B<scrub>"
34380 msgstr "B<scrub>"
34381
34382 #. type: textblock
34383 #: ../src/guestfs-availability.pod:131
34384 msgid ""
34385 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34386 "guestfs_scrub_freespace>"
34387 msgstr ""
34388
34389 #. type: =item
34390 #: ../src/guestfs-availability.pod:136
34391 msgid "B<selinux>"
34392 msgstr "B<selinux>"
34393
34394 #. type: textblock
34395 #: ../src/guestfs-availability.pod:138
34396 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34397 msgstr ""
34398
34399 #. type: =item
34400 #: ../src/guestfs-availability.pod:142
34401 msgid "B<xz>"
34402 msgstr "B<xz>"
34403
34404 #. type: textblock
34405 #: ../src/guestfs-availability.pod:144
34406 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34407 msgstr ""
34408
34409 #. type: =item
34410 #: ../src/guestfs-availability.pod:148
34411 msgid "B<zerofree>"
34412 msgstr "B<zerofree>"
34413
34414 #. type: textblock
34415 #: ../src/guestfs-availability.pod:150
34416 msgid "The following functions: L</guestfs_zerofree>"
34417 msgstr ""
34418
34419 #. type: =head2
34420 #: ../src/guestfs-structs.pod:1
34421 msgid "guestfs_int_bool"
34422 msgstr ""
34423
34424 #. type: verbatim
34425 #: ../src/guestfs-structs.pod:3
34426 #, no-wrap
34427 msgid ""
34428 " struct guestfs_int_bool {\n"
34429 "   int32_t i;\n"
34430 "   int32_t b;\n"
34431 " };\n"
34432 " \n"
34433 msgstr ""
34434
34435 #. type: verbatim
34436 #: ../src/guestfs-structs.pod:8
34437 #, no-wrap
34438 msgid ""
34439 " struct guestfs_int_bool_list {\n"
34440 "   uint32_t len; /* Number of elements in list. */\n"
34441 "   struct guestfs_int_bool *val; /* Elements. */\n"
34442 " };\n"
34443 " \n"
34444 msgstr ""
34445
34446 #. type: verbatim
34447 #: ../src/guestfs-structs.pod:13
34448 #, no-wrap
34449 msgid ""
34450 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34451 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34452 "\n"
34453 msgstr ""
34454
34455 #. type: =head2
34456 #: ../src/guestfs-structs.pod:16
34457 msgid "guestfs_lvm_pv"
34458 msgstr ""
34459
34460 #. type: verbatim
34461 #: ../src/guestfs-structs.pod:18
34462 #, no-wrap
34463 msgid ""
34464 " struct guestfs_lvm_pv {\n"
34465 "   char *pv_name;\n"
34466 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34467 "   char pv_uuid[32];\n"
34468 "   char *pv_fmt;\n"
34469 "   uint64_t pv_size;\n"
34470 "   uint64_t dev_size;\n"
34471 "   uint64_t pv_free;\n"
34472 "   uint64_t pv_used;\n"
34473 "   char *pv_attr;\n"
34474 "   int64_t pv_pe_count;\n"
34475 "   int64_t pv_pe_alloc_count;\n"
34476 "   char *pv_tags;\n"
34477 "   uint64_t pe_start;\n"
34478 "   int64_t pv_mda_count;\n"
34479 "   uint64_t pv_mda_free;\n"
34480 " };\n"
34481 " \n"
34482 msgstr ""
34483
34484 #. type: verbatim
34485 #: ../src/guestfs-structs.pod:36
34486 #, no-wrap
34487 msgid ""
34488 " struct guestfs_lvm_pv_list {\n"
34489 "   uint32_t len; /* Number of elements in list. */\n"
34490 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34491 " };\n"
34492 " \n"
34493 msgstr ""
34494
34495 #. type: verbatim
34496 #: ../src/guestfs-structs.pod:41
34497 #, no-wrap
34498 msgid ""
34499 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34500 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34501 "\n"
34502 msgstr ""
34503
34504 #. type: =head2
34505 #: ../src/guestfs-structs.pod:44
34506 msgid "guestfs_lvm_vg"
34507 msgstr ""
34508
34509 #. type: verbatim
34510 #: ../src/guestfs-structs.pod:46
34511 #, no-wrap
34512 msgid ""
34513 " struct guestfs_lvm_vg {\n"
34514 "   char *vg_name;\n"
34515 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34516 "   char vg_uuid[32];\n"
34517 "   char *vg_fmt;\n"
34518 "   char *vg_attr;\n"
34519 "   uint64_t vg_size;\n"
34520 "   uint64_t vg_free;\n"
34521 "   char *vg_sysid;\n"
34522 "   uint64_t vg_extent_size;\n"
34523 "   int64_t vg_extent_count;\n"
34524 "   int64_t vg_free_count;\n"
34525 "   int64_t max_lv;\n"
34526 "   int64_t max_pv;\n"
34527 "   int64_t pv_count;\n"
34528 "   int64_t lv_count;\n"
34529 "   int64_t snap_count;\n"
34530 "   int64_t vg_seqno;\n"
34531 "   char *vg_tags;\n"
34532 "   int64_t vg_mda_count;\n"
34533 "   uint64_t vg_mda_free;\n"
34534 " };\n"
34535 " \n"
34536 msgstr ""
34537
34538 #. type: verbatim
34539 #: ../src/guestfs-structs.pod:69
34540 #, no-wrap
34541 msgid ""
34542 " struct guestfs_lvm_vg_list {\n"
34543 "   uint32_t len; /* Number of elements in list. */\n"
34544 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34545 " };\n"
34546 " \n"
34547 msgstr ""
34548
34549 #. type: verbatim
34550 #: ../src/guestfs-structs.pod:74
34551 #, no-wrap
34552 msgid ""
34553 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34554 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34555 "\n"
34556 msgstr ""
34557
34558 #. type: =head2
34559 #: ../src/guestfs-structs.pod:77
34560 msgid "guestfs_lvm_lv"
34561 msgstr ""
34562
34563 #. type: verbatim
34564 #: ../src/guestfs-structs.pod:79
34565 #, no-wrap
34566 msgid ""
34567 " struct guestfs_lvm_lv {\n"
34568 "   char *lv_name;\n"
34569 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34570 "   char lv_uuid[32];\n"
34571 "   char *lv_attr;\n"
34572 "   int64_t lv_major;\n"
34573 "   int64_t lv_minor;\n"
34574 "   int64_t lv_kernel_major;\n"
34575 "   int64_t lv_kernel_minor;\n"
34576 "   uint64_t lv_size;\n"
34577 "   int64_t seg_count;\n"
34578 "   char *origin;\n"
34579 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34580 "   float snap_percent;\n"
34581 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34582 "   float copy_percent;\n"
34583 "   char *move_pv;\n"
34584 "   char *lv_tags;\n"
34585 "   char *mirror_log;\n"
34586 "   char *modules;\n"
34587 " };\n"
34588 " \n"
34589 msgstr ""
34590
34591 #. type: verbatim
34592 #: ../src/guestfs-structs.pod:101
34593 #, no-wrap
34594 msgid ""
34595 " struct guestfs_lvm_lv_list {\n"
34596 "   uint32_t len; /* Number of elements in list. */\n"
34597 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34598 " };\n"
34599 " \n"
34600 msgstr ""
34601
34602 #. type: verbatim
34603 #: ../src/guestfs-structs.pod:106
34604 #, no-wrap
34605 msgid ""
34606 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34607 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34608 "\n"
34609 msgstr ""
34610
34611 #. type: verbatim
34612 #: ../src/guestfs-structs.pod:111
34613 #, no-wrap
34614 msgid ""
34615 " struct guestfs_stat {\n"
34616 "   int64_t dev;\n"
34617 "   int64_t ino;\n"
34618 "   int64_t mode;\n"
34619 "   int64_t nlink;\n"
34620 "   int64_t uid;\n"
34621 "   int64_t gid;\n"
34622 "   int64_t rdev;\n"
34623 "   int64_t size;\n"
34624 "   int64_t blksize;\n"
34625 "   int64_t blocks;\n"
34626 "   int64_t atime;\n"
34627 "   int64_t mtime;\n"
34628 "   int64_t ctime;\n"
34629 " };\n"
34630 " \n"
34631 msgstr ""
34632
34633 #. type: verbatim
34634 #: ../src/guestfs-structs.pod:127
34635 #, no-wrap
34636 msgid ""
34637 " struct guestfs_stat_list {\n"
34638 "   uint32_t len; /* Number of elements in list. */\n"
34639 "   struct guestfs_stat *val; /* Elements. */\n"
34640 " };\n"
34641 " \n"
34642 msgstr ""
34643
34644 #. type: verbatim
34645 #: ../src/guestfs-structs.pod:132
34646 #, no-wrap
34647 msgid ""
34648 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34649 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34650 "\n"
34651 msgstr ""
34652
34653 #. type: verbatim
34654 #: ../src/guestfs-structs.pod:137
34655 #, no-wrap
34656 msgid ""
34657 " struct guestfs_statvfs {\n"
34658 "   int64_t bsize;\n"
34659 "   int64_t frsize;\n"
34660 "   int64_t blocks;\n"
34661 "   int64_t bfree;\n"
34662 "   int64_t bavail;\n"
34663 "   int64_t files;\n"
34664 "   int64_t ffree;\n"
34665 "   int64_t favail;\n"
34666 "   int64_t fsid;\n"
34667 "   int64_t flag;\n"
34668 "   int64_t namemax;\n"
34669 " };\n"
34670 " \n"
34671 msgstr ""
34672
34673 #. type: verbatim
34674 #: ../src/guestfs-structs.pod:151
34675 #, no-wrap
34676 msgid ""
34677 " struct guestfs_statvfs_list {\n"
34678 "   uint32_t len; /* Number of elements in list. */\n"
34679 "   struct guestfs_statvfs *val; /* Elements. */\n"
34680 " };\n"
34681 " \n"
34682 msgstr ""
34683
34684 #. type: verbatim
34685 #: ../src/guestfs-structs.pod:156
34686 #, no-wrap
34687 msgid ""
34688 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34689 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34690 "\n"
34691 msgstr ""
34692
34693 #. type: =head2
34694 #: ../src/guestfs-structs.pod:159
34695 msgid "guestfs_dirent"
34696 msgstr ""
34697
34698 #. type: verbatim
34699 #: ../src/guestfs-structs.pod:161
34700 #, no-wrap
34701 msgid ""
34702 " struct guestfs_dirent {\n"
34703 "   int64_t ino;\n"
34704 "   char ftyp;\n"
34705 "   char *name;\n"
34706 " };\n"
34707 " \n"
34708 msgstr ""
34709
34710 #. type: verbatim
34711 #: ../src/guestfs-structs.pod:167
34712 #, no-wrap
34713 msgid ""
34714 " struct guestfs_dirent_list {\n"
34715 "   uint32_t len; /* Number of elements in list. */\n"
34716 "   struct guestfs_dirent *val; /* Elements. */\n"
34717 " };\n"
34718 " \n"
34719 msgstr ""
34720
34721 #. type: verbatim
34722 #: ../src/guestfs-structs.pod:172
34723 #, no-wrap
34724 msgid ""
34725 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34726 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34727 "\n"
34728 msgstr ""
34729
34730 #. type: verbatim
34731 #: ../src/guestfs-structs.pod:177
34732 #, no-wrap
34733 msgid ""
34734 " struct guestfs_version {\n"
34735 "   int64_t major;\n"
34736 "   int64_t minor;\n"
34737 "   int64_t release;\n"
34738 "   char *extra;\n"
34739 " };\n"
34740 " \n"
34741 msgstr ""
34742
34743 #. type: verbatim
34744 #: ../src/guestfs-structs.pod:184
34745 #, no-wrap
34746 msgid ""
34747 " struct guestfs_version_list {\n"
34748 "   uint32_t len; /* Number of elements in list. */\n"
34749 "   struct guestfs_version *val; /* Elements. */\n"
34750 " };\n"
34751 " \n"
34752 msgstr ""
34753
34754 #. type: verbatim
34755 #: ../src/guestfs-structs.pod:189
34756 #, no-wrap
34757 msgid ""
34758 " void guestfs_free_version (struct guestfs_free_version *);\n"
34759 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34760 "\n"
34761 msgstr ""
34762
34763 #. type: =head2
34764 #: ../src/guestfs-structs.pod:192
34765 msgid "guestfs_xattr"
34766 msgstr ""
34767
34768 #. type: verbatim
34769 #: ../src/guestfs-structs.pod:194
34770 #, no-wrap
34771 msgid ""
34772 " struct guestfs_xattr {\n"
34773 "   char *attrname;\n"
34774 "   /* The next two fields describe a byte array. */\n"
34775 "   uint32_t attrval_len;\n"
34776 "   char *attrval;\n"
34777 " };\n"
34778 " \n"
34779 msgstr ""
34780
34781 #. type: verbatim
34782 #: ../src/guestfs-structs.pod:201
34783 #, no-wrap
34784 msgid ""
34785 " struct guestfs_xattr_list {\n"
34786 "   uint32_t len; /* Number of elements in list. */\n"
34787 "   struct guestfs_xattr *val; /* Elements. */\n"
34788 " };\n"
34789 " \n"
34790 msgstr ""
34791
34792 #. type: verbatim
34793 #: ../src/guestfs-structs.pod:206
34794 #, no-wrap
34795 msgid ""
34796 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34797 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34798 "\n"
34799 msgstr ""
34800
34801 #. type: =head2
34802 #: ../src/guestfs-structs.pod:209
34803 msgid "guestfs_inotify_event"
34804 msgstr ""
34805
34806 #. type: verbatim
34807 #: ../src/guestfs-structs.pod:211
34808 #, no-wrap
34809 msgid ""
34810 " struct guestfs_inotify_event {\n"
34811 "   int64_t in_wd;\n"
34812 "   uint32_t in_mask;\n"
34813 "   uint32_t in_cookie;\n"
34814 "   char *in_name;\n"
34815 " };\n"
34816 " \n"
34817 msgstr ""
34818
34819 #. type: verbatim
34820 #: ../src/guestfs-structs.pod:218
34821 #, no-wrap
34822 msgid ""
34823 " struct guestfs_inotify_event_list {\n"
34824 "   uint32_t len; /* Number of elements in list. */\n"
34825 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34826 " };\n"
34827 " \n"
34828 msgstr ""
34829
34830 #. type: verbatim
34831 #: ../src/guestfs-structs.pod:223
34832 #, no-wrap
34833 msgid ""
34834 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34835 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34836 "\n"
34837 msgstr ""
34838
34839 #. type: =head2
34840 #: ../src/guestfs-structs.pod:226
34841 msgid "guestfs_partition"
34842 msgstr ""
34843
34844 #. type: verbatim
34845 #: ../src/guestfs-structs.pod:228
34846 #, no-wrap
34847 msgid ""
34848 " struct guestfs_partition {\n"
34849 "   int32_t part_num;\n"
34850 "   uint64_t part_start;\n"
34851 "   uint64_t part_end;\n"
34852 "   uint64_t part_size;\n"
34853 " };\n"
34854 " \n"
34855 msgstr ""
34856
34857 #. type: verbatim
34858 #: ../src/guestfs-structs.pod:235
34859 #, no-wrap
34860 msgid ""
34861 " struct guestfs_partition_list {\n"
34862 "   uint32_t len; /* Number of elements in list. */\n"
34863 "   struct guestfs_partition *val; /* Elements. */\n"
34864 " };\n"
34865 " \n"
34866 msgstr ""
34867
34868 #. type: verbatim
34869 #: ../src/guestfs-structs.pod:240
34870 #, no-wrap
34871 msgid ""
34872 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34873 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34874 "\n"
34875 msgstr ""
34876
34877 #. type: =head2
34878 #: ../src/guestfs-structs.pod:243
34879 msgid "guestfs_application"
34880 msgstr ""
34881
34882 #. type: verbatim
34883 #: ../src/guestfs-structs.pod:245
34884 #, no-wrap
34885 msgid ""
34886 " struct guestfs_application {\n"
34887 "   char *app_name;\n"
34888 "   char *app_display_name;\n"
34889 "   int32_t app_epoch;\n"
34890 "   char *app_version;\n"
34891 "   char *app_release;\n"
34892 "   char *app_install_path;\n"
34893 "   char *app_trans_path;\n"
34894 "   char *app_publisher;\n"
34895 "   char *app_url;\n"
34896 "   char *app_source_package;\n"
34897 "   char *app_summary;\n"
34898 "   char *app_description;\n"
34899 " };\n"
34900 " \n"
34901 msgstr ""
34902
34903 #. type: verbatim
34904 #: ../src/guestfs-structs.pod:260
34905 #, no-wrap
34906 msgid ""
34907 " struct guestfs_application_list {\n"
34908 "   uint32_t len; /* Number of elements in list. */\n"
34909 "   struct guestfs_application *val; /* Elements. */\n"
34910 " };\n"
34911 " \n"
34912 msgstr ""
34913
34914 #. type: verbatim
34915 #: ../src/guestfs-structs.pod:265
34916 #, no-wrap
34917 msgid ""
34918 " void guestfs_free_application (struct guestfs_free_application *);\n"
34919 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34920 "\n"
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:5
34925 msgid "guestfs - Library for accessing and modifying virtual machine images"
34926 msgstr ""
34927 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34928 "машин"
34929
34930 #. type: verbatim
34931 #: ../src/guestfs.pod:11
34932 #, no-wrap
34933 msgid ""
34934 " guestfs_h *g = guestfs_create ();\n"
34935 " guestfs_add_drive (g, \"guest.img\");\n"
34936 " guestfs_launch (g);\n"
34937 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34938 " guestfs_touch (g, \"/hello\");\n"
34939 " guestfs_umount (g, \"/\");\n"
34940 " guestfs_close (g);\n"
34941 "\n"
34942 msgstr ""
34943 " guestfs_h *g = guestfs_create ();\n"
34944 " guestfs_add_drive (g, \"guest.img\");\n"
34945 " guestfs_launch (g);\n"
34946 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34947 " guestfs_touch (g, \"/hello\");\n"
34948 " guestfs_umount (g, \"/\");\n"
34949 " guestfs_close (g);\n"
34950 "\n"
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:25
34954 msgid ""
34955 "Libguestfs is a library for accessing and modifying guest disk images.  "
34956 "Amongst the things this is good for: making batch configuration changes to "
34957 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34958 "between virtualization systems (see also: virt-p2v), performing partial "
34959 "backups, performing partial guest clones, cloning guests and changing "
34960 "registry/UUID/hostname info, and much else besides."
34961 msgstr ""
34962
34963 #. type: textblock
34964 #: ../src/guestfs.pod:33
34965 msgid ""
34966 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34967 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34968 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34969 "qcow2, vmdk."
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:38
34974 msgid ""
34975 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34976 "what filesystem is in each LV, etc.).  It can also run commands in the "
34977 "context of the guest.  Also you can access filesystems over FUSE."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:43
34982 msgid ""
34983 "Libguestfs is a library that can be linked with C and C++ management "
34984 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34985 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34986 "command line."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:48
34991 msgid ""
34992 "You don't need to be root to use libguestfs, although obviously you do need "
34993 "enough permissions to access the disk images."
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:51
34998 msgid ""
34999 "Libguestfs is a large API because it can do many things.  For a gentle "
35000 "introduction, please read the L</API OVERVIEW> section next."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:54
35005 msgid ""
35006 "There are also some example programs in the L<guestfs-examples(3)> manual "
35007 "page."
35008 msgstr ""
35009
35010 #. type: =head1
35011 #: ../src/guestfs.pod:57
35012 msgid "API OVERVIEW"
35013 msgstr "ОГЛЯД API"
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:59
35017 msgid ""
35018 "This section provides a gentler overview of the libguestfs API.  We also try "
35019 "to group API calls together, where that may not be obvious from reading "
35020 "about the individual calls in the main section of this manual."
35021 msgstr ""
35022
35023 #. type: =head2
35024 #: ../src/guestfs.pod:64
35025 msgid "HANDLES"
35026 msgstr "ОБРОБНИКИ"
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:66
35030 msgid ""
35031 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35032 "must add at least one disk image to the handle, followed by launching the "
35033 "handle, then performing whatever operations you want, and finally closing "
35034 "the handle.  By convention we use the single letter C<g> for the name of the "
35035 "handle variable, although of course you can use any name you want."
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:73
35040 msgid "The general structure of all libguestfs-using programs looks like this:"
35041 msgstr ""
35042
35043 #. type: verbatim
35044 #: ../src/guestfs.pod:76
35045 #, no-wrap
35046 msgid ""
35047 " guestfs_h *g = guestfs_create ();\n"
35048 " \n"
35049 msgstr ""
35050 " guestfs_h *g = guestfs_create ();\n"
35051 " \n"
35052
35053 #. type: verbatim
35054 #: ../src/guestfs.pod:78
35055 #, no-wrap
35056 msgid ""
35057 " /* Call guestfs_add_drive additional times if there are\n"
35058 "  * multiple disk images.\n"
35059 "  */\n"
35060 " guestfs_add_drive (g, \"guest.img\");\n"
35061 " \n"
35062 msgstr ""
35063
35064 #. type: verbatim
35065 #: ../src/guestfs.pod:83
35066 #, no-wrap
35067 msgid ""
35068 " /* Most manipulation calls won't work until you've launched\n"
35069 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35070 "  * and _before_ other commands.\n"
35071 "  */\n"
35072 " guestfs_launch (g);\n"
35073 " \n"
35074 msgstr ""
35075
35076 #. type: verbatim
35077 #: ../src/guestfs.pod:89
35078 #, no-wrap
35079 msgid ""
35080 " /* Now you can examine what partitions, LVs etc are available.\n"
35081 "  */\n"
35082 " char **partitions = guestfs_list_partitions (g);\n"
35083 " char **logvols = guestfs_lvs (g);\n"
35084 " \n"
35085 msgstr ""
35086 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35087 "  */\n"
35088 " char **partitions = guestfs_list_partitions (g);\n"
35089 " char **logvols = guestfs_lvs (g);\n"
35090 " \n"
35091
35092 #. type: verbatim
35093 #: ../src/guestfs.pod:94
35094 #, no-wrap
35095 msgid ""
35096 " /* To access a filesystem in the image, you must mount it.\n"
35097 "  */\n"
35098 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35099 " \n"
35100 msgstr ""
35101 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35102 "  */\n"
35103 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35104 " \n"
35105
35106 #. type: verbatim
35107 #: ../src/guestfs.pod:98
35108 #, no-wrap
35109 msgid ""
35110 " /* Now you can perform filesystem actions on the guest\n"
35111 "  * disk image.\n"
35112 "  */\n"
35113 " guestfs_touch (g, \"/hello\");\n"
35114 " \n"
35115 msgstr ""
35116
35117 #. type: verbatim
35118 #: ../src/guestfs.pod:103
35119 #, no-wrap
35120 msgid ""
35121 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35122 "  * it is done automatically when you close the handle.  See\n"
35123 "  * discussion of autosync in this page.\n"
35124 "  */\n"
35125 " guestfs_sync (g);\n"
35126 " \n"
35127 msgstr ""
35128
35129 #. type: verbatim
35130 #: ../src/guestfs.pod:109
35131 #, no-wrap
35132 msgid ""
35133 " /* Close the handle 'g'. */\n"
35134 " guestfs_close (g);\n"
35135 "\n"
35136 msgstr ""
35137 " /* Закрити дескриптор 'g'. */\n"
35138 " guestfs_close (g);\n"
35139 "\n"
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:112
35143 msgid ""
35144 "The code above doesn't include any error checking.  In real code you should "
35145 "check return values carefully for errors.  In general all functions that "
35146 "return integers return C<-1> on error, and all functions that return "
35147 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35148 "how to handle errors, and consult the documentation for each function call "
35149 "below to see precisely how they return error indications.  See L<guestfs-"
35150 "examples(3)> for fully worked examples."
35151 msgstr ""
35152
35153 #. type: =head2
35154 #: ../src/guestfs.pod:121
35155 msgid "DISK IMAGES"
35156 msgstr "ОБРАЗИ ДИСКІВ"
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:123
35160 msgid ""
35161 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35162 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35163 "actual block device, or simply an empty file of zeroes that you have created "
35164 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35165 "of these."
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:129
35170 msgid ""
35171 "The call you should use in modern code for adding drives is L</"
35172 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35173 "specifying that the format is raw, do:"
35174 msgstr ""
35175
35176 #. type: verbatim
35177 #: ../src/guestfs.pod:133
35178 #, no-wrap
35179 msgid ""
35180 " guestfs_add_drive_opts (g, filename,\n"
35181 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35182 "                         -1);\n"
35183 "\n"
35184 msgstr ""
35185 " guestfs_add_drive_opts (g, filename,\n"
35186 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35187 "                         -1);\n"
35188 "\n"
35189
35190 #. type: textblock
35191 #: ../src/guestfs.pod:137
35192 msgid "You can add a disk read-only using:"
35193 msgstr "Ви можете додати диск у режимі лише читання:"
35194
35195 #. type: verbatim
35196 #: ../src/guestfs.pod:139
35197 #, no-wrap
35198 msgid ""
35199 " guestfs_add_drive_opts (g, filename,\n"
35200 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35201 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35202 "                         -1);\n"
35203 "\n"
35204 msgstr ""
35205 " guestfs_add_drive_opts (g, filename,\n"
35206 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35207 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35208 "                         -1);\n"
35209 "\n"
35210
35211 #. type: textblock
35212 #: ../src/guestfs.pod:144
35213 msgid ""
35214 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35215 "libguestfs won't modify the file."
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:147
35220 msgid ""
35221 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35222 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35223 "corruption, but adding it read-only is safe."
35224 msgstr ""
35225
35226 #. type: textblock
35227 #: ../src/guestfs.pod:151
35228 msgid ""
35229 "You must add at least one disk image, and you may add multiple disk images.  "
35230 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35231 "first one you added), C</dev/sdb> (for the second one you added), etc."
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:156
35236 msgid ""
35237 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35238 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35239 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35240 msgstr ""
35241
35242 #. type: =head2
35243 #: ../src/guestfs.pod:161
35244 msgid "MOUNTING"
35245 msgstr "МОНТУВАННЯ"
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:163
35249 msgid ""
35250 "Before you can read or write files, create directories and so on in a disk "
35251 "image that contains filesystems, you have to mount those filesystems using "
35252 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35253 "a disk image contains (for example) one partition with a filesystem on that "
35254 "partition, then you can mount it directly:"
35255 msgstr ""
35256
35257 #. type: verbatim
35258 #: ../src/guestfs.pod:170
35259 #, no-wrap
35260 msgid ""
35261 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35262 "\n"
35263 msgstr ""
35264 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35265 "\n"
35266
35267 #. type: textblock
35268 #: ../src/guestfs.pod:172
35269 msgid ""
35270 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35271 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35272 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35273 "that these are libguestfs virtual devices, and are nothing to do with host "
35274 "devices."
35275 msgstr ""
35276
35277 #. type: textblock
35278 #: ../src/guestfs.pod:178
35279 msgid ""
35280 "If you are given a disk image and you don't know what it contains then you "
35281 "have to find out.  Libguestfs can do that too: use L</"
35282 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35283 "LVs, and either try mounting each to see what is mountable, or else examine "
35284 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35285 "filesystems, use L</guestfs_list_filesystems>."
35286 msgstr ""
35287
35288 #. type: textblock
35289 #: ../src/guestfs.pod:186
35290 msgid ""
35291 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35292 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35293 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:191
35298 msgid ""
35299 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35300 "several other variations of the C<guestfs_mount_*> call."
35301 msgstr ""
35302
35303 #. type: =head2
35304 #: ../src/guestfs.pod:194
35305 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35306 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:196
35310 msgid ""
35311 "The majority of the libguestfs API consists of fairly low-level calls for "
35312 "accessing and modifying the files, directories, symlinks etc on mounted "
35313 "filesystems.  There are over a hundred such calls which you can find listed "
35314 "in detail below in this man page, and we don't even pretend to cover them "
35315 "all in this overview."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:202
35320 msgid ""
35321 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35322 "mount point."
35323 msgstr ""
35324 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35325 "точкою монтування."
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:205
35329 msgid ""
35330 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35331 "the file called C<\"etc/passwd\"> then you could do:"
35332 msgstr ""
35333 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35334 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35335 "таким кодом:"
35336
35337 #. type: verbatim
35338 #: ../src/guestfs.pod:208
35339 #, no-wrap
35340 msgid ""
35341 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35342 "\n"
35343 msgstr ""
35344 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35345 "\n"
35346
35347 #. type: textblock
35348 #: ../src/guestfs.pod:210
35349 msgid ""
35350 "This would return C<data> as a newly allocated buffer containing the full "
35351 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35352 "or C<NULL> if there was an error."
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs.pod:214
35357 msgid ""
35358 "As another example, to create a top-level directory on that filesystem "
35359 "called C<\"var\"> you would do:"
35360 msgstr ""
35361
35362 #. type: verbatim
35363 #: ../src/guestfs.pod:217
35364 #, no-wrap
35365 msgid ""
35366 " guestfs_mkdir (g, \"/var\");\n"
35367 "\n"
35368 msgstr ""
35369 " guestfs_mkdir (g, \"/var\");\n"
35370 "\n"
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:219
35374 msgid "To create a symlink you could do:"
35375 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35376
35377 #. type: verbatim
35378 #: ../src/guestfs.pod:221
35379 #, no-wrap
35380 msgid ""
35381 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35382 "               \"/etc/rc3.d/S30portmap\");\n"
35383 "\n"
35384 msgstr ""
35385 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35386 "               \"/etc/rc3.d/S30portmap\");\n"
35387 "\n"
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:224
35391 msgid ""
35392 "Libguestfs will reject attempts to use relative paths and there is no "
35393 "concept of a current working directory."
35394 msgstr ""
35395
35396 #. type: textblock
35397 #: ../src/guestfs.pod:227
35398 msgid ""
35399 "Libguestfs can return errors in many situations: for example if the "
35400 "filesystem isn't writable, or if a file or directory that you requested "
35401 "doesn't exist.  If you are using the C API (documented here)  you have to "
35402 "check for those error conditions after each call.  (Other language bindings "
35403 "turn these errors into exceptions)."
35404 msgstr ""
35405
35406 #. type: textblock
35407 #: ../src/guestfs.pod:233
35408 msgid ""
35409 "File writes are affected by the per-handle umask, set by calling L</"
35410 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35411 msgstr ""
35412
35413 #. type: =head2
35414 #: ../src/guestfs.pod:236
35415 msgid "PARTITIONING"
35416 msgstr "ПОДІЛ НА РОЗДІЛИ"
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:238
35420 msgid ""
35421 "Libguestfs contains API calls to read, create and modify partition tables on "
35422 "disk images."
35423 msgstr ""
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:241
35427 msgid ""
35428 "In the common case where you want to create a single partition covering the "
35429 "whole disk, you should use the L</guestfs_part_disk> call:"
35430 msgstr ""
35431
35432 #. type: verbatim
35433 #: ../src/guestfs.pod:245
35434 #, no-wrap
35435 msgid ""
35436 " const char *parttype = \"mbr\";\n"
35437 " if (disk_is_larger_than_2TB)\n"
35438 "   parttype = \"gpt\";\n"
35439 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35440 "\n"
35441 msgstr ""
35442 " const char *parttype = \"mbr\";\n"
35443 " if (disk_is_larger_than_2TB)\n"
35444 "   parttype = \"gpt\";\n"
35445 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35446 "\n"
35447
35448 #. type: textblock
35449 #: ../src/guestfs.pod:250
35450 msgid ""
35451 "Obviously this effectively wipes anything that was on that disk image before."
35452 msgstr ""
35453
35454 #. type: =head2
35455 #: ../src/guestfs.pod:253
35456 msgid "LVM2"
35457 msgstr "LVM2"
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:255
35461 msgid ""
35462 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35463 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35464 "you familiarize yourself with the concepts of physical volumes, volume "
35465 "groups and logical volumes."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:260
35470 msgid ""
35471 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35472 "tldp.org/HOWTO/LVM-HOWTO/>."
35473 msgstr ""
35474
35475 #. type: =head2
35476 #: ../src/guestfs.pod:263
35477 msgid "DOWNLOADING"
35478 msgstr "ОТРИМАННЯ ДАНИХ"
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:265
35482 msgid ""
35483 "Use L</guestfs_cat> to download small, text only files.  This call is "
35484 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35485 "NUL (C<\\0>) characters.  However the API is very simple to use."
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:269
35490 msgid ""
35491 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35492 "bit data, since it returns a (pointer, size) pair.  However it is still "
35493 "limited to \"small\" files, less than 2 MB."
35494 msgstr ""
35495
35496 #. type: textblock
35497 #: ../src/guestfs.pod:273
35498 msgid ""
35499 "L</guestfs_download> can be used to download any file, with no limits on "
35500 "content or size (even files larger than 4 GB)."
35501 msgstr ""
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:276
35505 msgid ""
35506 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35507 msgstr ""
35508
35509 #. type: =head2
35510 #: ../src/guestfs.pod:279
35511 msgid "UPLOADING"
35512 msgstr "ВИВАНТАЖЕННЯ"
35513
35514 #. type: textblock
35515 #: ../src/guestfs.pod:281
35516 msgid ""
35517 "It's often the case that you want to write a file or files to the disk image."
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:284
35522 msgid ""
35523 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35524 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35525 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35526 "of other functions for creating test files, for example L</guestfs_fill> and "
35527 "L</guestfs_fill_pattern>."
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:290
35532 msgid ""
35533 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35534 "file content or size (even files larger than 4 GB)."
35535 msgstr ""
35536
35537 #. type: textblock
35538 #: ../src/guestfs.pod:293
35539 msgid ""
35540 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:295
35545 msgid ""
35546 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35547 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35548 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35549 "in a predictable way (eg. adding it last after all other drives) then you "
35550 "can get the device name from L</guestfs_list_devices> and mount it directly "
35551 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35552 "portable between kernel versions, and they don't support labels or UUIDs.  "
35553 "If you want to pre-build an image or you need to mount it using a label or "
35554 "UUID, use an ISO image instead."
35555 msgstr ""
35556
35557 #. type: =head2
35558 #: ../src/guestfs.pod:306
35559 msgid "COPYING"
35560 msgstr "КОПІЮВАННЯ"
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:308
35564 msgid ""
35565 "There are various different commands for copying between files and devices "
35566 "and in and out of the guest filesystem.  These are summarised in the table "
35567 "below."
35568 msgstr ""
35569
35570 #. type: =item
35571 #: ../src/guestfs.pod:314
35572 msgid "B<file> to B<file>"
35573 msgstr "B<файл> у B<файл>"
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:316
35577 msgid ""
35578 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35579 "directories recursively."
35580 msgstr ""
35581
35582 #. type: =item
35583 #: ../src/guestfs.pod:319
35584 msgid "B<file or device> to B<file or device>"
35585 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35586
35587 #. type: textblock
35588 #: ../src/guestfs.pod:321
35589 msgid ""
35590 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35591 "devices in the guest."
35592 msgstr ""
35593
35594 #. type: textblock
35595 #: ../src/guestfs.pod:324
35596 msgid "Example: duplicate the contents of an LV:"
35597 msgstr ""
35598
35599 #. type: verbatim
35600 #: ../src/guestfs.pod:326
35601 #, no-wrap
35602 msgid ""
35603 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35604 "\n"
35605 msgstr ""
35606 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35607 "\n"
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:328
35611 msgid ""
35612 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35613 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
35614 "guestfs_copy_size>."
35615 msgstr ""
35616
35617 #. type: =item
35618 #: ../src/guestfs.pod:332
35619 msgid "B<file on the host> to B<file or device>"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:334
35624 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35625 msgstr ""
35626
35627 #. type: =item
35628 #: ../src/guestfs.pod:336
35629 msgid "B<file or device> to B<file on the host>"
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:338
35634 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35635 msgstr ""
35636
35637 #. type: =head2
35638 #: ../src/guestfs.pod:342
35639 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35640 msgstr ""
35641
35642 #. type: textblock
35643 #: ../src/guestfs.pod:344
35644 msgid ""
35645 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35646 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35647 "appears you can only upload and download to files.  However many Un*x-like "
35648 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35649 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35650 "and arbitrary file descriptor N."
35651 msgstr ""
35652
35653 #. type: textblock
35654 #: ../src/guestfs.pod:352
35655 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35656 msgstr ""
35657
35658 #. type: verbatim
35659 #: ../src/guestfs.pod:355
35660 #, no-wrap
35661 msgid ""
35662 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35663 "\n"
35664 msgstr ""
35665 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35666 "\n"
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:357
35670 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35671 msgstr ""
35672
35673 #. type: verbatim
35674 #: ../src/guestfs.pod:359
35675 #, no-wrap
35676 msgid ""
35677 " char devfd[64];\n"
35678 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35679 " guestfs_tar_out (g, \"/\", devfd);\n"
35680 "\n"
35681 msgstr ""
35682 " char devfd[64];\n"
35683 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35684 " guestfs_tar_out (g, \"/\", devfd);\n"
35685 "\n"
35686
35687 #. type: =head2
35688 #: ../src/guestfs.pod:363
35689 msgid "LISTING FILES"
35690 msgstr "СПИСКИ ФАЙЛІВ"
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:365
35694 msgid ""
35695 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35696 "L<guestfish(1)>-equivalent command C<ll>)."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs.pod:368
35701 msgid ""
35702 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35703 "programs, as a flat list of strings."
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:371
35708 msgid ""
35709 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35710 "directory, plus additional information about each one.  It is more "
35711 "equivalent to using the L<readdir(3)> call on a local filesystem."
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:375
35716 msgid ""
35717 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35718 msgstr ""
35719
35720 #. type: =head2
35721 #: ../src/guestfs.pod:378
35722 msgid "RUNNING COMMANDS"
35723 msgstr "ВИКОНАННЯ КОМАНД"
35724
35725 #. type: textblock
35726 #: ../src/guestfs.pod:380
35727 msgid ""
35728 "Although libguestfs is primarily an API for manipulating files inside guest "
35729 "images, we also provide some limited facilities for running commands inside "
35730 "guests."
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:384
35735 msgid "There are many limitations to this:"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:390
35740 msgid ""
35741 "The kernel version that the command runs under will be different from what "
35742 "it expects."
35743 msgstr ""
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:395
35747 msgid ""
35748 "If the command needs to communicate with daemons, then most likely they "
35749 "won't be running."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:400
35754 msgid "The command will be running in limited memory."
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:404
35759 msgid ""
35760 "The network may not be available unless you enable it (see L</"
35761 "guestfs_set_network>)."
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:409
35766 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:413
35771 msgid ""
35772 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:418
35777 msgid ""
35778 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35779 "See L</SELINUX> in this manpage."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:423
35784 msgid ""
35785 "I<Security:> It is not safe to run commands from untrusted, possibly "
35786 "malicious guests.  These commands may attempt to exploit your program by "
35787 "sending unexpected output.  They could also try to exploit the Linux kernel "
35788 "or qemu provided by the libguestfs appliance.  They could use the network "
35789 "provided by the libguestfs appliance to bypass ordinary network partitions "
35790 "and firewalls.  They could use the elevated privileges or different SELinux "
35791 "context of your program to their advantage."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:432
35796 msgid ""
35797 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35798 "(a script which runs when the guest next boots normally), and to have this "
35799 "script run the commands you want in the normal context of the running guest, "
35800 "network security and so on.  For information about other security issues, "
35801 "see L</SECURITY>."
35802 msgstr ""
35803
35804 #. type: textblock
35805 #: ../src/guestfs.pod:440
35806 msgid ""
35807 "The two main API calls to run commands are L</guestfs_command> and L</"
35808 "guestfs_sh> (there are also variations)."
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:443
35813 msgid ""
35814 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35815 "shell globs, redirections, etc will work."
35816 msgstr ""
35817
35818 #. type: =head2
35819 #: ../src/guestfs.pod:446
35820 msgid "CONFIGURATION FILES"
35821 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:448
35825 msgid ""
35826 "To read and write configuration files in Linux guest filesystems, we "
35827 "strongly recommend using Augeas.  For example, Augeas understands how to "
35828 "read and write, say, a Linux shadow password file or X.org configuration "
35829 "file, and so avoids you having to write that code."
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:453
35834 msgid ""
35835 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35836 "document Augeas itself here because there is excellent documentation on the "
35837 "L<http://augeas.net/> website."
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:457
35842 msgid ""
35843 "If you don't want to use Augeas (you fool!) then try calling L</"
35844 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35845 "over."
35846 msgstr ""
35847
35848 #. type: =head2
35849 #: ../src/guestfs.pod:461
35850 msgid "SELINUX"
35851 msgstr "SELINUX"
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:463
35855 msgid ""
35856 "We support SELinux guests.  To ensure that labeling happens correctly in "
35857 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs.pod:471
35862 msgid "Before launching, do:"
35863 msgstr ""
35864
35865 #. type: verbatim
35866 #: ../src/guestfs.pod:473
35867 #, no-wrap
35868 msgid ""
35869 " guestfs_set_selinux (g, 1);\n"
35870 "\n"
35871 msgstr ""
35872 " guestfs_set_selinux (g, 1);\n"
35873 "\n"
35874
35875 #. type: textblock
35876 #: ../src/guestfs.pod:477
35877 msgid ""
35878 "After mounting the guest's filesystem(s), load the policy.  This is best "
35879 "done by running the L<load_policy(8)> command in the guest itself:"
35880 msgstr ""
35881
35882 #. type: verbatim
35883 #: ../src/guestfs.pod:481
35884 #, no-wrap
35885 msgid ""
35886 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35887 "\n"
35888 msgstr ""
35889 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35890 "\n"
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:483
35894 msgid ""
35895 "(Older versions of C<load_policy> require you to specify the name of the "
35896 "policy file)."
35897 msgstr ""
35898
35899 #. type: textblock
35900 #: ../src/guestfs.pod:488
35901 msgid ""
35902 "Optionally, set the security context for the API.  The correct security "
35903 "context to use can only be known by inspecting the guest.  As an example:"
35904 msgstr ""
35905
35906 #. type: verbatim
35907 #: ../src/guestfs.pod:492
35908 #, no-wrap
35909 msgid ""
35910 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35911 "\n"
35912 msgstr ""
35913 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35914 "\n"
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:496
35918 msgid "This will work for running commands and editing existing files."
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:498
35923 msgid ""
35924 "When new files are created, you may need to label them explicitly, for "
35925 "example by running the external command C<restorecon pathname>."
35926 msgstr ""
35927
35928 #. type: =head2
35929 #: ../src/guestfs.pod:502
35930 msgid "UMASK"
35931 msgstr "UMASK"
35932
35933 #. type: textblock
35934 #: ../src/guestfs.pod:504
35935 msgid ""
35936 "Certain calls are affected by the current file mode creation mask (the "
35937 "\"umask\").  In particular ones which create files or directories, such as "
35938 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35939 "either the default mode that the file is created with or modifies the mode "
35940 "that you supply."
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:510
35945 msgid ""
35946 "The default umask is C<022>, so files are created with modes such as C<0644> "
35947 "and directories with C<0755>."
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:513
35952 msgid ""
35953 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35954 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35955 "guestfs_chmod> after creating each file or directory."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:517
35960 msgid "For more information about umask, see L<umask(2)>."
35961 msgstr ""
35962
35963 #. type: textblock
35964 #: ../src/guestfs.pod:521
35965 msgid ""
35966 "Libguestfs allows you to access Linux guests which have been encrypted using "
35967 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35968 "standard.  This includes nearly all whole disk encryption systems used by "
35969 "modern Linux guests."
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../src/guestfs.pod:527
35974 msgid ""
35975 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35976 "returns the string C<crypto_LUKS>)."
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:530
35981 msgid ""
35982 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35983 "will require the passphrase!"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:533
35988 msgid ""
35989 "Opening a LUKS device creates a new device mapper device called C</dev/"
35990 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35991 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35992 "from and encrypted to the underlying block device respectively."
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:539
35997 msgid ""
35998 "LVM volume groups on the device can be made visible by calling L</"
35999 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36000 "(s) can now be mounted in the usual way."
36001 msgstr ""
36002
36003 #. type: textblock
36004 #: ../src/guestfs.pod:543
36005 msgid ""
36006 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36007 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36008 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36009 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36010 "underlying encrypted block device)."
36011 msgstr ""
36012
36013 #. type: =head2
36014 #: ../src/guestfs.pod:550
36015 msgid "INSPECTION"
36016 msgstr "ПЕРЕВІРКА"
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:552
36020 msgid ""
36021 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36022 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36023 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36024 "version 1.5.3 the most frequently used part of this library has been "
36025 "rewritten in C and moved into the core code)."
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:559
36030 msgid ""
36031 "Add all disks belonging to the unknown virtual machine and call L</"
36032 "guestfs_launch> in the usual way."
36033 msgstr ""
36034
36035 #. type: textblock
36036 #: ../src/guestfs.pod:562
36037 msgid ""
36038 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36039 "and certain heuristics, and returns a list of operating systems that were "
36040 "found.  An empty list means none were found.  A single element is the root "
36041 "filesystem of the operating system.  For dual- or multi-boot guests, "
36042 "multiple roots can be returned, each one corresponding to a separate "
36043 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36044 "world of virtualization, but since this scenario can happen, we have built "
36045 "libguestfs to deal with it.)"
36046 msgstr ""
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:571
36050 msgid ""
36051 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36052 "to get additional details about that operating system.  For example, call L</"
36053 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36054 "Windows and Linux-based operating systems respectively."
36055 msgstr ""
36056
36057 #. type: textblock
36058 #: ../src/guestfs.pod:577
36059 msgid ""
36060 "Un*x-like and Linux-based operating systems usually consist of several "
36061 "filesystems which are mounted at boot time (for example, a separate boot "
36062 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36063 "filesystems correspond to mount points.  Call "
36064 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36065 "hash table like this example:"
36066 msgstr ""
36067
36068 #. type: verbatim
36069 #: ../src/guestfs.pod:584
36070 #, no-wrap
36071 msgid ""
36072 " /boot => /dev/sda1\n"
36073 " /     => /dev/vg_guest/lv_root\n"
36074 " /usr  => /dev/vg_guest/lv_usr\n"
36075 "\n"
36076 msgstr ""
36077 " /boot => /dev/sda1\n"
36078 " /     => /dev/vg_guest/lv_root\n"
36079 " /usr  => /dev/vg_guest/lv_usr\n"
36080 "\n"
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:588
36084 msgid ""
36085 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36086 "filesystems as suggested."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:591
36091 msgid ""
36092 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36093 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:595
36098 msgid ""
36099 "Inspection currently only works for some common operating systems.  "
36100 "Contributors are welcome to send patches for other operating systems that we "
36101 "currently cannot detect."
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:599
36106 msgid ""
36107 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36108 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36109 "encrypted devices."
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:603
36114 msgid ""
36115 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36116 "inspection and caches the results in the guest handle.  Subsequent calls to "
36117 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36118 "read the disks.  If you change the content of the guest disks, you can redo "
36119 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36120 "guestfs_inspect_list_applications> works a little differently from the other "
36121 "calls and does read the disks.  See documentation for that function for "
36122 "details)."
36123 msgstr ""
36124
36125 #. type: =head3
36126 #: ../src/guestfs.pod:612
36127 msgid "INSPECTING INSTALL DISKS"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:614
36132 msgid ""
36133 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36134 "CDs and more."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:617
36139 msgid ""
36140 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36141 "system, which currently can be C<installed> (a regular operating system) or "
36142 "C<installer> (some sort of install disk)."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:621
36147 msgid ""
36148 "Further information is available about the operating system that can be "
36149 "installed using the regular inspection APIs like L</"
36150 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:626
36155 msgid ""
36156 "Some additional information specific to installer disks is also available "
36157 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36158 "guestfs_inspect_is_multipart> calls."
36159 msgstr ""
36160
36161 #. type: =head2
36162 #: ../src/guestfs.pod:631
36163 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:633
36168 msgid ""
36169 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36170 "ntfs-3g.org/> driver."
36171 msgstr ""
36172
36173 #. type: =head3
36174 #: ../src/guestfs.pod:636
36175 msgid "DRIVE LETTERS AND PATHS"
36176 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:638
36180 msgid ""
36181 "DOS and Windows still use drive letters, and the filesystems are always "
36182 "treated as case insensitive by Windows itself, and therefore you might find "
36183 "a Windows configuration file referring to a path like C<c:\\windows"
36184 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36185 "might be referred to as C</WINDOWS/System32>."
36186 msgstr ""
36187
36188 #. type: textblock
36189 #: ../src/guestfs.pod:644
36190 msgid ""
36191 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36192 "L</guestfs_inspect_get_drive_mappings>)"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:647
36197 msgid ""
36198 "Dealing with separator characters (backslash vs forward slash) is outside "
36199 "the scope of libguestfs, but usually a simple character replacement will "
36200 "work."
36201 msgstr ""
36202
36203 #. type: textblock
36204 #: ../src/guestfs.pod:651
36205 msgid ""
36206 "To resolve the case insensitivity of paths, call L</"
36207 "guestfs_case_sensitive_path>."
36208 msgstr ""
36209
36210 #. type: =head3
36211 #: ../src/guestfs.pod:654
36212 msgid "ACCESSING THE WINDOWS REGISTRY"
36213 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:656
36217 msgid ""
36218 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36219 "files, through the library C<hivex> which is part of the libguestfs project "
36220 "although ships as a separate tarball.  You have to locate and download the "
36221 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36222 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36223 "reg(1)> for more help on this issue."
36224 msgstr ""
36225
36226 #. type: =head3
36227 #: ../src/guestfs.pod:664
36228 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36229 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:666
36233 msgid ""
36234 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36235 "provide something which looks like a Linux symlink.  The way it tries to do "
36236 "the rewriting is described here:"
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:670
36241 msgid ""
36242 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36243 "symbolic-links/>"
36244 msgstr ""
36245 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36246 "symbolic-links/>"
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:672
36250 msgid ""
36251 "The essential problem is that ntfs-3g simply does not have enough "
36252 "information to do a correct job.  NTFS links can contain drive letters and "
36253 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36254 "It is almost certainly the case that libguestfs callers should ignore what "
36255 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:679
36260 msgid ""
36261 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36262 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36263 "attribute, and read the raw reparse data from that (you can find the format "
36264 "documented in various places around the web)."
36265 msgstr ""
36266
36267 #. type: =head3
36268 #: ../src/guestfs.pod:684
36269 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:686
36274 msgid ""
36275 "There are other useful extended attributes that can be read from ntfs-3g "
36276 "filesystems (using L</guestfs_getxattr>).  See:"
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:689
36281 msgid ""
36282 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36283 msgstr ""
36284 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36285
36286 #. type: =head2
36287 #: ../src/guestfs.pod:691
36288 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36289 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:693
36293 msgid ""
36294 "Although we don't want to discourage you from using the C API, we will "
36295 "mention here that the same API is also available in other languages."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:696
36300 msgid ""
36301 "The API is broadly identical in all supported languages.  This means that "
36302 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36303 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36304 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36305 "each language."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:702
36310 msgid ""
36311 "Error messages are automatically transformed into exceptions if the language "
36312 "supports it."
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:705
36317 msgid ""
36318 "We don't try to \"object orientify\" parts of the API in OO languages, "
36319 "although contributors are welcome to write higher level APIs above what we "
36320 "provide in their favourite languages if they wish."
36321 msgstr ""
36322
36323 #. type: =item
36324 #: ../src/guestfs.pod:711
36325 msgid "B<C++>"
36326 msgstr "B<C++>"
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:713
36330 msgid ""
36331 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36332 "identical to the C API.  C++ classes and exceptions are not used."
36333 msgstr ""
36334
36335 #. type: =item
36336 #: ../src/guestfs.pod:717
36337 msgid "B<C#>"
36338 msgstr "B<C#>"
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:719
36342 msgid ""
36343 "The C# bindings are highly experimental.  Please read the warnings at the "
36344 "top of C<csharp/Libguestfs.cs>."
36345 msgstr ""
36346
36347 #. type: =item
36348 #: ../src/guestfs.pod:722
36349 msgid "B<Erlang>"
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:724
36354 #, fuzzy
36355 #| msgid "See L<guestfs-ruby(3)>."
36356 msgid "See L<guestfs-erlang(3)>."
36357 msgstr "Див. L<guestfs-ruby(3)>."
36358
36359 #. type: =item
36360 #: ../src/guestfs.pod:726
36361 msgid "B<Haskell>"
36362 msgstr "B<Haskell>"
36363
36364 #. type: textblock
36365 #: ../src/guestfs.pod:728
36366 msgid ""
36367 "This is the only language binding that is working but incomplete.  Only "
36368 "calls which return simple integers have been bound in Haskell, and we are "
36369 "looking for help to complete this binding."
36370 msgstr ""
36371
36372 #. type: =item
36373 #: ../src/guestfs.pod:732
36374 msgid "B<Java>"
36375 msgstr "B<Java>"
36376
36377 #. type: textblock
36378 #: ../src/guestfs.pod:734
36379 msgid ""
36380 "Full documentation is contained in the Javadoc which is distributed with "
36381 "libguestfs.  For examples, see L<guestfs-java(3)>."
36382 msgstr ""
36383
36384 #. type: =item
36385 #: ../src/guestfs.pod:737
36386 msgid "B<OCaml>"
36387 msgstr "B<OCaml>"
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:739
36391 msgid "See L<guestfs-ocaml(3)>."
36392 msgstr "Див. L<guestfs-ocaml(3)>."
36393
36394 #. type: =item
36395 #: ../src/guestfs.pod:741
36396 msgid "B<Perl>"
36397 msgstr "B<Perl>"
36398
36399 #. type: textblock
36400 #: ../src/guestfs.pod:743
36401 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36402 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36403
36404 #. type: =item
36405 #: ../src/guestfs.pod:745
36406 msgid "B<PHP>"
36407 msgstr "B<PHP>"
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:747
36411 msgid ""
36412 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36413 "the php-libguestfs package for your distribution."
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:750
36418 msgid "The PHP binding only works correctly on 64 bit machines."
36419 msgstr ""
36420
36421 #. type: =item
36422 #: ../src/guestfs.pod:752
36423 msgid "B<Python>"
36424 msgstr "B<Python>"
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:754
36428 msgid "See L<guestfs-python(3)>."
36429 msgstr "Див. L<guestfs-python(3)>."
36430
36431 #. type: =item
36432 #: ../src/guestfs.pod:756
36433 msgid "B<Ruby>"
36434 msgstr "B<Ruby>"
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:758
36438 msgid "See L<guestfs-ruby(3)>."
36439 msgstr "Див. L<guestfs-ruby(3)>."
36440
36441 #. type: =item
36442 #: ../src/guestfs.pod:760
36443 msgid "B<shell scripts>"
36444 msgstr "B<скрипти оболонки>"
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:762
36448 msgid "See L<guestfish(1)>."
36449 msgstr "Див. L<guestfish(1)>."
36450
36451 #. type: =head2
36452 #: ../src/guestfs.pod:766
36453 msgid "LIBGUESTFS GOTCHAS"
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:768
36458 msgid ""
36459 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36460 "system [...] that works in the way it is documented but is counterintuitive "
36461 "and almost invites mistakes.\""
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:772
36466 msgid ""
36467 "Since we developed libguestfs and the associated tools, there are several "
36468 "things we would have designed differently, but are now stuck with for "
36469 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36470 "release, you can expect these to change.  Beware of them."
36471 msgstr ""
36472
36473 #. type: =item
36474 #: ../src/guestfs.pod:780
36475 msgid "Autosync / forgetting to sync."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:782
36480 msgid ""
36481 "I<Update:> Autosync is enabled by default for all API users starting from "
36482 "libguestfs 1.5.24.  This section only applies to older versions."
36483 msgstr ""
36484
36485 #. type: textblock
36486 #: ../src/guestfs.pod:785
36487 msgid ""
36488 "When modifying a filesystem from C or another language, you B<must> unmount "
36489 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36490 "libguestfs handle.  You can also call:"
36491 msgstr ""
36492
36493 #. type: verbatim
36494 #: ../src/guestfs.pod:789
36495 #, no-wrap
36496 msgid ""
36497 " guestfs_set_autosync (g, 1);\n"
36498 "\n"
36499 msgstr ""
36500 " guestfs_set_autosync (g, 1);\n"
36501 "\n"
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:791
36505 msgid ""
36506 "to have the unmount/sync done automatically for you when the handle 'g' is "
36507 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:795
36512 msgid ""
36513 "If you forget to do this, then it is entirely possible that your changes "
36514 "won't be written out, or will be partially written, or (very rarely) that "
36515 "you'll get disk corruption."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:799
36520 msgid ""
36521 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36522 "guestfish scripts that forget to sync will work just fine, which can make "
36523 "this very puzzling if you are trying to debug a problem."
36524 msgstr ""
36525
36526 #. type: =item
36527 #: ../src/guestfs.pod:803
36528 msgid "Mount option C<-o sync> should not be the default."
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:805
36533 msgid ""
36534 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36535 "libguestfs 1.13.16.  This section only applies to older versions."
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:808
36540 msgid ""
36541 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36542 "However C<-o sync> does not add any reliability benefit, but does have a "
36543 "very large performance impact."
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:812
36548 msgid ""
36549 "The work around is to use L</guestfs_mount_options> and set the mount "
36550 "options that you actually want to use."
36551 msgstr ""
36552
36553 #. type: =item
36554 #: ../src/guestfs.pod:815
36555 msgid "Read-only should be the default."
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:817
36560 msgid ""
36561 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36562 "specify I<--rw> if you want to make changes to the image."
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:820
36567 msgid "This would reduce the potential to corrupt live VM images."
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:822
36572 msgid ""
36573 "Note that many filesystems change the disk when you just mount and unmount, "
36574 "even if you didn't perform any writes.  You need to use L</"
36575 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36576 msgstr ""
36577
36578 #. type: =item
36579 #: ../src/guestfs.pod:826
36580 msgid "guestfish command line is hard to use."
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:828
36585 msgid ""
36586 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36587 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36588 "exist, so it fails.  In earlier versions of guestfish the error message was "
36589 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36590 "we should have used C<guestfish -c command> to run commands."
36591 msgstr ""
36592
36593 #. type: =item
36594 #: ../src/guestfs.pod:835
36595 msgid "guestfish megabyte modifiers don't work right on all commands"
36596 msgstr ""
36597
36598 #. type: textblock
36599 #: ../src/guestfs.pod:837
36600 msgid ""
36601 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36602 "other modifiers).  What guestfish actually does is to multiply the number "
36603 "part by the modifier part and pass the result to the C API.  However this "
36604 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36605 "expecting some other unit (eg. megabytes)."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:844
36610 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36611 msgstr ""
36612
36613 #. type: verbatim
36614 #: ../src/guestfs.pod:846
36615 #, no-wrap
36616 msgid ""
36617 " lvcreate LV VG 100M\n"
36618 "\n"
36619 msgstr ""
36620 " lvcreate LV VG 100M\n"
36621 "\n"
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:848
36625 msgid ""
36626 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36627 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36628 "megabytes * megabytes) logical volume.  The error message you get from this "
36629 "is also a little obscure."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:853
36634 msgid ""
36635 "This could be fixed in the generator by specially marking parameters and "
36636 "return values which take bytes or other units."
36637 msgstr ""
36638
36639 #. type: =item
36640 #: ../src/guestfs.pod:856
36641 msgid "Ambiguity between devices and paths"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:858
36646 msgid ""
36647 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36648 "sdb2>) and a similar pathname.  A file might just happen to be called "
36649 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../src/guestfs.pod:863
36654 msgid ""
36655 "In the current API we usually resolve this ambiguity by having two separate "
36656 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36657 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36658 "detecting if the path supplied begins with C</dev/>."
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:869
36663 msgid ""
36664 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36665 "make paths/devices into structured names.  One way to do this would be to "
36666 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36667 "aspect of grub.  Another way would be to use a structured type, equivalent "
36668 "to this OCaml type:"
36669 msgstr ""
36670
36671 #. type: verbatim
36672 #: ../src/guestfs.pod:875
36673 #, no-wrap
36674 msgid ""
36675 " type path = Path of string | Device of int | Partition of int * int\n"
36676 "\n"
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:877
36681 msgid "which would allow you to pass arguments like:"
36682 msgstr ""
36683
36684 #. type: verbatim
36685 #: ../src/guestfs.pod:879
36686 #, no-wrap
36687 msgid ""
36688 " Path \"/foo/bar\"\n"
36689 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36690 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36691 " Path \"/dev/sdb2\"    (* not a device *)\n"
36692 "\n"
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:884
36697 msgid ""
36698 "As you can see there are still problems to resolve even with this "
36699 "representation.  Also consider how it might work in guestfish."
36700 msgstr ""
36701
36702 #. type: =head2
36703 #: ../src/guestfs.pod:889
36704 msgid "KEYS AND PASSPHRASES"
36705 msgstr "КЛЮЧІ І ПАРОЛІ"
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:891
36709 msgid ""
36710 "Certain libguestfs calls take a parameter that contains sensitive key "
36711 "material, passed in as a C string."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:894
36716 msgid ""
36717 "In the future we would hope to change the libguestfs implementation so that "
36718 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36719 "swap.  However this is I<not> done at the moment, because of the complexity "
36720 "of such an implementation."
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:899
36725 msgid ""
36726 "Therefore you should be aware that any key parameter you pass to libguestfs "
36727 "might end up being written out to the swap partition.  If this is a concern, "
36728 "scrub the swap partition or don't use libguestfs on encrypted devices."
36729 msgstr ""
36730
36731 #. type: =head2
36732 #: ../src/guestfs.pod:904
36733 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:906
36738 msgid ""
36739 "All high-level libguestfs actions are synchronous.  If you want to use "
36740 "libguestfs asynchronously then you must create a thread."
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:909
36745 msgid ""
36746 "Only use the handle from a single thread.  Either use the handle exclusively "
36747 "from one thread, or provide your own mutex so that two threads cannot issue "
36748 "calls on the same handle at the same time."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:913
36753 msgid ""
36754 "See the graphical program guestfs-browser for one possible architecture for "
36755 "multithreaded programs using libvirt and libguestfs."
36756 msgstr ""
36757
36758 #. type: =head2
36759 #: ../src/guestfs.pod:916
36760 msgid "PATH"
36761 msgstr "ШЛЯХ"
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:918
36765 msgid ""
36766 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36767 "internal path."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:921
36772 msgid ""
36773 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36774 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:924
36779 msgid ""
36780 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36781 "to change the directories that libguestfs will search in.  The value is a "
36782 "colon-separated list of paths.  The current directory is I<not> searched "
36783 "unless the path contains an empty element or C<.>.  For example "
36784 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36785 "then C</usr/lib/guestfs>."
36786 msgstr ""
36787
36788 #. type: =head2
36789 #: ../src/guestfs.pod:931
36790 msgid "QEMU WRAPPERS"
36791 msgstr ""
36792
36793 #. type: textblock
36794 #: ../src/guestfs.pod:933
36795 msgid ""
36796 "If you want to compile your own qemu, run qemu from a non-standard location, "
36797 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36798 "around qemu."
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../src/guestfs.pod:937
36803 msgid ""
36804 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36805 "last command in the shell script (so that qemu replaces the shell and "
36806 "becomes the direct child of the libguestfs-using program).  If you don't do "
36807 "this, then the qemu process won't be cleaned up correctly."
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:942
36812 msgid ""
36813 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36814 "source:"
36815 msgstr ""
36816
36817 #. type: verbatim
36818 #: ../src/guestfs.pod:945
36819 #, no-wrap
36820 msgid ""
36821 " #!/bin/sh -\n"
36822 " qemudir=/home/rjones/d/qemu\n"
36823 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36824 "\n"
36825 msgstr ""
36826 " #!/bin/sh -\n"
36827 " qemudir=/home/rjones/d/qemu\n"
36828 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36829 "\n"
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:949
36833 msgid ""
36834 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36835 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36836 "example:"
36837 msgstr ""
36838
36839 #. type: verbatim
36840 #: ../src/guestfs.pod:953
36841 #, no-wrap
36842 msgid ""
36843 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36844 "\n"
36845 msgstr ""
36846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36847 "\n"
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:955
36851 msgid ""
36852 "Note that libguestfs also calls qemu with the -help and -version options in "
36853 "order to determine features."
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:958
36858 msgid ""
36859 "Wrappers can also be used to edit the options passed to qemu.  In the "
36860 "following example, the C<-machine ...> option (C<-machine> and the following "
36861 "argument) are removed from the command line and replaced with C<-machine pc,"
36862 "accel=tcg>.  The while loop iterates over the options until it finds the "
36863 "right one to remove, putting the remaining options into the C<args> array."
36864 msgstr ""
36865
36866 #. type: verbatim
36867 #: ../src/guestfs.pod:967
36868 #, no-wrap
36869 msgid ""
36870 " i=0\n"
36871 " while [ $# -gt 0 ]; do\n"
36872 "     case \"$1\" in\n"
36873 "     -machine)\n"
36874 "         shift 2;;\n"
36875 "     *)\n"
36876 "         args[i]=\"$1\"\n"
36877 "         (( i++ ))\n"
36878 "         shift ;;\n"
36879 "     esac\n"
36880 " done\n"
36881 " \n"
36882 msgstr ""
36883
36884 #. type: verbatim
36885 #: ../src/guestfs.pod:979
36886 #, no-wrap
36887 msgid ""
36888 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36889 "\n"
36890 msgstr ""
36891
36892 #. type: =head2
36893 #: ../src/guestfs.pod:981
36894 msgid "ATTACHING TO RUNNING DAEMONS"
36895 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:983
36899 msgid ""
36900 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36901 "babies.  Use with caution."
36902 msgstr ""
36903
36904 #. type: textblock
36905 #: ../src/guestfs.pod:986
36906 msgid ""
36907 "I<Note (2):> This section explains how to attach to a running daemon from a "
36908 "low level perspective.  For most users, simply using virt tools such as "
36909 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36910 msgstr ""
36911
36912 #. type: =head3
36913 #: ../src/guestfs.pod:990
36914 msgid "Using guestfs_set_attach_method"
36915 msgstr "За допомогою guestfs_set_attach_method"
36916
36917 #. type: textblock
36918 #: ../src/guestfs.pod:992
36919 msgid ""
36920 "By calling L</guestfs_set_attach_method> you can change how the library "
36921 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36922 "ARCHITECTURE> for some background)."
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../src/guestfs.pod:996
36927 msgid ""
36928 "The normal attach method is C<appliance>, where a small appliance is created "
36929 "containing the daemon, and then the library connects to this."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:999
36934 msgid ""
36935 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36936 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36937 "daemon over the Unix domain socket."
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:1003
36942 msgid ""
36943 "The normal use for this is to connect to a running virtual machine that "
36944 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36945 "files inside the live virtual machine."
36946 msgstr ""
36947
36948 #. type: =head3
36949 #: ../src/guestfs.pod:1007
36950 msgid "Using guestfs_add_domain with live flag"
36951 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:1009
36955 msgid ""
36956 "L</guestfs_add_domain> provides some help for getting the correct attach "
36957 "method.  If you pass the C<live> option to this function, then (if the "
36958 "virtual machine is running) it will examine the libvirt XML looking for a "
36959 "virtio-serial channel to connect to:"
36960 msgstr ""
36961
36962 #. type: verbatim
36963 #: ../src/guestfs.pod:1015
36964 #, no-wrap
36965 msgid ""
36966 " <domain>\n"
36967 "   ...\n"
36968 "   <devices>\n"
36969 "     ...\n"
36970 "     <channel type='unix'>\n"
36971 "       <source mode='bind' path='/path/to/socket'/>\n"
36972 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36973 "     </channel>\n"
36974 "     ...\n"
36975 "   </devices>\n"
36976 " </domain>\n"
36977 "\n"
36978 msgstr ""
36979 " <domain>\n"
36980 "   ...\n"
36981 "   <devices>\n"
36982 "     ...\n"
36983 "     <channel type='unix'>\n"
36984 "       <source mode='bind' path='/path/to/socket'/>\n"
36985 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36986 "     </channel>\n"
36987 "     ...\n"
36988 "   </devices>\n"
36989 " </domain>\n"
36990 "\n"
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:1027
36994 msgid ""
36995 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36996 "method to C<unix:/path/to/socket>."
36997 msgstr ""
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:1030
37001 msgid ""
37002 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37003 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37004 "to attach to and modify live virtual machines."
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:1034
37009 msgid ""
37010 "The virtual machine needs to have been set up beforehand so that it has the "
37011 "virtio-serial channel and so that guestfsd is running inside it."
37012 msgstr ""
37013
37014 #. type: =head2
37015 #: ../src/guestfs.pod:1038
37016 msgid "ABI GUARANTEE"
37017 msgstr "ГАРАНТІЯ ЩОДО ABI"
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1040
37021 msgid ""
37022 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37023 "actions as outlined in this section.  Although we will deprecate some "
37024 "actions, for example if they get replaced by newer calls, we will keep the "
37025 "old actions forever.  This allows you the developer to program in confidence "
37026 "against the libguestfs API."
37027 msgstr ""
37028
37029 #. type: =head2
37030 #: ../src/guestfs.pod:1046
37031 msgid "BLOCK DEVICE NAMING"
37032 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:1048
37036 msgid ""
37037 "In the kernel there is now quite a profusion of schemata for naming block "
37038 "devices (in this context, by I<block device> I mean a physical or virtual "
37039 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37040 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37041 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37042 "for the old IDE driver (particularly for SATA devices) those devices also "
37043 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37044 "paravirtualized drivers.  This has created several different naming systems, "
37045 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37046 msgstr ""
37047
37048 #. type: textblock
37049 #: ../src/guestfs.pod:1060
37050 msgid ""
37051 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37052 "Linux kernel to access block devices.  We can run a variety of appliances "
37053 "based on a variety of Linux kernels."
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:1064
37058 msgid ""
37059 "This causes a problem for libguestfs because many API calls use device or "
37060 "partition names.  Working scripts and the recipe (example) scripts that we "
37061 "make available over the internet could fail if the naming scheme changes."
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:1069
37066 msgid ""
37067 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37068 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37069 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37070 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:1075
37075 msgid ""
37076 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37077 "L</guestfs_list_partitions> and similar calls return the true names of the "
37078 "devices and partitions as known to the appliance."
37079 msgstr ""
37080
37081 #. type: =head3
37082 #: ../src/guestfs.pod:1080
37083 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1082
37088 msgid ""
37089 "Usually this translation is transparent.  However in some (very rare)  cases "
37090 "you may need to know the exact algorithm.  Such cases include where you use "
37091 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37092 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:1088
37097 msgid ""
37098 "The algorithm is applied only to I<parameters> which are known to be either "
37099 "device or partition names.  Return values from functions such as L</"
37100 "guestfs_list_devices> are never changed."
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:1096
37105 msgid "Is the string a parameter which is a device or partition name?"
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:1100
37110 msgid "Does the string begin with C</dev/sd>?"
37111 msgstr "Чи починається рядок з C</dev/sd>?"
37112
37113 #. type: textblock
37114 #: ../src/guestfs.pod:1104
37115 msgid ""
37116 "Does the named device exist? If so, we use that device.  However if I<not> "
37117 "then we continue with this algorithm."
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../src/guestfs.pod:1109
37122 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:1111
37127 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:1113
37132 msgid "If that named device exists, use it.  If not, continue."
37133 msgstr ""
37134
37135 #. type: textblock
37136 #: ../src/guestfs.pod:1117
37137 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:1119
37142 msgid "If that named device exists, use it.  If not, return an error."
37143 msgstr ""
37144
37145 #. type: =head3
37146 #: ../src/guestfs.pod:1123
37147 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:1125
37152 msgid ""
37153 "Although the standard naming scheme and automatic translation is useful for "
37154 "simple programs and guestfish scripts, for larger programs it is best not to "
37155 "rely on this mechanism."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:1129
37160 msgid ""
37161 "Where possible for maximum future portability programs using libguestfs "
37162 "should use these future-proof techniques:"
37163 msgstr ""
37164
37165 #. type: textblock
37166 #: ../src/guestfs.pod:1136
37167 msgid ""
37168 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37169 "device names, and then use those names directly."
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../src/guestfs.pod:1139
37174 msgid ""
37175 "Since those device names exist by definition, they will never be translated."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:1144
37180 msgid ""
37181 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37182 "filesystem labels."
37183 msgstr ""
37184
37185 #. type: =head1
37186 #: ../src/guestfs.pod:1149
37187 msgid "SECURITY"
37188 msgstr "БЕЗПЕКА"
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:1151
37192 msgid ""
37193 "This section discusses security implications of using libguestfs, "
37194 "particularly with untrusted or malicious guests or disk images."
37195 msgstr ""
37196
37197 #. type: =head2
37198 #: ../src/guestfs.pod:1154
37199 msgid "GENERAL SECURITY CONSIDERATIONS"
37200 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37201
37202 #. type: textblock
37203 #: ../src/guestfs.pod:1156
37204 msgid ""
37205 "Be careful with any files or data that you download from a guest (by "
37206 "\"download\" we mean not just the L</guestfs_download> command but any "
37207 "command that reads files, filenames, directories or anything else from a "
37208 "disk image).  An attacker could manipulate the data to fool your program "
37209 "into doing the wrong thing.  Consider cases such as:"
37210 msgstr ""
37211
37212 #. type: textblock
37213 #: ../src/guestfs.pod:1166
37214 msgid "the data (file etc) not being present"
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:1170
37219 msgid "being present but empty"
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:1174
37224 msgid "being much larger than normal"
37225 msgstr ""
37226
37227 #. type: textblock
37228 #: ../src/guestfs.pod:1178
37229 msgid "containing arbitrary 8 bit data"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:1182
37234 msgid "being in an unexpected character encoding"
37235 msgstr ""
37236
37237 #. type: textblock
37238 #: ../src/guestfs.pod:1186
37239 msgid "containing homoglyphs."
37240 msgstr ""
37241
37242 #. type: =head2
37243 #: ../src/guestfs.pod:1190
37244 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37245 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1192
37249 msgid ""
37250 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37251 "(VFS) module can sometimes be escalated into exploits by deliberately "
37252 "creating a malicious, malformed filesystem.  These exploits are very severe "
37253 "for two reasons.  Firstly there are very many filesystem drivers in the "
37254 "kernel, and many of them are infrequently used and not much developer "
37255 "attention has been paid to the code.  Linux userspace helps potential "
37256 "crackers by detecting the filesystem type and automatically choosing the "
37257 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37258 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37259 "exploit (worse in some ways), giving immediate and total access to the "
37260 "system right down to the hardware level."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1205
37265 msgid ""
37266 "That explains why you should never mount a filesystem from an untrusted "
37267 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37268 "inside a qemu virtual machine, usually running as a non-root user.  The "
37269 "attacker would need to write a filesystem which first exploited the kernel, "
37270 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37271 "the libguestfs protocol, and finally to be as serious as the host kernel "
37272 "exploit it would need to escalate its privileges to root.  This multi-step "
37273 "escalation, performed by a static piece of data, is thought to be extremely "
37274 "hard to do, although we never say 'never' about security issues."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:1216
37279 msgid ""
37280 "In any case callers can reduce the attack surface by forcing the filesystem "
37281 "type when mounting (use L</guestfs_mount_vfs>)."
37282 msgstr ""
37283
37284 #. type: =head2
37285 #: ../src/guestfs.pod:1219
37286 msgid "PROTOCOL SECURITY"
37287 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:1221
37291 msgid ""
37292 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37293 "defined upper message size.  However a program that uses libguestfs must "
37294 "also take care - for example you can write a program that downloads a binary "
37295 "from a disk image and executes it locally, and no amount of protocol "
37296 "security will save you from the consequences."
37297 msgstr ""
37298
37299 #. type: =head2
37300 #: ../src/guestfs.pod:1227
37301 msgid "INSPECTION SECURITY"
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:1229
37306 msgid ""
37307 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37308 "directly from the guest, and these could contain any 8 bit data.  Callers "
37309 "should be careful to escape these before printing them to a structured file "
37310 "(for example, use HTML escaping if creating a web page)."
37311 msgstr ""
37312
37313 #. type: textblock
37314 #: ../src/guestfs.pod:1235
37315 msgid ""
37316 "Guest configuration may be altered in unusual ways by the administrator of "
37317 "the virtual machine, and may not reflect reality (particularly for untrusted "
37318 "or actively malicious guests).  For example we parse the hostname from "
37319 "configuration files like C</etc/sysconfig/network> that we find in the "
37320 "guest, but the guest administrator can easily manipulate these files to "
37321 "provide the wrong hostname."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:1243
37326 msgid ""
37327 "The inspection API parses guest configuration using two external libraries: "
37328 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37329 "designed to be robust in the face of malicious data, although denial of "
37330 "service attacks are still possible, for example with oversized configuration "
37331 "files."
37332 msgstr ""
37333
37334 #. type: =head2
37335 #: ../src/guestfs.pod:1249
37336 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37337 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:1251
37341 msgid ""
37342 "Be very cautious about running commands from the guest.  By running a "
37343 "command in the guest, you are giving CPU time to a binary that you do not "
37344 "control, under the same user account as the library, albeit wrapped in qemu "
37345 "virtualization.  More information and alternatives can be found in the "
37346 "section L</RUNNING COMMANDS>."
37347 msgstr ""
37348
37349 #. type: =head2
37350 #: ../src/guestfs.pod:1257
37351 msgid "CVE-2010-3851"
37352 msgstr "CVE-2010-3851"
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:1259
37356 msgid "https://bugzilla.redhat.com/642934"
37357 msgstr "https://bugzilla.redhat.com/642934"
37358
37359 #. type: textblock
37360 #: ../src/guestfs.pod:1261
37361 msgid ""
37362 "This security bug concerns the automatic disk format detection that qemu "
37363 "does on disk images."
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:1264
37368 msgid ""
37369 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37370 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37371 "for one of the known headers, and if none is found then assuming the disk "
37372 "image must be raw."
37373 msgstr ""
37374
37375 #. type: textblock
37376 #: ../src/guestfs.pod:1269
37377 msgid ""
37378 "This allows a guest which has been given a raw disk image to write some "
37379 "other header.  At next boot (or when the disk image is accessed by "
37380 "libguestfs) qemu would do autodetection and think the disk image format was, "
37381 "say, qcow2 based on the header written by the guest."
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../src/guestfs.pod:1274
37386 msgid ""
37387 "This in itself would not be a problem, but qcow2 offers many features, one "
37388 "of which is to allow a disk image to refer to another image (called the "
37389 "\"backing disk\").  It does this by placing the path to the backing disk "
37390 "into the qcow2 header.  This path is not validated and could point to any "
37391 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37392 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37393 "control of the attacker."
37394 msgstr ""
37395
37396 #. type: textblock
37397 #: ../src/guestfs.pod:1282
37398 msgid ""
37399 "In libguestfs this is rather hard to exploit except under two circumstances:"
37400 msgstr ""
37401
37402 #. type: textblock
37403 #: ../src/guestfs.pod:1289
37404 msgid "You have enabled the network or have opened the disk in write mode."
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../src/guestfs.pod:1293
37409 msgid ""
37410 "You are also running untrusted code from the guest (see L</RUNNING "
37411 "COMMANDS>)."
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:1298
37416 msgid ""
37417 "The way to avoid this is to specify the expected disk format when adding "
37418 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37419 "should always do this if the disk is raw format, and it's a good idea for "
37420 "other cases too."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:1303
37425 msgid ""
37426 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37427 "format is fetched from libvirt and passed through."
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:1306
37432 msgid ""
37433 "For libguestfs tools, use the I<--format> command line parameter as "
37434 "appropriate."
37435 msgstr ""
37436
37437 #. type: =head1
37438 #: ../src/guestfs.pod:1309
37439 msgid "CONNECTION MANAGEMENT"
37440 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37441
37442 #. type: =head2
37443 #: ../src/guestfs.pod:1311
37444 msgid "guestfs_h *"
37445 msgstr "guestfs_h *"
37446
37447 #. type: textblock
37448 #: ../src/guestfs.pod:1313
37449 msgid ""
37450 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37451 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37452 "handle and release all resources used."
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:1317
37457 msgid ""
37458 "For information on using multiple handles and threads, see the section L</"
37459 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37460 msgstr ""
37461
37462 #. type: =head2
37463 #: ../src/guestfs.pod:1320
37464 msgid "guestfs_create"
37465 msgstr "guestfs_create"
37466
37467 #. type: verbatim
37468 #: ../src/guestfs.pod:1322
37469 #, no-wrap
37470 msgid ""
37471 " guestfs_h *guestfs_create (void);\n"
37472 "\n"
37473 msgstr ""
37474 " guestfs_h *guestfs_create (void);\n"
37475 "\n"
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:1324
37479 msgid "Create a connection handle."
37480 msgstr "Створити дескриптор з’єднання."
37481
37482 #. type: textblock
37483 #: ../src/guestfs.pod:1326
37484 msgid ""
37485 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37486 "NULL."
37487 msgstr ""
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:1329
37491 msgid ""
37492 "You have to \"configure\" the handle after creating it.  This includes "
37493 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37494 "handle at least once."
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:1333
37499 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37500 msgstr ""
37501
37502 #. type: textblock
37503 #: ../src/guestfs.pod:1335
37504 msgid ""
37505 "You may also want to configure error handling for the handle.  See the L</"
37506 "ERROR HANDLING> section below."
37507 msgstr ""
37508
37509 #. type: =head2
37510 #: ../src/guestfs.pod:1338
37511 msgid "guestfs_close"
37512 msgstr "guestfs_close"
37513
37514 #. type: verbatim
37515 #: ../src/guestfs.pod:1340
37516 #, no-wrap
37517 msgid ""
37518 " void guestfs_close (guestfs_h *g);\n"
37519 "\n"
37520 msgstr ""
37521 " void guestfs_close (guestfs_h *g);\n"
37522 "\n"
37523
37524 #. type: textblock
37525 #: ../src/guestfs.pod:1342
37526 msgid "This closes the connection handle and frees up all resources used."
37527 msgstr ""
37528
37529 #. type: textblock
37530 #: ../src/guestfs.pod:1344
37531 msgid ""
37532 "If autosync was set on the handle and the handle was launched, then this "
37533 "implicitly calls various functions to unmount filesystems and sync the "
37534 "disk.  See L</guestfs_set_autosync> for more details."
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../src/guestfs.pod:1348
37539 msgid "If a close callback was set on the handle, then it is called."
37540 msgstr ""
37541
37542 #. type: =head1
37543 #: ../src/guestfs.pod:1350
37544 msgid "ERROR HANDLING"
37545 msgstr "ОБРОБКА ПОМИЛОК"
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:1352
37549 msgid ""
37550 "API functions can return errors.  For example, almost all functions that "
37551 "return C<int> will return C<-1> to indicate an error."
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../src/guestfs.pod:1355
37556 msgid ""
37557 "Additional information is available for errors: an error message string and "
37558 "optionally an error number (errno) if the thing that failed was a system "
37559 "call."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:1359
37564 msgid ""
37565 "You can get at the additional information about the last error on the handle "
37566 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37567 "up an error handler with L</guestfs_set_error_handler>."
37568 msgstr ""
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:1364
37572 msgid ""
37573 "When the handle is created, a default error handler is installed which "
37574 "prints the error message string to C<stderr>.  For small short-running "
37575 "command line programs it is sufficient to do:"
37576 msgstr ""
37577
37578 #. type: verbatim
37579 #: ../src/guestfs.pod:1368
37580 #, no-wrap
37581 msgid ""
37582 " if (guestfs_launch (g) == -1)\n"
37583 "   exit (EXIT_FAILURE);\n"
37584 "\n"
37585 msgstr ""
37586 " if (guestfs_launch (g) == -1)\n"
37587 "   exit (EXIT_FAILURE);\n"
37588 "\n"
37589
37590 #. type: textblock
37591 #: ../src/guestfs.pod:1371
37592 msgid ""
37593 "since the default error handler will ensure that an error message has been "
37594 "printed to C<stderr> before the program exits."
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:1374
37599 msgid ""
37600 "For other programs the caller will almost certainly want to install an "
37601 "alternate error handler or do error handling in-line like this:"
37602 msgstr ""
37603
37604 #. type: verbatim
37605 #: ../src/guestfs.pod:1377
37606 #, no-wrap
37607 msgid ""
37608 " /* This disables the default behaviour of printing errors\n"
37609 "    on stderr. */\n"
37610 " guestfs_set_error_handler (g, NULL, NULL);\n"
37611 " \n"
37612 msgstr ""
37613
37614 #. type: verbatim
37615 #: ../src/guestfs.pod:1381
37616 #, fuzzy, no-wrap
37617 #| msgid ""
37618 #| " if (guestfs_launch (g) == -1) {\n"
37619 #| "   /* Examine the error message and print it etc. */\n"
37620 #| "   char *msg = guestfs_last_error (g);\n"
37621 #| "   int errnum = guestfs_last_errno (g);\n"
37622 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
37623 #| "   /* ... */\n"
37624 #| "  }\n"
37625 #| "\n"
37626 msgid ""
37627 " if (guestfs_launch (g) == -1) {\n"
37628 "   /* Examine the error message and print it etc. */\n"
37629 "   char *msg = guestfs_last_error (g);\n"
37630 "   int errnum = guestfs_last_errno (g);\n"
37631 "   fprintf (stderr, \"%s\", msg);\n"
37632 "   if (errnum != 0)\n"
37633 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37634 "   fprintf (stderr, \"\\n\");\n"
37635 "   /* ... */\n"
37636 " }\n"
37637 "\n"
37638 msgstr ""
37639 " if (guestfs_launch (g) == -1) {\n"
37640 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
37641 "   char *msg = guestfs_last_error (g);\n"
37642 "   int errnum = guestfs_last_errno (g);\n"
37643 "   fprintf (stderr, \"%s\\n\", msg);\n"
37644 "   /* ... */\n"
37645 "  }\n"
37646 "\n"
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:1392
37650 msgid ""
37651 "Out of memory errors are handled differently.  The default action is to call "
37652 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37653 "guestfs_set_out_of_memory_handler>."
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../src/guestfs.pod:1396
37658 msgid ""
37659 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37660 "because there is no handle if this happens there is no way to get additional "
37661 "error information.  However L</guestfs_create> is supposed to be a "
37662 "lightweight operation which can only fail because of insufficient memory (it "
37663 "returns NULL in this case)."
37664 msgstr ""
37665
37666 #. type: =head2
37667 #: ../src/guestfs.pod:1402
37668 msgid "guestfs_last_error"
37669 msgstr "guestfs_last_error"
37670
37671 #. type: verbatim
37672 #: ../src/guestfs.pod:1404
37673 #, no-wrap
37674 msgid ""
37675 " const char *guestfs_last_error (guestfs_h *g);\n"
37676 "\n"
37677 msgstr ""
37678 " const char *guestfs_last_error (guestfs_h *g);\n"
37679 "\n"
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:1406
37683 msgid ""
37684 "This returns the last error message that happened on C<g>.  If there has not "
37685 "been an error since the handle was created, then this returns C<NULL>."
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:1410
37690 msgid ""
37691 "The lifetime of the returned string is until the next error occurs, or L</"
37692 "guestfs_close> is called."
37693 msgstr ""
37694
37695 #. type: =head2
37696 #: ../src/guestfs.pod:1413
37697 msgid "guestfs_last_errno"
37698 msgstr "guestfs_last_errno"
37699
37700 #. type: verbatim
37701 #: ../src/guestfs.pod:1415
37702 #, no-wrap
37703 msgid ""
37704 " int guestfs_last_errno (guestfs_h *g);\n"
37705 "\n"
37706 msgstr ""
37707 " int guestfs_last_errno (guestfs_h *g);\n"
37708 "\n"
37709
37710 #. type: textblock
37711 #: ../src/guestfs.pod:1417
37712 msgid "This returns the last error number (errno) that happened on C<g>."
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:1419
37717 msgid "If successful, an errno integer not equal to zero is returned."
37718 msgstr ""
37719
37720 #. type: textblock
37721 #: ../src/guestfs.pod:1421
37722 msgid ""
37723 "If no error, this returns 0.  This call can return 0 in three situations:"
37724 msgstr ""
37725
37726 #. type: textblock
37727 #: ../src/guestfs.pod:1428
37728 msgid "There has not been any error on the handle."
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../src/guestfs.pod:1432
37733 msgid ""
37734 "There has been an error but the errno was meaningless.  This corresponds to "
37735 "the case where the error did not come from a failed system call, but for "
37736 "some other reason."
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../src/guestfs.pod:1438
37741 msgid ""
37742 "There was an error from a failed system call, but for some reason the errno "
37743 "was not captured and returned.  This usually indicates a bug in libguestfs."
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../src/guestfs.pod:1444
37748 msgid ""
37749 "Libguestfs tries to convert the errno from inside the applicance into a "
37750 "corresponding errno for the caller (not entirely trivial: the appliance "
37751 "might be running a completely different operating system from the library "
37752 "and error numbers are not standardized across Un*xen).  If this could not be "
37753 "done, then the error is translated to C<EINVAL>.  In practice this should "
37754 "only happen in very rare circumstances."
37755 msgstr ""
37756
37757 #. type: =head2
37758 #: ../src/guestfs.pod:1452
37759 msgid "guestfs_set_error_handler"
37760 msgstr "guestfs_set_error_handler"
37761
37762 #. type: verbatim
37763 #: ../src/guestfs.pod:1454
37764 #, no-wrap
37765 msgid ""
37766 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37767 "                                           void *opaque,\n"
37768 "                                           const char *msg);\n"
37769 " void guestfs_set_error_handler (guestfs_h *g,\n"
37770 "                                 guestfs_error_handler_cb cb,\n"
37771 "                                 void *opaque);\n"
37772 "\n"
37773 msgstr ""
37774 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37775 "                                           void *opaque,\n"
37776 "                                           const char *msg);\n"
37777 " void guestfs_set_error_handler (guestfs_h *g,\n"
37778 "                                 guestfs_error_handler_cb cb,\n"
37779 "                                 void *opaque);\n"
37780 "\n"
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:1461
37784 msgid ""
37785 "The callback C<cb> will be called if there is an error.  The parameters "
37786 "passed to the callback are an opaque data pointer and the error message "
37787 "string."
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../src/guestfs.pod:1465
37792 msgid ""
37793 "C<errno> is not passed to the callback.  To get that the callback must call "
37794 "L</guestfs_last_errno>."
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../src/guestfs.pod:1468
37799 msgid ""
37800 "Note that the message string C<msg> is freed as soon as the callback "
37801 "function returns, so if you want to stash it somewhere you must make your "
37802 "own copy."
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1472
37807 msgid "The default handler prints messages on C<stderr>."
37808 msgstr ""
37809
37810 #. type: textblock
37811 #: ../src/guestfs.pod:1474
37812 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37813 msgstr ""
37814
37815 #. type: =head2
37816 #: ../src/guestfs.pod:1476
37817 msgid "guestfs_get_error_handler"
37818 msgstr "guestfs_get_error_handler"
37819
37820 #. type: verbatim
37821 #: ../src/guestfs.pod:1478
37822 #, no-wrap
37823 msgid ""
37824 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37825 "                                                     void **opaque_rtn);\n"
37826 "\n"
37827 msgstr ""
37828 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37829 "                                                     void **opaque_rtn);\n"
37830 "\n"
37831
37832 #. type: textblock
37833 #: ../src/guestfs.pod:1481
37834 msgid "Returns the current error handler callback."
37835 msgstr ""
37836
37837 #. type: =head2
37838 #: ../src/guestfs.pod:1483
37839 msgid "guestfs_set_out_of_memory_handler"
37840 msgstr "guestfs_set_out_of_memory_handler"
37841
37842 #. type: verbatim
37843 #: ../src/guestfs.pod:1485
37844 #, fuzzy, no-wrap
37845 #| msgid ""
37846 #| " typedef void (*guestfs_abort_cb) (void);\n"
37847 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37848 #| "                                        guestfs_abort_cb);\n"
37849 #| "\n"
37850 msgid ""
37851 " typedef void (*guestfs_abort_cb) (void);\n"
37852 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37853 "                                         guestfs_abort_cb);\n"
37854 "\n"
37855 msgstr ""
37856 " typedef void (*guestfs_abort_cb) (void);\n"
37857 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37858 "                                        guestfs_abort_cb);\n"
37859 "\n"
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:1489
37863 msgid ""
37864 "The callback C<cb> will be called if there is an out of memory situation.  "
37865 "I<Note this callback must not return>."
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:1492
37870 msgid "The default is to call L<abort(3)>."
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:1494
37875 msgid ""
37876 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37877 msgstr ""
37878
37879 #. type: =head2
37880 #: ../src/guestfs.pod:1497
37881 msgid "guestfs_get_out_of_memory_handler"
37882 msgstr "guestfs_get_out_of_memory_handler"
37883
37884 #. type: verbatim
37885 #: ../src/guestfs.pod:1499
37886 #, no-wrap
37887 msgid ""
37888 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37889 "\n"
37890 msgstr ""
37891 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37892 "\n"
37893
37894 #. type: textblock
37895 #: ../src/guestfs.pod:1501
37896 msgid "This returns the current out of memory handler."
37897 msgstr ""
37898
37899 #. type: =head1
37900 #: ../src/guestfs.pod:1503
37901 msgid "API CALLS"
37902 msgstr "ВИКЛИКИ API"
37903
37904 #. type: =head1
37905 #: ../src/guestfs.pod:1507
37906 msgid "STRUCTURES"
37907 msgstr "СТРУКТУРИ"
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:1509
37911 msgid "@STRUCTS@"
37912 msgstr "@STRUCTS@"
37913
37914 #. type: =head1
37915 #: ../src/guestfs.pod:1511
37916 msgid "AVAILABILITY"
37917 msgstr "ДОСТУПНІСТЬ"
37918
37919 #. type: =head2
37920 #: ../src/guestfs.pod:1513
37921 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37922 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:1515
37926 msgid ""
37927 "Using L</guestfs_available> you can test availability of the following "
37928 "groups of functions.  This test queries the appliance to see if the "
37929 "appliance you are currently using supports the functionality."
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:1520
37934 msgid "@AVAILABILITY@"
37935 msgstr "@AVAILABILITY@"
37936
37937 #. type: =head2
37938 #: ../src/guestfs.pod:1522
37939 msgid "GUESTFISH supported COMMAND"
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:1524
37944 msgid ""
37945 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37946 "prints out the available groups and whether they are supported by this build "
37947 "of libguestfs.  Note however that you have to do C<run> first."
37948 msgstr ""
37949
37950 #. type: =head2
37951 #: ../src/guestfs.pod:1529
37952 msgid "SINGLE CALLS AT COMPILE TIME"
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../src/guestfs.pod:1531
37957 msgid ""
37958 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37959 "function, such as:"
37960 msgstr ""
37961
37962 #. type: verbatim
37963 #: ../src/guestfs.pod:1534
37964 #, no-wrap
37965 msgid ""
37966 " #define LIBGUESTFS_HAVE_DD 1\n"
37967 "\n"
37968 msgstr ""
37969 " #define LIBGUESTFS_HAVE_DD 1\n"
37970 "\n"
37971
37972 #. type: textblock
37973 #: ../src/guestfs.pod:1536
37974 msgid "if L</guestfs_dd> is available."
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../src/guestfs.pod:1538
37979 msgid ""
37980 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37981 "function is available at compile time, we recommended using build tools such "
37982 "as autoconf or cmake.  For example in autotools you could use:"
37983 msgstr ""
37984
37985 #. type: verbatim
37986 #: ../src/guestfs.pod:1543
37987 #, no-wrap
37988 msgid ""
37989 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37990 " AC_CHECK_FUNCS([guestfs_dd])\n"
37991 "\n"
37992 msgstr ""
37993 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37994 " AC_CHECK_FUNCS([guestfs_dd])\n"
37995 "\n"
37996
37997 #. type: textblock
37998 #: ../src/guestfs.pod:1546
37999 msgid ""
38000 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38001 "in your program."
38002 msgstr ""
38003
38004 #. type: =head2
38005 #: ../src/guestfs.pod:1549
38006 msgid "SINGLE CALLS AT RUN TIME"
38007 msgstr ""
38008
38009 #. type: textblock
38010 #: ../src/guestfs.pod:1551
38011 msgid ""
38012 "Testing at compile time doesn't guarantee that a function really exists in "
38013 "the library.  The reason is that you might be dynamically linked against a "
38014 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38015 "This situation unfortunately results in a segmentation fault, which is a "
38016 "shortcoming of the C dynamic linking system itself."
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1558
38021 msgid ""
38022 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38023 "in this example program (note that you still need the compile time check as "
38024 "well):"
38025 msgstr ""
38026
38027 #. type: verbatim
38028 #: ../src/guestfs.pod:1562
38029 #, no-wrap
38030 msgid ""
38031 " #include <stdio.h>\n"
38032 " #include <stdlib.h>\n"
38033 " #include <unistd.h>\n"
38034 " #include <dlfcn.h>\n"
38035 " #include <guestfs.h>\n"
38036 " \n"
38037 msgstr ""
38038 " #include <stdio.h>\n"
38039 " #include <stdlib.h>\n"
38040 " #include <unistd.h>\n"
38041 " #include <dlfcn.h>\n"
38042 " #include <guestfs.h>\n"
38043 " \n"
38044
38045 #. type: verbatim
38046 #: ../src/guestfs.pod:1568
38047 #, no-wrap
38048 msgid ""
38049 " main ()\n"
38050 " {\n"
38051 " #ifdef LIBGUESTFS_HAVE_DD\n"
38052 "   void *dl;\n"
38053 "   int has_function;\n"
38054 " \n"
38055 msgstr ""
38056 " main ()\n"
38057 " {\n"
38058 " #ifdef LIBGUESTFS_HAVE_DD\n"
38059 "   void *dl;\n"
38060 "   int has_function;\n"
38061 " \n"
38062
38063 #. type: verbatim
38064 #: ../src/guestfs.pod:1574
38065 #, no-wrap
38066 msgid ""
38067 "   /* Test if the function guestfs_dd is really available. */\n"
38068 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38069 "   if (!dl) {\n"
38070 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38071 "     exit (EXIT_FAILURE);\n"
38072 "   }\n"
38073 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38074 "   dlclose (dl);\n"
38075 " \n"
38076 msgstr ""
38077
38078 #. type: verbatim
38079 #: ../src/guestfs.pod:1583
38080 #, no-wrap
38081 msgid ""
38082 "   if (!has_function)\n"
38083 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38084 "   else {\n"
38085 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38086 "     /* Now it's safe to call\n"
38087 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38088 "     */\n"
38089 "   }\n"
38090 " #else\n"
38091 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38092 " #endif\n"
38093 "  }\n"
38094 "\n"
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:1596
38099 msgid ""
38100 "You may think the above is an awful lot of hassle, and it is.  There are "
38101 "other ways outside of the C linking system to ensure that this kind of "
38102 "incompatibility never arises, such as using package versioning:"
38103 msgstr ""
38104
38105 #. type: verbatim
38106 #: ../src/guestfs.pod:1601
38107 #, no-wrap
38108 msgid ""
38109 " Requires: libguestfs >= 1.0.80\n"
38110 "\n"
38111 msgstr ""
38112
38113 #. type: =head1
38114 #: ../src/guestfs.pod:1603
38115 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:1605
38120 msgid ""
38121 "A recent feature of the API is the introduction of calls which take optional "
38122 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38123 "takes variable arguments (ie. C<...>), as in this example:"
38124 msgstr ""
38125
38126 #. type: verbatim
38127 #: ../src/guestfs.pod:1610
38128 #, no-wrap
38129 msgid ""
38130 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38131 "\n"
38132 msgstr ""
38133 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38134 "\n"
38135
38136 #. type: textblock
38137 #: ../src/guestfs.pod:1612
38138 msgid ""
38139 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38140 "call with no optional arguments specified:"
38141 msgstr ""
38142
38143 #. type: verbatim
38144 #: ../src/guestfs.pod:1615
38145 #, no-wrap
38146 msgid ""
38147 " guestfs_add_drive_opts (g, filename, -1);\n"
38148 "\n"
38149 msgstr ""
38150 " guestfs_add_drive_opts (g, filename, -1);\n"
38151 "\n"
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:1617
38155 msgid "With a single optional argument:"
38156 msgstr ""
38157
38158 #. type: verbatim
38159 #: ../src/guestfs.pod:1619
38160 #, no-wrap
38161 msgid ""
38162 " guestfs_add_drive_opts (g, filename,\n"
38163 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38164 "                         -1);\n"
38165 "\n"
38166 msgstr ""
38167 " guestfs_add_drive_opts (g, filename,\n"
38168 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38169 "                         -1);\n"
38170 "\n"
38171
38172 #. type: textblock
38173 #: ../src/guestfs.pod:1623
38174 msgid "With two:"
38175 msgstr ""
38176
38177 #. type: verbatim
38178 #: ../src/guestfs.pod:1625
38179 #, no-wrap
38180 msgid ""
38181 " guestfs_add_drive_opts (g, filename,\n"
38182 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38183 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38184 "                         -1);\n"
38185 "\n"
38186 msgstr ""
38187 " guestfs_add_drive_opts (g, filename,\n"
38188 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38189 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38190 "                         -1);\n"
38191 "\n"
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:1630
38195 msgid ""
38196 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38197 "happen!"
38198 msgstr ""
38199
38200 #. type: =head2
38201 #: ../src/guestfs.pod:1633
38202 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:1635
38207 msgid ""
38208 "The second variant has the same name with the suffix C<_va>, which works the "
38209 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38210 "example function, this is declared:"
38211 msgstr ""
38212
38213 #. type: verbatim
38214 #: ../src/guestfs.pod:1639
38215 #, no-wrap
38216 msgid ""
38217 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38218 "                                va_list args);\n"
38219 "\n"
38220 msgstr ""
38221 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38222 "                                va_list args);\n"
38223 "\n"
38224
38225 #. type: =head2
38226 #: ../src/guestfs.pod:1642
38227 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38228 msgstr ""
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:1644
38232 msgid ""
38233 "The third variant is useful where you need to construct these calls.  You "
38234 "pass in a structure where you fill in the optional fields.  The structure "
38235 "has a bitmask as the first element which you must set to indicate which "
38236 "fields you have filled in.  For our example function the structure and call "
38237 "are declared:"
38238 msgstr ""
38239
38240 #. type: verbatim
38241 #: ../src/guestfs.pod:1650
38242 #, no-wrap
38243 msgid ""
38244 " struct guestfs_add_drive_opts_argv {\n"
38245 "   uint64_t bitmask;\n"
38246 "   int readonly;\n"
38247 "   const char *format;\n"
38248 "   /* ... */\n"
38249 " };\n"
38250 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38251 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38252 "\n"
38253 msgstr ""
38254 " struct guestfs_add_drive_opts_argv {\n"
38255 "   uint64_t bitmask;\n"
38256 "   int readonly;\n"
38257 "   const char *format;\n"
38258 "   /* ... */\n"
38259 " };\n"
38260 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38261 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38262 "\n"
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:1659
38266 msgid "You could call it like this:"
38267 msgstr ""
38268
38269 #. type: verbatim
38270 #: ../src/guestfs.pod:1661
38271 #, no-wrap
38272 msgid ""
38273 " struct guestfs_add_drive_opts_argv optargs = {\n"
38274 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38275 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38276 "   .readonly = 1,\n"
38277 "   .format = \"qcow2\"\n"
38278 " };\n"
38279 " \n"
38280 msgstr ""
38281 " struct guestfs_add_drive_opts_argv optargs = {\n"
38282 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38283 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38284 "   .readonly = 1,\n"
38285 "   .format = \"qcow2\"\n"
38286 " };\n"
38287 " \n"
38288
38289 #. type: verbatim
38290 #: ../src/guestfs.pod:1668
38291 #, no-wrap
38292 msgid ""
38293 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38294 "\n"
38295 msgstr ""
38296 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38297 "\n"
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1676
38301 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../src/guestfs.pod:1681
38306 msgid "You do not need to fill in all fields of the structure."
38307 msgstr ""
38308
38309 #. type: textblock
38310 #: ../src/guestfs.pod:1685
38311 msgid ""
38312 "There must be a one-to-one correspondence between fields of the structure "
38313 "that are filled in, and bits set in the bitmask."
38314 msgstr ""
38315
38316 #. type: =head2
38317 #: ../src/guestfs.pod:1690
38318 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38319 msgstr ""
38320
38321 #. type: textblock
38322 #: ../src/guestfs.pod:1692
38323 msgid ""
38324 "In other languages, optional arguments are expressed in the way that is "
38325 "natural for that language.  We refer you to the language-specific "
38326 "documentation for more details on that."
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:1696
38331 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38332 msgstr ""
38333
38334 #. type: =head2
38335 #: ../src/guestfs.pod:1698
38336 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:1700
38341 msgid ""
38342 "B<Note:> This section documents the generic event mechanism introduced in "
38343 "libguestfs 1.10, which you should use in new code if possible.  The old "
38344 "functions C<guestfs_set_log_message_callback>, "
38345 "C<guestfs_set_subprocess_quit_callback>, "
38346 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38347 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38348 "page.  Because of the ABI guarantee, the old functions continue to work."
38349 msgstr ""
38350
38351 #. type: textblock
38352 #: ../src/guestfs.pod:1709
38353 msgid ""
38354 "Handles generate events when certain things happen, such as log messages "
38355 "being generated, progress messages during long-running operations, or the "
38356 "handle being closed.  The API calls described below let you register a "
38357 "callback to be called when events happen.  You can register multiple "
38358 "callbacks (for the same, different or overlapping sets of events), and "
38359 "individually remove callbacks.  If callbacks are not removed, then they "
38360 "remain in force until the handle is closed."
38361 msgstr ""
38362
38363 #. type: textblock
38364 #: ../src/guestfs.pod:1717
38365 msgid ""
38366 "In the current implementation, events are only generated synchronously: that "
38367 "means that events (and hence callbacks) can only happen while you are in the "
38368 "middle of making another libguestfs call.  The callback is called in the "
38369 "same thread."
38370 msgstr ""
38371
38372 #. type: textblock
38373 #: ../src/guestfs.pod:1722
38374 msgid ""
38375 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38376 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38377 msgstr ""
38378
38379 #. type: =head3
38380 #: ../src/guestfs.pod:1726
38381 msgid "CLASSES OF EVENTS"
38382 msgstr ""
38383
38384 #. type: =item
38385 #: ../src/guestfs.pod:1730
38386 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38387 msgstr ""
38388
38389 #. type: textblock
38390 #: ../src/guestfs.pod:1733
38391 msgid ""
38392 "The callback function will be called while the handle is being closed "
38393 "(synchronously from L</guestfs_close>)."
38394 msgstr ""
38395
38396 #. type: textblock
38397 #: ../src/guestfs.pod:1736
38398 msgid ""
38399 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38400 "handles that are open when the program exits.  This means that this callback "
38401 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38402 "problems in higher-level languages (eg. if your HLL interpreter has already "
38403 "been cleaned up by the time this is called, and if your callback then jumps "
38404 "into some HLL function)."
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:1743
38409 msgid ""
38410 "If no callback is registered: the handle is closed without any callback "
38411 "being invoked."
38412 msgstr ""
38413
38414 #. type: =item
38415 #: ../src/guestfs.pod:1746
38416 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:1749
38421 msgid ""
38422 "The callback function will be called when the child process quits, either "
38423 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38424 "corresponds to a transition from any state to the CONFIG state)."
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38429 msgid "If no callback is registered: the event is ignored."
38430 msgstr ""
38431
38432 #. type: =item
38433 #: ../src/guestfs.pod:1755
38434 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:1758
38439 msgid ""
38440 "The callback function will be called when the child process becomes ready "
38441 "first time after it has been launched.  (This corresponds to a transition "
38442 "from LAUNCHING to the READY state)."
38443 msgstr ""
38444
38445 #. type: =item
38446 #: ../src/guestfs.pod:1764
38447 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:1767
38452 msgid ""
38453 "Some long-running operations can generate progress messages.  If this "
38454 "callback is registered, then it will be called each time a progress message "
38455 "is generated (usually two seconds after the operation started, and three "
38456 "times per second thereafter until it completes, although the frequency may "
38457 "change in future versions)."
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:1773
38462 msgid ""
38463 "The callback receives in the payload four unsigned 64 bit numbers which are "
38464 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:1776
38469 msgid ""
38470 "The units of C<total> are not defined, although for some operations C<total> "
38471 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38472 "or megabytes), and C<position> may be the portion which has been transferred."
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:1781
38477 msgid "The only defined and stable parts of the API are:"
38478 msgstr ""
38479
38480 #. type: textblock
38481 #: ../src/guestfs.pod:1787
38482 msgid ""
38483 "The callback can display to the user some type of progress bar or indicator "
38484 "which shows the ratio of C<position>:C<total>."
38485 msgstr ""
38486
38487 #. type: textblock
38488 #: ../src/guestfs.pod:1792
38489 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:1796
38494 msgid ""
38495 "If any progress notification is sent during a call, then a final progress "
38496 "notification is always sent when C<position> = C<total> (I<unless> the call "
38497 "fails with an error)."
38498 msgstr ""
38499
38500 #. type: textblock
38501 #: ../src/guestfs.pod:1800
38502 msgid ""
38503 "This is to simplify caller code, so callers can easily set the progress "
38504 "indicator to \"100%\" at the end of the operation, without requiring special "
38505 "code to detect this case."
38506 msgstr ""
38507
38508 #. type: textblock
38509 #: ../src/guestfs.pod:1806
38510 msgid ""
38511 "For some calls we are unable to estimate the progress of the call, but we "
38512 "can still generate progress messages to indicate activity.  This is known as "
38513 "\"pulse mode\", and is directly supported by certain progress bar "
38514 "implementations (eg. GtkProgressBar)."
38515 msgstr ""
38516
38517 #. type: textblock
38518 #: ../src/guestfs.pod:1811
38519 msgid ""
38520 "For these calls, zero or more progress messages are generated with "
38521 "C<position = 0> and C<total = 1>, followed by a final message with "
38522 "C<position = total = 1>."
38523 msgstr ""
38524
38525 #. type: textblock
38526 #: ../src/guestfs.pod:1815
38527 msgid ""
38528 "As noted above, if the call fails with an error then the final message may "
38529 "not be generated."
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../src/guestfs.pod:1820
38534 msgid ""
38535 "The callback also receives the procedure number (C<proc_nr>) and serial "
38536 "number (C<serial>) of the call.  These are only useful for debugging "
38537 "protocol issues, and the callback can normally ignore them.  The callback "
38538 "may want to print these numbers in error messages or debugging messages."
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../src/guestfs.pod:1826
38543 msgid "If no callback is registered: progress messages are discarded."
38544 msgstr ""
38545
38546 #. type: =item
38547 #: ../src/guestfs.pod:1828
38548 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38549 msgstr ""
38550
38551 #. type: textblock
38552 #: ../src/guestfs.pod:1831
38553 msgid ""
38554 "The callback function is called whenever a log message is generated by qemu, "
38555 "the appliance kernel, guestfsd (daemon), or utility programs."
38556 msgstr ""
38557
38558 #. type: textblock
38559 #: ../src/guestfs.pod:1834
38560 msgid ""
38561 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38562 "guestfs_launch>) then additional debug messages are generated."
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38567 msgid ""
38568 "If no callback is registered: the messages are discarded unless the verbose "
38569 "flag is set in which case they are sent to stderr.  You can override the "
38570 "printing of verbose messages to stderr by setting up a callback."
38571 msgstr ""
38572
38573 #. type: =item
38574 #: ../src/guestfs.pod:1842
38575 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:1845
38580 msgid ""
38581 "The callback function is called whenever a log message is generated by the "
38582 "library part of libguestfs."
38583 msgstr ""
38584
38585 #. type: textblock
38586 #: ../src/guestfs.pod:1848
38587 msgid ""
38588 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38589 "messages are generated."
38590 msgstr ""
38591
38592 #. type: =item
38593 #: ../src/guestfs.pod:1856
38594 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../src/guestfs.pod:1859
38599 msgid ""
38600 "The callback function is called whenever a trace message is generated.  This "
38601 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:1862
38606 msgid ""
38607 "If no callback is registered: the messages are sent to stderr.  You can "
38608 "override the printing of trace messages to stderr by setting up a callback."
38609 msgstr ""
38610
38611 #. type: =item
38612 #: ../src/guestfs.pod:1866
38613 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38614 msgstr ""
38615
38616 #. type: textblock
38617 #: ../src/guestfs.pod:1869
38618 msgid ""
38619 "The callback function is called whenever a libguestfs function is entered."
38620 msgstr ""
38621
38622 #. type: textblock
38623 #: ../src/guestfs.pod:1872
38624 msgid ""
38625 "The payload is a string which contains the name of the function that we are "
38626 "entering (not including C<guestfs_> prefix)."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:1875
38631 msgid ""
38632 "Note that libguestfs functions can call themselves, so you may see many "
38633 "events from a single call.  A few libguestfs functions do not generate this "
38634 "event."
38635 msgstr ""
38636
38637 #. type: =head3
38638 #: ../src/guestfs.pod:1883
38639 msgid "guestfs_set_event_callback"
38640 msgstr ""
38641
38642 #. type: verbatim
38643 #: ../src/guestfs.pod:1885
38644 #, no-wrap
38645 msgid ""
38646 " int guestfs_set_event_callback (guestfs_h *g,\n"
38647 "                                 guestfs_event_callback cb,\n"
38648 "                                 uint64_t event_bitmask,\n"
38649 "                                 int flags,\n"
38650 "                                 void *opaque);\n"
38651 "\n"
38652 msgstr ""
38653
38654 #. type: textblock
38655 #: ../src/guestfs.pod:1891
38656 msgid ""
38657 "This function registers a callback (C<cb>) for all event classes in the "
38658 "C<event_bitmask>."
38659 msgstr ""
38660
38661 #. type: textblock
38662 #: ../src/guestfs.pod:1894
38663 msgid ""
38664 "For example, to register for all log message events, you could call this "
38665 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38666 "To register a single callback for all possible classes of events, use "
38667 "C<GUESTFS_EVENT_ALL>."
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:1900
38672 msgid "C<flags> should always be passed as 0."
38673 msgstr ""
38674
38675 #. type: textblock
38676 #: ../src/guestfs.pod:1902
38677 msgid ""
38678 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38679 "it for any purpose."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:1905
38684 msgid ""
38685 "The return value is the event handle (an integer) which you can use to "
38686 "delete the callback (see below)."
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:1908
38691 msgid ""
38692 "If there is an error, this function returns C<-1>, and sets the error in the "
38693 "handle in the usual way (see L</guestfs_last_error> etc.)"
38694 msgstr ""
38695
38696 #. type: textblock
38697 #: ../src/guestfs.pod:1911
38698 msgid ""
38699 "Callbacks remain in effect until they are deleted, or until the handle is "
38700 "closed."
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:1914
38705 msgid ""
38706 "In the case where multiple callbacks are registered for a particular event "
38707 "class, all of the callbacks are called.  The order in which multiple "
38708 "callbacks are called is not defined."
38709 msgstr ""
38710
38711 #. type: =head3
38712 #: ../src/guestfs.pod:1918
38713 msgid "guestfs_delete_event_callback"
38714 msgstr ""
38715
38716 #. type: verbatim
38717 #: ../src/guestfs.pod:1920
38718 #, no-wrap
38719 msgid ""
38720 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38721 "\n"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:1922
38726 msgid ""
38727 "Delete a callback that was previously registered.  C<event_handle> should be "
38728 "the integer that was returned by a previous call to "
38729 "C<guestfs_set_event_callback> on the same handle."
38730 msgstr ""
38731
38732 #. type: =head3
38733 #: ../src/guestfs.pod:1926
38734 msgid "guestfs_event_callback"
38735 msgstr ""
38736
38737 #. type: verbatim
38738 #: ../src/guestfs.pod:1928
38739 #, no-wrap
38740 msgid ""
38741 " typedef void (*guestfs_event_callback) (\n"
38742 "                  guestfs_h *g,\n"
38743 "                  void *opaque,\n"
38744 "                  uint64_t event,\n"
38745 "                  int event_handle,\n"
38746 "                  int flags,\n"
38747 "                  const char *buf, size_t buf_len,\n"
38748 "                  const uint64_t *array, size_t array_len);\n"
38749 "\n"
38750 msgstr ""
38751
38752 #. type: textblock
38753 #: ../src/guestfs.pod:1937
38754 msgid ""
38755 "This is the type of the event callback function that you have to provide."
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:1940
38760 msgid ""
38761 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38762 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38763 "handle, and C<flags> which in the current API you should ignore."
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../src/guestfs.pod:1944
38768 msgid ""
38769 "The remaining parameters contain the event payload (if any).  Each event may "
38770 "contain a payload, which usually relates to the event class, but for future "
38771 "proofing your code should be written to handle any payload for any event "
38772 "class."
38773 msgstr ""
38774
38775 #. type: textblock
38776 #: ../src/guestfs.pod:1949
38777 msgid ""
38778 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38779 "there is no message buffer).  Note that this message buffer can contain "
38780 "arbitrary 8 bit data, including NUL bytes."
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:1953
38785 msgid ""
38786 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38787 "moment this is only used for progress messages."
38788 msgstr ""
38789
38790 #. type: =head3
38791 #: ../src/guestfs.pod:1956
38792 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:1958
38797 msgid ""
38798 "One motivation for the generic event API was to allow GUI programs to "
38799 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38800 "unconditionally to C<stderr>."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:1962
38805 msgid ""
38806 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38807 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38808 "messages are not events; you must capture error messages separately)."
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../src/guestfs.pod:1967
38813 msgid ""
38814 "Programs have to set up a callback to capture the classes of events of "
38815 "interest:"
38816 msgstr ""
38817
38818 #. type: verbatim
38819 #: ../src/guestfs.pod:1970
38820 #, no-wrap
38821 msgid ""
38822 " int eh =\n"
38823 "   guestfs_set_event_callback\n"
38824 "     (g, message_callback,\n"
38825 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38826 "      GUESTFS_EVENT_TRACE,\n"
38827 "      0, NULL) == -1)\n"
38828 " if (eh == -1) {\n"
38829 "   // handle error in the usual way\n"
38830 " }\n"
38831 "\n"
38832 msgstr ""
38833
38834 #. type: textblock
38835 #: ../src/guestfs.pod:1980
38836 msgid ""
38837 "The callback can then direct messages to the appropriate place.  In this "
38838 "example, messages are directed to syslog:"
38839 msgstr ""
38840
38841 #. type: verbatim
38842 #: ../src/guestfs.pod:1983
38843 #, no-wrap
38844 msgid ""
38845 " static void\n"
38846 " message_callback (\n"
38847 "         guestfs_h *g,\n"
38848 "         void *opaque,\n"
38849 "         uint64_t event,\n"
38850 "         int event_handle,\n"
38851 "         int flags,\n"
38852 "         const char *buf, size_t buf_len,\n"
38853 "         const uint64_t *array, size_t array_len)\n"
38854 " {\n"
38855 "   const int priority = LOG_USER|LOG_INFO;\n"
38856 "   if (buf_len > 0)\n"
38857 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38858 " }\n"
38859 "\n"
38860 msgstr ""
38861
38862 #. type: =head1
38863 #: ../src/guestfs.pod:1998
38864 msgid "CANCELLING LONG TRANSFERS"
38865 msgstr ""
38866
38867 #. type: textblock
38868 #: ../src/guestfs.pod:2000
38869 msgid ""
38870 "Some operations can be cancelled by the caller while they are in progress.  "
38871 "Currently only operations that involve uploading or downloading data can be "
38872 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38873 "parameters in the generator)."
38874 msgstr ""
38875
38876 #. type: =head2
38877 #: ../src/guestfs.pod:2005
38878 msgid "guestfs_user_cancel"
38879 msgstr ""
38880
38881 #. type: verbatim
38882 #: ../src/guestfs.pod:2007
38883 #, no-wrap
38884 msgid ""
38885 " void guestfs_user_cancel (guestfs_h *g);\n"
38886 "\n"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:2009
38891 msgid ""
38892 "C<guestfs_user_cancel> cancels the current upload or download operation."
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:2012
38897 msgid ""
38898 "Unlike most other libguestfs calls, this function is signal safe and thread "
38899 "safe.  You can call it from a signal handler or from another thread, without "
38900 "needing to do any locking."
38901 msgstr ""
38902
38903 #. type: textblock
38904 #: ../src/guestfs.pod:2016
38905 msgid ""
38906 "The transfer that was in progress (if there is one) will stop shortly "
38907 "afterwards, and will return an error.  The errno (see L</"
38908 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38909 "out if the operation was cancelled or failed because of another error."
38910 msgstr ""
38911
38912 #. type: textblock
38913 #: ../src/guestfs.pod:2022
38914 msgid ""
38915 "No cleanup is performed: for example, if a file was being uploaded then "
38916 "after cancellation there may be a partially uploaded file.  It is the "
38917 "caller's responsibility to clean up if necessary."
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../src/guestfs.pod:2026
38922 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38923 msgstr ""
38924
38925 #. type: textblock
38926 #: ../src/guestfs.pod:2028
38927 msgid ""
38928 "In an interactive text-based program, you might call it from a C<SIGINT> "
38929 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38930 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38931 "receive the C<^C> signal)."
38932 msgstr ""
38933
38934 #. type: textblock
38935 #: ../src/guestfs.pod:2033
38936 msgid ""
38937 "In a graphical program, when the main thread is displaying a progress bar "
38938 "with a cancel button, wire up the cancel button to call this function."
38939 msgstr ""
38940
38941 #. type: =head1
38942 #: ../src/guestfs.pod:2037
38943 msgid "PRIVATE DATA AREA"
38944 msgstr ""
38945
38946 #. type: textblock
38947 #: ../src/guestfs.pod:2039
38948 msgid ""
38949 "You can attach named pieces of private data to the libguestfs handle, fetch "
38950 "them by name, and walk over them, for the lifetime of the handle.  This is "
38951 "called the private data area and is only available from the C API."
38952 msgstr ""
38953
38954 #. type: textblock
38955 #: ../src/guestfs.pod:2044
38956 msgid "To attach a named piece of data, use the following call:"
38957 msgstr ""
38958
38959 #. type: verbatim
38960 #: ../src/guestfs.pod:2046
38961 #, no-wrap
38962 msgid ""
38963 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38964 "\n"
38965 msgstr ""
38966 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38967 "\n"
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:2048
38971 msgid ""
38972 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38973 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38974 "overwritten."
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../src/guestfs.pod:2052
38979 msgid ""
38980 "You can use any C<key> you want, but your key should I<not> start with an "
38981 "underscore character.  Keys beginning with an underscore character are "
38982 "reserved for internal libguestfs purposes (eg. for implementing language "
38983 "bindings).  It is recommended that you prefix the key with some unique "
38984 "string to avoid collisions with other users."
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../src/guestfs.pod:2058
38989 msgid "To retrieve the pointer, use:"
38990 msgstr ""
38991
38992 #. type: verbatim
38993 #: ../src/guestfs.pod:2060
38994 #, no-wrap
38995 msgid ""
38996 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38997 "\n"
38998 msgstr ""
38999 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39000 "\n"
39001
39002 #. type: textblock
39003 #: ../src/guestfs.pod:2062
39004 msgid ""
39005 "This function returns C<NULL> if either no data is found associated with "
39006 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39007 "C<NULL>."
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:2066
39012 msgid ""
39013 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39014 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39015 "all.  In particular, libguestfs does I<not> try to free the data when the "
39016 "handle is closed.  If the data must be freed, then the caller must either "
39017 "free it before calling L</guestfs_close> or must set up a close callback to "
39018 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../src/guestfs.pod:2073
39023 msgid "To walk over all entries, use these two functions:"
39024 msgstr ""
39025
39026 #. type: verbatim
39027 #: ../src/guestfs.pod:2075
39028 #, no-wrap
39029 msgid ""
39030 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39031 "\n"
39032 msgstr ""
39033
39034 #. type: verbatim
39035 #: ../src/guestfs.pod:2077
39036 #, no-wrap
39037 msgid ""
39038 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39039 "\n"
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2079
39044 msgid ""
39045 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39046 "not have any particular meaning -- keys are not returned in any defined "
39047 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39048 "corresponding data pointer is returned from the function.  C<NULL> is "
39049 "returned if there are no keys stored in the handle."
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:2085
39054 msgid ""
39055 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39056 "value of this function is also C<NULL> is there are no further entries to "
39057 "return."
39058 msgstr ""
39059
39060 #. type: textblock
39061 #: ../src/guestfs.pod:2089
39062 msgid "Notes about walking over entries:"
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:2095
39067 msgid ""
39068 "You must not call C<guestfs_set_private> while walking over the entries."
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../src/guestfs.pod:2100
39073 msgid ""
39074 "The handle maintains an internal iterator which is reset when you call "
39075 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39076 "call C<guestfs_set_private>."
39077 msgstr ""
39078
39079 #. type: textblock
39080 #: ../src/guestfs.pod:2106
39081 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39082 msgstr ""
39083
39084 #. type: verbatim
39085 #: ../src/guestfs.pod:2108
39086 #, no-wrap
39087 msgid ""
39088 " guestfs_set_private (g, key, NULL);\n"
39089 "\n"
39090 msgstr ""
39091
39092 #. type: textblock
39093 #: ../src/guestfs.pod:2110
39094 msgid "then that C<key> is not returned when walking."
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:2114
39099 msgid ""
39100 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39101 "C<guestfs_next_private> or C<guestfs_set_private>."
39102 msgstr ""
39103
39104 #. type: textblock
39105 #: ../src/guestfs.pod:2120
39106 msgid ""
39107 "The following example code shows how to print all keys and data pointers "
39108 "that are associated with the handle C<g>:"
39109 msgstr ""
39110
39111 #. type: verbatim
39112 #: ../src/guestfs.pod:2123
39113 #, no-wrap
39114 msgid ""
39115 " const char *key;\n"
39116 " void *data = guestfs_first_private (g, &key);\n"
39117 " while (data != NULL)\n"
39118 "   {\n"
39119 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39120 "     data = guestfs_next_private (g, &key);\n"
39121 "   }\n"
39122 "\n"
39123 msgstr ""
39124
39125 #. type: textblock
39126 #: ../src/guestfs.pod:2131
39127 msgid ""
39128 "More commonly you are only interested in keys that begin with an application-"
39129 "specific prefix C<foo_>.  Modify the loop like so:"
39130 msgstr ""
39131
39132 #. type: verbatim
39133 #: ../src/guestfs.pod:2134
39134 #, no-wrap
39135 msgid ""
39136 " const char *key;\n"
39137 " void *data = guestfs_first_private (g, &key);\n"
39138 " while (data != NULL)\n"
39139 "   {\n"
39140 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39141 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39142 "     data = guestfs_next_private (g, &key);\n"
39143 "   }\n"
39144 "\n"
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:2143
39149 msgid ""
39150 "If you need to modify keys while walking, then you have to jump back to the "
39151 "beginning of the loop.  For example, to delete all keys prefixed with "
39152 "C<foo_>:"
39153 msgstr ""
39154
39155 #. type: verbatim
39156 #: ../src/guestfs.pod:2147
39157 #, no-wrap
39158 msgid ""
39159 "  const char *key;\n"
39160 "  void *data;\n"
39161 " again:\n"
39162 "  data = guestfs_first_private (g, &key);\n"
39163 "  while (data != NULL)\n"
39164 "    {\n"
39165 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39166 "        {\n"
39167 "          guestfs_set_private (g, key, NULL);\n"
39168 "          /* note that 'key' pointer is now invalid, and so is\n"
39169 "             the internal iterator */\n"
39170 "          goto again;\n"
39171 "        }\n"
39172 "      data = guestfs_next_private (g, &key);\n"
39173 "    }\n"
39174 "\n"
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:2163
39179 msgid ""
39180 "Note that the above loop is guaranteed to terminate because the keys are "
39181 "being deleted, but other manipulations of keys within the loop might not "
39182 "terminate unless you also maintain an indication of which keys have been "
39183 "visited."
39184 msgstr ""
39185
39186 #. type: =end
39187 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
39188 msgid "html"
39189 msgstr "html"
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:2170
39193 msgid ""
39194 "<!-- old anchor for the next section --> <a name="
39195 "\"state_machine_and_low_level_event_api\"/>"
39196 msgstr ""
39197 "<!-- old anchor for the next section --> <a name="
39198 "\"state_machine_and_low_level_event_api\"/>"
39199
39200 #. type: =head1
39201 #: ../src/guestfs.pod:2175
39202 msgid "ARCHITECTURE"
39203 msgstr "АРХІТЕКТУРА"
39204
39205 #. type: textblock
39206 #: ../src/guestfs.pod:2177
39207 msgid ""
39208 "Internally, libguestfs is implemented by running an appliance (a special "
39209 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39210 "process of the main program."
39211 msgstr ""
39212
39213 #. type: verbatim
39214 #: ../src/guestfs.pod:2181
39215 #, no-wrap
39216 msgid ""
39217 "  ___________________\n"
39218 " /                   \\\n"
39219 " | main program      |\n"
39220 " |                   |\n"
39221 " |                   |           child process / appliance\n"
39222 " |                   |           __________________________\n"
39223 " |                   |          / qemu                     \\\n"
39224 " +-------------------+   RPC    |      +-----------------+ |\n"
39225 " | libguestfs     <--------------------> guestfsd        | |\n"
39226 " |                   |          |      +-----------------+ |\n"
39227 " \\___________________/          |      | Linux kernel    | |\n"
39228 "                                |      +--^--------------+ |\n"
39229 "                                \\_________|________________/\n"
39230 "                                          |\n"
39231 "                                   _______v______\n"
39232 "                                  /              \\\n"
39233 "                                  | Device or    |\n"
39234 "                                  | disk image   |\n"
39235 "                                  \\______________/\n"
39236 "\n"
39237 msgstr ""
39238
39239 #. type: textblock
39240 #: ../src/guestfs.pod:2201
39241 msgid ""
39242 "The library, linked to the main program, creates the child process and hence "
39243 "the appliance in the L</guestfs_launch> function."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2204
39248 msgid ""
39249 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39250 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39251 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39252 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39253 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39254 "attached to the qemu process which translates device access by the "
39255 "appliance's Linux kernel into accesses to the image."
39256 msgstr ""
39257
39258 #. type: textblock
39259 #: ../src/guestfs.pod:2213
39260 msgid ""
39261 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39262 "Although the disk image you are attached to might also be used by some "
39263 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39264 "care if both libguestfs's qemu process and your virtual machine are trying "
39265 "to update the disk image at the same time, since these usually results in "
39266 "massive disk corruption)."
39267 msgstr ""
39268
39269 #. type: =head1
39270 #: ../src/guestfs.pod:2220
39271 msgid "STATE MACHINE"
39272 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:2222
39276 msgid "libguestfs uses a state machine to model the child process:"
39277 msgstr ""
39278
39279 #. type: verbatim
39280 #: ../src/guestfs.pod:2224
39281 #, no-wrap
39282 msgid ""
39283 "                         |\n"
39284 "                    guestfs_create\n"
39285 "                         |\n"
39286 "                         |\n"
39287 "                     ____V_____\n"
39288 "                    /          \\\n"
39289 "                    |  CONFIG  |\n"
39290 "                    \\__________/\n"
39291 "                     ^ ^   ^  \\\n"
39292 "                    /  |    \\  \\ guestfs_launch\n"
39293 "                   /   |    _\\__V______\n"
39294 "                  /    |   /           \\\n"
39295 "                 /     |   | LAUNCHING |\n"
39296 "                /      |   \\___________/\n"
39297 "               /       |       /\n"
39298 "              /        |  guestfs_launch\n"
39299 "             /         |     /\n"
39300 "    ______  /        __|____V\n"
39301 "   /      \\ ------> /        \\\n"
39302 "   | BUSY |         | READY  |\n"
39303 "   \\______/ <------ \\________/\n"
39304 "\n"
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../src/guestfs.pod:2246
39309 msgid ""
39310 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39311 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39312 "(3) alternating between READY and BUSY as commands are issued to, and "
39313 "carried out by, the child process."
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../src/guestfs.pod:2251
39318 msgid ""
39319 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39320 "asynchronously at any time (eg. due to some internal error), and that causes "
39321 "the state to transition back to CONFIG."
39322 msgstr ""
39323
39324 #. type: textblock
39325 #: ../src/guestfs.pod:2255
39326 msgid ""
39327 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39328 "issued when in the CONFIG state."
39329 msgstr ""
39330
39331 #. type: textblock
39332 #: ../src/guestfs.pod:2258
39333 msgid ""
39334 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39335 "L</guestfs_launch> blocks until the child process is READY to accept "
39336 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39337 "moves the state from CONFIG to LAUNCHING while it is running."
39338 msgstr ""
39339
39340 #. type: textblock
39341 #: ../src/guestfs.pod:2264
39342 msgid ""
39343 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39344 "state.  These API calls block waiting for the command to be carried out (ie. "
39345 "the state to transition to BUSY and then back to READY).  There are no non-"
39346 "blocking versions, and no way to issue more than one command per handle at "
39347 "the same time."
39348 msgstr ""
39349
39350 #. type: textblock
39351 #: ../src/guestfs.pod:2270
39352 msgid ""
39353 "Finally, the child process sends asynchronous messages back to the main "
39354 "program, such as kernel log messages.  You can register a callback to "
39355 "receive these messages."
39356 msgstr ""
39357
39358 #. type: =head1
39359 #: ../src/guestfs.pod:2274
39360 msgid "INTERNALS"
39361 msgstr ""
39362
39363 #. type: =head2
39364 #: ../src/guestfs.pod:2276
39365 msgid "APPLIANCE BOOT PROCESS"
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:2278
39370 msgid ""
39371 "This process has evolved and continues to evolve.  The description here "
39372 "corresponds only to the current version of libguestfs and is provided for "
39373 "information only."
39374 msgstr ""
39375
39376 #. type: textblock
39377 #: ../src/guestfs.pod:2282
39378 msgid ""
39379 "In order to follow the stages involved below, enable libguestfs debugging "
39380 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2287
39385 #, fuzzy
39386 #| msgid "C<appliance>"
39387 msgid "Create the appliance"
39388 msgstr "C<appliance>"
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:2289
39392 msgid ""
39393 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39394 "initrd and the appliance."
39395 msgstr ""
39396
39397 #. type: textblock
39398 #: ../src/guestfs.pod:2292
39399 msgid ""
39400 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39401 "directory if C<TMPDIR> is set)."
39402 msgstr ""
39403
39404 #. type: textblock
39405 #: ../src/guestfs.pod:2295
39406 msgid ""
39407 "For a complete description of how the appliance is created and cached, read "
39408 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39409 msgstr ""
39410
39411 #. type: =item
39412 #: ../src/guestfs.pod:2299
39413 msgid "Start qemu and boot the kernel"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2301
39418 msgid "qemu is invoked to boot the kernel."
39419 msgstr ""
39420
39421 #. type: =item
39422 #: ../src/guestfs.pod:2303
39423 msgid "Run the initrd"
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:2305
39428 msgid ""
39429 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39430 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39431 "order that the appliance itself can be mounted and started."
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:2309
39436 msgid ""
39437 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39438 "initrd>."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:2312
39443 msgid ""
39444 "When the initrd has started you will see messages showing that kernel "
39445 "modules are being loaded, similar to this:"
39446 msgstr ""
39447
39448 #. type: verbatim
39449 #: ../src/guestfs.pod:2315
39450 #, no-wrap
39451 msgid ""
39452 " febootstrap: ext2 mini initrd starting up\n"
39453 " febootstrap: mounting /sys\n"
39454 " febootstrap: internal insmod libcrc32c.ko\n"
39455 " febootstrap: internal insmod crc32c-intel.ko\n"
39456 "\n"
39457 msgstr ""
39458
39459 #. type: =item
39460 #: ../src/guestfs.pod:2320
39461 msgid "Find and mount the appliance device"
39462 msgstr ""
39463
39464 #. type: textblock
39465 #: ../src/guestfs.pod:2322
39466 msgid ""
39467 "The appliance is a sparse file containing an ext2 filesystem which contains "
39468 "a familiar (although reduced in size) Linux operating system.  It would "
39469 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39470 msgstr ""
39471
39472 #. type: textblock
39473 #: ../src/guestfs.pod:2326
39474 msgid ""
39475 "The regular disks being inspected by libguestfs are the first devices "
39476 "exposed by qemu (eg. as C</dev/vda>)."
39477 msgstr ""
39478
39479 #. type: textblock
39480 #: ../src/guestfs.pod:2329
39481 msgid ""
39482 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39483 "there was only one regular disk)."
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../src/guestfs.pod:2332
39488 msgid ""
39489 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39490 "and switch root into the appliance, and run C</init> from the appliance."
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../src/guestfs.pod:2336
39495 msgid "If this works successfully you will see messages such as:"
39496 msgstr ""
39497
39498 #. type: verbatim
39499 #: ../src/guestfs.pod:2338
39500 #, no-wrap
39501 msgid ""
39502 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39503 " febootstrap: creating /dev/root as block special 252:16\n"
39504 " febootstrap: mounting new root on /root\n"
39505 " febootstrap: chroot\n"
39506 " Starting /init script ...\n"
39507 "\n"
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:2344
39512 msgid ""
39513 "Note that C<Starting /init script ...> indicates that the appliance's init "
39514 "script is now running."
39515 msgstr ""
39516
39517 #. type: =item
39518 #: ../src/guestfs.pod:2347
39519 msgid "Initialize the appliance"
39520 msgstr ""
39521
39522 #. type: textblock
39523 #: ../src/guestfs.pod:2349
39524 msgid ""
39525 "The appliance itself now initializes itself.  This involves starting certain "
39526 "processes like C<udev>, possibly printing some debug information, and "
39527 "finally running the daemon (C<guestfsd>)."
39528 msgstr ""
39529
39530 #. type: =item
39531 #: ../src/guestfs.pod:2353
39532 #, fuzzy
39533 #| msgid "C<daemon>"
39534 msgid "The daemon"
39535 msgstr "C<daemon>"
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2355
39539 msgid ""
39540 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39541 "should see:"
39542 msgstr ""
39543
39544 #. type: verbatim
39545 #: ../src/guestfs.pod:2358
39546 #, fuzzy, no-wrap
39547 #| msgid ""
39548 #| " set-verbose true|false\n"
39549 #| "\n"
39550 msgid ""
39551 " verbose daemon enabled\n"
39552 "\n"
39553 msgstr ""
39554 " set-verbose true|false\n"
39555 "\n"
39556
39557 #. type: textblock
39558 #: ../src/guestfs.pod:2360
39559 msgid ""
39560 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39561 "connected on the other end to the library."
39562 msgstr ""
39563
39564 #. type: textblock
39565 #: ../src/guestfs.pod:2363
39566 msgid ""
39567 "The daemon connects to this port (and hence to the library) and sends a four "
39568 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39569 "protocol (see below)."
39570 msgstr ""
39571
39572 #. type: =head2
39573 #: ../src/guestfs.pod:2369
39574 msgid "COMMUNICATION PROTOCOL"
39575 msgstr ""
39576
39577 #. type: textblock
39578 #: ../src/guestfs.pod:2371
39579 msgid ""
39580 "Don't rely on using this protocol directly.  This section documents how it "
39581 "currently works, but it may change at any time."
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:2374
39586 msgid ""
39587 "The protocol used to talk between the library and the daemon running inside "
39588 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39589 "1014, RFC 1832, RFC 4506)."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:2378
39594 msgid ""
39595 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39596 "this file is automatically generated)."
39597 msgstr ""
39598
39599 #. type: textblock
39600 #: ../src/guestfs.pod:2381
39601 msgid ""
39602 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39603 "and C<FileOut> parameters, which are handled with very simple request/reply "
39604 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39605 "parameters, which use the same request and reply messages, but they may also "
39606 "be followed by files sent using a chunked encoding."
39607 msgstr ""
39608
39609 #. type: =head3
39610 #: ../src/guestfs.pod:2388
39611 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39612 msgstr ""
39613
39614 #. type: textblock
39615 #: ../src/guestfs.pod:2390
39616 msgid "For ordinary functions, the request message is:"
39617 msgstr ""
39618
39619 #. type: verbatim
39620 #: ../src/guestfs.pod:2392
39621 #, no-wrap
39622 msgid ""
39623 " total length (header + arguments,\n"
39624 "      but not including the length word itself)\n"
39625 " struct guestfs_message_header (encoded as XDR)\n"
39626 " struct guestfs_<foo>_args (encoded as XDR)\n"
39627 "\n"
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../src/guestfs.pod:2397
39632 msgid ""
39633 "The total length field allows the daemon to allocate a fixed size buffer "
39634 "into which it slurps the rest of the message.  As a result, the total length "
39635 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39636 "effective size of any request is limited to somewhere under this size."
39637 msgstr ""
39638
39639 #. type: textblock
39640 #: ../src/guestfs.pod:2403
39641 msgid ""
39642 "Note also that many functions don't take any arguments, in which case the "
39643 "C<guestfs_I<foo>_args> is completely omitted."
39644 msgstr ""
39645
39646 #. type: textblock
39647 #: ../src/guestfs.pod:2406
39648 msgid ""
39649 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39650 "receiver knows what type of args structure to expect, or none at all."
39651 msgstr ""
39652
39653 #. type: textblock
39654 #: ../src/guestfs.pod:2410
39655 msgid ""
39656 "For functions that take optional arguments, the optional arguments are "
39657 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39658 "arguments.  A bitmask in the header indicates which optional arguments are "
39659 "meaningful.  The bitmask is also checked to see if it contains bits set "
39660 "which the daemon does not know about (eg. if more optional arguments were "
39661 "added in a later version of the library), and this causes the call to be "
39662 "rejected."
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../src/guestfs.pod:2418
39667 msgid "The reply message for ordinary functions is:"
39668 msgstr ""
39669
39670 #. type: verbatim
39671 #: ../src/guestfs.pod:2420
39672 #, no-wrap
39673 msgid ""
39674 " total length (header + ret,\n"
39675 "      but not including the length word itself)\n"
39676 " struct guestfs_message_header (encoded as XDR)\n"
39677 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39678 "\n"
39679 msgstr ""
39680
39681 #. type: textblock
39682 #: ../src/guestfs.pod:2425
39683 msgid ""
39684 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39685 "functions that return no formal return values."
39686 msgstr ""
39687
39688 #. type: textblock
39689 #: ../src/guestfs.pod:2428
39690 msgid ""
39691 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39692 msgstr ""
39693
39694 #. type: textblock
39695 #: ../src/guestfs.pod:2431
39696 msgid ""
39697 "In the case of an error, a flag is set in the header, and the reply message "
39698 "is slightly changed:"
39699 msgstr ""
39700
39701 #. type: verbatim
39702 #: ../src/guestfs.pod:2434
39703 #, no-wrap
39704 msgid ""
39705 " total length (header + error,\n"
39706 "      but not including the length word itself)\n"
39707 " struct guestfs_message_header (encoded as XDR)\n"
39708 " struct guestfs_message_error (encoded as XDR)\n"
39709 "\n"
39710 msgstr ""
39711
39712 #. type: textblock
39713 #: ../src/guestfs.pod:2439
39714 msgid ""
39715 "The C<guestfs_message_error> structure contains the error message as a "
39716 "string."
39717 msgstr ""
39718
39719 #. type: =head3
39720 #: ../src/guestfs.pod:2442
39721 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39722 msgstr ""
39723
39724 #. type: textblock
39725 #: ../src/guestfs.pod:2444
39726 msgid ""
39727 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39728 "The normal request message is sent (see above).  However this is followed by "
39729 "a sequence of file chunks."
39730 msgstr ""
39731
39732 #. type: verbatim
39733 #: ../src/guestfs.pod:2448
39734 #, no-wrap
39735 msgid ""
39736 " total length (header + arguments,\n"
39737 "      but not including the length word itself,\n"
39738 "      and not including the chunks)\n"
39739 " struct guestfs_message_header (encoded as XDR)\n"
39740 " struct guestfs_<foo>_args (encoded as XDR)\n"
39741 " sequence of chunks for FileIn param #0\n"
39742 " sequence of chunks for FileIn param #1 etc.\n"
39743 "\n"
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2456
39748 msgid "The \"sequence of chunks\" is:"
39749 msgstr ""
39750
39751 #. type: verbatim
39752 #: ../src/guestfs.pod:2458
39753 #, no-wrap
39754 msgid ""
39755 " length of chunk (not including length word itself)\n"
39756 " struct guestfs_chunk (encoded as XDR)\n"
39757 " length of chunk\n"
39758 " struct guestfs_chunk (encoded as XDR)\n"
39759 "   ...\n"
39760 " length of chunk\n"
39761 " struct guestfs_chunk (with data.data_len == 0)\n"
39762 "\n"
39763 msgstr ""
39764
39765 #. type: textblock
39766 #: ../src/guestfs.pod:2466
39767 msgid ""
39768 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39769 "is set in the final chunk to indicate either successful completion or early "
39770 "cancellation."
39771 msgstr ""
39772
39773 #. type: textblock
39774 #: ../src/guestfs.pod:2470
39775 msgid ""
39776 "At time of writing there are no functions that have more than one FileIn "
39777 "parameter.  However this is (theoretically) supported, by sending the "
39778 "sequence of chunks for each FileIn parameter one after another (from left to "
39779 "right)."
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../src/guestfs.pod:2475
39784 msgid ""
39785 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39786 "transfer.  The library does this by sending a chunk with a special flag set "
39787 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39788 "RPC, does I<not> send any reply, and goes back to reading the next request."
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:2481
39793 msgid ""
39794 "The daemon may also cancel.  It does this by writing a special word "
39795 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39796 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39797 "cancel chunk).  The special word is chosen so that even if cancellation "
39798 "happens right at the end of the transfer (after the library has finished "
39799 "writing and has started listening for the reply), the \"spurious\" cancel "
39800 "flag will not be confused with the reply message."
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:2490
39805 msgid ""
39806 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39807 "limit), and also files where the size is not known in advance (eg. from "
39808 "pipes or sockets).  However the chunks are rather small "
39809 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39810 "to keep much in memory."
39811 msgstr ""
39812
39813 #. type: =head3
39814 #: ../src/guestfs.pod:2496
39815 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39816 msgstr ""
39817
39818 #. type: textblock
39819 #: ../src/guestfs.pod:2498
39820 msgid ""
39821 "The protocol for FileOut parameters is exactly the same as for FileIn "
39822 "parameters, but with the roles of daemon and library reversed."
39823 msgstr ""
39824
39825 #. type: verbatim
39826 #: ../src/guestfs.pod:2501
39827 #, no-wrap
39828 msgid ""
39829 " total length (header + ret,\n"
39830 "      but not including the length word itself,\n"
39831 "      and not including the chunks)\n"
39832 " struct guestfs_message_header (encoded as XDR)\n"
39833 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39834 " sequence of chunks for FileOut param #0\n"
39835 " sequence of chunks for FileOut param #1 etc.\n"
39836 "\n"
39837 msgstr ""
39838
39839 #. type: =head3
39840 #: ../src/guestfs.pod:2509
39841 msgid "INITIAL MESSAGE"
39842 msgstr ""
39843
39844 #. type: textblock
39845 #: ../src/guestfs.pod:2511
39846 msgid ""
39847 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39848 "which indicates that the guest and daemon is alive.  This is what L</"
39849 "guestfs_launch> waits for."
39850 msgstr ""
39851
39852 #. type: =head3
39853 #: ../src/guestfs.pod:2515
39854 msgid "PROGRESS NOTIFICATION MESSAGES"
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../src/guestfs.pod:2517
39859 msgid ""
39860 "The daemon may send progress notification messages at any time.  These are "
39861 "distinguished by the normal length word being replaced by "
39862 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39863 msgstr ""
39864
39865 #. type: textblock
39866 #: ../src/guestfs.pod:2521
39867 msgid ""
39868 "The library turns them into progress callbacks (see L</"
39869 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39870 "if not."
39871 msgstr ""
39872
39873 #. type: textblock
39874 #: ../src/guestfs.pod:2525
39875 msgid ""
39876 "The daemon self-limits the frequency of progress messages it sends (see "
39877 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39878 "messages."
39879 msgstr ""
39880
39881 #. type: =head1
39882 #: ../src/guestfs.pod:2529
39883 msgid "LIBGUESTFS VERSION NUMBERS"
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../src/guestfs.pod:2531
39888 msgid ""
39889 "Since April 2010, libguestfs has started to make separate development and "
39890 "stable releases, along with corresponding branches in our git repository.  "
39891 "These separate releases can be identified by version number:"
39892 msgstr ""
39893
39894 #. type: verbatim
39895 #: ../src/guestfs.pod:2536
39896 #, no-wrap
39897 msgid ""
39898 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39899 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39900 "       |\n"
39901 "       v\n"
39902 " 1  .  3  .  5\n"
39903 " ^           ^\n"
39904 " |           |\n"
39905 " |           `-------- sub-version\n"
39906 " |\n"
39907 " `------ always '1' because we don't change the ABI\n"
39908 "\n"
39909 msgstr ""
39910
39911 #. type: textblock
39912 #: ../src/guestfs.pod:2547
39913 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39914 msgstr ""
39915
39916 #. type: textblock
39917 #: ../src/guestfs.pod:2549
39918 msgid ""
39919 "As time passes we cherry pick fixes from the development branch and backport "
39920 "those into the stable branch, the effect being that the stable branch should "
39921 "get more stable and less buggy over time.  So the stable releases are ideal "
39922 "for people who don't need new features but would just like the software to "
39923 "work."
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../src/guestfs.pod:2555
39928 msgid "Our criteria for backporting changes are:"
39929 msgstr ""
39930
39931 #. type: textblock
39932 #: ../src/guestfs.pod:2561
39933 msgid ""
39934 "Documentation changes which don't affect any code are backported unless the "
39935 "documentation refers to a future feature which is not in stable."
39936 msgstr ""
39937
39938 #. type: textblock
39939 #: ../src/guestfs.pod:2567
39940 msgid ""
39941 "Bug fixes which are not controversial, fix obvious problems, and have been "
39942 "well tested are backported."
39943 msgstr ""
39944
39945 #. type: textblock
39946 #: ../src/guestfs.pod:2572
39947 msgid ""
39948 "Simple rearrangements of code which shouldn't affect how it works get "
39949 "backported.  This is so that the code in the two branches doesn't get too "
39950 "far out of step, allowing us to backport future fixes more easily."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:2578
39955 msgid ""
39956 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39957 "exceptional case: the new feature is required in order to implement an "
39958 "important bug fix."
39959 msgstr ""
39960
39961 #. type: textblock
39962 #: ../src/guestfs.pod:2584
39963 msgid ""
39964 "A new stable branch starts when we think the new features in development are "
39965 "substantial and compelling enough over the current stable branch to warrant "
39966 "it.  When that happens we create new stable and development versions 1.N.0 "
39967 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39968 "stable at this point, but by backporting fixes from development, that branch "
39969 "will stabilize over time."
39970 msgstr ""
39971
39972 #. type: =head1
39973 #: ../src/guestfs.pod:2592
39974 msgid "EXTENDING LIBGUESTFS"
39975 msgstr ""
39976
39977 #. type: =head2
39978 #: ../src/guestfs.pod:2594
39979 msgid "ADDING A NEW API ACTION"
39980 msgstr ""
39981
39982 #. type: textblock
39983 #: ../src/guestfs.pod:2596
39984 msgid ""
39985 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39986 "documentation) are generated, and this makes it easy to extend the "
39987 "libguestfs API."
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../src/guestfs.pod:2600
39992 msgid "To add a new API action there are two changes:"
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2606
39997 msgid ""
39998 "You need to add a description of the call (name, parameters, return type, "
39999 "tests, documentation) to C<generator/generator_actions.ml>."
40000 msgstr ""
40001
40002 #. type: textblock
40003 #: ../src/guestfs.pod:2609
40004 msgid ""
40005 "There are two sorts of API action, depending on whether the call goes "
40006 "through to the daemon in the appliance, or is serviced entirely by the "
40007 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40008 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40009 "an example of the latter, since a trace flag is maintained in the handle and "
40010 "all tracing is done on the library side."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../src/guestfs.pod:2617
40015 msgid ""
40016 "Most new actions are of the first type, and get added to the "
40017 "C<daemon_functions> list.  Each function has a unique procedure number used "
40018 "in the RPC protocol which is assigned to that action when we publish "
40019 "libguestfs and cannot be reused.  Take the latest procedure number and "
40020 "increment it."
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../src/guestfs.pod:2623
40025 msgid ""
40026 "For library-only actions of the second type, add to the "
40027 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40028 "library and do not travel over the RPC mechanism to the daemon, these "
40029 "functions do not need a procedure number, and so the procedure number is set "
40030 "to C<-1>."
40031 msgstr ""
40032
40033 #. type: textblock
40034 #: ../src/guestfs.pod:2631
40035 msgid "Implement the action (in C):"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../src/guestfs.pod:2633
40040 msgid ""
40041 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40042 "C<daemon/> directory."
40043 msgstr ""
40044
40045 #. type: textblock
40046 #: ../src/guestfs.pod:2636
40047 msgid ""
40048 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40049 "(note: double underscore) in the C<src/> directory."
40050 msgstr ""
40051
40052 #. type: textblock
40053 #: ../src/guestfs.pod:2639
40054 msgid "In either case, use another function as an example of what to do."
40055 msgstr ""
40056
40057 #. type: textblock
40058 #: ../src/guestfs.pod:2643
40059 msgid "After making these changes, use C<make> to compile."
40060 msgstr ""
40061
40062 #. type: textblock
40063 #: ../src/guestfs.pod:2645
40064 msgid ""
40065 "Note that you don't need to implement the RPC, language bindings, manual "
40066 "pages or anything else.  It's all automatically generated from the OCaml "
40067 "description."
40068 msgstr ""
40069
40070 #. type: =head2
40071 #: ../src/guestfs.pod:2649
40072 msgid "ADDING TESTS FOR AN API ACTION"
40073 msgstr ""
40074
40075 #. type: textblock
40076 #: ../src/guestfs.pod:2651
40077 msgid ""
40078 "You can supply zero or as many tests as you want per API call.  The tests "
40079 "can either be added as part of the API description (C<generator/"
40080 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40081 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40082 "slower, so if possible use the first method."
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../src/guestfs.pod:2657
40087 msgid ""
40088 "The following describes the test environment used when you add an API test "
40089 "in C<generator_actions.ml>."
40090 msgstr ""
40091
40092 #. type: textblock
40093 #: ../src/guestfs.pod:2660
40094 msgid "The test environment has 4 block devices:"
40095 msgstr ""
40096
40097 #. type: =item
40098 #: ../src/guestfs.pod:2664
40099 msgid "C</dev/sda> 500MB"
40100 msgstr "C</dev/sda> 500 МБ"
40101
40102 #. type: textblock
40103 #: ../src/guestfs.pod:2666
40104 msgid "General block device for testing."
40105 msgstr ""
40106
40107 #. type: =item
40108 #: ../src/guestfs.pod:2668
40109 msgid "C</dev/sdb> 50MB"
40110 msgstr "C</dev/sdb> 50 МБ"
40111
40112 #. type: textblock
40113 #: ../src/guestfs.pod:2670
40114 msgid ""
40115 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40116 "operations."
40117 msgstr ""
40118
40119 #. type: =item
40120 #: ../src/guestfs.pod:2673
40121 msgid "C</dev/sdc> 10MB"
40122 msgstr "C</dev/sdc> 10 МБ"
40123
40124 #. type: textblock
40125 #: ../src/guestfs.pod:2675
40126 msgid "Used in a few tests where two block devices are needed."
40127 msgstr ""
40128
40129 #. type: =item
40130 #: ../src/guestfs.pod:2677
40131 msgid "C</dev/sdd>"
40132 msgstr "C</dev/sdd>"
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:2679
40136 msgid "ISO with fixed content (see C<images/test.iso>)."
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:2683
40141 msgid ""
40142 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40143 "appliance and block devices are reused between tests.  So don't try testing "
40144 "L</guestfs_kill_subprocess> :-x"
40145 msgstr ""
40146
40147 #. type: textblock
40148 #: ../src/guestfs.pod:2687
40149 msgid ""
40150 "Each test starts with an initial scenario, selected using one of the "
40151 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40152 "initialize the disks mentioned above in a particular way as documented in "
40153 "C<generator_types.ml>.  You should not assume anything about the previous "
40154 "contents of other disks that are not initialized."
40155 msgstr ""
40156
40157 #. type: textblock
40158 #: ../src/guestfs.pod:2693
40159 msgid ""
40160 "You can add a prerequisite clause to any individual test.  This is a run-"
40161 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40162 "testing a command which might not work on all variations of libguestfs "
40163 "builds.  A test that has prerequisite of C<Always> means to run "
40164 "unconditionally."
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2699
40169 msgid ""
40170 "In addition, packagers can skip individual tests by setting environment "
40171 "variables before running C<make check>."
40172 msgstr ""
40173
40174 #. type: verbatim
40175 #: ../src/guestfs.pod:2702
40176 #, no-wrap
40177 msgid ""
40178 " SKIP_TEST_<CMD>_<NUM>=1\n"
40179 "\n"
40180 msgstr ""
40181
40182 #. type: textblock
40183 #: ../src/guestfs.pod:2704
40184 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../src/guestfs.pod:2706
40189 msgid "or:"
40190 msgstr "або:"
40191
40192 #. type: verbatim
40193 #: ../src/guestfs.pod:2708
40194 #, no-wrap
40195 msgid ""
40196 " SKIP_TEST_<CMD>=1\n"
40197 "\n"
40198 msgstr ""
40199
40200 #. type: textblock
40201 #: ../src/guestfs.pod:2710
40202 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40203 msgstr ""
40204
40205 #. type: textblock
40206 #: ../src/guestfs.pod:2712
40207 msgid "Packagers can run only certain tests by setting for example:"
40208 msgstr ""
40209
40210 #. type: verbatim
40211 #: ../src/guestfs.pod:2714
40212 #, no-wrap
40213 msgid ""
40214 " TEST_ONLY=\"vfs_type zerofree\"\n"
40215 "\n"
40216 msgstr ""
40217
40218 #. type: textblock
40219 #: ../src/guestfs.pod:2716
40220 msgid ""
40221 "See C<capitests/tests.c> for more details of how these environment variables "
40222 "work."
40223 msgstr ""
40224
40225 #. type: =head2
40226 #: ../src/guestfs.pod:2719
40227 msgid "DEBUGGING NEW API ACTIONS"
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2721
40232 msgid "Test new actions work before submitting them."
40233 msgstr ""
40234
40235 #. type: textblock
40236 #: ../src/guestfs.pod:2723
40237 msgid "You can use guestfish to try out new commands."
40238 msgstr ""
40239
40240 #. type: textblock
40241 #: ../src/guestfs.pod:2725
40242 msgid ""
40243 "Debugging the daemon is a problem because it runs inside a minimal "
40244 "environment.  However you can fprintf messages in the daemon to stderr, and "
40245 "they will show up if you use C<guestfish -v>."
40246 msgstr ""
40247
40248 #. type: =head2
40249 #: ../src/guestfs.pod:2729
40250 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40251 msgstr ""
40252
40253 #. type: textblock
40254 #: ../src/guestfs.pod:2731
40255 msgid ""
40256 "Our C source code generally adheres to some basic code-formatting "
40257 "conventions.  The existing code base is not totally consistent on this "
40258 "front, but we do prefer that contributed code be formatted similarly.  In "
40259 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40260 "indentation level, and other than that, follow the K&R style."
40261 msgstr ""
40262
40263 #. type: textblock
40264 #: ../src/guestfs.pod:2737
40265 msgid ""
40266 "If you use Emacs, add the following to one of one of your start-up files (e."
40267 "g., ~/.emacs), to help ensure that you get indentation right:"
40268 msgstr ""
40269
40270 #. type: verbatim
40271 #: ../src/guestfs.pod:2740
40272 #, no-wrap
40273 msgid ""
40274 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40275 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40276 " (add-hook 'find-file-hook\n"
40277 "     '(lambda () (if (and buffer-file-name\n"
40278 "                          (string-match \"/libguestfs\\\\>\"\n"
40279 "                              (buffer-file-name))\n"
40280 "                          (not (string-equal mode-name \"Change Log\"))\n"
40281 "                          (not (string-equal mode-name \"Makefile\")))\n"
40282 "                     (setq indent-tabs-mode nil))))\n"
40283 " \n"
40284 msgstr ""
40285
40286 #. type: verbatim
40287 #: ../src/guestfs.pod:2750
40288 #, no-wrap
40289 msgid ""
40290 " ;;; When editing C sources in libguestfs, use this style.\n"
40291 " (defun libguestfs-c-mode ()\n"
40292 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40293 "   (interactive)\n"
40294 "   (c-set-style \"K&R\")\n"
40295 "   (setq c-indent-level 2)\n"
40296 "   (setq c-basic-offset 2))\n"
40297 " (add-hook 'c-mode-hook\n"
40298 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40299 "                               (buffer-file-name))\n"
40300 "                           (libguestfs-c-mode))))\n"
40301 "\n"
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:2762
40306 msgid "Enable warnings when compiling (and fix any problems this finds):"
40307 msgstr ""
40308
40309 #. type: verbatim
40310 #: ../src/guestfs.pod:2765
40311 #, no-wrap
40312 msgid ""
40313 " ./configure --enable-gcc-warnings\n"
40314 "\n"
40315 msgstr ""
40316 " ./configure --enable-gcc-warnings\n"
40317 "\n"
40318
40319 #. type: textblock
40320 #: ../src/guestfs.pod:2767
40321 msgid "Useful targets are:"
40322 msgstr ""
40323
40324 #. type: verbatim
40325 #: ../src/guestfs.pod:2769
40326 #, no-wrap
40327 msgid ""
40328 " make syntax-check  # checks the syntax of the C code\n"
40329 " make check         # runs the test suite\n"
40330 "\n"
40331 msgstr ""
40332
40333 #. type: =head2
40334 #: ../src/guestfs.pod:2772
40335 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40336 msgstr ""
40337
40338 #. type: textblock
40339 #: ../src/guestfs.pod:2774
40340 msgid ""
40341 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40342 "which are used to do shell quoting."
40343 msgstr ""
40344
40345 #. type: =item
40346 #: ../src/guestfs.pod:2779
40347 msgid "%Q"
40348 msgstr "%Q"
40349
40350 #. type: textblock
40351 #: ../src/guestfs.pod:2781
40352 msgid ""
40353 "Simple shell quoted string.  Any spaces or other shell characters are "
40354 "escaped for you."
40355 msgstr ""
40356
40357 #. type: =item
40358 #: ../src/guestfs.pod:2784
40359 msgid "%R"
40360 msgstr "%R"
40361
40362 #. type: textblock
40363 #: ../src/guestfs.pod:2786
40364 msgid ""
40365 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40366 "the sysroot."
40367 msgstr ""
40368
40369 #. type: verbatim
40370 #: ../src/guestfs.pod:2793
40371 #, no-wrap
40372 msgid ""
40373 " asprintf (&cmd, \"cat %R\", path);\n"
40374 "\n"
40375 msgstr ""
40376
40377 #. type: textblock
40378 #: ../src/guestfs.pod:2795
40379 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../src/guestfs.pod:2797
40384 msgid ""
40385 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40386 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40387 "they are not passed via the shell (instead, straight to exec).  You probably "
40388 "want to use the C<sysroot_path()> function however."
40389 msgstr ""
40390
40391 #. type: =head2
40392 #: ../src/guestfs.pod:2803
40393 msgid "SUBMITTING YOUR NEW API ACTIONS"
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../src/guestfs.pod:2805
40398 msgid ""
40399 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40400 "libguestfs> and CC to L<rjones@redhat.com>."
40401 msgstr ""
40402
40403 #. type: =head2
40404 #: ../src/guestfs.pod:2809
40405 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40406 msgstr ""
40407
40408 #. type: textblock
40409 #: ../src/guestfs.pod:2811
40410 msgid "We support i18n (gettext anyhow) in the library."
40411 msgstr ""
40412
40413 #. type: textblock
40414 #: ../src/guestfs.pod:2813
40415 msgid ""
40416 "However many messages come from the daemon, and we don't translate those at "
40417 "the moment.  One reason is that the appliance generally has all locale files "
40418 "removed from it, because they take up a lot of space.  So we'd have to readd "
40419 "some of those, as well as copying our PO files into the appliance."
40420 msgstr ""
40421
40422 #. type: textblock
40423 #: ../src/guestfs.pod:2819
40424 msgid ""
40425 "Debugging messages are never translated, since they are intended for the "
40426 "programmers."
40427 msgstr ""
40428
40429 #. type: =head2
40430 #: ../src/guestfs.pod:2822
40431 msgid "SOURCE CODE SUBDIRECTORIES"
40432 msgstr ""
40433
40434 #. type: =item
40435 #: ../src/guestfs.pod:2826
40436 msgid "C<align>"
40437 msgstr ""
40438
40439 #. type: textblock
40440 #: ../src/guestfs.pod:2828
40441 msgid "L<virt-alignment-scan(1)> command and documentation."
40442 msgstr ""
40443
40444 #. type: textblock
40445 #: ../src/guestfs.pod:2832
40446 msgid "The libguestfs appliance, build scripts and so on."
40447 msgstr ""
40448
40449 #. type: =item
40450 #: ../src/guestfs.pod:2834
40451 msgid "C<capitests>"
40452 msgstr "C<capitests>"
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2836
40456 msgid "Automated tests of the C API."
40457 msgstr ""
40458
40459 #. type: =item
40460 #: ../src/guestfs.pod:2838
40461 msgid "C<cat>"
40462 msgstr "C<cat>"
40463
40464 #. type: textblock
40465 #: ../src/guestfs.pod:2840
40466 msgid ""
40467 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40468 "documentation."
40469 msgstr ""
40470
40471 #. type: =item
40472 #: ../src/guestfs.pod:2843
40473 msgid "C<caution>"
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../src/guestfs.pod:2845
40478 msgid ""
40479 "Safety and liveness tests of components that libguestfs depends upon (not of "
40480 "libguestfs itself).  Mainly this is for qemu and the kernel."
40481 msgstr ""
40482
40483 #. type: =item
40484 #: ../src/guestfs.pod:2848
40485 msgid "C<clone>"
40486 msgstr ""
40487
40488 #. type: textblock
40489 #: ../src/guestfs.pod:2850
40490 msgid ""
40491 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40492 "command and documentation."
40493 msgstr ""
40494
40495 #. type: =item
40496 #: ../src/guestfs.pod:2853
40497 msgid "C<contrib>"
40498 msgstr "C<contrib>"
40499
40500 #. type: textblock
40501 #: ../src/guestfs.pod:2855
40502 msgid "Outside contributions, experimental parts."
40503 msgstr ""
40504
40505 #. type: =item
40506 #: ../src/guestfs.pod:2857
40507 msgid "C<daemon>"
40508 msgstr "C<daemon>"
40509
40510 #. type: textblock
40511 #: ../src/guestfs.pod:2859
40512 msgid ""
40513 "The daemon that runs inside the libguestfs appliance and carries out actions."
40514 msgstr ""
40515
40516 #. type: =item
40517 #: ../src/guestfs.pod:2862
40518 msgid "C<df>"
40519 msgstr "C<df>"
40520
40521 #. type: textblock
40522 #: ../src/guestfs.pod:2864
40523 msgid "L<virt-df(1)> command and documentation."
40524 msgstr ""
40525
40526 #. type: =item
40527 #: ../src/guestfs.pod:2866
40528 msgid "C<edit>"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../src/guestfs.pod:2868
40533 msgid "L<virt-edit(1)> command and documentation."
40534 msgstr ""
40535
40536 #. type: =item
40537 #: ../src/guestfs.pod:2870
40538 msgid "C<examples>"
40539 msgstr "C<examples>"
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:2872
40543 msgid "C API example code."
40544 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40545
40546 #. type: =item
40547 #: ../src/guestfs.pod:2874
40548 msgid "C<fish>"
40549 msgstr "C<fish>"
40550
40551 #. type: textblock
40552 #: ../src/guestfs.pod:2876
40553 msgid ""
40554 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40555 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40556 "L<virt-tar-out(1)>."
40557 msgstr ""
40558
40559 #. type: =item
40560 #: ../src/guestfs.pod:2880
40561 msgid "C<fuse>"
40562 msgstr "C<fuse>"
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:2882
40566 msgid ""
40567 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40568 msgstr ""
40569
40570 #. type: =item
40571 #: ../src/guestfs.pod:2884
40572 msgid "C<generator>"
40573 msgstr "C<generator>"
40574
40575 #. type: textblock
40576 #: ../src/guestfs.pod:2886
40577 msgid ""
40578 "The crucially important generator, used to automatically generate large "
40579 "amounts of boilerplate C code for things like RPC and bindings."
40580 msgstr ""
40581
40582 #. type: =item
40583 #: ../src/guestfs.pod:2889
40584 msgid "C<images>"
40585 msgstr "C<images>"
40586
40587 #. type: textblock
40588 #: ../src/guestfs.pod:2891
40589 msgid "Files used by the test suite."
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../src/guestfs.pod:2893
40594 msgid "Some \"phony\" guest images which we test against."
40595 msgstr ""
40596
40597 #. type: =item
40598 #: ../src/guestfs.pod:2895
40599 msgid "C<inspector>"
40600 msgstr "C<inspector>"
40601
40602 #. type: textblock
40603 #: ../src/guestfs.pod:2897
40604 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40605 msgstr ""
40606
40607 #. type: =item
40608 #: ../src/guestfs.pod:2899
40609 msgid "C<logo>"
40610 msgstr "C<logo>"
40611
40612 #. type: textblock
40613 #: ../src/guestfs.pod:2901
40614 msgid "Logo used on the website.  The fish is called Arthur by the way."
40615 msgstr ""
40616
40617 #. type: =item
40618 #: ../src/guestfs.pod:2903
40619 msgid "C<m4>"
40620 msgstr "C<m4>"
40621
40622 #. type: textblock
40623 #: ../src/guestfs.pod:2905
40624 msgid "M4 macros used by autoconf."
40625 msgstr ""
40626
40627 #. type: =item
40628 #: ../src/guestfs.pod:2907
40629 msgid "C<po>"
40630 msgstr "C<po>"
40631
40632 #. type: textblock
40633 #: ../src/guestfs.pod:2909
40634 msgid "Translations of simple gettext strings."
40635 msgstr "Переклади простих рядків gettext."
40636
40637 #. type: =item
40638 #: ../src/guestfs.pod:2911
40639 msgid "C<po-docs>"
40640 msgstr "C<po-docs>"
40641
40642 #. type: textblock
40643 #: ../src/guestfs.pod:2913
40644 msgid ""
40645 "The build infrastructure and PO files for translations of manpages and POD "
40646 "files.  Eventually this will be combined with the C<po> directory, but that "
40647 "is rather complicated."
40648 msgstr ""
40649
40650 #. type: =item
40651 #: ../src/guestfs.pod:2917
40652 msgid "C<regressions>"
40653 msgstr "C<regressions>"
40654
40655 #. type: textblock
40656 #: ../src/guestfs.pod:2919
40657 msgid "Regression tests."
40658 msgstr "Тести на регресії."
40659
40660 #. type: =item
40661 #: ../src/guestfs.pod:2921
40662 msgid "C<rescue>"
40663 msgstr "C<rescue>"
40664
40665 #. type: textblock
40666 #: ../src/guestfs.pod:2923
40667 msgid "L<virt-rescue(1)> command and documentation."
40668 msgstr ""
40669
40670 #. type: =item
40671 #: ../src/guestfs.pod:2925
40672 #, fuzzy
40673 #| msgid "C<rescue>"
40674 msgid "C<resize>"
40675 msgstr "C<rescue>"
40676
40677 #. type: textblock
40678 #: ../src/guestfs.pod:2927
40679 msgid "L<virt-resize(1)> command and documentation."
40680 msgstr ""
40681
40682 #. type: =item
40683 #: ../src/guestfs.pod:2929
40684 msgid "C<sparsify>"
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:2931
40689 msgid "L<virt-sparsify(1)> command and documentation."
40690 msgstr ""
40691
40692 #. type: =item
40693 #: ../src/guestfs.pod:2933
40694 msgid "C<src>"
40695 msgstr "C<src>"
40696
40697 #. type: textblock
40698 #: ../src/guestfs.pod:2935
40699 msgid "Source code to the C library."
40700 msgstr ""
40701
40702 #. type: =item
40703 #: ../src/guestfs.pod:2937
40704 msgid "C<tools>"
40705 msgstr "C<tools>"
40706
40707 #. type: textblock
40708 #: ../src/guestfs.pod:2939
40709 msgid ""
40710 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40711 msgstr ""
40712
40713 #. type: =item
40714 #: ../src/guestfs.pod:2941
40715 msgid "C<test-tool>"
40716 msgstr "C<test-tool>"
40717
40718 #. type: textblock
40719 #: ../src/guestfs.pod:2943
40720 msgid ""
40721 "Test tool for end users to test if their qemu/kernel combination will work "
40722 "with libguestfs."
40723 msgstr ""
40724
40725 #. type: =item
40726 #: ../src/guestfs.pod:2946
40727 msgid "C<csharp>"
40728 msgstr "C<csharp>"
40729
40730 #. type: =item
40731 #: ../src/guestfs.pod:2948
40732 msgid "C<erlang>"
40733 msgstr ""
40734
40735 #. type: =item
40736 #: ../src/guestfs.pod:2950
40737 msgid "C<haskell>"
40738 msgstr "C<haskell>"
40739
40740 #. type: =item
40741 #: ../src/guestfs.pod:2952
40742 msgid "C<java>"
40743 msgstr "C<java>"
40744
40745 #. type: =item
40746 #: ../src/guestfs.pod:2954
40747 msgid "C<ocaml>"
40748 msgstr "C<ocaml>"
40749
40750 #. type: =item
40751 #: ../src/guestfs.pod:2956
40752 msgid "C<php>"
40753 msgstr "C<php>"
40754
40755 #. type: =item
40756 #: ../src/guestfs.pod:2958
40757 msgid "C<perl>"
40758 msgstr "C<perl>"
40759
40760 #. type: =item
40761 #: ../src/guestfs.pod:2960
40762 msgid "C<python>"
40763 msgstr "C<python>"
40764
40765 #. type: =item
40766 #: ../src/guestfs.pod:2962
40767 msgid "C<ruby>"
40768 msgstr "C<ruby>"
40769
40770 #. type: textblock
40771 #: ../src/guestfs.pod:2964
40772 msgid "Language bindings."
40773 msgstr "Прив’язки до мов програмування."
40774
40775 #. type: =head2
40776 #: ../src/guestfs.pod:2968
40777 msgid "MAKING A STABLE RELEASE"
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../src/guestfs.pod:2970
40782 msgid ""
40783 "When we make a stable release, there are several steps documented here.  See "
40784 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40785 "branch policy."
40786 msgstr ""
40787
40788 #. type: textblock
40789 #: ../src/guestfs.pod:2978
40790 msgid ""
40791 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../src/guestfs.pod:2983
40796 msgid "Finalize RELEASE-NOTES."
40797 msgstr ""
40798
40799 #. type: textblock
40800 #: ../src/guestfs.pod:2987
40801 msgid "Update ROADMAP."
40802 msgstr ""
40803
40804 #. type: textblock
40805 #: ../src/guestfs.pod:2991
40806 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:2995
40811 msgid "Push and pull from Transifex."
40812 msgstr ""
40813
40814 #. type: textblock
40815 #: ../src/guestfs.pod:2997
40816 msgid "Run:"
40817 msgstr ""
40818
40819 #. type: verbatim
40820 #: ../src/guestfs.pod:2999
40821 #, no-wrap
40822 msgid ""
40823 " tx push -s\n"
40824 "\n"
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:3001
40829 msgid "to push the latest POT files to Transifex.  Then run:"
40830 msgstr ""
40831
40832 #. type: verbatim
40833 #: ../src/guestfs.pod:3003
40834 #, no-wrap
40835 msgid ""
40836 " ./tx-pull.sh\n"
40837 "\n"
40838 msgstr ""
40839
40840 #. type: textblock
40841 #: ../src/guestfs.pod:3005
40842 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../src/guestfs.pod:3009
40847 msgid ""
40848 "Create new stable and development directories under L<http://libguestfs.org/"
40849 "download>."
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:3014
40854 msgid "Create the branch in git:"
40855 msgstr ""
40856
40857 #. type: verbatim
40858 #: ../src/guestfs.pod:3016
40859 #, no-wrap
40860 msgid ""
40861 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40862 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40863 " git branch stable-1.XX\n"
40864 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40865 "\n"
40866 msgstr ""
40867
40868 #. type: =head1
40869 #: ../src/guestfs.pod:3023
40870 msgid "LIMITS"
40871 msgstr ""
40872
40873 #. type: =head2
40874 #: ../src/guestfs.pod:3025
40875 msgid "PROTOCOL LIMITS"
40876 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40877
40878 #. type: textblock
40879 #: ../src/guestfs.pod:3027
40880 msgid ""
40881 "Internally libguestfs uses a message-based protocol to pass API calls and "
40882 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40883 "plenty more detail about this).  The maximum message size used by the "
40884 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40885 "aware of this limit.  The API calls which may be affected are individually "
40886 "documented, with a link back to this section of the documentation."
40887 msgstr ""
40888
40889 #. type: textblock
40890 #: ../src/guestfs.pod:3035
40891 msgid ""
40892 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40893 "a simple string.  Because this string is at some point internally encoded as "
40894 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40895 "the requested file is larger than this then you will get an error."
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../src/guestfs.pod:3041
40900 msgid ""
40901 "In order to transfer large files into and out of the guest filesystem, you "
40902 "need to use particular calls that support this.  The sections L</UPLOADING> "
40903 "and L</DOWNLOADING> document how to do this."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../src/guestfs.pod:3045
40908 msgid ""
40909 "You might also consider mounting the disk image using our FUSE filesystem "
40910 "support (L<guestmount(1)>)."
40911 msgstr ""
40912
40913 #. type: =head2
40914 #: ../src/guestfs.pod:3048
40915 msgid "MAXIMUM NUMBER OF DISKS"
40916 msgstr ""
40917
40918 #. type: textblock
40919 #: ../src/guestfs.pod:3050
40920 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../src/guestfs.pod:3053
40925 msgid ""
40926 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40927 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40928 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40929 "purposes."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../src/guestfs.pod:3058
40934 msgid ""
40935 "We are working to substantially raise this limit in future versions but it "
40936 "requires complex changes to qemu."
40937 msgstr ""
40938
40939 #. type: textblock
40940 #: ../src/guestfs.pod:3061
40941 msgid ""
40942 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40943 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40944 "requires changes to qemu."
40945 msgstr ""
40946
40947 #. type: =head2
40948 #: ../src/guestfs.pod:3065
40949 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../src/guestfs.pod:3067
40954 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40955 msgstr ""
40956
40957 #. type: textblock
40958 #: ../src/guestfs.pod:3069
40959 msgid ""
40960 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40961 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40962 msgstr ""
40963
40964 #. type: textblock
40965 #: ../src/guestfs.pod:3072
40966 msgid ""
40967 "If you attach a disk with more than 15 partitions, the extra partitions are "
40968 "ignored by libguestfs."
40969 msgstr ""
40970
40971 #. type: =head2
40972 #: ../src/guestfs.pod:3075
40973 msgid "MAXIMUM SIZE OF A DISK"
40974 msgstr ""
40975
40976 #. type: textblock
40977 #: ../src/guestfs.pod:3077
40978 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../src/guestfs.pod:3079
40983 msgid ""
40984 "We have tested block devices up to 1 exabyte (2**60 or "
40985 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40986 "filesystem."
40987 msgstr ""
40988
40989 #. type: textblock
40990 #: ../src/guestfs.pod:3083
40991 msgid ""
40992 "Although libguestfs probably does not impose any limit, the underlying host "
40993 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40994 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40995 "TB).  If you store disk images as host logical volumes then you are limited "
40996 "by the maximum size of an LV."
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../src/guestfs.pod:3089
41001 msgid ""
41002 "For the hugest disk image files, we recommend using XFS on the host for "
41003 "storage."
41004 msgstr ""
41005
41006 #. type: =head2
41007 #: ../src/guestfs.pod:3092
41008 msgid "MAXIMUM SIZE OF A PARTITION"
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../src/guestfs.pod:3094
41013 msgid ""
41014 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41015 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41016 "address a partition located beyond 2 TB on the disk."
41017 msgstr ""
41018
41019 #. type: textblock
41020 #: ../src/guestfs.pod:3098
41021 msgid ""
41022 "It is recommended that you use GPT partitions on disks which are larger than "
41023 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41024 "which are theoretically larger than the largest disk we could support."
41025 msgstr ""
41026
41027 #. type: =head2
41028 #: ../src/guestfs.pod:3103
41029 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../src/guestfs.pod:3105
41034 msgid ""
41035 "This depends on the filesystem type.  libguestfs itself does not impose any "
41036 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41037 "what these limits are."
41038 msgstr ""
41039
41040 #. type: =head2
41041 #: ../src/guestfs.pod:3109
41042 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41043 msgstr ""
41044
41045 #. type: textblock
41046 #: ../src/guestfs.pod:3111
41047 msgid ""
41048 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41049 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41050 "uploads and downloads."
41051 msgstr ""
41052
41053 #. type: =head2
41054 #: ../src/guestfs.pod:3115
41055 msgid "INSPECTION LIMITS"
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../src/guestfs.pod:3117
41060 msgid ""
41061 "The inspection code has several arbitrary limits on things like the size of "
41062 "Windows Registry hive it will read, and the length of product name.  These "
41063 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41064 "memory and disk space on the host, and should not be reached in practice.  "
41065 "See the source code for more information."
41066 msgstr ""
41067
41068 #. type: textblock
41069 #: ../src/guestfs.pod:3143
41070 msgid ""
41071 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41072 "effect as calling C<guestfs_set_verbose (g, 1)>."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../src/guestfs.pod:3155
41077 msgid ""
41078 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41079 "the discussion of paths in section L</PATH> above."
41080 msgstr ""
41081
41082 #. type: textblock
41083 #: ../src/guestfs.pod:3164
41084 msgid "See also L</QEMU WRAPPERS> above."
41085 msgstr ""
41086
41087 #. type: textblock
41088 #: ../src/guestfs.pod:3168
41089 msgid ""
41090 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41091 "effect as calling C<guestfs_set_trace (g, 1)>."
41092 msgstr ""
41093
41094 #. type: textblock
41095 #: ../src/guestfs.pod:3186
41096 msgid ""
41097 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41098 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41099 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41100 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41101 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41102 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41103 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41104 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41105 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
41106 "libguestfs.org/>."
41107 msgstr ""
41108
41109 #. type: textblock
41110 #: ../src/guestfs.pod:3221
41111 msgid ""
41112 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41113 "(8)>, L<disktype(1)>."
41114 msgstr ""
41115
41116 #. type: =head1
41117 #: ../src/guestfs.pod:3228 ../tools/virt-make-fs.pl:553
41118 #: ../tools/virt-win-reg.pl:761
41119 msgid "BUGS"
41120 msgstr "ВАДИ"
41121
41122 #. type: textblock
41123 #: ../src/guestfs.pod:3230
41124 msgid "To get a list of bugs against libguestfs use this link:"
41125 msgstr ""
41126 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41127 "посиланням:"
41128
41129 #. type: textblock
41130 #: ../src/guestfs.pod:3232
41131 msgid ""
41132 "L<https://bugzilla.redhat.com/buglist.cgi?"
41133 "component=libguestfs&product=Virtualization+Tools>"
41134 msgstr ""
41135 "L<https://bugzilla.redhat.com/buglist.cgi?"
41136 "component=libguestfs&product=Virtualization+Tools>"
41137
41138 #. type: textblock
41139 #: ../src/guestfs.pod:3234
41140 msgid "To report a new bug against libguestfs use this link:"
41141 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41142
41143 #. type: textblock
41144 #: ../src/guestfs.pod:3236
41145 msgid ""
41146 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41147 "component=libguestfs&product=Virtualization+Tools>"
41148 msgstr ""
41149 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41150 "component=libguestfs&product=Virtualization+Tools>"
41151
41152 #. type: textblock
41153 #: ../src/guestfs.pod:3238
41154 msgid "When reporting a bug, please check:"
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../src/guestfs.pod:3244
41159 msgid "That the bug hasn't been reported already."
41160 msgstr ""
41161
41162 #. type: textblock
41163 #: ../src/guestfs.pod:3248
41164 msgid "That you are testing a recent version."
41165 msgstr ""
41166
41167 #. type: textblock
41168 #: ../src/guestfs.pod:3252
41169 msgid "Describe the bug accurately, and give a way to reproduce it."
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../src/guestfs.pod:3256
41174 msgid ""
41175 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41176 "bug report."
41177 msgstr ""
41178
41179 #. type: textblock
41180 #: ../test-tool/libguestfs-test-tool.pod:5
41181 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41182 msgstr ""
41183
41184 #. type: verbatim
41185 #: ../test-tool/libguestfs-test-tool.pod:9
41186 #, no-wrap
41187 msgid ""
41188 " libguestfs-test-tool [--options]\n"
41189 "\n"
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../test-tool/libguestfs-test-tool.pod:13
41194 msgid ""
41195 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41196 "to check basic libguestfs functionality is working.  This is needed because "
41197 "libguestfs occasionally breaks for reasons beyond our control: usually "
41198 "because of changes in the underlying qemu or kernel packages, or the host "
41199 "environment."
41200 msgstr ""
41201
41202 #. type: textblock
41203 #: ../test-tool/libguestfs-test-tool.pod:19
41204 msgid "If you suspect a problem in libguestfs, then just run:"
41205 msgstr ""
41206
41207 #. type: verbatim
41208 #: ../test-tool/libguestfs-test-tool.pod:21
41209 #, no-wrap
41210 msgid ""
41211 " libguestfs-test-tool\n"
41212 "\n"
41213 msgstr ""
41214
41215 #. type: textblock
41216 #: ../test-tool/libguestfs-test-tool.pod:23
41217 msgid "It will print lots of diagnostic messages."
41218 msgstr ""
41219
41220 #. type: textblock
41221 #: ../test-tool/libguestfs-test-tool.pod:25
41222 msgid "If it runs to completion successfully, you will see this near the end:"
41223 msgstr ""
41224
41225 #. type: verbatim
41226 #: ../test-tool/libguestfs-test-tool.pod:27
41227 #, no-wrap
41228 msgid ""
41229 " ===== TEST FINISHED OK =====\n"
41230 "\n"
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../test-tool/libguestfs-test-tool.pod:29
41235 msgid "and the test tool will exit with code 0."
41236 msgstr ""
41237
41238 #. type: textblock
41239 #: ../test-tool/libguestfs-test-tool.pod:31
41240 msgid ""
41241 "If it fails (and/or exits with non-zero error code), please paste the "
41242 "I<complete, unedited> output of the test tool into a bug report.  More "
41243 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41244 "> website."
41245 msgstr ""
41246
41247 #. type: textblock
41248 #: ../test-tool/libguestfs-test-tool.pod:42
41249 msgid "Display short usage information and exit."
41250 msgstr ""
41251
41252 #. type: =item
41253 #: ../test-tool/libguestfs-test-tool.pod:44
41254 #, fuzzy
41255 #| msgid "I<--qemu qemu_binary>"
41256 msgid "B<--qemu qemu_binary>"
41257 msgstr "I<--qemu виконуваний_файл_qemu>"
41258
41259 #. type: textblock
41260 #: ../test-tool/libguestfs-test-tool.pod:46
41261 msgid ""
41262 "If you have downloaded another qemu binary, point this option at the full "
41263 "path of the binary to try it."
41264 msgstr ""
41265
41266 #. type: =item
41267 #: ../test-tool/libguestfs-test-tool.pod:49
41268 #, fuzzy
41269 #| msgid "I<--qemu qemu_binary>"
41270 msgid "B<--qemudir qemu_source_dir>"
41271 msgstr "I<--qemu виконуваний_файл_qemu>"
41272
41273 #. type: textblock
41274 #: ../test-tool/libguestfs-test-tool.pod:51
41275 msgid ""
41276 "If you have compiled qemu from source, point this option at the source "
41277 "directory to try it."
41278 msgstr ""
41279
41280 #. type: =item
41281 #: ../test-tool/libguestfs-test-tool.pod:54
41282 msgid "B<-t N>"
41283 msgstr ""
41284
41285 #. type: =item
41286 #: ../test-tool/libguestfs-test-tool.pod:56
41287 #, fuzzy
41288 #| msgid "I<--timeout N>"
41289 msgid "B<--timeout N>"
41290 msgstr "I<--timeout N>"
41291
41292 #. type: textblock
41293 #: ../test-tool/libguestfs-test-tool.pod:58
41294 msgid ""
41295 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41296 "minutes) which does not usually need to be adjusted."
41297 msgstr ""
41298
41299 #. type: =head1
41300 #: ../test-tool/libguestfs-test-tool.pod:63
41301 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41302 msgstr ""
41303
41304 #. type: textblock
41305 #: ../test-tool/libguestfs-test-tool.pod:65
41306 msgid ""
41307 "If you have compiled another version of qemu from source and would like to "
41308 "try that, then you can use the I<--qemudir> option to point to the qemu "
41309 "source directory."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../test-tool/libguestfs-test-tool.pod:69
41314 msgid ""
41315 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41316 "option to point to the binary."
41317 msgstr ""
41318
41319 #. type: textblock
41320 #: ../test-tool/libguestfs-test-tool.pod:72
41321 msgid ""
41322 "Note when using these options, you can ignore the business of qemu wrapper "
41323 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41324 "wrapper script for you if one is needed."
41325 msgstr ""
41326
41327 #. type: =head1
41328 #: ../test-tool/libguestfs-test-tool.pod:76
41329 msgid "TRYING OUT A DIFFERENT KERNEL"
41330 msgstr ""
41331
41332 #. type: textblock
41333 #: ../test-tool/libguestfs-test-tool.pod:78
41334 msgid ""
41335 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41336 "libguestfs tries.  You do this by setting the environment variables "
41337 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41338 msgstr ""
41339
41340 #. type: textblock
41341 #: ../test-tool/libguestfs-test-tool.pod:82
41342 msgid ""
41343 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41344 "information."
41345 msgstr ""
41346
41347 #. type: =head1
41348 #: ../test-tool/libguestfs-test-tool.pod:85
41349 msgid "SELF-DIAGNOSIS"
41350 msgstr ""
41351
41352 #. type: textblock
41353 #: ../test-tool/libguestfs-test-tool.pod:87
41354 msgid ""
41355 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41356 "produced by libguestfs-test-tool and/or possible errors."
41357 msgstr ""
41358
41359 #. type: textblock
41360 #: ../test-tool/libguestfs-test-tool.pod:92
41361 msgid ""
41362 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41363 "I<1> if there was an error."
41364 msgstr ""
41365
41366 #. type: textblock
41367 #: ../test-tool/libguestfs-test-tool.pod:97
41368 msgid ""
41369 "For the full list of environment variables which may affect libguestfs, "
41370 "please see the L<guestfs(3)> manual page."
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../test-tool/libguestfs-test-tool.pod:102
41375 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41376 msgstr ""
41377
41378 #. type: textblock
41379 #: ../tools/virt-list-filesystems.pl:32
41380 msgid ""
41381 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41382 msgstr ""
41383
41384 #. type: verbatim
41385 #: ../tools/virt-list-filesystems.pl:36
41386 #, no-wrap
41387 msgid ""
41388 " virt-list-filesystems [--options] domname\n"
41389 "\n"
41390 msgstr ""
41391
41392 #. type: verbatim
41393 #: ../tools/virt-list-filesystems.pl:38
41394 #, no-wrap
41395 msgid ""
41396 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41397 "\n"
41398 msgstr ""
41399
41400 #. type: textblock
41401 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41402 msgid ""
41403 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41404 "replacement."
41405 msgstr ""
41406
41407 #. type: textblock
41408 #: ../tools/virt-list-filesystems.pl:45
41409 msgid ""
41410 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41411 "are contained in a virtual machine or disk image."
41412 msgstr ""
41413
41414 #. type: textblock
41415 #: ../tools/virt-list-filesystems.pl:49
41416 msgid ""
41417 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41418 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41419 "> tool."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../tools/virt-list-filesystems.pl:112
41424 msgid ""
41425 "With this option, C<virt-list-filesystems> displays the type of each "
41426 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41427 msgstr ""
41428
41429 #. type: =item
41430 #: ../tools/virt-list-filesystems.pl:119
41431 #, fuzzy
41432 #| msgid "B<-a image>"
41433 msgid "B<-a>"
41434 msgstr "B<-a образ>"
41435
41436 #. type: textblock
41437 #: ../tools/virt-list-filesystems.pl:123
41438 msgid ""
41439 "Normally we only show mountable filesystems.  If this option is given then "
41440 "swap devices are shown too."
41441 msgstr ""
41442
41443 #. type: textblock
41444 #: ../tools/virt-list-filesystems.pl:197
41445 msgid ""
41446 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41447 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41448 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41449 msgstr ""
41450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41451 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41452 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41453
41454 #. type: textblock
41455 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41456 msgid "Copyright (C) 2009 Red Hat Inc."
41457 msgstr "© Red Hat Inc., 2009"
41458
41459 #. type: textblock
41460 #: ../tools/virt-list-partitions.pl:32
41461 msgid ""
41462 "virt-list-partitions - List partitions in a virtual machine or disk image"
41463 msgstr ""
41464
41465 #. type: verbatim
41466 #: ../tools/virt-list-partitions.pl:36
41467 #, no-wrap
41468 msgid ""
41469 " virt-list-partitions [--options] domname\n"
41470 "\n"
41471 msgstr ""
41472 " virt-list-partitions [--параметри] назва_домену\n"
41473 "\n"
41474
41475 #. type: verbatim
41476 #: ../tools/virt-list-partitions.pl:38
41477 #, no-wrap
41478 msgid ""
41479 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41480 "\n"
41481 msgstr ""
41482 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41483 "\n"
41484
41485 #. type: textblock
41486 #: ../tools/virt-list-partitions.pl:45
41487 msgid ""
41488 "C<virt-list-partitions> is a command line tool to list the partitions that "
41489 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41490 "first step to using L<virt-resize(1)>."
41491 msgstr ""
41492
41493 #. type: textblock
41494 #: ../tools/virt-list-partitions.pl:50
41495 msgid ""
41496 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41497 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41498 "> tool."
41499 msgstr ""
41500
41501 #. type: textblock
41502 #: ../tools/virt-list-partitions.pl:113
41503 msgid "Show sizes in human-readable form (eg. \"1G\")."
41504 msgstr ""
41505
41506 #. type: textblock
41507 #: ../tools/virt-list-partitions.pl:123
41508 msgid ""
41509 "With this option, C<virt-list-partitions> displays the type and size of each "
41510 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41511 msgstr ""
41512
41513 #. type: =item
41514 #: ../tools/virt-list-partitions.pl:130
41515 msgid "B<-t>"
41516 msgstr ""
41517
41518 #. type: =item
41519 #: ../tools/virt-list-partitions.pl:132
41520 #, fuzzy
41521 #| msgid "B<-t> | B<--total>"
41522 msgid "B<--total>"
41523 msgstr "B<-t> | B<--total>"
41524
41525 #. type: textblock
41526 #: ../tools/virt-list-partitions.pl:134
41527 msgid ""
41528 "Display the total size of each block device (as a separate row or rows)."
41529 msgstr ""
41530
41531 #. type: textblock
41532 #: ../tools/virt-list-partitions.pl:267
41533 msgid ""
41534 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41535 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41536 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41537 msgstr ""
41538 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41539 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41540 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41541
41542 #. type: textblock
41543 #: ../tools/virt-list-partitions.pl:283
41544 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41545 msgstr "© Red Hat Inc., 2009–2010"
41546
41547 #. type: textblock
41548 #: ../tools/virt-make-fs.pl:37
41549 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41550 msgstr ""
41551
41552 #. type: verbatim
41553 #: ../tools/virt-make-fs.pl:41
41554 #, no-wrap
41555 msgid ""
41556 " virt-make-fs [--options] input.tar output.img\n"
41557 "\n"
41558 msgstr ""
41559
41560 #. type: verbatim
41561 #: ../tools/virt-make-fs.pl:43
41562 #, no-wrap
41563 msgid ""
41564 " virt-make-fs [--options] input.tar.gz output.img\n"
41565 "\n"
41566 msgstr ""
41567
41568 #. type: verbatim
41569 #: ../tools/virt-make-fs.pl:45
41570 #, no-wrap
41571 msgid ""
41572 " virt-make-fs [--options] directory output.img\n"
41573 "\n"
41574 msgstr ""
41575
41576 #. type: textblock
41577 #: ../tools/virt-make-fs.pl:49
41578 msgid ""
41579 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41580 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41581 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41582 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41583 "you want to attach these filesystems to existing virtual machines (eg. to "
41584 "import large amounts of read-only data to a VM)."
41585 msgstr ""
41586
41587 #. type: textblock
41588 #: ../tools/virt-make-fs.pl:57
41589 msgid "Basic usage is:"
41590 msgstr ""
41591
41592 #. type: verbatim
41593 #: ../tools/virt-make-fs.pl:59
41594 #, no-wrap
41595 msgid ""
41596 " virt-make-fs input output\n"
41597 "\n"
41598 msgstr ""
41599
41600 #. type: textblock
41601 #: ../tools/virt-make-fs.pl:61
41602 msgid ""
41603 "where C<input> is either a directory containing files that you want to add, "
41604 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41605 "C<output> is a disk image.  The input type is detected automatically.  The "
41606 "output disk image defaults to a raw ext2 image unless you specify extra "
41607 "flags (see L</OPTIONS> below)."
41608 msgstr ""
41609
41610 #. type: =head2
41611 #: ../tools/virt-make-fs.pl:67
41612 msgid "EXTRA SPACE"
41613 msgstr ""
41614
41615 #. type: textblock
41616 #: ../tools/virt-make-fs.pl:69
41617 msgid ""
41618 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41619 "the files that it contains, but might have extra space.  Depending on how "
41620 "you are going to use the output, you might think this extra space is wasted "
41621 "and want to minimize it, or you might want to leave space so that more files "
41622 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41623 "but you can use the I<--size> flag to leave space in the filesystem if you "
41624 "want it."
41625 msgstr ""
41626
41627 #. type: textblock
41628 #: ../tools/virt-make-fs.pl:77
41629 msgid ""
41630 "An alternative way to leave extra space but not make the output image any "
41631 "bigger is to use an alternative disk image format (instead of the default "
41632 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41633 "image format (check your hypervisor supports this before using it).  This "
41634 "allows you to choose a large I<--size> but the extra space won't actually be "
41635 "allocated in the image until you try to store something in it."
41636 msgstr ""
41637
41638 #. type: textblock
41639 #: ../tools/virt-make-fs.pl:85
41640 msgid ""
41641 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41642 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41643 "to build another image from scratch."
41644 msgstr ""
41645
41646 #. type: =head3
41647 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41648 #: ../tools/virt-make-fs.pl:142
41649 msgid "EXAMPLE"
41650 msgstr "ПРИКЛАД"
41651
41652 #. type: verbatim
41653 #: ../tools/virt-make-fs.pl:91
41654 #, no-wrap
41655 msgid ""
41656 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41657 "\n"
41658 msgstr ""
41659 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41660 "\n"
41661
41662 #. type: =head2
41663 #: ../tools/virt-make-fs.pl:93
41664 msgid "FILESYSTEM TYPE"
41665 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41666
41667 #. type: textblock
41668 #: ../tools/virt-make-fs.pl:95
41669 msgid ""
41670 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41671 "libguestfs supports can be used (but I<not> read-only formats like "
41672 "ISO9660).  Here are some of the more common choices:"
41673 msgstr ""
41674
41675 #. type: =item
41676 #: ../tools/virt-make-fs.pl:101
41677 msgid "I<ext3>"
41678 msgstr "I<ext3>"
41679
41680 #. type: textblock
41681 #: ../tools/virt-make-fs.pl:103
41682 msgid ""
41683 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41684 "you are not going to use the filesystem in a way that requires the journal, "
41685 "then this is just wasted overhead."
41686 msgstr ""
41687
41688 #. type: =item
41689 #: ../tools/virt-make-fs.pl:107
41690 msgid "I<ntfs> or I<vfat>"
41691 msgstr "I<ntfs> або I<vfat>"
41692
41693 #. type: textblock
41694 #: ../tools/virt-make-fs.pl:109
41695 msgid "Useful if exporting data to a Windows guest."
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../tools/virt-make-fs.pl:111
41700 msgid ""
41701 "I<Note for vfat>: The tar archive or local directory must only contain files "
41702 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41703 "program running within libguestfs is unable to change the ownership of non-"
41704 "root files, since vfat itself does not support this."
41705 msgstr ""
41706
41707 #. type: =item
41708 #: ../tools/virt-make-fs.pl:116
41709 msgid "I<minix>"
41710 msgstr "I<minix>"
41711
41712 #. type: textblock
41713 #: ../tools/virt-make-fs.pl:118
41714 msgid ""
41715 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41716 "total filesystem size."
41717 msgstr ""
41718
41719 #. type: verbatim
41720 #: ../tools/virt-make-fs.pl:125
41721 #, no-wrap
41722 msgid ""
41723 " virt-make-fs --type=minix input minixfs.img\n"
41724 "\n"
41725 msgstr ""
41726
41727 #. type: =head2
41728 #: ../tools/virt-make-fs.pl:127
41729 msgid "TO PARTITION OR NOT TO PARTITION"
41730 msgstr ""
41731
41732 #. type: textblock
41733 #: ../tools/virt-make-fs.pl:129
41734 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41735 msgstr ""
41736
41737 #. type: textblock
41738 #: ../tools/virt-make-fs.pl:131
41739 msgid ""
41740 "Adding a partition can make the disk image more compatible with certain "
41741 "virtualized operating systems which don't expect to see a filesystem "
41742 "directly located on a block device (Linux doesn't care and will happily "
41743 "handle both types)."
41744 msgstr ""
41745
41746 #. type: textblock
41747 #: ../tools/virt-make-fs.pl:136
41748 msgid ""
41749 "On the other hand, if you have a partition table then the output image is no "
41750 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41751 "directly on a partitioned disk image.  (However libguestfs tools such as "
41752 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41753 msgstr ""
41754
41755 #. type: textblock
41756 #: ../tools/virt-make-fs.pl:144
41757 msgid "Add an MBR partition:"
41758 msgstr ""
41759
41760 #. type: verbatim
41761 #: ../tools/virt-make-fs.pl:146
41762 #, no-wrap
41763 msgid ""
41764 " virt-make-fs --partition -- input disk.img\n"
41765 "\n"
41766 msgstr ""
41767
41768 #. type: textblock
41769 #: ../tools/virt-make-fs.pl:148
41770 msgid ""
41771 "If the output disk image could be terabyte-sized or larger, it's better to "
41772 "use an EFI/GPT-compatible partition table:"
41773 msgstr ""
41774
41775 #. type: verbatim
41776 #: ../tools/virt-make-fs.pl:151
41777 #, no-wrap
41778 msgid ""
41779 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41780 "\n"
41781 msgstr ""
41782
41783 #. type: textblock
41784 #: ../tools/virt-make-fs.pl:179
41785 msgid "Enable debugging information."
41786 msgstr "Увімкнути виведення діагностичних даних."
41787
41788 #. type: =item
41789 #: ../tools/virt-make-fs.pl:185
41790 msgid "B<--size=E<lt>NE<gt>>"
41791 msgstr "B<--size=E<lt>NE<gt>>"
41792
41793 #. type: =item
41794 #: ../tools/virt-make-fs.pl:187
41795 msgid "B<--size=+E<lt>NE<gt>>"
41796 msgstr "B<--size=+E<lt>NE<gt>>"
41797
41798 #. type: =item
41799 #: ../tools/virt-make-fs.pl:189
41800 msgid "B<-s E<lt>NE<gt>>"
41801 msgstr "B<-s E<lt>NE<gt>>"
41802
41803 #. type: =item
41804 #: ../tools/virt-make-fs.pl:191
41805 msgid "B<-s +E<lt>NE<gt>>"
41806 msgstr "B<-s +E<lt>NE<gt>>"
41807
41808 #. type: textblock
41809 #: ../tools/virt-make-fs.pl:193
41810 msgid ""
41811 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../tools/virt-make-fs.pl:196
41816 msgid ""
41817 "If this option is I<not> given, then the output image will be just large "
41818 "enough to contain all the files, with not much wasted space."
41819 msgstr ""
41820
41821 #. type: textblock
41822 #: ../tools/virt-make-fs.pl:199
41823 msgid ""
41824 "To choose a fixed size output disk, specify an absolute number followed by b/"
41825 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41826 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41827 "files, else you will get an error."
41828 msgstr ""
41829
41830 #. type: textblock
41831 #: ../tools/virt-make-fs.pl:204
41832 msgid ""
41833 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41834 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41835 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41836 "the input files, and (approximately) an extra 200 MB free space."
41837 msgstr ""
41838
41839 #. type: textblock
41840 #: ../tools/virt-make-fs.pl:210
41841 msgid ""
41842 "Note that virt-make-fs estimates free space, and therefore will not produce "
41843 "filesystems containing precisely the free space requested.  (It is much more "
41844 "expensive and time-consuming to produce a filesystem which has precisely the "
41845 "desired free space)."
41846 msgstr ""
41847
41848 #. type: =item
41849 #: ../tools/virt-make-fs.pl:219
41850 msgid "B<--format=E<lt>fmtE<gt>>"
41851 msgstr ""
41852
41853 #. type: =item
41854 #: ../tools/virt-make-fs.pl:221
41855 msgid "B<-F E<lt>fmtE<gt>>"
41856 msgstr ""
41857
41858 #. type: textblock
41859 #: ../tools/virt-make-fs.pl:223
41860 msgid "Choose the output disk image format."
41861 msgstr ""
41862
41863 #. type: textblock
41864 #: ../tools/virt-make-fs.pl:225
41865 msgid "The default is C<raw> (raw disk image)."
41866 msgstr ""
41867
41868 #. type: textblock
41869 #: ../tools/virt-make-fs.pl:227
41870 msgid ""
41871 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41872 "that would really make sense here is C<qcow2>."
41873 msgstr ""
41874
41875 #. type: =item
41876 #: ../tools/virt-make-fs.pl:234
41877 msgid "B<--type=E<lt>fsE<gt>>"
41878 msgstr ""
41879
41880 #. type: =item
41881 #: ../tools/virt-make-fs.pl:236
41882 msgid "B<-t E<lt>fsE<gt>>"
41883 msgstr ""
41884
41885 #. type: textblock
41886 #: ../tools/virt-make-fs.pl:238
41887 msgid "Choose the output filesystem type."
41888 msgstr ""
41889
41890 #. type: textblock
41891 #: ../tools/virt-make-fs.pl:240
41892 msgid "The default is C<ext2>."
41893 msgstr "Типовим значенням є C<ext2>."
41894
41895 #. type: textblock
41896 #: ../tools/virt-make-fs.pl:242
41897 msgid ""
41898 "Any filesystem which is supported read-write by libguestfs can be used here."
41899 msgstr ""
41900
41901 #. type: =item
41902 #: ../tools/virt-make-fs.pl:249
41903 msgid "B<--partition>"
41904 msgstr "B<--partition>"
41905
41906 #. type: =item
41907 #: ../tools/virt-make-fs.pl:251
41908 msgid "B<--partition=E<lt>parttypeE<gt>>"
41909 msgstr ""
41910
41911 #. type: textblock
41912 #: ../tools/virt-make-fs.pl:253
41913 msgid ""
41914 "If specified, this flag adds an MBR partition table to the output disk image."
41915 msgstr ""
41916
41917 #. type: textblock
41918 #: ../tools/virt-make-fs.pl:256
41919 msgid ""
41920 "You can change the partition table type, eg. I<--partition=gpt> for large "
41921 "disks."
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../tools/virt-make-fs.pl:259
41926 msgid ""
41927 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41928 "might consider the next parameter to be the partition type.  For example:"
41929 msgstr ""
41930
41931 #. type: verbatim
41932 #: ../tools/virt-make-fs.pl:263
41933 #, no-wrap
41934 msgid ""
41935 " virt-make-fs --partition input.tar ...\n"
41936 "\n"
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../tools/virt-make-fs.pl:265
41941 msgid ""
41942 "would cause virt-make-fs to think you wanted to use a partition type of "
41943 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41944 "dash) between options and the input file argument:"
41945 msgstr ""
41946
41947 #. type: verbatim
41948 #: ../tools/virt-make-fs.pl:269
41949 #, no-wrap
41950 msgid ""
41951 " virt-make-fs --partition -- input.tar ...\n"
41952 "\n"
41953 msgstr ""
41954 " virt-make-fs --partition -- input.tar ...\n"
41955 "\n"
41956
41957 #. type: textblock
41958 #: ../tools/virt-make-fs.pl:541
41959 msgid ""
41960 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41961 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41962 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41963 msgstr ""
41964 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41965 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41966 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41967
41968 #. type: textblock
41969 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
41970 msgid ""
41971 "When reporting bugs, please enable debugging and capture the I<complete> "
41972 "output:"
41973 msgstr ""
41974
41975 #. type: verbatim
41976 #: ../tools/virt-make-fs.pl:558
41977 #, no-wrap
41978 msgid ""
41979 " export LIBGUESTFS_DEBUG=1\n"
41980 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41981 "\n"
41982 msgstr ""
41983 " export LIBGUESTFS_DEBUG=1\n"
41984 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41985 "\n"
41986
41987 #. type: textblock
41988 #: ../tools/virt-make-fs.pl:561
41989 msgid ""
41990 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41991 "redhat.com/>"
41992 msgstr ""
41993
41994 #. type: textblock
41995 #: ../tools/virt-tar.pl:33
41996 msgid "virt-tar - Extract or upload files to a virtual machine"
41997 msgstr ""
41998
41999 #. type: verbatim
42000 #: ../tools/virt-tar.pl:37
42001 #, no-wrap
42002 msgid ""
42003 " virt-tar [--options] -x domname directory tarball\n"
42004 "\n"
42005 msgstr ""
42006
42007 #. type: verbatim
42008 #: ../tools/virt-tar.pl:39
42009 #, no-wrap
42010 msgid ""
42011 " virt-tar [--options] -u domname tarball directory\n"
42012 "\n"
42013 msgstr ""
42014
42015 #. type: verbatim
42016 #: ../tools/virt-tar.pl:41
42017 #, no-wrap
42018 msgid ""
42019 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42020 "\n"
42021 msgstr ""
42022
42023 #. type: verbatim
42024 #: ../tools/virt-tar.pl:43
42025 #, no-wrap
42026 msgid ""
42027 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42028 "\n"
42029 msgstr ""
42030
42031 #. type: =head2
42032 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42033 msgid "NOTE"
42034 msgstr "ПРИМІТКА"
42035
42036 #. type: textblock
42037 #: ../tools/virt-tar.pl:47
42038 msgid ""
42039 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42040 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42041 msgstr ""
42042
42043 #. type: textblock
42044 #: ../tools/virt-tar.pl:52
42045 msgid "Download C</home> from the VM into a local tarball:"
42046 msgstr ""
42047
42048 #. type: verbatim
42049 #: ../tools/virt-tar.pl:54
42050 #, no-wrap
42051 msgid ""
42052 " virt-tar -x domname /home home.tar\n"
42053 "\n"
42054 msgstr ""
42055
42056 #. type: verbatim
42057 #: ../tools/virt-tar.pl:56
42058 #, no-wrap
42059 msgid ""
42060 " virt-tar -zx domname /home home.tar.gz\n"
42061 "\n"
42062 msgstr ""
42063
42064 #. type: textblock
42065 #: ../tools/virt-tar.pl:58
42066 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42067 msgstr ""
42068
42069 #. type: verbatim
42070 #: ../tools/virt-tar.pl:60
42071 #, no-wrap
42072 msgid ""
42073 " virt-tar -u domname uploadstuff.tar /tmp\n"
42074 "\n"
42075 msgstr ""
42076
42077 #. type: verbatim
42078 #: ../tools/virt-tar.pl:62
42079 #, no-wrap
42080 msgid ""
42081 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42082 "\n"
42083 msgstr ""
42084
42085 #. type: textblock
42086 #: ../tools/virt-tar.pl:66
42087 msgid ""
42088 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42089 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42090 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42091 msgstr ""
42092
42093 #. type: textblock
42094 #: ../tools/virt-tar.pl:71
42095 msgid ""
42096 "You can use I<-x> (extract) on live virtual machines, but you might get "
42097 "inconsistent results or errors if there is filesystem activity inside the "
42098 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42099 "work, but the only way to guarantee consistent results is if the virtual "
42100 "machine is shut down."
42101 msgstr ""
42102
42103 #. type: textblock
42104 #: ../tools/virt-tar.pl:79
42105 msgid ""
42106 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42107 "parts of a guest filesystem.  There are many possibilities: making backups, "
42108 "uploading data files, snooping on guest activity, fixing or customizing "
42109 "guests, etc."
42110 msgstr ""
42111
42112 #. type: textblock
42113 #: ../tools/virt-tar.pl:84
42114 msgid ""
42115 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42116 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42117 "should look at the L<guestfish(1)> tool."
42118 msgstr ""
42119
42120 #. type: textblock
42121 #: ../tools/virt-tar.pl:88
42122 msgid ""
42123 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42124 "its contents (recursively) from the virtual machine into a local tarball.  "
42125 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42126 "virtual machine.  You cannot use these two options together."
42127 msgstr ""
42128
42129 #. type: textblock
42130 #: ../tools/virt-tar.pl:94
42131 msgid ""
42132 "In addition, you may need to use the I<-z> (gZip) option to enable "
42133 "compression.  When uploading, you have to specify I<-z> if the upload file "
42134 "is compressed because virt-tar won't detect this on its own."
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../tools/virt-tar.pl:98
42139 msgid ""
42140 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42141 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42142 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42143 "the L<libguestfs(3)> API)."
42144 msgstr ""
42145
42146 #. type: =item
42147 #: ../tools/virt-tar.pl:160
42148 #, fuzzy
42149 #| msgid "B<--format>"
42150 msgid "B<--extract>"
42151 msgstr "B<--format>"
42152
42153 #. type: =item
42154 #: ../tools/virt-tar.pl:162
42155 #, fuzzy
42156 #| msgid "download"
42157 msgid "B<--download>"
42158 msgstr "download"
42159
42160 #. type: =item
42161 #: ../tools/virt-tar.pl:164
42162 msgid "B<-u>"
42163 msgstr ""
42164
42165 #. type: =item
42166 #: ../tools/virt-tar.pl:166
42167 #, fuzzy
42168 #| msgid "B<-u> | B<--upload>"
42169 msgid "B<--upload>"
42170 msgstr "B<-u> | B<--upload>"
42171
42172 #. type: textblock
42173 #: ../tools/virt-tar.pl:168
42174 msgid ""
42175 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42176 "local tarball."
42177 msgstr ""
42178
42179 #. type: textblock
42180 #: ../tools/virt-tar.pl:171
42181 msgid ""
42182 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42183 "Please read the L</WARNING> section above before using this option."
42184 msgstr ""
42185
42186 #. type: textblock
42187 #: ../tools/virt-tar.pl:175
42188 msgid "You must specify exactly one of these options."
42189 msgstr ""
42190
42191 #. type: =item
42192 #: ../tools/virt-tar.pl:181
42193 msgid "B<-z>"
42194 msgstr ""
42195
42196 #. type: =item
42197 #: ../tools/virt-tar.pl:183
42198 #, fuzzy
42199 #| msgid "B<-z> | B<--gzip>"
42200 msgid "B<--gzip>"
42201 msgstr "B<-z> | B<--gzip>"
42202
42203 #. type: textblock
42204 #: ../tools/virt-tar.pl:185
42205 msgid "Specify that the input or output tarball is gzip-compressed."
42206 msgstr ""
42207
42208 #. type: textblock
42209 #: ../tools/virt-tar.pl:298
42210 msgid ""
42211 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42212 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42213 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42214 "org/>."
42215 msgstr ""
42216 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42217 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42218 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42219 "org/>."
42220
42221 #. type: textblock
42222 #: ../tools/virt-win-reg.pl:37
42223 msgid ""
42224 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42225 msgstr ""
42226
42227 #. type: verbatim
42228 #: ../tools/virt-win-reg.pl:41
42229 #, no-wrap
42230 msgid ""
42231 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42232 "\n"
42233 msgstr ""
42234
42235 #. type: verbatim
42236 #: ../tools/virt-win-reg.pl:43
42237 #, no-wrap
42238 msgid ""
42239 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42240 "\n"
42241 msgstr ""
42242
42243 #. type: verbatim
42244 #: ../tools/virt-win-reg.pl:45
42245 #, no-wrap
42246 msgid ""
42247 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42248 "\n"
42249 msgstr ""
42250
42251 #. type: verbatim
42252 #: ../tools/virt-win-reg.pl:47
42253 #, no-wrap
42254 msgid ""
42255 " virt-win-reg --merge domname [input.reg ...]\n"
42256 "\n"
42257 msgstr ""
42258
42259 #. type: verbatim
42260 #: ../tools/virt-win-reg.pl:49
42261 #, no-wrap
42262 msgid ""
42263 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42264 "\n"
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../tools/virt-win-reg.pl:53
42269 msgid ""
42270 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42271 "virtual machines.  If you do this, you I<will> get irreversible disk "
42272 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42273 "but doesn't catch all cases."
42274 msgstr ""
42275
42276 #. type: textblock
42277 #: ../tools/virt-win-reg.pl:58
42278 msgid ""
42279 "Modifying the Windows Registry is an inherently risky operation.  The format "
42280 "is deliberately obscure and undocumented, and Registry changes can leave the "
42281 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42282 "you have a reliable backup first."
42283 msgstr ""
42284
42285 #. type: textblock
42286 #: ../tools/virt-win-reg.pl:65
42287 msgid ""
42288 "This program can export and merge Windows Registry entries from a Windows "
42289 "guest."
42290 msgstr ""
42291
42292 #. type: textblock
42293 #: ../tools/virt-win-reg.pl:68
42294 msgid ""
42295 "The first parameter is the libvirt guest name or the raw disk image of a "
42296 "Windows guest."
42297 msgstr ""
42298
42299 #. type: textblock
42300 #: ../tools/virt-win-reg.pl:71
42301 msgid ""
42302 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42303 "exported (recursively).  For example:"
42304 msgstr ""
42305
42306 #. type: verbatim
42307 #: ../tools/virt-win-reg.pl:74
42308 #, no-wrap
42309 msgid ""
42310 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42311 "\n"
42312 msgstr ""
42313
42314 #. type: textblock
42315 #: ../tools/virt-win-reg.pl:76
42316 msgid ""
42317 "You can also display single values from within registry keys, for example:"
42318 msgstr ""
42319
42320 #. type: verbatim
42321 #: ../tools/virt-win-reg.pl:79
42322 #, no-wrap
42323 msgid ""
42324 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42325 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42326 " Windows 7 Enterprise\n"
42327 "\n"
42328 msgstr ""
42329
42330 #. type: textblock
42331 #: ../tools/virt-win-reg.pl:83
42332 msgid ""
42333 "With I<--merge>, you can merge a textual regedit file into the Windows "
42334 "Registry:"
42335 msgstr ""
42336
42337 #. type: verbatim
42338 #: ../tools/virt-win-reg.pl:86
42339 #, no-wrap
42340 msgid ""
42341 " $ virt-win-reg --merge Windows7 changes.reg\n"
42342 "\n"
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../tools/virt-win-reg.pl:90
42347 msgid ""
42348 "This program is only meant for simple access to the registry.  If you want "
42349 "to do complicated things with the registry, we suggest you download the "
42350 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42351 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42352 "L<hivexregedit(1)>."
42353 msgstr ""
42354
42355 #. type: =item
42356 #: ../tools/virt-win-reg.pl:159
42357 msgid "B<--merge>"
42358 msgstr "B<--merge>"
42359
42360 #. type: textblock
42361 #: ../tools/virt-win-reg.pl:161
42362 msgid ""
42363 "In merge mode, this merges a textual regedit file into the Windows Registry "
42364 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42365 "displays or exports Registry entries instead."
42366 msgstr ""
42367
42368 #. type: textblock
42369 #: ../tools/virt-win-reg.pl:165
42370 msgid ""
42371 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42372 "result in disk corruption.  However exporting (without this flag)  is always "
42373 "safe."
42374 msgstr ""
42375
42376 #. type: =item
42377 #: ../tools/virt-win-reg.pl:173
42378 msgid "B<--encoding> UTF-16LE|ASCII"
42379 msgstr ""
42380
42381 #. type: textblock
42382 #: ../tools/virt-win-reg.pl:175
42383 msgid ""
42384 "When merging (only), you may need to specify the encoding for strings to be "
42385 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42386 "(3)/ENCODING STRINGS>."
42387 msgstr ""
42388
42389 #. type: textblock
42390 #: ../tools/virt-win-reg.pl:179
42391 msgid ""
42392 "The default is to use UTF-16LE, which should work with recent versions of "
42393 "Windows."
42394 msgstr ""
42395
42396 #. type: =item
42397 #: ../tools/virt-win-reg.pl:186
42398 msgid "B<--unsafe-printable-strings>"
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../tools/virt-win-reg.pl:188
42403 msgid ""
42404 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42405 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42406 "present."
42407 msgstr ""
42408
42409 #. type: textblock
42410 #: ../tools/virt-win-reg.pl:192
42411 msgid ""
42412 "This is unsafe and does not preserve the fidelity of strings in the original "
42413 "Registry for various reasons:"
42414 msgstr ""
42415
42416 #. type: textblock
42417 #: ../tools/virt-win-reg.pl:199
42418 msgid ""
42419 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42420 "other encodings will be corrupted by this transformation."
42421 msgstr ""
42422
42423 #. type: textblock
42424 #: ../tools/virt-win-reg.pl:204
42425 msgid ""
42426 "Assumes that everything which has type 1 or 2 is really a string and that "
42427 "everything else is not a string, but the type field in real Registries is "
42428 "not reliable."
42429 msgstr ""
42430
42431 #. type: textblock
42432 #: ../tools/virt-win-reg.pl:210
42433 msgid ""
42434 "Loses information about whether a zero codepoint followed the string in the "
42435 "Registry or not."
42436 msgstr ""
42437
42438 #. type: textblock
42439 #: ../tools/virt-win-reg.pl:215
42440 msgid ""
42441 "This all happens because the Registry itself contains no information about "
42442 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42443 msgstr ""
42444
42445 #. type: textblock
42446 #: ../tools/virt-win-reg.pl:219
42447 msgid ""
42448 "You should only use this option for quick hacking and debugging of the "
42449 "Registry contents, and I<never> use it if the output is going to be passed "
42450 "into another program or stored in another Registry."
42451 msgstr ""
42452
42453 #. type: =head1
42454 #: ../tools/virt-win-reg.pl:556
42455 msgid "SUPPORTED SYSTEMS"
42456 msgstr ""
42457
42458 #. type: textblock
42459 #: ../tools/virt-win-reg.pl:558
42460 msgid ""
42461 "The program currently supports Windows NT-derived guests starting with "
42462 "Windows XP through to at least Windows 7."
42463 msgstr ""
42464
42465 #. type: textblock
42466 #: ../tools/virt-win-reg.pl:561
42467 msgid "The following Registry keys are supported:"
42468 msgstr ""
42469
42470 #. type: =item
42471 #: ../tools/virt-win-reg.pl:565
42472 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42473 msgstr ""
42474
42475 #. type: =item
42476 #: ../tools/virt-win-reg.pl:567
42477 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42478 msgstr ""
42479
42480 #. type: =item
42481 #: ../tools/virt-win-reg.pl:569
42482 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42483 msgstr ""
42484
42485 #. type: =item
42486 #: ../tools/virt-win-reg.pl:571
42487 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42488 msgstr ""
42489
42490 #. type: =item
42491 #: ../tools/virt-win-reg.pl:573
42492 msgid "C<HKEY_USERS\\.DEFAULT>"
42493 msgstr ""
42494
42495 #. type: =item
42496 #: ../tools/virt-win-reg.pl:575
42497 msgid "C<HKEY_USERS\\I<SID>>"
42498 msgstr ""
42499
42500 #. type: textblock
42501 #: ../tools/virt-win-reg.pl:577
42502 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42503 msgstr ""
42504
42505 #. type: =item
42506 #: ../tools/virt-win-reg.pl:579
42507 msgid "C<HKEY_USERS\\I<username>>"
42508 msgstr ""
42509
42510 #. type: textblock
42511 #: ../tools/virt-win-reg.pl:581
42512 msgid ""
42513 "where I<username> is a local user name (this is a libguestfs extension)."
42514 msgstr ""
42515
42516 #. type: textblock
42517 #: ../tools/virt-win-reg.pl:585
42518 msgid ""
42519 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42520 "C<HKEY_USERS>."
42521 msgstr ""
42522
42523 #. type: textblock
42524 #: ../tools/virt-win-reg.pl:588
42525 msgid ""
42526 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42527 "supported (there is no \"current user\")."
42528 msgstr ""
42529
42530 #. type: =head1
42531 #: ../tools/virt-win-reg.pl:591
42532 msgid "ENCODING"
42533 msgstr "КОДУВАННЯ"
42534
42535 #. type: textblock
42536 #: ../tools/virt-win-reg.pl:593
42537 msgid ""
42538 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42539 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42540 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42541 "Windows-style line endings, you may need to reencode the whole file before "
42542 "or after processing."
42543 msgstr ""
42544
42545 #. type: textblock
42546 #: ../tools/virt-win-reg.pl:599
42547 msgid ""
42548 "To reencode a file from Windows format to Linux (before processing it with "
42549 "the I<--merge> option), you would do something like this:"
42550 msgstr ""
42551
42552 #. type: verbatim
42553 #: ../tools/virt-win-reg.pl:602
42554 #, no-wrap
42555 msgid ""
42556 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42557 "\n"
42558 msgstr ""
42559
42560 #. type: textblock
42561 #: ../tools/virt-win-reg.pl:604
42562 msgid ""
42563 "To go in the opposite direction, after exporting and before sending the file "
42564 "to a Windows user, do something like this:"
42565 msgstr ""
42566
42567 #. type: verbatim
42568 #: ../tools/virt-win-reg.pl:607
42569 #, no-wrap
42570 msgid ""
42571 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42572 "\n"
42573 msgstr ""
42574
42575 #. type: textblock
42576 #: ../tools/virt-win-reg.pl:609
42577 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../tools/virt-win-reg.pl:611
42582 msgid ""
42583 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42584 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42585 "style (CRLF) line endings, like this:"
42586 msgstr ""
42587
42588 #. type: verbatim
42589 #: ../tools/virt-win-reg.pl:615
42590 #, no-wrap
42591 msgid ""
42592 " $ file software.reg\n"
42593 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42594 " with CRLF line terminators\n"
42595 "\n"
42596 msgstr ""
42597
42598 #. type: textblock
42599 #: ../tools/virt-win-reg.pl:619
42600 msgid "This file would need conversion before you could I<--merge> it."
42601 msgstr ""
42602
42603 #. type: =head1
42604 #: ../tools/virt-win-reg.pl:621
42605 msgid "CurrentControlSet etc."
42606 msgstr ""
42607
42608 #. type: textblock
42609 #: ../tools/virt-win-reg.pl:623
42610 msgid ""
42611 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42612 "Registry at the level of the hive file, and therefore you cannot modify "
42613 "these."
42614 msgstr ""
42615
42616 #. type: textblock
42617 #: ../tools/virt-win-reg.pl:627
42618 msgid ""
42619 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42620 "circumstances it might refer to another control set.  The way to find out is "
42621 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42622 msgstr ""
42623
42624 #. type: verbatim
42625 #: ../tools/virt-win-reg.pl:631
42626 #, no-wrap
42627 msgid ""
42628 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42629 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42630 " \"Current\"=dword:00000001\n"
42631 " \"Default\"=dword:00000001\n"
42632 " \"Failed\"=dword:00000000\n"
42633 " \"LastKnownGood\"=dword:00000002\n"
42634 "\n"
42635 msgstr ""
42636
42637 #. type: textblock
42638 #: ../tools/virt-win-reg.pl:638
42639 msgid "\"Current\" is the one which Windows will choose when it boots."
42640 msgstr ""
42641
42642 #. type: textblock
42643 #: ../tools/virt-win-reg.pl:640
42644 msgid ""
42645 "Similarly, other C<Current...> keys in the path may need to be replaced."
42646 msgstr ""
42647
42648 #. type: =head1
42649 #: ../tools/virt-win-reg.pl:643
42650 msgid "WINDOWS TIPS"
42651 msgstr ""
42652
42653 #. type: textblock
42654 #: ../tools/virt-win-reg.pl:645
42655 msgid ""
42656 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42657 "be shut off, else you will get disk corruption."
42658 msgstr ""
42659
42660 #. type: =head2
42661 #: ../tools/virt-win-reg.pl:648
42662 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42663 msgstr ""
42664
42665 #. type: textblock
42666 #: ../tools/virt-win-reg.pl:650
42667 msgid ""
42668 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42669 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42670 "is uploaded into C<C:\\>:"
42671 msgstr ""
42672
42673 #. type: verbatim
42674 #: ../tools/virt-win-reg.pl:654
42675 #, no-wrap
42676 msgid ""
42677 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42678 "\n"
42679 msgstr ""
42680
42681 #. type: textblock
42682 #: ../tools/virt-win-reg.pl:656
42683 msgid "Prepare a regedit file containing the registry change:"
42684 msgstr ""
42685
42686 #. type: verbatim
42687 #: ../tools/virt-win-reg.pl:658
42688 #, no-wrap
42689 msgid ""
42690 " cat > test.reg <<'EOF'\n"
42691 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42692 " \"Test\"=\"c:\\\\test.bat\"\n"
42693 " EOF\n"
42694 "\n"
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-win-reg.pl:663
42699 msgid ""
42700 "In this example we use the key C<RunOnce> which means that the script will "
42701 "run precisely once when the first user logs in.  If you want it to run every "
42702 "time a user logs in, replace C<RunOnce> with C<Run>."
42703 msgstr ""
42704
42705 #. type: textblock
42706 #: ../tools/virt-win-reg.pl:667
42707 msgid "Now update the registry:"
42708 msgstr ""
42709
42710 #. type: verbatim
42711 #: ../tools/virt-win-reg.pl:669
42712 #, no-wrap
42713 msgid ""
42714 " virt-win-reg --merge WindowsGuest test.reg\n"
42715 "\n"
42716 msgstr ""
42717
42718 #. type: =head2
42719 #: ../tools/virt-win-reg.pl:671
42720 msgid "INSTALLING A SERVICE"
42721 msgstr ""
42722
42723 #. type: textblock
42724 #: ../tools/virt-win-reg.pl:673
42725 msgid ""
42726 "This section assumes you are familiar with Windows services, and you either "
42727 "have a program which handles the Windows Service Control Protocol directly "
42728 "or you want to run any program using a service wrapper like SrvAny or the "
42729 "free RHSrvAny."
42730 msgstr ""
42731
42732 #. type: textblock
42733 #: ../tools/virt-win-reg.pl:678
42734 msgid ""
42735 "First upload the program and optionally the service wrapper.  In this case "
42736 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42737 msgstr ""
42738
42739 #. type: verbatim
42740 #: ../tools/virt-win-reg.pl:682
42741 #, no-wrap
42742 msgid ""
42743 " guestfish -i -d WindowsGuest <<EOF\n"
42744 "   upload rhsrvany.exe /rhsrvany.exe\n"
42745 "   upload test.exe /test.exe\n"
42746 " EOF\n"
42747 "\n"
42748 msgstr ""
42749
42750 #. type: textblock
42751 #: ../tools/virt-win-reg.pl:687
42752 msgid ""
42753 "Prepare a regedit file containing the registry changes.  In this example, "
42754 "the first registry change is needed for the service itself or the service "
42755 "wrapper (if used).  The second registry change is only needed because I am "
42756 "using the RHSrvAny service wrapper."
42757 msgstr ""
42758
42759 #. type: verbatim
42760 #: ../tools/virt-win-reg.pl:692
42761 #, no-wrap
42762 msgid ""
42763 " cat > service.reg <<'EOF'\n"
42764 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42765 " \"Type\"=dword:00000010\n"
42766 " \"Start\"=dword:00000002\n"
42767 " \"ErrorControl\"=dword:00000001\n"
42768 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42769 " \"DisplayName\"=\"RHSrvAny\"\n"
42770 " \"ObjectName\"=\"NetworkService\"\n"
42771 " \n"
42772 msgstr ""
42773
42774 #. type: verbatim
42775 #: ../tools/virt-win-reg.pl:701
42776 #, no-wrap
42777 msgid ""
42778 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42779 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42780 " \"PWD\"=\"c:\\\\Temp\"\n"
42781 " EOF\n"
42782 "\n"
42783 msgstr ""
42784
42785 #. type: textblock
42786 #: ../tools/virt-win-reg.pl:712
42787 msgid ""
42788 "For use of C<ControlSet001> see the section above in this manual page.  You "
42789 "may need to adjust this according to the control set that is in use by the "
42790 "guest."
42791 msgstr ""
42792
42793 #. type: textblock
42794 #: ../tools/virt-win-reg.pl:718
42795 msgid ""
42796 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42797 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42798 "privileged account."
42799 msgstr ""
42800
42801 #. type: textblock
42802 #: ../tools/virt-win-reg.pl:724
42803 msgid ""
42804 "For the meaning of the magic numbers, see this Microsoft KB article: "
42805 "L<http://support.microsoft.com/kb/103000>."
42806 msgstr ""
42807
42808 #. type: textblock
42809 #: ../tools/virt-win-reg.pl:729
42810 msgid "Update the registry:"
42811 msgstr ""
42812
42813 #. type: verbatim
42814 #: ../tools/virt-win-reg.pl:731
42815 #, no-wrap
42816 msgid ""
42817 " virt-win-reg --merge WindowsGuest service.reg\n"
42818 "\n"
42819 msgstr ""
42820
42821 #. type: textblock
42822 #: ../tools/virt-win-reg.pl:735
42823 msgid ""
42824 "Be careful when passing parameters containing C<\\> (backslash) in the "
42825 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42826 "(but not both) to protect them from the shell."
42827 msgstr ""
42828
42829 #. type: textblock
42830 #: ../tools/virt-win-reg.pl:739
42831 msgid "Paths and value names are case-insensitive."
42832 msgstr ""
42833
42834 #. type: textblock
42835 #: ../tools/virt-win-reg.pl:748
42836 msgid ""
42837 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42838 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42839 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42840 msgstr ""
42841
42842 #. type: verbatim
42843 #: ../tools/virt-win-reg.pl:766
42844 #, no-wrap
42845 msgid ""
42846 " export LIBGUESTFS_DEBUG=1\n"
42847 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42848 "\n"
42849 msgstr ""
42850
42851 #. type: textblock
42852 #: ../tools/virt-win-reg.pl:769
42853 msgid ""
42854 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42855 "redhat.com/>"
42856 msgstr ""
42857
42858 #, fuzzy
42859 #~| msgid ""
42860 #~| " virt-list-partitions [--options] domname\n"
42861 #~| "\n"
42862 #~ msgid ""
42863 #~ " virt-alignment-scan [--options]\n"
42864 #~ "\n"
42865 #~ msgstr ""
42866 #~ " virt-list-partitions [--параметри] назва_домену\n"
42867 #~ "\n"
42868
42869 #, fuzzy
42870 #~| msgid ""
42871 #~| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42872 #~| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
42873 #~| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42874 #~ msgid ""
42875 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
42876 #~ "libguestfs.org/>."
42877 #~ msgstr ""
42878 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42879 #~ "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
42880 #~ "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42881
42882 #~ msgid "I<--help>"
42883 #~ msgstr "I<--help>"
42884
42885 #~ msgid "EXIT CODE"
42886 #~ msgstr "КОД ВИХОДУ"
42887
42888 #~ msgid "B<-a> | B<--all>"
42889 #~ msgstr "B<-a> | B<--all>"
42890
42891 #~ msgid "B<-x> | B<--extract> | B<--download>"
42892 #~ msgstr "B<-x> | B<--extract> | B<--download>"