d0ddda152a337483a9628b7966fdd1ec0e23739d
[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-04 19:22+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 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
33 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
37 msgid "NAME"
38 msgstr "НАЗВА"
39
40 #. type: textblock
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
43 msgstr ""
44
45 #. type: =head1
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
57 #: ../test-tool/libguestfs-test-tool.pod:7
58 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
59 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
60 #: ../tools/virt-win-reg.pl:39
61 msgid "SYNOPSIS"
62 msgstr "КОРОТКИЙ ОПИС"
63
64 #. type: verbatim
65 #: ../cat/virt-cat.pod:9
66 #, fuzzy, no-wrap
67 #| msgid ""
68 #| " virt-list-partitions [--options] domname\n"
69 #| "\n"
70 msgid ""
71 " virt-cat [--options] -d domname file [file ...]\n"
72 "\n"
73 msgstr ""
74 " virt-list-partitions [--параметри] назва_домену\n"
75 "\n"
76
77 #. type: verbatim
78 #: ../cat/virt-cat.pod:11
79 #, fuzzy, no-wrap
80 #| msgid ""
81 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
82 #| "\n"
83 msgid ""
84 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
85 "\n"
86 msgstr ""
87 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
88 "\n"
89
90 #. type: textblock
91 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
92 #: ../inspector/virt-inspector.pod:13
93 msgid "Old-style:"
94 msgstr ""
95
96 #. type: verbatim
97 #: ../cat/virt-cat.pod:15
98 #, no-wrap
99 msgid ""
100 " virt-cat domname file\n"
101 "\n"
102 msgstr ""
103
104 #. type: verbatim
105 #: ../cat/virt-cat.pod:17
106 #, no-wrap
107 msgid ""
108 " virt-cat disk.img file\n"
109 "\n"
110 msgstr ""
111
112 #. type: =head1
113 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
114 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
115 #: ../erlang/examples/guestfs-erlang.pod:16
116 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
117 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
118 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
119 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
120 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
121 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
122 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
123 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
124 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
125 #: ../test-tool/libguestfs-test-tool.pod:11
126 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
127 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
128 #: ../tools/virt-win-reg.pl:63
129 msgid "DESCRIPTION"
130 msgstr "ОПИС"
131
132 #. type: textblock
133 #: ../cat/virt-cat.pod:21
134 msgid ""
135 "C<virt-cat> is a command line tool to display the contents of C<file> where "
136 "C<file> exists in the named virtual machine (or disk image)."
137 msgstr ""
138
139 #. type: textblock
140 #: ../cat/virt-cat.pod:24
141 msgid ""
142 "Multiple filenames can be given, in which case they are concatenated "
143 "together.  Each filename must be a full path, starting at the root directory "
144 "(starting with '/')."
145 msgstr ""
146
147 #. type: textblock
148 #: ../cat/virt-cat.pod:28
149 msgid ""
150 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
151 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
152 "(see L</USING GUESTFISH> below)."
153 msgstr ""
154
155 #. type: =head1
156 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
157 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
158 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
159 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
160 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
161 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
162 #: ../tools/virt-tar.pl:50
163 msgid "EXAMPLES"
164 msgstr "ПРИКЛАДИ"
165
166 #. type: textblock
167 #: ../cat/virt-cat.pod:34
168 msgid ""
169 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
170 msgstr ""
171
172 #. type: verbatim
173 #: ../cat/virt-cat.pod:37
174 #, no-wrap
175 msgid ""
176 " virt-cat -d mydomain /etc/fstab\n"
177 "\n"
178 msgstr ""
179
180 #. type: textblock
181 #: ../cat/virt-cat.pod:39
182 msgid "List syslog messages from a VM disk image file:"
183 msgstr ""
184
185 #. type: verbatim
186 #: ../cat/virt-cat.pod:41
187 #, no-wrap
188 msgid ""
189 " virt-cat -a disk.img /var/log/messages | tail\n"
190 "\n"
191 msgstr ""
192
193 #. type: textblock
194 #: ../cat/virt-cat.pod:43
195 msgid "Find out what DHCP IP address a VM acquired:"
196 msgstr ""
197
198 #. type: verbatim
199 #: ../cat/virt-cat.pod:45
200 #, no-wrap
201 msgid ""
202 " virt-cat -d mydomain /var/log/messages | \\\n"
203 "   grep 'dhclient: bound to' | tail\n"
204 "\n"
205 msgstr ""
206
207 #. type: textblock
208 #: ../cat/virt-cat.pod:48
209 msgid "Find out what packages were recently installed:"
210 msgstr ""
211
212 #. type: verbatim
213 #: ../cat/virt-cat.pod:50
214 #, no-wrap
215 msgid ""
216 " virt-cat -d mydomain /var/log/yum.log | tail\n"
217 "\n"
218 msgstr ""
219
220 #. type: textblock
221 #: ../cat/virt-cat.pod:52
222 msgid "Find out who is logged on inside a virtual machine:"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../cat/virt-cat.pod:54
227 #, no-wrap
228 msgid ""
229 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
230 " who /tmp/utmp\n"
231 "\n"
232 msgstr ""
233
234 #. type: textblock
235 #: ../cat/virt-cat.pod:57
236 msgid "or who was logged on:"
237 msgstr ""
238
239 #. type: verbatim
240 #: ../cat/virt-cat.pod:59
241 #, no-wrap
242 msgid ""
243 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
244 " last -f /tmp/wtmp\n"
245 "\n"
246 msgstr ""
247
248 #. type: =head1
249 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
250 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
251 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
252 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
253 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
254 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
255 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
256 #: ../test-tool/libguestfs-test-tool.pod:36
257 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
258 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
259 #: ../tools/virt-win-reg.pl:96
260 msgid "OPTIONS"
261 msgstr "ПАРАМЕТРИ"
262
263 #. type: =item
264 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
265 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
266 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
267 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
268 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
269 #: ../test-tool/libguestfs-test-tool.pod:40
270 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
271 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
272 #: ../tools/virt-win-reg.pl:104
273 msgid "B<--help>"
274 msgstr "B<--help>"
275
276 #. type: textblock
277 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
278 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
279 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
280 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
281 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
282 #: ../tools/virt-win-reg.pl:106
283 msgid "Display brief help."
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
288 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
289 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
290 #, fuzzy
291 #| msgid "B<-f file>"
292 msgid "B<-a> file"
293 msgstr "B<-f файл>"
294
295 #. type: =item
296 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
297 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
298 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
299 #, fuzzy
300 #| msgid "B<--add image>"
301 msgid "B<--add> file"
302 msgstr "B<--add образ>"
303
304 #. type: textblock
305 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
306 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
307 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
308 msgid ""
309 "Add I<file> which should be a disk image from a virtual machine.  If the "
310 "virtual machine has multiple block devices, you must supply all of them with "
311 "separate I<-a> options."
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
316 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
317 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
318 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
319 msgid ""
320 "The format of the disk image is auto-detected.  To override this and force a "
321 "particular format use the I<--format=..> option."
322 msgstr ""
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
326 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
327 #, fuzzy
328 #| msgid "B<-c URI>"
329 msgid "B<-c> URI"
330 msgstr "B<-c адреса>"
331
332 #. type: =item
333 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
334 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
335 #, fuzzy
336 #| msgid "B<--connect URI>"
337 msgid "B<--connect> URI"
338 msgstr "B<--connect адреса>"
339
340 #. type: textblock
341 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
342 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
343 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
344 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
345 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
346 msgid ""
347 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
348 "to the default libvirt hypervisor."
349 msgstr ""
350
351 #. type: textblock
352 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
353 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
354 msgid ""
355 "If you specify guest block devices directly (I<-a>), then libvirt is not "
356 "used at all."
357 msgstr ""
358
359 #. type: =item
360 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
361 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
362 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
363 msgid "B<-d> guest"
364 msgstr ""
365
366 #. type: =item
367 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
368 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
369 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
370 msgid "B<--domain> guest"
371 msgstr ""
372
373 #. type: textblock
374 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
375 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
376 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
377 msgid ""
378 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
379 "instead of names."
380 msgstr ""
381
382 #. type: =item
383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
385 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
386 msgid "B<--echo-keys>"
387 msgstr "B<--echo-keys>"
388
389 #. type: textblock
390 #: ../cat/virt-cat.pod:100
391 msgid ""
392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
393 "so you cannot see what you are typing.  If you are not worried about Tempest "
394 "attacks and there is no one else in the room you can specify this flag to "
395 "see what you are typing."
396 msgstr ""
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
400 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
401 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
402 #: ../rescue/virt-rescue.pod:124
403 msgid "B<--format=raw|qcow2|..>"
404 msgstr "B<--format=raw|qcow2|..>"
405
406 #. type: =item
407 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
408 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
409 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
410 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
411 msgid "B<--format>"
412 msgstr "B<--format>"
413
414 #. type: textblock
415 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
416 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
417 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
418 #: ../rescue/virt-rescue.pod:128
419 msgid ""
420 "The default for the I<-a> option is to auto-detect the format of the disk "
421 "image.  Using this forces the disk format for I<-a> options which follow on "
422 "the command line.  Using I<--format> with no argument switches back to auto-"
423 "detection for subsequent I<-a> options."
424 msgstr ""
425
426 #. type: textblock
427 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
428 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
429 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
430 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
431 #: ../src/guestfs.pod:2791
432 msgid "For example:"
433 msgstr "Приклад:"
434
435 #. type: verbatim
436 #: ../cat/virt-cat.pod:116
437 #, fuzzy, no-wrap
438 #| msgid ""
439 #| " guestfish --format=raw -a disk.img\n"
440 #| "\n"
441 msgid ""
442 " virt-cat --format=raw -a disk.img file\n"
443 "\n"
444 msgstr ""
445 " guestfish --format=raw -a disk.img\n"
446 "\n"
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
450 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
451 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
452 msgid "forces raw format (no auto-detection) for C<disk.img>."
453 msgstr ""
454
455 #. type: verbatim
456 #: ../cat/virt-cat.pod:120
457 #, fuzzy, no-wrap
458 #| msgid ""
459 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
460 #| "\n"
461 msgid ""
462 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
463 "\n"
464 msgstr ""
465 " guestfish --format=raw -a disk.img --format -a another.img\n"
466 "\n"
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
470 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
471 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
479 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
480 #: ../rescue/virt-rescue.pod:144
481 msgid ""
482 "If you have untrusted raw-format guest disk images, you should use this "
483 "option to specify the disk format.  This avoids a possible security problem "
484 "with malicious guests (CVE-2010-3851)."
485 msgstr ""
486
487 #. type: =item
488 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
489 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
490 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
491 msgid "B<--keys-from-stdin>"
492 msgstr "B<--keys-from-stdin>"
493
494 #. type: textblock
495 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
496 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
497 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
498 msgid ""
499 "Read key or passphrase parameters from stdin.  The default is to try to read "
500 "passphrases from the user by opening C</dev/tty>."
501 msgstr ""
502
503 #. type: =item
504 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
505 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
506 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
507 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
508 #: ../sparsify/virt-sparsify.pod:159
509 msgid "B<-v>"
510 msgstr "B<-v>"
511
512 #. type: =item
513 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
514 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
515 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
516 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
517 #: ../sparsify/virt-sparsify.pod:161
518 msgid "B<--verbose>"
519 msgstr "B<--verbose>"
520
521 #. type: textblock
522 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
523 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
524 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
525 #: ../sparsify/virt-sparsify.pod:163
526 msgid "Enable verbose messages for debugging."
527 msgstr ""
528
529 #. type: =item
530 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
531 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
532 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
533 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
534 #: ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
535 msgid "B<-V>"
536 msgstr "B<-V>"
537
538 #. type: =item
539 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
540 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
541 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
542 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
543 #: ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167
544 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70
545 #: ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119
546 #: ../tools/virt-win-reg.pl:112
547 msgid "B<--version>"
548 msgstr "B<--version>"
549
550 #. type: textblock
551 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
552 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
553 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
554 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
555 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
556 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
557 #: ../tools/virt-win-reg.pl:114
558 msgid "Display version number and exit."
559 msgstr "Показати дані щодо версії і завершити роботу."
560
561 #. type: =item
562 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
563 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
564 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
565 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
566 #: ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
567 msgid "B<-x>"
568 msgstr "B<-x>"
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
572 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
573 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
574 #: ../sparsify/virt-sparsify.pod:173
575 msgid "Enable tracing of libguestfs API calls."
576 msgstr ""
577
578 #. type: =head1
579 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
580 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
581 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
582 msgstr ""
583
584 #. type: textblock
585 #: ../cat/virt-cat.pod:154
586 msgid "Previous versions of virt-cat allowed you to write either:"
587 msgstr ""
588
589 #. type: verbatim
590 #: ../cat/virt-cat.pod:156
591 #, fuzzy, no-wrap
592 #| msgid ""
593 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
594 #| "\n"
595 msgid ""
596 " virt-cat disk.img [disk.img ...] file\n"
597 "\n"
598 msgstr ""
599 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
600 "\n"
601
602 #. type: textblock
603 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
604 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
605 #, fuzzy
606 #| msgid "or:"
607 msgid "or"
608 msgstr "або:"
609
610 #. type: verbatim
611 #: ../cat/virt-cat.pod:160
612 #, no-wrap
613 msgid ""
614 " virt-cat guestname file\n"
615 "\n"
616 msgstr ""
617
618 #. type: textblock
619 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
620 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
621 msgid ""
622 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
623 "the confusing case where a disk image might have the same name as a guest."
624 msgstr ""
625
626 #. type: textblock
627 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
628 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
629 msgid "For compatibility the old style is still supported."
630 msgstr ""
631
632 #. type: =head1
633 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
634 msgid "USING GUESTFISH"
635 msgstr ""
636
637 #. type: textblock
638 #: ../cat/virt-cat.pod:170
639 msgid ""
640 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
641 "C<virt-cat> doesn't work."
642 msgstr ""
643
644 #. type: textblock
645 #: ../cat/virt-cat.pod:173
646 msgid "Using C<virt-cat> is approximately equivalent to doing:"
647 msgstr ""
648
649 #. type: verbatim
650 #: ../cat/virt-cat.pod:175
651 #, fuzzy, no-wrap
652 #| msgid ""
653 #| " guestfish --ro -d myguest -i\n"
654 #| "\n"
655 msgid ""
656 " guestfish --ro -i -d domname download file -\n"
657 "\n"
658 msgstr ""
659 " guestfish --ro -d myguest -i\n"
660 "\n"
661
662 #. type: textblock
663 #: ../cat/virt-cat.pod:177
664 msgid ""
665 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
666 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
667 msgstr ""
668
669 #. type: textblock
670 #: ../cat/virt-cat.pod:181
671 msgid ""
672 "The command above uses libguestfs's guest inspection feature and so does not "
673 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
674 "disk images that don't contain guests.  To display a file from a disk image "
675 "directly, use:"
676 msgstr ""
677
678 #. type: verbatim
679 #: ../cat/virt-cat.pod:186
680 #, fuzzy, no-wrap
681 #| msgid ""
682 #| " guestfish [--ro] -i disk.img\n"
683 #| "\n"
684 msgid ""
685 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
686 "\n"
687 msgstr ""
688 " guestfish [--ro] -i disk.img\n"
689 "\n"
690
691 #. type: textblock
692 #: ../cat/virt-cat.pod:188
693 msgid ""
694 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
695 "the disk image, and C<file> is the full path to the file."
696 msgstr ""
697
698 #. type: =head1
699 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
700 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
701 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
702 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
703 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
704 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
705 msgid "SHELL QUOTING"
706 msgstr ""
707
708 #. type: textblock
709 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
710 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
711 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
712 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
713 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
714 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
715 msgid ""
716 "Libvirt guest names can contain arbitrary characters, some of which have "
717 "meaning to the shell such as C<#> and space.  You may need to quote or "
718 "escape these characters on the command line.  See the shell manual page L<sh"
719 "(1)> for details."
720 msgstr ""
721
722 #. type: =head1
723 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
724 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
725 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
726 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
727 #: ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
728 msgid "EXIT STATUS"
729 msgstr ""
730
731 #. type: textblock
732 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
733 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
734 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
735 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
736 msgid ""
737 "This program returns 0 if successful, or non-zero if there was an error."
738 msgstr ""
739
740 #. type: =head1
741 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
742 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
743 #: ../erlang/examples/guestfs-erlang.pod:97
744 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
745 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
746 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
747 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
748 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
749 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
750 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
751 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
752 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3167
753 #: ../test-tool/libguestfs-test-tool.pod:100
754 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
755 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
756 #: ../tools/virt-win-reg.pl:746
757 msgid "SEE ALSO"
758 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
759
760 #. type: textblock
761 #: ../cat/virt-cat.pod:205
762 #, fuzzy
763 #| msgid ""
764 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
765 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
766 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
767 msgid ""
768 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
769 "tar-out(1)>, L<http://libguestfs.org/>."
770 msgstr ""
771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
774
775 #. type: =head1
776 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
777 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
778 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
779 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
780 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
781 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
782 msgid "AUTHOR"
783 msgstr "АВТОР"
784
785 #. type: textblock
786 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
787 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
788 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
789 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
790 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
791 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
792 #: ../tools/virt-win-reg.pl:774
793 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
794 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
795
796 #. type: =head1
797 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
798 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
799 #: ../erlang/examples/guestfs-erlang.pod:114
800 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
801 #: ../fish/guestfish.pod:1265 ../fish/virt-copy-in.pod:64
802 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
803 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
804 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
805 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
806 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
807 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
808 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3246
809 #: ../test-tool/libguestfs-test-tool.pod:110
810 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
811 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
812 #: ../tools/virt-win-reg.pl:776
813 msgid "COPYRIGHT"
814 msgstr "АВТОРСЬКІ ПРАВА"
815
816 #. type: textblock
817 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
818 #: ../resize/virt-resize.pod:641
819 #, fuzzy
820 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
821 msgid "Copyright (C) 2010-2011 Red Hat Inc."
822 msgstr "© Red Hat Inc., 2009–2010"
823
824 #. type: textblock
825 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
826 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
827 #: ../fish/guestfish.pod:1270 ../fish/virt-copy-in.pod:69
828 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
829 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
830 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
831 #: ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272
832 #: ../test-tool/libguestfs-test-tool.pod:115
833 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
834 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
835 #: ../tools/virt-win-reg.pl:780
836 msgid ""
837 "This program is free software; you can redistribute it and/or modify it "
838 "under the terms of the GNU General Public License as published by the Free "
839 "Software Foundation; either version 2 of the License, or (at your option) "
840 "any later version."
841 msgstr ""
842
843 #. type: textblock
844 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
845 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
846 #: ../fish/guestfish.pod:1275 ../fish/virt-copy-in.pod:74
847 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
848 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
849 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
850 #: ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277
851 #: ../test-tool/libguestfs-test-tool.pod:120
852 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
853 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
854 #: ../tools/virt-win-reg.pl:785
855 msgid ""
856 "This program is distributed in the hope that it will be useful, but WITHOUT "
857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
858 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
859 "more details."
860 msgstr ""
861 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
862 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
863 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
864 "дізнатися з GNU General Public License."
865
866 #. type: textblock
867 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
868 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
869 #: ../fish/guestfish.pod:1280 ../fish/virt-copy-in.pod:79
870 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
871 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
872 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
873 #: ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282
874 #: ../test-tool/libguestfs-test-tool.pod:125
875 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
876 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
877 #: ../tools/virt-win-reg.pl:790
878 msgid ""
879 "You should have received a copy of the GNU General Public License along with "
880 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
881 "Ave, Cambridge, MA 02139, USA."
882 msgstr ""
883
884 #. type: textblock
885 #: ../cat/virt-filesystems.pod:5
886 msgid ""
887 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
888 "virtual machine or disk image"
889 msgstr ""
890
891 #. type: verbatim
892 #: ../cat/virt-filesystems.pod:9
893 #, fuzzy, no-wrap
894 #| msgid ""
895 #| " virt-list-partitions [--options] domname\n"
896 #| "\n"
897 msgid ""
898 " virt-filesystems [--options] -d domname\n"
899 "\n"
900 msgstr ""
901 " virt-list-partitions [--параметри] назва_домену\n"
902 "\n"
903
904 #. type: verbatim
905 #: ../cat/virt-filesystems.pod:11
906 #, fuzzy, no-wrap
907 #| msgid ""
908 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
909 #| "\n"
910 msgid ""
911 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
912 "\n"
913 msgstr ""
914 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
915 "\n"
916
917 #. type: textblock
918 #: ../cat/virt-filesystems.pod:15
919 msgid ""
920 "This tool allows you to discover filesystems, partitions, logical volumes, "
921 "and their sizes in a disk image or virtual machine.  It is a replacement for "
922 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
923 msgstr ""
924
925 #. type: textblock
926 #: ../cat/virt-filesystems.pod:20
927 msgid ""
928 "One use for this tool is from shell scripts to iterate over all filesystems "
929 "from a disk image:"
930 msgstr ""
931
932 #. type: verbatim
933 #: ../cat/virt-filesystems.pod:23
934 #, no-wrap
935 msgid ""
936 " for fs in $(virt-filesystems -a disk.img); do\n"
937 "   # ...\n"
938 " done\n"
939 "\n"
940 msgstr ""
941
942 #. type: textblock
943 #: ../cat/virt-filesystems.pod:27
944 msgid ""
945 "Another use is to list partitions before using another tool to modify those "
946 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
947 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
948 msgstr ""
949
950 #. type: textblock
951 #: ../cat/virt-filesystems.pod:32
952 msgid ""
953 "Various command line options control what this program displays.  You need "
954 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
955 "guest respectively.  If you just specify that then the program shows "
956 "filesystems found, one per line, like this:"
957 msgstr ""
958
959 #. type: verbatim
960 #: ../cat/virt-filesystems.pod:37
961 #, no-wrap
962 msgid ""
963 " $ virt-filesystems -a disk.img\n"
964 " /dev/sda1\n"
965 " /dev/vg_guest/lv_root\n"
966 "\n"
967 msgstr ""
968
969 #. type: textblock
970 #: ../cat/virt-filesystems.pod:41
971 msgid ""
972 "If you add I<-l> or I<--long> then the output includes extra information:"
973 msgstr ""
974
975 #. type: verbatim
976 #: ../cat/virt-filesystems.pod:44
977 #, no-wrap
978 msgid ""
979 " $ virt-filesystems -a disk.img -l\n"
980 " Name                   Type         VFS   Label  Size\n"
981 " /dev/sda1              filesystem   ext4  boot   524288000\n"
982 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
983 "\n"
984 msgstr ""
985
986 #. type: textblock
987 #: ../cat/virt-filesystems.pod:49
988 msgid ""
989 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
990 "shown as well:"
991 msgstr ""
992
993 #. type: verbatim
994 #: ../cat/virt-filesystems.pod:52
995 #, no-wrap
996 msgid ""
997 " $ virt-filesystems -a disk.img --extra\n"
998 " /dev/sda1\n"
999 " /dev/vg_guest/lv_root\n"
1000 " /dev/vg_guest/lv_swap\n"
1001 " /dev/vg_guest/lv_data\n"
1002 "\n"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../cat/virt-filesystems.pod:58
1007 msgid ""
1008 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1009 msgstr ""
1010
1011 #. type: verbatim
1012 #: ../cat/virt-filesystems.pod:60
1013 #, no-wrap
1014 msgid ""
1015 " $ virt-filesystems -a disk.img --partitions\n"
1016 " /dev/sda1\n"
1017 " /dev/sda2\n"
1018 "\n"
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-filesystems.pod:64
1023 msgid ""
1024 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1025 "volumes>, I<--block-devices> to list those items."
1026 msgstr ""
1027
1028 #. type: textblock
1029 #: ../cat/virt-filesystems.pod:67
1030 msgid ""
1031 "You can use these options in combination as well (if you want a combination "
1032 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1033 "items fall into several categories (eg. C</dev/sda1> might be both a "
1034 "partition and a filesystem).  These items are listed several times.  To get "
1035 "a list which includes absolutely everything that virt-filesystems knows "
1036 "about, use the I<--all> option."
1037 msgstr ""
1038
1039 #. type: textblock
1040 #: ../cat/virt-filesystems.pod:74
1041 msgid ""
1042 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1043 "uuid> option to display device and filesystem UUIDs in the long output."
1044 msgstr ""
1045
1046 #. type: textblock
1047 #: ../cat/virt-filesystems.pod:78
1048 msgid ""
1049 "I<--all --long --uuid> is a useful combination to display all possible "
1050 "information about everything."
1051 msgstr ""
1052
1053 #. type: verbatim
1054 #: ../cat/virt-filesystems.pod:81
1055 #, no-wrap
1056 msgid ""
1057 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1058 " Name      Type       VFS  Label           Size Parent   UUID\n"
1059 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1060 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1061 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1062 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1063 " /dev/sda  device     -    -               20G  -        -\n"
1064 "\n"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:89
1069 msgid ""
1070 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1071 msgstr ""
1072
1073 #. type: =item
1074 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1075 #, fuzzy
1076 #| msgid "B<--help>"
1077 msgid "B<--all>"
1078 msgstr "B<--help>"
1079
1080 #. type: textblock
1081 #: ../cat/virt-filesystems.pod:112
1082 msgid ""
1083 "Display everything.  This is currently the same as specifying these options: "
1084 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1085 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1086 "added to this list in future)."
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../cat/virt-filesystems.pod:117
1091 #, fuzzy
1092 #| msgid "See also L</is-lv>."
1093 msgid "See also I<--long>."
1094 msgstr "Див. також L</is-lv>."
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:119
1098 #, fuzzy
1099 #| msgid "B<--live>"
1100 msgid "B<--blkdevs>"
1101 msgstr "B<--live>"
1102
1103 #. type: =item
1104 #: ../cat/virt-filesystems.pod:121
1105 #, fuzzy
1106 #| msgid "is-blockdev"
1107 msgid "B<--block-devices>"
1108 msgstr "is-blockdev"
1109
1110 #. type: textblock
1111 #: ../cat/virt-filesystems.pod:123
1112 #, fuzzy
1113 #| msgid "is-blockdev"
1114 msgid "Display block devices."
1115 msgstr "is-blockdev"
1116
1117 #. type: =item
1118 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1119 #, fuzzy
1120 #| msgid "B<--csh>"
1121 msgid "B<--csv>"
1122 msgstr "B<--csh>"
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1126 msgid ""
1127 "Write out the results in CSV format (comma-separated values).  This format "
1128 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1129 "ABOUT CSV FORMAT> below."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../cat/virt-filesystems.pod:150
1134 msgid ""
1135 "When prompting for keys and passphrases, virt-filesystems normally turns "
1136 "echoing off so you cannot see what you are typing.  If you are not worried "
1137 "about Tempest attacks and there is no one else in the room you can specify "
1138 "this flag to see what you are typing."
1139 msgstr ""
1140
1141 #. type: =item
1142 #: ../cat/virt-filesystems.pod:155
1143 #, fuzzy
1144 #| msgid "B<--ro>"
1145 msgid "B<--extra>"
1146 msgstr "B<--ro>"
1147
1148 #. type: textblock
1149 #: ../cat/virt-filesystems.pod:157
1150 msgid ""
1151 "This causes filesystems that are not ordinary, mountable filesystems to be "
1152 "displayed.  This category includes swapspace, and filesystems that are empty "
1153 "or contain unknown data."
1154 msgstr ""
1155
1156 #. type: textblock
1157 #: ../cat/virt-filesystems.pod:161
1158 msgid "This option implies I<--filesystems>."
1159 msgstr ""
1160
1161 #. type: =item
1162 #: ../cat/virt-filesystems.pod:163
1163 #, fuzzy
1164 #| msgid "list-filesystems"
1165 msgid "B<--filesystems>"
1166 msgstr "list-filesystems"
1167
1168 #. type: textblock
1169 #: ../cat/virt-filesystems.pod:165
1170 msgid ""
1171 "Display mountable filesystems.  If no display option was selected then this "
1172 "option is implied."
1173 msgstr ""
1174
1175 #. type: textblock
1176 #: ../cat/virt-filesystems.pod:168
1177 msgid "With I<--extra>, non-mountable filesystems are shown too."
1178 msgstr ""
1179
1180 #. type: verbatim
1181 #: ../cat/virt-filesystems.pod:181
1182 #, fuzzy, no-wrap
1183 #| msgid ""
1184 #| " guestfish --format=raw -a disk.img\n"
1185 #| "\n"
1186 msgid ""
1187 " virt-filesystems --format=raw -a disk.img\n"
1188 "\n"
1189 msgstr ""
1190 " guestfish --format=raw -a disk.img\n"
1191 "\n"
1192
1193 #. type: verbatim
1194 #: ../cat/virt-filesystems.pod:185
1195 #, fuzzy, no-wrap
1196 #| msgid ""
1197 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1198 #| "\n"
1199 msgid ""
1200 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1201 "\n"
1202 msgstr ""
1203 " guestfish --format=raw -a disk.img --format -a another.img\n"
1204 "\n"
1205
1206 #. type: =item
1207 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1208 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1209 #: ../tools/virt-list-partitions.pl:109
1210 msgid "B<-h>"
1211 msgstr "B<-h>"
1212
1213 #. type: =item
1214 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1215 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1216 #, fuzzy
1217 #| msgid "B<-h> | B<--human-readable>"
1218 msgid "B<--human-readable>"
1219 msgstr "B<-h> | B<--human-readable>"
1220
1221 #. type: textblock
1222 #: ../cat/virt-filesystems.pod:198
1223 msgid "In I<--long> mode, display sizes in human-readable format."
1224 msgstr ""
1225
1226 #. type: =item
1227 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1228 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1229 msgid "B<-l>"
1230 msgstr ""
1231
1232 #. type: =item
1233 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1234 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1235 #, fuzzy
1236 #| msgid "B<--ro>"
1237 msgid "B<--long>"
1238 msgstr "B<--ro>"
1239
1240 #. type: textblock
1241 #: ../cat/virt-filesystems.pod:209
1242 msgid "Display extra columns of data (\"long format\")."
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../cat/virt-filesystems.pod:211
1247 msgid "A title row is added unless you also specify I<--no-title>."
1248 msgstr ""
1249
1250 #. type: textblock
1251 #: ../cat/virt-filesystems.pod:213
1252 msgid ""
1253 "The extra columns displayed depend on what output you select, and the "
1254 "ordering of columns may change in future versions.  Use the title row, I<--"
1255 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1256 "programs."
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-filesystems.pod:218
1261 msgid ""
1262 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1263 "default is to show raw numbers of I<bytes>."
1264 msgstr ""
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:221
1268 msgid "Use I<--uuid> to display UUIDs too."
1269 msgstr ""
1270
1271 #. type: =item
1272 #: ../cat/virt-filesystems.pod:223
1273 #, fuzzy
1274 #| msgid "B<--live>"
1275 msgid "B<--lvs>"
1276 msgstr "B<--live>"
1277
1278 #. type: =item
1279 #: ../cat/virt-filesystems.pod:225
1280 #, fuzzy
1281 #| msgid "B<--live>"
1282 msgid "B<--logvols>"
1283 msgstr "B<--live>"
1284
1285 #. type: =item
1286 #: ../cat/virt-filesystems.pod:227
1287 #, fuzzy
1288 #| msgid "B<--live>"
1289 msgid "B<--logical-volumes>"
1290 msgstr "B<--live>"
1291
1292 #. type: textblock
1293 #: ../cat/virt-filesystems.pod:229
1294 msgid ""
1295 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1296 "of whether the LVs contain filesystems."
1297 msgstr ""
1298
1299 #. type: =item
1300 #: ../cat/virt-filesystems.pod:232
1301 #, fuzzy
1302 #| msgid "B<--listen>"
1303 msgid "B<--no-title>"
1304 msgstr "B<--listen>"
1305
1306 #. type: textblock
1307 #: ../cat/virt-filesystems.pod:234
1308 msgid "In I<--long> mode, don't add a title row."
1309 msgstr ""
1310
1311 #. type: textblock
1312 #: ../cat/virt-filesystems.pod:236
1313 msgid ""
1314 "Note that the order of the columns is not fixed, and may change in future "
1315 "versions of virt-filesystems, so using this option may give you unexpected "
1316 "surprises."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-filesystems.pod:240
1321 #, fuzzy
1322 #| msgid "B<--partition>"
1323 msgid "B<--parts>"
1324 msgstr "B<--partition>"
1325
1326 #. type: =item
1327 #: ../cat/virt-filesystems.pod:242
1328 #, fuzzy
1329 #| msgid "B<--partition>"
1330 msgid "B<--partitions>"
1331 msgstr "B<--partition>"
1332
1333 #. type: textblock
1334 #: ../cat/virt-filesystems.pod:244
1335 msgid ""
1336 "Display partitions.  In this mode, these are displayed irrespective of "
1337 "whether the partitions contain filesystems."
1338 msgstr ""
1339
1340 #. type: =item
1341 #: ../cat/virt-filesystems.pod:247
1342 #, fuzzy
1343 #| msgid "B<--csh>"
1344 msgid "B<--pvs>"
1345 msgstr "B<--csh>"
1346
1347 #. type: =item
1348 #: ../cat/virt-filesystems.pod:249
1349 #, fuzzy
1350 #| msgid "B<--verbose>"
1351 msgid "B<--physvols>"
1352 msgstr "B<--verbose>"
1353
1354 #. type: =item
1355 #: ../cat/virt-filesystems.pod:251
1356 msgid "B<--physical-volumes>"
1357 msgstr ""
1358
1359 #. type: textblock
1360 #: ../cat/virt-filesystems.pod:253
1361 msgid "Display LVM physical volumes."
1362 msgstr ""
1363
1364 #. type: =item
1365 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1366 #, fuzzy
1367 #| msgid "B<--live>"
1368 msgid "B<--uuid>"
1369 msgstr "B<--live>"
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:257
1373 #, fuzzy
1374 #| msgid "B<--csh>"
1375 msgid "B<--uuids>"
1376 msgstr "B<--csh>"
1377
1378 #. type: textblock
1379 #: ../cat/virt-filesystems.pod:259
1380 msgid "In I<--long> mode, display UUIDs as well."
1381 msgstr ""
1382
1383 #. type: =item
1384 #: ../cat/virt-filesystems.pod:273
1385 #, fuzzy
1386 #| msgid "B<--csh>"
1387 msgid "B<--vgs>"
1388 msgstr "B<--csh>"
1389
1390 #. type: =item
1391 #: ../cat/virt-filesystems.pod:275
1392 #, fuzzy
1393 #| msgid "B<--verbose>"
1394 msgid "B<--volgroups>"
1395 msgstr "B<--verbose>"
1396
1397 #. type: =item
1398 #: ../cat/virt-filesystems.pod:277
1399 #, fuzzy
1400 #| msgid "B<--verbose>"
1401 msgid "B<--volume-groups>"
1402 msgstr "B<--verbose>"
1403
1404 #. type: textblock
1405 #: ../cat/virt-filesystems.pod:279
1406 msgid "Display LVM volume groups."
1407 msgstr ""
1408
1409 #. type: =head1
1410 #: ../cat/virt-filesystems.pod:287
1411 msgid "COLUMNS"
1412 msgstr ""
1413
1414 #. type: textblock
1415 #: ../cat/virt-filesystems.pod:289
1416 msgid ""
1417 "Note that columns in the output are subject to reordering and change in "
1418 "future versions of this tool."
1419 msgstr ""
1420
1421 #. type: =item
1422 #: ../cat/virt-filesystems.pod:294
1423 msgid "B<Name>"
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-filesystems.pod:296
1428 msgid "The filesystem, partition, block device or LVM name."
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:298
1433 msgid ""
1434 "For device and partition names these are displayed as canonical libguestfs "
1435 "names, so that for example C</dev/sda2> is the second partition on the first "
1436 "device."
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-filesystems.pod:302
1441 msgid ""
1442 "If the I<--long> option is B<not> specified, then only the name column is "
1443 "shown in the output."
1444 msgstr ""
1445
1446 #. type: =item
1447 #: ../cat/virt-filesystems.pod:305
1448 #, fuzzy
1449 #| msgid "B<-N type>"
1450 msgid "B<Type>"
1451 msgstr "B<-N тип>"
1452
1453 #. type: textblock
1454 #: ../cat/virt-filesystems.pod:307
1455 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1456 msgstr ""
1457
1458 #. type: =item
1459 #: ../cat/virt-filesystems.pod:309
1460 msgid "B<VFS>"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:311
1465 msgid ""
1466 "If there is a filesystem, then this column displays the filesystem type if "
1467 "one could be detected, eg. C<ext4>."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:314
1472 msgid "B<Label>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:316
1477 msgid ""
1478 "If the object has a label (used for identifying and mounting filesystems) "
1479 "then this column contains the label."
1480 msgstr ""
1481
1482 #. type: =item
1483 #: ../cat/virt-filesystems.pod:319
1484 #, fuzzy
1485 #| msgid "B<part_size>"
1486 msgid "B<Size>"
1487 msgstr "B<part_size>"
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:321
1491 msgid ""
1492 "The size of the object in bytes.  If the I<--human> option is used then the "
1493 "size is displayed in a human-readable form."
1494 msgstr ""
1495
1496 #. type: =item
1497 #: ../cat/virt-filesystems.pod:324
1498 msgid "B<Parent>"
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:326
1503 msgid ""
1504 "The parent column records the parent relationship between objects.  For "
1505 "example, if the object is a partition, then this column contains the name of "
1506 "the containing device.  If the object is a logical volume, then this column "
1507 "is the name of the volume group."
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../cat/virt-filesystems.pod:331
1512 msgid "B<UUID>"
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-filesystems.pod:333
1517 msgid ""
1518 "If the object has a UUID (used for identifying and mounting filesystems and "
1519 "block devices) then this column contains the UUID as a string."
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-filesystems.pod:337
1524 msgid "The UUID is only displayed if the I<--uuid> option is given."
1525 msgstr ""
1526
1527 #. type: =head1
1528 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1529 #: ../df/virt-df.pod:191
1530 msgid "NOTE ABOUT CSV FORMAT"
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1535 #: ../df/virt-df.pod:193
1536 msgid ""
1537 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1538 "should be easy to parse, but it is definitely not easy to parse."
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1543 #: ../df/virt-df.pod:196
1544 msgid ""
1545 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1546 "reliably.  This example has two columns:"
1547 msgstr ""
1548
1549 #. type: verbatim
1550 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1551 #: ../df/virt-df.pod:199
1552 #, no-wrap
1553 msgid ""
1554 " \"foo,bar\",baz\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1560 #: ../df/virt-df.pod:201
1561 msgid ""
1562 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1563 "reliably.  This example has one row:"
1564 msgstr ""
1565
1566 #. type: verbatim
1567 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1568 #: ../df/virt-df.pod:204
1569 #, no-wrap
1570 msgid ""
1571 " \"foo\n"
1572 " bar\",baz\n"
1573 "\n"
1574 msgstr ""
1575
1576 #. type: textblock
1577 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1578 #: ../df/virt-df.pod:207
1579 msgid ""
1580 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1581 "packaged in major Linux distributions)."
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1586 #: ../df/virt-df.pod:210
1587 msgid ""
1588 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1589 "or Python's built-in csv library)."
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1594 #: ../df/virt-df.pod:213
1595 msgid "Most spreadsheets and databases can import CSV directly."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:379
1600 #, fuzzy
1601 #| msgid ""
1602 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1603 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1604 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1605 msgid ""
1606 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1607 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1608 "libguestfs.org/>."
1609 msgstr ""
1610 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1611 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1612 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1616 #: ../tools/virt-win-reg.pl:778
1617 msgid "Copyright (C) 2010 Red Hat Inc."
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../cat/virt-ls.pod:5
1622 msgid "virt-ls - List files in a virtual machine"
1623 msgstr ""
1624
1625 #. type: verbatim
1626 #: ../cat/virt-ls.pod:9
1627 #, no-wrap
1628 msgid ""
1629 " virt-ls [--options] -d domname directory [directory ...]\n"
1630 "\n"
1631 msgstr ""
1632
1633 #. type: verbatim
1634 #: ../cat/virt-ls.pod:11
1635 #, fuzzy, no-wrap
1636 #| msgid ""
1637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1638 #| "\n"
1639 msgid ""
1640 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1641 "\n"
1642 msgstr ""
1643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1644 "\n"
1645
1646 #. type: textblock
1647 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1648 msgid "Old style:"
1649 msgstr ""
1650
1651 #. type: verbatim
1652 #: ../cat/virt-ls.pod:15
1653 #, fuzzy, no-wrap
1654 #| msgid ""
1655 #| " virt-list-partitions [--options] domname\n"
1656 #| "\n"
1657 msgid ""
1658 " virt-ls [--options] domname directory\n"
1659 "\n"
1660 msgstr ""
1661 " virt-list-partitions [--параметри] назва_домену\n"
1662 "\n"
1663
1664 #. type: verbatim
1665 #: ../cat/virt-ls.pod:17
1666 #, fuzzy, no-wrap
1667 #| msgid ""
1668 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1669 #| "\n"
1670 msgid ""
1671 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1672 "\n"
1673 msgstr ""
1674 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1675 "\n"
1676
1677 #. type: textblock
1678 #: ../cat/virt-ls.pod:21
1679 msgid ""
1680 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1681 "more from a virtual machine or disk image."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:24
1686 msgid ""
1687 "Multiple directory names can be given, in which case the output from each is "
1688 "concatenated."
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-ls.pod:27
1693 msgid ""
1694 "To list directories from a libvirt guest use the I<-d> option to specify the "
1695 "name of the guest.  For a disk image, use the I<-a> option."
1696 msgstr ""
1697
1698 #. type: textblock
1699 #: ../cat/virt-ls.pod:31
1700 msgid ""
1701 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1702 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1703 "(3)> API."
1704 msgstr ""
1705
1706 #. type: textblock
1707 #: ../cat/virt-ls.pod:37
1708 msgid "Get a list of all files and directories in a virtual machine:"
1709 msgstr ""
1710
1711 #. type: verbatim
1712 #: ../cat/virt-ls.pod:39
1713 #, fuzzy, no-wrap
1714 #| msgid ""
1715 #| " guestfish --ro -d myguest -i\n"
1716 #| "\n"
1717 msgid ""
1718 " virt-ls -R -d guest /\n"
1719 "\n"
1720 msgstr ""
1721 " guestfish --ro -d myguest -i\n"
1722 "\n"
1723
1724 #. type: textblock
1725 #: ../cat/virt-ls.pod:41
1726 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1727 msgstr ""
1728
1729 #. type: verbatim
1730 #: ../cat/virt-ls.pod:43
1731 #, no-wrap
1732 msgid ""
1733 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1734 "\n"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:45
1739 msgid "List all public-writable directories in a Linux virtual machine:"
1740 msgstr ""
1741
1742 #. type: verbatim
1743 #: ../cat/virt-ls.pod:47
1744 #, no-wrap
1745 msgid ""
1746 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1747 "\n"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-ls.pod:49
1752 msgid "List all Unix domain sockets in a Linux virtual machine:"
1753 msgstr ""
1754
1755 #. type: verbatim
1756 #: ../cat/virt-ls.pod:51
1757 #, no-wrap
1758 msgid ""
1759 " virt-ls -lR -d guest / | grep '^s'\n"
1760 "\n"
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../cat/virt-ls.pod:53
1765 msgid "List all regular files with filenames ending in '.png':"
1766 msgstr ""
1767
1768 #. type: verbatim
1769 #: ../cat/virt-ls.pod:55
1770 #, no-wrap
1771 msgid ""
1772 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1773 "\n"
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-ls.pod:57
1778 msgid "To display files larger than 10MB in home directories:"
1779 msgstr ""
1780
1781 #. type: verbatim
1782 #: ../cat/virt-ls.pod:59
1783 #, no-wrap
1784 msgid ""
1785 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1786 "\n"
1787 msgstr ""
1788
1789 #. type: textblock
1790 #: ../cat/virt-ls.pod:61
1791 msgid "Find everything modified in the last 7 days:"
1792 msgstr ""
1793
1794 #. type: verbatim
1795 #: ../cat/virt-ls.pod:63
1796 #, no-wrap
1797 msgid ""
1798 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-ls.pod:65
1804 msgid "Find regular files modified in the last 24 hours:"
1805 msgstr ""
1806
1807 #. type: verbatim
1808 #: ../cat/virt-ls.pod:67
1809 #, no-wrap
1810 msgid ""
1811 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1812 "\n"
1813 msgstr ""
1814
1815 #. type: =head2
1816 #: ../cat/virt-ls.pod:69
1817 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:71
1822 msgid ""
1823 "Find the differences between files in a guest and an earlier snapshot of the "
1824 "same guest."
1825 msgstr ""
1826
1827 #. type: verbatim
1828 #: ../cat/virt-ls.pod:74
1829 #, no-wrap
1830 msgid ""
1831 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1832 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1833 " diff -u old new | less\n"
1834 "\n"
1835 msgstr ""
1836
1837 #. type: textblock
1838 #: ../cat/virt-ls.pod:78
1839 msgid ""
1840 "The commands above won't find files where the content has changed but the "
1841 "metadata (eg. file size and modification date) is the same.  To do that, you "
1842 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1843 "checksum> can be quite slow since it has to read and compute a checksum of "
1844 "every regular file in the virtual machine."
1845 msgstr ""
1846
1847 #. type: =head1
1848 #: ../cat/virt-ls.pod:84
1849 msgid "OUTPUT MODES"
1850 msgstr ""
1851
1852 #. type: textblock
1853 #: ../cat/virt-ls.pod:86
1854 msgid ""
1855 "C<virt-ls> has four output modes, controlled by different combinations of "
1856 "the I<-l> and I<-R> options."
1857 msgstr ""
1858
1859 #. type: =head2
1860 #: ../cat/virt-ls.pod:89
1861 msgid "SIMPLE LISTING"
1862 msgstr ""
1863
1864 #. type: textblock
1865 #: ../cat/virt-ls.pod:91
1866 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:93
1871 #, no-wrap
1872 msgid ""
1873 " $ virt-ls -d guest /\n"
1874 " bin\n"
1875 " boot\n"
1876 " [etc.]\n"
1877 "\n"
1878 msgstr ""
1879
1880 #. type: =head2
1881 #: ../cat/virt-ls.pod:98
1882 #, fuzzy
1883 #| msgid "MOUNTING"
1884 msgid "LONG LISTING"
1885 msgstr "МОНТУВАННЯ"
1886
1887 #. type: textblock
1888 #: ../cat/virt-ls.pod:100
1889 msgid ""
1890 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1891 "(more specifically, like the C<guestfs_ll> function)."
1892 msgstr ""
1893
1894 #. type: verbatim
1895 #: ../cat/virt-ls.pod:103
1896 #, no-wrap
1897 msgid ""
1898 " $ virt-ls -l -d guest /\n"
1899 " total 204\n"
1900 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1901 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1902 " [etc.]\n"
1903 "\n"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:109
1908 msgid ""
1909 "Note that while this is useful for displaying a directory, do not try "
1910 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1911 "instead."
1912 msgstr ""
1913
1914 #. type: =head2
1915 #: ../cat/virt-ls.pod:113
1916 msgid "RECURSIVE LISTING"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:115
1921 msgid ""
1922 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1923 "and directories recursively:"
1924 msgstr ""
1925
1926 #. type: verbatim
1927 #: ../cat/virt-ls.pod:118
1928 #, no-wrap
1929 msgid ""
1930 " $ virt-ls -R -d guest /tmp\n"
1931 " foo\n"
1932 " foo/bar\n"
1933 " [etc.]\n"
1934 "\n"
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-ls.pod:123
1939 msgid ""
1940 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1941 "converts C<\\0> characters to C<\\n>."
1942 msgstr ""
1943
1944 #. type: =head2
1945 #: ../cat/virt-ls.pod:126
1946 msgid "RECURSIVE LONG LISTING"
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../cat/virt-ls.pod:128
1951 msgid ""
1952 "Using I<-lR> options together changes the output to display directories "
1953 "recursively, with file stats, and optionally other features such as "
1954 "checksums and extended attributes."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-ls.pod:132
1959 msgid ""
1960 "Most of the interesting features of C<virt-ls> are only available when using "
1961 "I<-lR> mode."
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-ls.pod:135
1966 msgid ""
1967 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1968 "you cannot use the output in another program (because filenames can contain "
1969 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1970 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1971 "on you by creating filenames with embedded newline characters.  To B<safely> "
1972 "parse the output in another program, use the I<--csv> (Comma-Separated "
1973 "Values) option."
1974 msgstr ""
1975
1976 #. type: textblock
1977 #: ../cat/virt-ls.pod:143
1978 msgid ""
1979 "Note that this output format is completely unrelated to the C<ls -lR> "
1980 "command."
1981 msgstr ""
1982
1983 #. type: verbatim
1984 #: ../cat/virt-ls.pod:146
1985 #, no-wrap
1986 msgid ""
1987 " $ virt-ls -lR -d guest /bin\n"
1988 " d 0555       4096 /bin\n"
1989 " - 0755        123 /bin/alsaunmute\n"
1990 " - 0755      28328 /bin/arch\n"
1991 " l 0777          4 /bin/awk -> gawk\n"
1992 " - 0755      27216 /bin/basename\n"
1993 " - 0755     943360 /bin/bash\n"
1994 " [etc.]\n"
1995 "\n"
1996 msgstr ""
1997
1998 #. type: textblock
1999 #: ../cat/virt-ls.pod:155
2000 msgid "These basic fields are always shown:"
2001 msgstr ""
2002
2003 #. type: =item
2004 #: ../cat/virt-ls.pod:159
2005 #, fuzzy
2006 #| msgid "vfs-type"
2007 msgid "type"
2008 msgstr "vfs-type"
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:161
2012 msgid ""
2013 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2014 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2015 "link), C<s> (socket) or C<u> (unknown)."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-ls.pod:171
2020 #, fuzzy
2021 #| msgid "version"
2022 msgid "permissions"
2023 msgstr "version"
2024
2025 #. type: textblock
2026 #: ../cat/virt-ls.pod:173
2027 msgid "The Unix permissions, displayed as a 4 digit octal number."
2028 msgstr ""
2029
2030 #. type: =item
2031 #: ../cat/virt-ls.pod:175
2032 #, fuzzy
2033 #| msgid "filesize"
2034 msgid "size"
2035 msgstr "filesize"
2036
2037 #. type: textblock
2038 #: ../cat/virt-ls.pod:177
2039 msgid ""
2040 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2041 "readable> option is given, in which case this is shown as a human-readable "
2042 "number."
2043 msgstr ""
2044
2045 #. type: =head2
2046 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2047 msgid "path"
2048 msgstr ""
2049
2050 #. type: textblock
2051 #: ../cat/virt-ls.pod:183
2052 msgid "The full path of the file or directory."
2053 msgstr ""
2054
2055 #. type: =item
2056 #: ../cat/virt-ls.pod:185
2057 #, fuzzy
2058 #| msgid "readlink"
2059 msgid "link"
2060 msgstr "readlink"
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:187
2064 msgid "For symbolic links only, the link target."
2065 msgstr ""
2066
2067 #. type: textblock
2068 #: ../cat/virt-ls.pod:191
2069 msgid ""
2070 "In I<-lR> mode, additional command line options enable the display of more "
2071 "fields."
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:194
2076 msgid ""
2077 "With the I<--uids> flag, these additional fields are displayed before the "
2078 "path:"
2079 msgstr ""
2080
2081 #. type: =item
2082 #: ../cat/virt-ls.pod:199
2083 #, fuzzy
2084 #| msgid "lvuuid"
2085 msgid "uid"
2086 msgstr "lvuuid"
2087
2088 #. type: =item
2089 #: ../cat/virt-ls.pod:201
2090 #, fuzzy
2091 #| msgid "vguuid"
2092 msgid "gid"
2093 msgstr "vguuid"
2094
2095 #. type: textblock
2096 #: ../cat/virt-ls.pod:203
2097 msgid ""
2098 "The UID and GID of the owner of the file (displayed numerically).  Note "
2099 "these only make sense in the context of a Unix-like guest."
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-ls.pod:208
2104 msgid "With the I<--times> flag, these additional fields are displayed:"
2105 msgstr ""
2106
2107 #. type: =item
2108 #: ../cat/virt-ls.pod:212
2109 #, fuzzy
2110 #| msgid "time"
2111 msgid "atime"
2112 msgstr "time"
2113
2114 #. type: textblock
2115 #: ../cat/virt-ls.pod:214
2116 msgid "The time of last access."
2117 msgstr ""
2118
2119 #. type: =item
2120 #: ../cat/virt-ls.pod:216
2121 #, fuzzy
2122 #| msgid "time"
2123 msgid "mtime"
2124 msgstr "time"
2125
2126 #. type: textblock
2127 #: ../cat/virt-ls.pod:218
2128 msgid "The time of last modification."
2129 msgstr ""
2130
2131 #. type: =item
2132 #: ../cat/virt-ls.pod:220
2133 #, fuzzy
2134 #| msgid "time"
2135 msgid "ctime"
2136 msgstr "time"
2137
2138 #. type: textblock
2139 #: ../cat/virt-ls.pod:222
2140 msgid "The time of last status change."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-ls.pod:226
2145 msgid ""
2146 "The time fields are displayed as string dates and times, unless one of the "
2147 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:229
2152 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2153 msgstr ""
2154
2155 #. type: =item
2156 #: ../cat/virt-ls.pod:233
2157 #, fuzzy
2158 #| msgid "zero-device"
2159 msgid "device"
2160 msgstr "zero-device"
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:235
2164 msgid ""
2165 "The device containing the file (displayed as major:minor).  This may not "
2166 "match devices as known to the guest."
2167 msgstr ""
2168
2169 #. type: =item
2170 #: ../cat/virt-ls.pod:238
2171 msgid "inode"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:240
2176 msgid "The inode number."
2177 msgstr ""
2178
2179 #. type: =item
2180 #: ../cat/virt-ls.pod:242
2181 #, fuzzy
2182 #| msgid "readlink"
2183 msgid "nlink"
2184 msgstr "readlink"
2185
2186 #. type: textblock
2187 #: ../cat/virt-ls.pod:244
2188 msgid "The number of hard links."
2189 msgstr ""
2190
2191 #. type: =item
2192 #: ../cat/virt-ls.pod:246
2193 msgid "rdev"
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-ls.pod:248
2198 msgid ""
2199 "For block and char special files, the device (displayed as major:minor)."
2200 msgstr ""
2201
2202 #. type: =item
2203 #: ../cat/virt-ls.pod:251
2204 #, fuzzy
2205 #| msgid "C<blocksize>"
2206 msgid "blocks"
2207 msgstr "C<blocksize>"
2208
2209 #. type: textblock
2210 #: ../cat/virt-ls.pod:253
2211 msgid "The number of 512 byte blocks allocated to the file."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:257
2216 msgid ""
2217 "With the I<--checksum> flag, the checksum of the file contents is shown "
2218 "(only for regular files).  Computing file checksums can take a considerable "
2219 "amount of time."
2220 msgstr ""
2221
2222 #. type: =item
2223 #: ../cat/virt-ls.pod:280
2224 #, fuzzy
2225 #| msgid "checksum"
2226 msgid "B<--checksum>"
2227 msgstr "checksum"
2228
2229 #. type: =item
2230 #: ../cat/virt-ls.pod:282
2231 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:284
2236 msgid ""
2237 "Display checksum over file contents for regular files.  With no argument, "
2238 "this defaults to using I<md5>.  Using an argument, you can select the "
2239 "checksum type to use."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2244 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2245 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2246 msgid ""
2247 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2248 "LISTING> above."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../cat/virt-ls.pod:316
2253 msgid ""
2254 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2255 "so you cannot see what you are typing.  If you are not worried about Tempest "
2256 "attacks and there is no one else in the room you can specify this flag to "
2257 "see what you are typing."
2258 msgstr ""
2259
2260 #. type: =item
2261 #: ../cat/virt-ls.pod:321
2262 #, fuzzy
2263 #| msgid "B<--no-dest-paths>"
2264 msgid "B<--extra-stats>"
2265 msgstr "B<--no-dest-paths>"
2266
2267 #. type: textblock
2268 #: ../cat/virt-ls.pod:323
2269 msgid "Display extra stats."
2270 msgstr ""
2271
2272 #. type: verbatim
2273 #: ../cat/virt-ls.pod:339
2274 #, fuzzy, no-wrap
2275 #| msgid ""
2276 #| " guestfish --format=raw -a disk.img\n"
2277 #| "\n"
2278 msgid ""
2279 " virt-ls --format=raw -a disk.img /dir\n"
2280 "\n"
2281 msgstr ""
2282 " guestfish --format=raw -a disk.img\n"
2283 "\n"
2284
2285 #. type: verbatim
2286 #: ../cat/virt-ls.pod:343
2287 #, fuzzy, no-wrap
2288 #| msgid ""
2289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2290 #| "\n"
2291 msgid ""
2292 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2293 "\n"
2294 msgstr ""
2295 " guestfish --format=raw -a disk.img --format -a another.img\n"
2296 "\n"
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:356
2300 msgid "Display file sizes in human-readable format."
2301 msgstr ""
2302
2303 #. type: =item
2304 #: ../cat/virt-ls.pod:370
2305 msgid "B<-R>"
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:372
2310 #, fuzzy
2311 #| msgid "B<--live>"
2312 msgid "B<--recursive>"
2313 msgstr "B<--live>"
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:374
2317 msgid ""
2318 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2319 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2320 "LISTING>."
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:378
2325 msgid ""
2326 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2327 "LONG LISTING>."
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:381
2332 msgid ""
2333 "C<virt-ls -R> produces a recursive list of files starting at the named "
2334 "directory.  See L</RECURSIVE LISTING>."
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../cat/virt-ls.pod:384
2339 msgid ""
2340 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2341 "parsed.  See L</RECURSIVE LONG LISTING>."
2342 msgstr ""
2343
2344 #. type: =item
2345 #: ../cat/virt-ls.pod:387
2346 #, fuzzy
2347 #| msgid "B<--live>"
2348 msgid "B<--times>"
2349 msgstr "B<--live>"
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:389
2353 msgid "Display time fields."
2354 msgstr ""
2355
2356 #. type: =item
2357 #: ../cat/virt-ls.pod:394
2358 #, fuzzy
2359 #| msgid "B<--echo-keys>"
2360 msgid "B<--time-days>"
2361 msgstr "B<--echo-keys>"
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:396
2365 msgid "Display time fields as days before now (negative if in the future)."
2366 msgstr ""
2367
2368 #. type: textblock
2369 #: ../cat/virt-ls.pod:398
2370 msgid ""
2371 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2372 "of the file is between 0 and 86399 seconds."
2373 msgstr ""
2374
2375 #. type: =item
2376 #: ../cat/virt-ls.pod:404
2377 #, fuzzy
2378 #| msgid "B<--live>"
2379 msgid "B<--time-relative>"
2380 msgstr "B<--live>"
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:406
2384 msgid "Display time fields as seconds before now (negative if in the future)."
2385 msgstr ""
2386
2387 #. type: =item
2388 #: ../cat/virt-ls.pod:411
2389 #, fuzzy
2390 #| msgid "I<--timeout N>"
2391 msgid "B<--time-t>"
2392 msgstr "I<--timeout N>"
2393
2394 #. type: textblock
2395 #: ../cat/virt-ls.pod:413
2396 msgid "Display time fields as seconds since the Unix epoch."
2397 msgstr ""
2398
2399 #. type: =item
2400 #: ../cat/virt-ls.pod:418
2401 #, fuzzy
2402 #| msgid "B<--csh>"
2403 msgid "B<--uids>"
2404 msgstr "B<--csh>"
2405
2406 #. type: textblock
2407 #: ../cat/virt-ls.pod:420
2408 msgid "Display UID and GID fields."
2409 msgstr ""
2410
2411 #. type: textblock
2412 #: ../cat/virt-ls.pod:445
2413 msgid "Previous versions of virt-ls allowed you to write either:"
2414 msgstr ""
2415
2416 #. type: verbatim
2417 #: ../cat/virt-ls.pod:447
2418 #, fuzzy, no-wrap
2419 #| msgid ""
2420 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2421 #| "\n"
2422 msgid ""
2423 " virt-ls disk.img [disk.img ...] /dir\n"
2424 "\n"
2425 msgstr ""
2426 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2427 "\n"
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:451
2431 #, fuzzy, no-wrap
2432 #| msgid ""
2433 #| " inspect-get-hostname root\n"
2434 #| "\n"
2435 msgid ""
2436 " virt-ls guestname /dir\n"
2437 "\n"
2438 msgstr ""
2439 " inspect-get-hostname корінь\n"
2440 "\n"
2441
2442 #. type: textblock
2443 #: ../cat/virt-ls.pod:497
2444 #, fuzzy
2445 #| msgid ""
2446 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2447 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2448 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2449 msgid ""
2450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2451 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2452 "L<http://libguestfs.org/>."
2453 msgstr ""
2454 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2455 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2456 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2460 #: ../rescue/virt-rescue.pod:302
2461 #, fuzzy
2462 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2463 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2464 msgstr "© Red Hat Inc., 2009–2010"
2465
2466 #. type: textblock
2467 #: ../df/virt-df.pod:5
2468 msgid "virt-df - Display free space on virtual filesystems"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../df/virt-df.pod:9
2473 #, fuzzy, no-wrap
2474 #| msgid ""
2475 #| " virt-list-partitions [--options] domname\n"
2476 #| "\n"
2477 msgid ""
2478 " virt-df [--options]\n"
2479 "\n"
2480 msgstr ""
2481 " virt-list-partitions [--параметри] назва_домену\n"
2482 "\n"
2483
2484 #. type: verbatim
2485 #: ../df/virt-df.pod:11
2486 #, fuzzy, no-wrap
2487 #| msgid ""
2488 #| " virt-list-partitions [--options] domname\n"
2489 #| "\n"
2490 msgid ""
2491 " virt-df [--options] -d domname\n"
2492 "\n"
2493 msgstr ""
2494 " virt-list-partitions [--параметри] назва_домену\n"
2495 "\n"
2496
2497 #. type: verbatim
2498 #: ../df/virt-df.pod:13
2499 #, fuzzy, no-wrap
2500 #| msgid ""
2501 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2502 #| "\n"
2503 msgid ""
2504 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2505 "\n"
2506 msgstr ""
2507 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2508 "\n"
2509
2510 #. type: verbatim
2511 #: ../df/virt-df.pod:17
2512 #, fuzzy, no-wrap
2513 #| msgid ""
2514 #| " virt-list-partitions [--options] domname\n"
2515 #| "\n"
2516 msgid ""
2517 " virt-df [--options] domname\n"
2518 "\n"
2519 msgstr ""
2520 " virt-list-partitions [--параметри] назва_домену\n"
2521 "\n"
2522
2523 #. type: verbatim
2524 #: ../df/virt-df.pod:19
2525 #, fuzzy, no-wrap
2526 #| msgid ""
2527 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2528 #| "\n"
2529 msgid ""
2530 " virt-df [--options] disk.img [disk.img ...]\n"
2531 "\n"
2532 msgstr ""
2533 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2534 "\n"
2535
2536 #. type: textblock
2537 #: ../df/virt-df.pod:23
2538 msgid ""
2539 "C<virt-df> is a command line tool to display free space on virtual machine "
2540 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2541 "allocated to a virtual machine, but can look inside disk images to see how "
2542 "much space is really being used."
2543 msgstr ""
2544
2545 #. type: textblock
2546 #: ../df/virt-df.pod:28
2547 msgid ""
2548 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2549 "to get a list of all active and inactive guests, and performs a C<df>-type "
2550 "operation on each one in turn, printing out the results."
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../df/virt-df.pod:32
2555 msgid ""
2556 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2557 "type operation on either the single named libvirt domain, or on the disk "
2558 "image(s) listed on the command line (which must all belong to a single VM).  "
2559 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2560 "guest>.  If you want to run on multiple guests, then you have to invoke "
2561 "C<virt-df> multiple times."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../df/virt-df.pod:39
2566 msgid ""
2567 "Use the I<--csv> option to get a format which can be easily parsed by other "
2568 "programs.  Other options are similar to the standard L<df(1)> command."
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../df/virt-df.pod:45
2573 msgid ""
2574 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2575 "output human-readable:"
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../df/virt-df.pod:48
2580 #, no-wrap
2581 msgid ""
2582 " # virt-df -d F14x64 -h\n"
2583 " Filesystem                       Size     Used  Available  Use%\n"
2584 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2585 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2586 "\n"
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../df/virt-df.pod:53
2591 msgid "Show disk usage for a disk image file called C<test.img>:"
2592 msgstr ""
2593
2594 #. type: verbatim
2595 #: ../df/virt-df.pod:55
2596 #, no-wrap
2597 msgid ""
2598 " $ virt-df -a test1.img\n"
2599 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2600 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2601 "\n"
2602 msgstr ""
2603
2604 #. type: verbatim
2605 #: ../df/virt-df.pod:112
2606 #, fuzzy, no-wrap
2607 #| msgid ""
2608 #| " guestfish --format=raw -a disk.img\n"
2609 #| "\n"
2610 msgid ""
2611 " virt-df --format=raw -a disk.img\n"
2612 "\n"
2613 msgstr ""
2614 " guestfish --format=raw -a disk.img\n"
2615 "\n"
2616
2617 #. type: verbatim
2618 #: ../df/virt-df.pod:116
2619 #, fuzzy, no-wrap
2620 #| msgid ""
2621 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2622 #| "\n"
2623 msgid ""
2624 " virt-df --format=raw -a disk.img --format -a another.img\n"
2625 "\n"
2626 msgstr ""
2627 " guestfish --format=raw -a disk.img --format -a another.img\n"
2628 "\n"
2629
2630 #. type: textblock
2631 #: ../df/virt-df.pod:129
2632 msgid "Print sizes in human-readable format."
2633 msgstr ""
2634
2635 #. type: textblock
2636 #: ../df/virt-df.pod:131
2637 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2638 msgstr ""
2639
2640 #. type: =item
2641 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2642 msgid "B<-i>"
2643 msgstr "B<-i>"
2644
2645 #. type: =item
2646 #: ../df/virt-df.pod:135
2647 #, fuzzy
2648 #| msgid "B<--live>"
2649 msgid "B<--inodes>"
2650 msgstr "B<--live>"
2651
2652 #. type: textblock
2653 #: ../df/virt-df.pod:137
2654 msgid "Print inodes instead of blocks."
2655 msgstr ""
2656
2657 #. type: =item
2658 #: ../df/virt-df.pod:139
2659 #, fuzzy
2660 #| msgid "B<--merge>"
2661 msgid "B<--one-per-guest>"
2662 msgstr "B<--merge>"
2663
2664 #. type: textblock
2665 #: ../df/virt-df.pod:141
2666 msgid ""
2667 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2668 "disks from several guests to a single libguestfs appliance."
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../df/virt-df.pod:144
2673 msgid "You might use this option in the following circumstances:"
2674 msgstr ""
2675
2676 #. type: =item
2677 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2678 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2679 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2680 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2681 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2682 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2683 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2684 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2685 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2686 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2687 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2688 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2689 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2690 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2691 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2692 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2693 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2694 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2695 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2696 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2697 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2698 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2699 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2700 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2701 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2702 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2703 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2704 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2705 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2706 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2707 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2708 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2709 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2710 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2711 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2712 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2713 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2714 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2715 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2716 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2717 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2718 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2719 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2720 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2721 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2722 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2723 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2724 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2725 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2726 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2727 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2728 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2729 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2730 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2731 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2732 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2733 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2734 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2735 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2736 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959
2737 #: ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972
2738 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995
2739 #: ../src/guestfs.pod:3223 ../src/guestfs.pod:3227 ../src/guestfs.pod:3231
2740 #: ../src/guestfs.pod:3235 ../tools/virt-win-reg.pl:197
2741 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2742 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2743 #: ../tools/virt-win-reg.pl:722
2744 msgid "*"
2745 msgstr "*"
2746
2747 #. type: textblock
2748 #: ../df/virt-df.pod:150
2749 msgid ""
2750 "If you think an untrusted guest might actively try to exploit the libguestfs "
2751 "appliance kernel, then this prevents one guest from interfering with the "
2752 "stats printed for another guest."
2753 msgstr ""
2754
2755 #. type: textblock
2756 #: ../df/virt-df.pod:156
2757 msgid ""
2758 "If the kernel has a bug which stops it from accessing a filesystem in one "
2759 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2760 "and report stats for further guests."
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../df/virt-df.pod:165
2765 msgid ""
2766 "Print UUIDs instead of names.  This is useful for following a guest even "
2767 "when the guest is migrated or renamed, or when two guests happen to have the "
2768 "same name."
2769 msgstr ""
2770
2771 #. type: textblock
2772 #: ../df/virt-df.pod:169
2773 msgid ""
2774 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2775 "images, we still print the disk image name even when this option is "
2776 "specified."
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../df/virt-df.pod:229
2781 msgid ""
2782 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2783 "libguestfs.org/>."
2784 msgstr ""
2785
2786 #. type: textblock
2787 #: ../edit/virt-edit.pod:5
2788 msgid "virt-edit - Edit a file in a virtual machine"
2789 msgstr ""
2790
2791 #. type: verbatim
2792 #: ../edit/virt-edit.pod:9
2793 #, fuzzy, no-wrap
2794 #| msgid ""
2795 #| " virt-list-partitions [--options] domname\n"
2796 #| "\n"
2797 msgid ""
2798 " virt-edit [--options] -d domname file [file ...]\n"
2799 "\n"
2800 msgstr ""
2801 " virt-list-partitions [--параметри] назва_домену\n"
2802 "\n"
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:11
2806 #, fuzzy, no-wrap
2807 #| msgid ""
2808 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2809 #| "\n"
2810 msgid ""
2811 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2812 "\n"
2813 msgstr ""
2814 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2815 "\n"
2816
2817 #. type: verbatim
2818 #: ../edit/virt-edit.pod:13
2819 #, no-wrap
2820 msgid ""
2821 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2822 "\n"
2823 msgstr ""
2824
2825 #. type: verbatim
2826 #: ../edit/virt-edit.pod:17
2827 #, no-wrap
2828 msgid ""
2829 " virt-edit domname file\n"
2830 "\n"
2831 msgstr ""
2832
2833 #. type: verbatim
2834 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2835 #, fuzzy, no-wrap
2836 #| msgid ""
2837 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2838 #| "\n"
2839 msgid ""
2840 " virt-edit disk.img [disk.img ...] file\n"
2841 "\n"
2842 msgstr ""
2843 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2844 "\n"
2845
2846 #. type: =head1
2847 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2848 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2849 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2850 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2851 msgid "WARNING"
2852 msgstr "ПОПЕРЕДЖЕННЯ"
2853
2854 #. type: textblock
2855 #: ../edit/virt-edit.pod:23
2856 msgid ""
2857 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2858 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2859 "doing this, but doesn't catch all cases."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../edit/virt-edit.pod:29
2864 msgid ""
2865 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2866 "exists in the named virtual machine (or disk image)."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../edit/virt-edit.pod:32
2871 msgid ""
2872 "Multiple filenames can be given, in which case they are each edited in "
2873 "turn.  Each filename must be a full path, starting at the root directory "
2874 "(starting with '/')."
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../edit/virt-edit.pod:36
2879 msgid "If you want to just view a file, use L<virt-cat(1)>."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../edit/virt-edit.pod:38
2884 msgid ""
2885 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2886 "USING GUESTFISH> below)."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../edit/virt-edit.pod:41
2891 msgid ""
2892 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2893 "that and much more."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../edit/virt-edit.pod:46
2898 msgid "Edit the named files interactively:"
2899 msgstr ""
2900
2901 #. type: verbatim
2902 #: ../edit/virt-edit.pod:48
2903 #, no-wrap
2904 msgid ""
2905 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2906 "\n"
2907 msgstr ""
2908
2909 #. type: verbatim
2910 #: ../edit/virt-edit.pod:50
2911 #, no-wrap
2912 msgid ""
2913 " virt-edit -d mydomain /etc/passwd\n"
2914 "\n"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../edit/virt-edit.pod:52
2919 msgid "For Windows guests, some Windows paths are understood:"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../edit/virt-edit.pod:54
2924 #, no-wrap
2925 msgid ""
2926 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:56
2932 msgid ""
2933 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2934 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2935 msgstr ""
2936
2937 #. type: verbatim
2938 #: ../edit/virt-edit.pod:60
2939 #, no-wrap
2940 msgid ""
2941 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2942 "\n"
2943 msgstr ""
2944
2945 #. type: =item
2946 #: ../edit/virt-edit.pod:81
2947 msgid "B<-b> extension"
2948 msgstr ""
2949
2950 #. type: =item
2951 #: ../edit/virt-edit.pod:83
2952 msgid "B<--backup> extension"
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../edit/virt-edit.pod:85
2957 msgid ""
2958 "Create a backup of the original file I<in the guest disk image>.  The backup "
2959 "has the original filename with C<extension> added."
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../edit/virt-edit.pod:88
2964 msgid ""
2965 "Usually the first character of C<extension> would be a dot C<.> so you would "
2966 "write:"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../edit/virt-edit.pod:91
2971 #, no-wrap
2972 msgid ""
2973 " virt-edit -b .orig [etc]\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../edit/virt-edit.pod:93
2979 msgid "By default, no backup file is made."
2980 msgstr ""
2981
2982 #. type: =item
2983 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2984 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2985 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2986 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2987 msgid "B<-c URI>"
2988 msgstr "B<-c адреса>"
2989
2990 #. type: =item
2991 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2992 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2993 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2994 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2995 msgid "B<--connect URI>"
2996 msgstr "B<--connect адреса>"
2997
2998 #. type: textblock
2999 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3000 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3001 #: ../tools/virt-win-reg.pl:135
3002 msgid ""
3003 "If you specify guest block devices directly, then libvirt is not used at all."
3004 msgstr ""
3005
3006 #. type: textblock
3007 #: ../edit/virt-edit.pod:114
3008 msgid ""
3009 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3010 "off so you cannot see what you are typing.  If you are not worried about "
3011 "Tempest attacks and there is no one else in the room you can specify this "
3012 "flag to see what you are typing."
3013 msgstr ""
3014
3015 #. type: =item
3016 #: ../edit/virt-edit.pod:119
3017 msgid "B<-e> EXPR"
3018 msgstr ""
3019
3020 #. type: =item
3021 #: ../edit/virt-edit.pod:121
3022 #, fuzzy
3023 #| msgid "B<--help>"
3024 msgid "B<--expr> EXPR"
3025 msgstr "B<--help>"
3026
3027 #. type: textblock
3028 #: ../edit/virt-edit.pod:123
3029 msgid ""
3030 "Instead of launching the external editor, non-interactively apply the Perl "
3031 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3032 "EDITING> below."
3033 msgstr ""
3034
3035 #. type: textblock
3036 #: ../edit/virt-edit.pod:127
3037 msgid ""
3038 "Be careful to properly quote the expression to prevent it from being altered "
3039 "by the shell."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../edit/virt-edit.pod:130
3044 msgid "Note that this option is only available when Perl 5 is installed."
3045 msgstr ""
3046
3047 #. type: =item
3048 #: ../edit/virt-edit.pod:132
3049 #, fuzzy
3050 #| msgid "B<--format=raw|qcow2|..>"
3051 msgid "B<--format> raw|qcow2|..."
3052 msgstr "B<--format=raw|qcow2|..>"
3053
3054 #. type: verbatim
3055 #: ../edit/virt-edit.pod:143
3056 #, fuzzy, no-wrap
3057 #| msgid ""
3058 #| " guestfish --format=raw -a disk.img\n"
3059 #| "\n"
3060 msgid ""
3061 " virt-edit --format=raw -a disk.img file\n"
3062 "\n"
3063 msgstr ""
3064 " guestfish --format=raw -a disk.img\n"
3065 "\n"
3066
3067 #. type: verbatim
3068 #: ../edit/virt-edit.pod:147
3069 #, fuzzy, no-wrap
3070 #| msgid ""
3071 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3072 #| "\n"
3073 msgid ""
3074 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3075 "\n"
3076 msgstr ""
3077 " guestfish --format=raw -a disk.img --format -a another.img\n"
3078 "\n"
3079
3080 #. type: textblock
3081 #: ../edit/virt-edit.pod:181
3082 msgid "Previous versions of virt-edit allowed you to write either:"
3083 msgstr ""
3084
3085 #. type: verbatim
3086 #: ../edit/virt-edit.pod:187
3087 #, fuzzy, no-wrap
3088 #| msgid ""
3089 #| " edit filename\n"
3090 #| "\n"
3091 msgid ""
3092 " virt-edit guestname file\n"
3093 "\n"
3094 msgstr ""
3095 " edit назва_файла\n"
3096 "\n"
3097
3098 #. type: =head1
3099 #: ../edit/virt-edit.pod:195
3100 msgid "NON-INTERACTIVE EDITING"
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../edit/virt-edit.pod:197
3105 msgid ""
3106 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3107 "administrator can interactively edit the file."
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../edit/virt-edit.pod:200
3112 msgid ""
3113 "There are two ways also to use C<virt-edit> from scripts in order to make "
3114 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3115 "like this, it's less error-prone to write scripts directly using the "
3116 "libguestfs API and Augeas for configuration file editing.)"
3117 msgstr ""
3118
3119 #. type: textblock
3120 #: ../edit/virt-edit.pod:206
3121 msgid ""
3122 "The first method is to temporarily set C<$EDITOR> to any script or program "
3123 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3124 "update C<tmpfile> in place however it likes."
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../edit/virt-edit.pod:210
3129 msgid ""
3130 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3131 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3132 "instances of C<foo> with C<bar> in a file:"
3133 msgstr ""
3134
3135 #. type: verbatim
3136 #: ../edit/virt-edit.pod:214
3137 #, no-wrap
3138 msgid ""
3139 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3140 "\n"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../edit/virt-edit.pod:216
3145 msgid ""
3146 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3147 "For example to delete root's password you could do:"
3148 msgstr ""
3149
3150 #. type: verbatim
3151 #: ../edit/virt-edit.pod:219
3152 #, no-wrap
3153 msgid ""
3154 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3155 "\n"
3156 msgstr ""
3157
3158 #. type: textblock
3159 #: ../edit/virt-edit.pod:221
3160 msgid ""
3161 "What really happens is that the snippet is evaluated as a Perl expression "
3162 "for each line of the file.  The line, including the final C<\\n>, is passed "
3163 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../edit/virt-edit.pod:226
3168 msgid ""
3169 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3170 "C<apache> user account from the password file you can do:"
3171 msgstr ""
3172
3173 #. type: verbatim
3174 #: ../edit/virt-edit.pod:229
3175 #, no-wrap
3176 msgid ""
3177 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3178 "\n"
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../edit/virt-edit.pod:231
3183 msgid ""
3184 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3185 "the end of the file is rather difficult this way since there is no concept "
3186 "of \"last line of the file\" - your expression just doesn't get called "
3187 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3188 "want to do this."
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../edit/virt-edit.pod:237
3193 msgid ""
3194 "The variable C<$lineno> contains the current line number.  As is "
3195 "traditional, the first line in the file is number C<1>."
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../edit/virt-edit.pod:240
3200 msgid ""
3201 "The return value from the expression is ignored, but the expression may call "
3202 "C<die> in order to abort the whole program, leaving the original file "
3203 "untouched."
3204 msgstr ""
3205
3206 #. type: textblock
3207 #: ../edit/virt-edit.pod:244
3208 msgid ""
3209 "Remember when matching the end of a line that C<$_> may contain the final C<"
3210 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3211 "newline then neither of these.  Thus to match or substitute some text at the "
3212 "end of a line, use this regular expression:"
3213 msgstr ""
3214
3215 #. type: verbatim
3216 #: ../edit/virt-edit.pod:249
3217 #, no-wrap
3218 msgid ""
3219 " /some text(\\r?\\n)?$/\n"
3220 "\n"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../edit/virt-edit.pod:251
3225 msgid ""
3226 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3227 "$_> itself (since that would remove all newlines from the file):"
3228 msgstr ""
3229
3230 #. type: verbatim
3231 #: ../edit/virt-edit.pod:255
3232 #, no-wrap
3233 msgid ""
3234 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3235 "\n"
3236 msgstr ""
3237
3238 #. type: =head1
3239 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3240 msgid "WINDOWS PATHS"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../edit/virt-edit.pod:259
3245 msgid ""
3246 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3247 "paths (eg. C<E:\\foo\\bar.txt>)."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../edit/virt-edit.pod:262
3252 msgid "If and only if the guest is running Windows then:"
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../edit/virt-edit.pod:268
3257 msgid ""
3258 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3259 "to the correct filesystem."
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../edit/virt-edit.pod:273
3264 msgid ""
3265 "Any backslash (C<\\>) characters in the path are replaced with forward "
3266 "slashes so that libguestfs can process it."
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:278
3271 msgid ""
3272 "The path is resolved case insensitively to locate the file that should be "
3273 "edited."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:283
3278 msgid "There are some known shortcomings:"
3279 msgstr ""
3280
3281 #. type: textblock
3282 #: ../edit/virt-edit.pod:289
3283 msgid "Some NTFS symbolic links may not be followed correctly."
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../edit/virt-edit.pod:293
3288 msgid "NTFS junction points that cross filesystems are not followed."
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../edit/virt-edit.pod:299
3293 msgid ""
3294 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3295 "C<virt-edit> doesn't work."
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:302
3300 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3301 msgstr ""
3302
3303 #. type: verbatim
3304 #: ../edit/virt-edit.pod:304
3305 #, fuzzy, no-wrap
3306 #| msgid ""
3307 #| " guestfish --ro -d myguest -i\n"
3308 #| "\n"
3309 msgid ""
3310 " guestfish --rw -i -d domname edit /file\n"
3311 "\n"
3312 msgstr ""
3313 " guestfish --ro -d myguest -i\n"
3314 "\n"
3315
3316 #. type: textblock
3317 #: ../edit/virt-edit.pod:306
3318 msgid ""
3319 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3320 "path to the file."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../edit/virt-edit.pod:309
3325 msgid ""
3326 "The command above uses libguestfs's guest inspection feature and so does not "
3327 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3328 "disk images that don't contain guests.  To edit a file on a disk image "
3329 "directly, use:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../edit/virt-edit.pod:314
3334 #, fuzzy, no-wrap
3335 #| msgid ""
3336 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3337 #| "\n"
3338 msgid ""
3339 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3340 "\n"
3341 msgstr ""
3342 " guestfish --format=raw -a disk.img --format -a another.img\n"
3343 "\n"
3344
3345 #. type: textblock
3346 #: ../edit/virt-edit.pod:316
3347 msgid ""
3348 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3349 "the disk image to edit, and C</file> is the full path to the file."
3350 msgstr ""
3351
3352 #. type: textblock
3353 #: ../edit/virt-edit.pod:320
3354 msgid ""
3355 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3356 "C<write> or C<upload> instead:"
3357 msgstr ""
3358
3359 #. type: verbatim
3360 #: ../edit/virt-edit.pod:323
3361 #, fuzzy, no-wrap
3362 #| msgid ""
3363 #| " guestfish --ro -d myguest -i\n"
3364 #| "\n"
3365 msgid ""
3366 " guestfish --rw -i -d domname touch /newfile\n"
3367 "\n"
3368 msgstr ""
3369 " guestfish --ro -d myguest -i\n"
3370 "\n"
3371
3372 #. type: verbatim
3373 #: ../edit/virt-edit.pod:325
3374 #, no-wrap
3375 msgid ""
3376 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3377 "\n"
3378 msgstr ""
3379
3380 #. type: verbatim
3381 #: ../edit/virt-edit.pod:327
3382 #, no-wrap
3383 msgid ""
3384 " guestfish --rw -i -d domname upload localfile /newfile\n"
3385 "\n"
3386 msgstr ""
3387
3388 #. type: =head1
3389 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3390 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3391 #: ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
3392 msgid "ENVIRONMENT VARIABLES"
3393 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3394
3395 #. type: =item
3396 #: ../edit/virt-edit.pod:333
3397 #, fuzzy
3398 #| msgid "EDITOR"
3399 msgid "C<EDITOR>"
3400 msgstr "РЕДАКТОР"
3401
3402 #. type: textblock
3403 #: ../edit/virt-edit.pod:335
3404 msgid ""
3405 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3406 "\"emacs -nw\">"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../edit/virt-edit.pod:338
3411 msgid "If not set, C<vi> is used."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../edit/virt-edit.pod:356
3416 #, fuzzy
3417 #| msgid ""
3418 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3419 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3420 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3421 msgid ""
3422 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3423 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3424 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3425 msgstr ""
3426 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3427 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3428 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3429
3430 #. type: textblock
3431 #: ../erlang/examples/guestfs-erlang.pod:5
3432 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3433 msgstr ""
3434
3435 #. type: verbatim
3436 #: ../erlang/examples/guestfs-erlang.pod:9
3437 #, no-wrap
3438 msgid ""
3439 " {ok, G} = guestfs:create(),\n"
3440 " ok = guestfs:add_drive_opts(G, Disk,\n"
3441 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3442 " ok = guestfs:launch(G),\n"
3443 " [Device] = guestfs:list_devices(G),\n"
3444 " ok = guestfs:close(G).\n"
3445 "\n"
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../erlang/examples/guestfs-erlang.pod:18
3450 msgid ""
3451 "This manual page documents how to call libguestfs from the Erlang "
3452 "programming language.  This page just documents the differences from the C "
3453 "API and gives some examples.  If you are not familiar with using libguestfs, "
3454 "you also need to read L<guestfs(3)>."
3455 msgstr ""
3456
3457 #. type: =head2
3458 #: ../erlang/examples/guestfs-erlang.pod:23
3459 msgid "OPENING AND CLOSING THE HANDLE"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../erlang/examples/guestfs-erlang.pod:25
3464 msgid ""
3465 "The Erlang bindings are implemented using an external program called C<erl-"
3466 "guestfs>.  This program must be on the current PATH, or else you should "
3467 "specify the full path to the program:"
3468 msgstr ""
3469
3470 #. type: verbatim
3471 #: ../erlang/examples/guestfs-erlang.pod:29
3472 #, fuzzy, no-wrap
3473 #| msgid ""
3474 #| " g = guestfs_create ();\n"
3475 #| " \n"
3476 msgid ""
3477 " {ok, G} = guestfs:create().\n"
3478 "\n"
3479 msgstr ""
3480 " g = guestfs_create ();\n"
3481 " \n"
3482
3483 #. type: verbatim
3484 #: ../erlang/examples/guestfs-erlang.pod:31
3485 #, no-wrap
3486 msgid ""
3487 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3488 "\n"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../erlang/examples/guestfs-erlang.pod:33
3493 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../erlang/examples/guestfs-erlang.pod:36
3498 msgid "To close the handle:"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../erlang/examples/guestfs-erlang.pod:38
3503 #, fuzzy, no-wrap
3504 #| msgid ""
3505 #| " g = guestfs_create ();\n"
3506 #| " \n"
3507 msgid ""
3508 " ok = guestfs:close(G).\n"
3509 "\n"
3510 msgstr ""
3511 " g = guestfs_create ();\n"
3512 " \n"
3513
3514 #. type: =head2
3515 #: ../erlang/examples/guestfs-erlang.pod:40
3516 #, fuzzy
3517 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3518 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3519 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3520
3521 #. type: textblock
3522 #: ../erlang/examples/guestfs-erlang.pod:42
3523 msgid ""
3524 "For functions that take optional arguments, the first arguments are the non-"
3525 "optional ones.  The last argument is a list of tuples supplying the "
3526 "remaining optional arguments."
3527 msgstr ""
3528
3529 #. type: verbatim
3530 #: ../erlang/examples/guestfs-erlang.pod:46
3531 #, fuzzy, no-wrap
3532 #| msgid ""
3533 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3534 #| "                                va_list args);\n"
3535 #| "\n"
3536 msgid ""
3537 " ok = guestfs:add_drive_opts(G, Disk,\n"
3538 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3539 "\n"
3540 msgstr ""
3541 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3542 "                                va_list args);\n"
3543 "\n"
3544
3545 #. type: textblock
3546 #: ../erlang/examples/guestfs-erlang.pod:49
3547 msgid "If the last argument would be an empty list, you can also omit it:"
3548 msgstr ""
3549
3550 #. type: verbatim
3551 #: ../erlang/examples/guestfs-erlang.pod:51
3552 #, fuzzy, no-wrap
3553 #| msgid ""
3554 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3555 #| "\n"
3556 msgid ""
3557 " ok = guestfs:add_drive_opts(G, Disk).\n"
3558 "\n"
3559 msgstr ""
3560 " guestfs_add_drive_opts (g, filename, -1);\n"
3561 "\n"
3562
3563 #. type: =head2
3564 #: ../erlang/examples/guestfs-erlang.pod:53
3565 msgid "RETURN VALUES AND ERRORS"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../erlang/examples/guestfs-erlang.pod:55
3570 msgid ""
3571 "On success, most functions return a C<Result> term (which could be a list, "
3572 "string, tuple etc.).  If there is nothing for the function to return, then "
3573 "the atom C<ok> is returned."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../erlang/examples/guestfs-erlang.pod:59
3578 msgid "On error, you would see one of the following tuples:"
3579 msgstr ""
3580
3581 #. type: =item
3582 #: ../erlang/examples/guestfs-erlang.pod:63
3583 msgid "C<{error, Msg, Errno}>"
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../erlang/examples/guestfs-erlang.pod:65
3588 msgid "This indicates an ordinary error from the function."
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../erlang/examples/guestfs-erlang.pod:67
3593 msgid ""
3594 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3595 "(integer)."
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../erlang/examples/guestfs-erlang.pod:70
3600 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3601 msgstr ""
3602
3603 #. type: =item
3604 #: ../erlang/examples/guestfs-erlang.pod:72
3605 msgid "C<{unknown, Function}>"
3606 msgstr ""
3607
3608 #. type: textblock
3609 #: ../erlang/examples/guestfs-erlang.pod:74
3610 msgid ""
3611 "This indicates that the function you called is not known.  Generally this "
3612 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3613 "which you should not do."
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../erlang/examples/guestfs-erlang.pod:78
3618 msgid "C<Function> is the name of the unknown function."
3619 msgstr ""
3620
3621 #. type: =item
3622 #: ../erlang/examples/guestfs-erlang.pod:80
3623 msgid "C<{unknownarg, Arg}>"
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../erlang/examples/guestfs-erlang.pod:82
3628 msgid ""
3629 "This indicates that you called a function with optional arguments, with an "
3630 "unknown argument name."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../erlang/examples/guestfs-erlang.pod:85
3635 msgid "C<Arg> is the name of the unknown argument."
3636 msgstr ""
3637
3638 #. type: =head1
3639 #: ../erlang/examples/guestfs-erlang.pod:89
3640 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3641 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3642 #: ../python/examples/guestfs-python.pod:34
3643 #: ../ruby/examples/guestfs-ruby.pod:28
3644 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../erlang/examples/guestfs-erlang.pod:91
3649 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3650 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3651 #: ../python/examples/guestfs-python.pod:36
3652 #: ../ruby/examples/guestfs-ruby.pod:30
3653 #, fuzzy
3654 #| msgid "EXAMPLE"
3655 msgid "@EXAMPLE1@"
3656 msgstr "ПРИКЛАД"
3657
3658 #. type: =head1
3659 #: ../erlang/examples/guestfs-erlang.pod:93
3660 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3661 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3662 #: ../python/examples/guestfs-python.pod:38
3663 #: ../ruby/examples/guestfs-ruby.pod:32
3664 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../erlang/examples/guestfs-erlang.pod:95
3669 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3670 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3671 #: ../python/examples/guestfs-python.pod:40
3672 #: ../ruby/examples/guestfs-ruby.pod:34
3673 #, fuzzy
3674 #| msgid "EXAMPLE"
3675 msgid "@EXAMPLE2@"
3676 msgstr "ПРИКЛАД"
3677
3678 #. type: textblock
3679 #: ../erlang/examples/guestfs-erlang.pod:99
3680 #, fuzzy
3681 #| msgid ""
3682 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3683 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3684 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3685 msgid ""
3686 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3687 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3688 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3689 msgstr ""
3690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3691 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3692 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3693
3694 #. type: =head1
3695 #: ../erlang/examples/guestfs-erlang.pod:110
3696 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3697 #: ../fish/guestfish.pod:1261 ../fish/virt-copy-in.pod:60
3698 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3699 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3700 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3701 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3702 #: ../python/examples/guestfs-python.pod:54
3703 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3242
3704 #: ../test-tool/libguestfs-test-tool.pod:106
3705 msgid "AUTHORS"
3706 msgstr "АВТОРИ"
3707
3708 #. type: textblock
3709 #: ../erlang/examples/guestfs-erlang.pod:112
3710 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3711 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:62
3712 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3713 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3714 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3715 #: ../perl/examples/guestfs-perl.pod:54
3716 #: ../python/examples/guestfs-python.pod:56
3717 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3244
3718 #: ../test-tool/libguestfs-test-tool.pod:108
3719 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../erlang/examples/guestfs-erlang.pod:116
3724 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3725 #, fuzzy
3726 #| msgid "Copyright (C) 2009 Red Hat Inc."
3727 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3728 msgstr "© Red Hat Inc., 2009"
3729
3730 #. type: textblock
3731 #: ../erlang/examples/guestfs-erlang.pod:118
3732 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3733 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3734 #: ../perl/examples/guestfs-perl.pod:60
3735 #: ../python/examples/guestfs-python.pod:62
3736 #: ../ruby/examples/guestfs-ruby.pod:56
3737 msgid ""
3738 "The examples in this manual page may be freely copied, modified and "
3739 "distributed without any restrictions."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../erlang/examples/guestfs-erlang.pod:121
3744 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3745 #: ../java/examples/guestfs-java.pod:69
3746 #: ../ocaml/examples/guestfs-ocaml.pod:102
3747 #: ../perl/examples/guestfs-perl.pod:63
3748 #: ../python/examples/guestfs-python.pod:65
3749 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3251
3750 msgid ""
3751 "This library is free software; you can redistribute it and/or modify it "
3752 "under the terms of the GNU Lesser General Public License as published by the "
3753 "Free Software Foundation; either version 2 of the License, or (at your "
3754 "option) any later version."
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../erlang/examples/guestfs-erlang.pod:126
3759 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3760 #: ../java/examples/guestfs-java.pod:74
3761 #: ../ocaml/examples/guestfs-ocaml.pod:107
3762 #: ../perl/examples/guestfs-perl.pod:68
3763 #: ../python/examples/guestfs-python.pod:70
3764 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3256
3765 msgid ""
3766 "This library is distributed in the hope that it will be useful, but WITHOUT "
3767 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3768 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3769 "for more details."
3770 msgstr ""
3771
3772 #. type: textblock
3773 #: ../erlang/examples/guestfs-erlang.pod:131
3774 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3775 #: ../java/examples/guestfs-java.pod:79
3776 #: ../ocaml/examples/guestfs-ocaml.pod:112
3777 #: ../perl/examples/guestfs-perl.pod:73
3778 #: ../python/examples/guestfs-python.pod:75
3779 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3261
3780 msgid ""
3781 "You should have received a copy of the GNU Lesser General Public License "
3782 "along with this library; if not, write to the Free Software Foundation, "
3783 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../examples/guestfs-examples.pod:5
3788 msgid "guestfs-examples - Examples of using libguestfs from C"
3789 msgstr ""
3790
3791 #. type: verbatim
3792 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3793 #, no-wrap
3794 msgid ""
3795 " #include <guestfs.h>\n"
3796 " \n"
3797 msgstr ""
3798 " #include <guestfs.h>\n"
3799 " \n"
3800
3801 #. type: verbatim
3802 #: ../examples/guestfs-examples.pod:11
3803 #, no-wrap
3804 msgid ""
3805 " guestfs_h *g = guestfs_create ();\n"
3806 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3807 " guestfs_launch (g);\n"
3808 "\n"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3813 #, no-wrap
3814 msgid ""
3815 " cc prog.c -o prog -lguestfs\n"
3816 "or:\n"
3817 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3818 "\n"
3819 msgstr ""
3820 " cc prog.c -o prog -lguestfs\n"
3821 "або:\n"
3822 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3823 "\n"
3824
3825 #. type: textblock
3826 #: ../examples/guestfs-examples.pod:21
3827 msgid ""
3828 "This manual page contains examples of calling libguestfs from the C "
3829 "programming language.  If you are not familiar with using libguestfs, you "
3830 "also need to read L<guestfs(3)>."
3831 msgstr ""
3832
3833 #. type: textblock
3834 #: ../examples/guestfs-examples.pod:35
3835 #, fuzzy
3836 #| msgid ""
3837 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3838 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3839 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3840 msgid ""
3841 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3842 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3843 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3844 msgstr ""
3845 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3846 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3847 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3851 #: ../python/examples/guestfs-python.pod:60
3852 #: ../ruby/examples/guestfs-ruby.pod:54
3853 #, fuzzy
3854 #| msgid "Copyright (C) 2009 Red Hat Inc."
3855 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3856 msgstr "© Red Hat Inc., 2009"
3857
3858 #. type: =end
3859 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3860 msgid "comment"
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../examples/guestfs-recipes.pod:5
3865 msgid ""
3866 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3867 "here.  The only way which works for both sorts of output is to just write "
3868 "the URL directly.  Do NOT use L<...> for URLs."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../examples/guestfs-recipes.pod:9
3873 msgid ""
3874 "We break with tradition here and don't use ALL CAPS for the section "
3875 "headings, as this makes them much easier to read."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../examples/guestfs-recipes.pod:16
3880 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3881 msgstr ""
3882
3883 #. type: textblock
3884 #: ../examples/guestfs-recipes.pod:20
3885 msgid ""
3886 "This page contains recipes for and links to things you can do using "
3887 "libguestfs, L<guestfish(1)> and the virt tools."
3888 msgstr ""
3889
3890 #. type: =head1
3891 #: ../examples/guestfs-recipes.pod:23
3892 msgid "Audit a virtual machine for setuid files"
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../examples/guestfs-recipes.pod:25
3897 msgid ""
3898 "The link below contains a small program which can be used to audit a Linux "
3899 "virtual machine to see what setuid and setgid files it contains."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../examples/guestfs-recipes.pod:28
3904 msgid ""
3905 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3906 "files/#content"
3907 msgstr ""
3908
3909 #. type: =head1
3910 #: ../examples/guestfs-recipes.pod:30
3911 msgid "Change the background image in a Windows XP VM"
3912 msgstr ""
3913
3914 #. type: textblock
3915 #: ../examples/guestfs-recipes.pod:32
3916 msgid ""
3917 "The links below explain how to use L<guestfish(1)> to change the background "
3918 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3919 "be substantially different for each version of Windows."
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:37
3924 msgid ""
3925 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3926 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3927 msgstr ""
3928
3929 #. type: =head1
3930 #: ../examples/guestfs-recipes.pod:40
3931 msgid "Cloning a virtual machine (Linux)"
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../examples/guestfs-recipes.pod:42
3936 msgid ""
3937 "The guestfish technique described in the link below works well for most "
3938 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3939 "slightly."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../examples/guestfs-recipes.pod:46
3944 msgid ""
3945 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3946 "vm/#content"
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../examples/guestfs-recipes.pod:48
3951 msgid ""
3952 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3953 "discussion."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../examples/guestfs-recipes.pod:51
3958 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3959 msgstr ""
3960
3961 #. type: =head1
3962 #: ../examples/guestfs-recipes.pod:53
3963 msgid "Cloning a virtual machine (Windows)"
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../examples/guestfs-recipes.pod:55
3968 msgid ""
3969 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3970 "straightforward.  Currently there is code in the Aeolus Oz project which "
3971 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3972 "we may add sysprepping ability."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:60
3977 msgid ""
3978 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3979 "list/2011-May/msg00019.html"
3980 msgstr ""
3981
3982 #. type: =head1
3983 #: ../examples/guestfs-recipes.pod:63
3984 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3985 msgstr ""
3986
3987 #. type: textblock
3988 #: ../examples/guestfs-recipes.pod:65
3989 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3990 msgstr ""
3991
3992 #. type: verbatim
3993 #: ../examples/guestfs-recipes.pod:67
3994 #, no-wrap
3995 msgid ""
3996 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3997 "\n"
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../examples/guestfs-recipes.pod:69
4002 msgid "To export just a subdirectory, eg. C</files>, do:"
4003 msgstr ""
4004
4005 #. type: verbatim
4006 #: ../examples/guestfs-recipes.pod:71
4007 #, no-wrap
4008 msgid ""
4009 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: =head1
4014 #: ../examples/guestfs-recipes.pod:73
4015 msgid "Create empty disk images"
4016 msgstr ""
4017
4018 #. type: textblock
4019 #: ../examples/guestfs-recipes.pod:75
4020 msgid ""
4021 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4022 "The useful guide below explains the options available."
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../examples/guestfs-recipes.pod:78
4027 msgid ""
4028 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4029 "#content"
4030 msgstr ""
4031
4032 #. type: =head1
4033 #: ../examples/guestfs-recipes.pod:80
4034 msgid "Dump raw filesystem content from inside a disk image or VM"
4035 msgstr ""
4036
4037 #. type: textblock
4038 #: ../examples/guestfs-recipes.pod:82
4039 msgid ""
4040 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4041 "filesystem content from any filesystem in a disk image or a VM (even one "
4042 "which is encrypted or buried inside an LV):"
4043 msgstr ""
4044
4045 #. type: verbatim
4046 #: ../examples/guestfs-recipes.pod:86
4047 #, fuzzy, no-wrap
4048 #| msgid ""
4049 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4050 #| "\n"
4051 msgid ""
4052 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4053 "\n"
4054 msgstr ""
4055 " guestfish --format=raw -a disk.img --format -a another.img\n"
4056 "\n"
4057
4058 #. type: verbatim
4059 #: ../examples/guestfs-recipes.pod:88
4060 #, no-wrap
4061 msgid ""
4062 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4063 "\n"
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../examples/guestfs-recipes.pod:90
4068 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4069 msgstr ""
4070
4071 #. type: =head1
4072 #: ../examples/guestfs-recipes.pod:92
4073 msgid "Edit grub configuration in a VM"
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../examples/guestfs-recipes.pod:94
4078 msgid "You can use this to:"
4079 msgstr ""
4080
4081 #. type: textblock
4082 #: ../examples/guestfs-recipes.pod:100
4083 msgid "Fix a virtual machine that does not boot."
4084 msgstr ""
4085
4086 #. type: textblock
4087 #: ../examples/guestfs-recipes.pod:104
4088 msgid "Change which kernel is used to boot the VM."
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../examples/guestfs-recipes.pod:108
4093 msgid "Change kernel command line options."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../examples/guestfs-recipes.pod:112
4098 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4099 msgstr ""
4100
4101 #. type: verbatim
4102 #: ../examples/guestfs-recipes.pod:114
4103 #, no-wrap
4104 msgid ""
4105 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4106 "\n"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../examples/guestfs-recipes.pod:116
4111 msgid ""
4112 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4113 "this:"
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../examples/guestfs-recipes.pod:119
4118 #, no-wrap
4119 msgid ""
4120 " virt-rescue -d BrokenGuest\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: =head1
4125 #: ../examples/guestfs-recipes.pod:121
4126 msgid "Export any directory from a VM"
4127 msgstr ""
4128
4129 #. type: textblock
4130 #: ../examples/guestfs-recipes.pod:123
4131 msgid ""
4132 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../examples/guestfs-recipes.pod:126
4137 #, fuzzy, no-wrap
4138 #| msgid ""
4139 #| " copy-out /home .\n"
4140 #| "\n"
4141 msgid ""
4142 " virt-copy-out -d Guest /home .\n"
4143 "\n"
4144 msgstr ""
4145 " copy-out /home .\n"
4146 "\n"
4147
4148 #. type: textblock
4149 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4150 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4151 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4152 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4153 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4154 #: ../tools/virt-win-reg.pl:706
4155 msgid "Notes:"
4156 msgstr "Нотатки:"
4157
4158 #. type: textblock
4159 #: ../examples/guestfs-recipes.pod:134
4160 msgid ""
4161 "The final dot of the command is not a printing error.  It means we want to "
4162 "copy out to the current directory."
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../examples/guestfs-recipes.pod:139
4167 msgid "This creates a directory called C<home> under the current directory."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../examples/guestfs-recipes.pod:143
4172 msgid ""
4173 "If the guest is a Windows guest then you can use drive letters and "
4174 "backslashes, but you must prefix the path with C<win:> and quote it to "
4175 "protect it from the shell, like this:"
4176 msgstr ""
4177
4178 #. type: verbatim
4179 #: ../examples/guestfs-recipes.pod:147
4180 #, no-wrap
4181 msgid ""
4182 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4183 "\n"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../examples/guestfs-recipes.pod:149
4188 msgid "To get the output as a compressed tarball, do:"
4189 msgstr ""
4190
4191 #. type: verbatim
4192 #: ../examples/guestfs-recipes.pod:151
4193 #, no-wrap
4194 msgid ""
4195 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../examples/guestfs-recipes.pod:153
4201 msgid ""
4202 "Although it sounds tempting, this is usually not a reliable way to get a "
4203 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4204 "org/FAQ.html#backup"
4205 msgstr ""
4206
4207 #. type: =head1
4208 #: ../examples/guestfs-recipes.pod:157
4209 msgid "Find out which user is using the most space"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../examples/guestfs-recipes.pod:159
4214 msgid ""
4215 "This simple script examines a Linux guest to find out which user is using "
4216 "the most space in their home directory:"
4217 msgstr ""
4218
4219 #. type: verbatim
4220 #: ../examples/guestfs-recipes.pod:162
4221 #, fuzzy, no-wrap
4222 #| msgid ""
4223 #| " #!/usr/bin/guestfish -f\n"
4224 #| "\n"
4225 msgid ""
4226 " #!/bin/sh -\n"
4227 " \n"
4228 msgstr ""
4229 " #!/usr/bin/guestfish -f\n"
4230 "\n"
4231
4232 #. type: verbatim
4233 #: ../examples/guestfs-recipes.pod:164
4234 #, fuzzy, no-wrap
4235 #| msgid ""
4236 #| " set-qemu qemu\n"
4237 #| "\n"
4238 msgid ""
4239 " set -e\n"
4240 " \n"
4241 msgstr ""
4242 " set-qemu qemu\n"
4243 "\n"
4244
4245 #. type: verbatim
4246 #: ../examples/guestfs-recipes.pod:166
4247 #, no-wrap
4248 msgid ""
4249 " vm=\"$1\"\n"
4250 " dir=/home\n"
4251 " \n"
4252 msgstr ""
4253
4254 #. type: verbatim
4255 #: ../examples/guestfs-recipes.pod:169
4256 #, fuzzy, no-wrap
4257 #| msgid ""
4258 #| " guestfish --ro -d myguest -i\n"
4259 #| "\n"
4260 msgid ""
4261 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4262 " \n"
4263 msgstr ""
4264 " guestfish --ro -d myguest -i\n"
4265 "\n"
4266
4267 #. type: verbatim
4268 #: ../examples/guestfs-recipes.pod:171
4269 #, no-wrap
4270 msgid ""
4271 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4272 "     echo -n \"$dir/$d\"\n"
4273 "     echo -ne '\\t'\n"
4274 "     guestfish --remote du \"$dir/$d\";\n"
4275 " done | sort -nr -k 2\n"
4276 " \n"
4277 msgstr ""
4278
4279 #. type: verbatim
4280 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4281 #, no-wrap
4282 msgid ""
4283 " guestfish --remote exit\n"
4284 "\n"
4285 msgstr ""
4286
4287 #. type: =head1
4288 #: ../examples/guestfs-recipes.pod:179
4289 msgid "Get DHCP address from a VM"
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../examples/guestfs-recipes.pod:181
4294 msgid ""
4295 "The link below explains the many different possible techniques for getting "
4296 "the last assigned DHCP address of a virtual machine."
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../examples/guestfs-recipes.pod:184
4301 msgid ""
4302 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4303 "a-virtual-machine-disk-image/#content"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../examples/guestfs-recipes.pod:186
4308 msgid ""
4309 "In the libguestfs source examples directory you will find the latest version "
4310 "of the C<virt-dhcp-address.c> program."
4311 msgstr ""
4312
4313 #. type: =head1
4314 #: ../examples/guestfs-recipes.pod:189
4315 msgid "Get the operating system product name string"
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../examples/guestfs-recipes.pod:191
4320 msgid "Save the following script into a file called C<product-name.sh>:"
4321 msgstr ""
4322
4323 #. type: verbatim
4324 #: ../examples/guestfs-recipes.pod:193
4325 #, fuzzy, no-wrap
4326 #| msgid ""
4327 #| " eval \"`guestfish --listen`\"\n"
4328 #| " guestfish --remote add-ro disk.img\n"
4329 #| " guestfish --remote run\n"
4330 #| " guestfish --remote lvs\n"
4331 #| "\n"
4332 msgid ""
4333 " #!/bin/sh -\n"
4334 " set -e\n"
4335 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4336 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4337 " guestfish --remote inspect-get-product-name \"$root\"\n"
4338 " guestfish --remote exit\n"
4339 "\n"
4340 msgstr ""
4341 " eval \"`guestfish --listen`\"\n"
4342 " guestfish --remote add-ro disk.img\n"
4343 " guestfish --remote run\n"
4344 " guestfish --remote lvs\n"
4345 "\n"
4346
4347 #. type: textblock
4348 #: ../examples/guestfs-recipes.pod:200
4349 msgid "Make the script executable and run it on a named guest:"
4350 msgstr ""
4351
4352 #. type: verbatim
4353 #: ../examples/guestfs-recipes.pod:202
4354 #, no-wrap
4355 msgid ""
4356 " # product-name.sh RHEL60x64\n"
4357 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4358 "\n"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../examples/guestfs-recipes.pod:205
4363 msgid ""
4364 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4365 "C<xpath> command line tool or from your favourite programming language:"
4366 msgstr ""
4367
4368 #. type: verbatim
4369 #: ../examples/guestfs-recipes.pod:209
4370 #, no-wrap
4371 msgid ""
4372 " # virt-inspector RHEL60x64 > xml\n"
4373 " # xpath '//product_name' < xml\n"
4374 " Found 1 nodes:\n"
4375 " -- NODE --\n"
4376 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: =head1
4381 #: ../examples/guestfs-recipes.pod:215
4382 msgid "Get the default boot kernel for a Linux VM"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../examples/guestfs-recipes.pod:217
4387 msgid ""
4388 "The link below contains a program to print the default boot kernel for a "
4389 "Linux VM."
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../examples/guestfs-recipes.pod:220
4394 msgid ""
4395 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4396 "kernel-for-a-vm/#content"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../examples/guestfs-recipes.pod:222
4401 msgid ""
4402 "It uses Augeas, and the technique is generally applicable for many different "
4403 "tasks, such as:"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../examples/guestfs-recipes.pod:229
4408 msgid "listing the user accounts in the guest"
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../examples/guestfs-recipes.pod:233
4413 msgid "what repositories is it configured to use"
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../examples/guestfs-recipes.pod:237
4418 msgid "what NTP servers does it connect to"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:241
4423 msgid "what were the boot messages last time it booted"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../examples/guestfs-recipes.pod:245
4428 msgid "listing who was logged in recently"
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../examples/guestfs-recipes.pod:249
4433 msgid "http://augeas.net/"
4434 msgstr ""
4435
4436 #. type: =head1
4437 #: ../examples/guestfs-recipes.pod:251
4438 msgid "Install RPMs in a guest"
4439 msgstr ""
4440
4441 #. type: textblock
4442 #: ../examples/guestfs-recipes.pod:253
4443 msgid ""
4444 "The link below contains a method to install RPMs in a guest.  In fact the "
4445 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4446 "installs them next time the guest is booted.  You could use this technique "
4447 "to install vital security updates in an offline guest."
4448 msgstr ""
4449
4450 #. type: textblock
4451 #: ../examples/guestfs-recipes.pod:259
4452 msgid ""
4453 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4454 msgstr ""
4455
4456 #. type: =head1
4457 #: ../examples/guestfs-recipes.pod:261
4458 msgid "List applications installed in a VM"
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../examples/guestfs-recipes.pod:263
4463 msgid "Save the following to a file C<list-apps.sh>:"
4464 msgstr ""
4465
4466 #. type: verbatim
4467 #: ../examples/guestfs-recipes.pod:265
4468 #, fuzzy, no-wrap
4469 #| msgid ""
4470 #| " eval \"`guestfish --listen`\"\n"
4471 #| " guestfish --remote add-ro disk.img\n"
4472 #| " guestfish --remote run\n"
4473 #| " guestfish --remote lvs\n"
4474 #| "\n"
4475 msgid ""
4476 " #!/bin/sh -\n"
4477 " set -e\n"
4478 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4479 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4480 " guestfish --remote inspect-list-applications \"$root\"\n"
4481 " guestfish --remote exit\n"
4482 "\n"
4483 msgstr ""
4484 " eval \"`guestfish --listen`\"\n"
4485 " guestfish --remote add-ro disk.img\n"
4486 " guestfish --remote run\n"
4487 " guestfish --remote lvs\n"
4488 "\n"
4489
4490 #. type: textblock
4491 #: ../examples/guestfs-recipes.pod:272
4492 msgid ""
4493 "Make the file executable and then you can run it on any named virtual "
4494 "machine:"
4495 msgstr ""
4496
4497 #. type: verbatim
4498 #: ../examples/guestfs-recipes.pod:275
4499 #, no-wrap
4500 msgid ""
4501 " # list-apps.sh WinGuest\n"
4502 " [0] = {\n"
4503 "   app_name: Mozilla Firefox (3.6.12)\n"
4504 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4505 "   app_epoch: 0\n"
4506 "   app_version: 3.6.12 (en-GB)\n"
4507 "   app_release:\n"
4508 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4509 "   app_trans_path:\n"
4510 "   app_publisher: Mozilla\n"
4511 "   app_url: http://www.mozilla.com/en-GB/\n"
4512 "   app_source_package:\n"
4513 "   app_summary:\n"
4514 "   app_description: Mozilla Firefox\n"
4515 " }\n"
4516 " [1] = {\n"
4517 "   app_name: VLC media player\n"
4518 "   app_display_name: VLC media player 1.1.5\n"
4519 "   app_epoch: 0\n"
4520 "   app_version: 1.1.5\n"
4521 "   app_release:\n"
4522 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4523 "   app_trans_path:\n"
4524 "   app_publisher: VideoLAN\n"
4525 "   app_url: http://www.videolan.org/\n"
4526 "   app_source_package:\n"
4527 "   app_summary:\n"
4528 "   app_description:\n"
4529 " }\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:305
4535 msgid ""
4536 "If you want to run the script on disk images (instead of libvirt virtual "
4537 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4538 ">."
4539 msgstr ""
4540
4541 #. type: =head1
4542 #: ../examples/guestfs-recipes.pod:309
4543 msgid "List files and directories in a VM"
4544 msgstr ""
4545
4546 #. type: textblock
4547 #: ../examples/guestfs-recipes.pod:311
4548 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../examples/guestfs-recipes.pod:313
4553 #, fuzzy, no-wrap
4554 #| msgid ""
4555 #| " guestfish --ro -d myguest -i\n"
4556 #| "\n"
4557 msgid ""
4558 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4559 "\n"
4560 msgstr ""
4561 " guestfish --ro -d myguest -i\n"
4562 "\n"
4563
4564 #. type: =head1
4565 #: ../examples/guestfs-recipes.pod:315
4566 msgid "List services in a Windows VM"
4567 msgstr ""
4568
4569 #. type: textblock
4570 #: ../examples/guestfs-recipes.pod:317
4571 msgid ""
4572 "The link below contains a script that can be used to list out the services "
4573 "from a Windows VM, and whether those services run at boot time or are loaded "
4574 "on demand."
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../examples/guestfs-recipes.pod:321
4579 msgid ""
4580 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4581 "#content"
4582 msgstr ""
4583
4584 #. type: =head1
4585 #: ../examples/guestfs-recipes.pod:323
4586 msgid "Make a disk image sparse"
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../examples/guestfs-recipes.pod:325
4591 msgid ""
4592 "The link below contains some guides for making a disk image sparse (or "
4593 "reintroducing sparseness)."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../examples/guestfs-recipes.pod:328
4598 msgid ""
4599 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4600 msgstr ""
4601
4602 #. type: =head1
4603 #: ../examples/guestfs-recipes.pod:330
4604 msgid "Monitor disk usage over time"
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../examples/guestfs-recipes.pod:332
4609 msgid ""
4610 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4611 "The link below contains a guide."
4612 msgstr ""
4613
4614 #. type: textblock
4615 #: ../examples/guestfs-recipes.pod:335
4616 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4617 msgstr ""
4618
4619 #. type: =head1
4620 #: ../examples/guestfs-recipes.pod:337
4621 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../examples/guestfs-recipes.pod:339
4626 msgid ""
4627 "L<guestfish(1)> plus the tools described in the link below can be used to "
4628 "read out the Windows Event Log from any virtual machine running Windows "
4629 "Vista or a later version."
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../examples/guestfs-recipes.pod:343
4634 msgid ""
4635 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4636 "guestfish/#content"
4637 msgstr ""
4638
4639 #. type: =head1
4640 #: ../examples/guestfs-recipes.pod:345
4641 msgid "Remove root password (Linux)"
4642 msgstr ""
4643
4644 #. type: textblock
4645 #: ../examples/guestfs-recipes.pod:347
4646 msgid ""
4647 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4648 "files.  One use is to remove the root password from a Linux guest:"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../examples/guestfs-recipes.pod:350
4653 #, no-wrap
4654 msgid ""
4655 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4656 "\n"
4657 msgstr ""
4658
4659 #. type: =head1
4660 #: ../examples/guestfs-recipes.pod:352
4661 msgid "Remove Administrator password (Windows)"
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../examples/guestfs-recipes.pod:354
4666 msgid ""
4667 "The link below contains one technique for removing the Administrator "
4668 "password from a Windows VM, or to be more precise, it gives you a command "
4669 "prompt the next time you log in which you can use to bypass any security:"
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../examples/guestfs-recipes.pod:359
4674 msgid ""
4675 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4676 "administrator-password-with-guestfish/"
4677 msgstr ""
4678
4679 #. type: =head1
4680 #: ../examples/guestfs-recipes.pod:361
4681 msgid "Unpack a live CD"
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../examples/guestfs-recipes.pod:363
4686 msgid ""
4687 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4688 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4689 "layers, as outlined in the guide below."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../examples/guestfs-recipes.pod:367
4694 msgid ""
4695 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4696 "cd/#content"
4697 msgstr ""
4698
4699 #. type: =head1
4700 #: ../examples/guestfs-recipes.pod:369
4701 msgid "Uploading and downloading files"
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../examples/guestfs-recipes.pod:371
4706 msgid ""
4707 "The link below contains general tips on uploading (copying in)  and "
4708 "downloading (copying out) files from VMs."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../examples/guestfs-recipes.pod:374
4713 msgid ""
4714 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4715 msgstr ""
4716
4717 #. type: =head1
4718 #: ../examples/guestfs-recipes.pod:376
4719 msgid "Use libguestfs tools on VMware ESX guests"
4720 msgstr ""
4721
4722 #. type: textblock
4723 #: ../examples/guestfs-recipes.pod:378
4724 msgid ""
4725 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4726 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../examples/guestfs-recipes.pod:382
4731 msgid ""
4732 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4733 "guests/#content"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:386
4738 #, fuzzy
4739 #| msgid ""
4740 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4741 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4742 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4743 msgid ""
4744 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4745 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4746 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4747 msgstr ""
4748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4749 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4750 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4751
4752 #. type: textblock
4753 #: ../examples/guestfs-recipes.pod:403
4754 #, fuzzy
4755 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4756 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4757 msgstr "© Red Hat Inc., 2009–2010"
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:1
4761 msgid "add-cdrom"
4762 msgstr ""
4763
4764 #. type: verbatim
4765 #: ../fish/guestfish-actions.pod:3
4766 #, no-wrap
4767 msgid ""
4768 " add-cdrom filename\n"
4769 "\n"
4770 msgstr ""
4771
4772 #. type: textblock
4773 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4774 msgid "This function adds a virtual CD-ROM disk image to the guest."
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4779 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../fish/guestfish-actions.pod:15
4784 msgid ""
4785 "This call checks for the existence of C<filename>.  This stops you from "
4786 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4787 "and C<http:> URLs.  To specify those, use the general L</config> call "
4788 "instead."
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../fish/guestfish-actions.pod:22
4793 msgid ""
4794 "If you just want to add an ISO file (often you use this as an efficient way "
4795 "to transfer large files into the guest), then you should probably use L</add-"
4796 "drive-ro> instead."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4801 #: ../fish/guestfish-actions.pod:177
4802 msgid ""
4803 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4804 "instead."
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4809 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4810 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4811 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4812 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4813 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4814 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4815 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4816 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4817 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4818 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4819 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4820 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4821 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4822 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4823 #: ../src/guestfs-actions.pod:8040
4824 msgid ""
4825 "Deprecated functions will not be removed from the API, but the fact that "
4826 "they are deprecated indicates that there are problems with correct use of "
4827 "these functions."
4828 msgstr ""
4829
4830 #. type: =head2
4831 #: ../fish/guestfish-actions.pod:35
4832 msgid "add-domain"
4833 msgstr "add-domain"
4834
4835 #. type: =head2
4836 #: ../fish/guestfish-actions.pod:37
4837 msgid "domain"
4838 msgstr ""
4839
4840 #. type: verbatim
4841 #: ../fish/guestfish-actions.pod:39
4842 #, no-wrap
4843 msgid ""
4844 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4845 "\n"
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../fish/guestfish-actions.pod:41
4850 msgid ""
4851 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4852 "It works by connecting to libvirt, requesting the domain and domain XML from "
4853 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4854 msgstr ""
4855
4856 #. type: textblock
4857 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4858 msgid ""
4859 "The number of disks added is returned.  This operation is atomic: if an "
4860 "error is returned, then no disks are added."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4865 msgid ""
4866 "This function does some minimal checks to make sure the libvirt domain is "
4867 "not running (unless C<readonly> is true).  In a future version we will try "
4868 "to acquire the libvirt lock on each disk."
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4873 msgid ""
4874 "Disks must be accessible locally.  This often means that adding disks from a "
4875 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4876 "unless those disks are accessible via the same device path locally too."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4881 msgid ""
4882 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4883 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4884 "libvirt URI (or one set through an environment variable, see the libvirt "
4885 "documentation for full details)."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4890 msgid ""
4891 "The optional C<live> flag controls whether this call will try to connect to "
4892 "a running virtual machine C<guestfsd> process if it sees a suitable "
4893 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4894 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4895 "DAEMONS> for more information."
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4900 msgid ""
4901 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4902 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4903 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4904 "as usual."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../fish/guestfish-actions.pod:76
4909 msgid ""
4910 "The other optional parameters are passed directly through to L</add-drive-"
4911 "opts>."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4916 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4917 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4918 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4919 #: ../fish/guestfish-actions.pod:3504
4920 msgid ""
4921 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4922 msgstr ""
4923
4924 #. type: =head2
4925 #: ../fish/guestfish-actions.pod:81
4926 msgid "add-drive"
4927 msgstr "add-drive"
4928
4929 #. type: verbatim
4930 #: ../fish/guestfish-actions.pod:83
4931 #, no-wrap
4932 msgid ""
4933 " add-drive filename\n"
4934 "\n"
4935 msgstr ""
4936 " add-drive назва_файла\n"
4937 "\n"
4938
4939 #. type: textblock
4940 #: ../fish/guestfish-actions.pod:85
4941 msgid ""
4942 "This function is the equivalent of calling L</add-drive-opts> with no "
4943 "optional parameters, so the disk is added writable, with the format being "
4944 "detected automatically."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../fish/guestfish-actions.pod:89
4949 msgid ""
4950 "Automatic detection of the format opens you up to a potential security hole "
4951 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4952 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4953 "you should think about replacing calls to this function with calls to L</add-"
4954 "drive-opts>, and specifying the format."
4955 msgstr ""
4956
4957 #. type: =head2
4958 #: ../fish/guestfish-actions.pod:96
4959 msgid "add-drive-opts"
4960 msgstr "add-drive-opts"
4961
4962 #. type: =head2
4963 #: ../fish/guestfish-actions.pod:98
4964 msgid "add"
4965 msgstr "add"
4966
4967 #. type: verbatim
4968 #: ../fish/guestfish-actions.pod:100
4969 #, no-wrap
4970 msgid ""
4971 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4972 "\n"
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4977 msgid ""
4978 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4979 "The first time you call this function, the disk appears as C</dev/sda>, the "
4980 "second time as C</dev/sdb>, and so on."
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4985 msgid ""
4986 "You don't necessarily need to be root when using libguestfs.  However you "
4987 "obviously do need sufficient permissions to access the filename for whatever "
4988 "operations you want to perform (ie. read access if you just want to read the "
4989 "image or write access if you want to modify the image)."
4990 msgstr ""
4991
4992 #. type: textblock
4993 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4994 msgid "This call checks that C<filename> exists."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4999 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5000 msgid "The optional arguments are:"
5001 msgstr ""
5002
5003 #. type: =item
5004 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5005 msgid "C<readonly>"
5006 msgstr "C<readonly>"
5007
5008 #. type: textblock
5009 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5010 msgid ""
5011 "If true then the image is treated as read-only.  Writes are still allowed, "
5012 "but they are stored in a temporary snapshot overlay which is discarded at "
5013 "the end.  The disk that you add is not modified."
5014 msgstr ""
5015
5016 #. type: =item
5017 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5018 msgid "C<format>"
5019 msgstr "C<format>"
5020
5021 #. type: textblock
5022 #: ../fish/guestfish-actions.pod:127
5023 msgid ""
5024 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5025 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5026 "include C<raw> and C<qcow2>."
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5031 msgid ""
5032 "Automatic detection of the format opens you up to a potential security hole "
5033 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5034 "RHBZ#642934.  Specifying the format closes this security hole."
5035 msgstr ""
5036
5037 #. type: =item
5038 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5039 msgid "C<iface>"
5040 msgstr "C<iface>"
5041
5042 #. type: textblock
5043 #: ../fish/guestfish-actions.pod:138
5044 msgid ""
5045 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5046 "add-drive-with-if> call (q.v.)"
5047 msgstr ""
5048
5049 #. type: =head2
5050 #: ../fish/guestfish-actions.pod:145
5051 msgid "add-drive-ro"
5052 msgstr "add-drive-ro"
5053
5054 #. type: =head2
5055 #: ../fish/guestfish-actions.pod:147
5056 msgid "add-ro"
5057 msgstr "add-ro"
5058
5059 #. type: verbatim
5060 #: ../fish/guestfish-actions.pod:149
5061 #, no-wrap
5062 msgid ""
5063 " add-drive-ro filename\n"
5064 "\n"
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:151
5069 msgid ""
5070 "This function is the equivalent of calling L</add-drive-opts> with the "
5071 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5072 "is added read-only, with the format being detected automatically."
5073 msgstr ""
5074