Version 1.13.3.
[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-08-07 23:15+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 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "НАЗВА"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr "КОРОТКИЙ ОПИС"
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| " virt-list-partitions [--options] domname\n"
67 #| "\n"
68 msgid ""
69 " virt-cat [--options] -d domname file [file ...]\n"
70 "\n"
71 msgstr ""
72 " virt-list-partitions [--параметри] назва_домену\n"
73 "\n"
74
75 #. type: verbatim
76 #: ../cat/virt-cat.pod:11
77 #, fuzzy, no-wrap
78 #| msgid ""
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
80 #| "\n"
81 msgid ""
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
83 "\n"
84 msgstr ""
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
86 "\n"
87
88 #. type: textblock
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
91 msgid "Old-style:"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:15
96 #, no-wrap
97 msgid ""
98 " virt-cat domname file\n"
99 "\n"
100 msgstr ""
101
102 #. type: verbatim
103 #: ../cat/virt-cat.pod:17
104 #, no-wrap
105 msgid ""
106 " virt-cat disk.img file\n"
107 "\n"
108 msgstr ""
109
110 #. type: =head1
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
125 msgid "DESCRIPTION"
126 msgstr "ОПИС"
127
128 #. type: textblock
129 #: ../cat/virt-cat.pod:21
130 msgid ""
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:24
137 msgid ""
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together.  Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
141 msgstr ""
142
143 #. type: textblock
144 #: ../cat/virt-cat.pod:28
145 msgid ""
146 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
147 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
149 msgstr ""
150
151 #. type: =head1
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1007 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
158 msgid "EXAMPLES"
159 msgstr "ПРИКЛАДИ"
160
161 #. type: textblock
162 #: ../cat/virt-cat.pod:34
163 msgid ""
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../cat/virt-cat.pod:37
169 #, no-wrap
170 msgid ""
171 " virt-cat -d mydomain /etc/fstab\n"
172 "\n"
173 msgstr ""
174
175 #. type: textblock
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
178 msgstr ""
179
180 #. type: verbatim
181 #: ../cat/virt-cat.pod:41
182 #, no-wrap
183 msgid ""
184 " virt-cat -a disk.img /var/log/messages | tail\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
191 msgstr ""
192
193 #. type: verbatim
194 #: ../cat/virt-cat.pod:45
195 #, no-wrap
196 msgid ""
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 "   grep 'dhclient: bound to' | tail\n"
199 "\n"
200 msgstr ""
201
202 #. type: textblock
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
205 msgstr ""
206
207 #. type: verbatim
208 #: ../cat/virt-cat.pod:50
209 #, no-wrap
210 msgid ""
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
212 "\n"
213 msgstr ""
214
215 #. type: textblock
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
218 msgstr ""
219
220 #. type: verbatim
221 #: ../cat/virt-cat.pod:54
222 #, no-wrap
223 msgid ""
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 " who /tmp/utmp\n"
226 "\n"
227 msgstr ""
228
229 #. type: textblock
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
232 msgstr ""
233
234 #. type: verbatim
235 #: ../cat/virt-cat.pod:59
236 #, no-wrap
237 msgid ""
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
240 "\n"
241 msgstr ""
242
243 #. type: =head1
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
254 msgid "OPTIONS"
255 msgstr "ПАРАМЕТРИ"
256
257 #. type: =item
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
265 msgid "B<--help>"
266 msgstr "B<--help>"
267
268 #. type: textblock
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
276 msgstr ""
277
278 #. type: =item
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
282 #, fuzzy
283 #| msgid "B<-f file>"
284 msgid "B<-a> file"
285 msgstr "B<-f файл>"
286
287 #. type: =item
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
291 #, fuzzy
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
295
296 #. type: textblock
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
300 msgid ""
301 "Add I<file> which should be a disk image from a virtual machine.  If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
304 msgstr ""
305
306 #. type: textblock
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
311 msgid ""
312 "The format of the disk image is auto-detected.  To override this and force a "
313 "particular format use the I<--format=..> option."
314 msgstr ""
315
316 #. type: =item
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
319 #, fuzzy
320 #| msgid "B<-c URI>"
321 msgid "B<-c> URI"
322 msgstr "B<-c адреса>"
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
327 #, fuzzy
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
331
332 #. type: textblock
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
338 msgid ""
339 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
340 "to the default libvirt hypervisor."
341 msgstr ""
342
343 #. type: textblock
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
346 msgid ""
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
348 "used at all."
349 msgstr ""
350
351 #. type: =item
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
355 msgid "B<-d> guest"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
363 msgstr ""
364
365 #. type: textblock
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
369 msgid ""
370 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
371 "instead of names."
372 msgstr ""
373
374 #. type: =item
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
380
381 #. type: textblock
382 #: ../cat/virt-cat.pod:100
383 msgid ""
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing.  If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
388 msgstr ""
389
390 #. type: =item
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
403 msgid "B<--format>"
404 msgstr "B<--format>"
405
406 #. type: textblock
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
411 msgid ""
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image.  Using this forces the disk format for I<-a> options which follow on "
414 "the command line.  Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod:2653
424 msgid "For example:"
425 msgstr "Приклад:"
426
427 #. type: verbatim
428 #: ../cat/virt-cat.pod:116
429 #, fuzzy, no-wrap
430 #| msgid ""
431 #| " guestfish --format=raw -a disk.img\n"
432 #| "\n"
433 msgid ""
434 " virt-cat --format=raw -a disk.img file\n"
435 "\n"
436 msgstr ""
437 " guestfish --format=raw -a disk.img\n"
438 "\n"
439
440 #. type: textblock
441 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
442 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
443 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
444 msgid "forces raw format (no auto-detection) for C<disk.img>."
445 msgstr ""
446
447 #. type: verbatim
448 #: ../cat/virt-cat.pod:120
449 #, fuzzy, no-wrap
450 #| msgid ""
451 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
452 #| "\n"
453 msgid ""
454 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
455 "\n"
456 msgstr ""
457 " guestfish --format=raw -a disk.img --format -a another.img\n"
458 "\n"
459
460 #. type: textblock
461 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
462 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
463 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
464 msgid ""
465 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
466 "detection for C<another.img>."
467 msgstr ""
468
469 #. type: textblock
470 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
471 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
472 #: ../rescue/virt-rescue.pod:144
473 msgid ""
474 "If you have untrusted raw-format guest disk images, you should use this "
475 "option to specify the disk format.  This avoids a possible security problem "
476 "with malicious guests (CVE-2010-3851)."
477 msgstr ""
478
479 #. type: =item
480 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
481 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
482 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
483 msgid "B<--keys-from-stdin>"
484 msgstr "B<--keys-from-stdin>"
485
486 #. type: textblock
487 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
488 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
489 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
490 msgid ""
491 "Read key or passphrase parameters from stdin.  The default is to try to read "
492 "passphrases from the user by opening C</dev/tty>."
493 msgstr ""
494
495 #. type: =item
496 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
497 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
498 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
499 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
500 msgid "B<-v>"
501 msgstr "B<-v>"
502
503 #. type: =item
504 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
505 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
506 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
507 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
508 msgid "B<--verbose>"
509 msgstr "B<--verbose>"
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
513 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
514 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
515 msgid "Enable verbose messages for debugging."
516 msgstr ""
517
518 #. type: =item
519 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
520 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
521 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
522 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
523 #: ../resize/virt-resize.pod:478
524 msgid "B<-V>"
525 msgstr "B<-V>"
526
527 #. type: =item
528 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
529 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
530 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
531 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
532 #: ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69
533 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
534 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
535 msgid "B<--version>"
536 msgstr "B<--version>"
537
538 #. type: textblock
539 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
540 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
541 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
542 #: ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71
543 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
544 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
545 msgid "Display version number and exit."
546 msgstr "Показати дані щодо версії і завершити роботу."
547
548 #. type: =item
549 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
550 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
551 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
552 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
553 #: ../tools/virt-tar.pl:158
554 msgid "B<-x>"
555 msgstr "B<-x>"
556
557 #. type: textblock
558 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
559 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
560 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
561 msgid "Enable tracing of libguestfs API calls."
562 msgstr ""
563
564 #. type: =head1
565 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
566 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
567 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
568 msgstr ""
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:154
572 msgid "Previous versions of virt-cat allowed you to write either:"
573 msgstr ""
574
575 #. type: verbatim
576 #: ../cat/virt-cat.pod:156
577 #, fuzzy, no-wrap
578 #| msgid ""
579 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
580 #| "\n"
581 msgid ""
582 " virt-cat disk.img [disk.img ...] file\n"
583 "\n"
584 msgstr ""
585 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
586 "\n"
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
590 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
591 #, fuzzy
592 #| msgid "or:"
593 msgid "or"
594 msgstr "або:"
595
596 #. type: verbatim
597 #: ../cat/virt-cat.pod:160
598 #, no-wrap
599 msgid ""
600 " virt-cat guestname file\n"
601 "\n"
602 msgstr ""
603
604 #. type: textblock
605 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
606 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
607 msgid ""
608 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
609 "the confusing case where a disk image might have the same name as a guest."
610 msgstr ""
611
612 #. type: textblock
613 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
614 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
615 msgid "For compatibility the old style is still supported."
616 msgstr ""
617
618 #. type: =head1
619 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
620 msgid "USING GUESTFISH"
621 msgstr ""
622
623 #. type: textblock
624 #: ../cat/virt-cat.pod:170
625 msgid ""
626 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
627 "C<virt-cat> doesn't work."
628 msgstr ""
629
630 #. type: textblock
631 #: ../cat/virt-cat.pod:173
632 msgid "Using C<virt-cat> is approximately equivalent to doing:"
633 msgstr ""
634
635 #. type: verbatim
636 #: ../cat/virt-cat.pod:175
637 #, fuzzy, no-wrap
638 #| msgid ""
639 #| " guestfish --ro -d myguest -i\n"
640 #| "\n"
641 msgid ""
642 " guestfish --ro -i -d domname download file -\n"
643 "\n"
644 msgstr ""
645 " guestfish --ro -d myguest -i\n"
646 "\n"
647
648 #. type: textblock
649 #: ../cat/virt-cat.pod:177
650 msgid ""
651 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
652 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
653 msgstr ""
654
655 #. type: textblock
656 #: ../cat/virt-cat.pod:181
657 msgid ""
658 "The command above uses libguestfs's guest inspection feature and so does not "
659 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
660 "disk images that don't contain guests.  To display a file from a disk image "
661 "directly, use:"
662 msgstr ""
663
664 #. type: verbatim
665 #: ../cat/virt-cat.pod:186
666 #, fuzzy, no-wrap
667 #| msgid ""
668 #| " guestfish [--ro] -i disk.img\n"
669 #| "\n"
670 msgid ""
671 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
672 "\n"
673 msgstr ""
674 " guestfish [--ro] -i disk.img\n"
675 "\n"
676
677 #. type: textblock
678 #: ../cat/virt-cat.pod:188
679 msgid ""
680 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
681 "the disk image to edit, and C<file> is the full path to the file."
682 msgstr ""
683
684 #. type: =head1
685 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
686 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
687 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188
689 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
690 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
691 msgid "SHELL QUOTING"
692 msgstr ""
693
694 #. type: textblock
695 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367
696 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
697 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190
699 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
700 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
701 msgid ""
702 "Libvirt guest names can contain arbitrary characters, some of which have "
703 "meaning to the shell such as C<#> and space.  You may need to quote or "
704 "escape these characters on the command line.  See the shell manual page L<sh"
705 "(1)> for details."
706 msgstr ""
707
708 #. type: =head1
709 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
712 #: ../fish/guestfish.pod:1224 ../fish/virt-copy-in.pod:50
713 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
714 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
716 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
717 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
718 #: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36
719 #: ../src/guestfs.pod:3027 ../test-tool/libguestfs-test-tool.pod:87
720 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
721 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
722 #: ../tools/virt-win-reg.pl:746
723 msgid "SEE ALSO"
724 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
725
726 #. type: textblock
727 #: ../cat/virt-cat.pod:201
728 #, fuzzy
729 #| msgid ""
730 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
731 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
732 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
733 msgid ""
734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
735 "tar-out(1)>, L<http://libguestfs.org/>."
736 msgstr ""
737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
738 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
739 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
740
741 #. type: =head1
742 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
743 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
744 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571
745 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
746 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
747 #: ../tools/virt-win-reg.pl:772
748 msgid "AUTHOR"
749 msgstr "АВТОР"
750
751 #. type: textblock
752 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
753 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
754 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
755 #: ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210
756 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
757 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
758 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
759 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
760
761 #. type: =head1
762 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
763 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
764 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
765 #: ../fish/guestfish.pod:1253 ../fish/virt-copy-in.pod:64
766 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
767 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
768 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
769 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
770 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
771 #: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51
772 #: ../src/guestfs.pod:3103 ../test-tool/libguestfs-test-tool.pod:97
773 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
774 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
775 #: ../tools/virt-win-reg.pl:776
776 msgid "COPYRIGHT"
777 msgstr "АВТОРСЬКІ ПРАВА"
778
779 #. type: textblock
780 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
781 #: ../resize/virt-resize.pod:577
782 #, fuzzy
783 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
784 msgid "Copyright (C) 2010-2011 Red Hat Inc."
785 msgstr "© Red Hat Inc., 2009–2010"
786
787 #. type: textblock
788 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
789 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
790 #: ../fish/guestfish.pod:1258 ../fish/virt-copy-in.pod:69
791 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
792 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
793 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102
795 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
796 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
797 #: ../tools/virt-win-reg.pl:780
798 msgid ""
799 "This program is free software; you can redistribute it and/or modify it "
800 "under the terms of the GNU General Public License as published by the Free "
801 "Software Foundation; either version 2 of the License, or (at your option) "
802 "any later version."
803 msgstr ""
804
805 #. type: textblock
806 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:74
809 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
810 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
812 #: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107
813 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
814 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
815 #: ../tools/virt-win-reg.pl:785
816 msgid ""
817 "This program is distributed in the hope that it will be useful, but WITHOUT "
818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
819 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
820 "more details."
821 msgstr ""
822 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
823 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
824 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
825 "дізнатися з GNU General Public License."
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
829 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
830 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:79
831 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
832 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
833 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
834 #: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112
835 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
836 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
837 #: ../tools/virt-win-reg.pl:790
838 msgid ""
839 "You should have received a copy of the GNU General Public License along with "
840 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
841 "Ave, Cambridge, MA 02139, USA."
842 msgstr ""
843
844 #. type: textblock
845 #: ../cat/virt-filesystems.pod:5
846 msgid ""
847 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
848 "virtual machine or disk image"
849 msgstr ""
850
851 #. type: verbatim
852 #: ../cat/virt-filesystems.pod:9
853 #, fuzzy, no-wrap
854 #| msgid ""
855 #| " virt-list-partitions [--options] domname\n"
856 #| "\n"
857 msgid ""
858 " virt-filesystems [--options] -d domname\n"
859 "\n"
860 msgstr ""
861 " virt-list-partitions [--параметри] назва_домену\n"
862 "\n"
863
864 #. type: verbatim
865 #: ../cat/virt-filesystems.pod:11
866 #, fuzzy, no-wrap
867 #| msgid ""
868 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
869 #| "\n"
870 msgid ""
871 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
872 "\n"
873 msgstr ""
874 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
875 "\n"
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:15
879 msgid ""
880 "This tool allows you to discover filesystems, partitions, logical volumes, "
881 "and their sizes in a disk image or virtual machine.  It is a replacement for "
882 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
883 msgstr ""
884
885 #. type: textblock
886 #: ../cat/virt-filesystems.pod:20
887 msgid ""
888 "One use for this tool is from shell scripts to iterate over all filesystems "
889 "from a disk image:"
890 msgstr ""
891
892 #. type: verbatim
893 #: ../cat/virt-filesystems.pod:23
894 #, no-wrap
895 msgid ""
896 " for fs in $(virt-filesystems -a disk.img); do\n"
897 "   # ...\n"
898 " done\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-filesystems.pod:27
904 msgid ""
905 "Another use is to list partitions before using another tool to modify those "
906 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
907 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
908 msgstr ""
909
910 #. type: textblock
911 #: ../cat/virt-filesystems.pod:32
912 msgid ""
913 "Various command line options control what this program displays.  You need "
914 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
915 "guest respectively.  If you just specify that then the program shows "
916 "filesystems found, one per line, like this:"
917 msgstr ""
918
919 #. type: verbatim
920 #: ../cat/virt-filesystems.pod:37
921 #, no-wrap
922 msgid ""
923 " $ virt-filesystems -a disk.img\n"
924 " /dev/sda1\n"
925 " /dev/vg_guest/lv_root\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-filesystems.pod:41
931 msgid ""
932 "If you add I<-l> or I<--long> then the output includes extra information:"
933 msgstr ""
934
935 #. type: verbatim
936 #: ../cat/virt-filesystems.pod:44
937 #, no-wrap
938 msgid ""
939 " $ virt-filesystems -a disk.img -l\n"
940 " Name                   Type         VFS   Label  Size\n"
941 " /dev/sda1              filesystem   ext4  boot   524288000\n"
942 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
943 "\n"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-filesystems.pod:49
948 msgid ""
949 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
950 "shown as well:"
951 msgstr ""
952
953 #. type: verbatim
954 #: ../cat/virt-filesystems.pod:52
955 #, no-wrap
956 msgid ""
957 " $ virt-filesystems -a disk.img --extra\n"
958 " /dev/sda1\n"
959 " /dev/vg_guest/lv_root\n"
960 " /dev/vg_guest/lv_swap\n"
961 " /dev/vg_guest/lv_data\n"
962 "\n"
963 msgstr ""
964
965 #. type: textblock
966 #: ../cat/virt-filesystems.pod:58
967 msgid ""
968 "If you add I<--partitions> then partitions are shown instead of filesystems:"
969 msgstr ""
970
971 #. type: verbatim
972 #: ../cat/virt-filesystems.pod:60
973 #, no-wrap
974 msgid ""
975 " $ virt-filesystems -a disk.img --partitions\n"
976 " /dev/sda1\n"
977 " /dev/sda2\n"
978 "\n"
979 msgstr ""
980
981 #. type: textblock
982 #: ../cat/virt-filesystems.pod:64
983 msgid ""
984 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
985 "volumes>, I<--block-devices> to list those items."
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:67
990 msgid ""
991 "You can use these options in combination as well (if you want a combination "
992 "including filesystems, you have to add I<--filesystems>).  Notice that some "
993 "items fall into several categories (eg. C</dev/sda1> might be both a "
994 "partition and a filesystem).  These items are listed several times.  To get "
995 "a list which includes absolutely everything that virt-filesystems knows "
996 "about, use the I<--all> option."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../cat/virt-filesystems.pod:74
1001 msgid ""
1002 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1003 "uuid> option to display device and filesystem UUIDs in the long output."
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../cat/virt-filesystems.pod:78
1008 msgid ""
1009 "I<--all --long --uuid> is a useful combination to display all possible "
1010 "information about everything."
1011 msgstr ""
1012
1013 #. type: verbatim
1014 #: ../cat/virt-filesystems.pod:81
1015 #, no-wrap
1016 msgid ""
1017 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1018 " Name      Type       VFS  Label           Size Parent   UUID\n"
1019 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1020 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1021 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1022 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1023 " /dev/sda  device     -    -               20G  -        -\n"
1024 "\n"
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../cat/virt-filesystems.pod:89
1029 msgid ""
1030 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1031 msgstr ""
1032
1033 #. type: =item
1034 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1035 #, fuzzy
1036 #| msgid "B<--help>"
1037 msgid "B<--all>"
1038 msgstr "B<--help>"
1039
1040 #. type: textblock
1041 #: ../cat/virt-filesystems.pod:112
1042 msgid ""
1043 "Display everything.  This is currently the same as specifying these options: "
1044 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1045 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1046 "added to this list in future)."
1047 msgstr ""
1048
1049 #. type: textblock
1050 #: ../cat/virt-filesystems.pod:117
1051 #, fuzzy
1052 #| msgid "See also L</is-lv>."
1053 msgid "See also I<--long>."
1054 msgstr "Див. також L</is-lv>."
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:119
1058 #, fuzzy
1059 #| msgid "B<--live>"
1060 msgid "B<--blkdevs>"
1061 msgstr "B<--live>"
1062
1063 #. type: =item
1064 #: ../cat/virt-filesystems.pod:121
1065 #, fuzzy
1066 #| msgid "is-blockdev"
1067 msgid "B<--block-devices>"
1068 msgstr "is-blockdev"
1069
1070 #. type: textblock
1071 #: ../cat/virt-filesystems.pod:123
1072 #, fuzzy
1073 #| msgid "is-blockdev"
1074 msgid "Display block devices."
1075 msgstr "is-blockdev"
1076
1077 #. type: =item
1078 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1079 #, fuzzy
1080 #| msgid "B<--csh>"
1081 msgid "B<--csv>"
1082 msgstr "B<--csh>"
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1086 msgid ""
1087 "Write out the results in CSV format (comma-separated values).  This format "
1088 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1089 "ABOUT CSV FORMAT> below."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-filesystems.pod:150
1094 msgid ""
1095 "When prompting for keys and passphrases, virt-filesystems normally turns "
1096 "echoing off so you cannot see what you are typing.  If you are not worried "
1097 "about Tempest attacks and there is no one else in the room you can specify "
1098 "this flag to see what you are typing."
1099 msgstr ""
1100
1101 #. type: =item
1102 #: ../cat/virt-filesystems.pod:155
1103 #, fuzzy
1104 #| msgid "B<--ro>"
1105 msgid "B<--extra>"
1106 msgstr "B<--ro>"
1107
1108 #. type: textblock
1109 #: ../cat/virt-filesystems.pod:157
1110 msgid ""
1111 "This causes filesystems that are not ordinary, mountable filesystems to be "
1112 "displayed.  This category includes swapspace, and filesystems that are empty "
1113 "or contain unknown data."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../cat/virt-filesystems.pod:161
1118 msgid "This option implies I<--filesystems>."
1119 msgstr ""
1120
1121 #. type: =item
1122 #: ../cat/virt-filesystems.pod:163
1123 #, fuzzy
1124 #| msgid "list-filesystems"
1125 msgid "B<--filesystems>"
1126 msgstr "list-filesystems"
1127
1128 #. type: textblock
1129 #: ../cat/virt-filesystems.pod:165
1130 msgid ""
1131 "Display mountable filesystems.  If no display option was selected then this "
1132 "option is implied."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-filesystems.pod:168
1137 msgid "With I<--extra>, non-mountable filesystems are shown too."
1138 msgstr ""
1139
1140 #. type: verbatim
1141 #: ../cat/virt-filesystems.pod:181
1142 #, fuzzy, no-wrap
1143 #| msgid ""
1144 #| " guestfish --format=raw -a disk.img\n"
1145 #| "\n"
1146 msgid ""
1147 " virt-filesystems --format=raw -a disk.img\n"
1148 "\n"
1149 msgstr ""
1150 " guestfish --format=raw -a disk.img\n"
1151 "\n"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-filesystems.pod:185
1155 #, fuzzy, no-wrap
1156 #| msgid ""
1157 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1158 #| "\n"
1159 msgid ""
1160 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1161 "\n"
1162 msgstr ""
1163 " guestfish --format=raw -a disk.img --format -a another.img\n"
1164 "\n"
1165
1166 #. type: =item
1167 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1168 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1169 #: ../tools/virt-list-partitions.pl:109
1170 msgid "B<-h>"
1171 msgstr "B<-h>"
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1175 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1176 #, fuzzy
1177 #| msgid "B<-h> | B<--human-readable>"
1178 msgid "B<--human-readable>"
1179 msgstr "B<-h> | B<--human-readable>"
1180
1181 #. type: textblock
1182 #: ../cat/virt-filesystems.pod:198
1183 msgid "In I<--long> mode, display sizes in human-readable format."
1184 msgstr ""
1185
1186 #. type: =item
1187 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1188 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1189 msgid "B<-l>"
1190 msgstr ""
1191
1192 #. type: =item
1193 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1194 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1195 #, fuzzy
1196 #| msgid "B<--ro>"
1197 msgid "B<--long>"
1198 msgstr "B<--ro>"
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:209
1202 msgid "Display extra columns of data (\"long format\")."
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-filesystems.pod:211
1207 msgid "A title row is added unless you also specify I<--no-title>."
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-filesystems.pod:213
1212 msgid ""
1213 "The extra columns displayed depend on what output you select, and the "
1214 "ordering of columns may change in future versions.  Use the title row, I<--"
1215 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1216 "programs."
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:218
1221 msgid ""
1222 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1223 "default is to show raw numbers of I<bytes>."
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-filesystems.pod:221
1228 msgid "Use I<--uuid> to display UUIDs too."
1229 msgstr ""
1230
1231 #. type: =item
1232 #: ../cat/virt-filesystems.pod:223
1233 #, fuzzy
1234 #| msgid "B<--live>"
1235 msgid "B<--lvs>"
1236 msgstr "B<--live>"
1237
1238 #. type: =item
1239 #: ../cat/virt-filesystems.pod:225
1240 #, fuzzy
1241 #| msgid "B<--live>"
1242 msgid "B<--logvols>"
1243 msgstr "B<--live>"
1244
1245 #. type: =item
1246 #: ../cat/virt-filesystems.pod:227
1247 #, fuzzy
1248 #| msgid "B<--live>"
1249 msgid "B<--logical-volumes>"
1250 msgstr "B<--live>"
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:229
1254 msgid ""
1255 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1256 "of whether the LVs contain filesystems."
1257 msgstr ""
1258
1259 #. type: =item
1260 #: ../cat/virt-filesystems.pod:232
1261 #, fuzzy
1262 #| msgid "B<--listen>"
1263 msgid "B<--no-title>"
1264 msgstr "B<--listen>"
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:234
1268 msgid "In I<--long> mode, don't add a title row."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:236
1273 msgid ""
1274 "Note that the order of the columns is not fixed, and may change in future "
1275 "versions of virt-filesystems, so using this option may give you unexpected "
1276 "surprises."
1277 msgstr ""
1278
1279 #. type: =item
1280 #: ../cat/virt-filesystems.pod:240
1281 #, fuzzy
1282 #| msgid "B<--partition>"
1283 msgid "B<--parts>"
1284 msgstr "B<--partition>"
1285
1286 #. type: =item
1287 #: ../cat/virt-filesystems.pod:242
1288 #, fuzzy
1289 #| msgid "B<--partition>"
1290 msgid "B<--partitions>"
1291 msgstr "B<--partition>"
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:244
1295 msgid ""
1296 "Display partitions.  In this mode, these are displayed irrespective of "
1297 "whether the partitions contain filesystems."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:247
1302 #, fuzzy
1303 #| msgid "B<--csh>"
1304 msgid "B<--pvs>"
1305 msgstr "B<--csh>"
1306
1307 #. type: =item
1308 #: ../cat/virt-filesystems.pod:249
1309 #, fuzzy
1310 #| msgid "B<--verbose>"
1311 msgid "B<--physvols>"
1312 msgstr "B<--verbose>"
1313
1314 #. type: =item
1315 #: ../cat/virt-filesystems.pod:251
1316 msgid "B<--physical-volumes>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:253
1321 msgid "Display LVM physical volumes."
1322 msgstr ""
1323
1324 #. type: =item
1325 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1326 #, fuzzy
1327 #| msgid "B<--live>"
1328 msgid "B<--uuid>"
1329 msgstr "B<--live>"
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:257
1333 #, fuzzy
1334 #| msgid "B<--csh>"
1335 msgid "B<--uuids>"
1336 msgstr "B<--csh>"
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:259
1340 msgid "In I<--long> mode, display UUIDs as well."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:273
1345 #, fuzzy
1346 #| msgid "B<--csh>"
1347 msgid "B<--vgs>"
1348 msgstr "B<--csh>"
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:275
1352 #, fuzzy
1353 #| msgid "B<--verbose>"
1354 msgid "B<--volgroups>"
1355 msgstr "B<--verbose>"
1356
1357 #. type: =item
1358 #: ../cat/virt-filesystems.pod:277
1359 #, fuzzy
1360 #| msgid "B<--verbose>"
1361 msgid "B<--volume-groups>"
1362 msgstr "B<--verbose>"
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:279
1366 msgid "Display LVM volume groups."
1367 msgstr ""
1368
1369 #. type: =head1
1370 #: ../cat/virt-filesystems.pod:287
1371 msgid "COLUMNS"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-filesystems.pod:289
1376 msgid ""
1377 "Note that columns in the output are subject to reordering and change in "
1378 "future versions of this tool."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-filesystems.pod:294
1383 msgid "B<Name>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-filesystems.pod:296
1388 msgid "The filesystem, partition, block device or LVM name."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:298
1393 msgid ""
1394 "For device and partition names these are displayed as canonical libguestfs "
1395 "names, so that for example C</dev/sda2> is the second partition on the first "
1396 "device."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:302
1401 msgid ""
1402 "If the I<--long> option is B<not> specified, then only the name column is "
1403 "shown in the output."
1404 msgstr ""
1405
1406 #. type: =item
1407 #: ../cat/virt-filesystems.pod:305
1408 #, fuzzy
1409 #| msgid "B<-N type>"
1410 msgid "B<Type>"
1411 msgstr "B<-N тип>"
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:307
1415 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1416 msgstr ""
1417
1418 #. type: =item
1419 #: ../cat/virt-filesystems.pod:309
1420 msgid "B<VFS>"
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:311
1425 msgid ""
1426 "If there is a filesystem, then this column displays the filesystem type if "
1427 "one could be detected, eg. C<ext4>."
1428 msgstr ""
1429
1430 #. type: =item
1431 #: ../cat/virt-filesystems.pod:314
1432 msgid "B<Label>"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-filesystems.pod:316
1437 msgid ""
1438 "If the object has a label (used for identifying and mounting filesystems) "
1439 "then this column contains the label."
1440 msgstr ""
1441
1442 #. type: =item
1443 #: ../cat/virt-filesystems.pod:319
1444 #, fuzzy
1445 #| msgid "B<part_size>"
1446 msgid "B<Size>"
1447 msgstr "B<part_size>"
1448
1449 #. type: textblock
1450 #: ../cat/virt-filesystems.pod:321
1451 msgid ""
1452 "The size of the object in bytes.  If the I<--human> option is used then the "
1453 "size is displayed in a human-readable form."
1454 msgstr ""
1455
1456 #. type: =item
1457 #: ../cat/virt-filesystems.pod:324
1458 msgid "B<Parent>"
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-filesystems.pod:326
1463 msgid ""
1464 "The parent column records the parent relationship between objects.  For "
1465 "example, if the object is a partition, then this column contains the name of "
1466 "the containing device.  If the object is a logical volume, then this column "
1467 "is the name of the volume group."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:331
1472 msgid "B<UUID>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:333
1477 msgid ""
1478 "If the object has a UUID (used for identifying and mounting filesystems and "
1479 "block devices) then this column contains the UUID as a string."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-filesystems.pod:337
1484 msgid "The UUID is only displayed if the I<--uuid> option is given."
1485 msgstr ""
1486
1487 #. type: =head1
1488 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1489 #: ../df/virt-df.pod:191
1490 msgid "NOTE ABOUT CSV FORMAT"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1495 #: ../df/virt-df.pod:193
1496 msgid ""
1497 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1498 "should be easy to parse, but it is definitely not easy to parse."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1503 #: ../df/virt-df.pod:196
1504 msgid ""
1505 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1506 "reliably.  This example has two columns:"
1507 msgstr ""
1508
1509 #. type: verbatim
1510 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1511 #: ../df/virt-df.pod:199
1512 #, no-wrap
1513 msgid ""
1514 " \"foo,bar\",baz\n"
1515 "\n"
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1520 #: ../df/virt-df.pod:201
1521 msgid ""
1522 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1523 "reliably.  This example has one row:"
1524 msgstr ""
1525
1526 #. type: verbatim
1527 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1528 #: ../df/virt-df.pod:204
1529 #, no-wrap
1530 msgid ""
1531 " \"foo\n"
1532 " bar\",baz\n"
1533 "\n"
1534 msgstr ""
1535
1536 #. type: textblock
1537 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1538 #: ../df/virt-df.pod:207
1539 msgid ""
1540 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1541 "packaged in major Linux distributions)."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1546 #: ../df/virt-df.pod:210
1547 msgid ""
1548 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1549 "or Python's built-in csv library)."
1550 msgstr ""
1551
1552 #. type: textblock
1553 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1554 #: ../df/virt-df.pod:213
1555 msgid "Most spreadsheets and databases can import CSV directly."
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:374
1560 #, fuzzy
1561 #| msgid ""
1562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1563 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1564 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1565 msgid ""
1566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1567 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1568 "libguestfs.org/>."
1569 msgstr ""
1570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1571 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1572 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1573
1574 #. type: textblock
1575 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1576 #: ../tools/virt-win-reg.pl:778
1577 msgid "Copyright (C) 2010 Red Hat Inc."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-ls.pod:5
1582 msgid "virt-ls - List files in a virtual machine"
1583 msgstr ""
1584
1585 #. type: verbatim
1586 #: ../cat/virt-ls.pod:9
1587 #, no-wrap
1588 msgid ""
1589 " virt-ls [--options] -d domname directory [directory ...]\n"
1590 "\n"
1591 msgstr ""
1592
1593 #. type: verbatim
1594 #: ../cat/virt-ls.pod:11
1595 #, fuzzy, no-wrap
1596 #| msgid ""
1597 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1598 #| "\n"
1599 msgid ""
1600 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1601 "\n"
1602 msgstr ""
1603 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1604 "\n"
1605
1606 #. type: textblock
1607 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1608 msgid "Old style:"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:15
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] domname\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] domname directory\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] назва_домену\n"
1622 "\n"
1623
1624 #. type: verbatim
1625 #: ../cat/virt-ls.pod:17
1626 #, fuzzy, no-wrap
1627 #| msgid ""
1628 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1629 #| "\n"
1630 msgid ""
1631 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1632 "\n"
1633 msgstr ""
1634 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1635 "\n"
1636
1637 #. type: textblock
1638 #: ../cat/virt-ls.pod:21
1639 msgid ""
1640 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1641 "more from a virtual machine or disk image."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-ls.pod:24
1646 msgid ""
1647 "Multiple directory names can be given, in which case the output from each is "
1648 "concatenated."
1649 msgstr ""
1650
1651 #. type: textblock
1652 #: ../cat/virt-ls.pod:27
1653 msgid ""
1654 "To list directories from a libvirt guest use the I<-d> option to specify the "
1655 "name of the guest.  For a disk image, use the I<-a> option."
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:31
1660 msgid ""
1661 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1662 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1663 "(3)> API."
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-ls.pod:37
1668 msgid "Get a list of all files and directories in a virtual machine:"
1669 msgstr ""
1670
1671 #. type: verbatim
1672 #: ../cat/virt-ls.pod:39
1673 #, fuzzy, no-wrap
1674 #| msgid ""
1675 #| " guestfish --ro -d myguest -i\n"
1676 #| "\n"
1677 msgid ""
1678 " virt-ls -R -d guest /\n"
1679 "\n"
1680 msgstr ""
1681 " guestfish --ro -d myguest -i\n"
1682 "\n"
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:41
1686 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:43
1691 #, no-wrap
1692 msgid ""
1693 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1694 "\n"
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../cat/virt-ls.pod:45
1699 msgid "List all public-writable directories in a Linux virtual machine:"
1700 msgstr ""
1701
1702 #. type: verbatim
1703 #: ../cat/virt-ls.pod:47
1704 #, no-wrap
1705 msgid ""
1706 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1707 "\n"
1708 msgstr ""
1709
1710 #. type: textblock
1711 #: ../cat/virt-ls.pod:49
1712 msgid "List all Unix domain sockets in a Linux virtual machine:"
1713 msgstr ""
1714
1715 #. type: verbatim
1716 #: ../cat/virt-ls.pod:51
1717 #, no-wrap
1718 msgid ""
1719 " virt-ls -lR -d guest / | grep '^s'\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-ls.pod:53
1725 msgid "List all regular files with filenames ending in '.png':"
1726 msgstr ""
1727
1728 #. type: verbatim
1729 #: ../cat/virt-ls.pod:55
1730 #, no-wrap
1731 msgid ""
1732 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1733 "\n"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-ls.pod:57
1738 msgid "To display files larger than 10MB in home directories:"
1739 msgstr ""
1740
1741 #. type: verbatim
1742 #: ../cat/virt-ls.pod:59
1743 #, no-wrap
1744 msgid ""
1745 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1746 "\n"
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:61
1751 msgid "Find everything modified in the last 7 days:"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:63
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:65
1764 msgid "Find regular files modified in the last 24 hours:"
1765 msgstr ""
1766
1767 #. type: verbatim
1768 #: ../cat/virt-ls.pod:67
1769 #, no-wrap
1770 msgid ""
1771 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1772 "\n"
1773 msgstr ""
1774
1775 #. type: =head2
1776 #: ../cat/virt-ls.pod:69
1777 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:71
1782 msgid ""
1783 "Find the differences between files in a guest and an earlier snapshot of the "
1784 "same guest."
1785 msgstr ""
1786
1787 #. type: verbatim
1788 #: ../cat/virt-ls.pod:74
1789 #, no-wrap
1790 msgid ""
1791 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1792 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1793 " diff -u old new | less\n"
1794 "\n"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-ls.pod:78
1799 msgid ""
1800 "The commands above won't find files where the content has changed but the "
1801 "metadata (eg. file size and modification date) is the same.  To do that, you "
1802 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1803 "checksum> can be quite slow since it has to read and compute a checksum of "
1804 "every regular file in the virtual machine."
1805 msgstr ""
1806
1807 #. type: =head1
1808 #: ../cat/virt-ls.pod:84
1809 msgid "OUTPUT MODES"
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../cat/virt-ls.pod:86
1814 msgid ""
1815 "C<virt-ls> has four output modes, controlled by different combinations of "
1816 "the I<-l> and I<-R> options."
1817 msgstr ""
1818
1819 #. type: =head2
1820 #: ../cat/virt-ls.pod:89
1821 msgid "SIMPLE LISTING"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-ls.pod:91
1826 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1827 msgstr ""
1828
1829 #. type: verbatim
1830 #: ../cat/virt-ls.pod:93
1831 #, no-wrap
1832 msgid ""
1833 " $ virt-ls -d guest /\n"
1834 " bin\n"
1835 " boot\n"
1836 " [etc.]\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:98
1842 #, fuzzy
1843 #| msgid "MOUNTING"
1844 msgid "LONG LISTING"
1845 msgstr "МОНТУВАННЯ"
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:100
1849 msgid ""
1850 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1851 "(more specifically, like the C<guestfs_ll> function)."
1852 msgstr ""
1853
1854 #. type: verbatim
1855 #: ../cat/virt-ls.pod:103
1856 #, no-wrap
1857 msgid ""
1858 " $ virt-ls -l -d guest /\n"
1859 " total 204\n"
1860 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1861 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1862 " [etc.]\n"
1863 "\n"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-ls.pod:109
1868 msgid ""
1869 "Note that while this is useful for displaying a directory, do not try "
1870 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1871 "instead."
1872 msgstr ""
1873
1874 #. type: =head2
1875 #: ../cat/virt-ls.pod:113
1876 msgid "RECURSIVE LISTING"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:115
1881 msgid ""
1882 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1883 "and directories recursively:"
1884 msgstr ""
1885
1886 #. type: verbatim
1887 #: ../cat/virt-ls.pod:118
1888 #, no-wrap
1889 msgid ""
1890 " $ virt-ls -R -d guest /tmp\n"
1891 " foo\n"
1892 " foo/bar\n"
1893 " [etc.]\n"
1894 "\n"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:123
1899 msgid ""
1900 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1901 "converts C<\\0> characters to C<\\n>."
1902 msgstr ""
1903
1904 #. type: =head2
1905 #: ../cat/virt-ls.pod:126
1906 msgid "RECURSIVE LONG LISTING"
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:128
1911 msgid ""
1912 "Using I<-lR> options together changes the output to display directories "
1913 "recursively, with file stats, and optionally other features such as "
1914 "checksums and extended attributes."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-ls.pod:132
1919 msgid ""
1920 "Most of the interesting features of C<virt-ls> are only available when using "
1921 "I<-lR> mode."
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:135
1926 msgid ""
1927 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1928 "you cannot use the output in another program (because filenames can contain "
1929 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1930 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1931 "on you by creating filenames with embedded newline characters.  To B<safely> "
1932 "parse the output in another program, use the I<--csv> (Comma-Separated "
1933 "Values) option."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-ls.pod:143
1938 msgid ""
1939 "Note that this output format is completely unrelated to the C<ls -lR> "
1940 "command."
1941 msgstr ""
1942
1943 #. type: verbatim
1944 #: ../cat/virt-ls.pod:146
1945 #, no-wrap
1946 msgid ""
1947 " $ virt-ls -lR -d guest /bin\n"
1948 " d 0555       4096 /bin\n"
1949 " - 0755        123 /bin/alsaunmute\n"
1950 " - 0755      28328 /bin/arch\n"
1951 " l 0777          4 /bin/awk -> gawk\n"
1952 " - 0755      27216 /bin/basename\n"
1953 " - 0755     943360 /bin/bash\n"
1954 " [etc.]\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:155
1960 msgid "These basic fields are always shown:"
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-ls.pod:159
1965 #, fuzzy
1966 #| msgid "vfs-type"
1967 msgid "type"
1968 msgstr "vfs-type"
1969
1970 #. type: textblock
1971 #: ../cat/virt-ls.pod:161
1972 msgid ""
1973 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1974 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1975 "link), C<s> (socket) or C<u> (unknown)."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:171
1980 #, fuzzy
1981 #| msgid "version"
1982 msgid "permissions"
1983 msgstr "version"
1984
1985 #. type: textblock
1986 #: ../cat/virt-ls.pod:173
1987 msgid "The Unix permissions, displayed as a 4 digit octal number."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-ls.pod:175
1992 #, fuzzy
1993 #| msgid "filesize"
1994 msgid "size"
1995 msgstr "filesize"
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:177
1999 msgid ""
2000 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2001 "readable> option is given, in which case this is shown as a human-readable "
2002 "number."
2003 msgstr ""
2004
2005 #. type: =head2
2006 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4183
2007 msgid "path"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:183
2012 msgid "The full path of the file or directory."
2013 msgstr ""
2014
2015 #. type: =item
2016 #: ../cat/virt-ls.pod:185
2017 #, fuzzy
2018 #| msgid "readlink"
2019 msgid "link"
2020 msgstr "readlink"
2021
2022 #. type: textblock
2023 #: ../cat/virt-ls.pod:187
2024 msgid "For symbolic links only, the link target."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:191
2029 msgid ""
2030 "In I<-lR> mode, additional command line options enable the display of more "
2031 "fields."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../cat/virt-ls.pod:194
2036 msgid ""
2037 "With the I<--uids> flag, these additional fields are displayed before the "
2038 "path:"
2039 msgstr ""
2040
2041 #. type: =item
2042 #: ../cat/virt-ls.pod:199
2043 #, fuzzy
2044 #| msgid "lvuuid"
2045 msgid "uid"
2046 msgstr "lvuuid"
2047
2048 #. type: =item
2049 #: ../cat/virt-ls.pod:201
2050 #, fuzzy
2051 #| msgid "vguuid"
2052 msgid "gid"
2053 msgstr "vguuid"
2054
2055 #. type: textblock
2056 #: ../cat/virt-ls.pod:203
2057 msgid ""
2058 "The UID and GID of the owner of the file (displayed numerically).  Note "
2059 "these only make sense in the context of a Unix-like guest."
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:208
2064 msgid "With the I<--times> flag, these additional fields are displayed:"
2065 msgstr ""
2066
2067 #. type: =item
2068 #: ../cat/virt-ls.pod:212
2069 #, fuzzy
2070 #| msgid "time"
2071 msgid "atime"
2072 msgstr "time"
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:214
2076 msgid "The time of last access."
2077 msgstr ""
2078
2079 #. type: =item
2080 #: ../cat/virt-ls.pod:216
2081 #, fuzzy
2082 #| msgid "time"
2083 msgid "mtime"
2084 msgstr "time"
2085
2086 #. type: textblock
2087 #: ../cat/virt-ls.pod:218
2088 msgid "The time of last modification."
2089 msgstr ""
2090
2091 #. type: =item
2092 #: ../cat/virt-ls.pod:220
2093 #, fuzzy
2094 #| msgid "time"
2095 msgid "ctime"
2096 msgstr "time"
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:222
2100 msgid "The time of last status change."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:226
2105 msgid ""
2106 "The time fields are displayed as string dates and times, unless one of the "
2107 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:229
2112 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:233
2117 #, fuzzy
2118 #| msgid "zero-device"
2119 msgid "device"
2120 msgstr "zero-device"
2121
2122 #. type: textblock
2123 #: ../cat/virt-ls.pod:235
2124 msgid ""
2125 "The device containing the file (displayed as major:minor).  This may not "
2126 "match devices as known to the guest."
2127 msgstr ""
2128
2129 #. type: =item
2130 #: ../cat/virt-ls.pod:238
2131 msgid "inode"
2132 msgstr ""
2133
2134 #. type: textblock
2135 #: ../cat/virt-ls.pod:240
2136 msgid "The inode number."
2137 msgstr ""
2138
2139 #. type: =item
2140 #: ../cat/virt-ls.pod:242
2141 #, fuzzy
2142 #| msgid "readlink"
2143 msgid "nlink"
2144 msgstr "readlink"
2145
2146 #. type: textblock
2147 #: ../cat/virt-ls.pod:244
2148 msgid "The number of hard links."
2149 msgstr ""
2150
2151 #. type: =item
2152 #: ../cat/virt-ls.pod:246
2153 msgid "rdev"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-ls.pod:248
2158 msgid ""
2159 "For block and char special files, the device (displayed as major:minor)."
2160 msgstr ""
2161
2162 #. type: =item
2163 #: ../cat/virt-ls.pod:251
2164 #, fuzzy
2165 #| msgid "C<blocksize>"
2166 msgid "blocks"
2167 msgstr "C<blocksize>"
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:253
2171 msgid "The number of 512 byte blocks allocated to the file."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:257
2176 msgid ""
2177 "With the I<--checksum> flag, the checksum of the file contents is shown "
2178 "(only for regular files).  Computing file checksums can take a considerable "
2179 "amount of time."
2180 msgstr ""
2181
2182 #. type: =item
2183 #: ../cat/virt-ls.pod:280
2184 #, fuzzy
2185 #| msgid "checksum"
2186 msgid "B<--checksum>"
2187 msgstr "checksum"
2188
2189 #. type: =item
2190 #: ../cat/virt-ls.pod:282
2191 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-ls.pod:284
2196 msgid ""
2197 "Display checksum over file contents for regular files.  With no argument, "
2198 "this defaults to using I<md5>.  Using an argument, you can select the "
2199 "checksum type to use."
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2204 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2205 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2206 msgid ""
2207 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2208 "LISTING> above."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:316
2213 msgid ""
2214 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2215 "so you cannot see what you are typing.  If you are not worried about Tempest "
2216 "attacks and there is no one else in the room you can specify this flag to "
2217 "see what you are typing."
2218 msgstr ""
2219
2220 #. type: =item
2221 #: ../cat/virt-ls.pod:321
2222 #, fuzzy
2223 #| msgid "B<--no-dest-paths>"
2224 msgid "B<--extra-stats>"
2225 msgstr "B<--no-dest-paths>"
2226
2227 #. type: textblock
2228 #: ../cat/virt-ls.pod:323
2229 msgid "Display extra stats."
2230 msgstr ""
2231
2232 #. type: verbatim
2233 #: ../cat/virt-ls.pod:339
2234 #, fuzzy, no-wrap
2235 #| msgid ""
2236 #| " guestfish --format=raw -a disk.img\n"
2237 #| "\n"
2238 msgid ""
2239 " virt-ls --format=raw -a disk.img /dir\n"
2240 "\n"
2241 msgstr ""
2242 " guestfish --format=raw -a disk.img\n"
2243 "\n"
2244
2245 #. type: verbatim
2246 #: ../cat/virt-ls.pod:343
2247 #, fuzzy, no-wrap
2248 #| msgid ""
2249 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2250 #| "\n"
2251 msgid ""
2252 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2253 "\n"
2254 msgstr ""
2255 " guestfish --format=raw -a disk.img --format -a another.img\n"
2256 "\n"
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:356
2260 msgid "Display file sizes in human-readable format."
2261 msgstr ""
2262
2263 #. type: =item
2264 #: ../cat/virt-ls.pod:370
2265 msgid "B<-R>"
2266 msgstr ""
2267
2268 #. type: =item
2269 #: ../cat/virt-ls.pod:372
2270 #, fuzzy
2271 #| msgid "B<--live>"
2272 msgid "B<--recursive>"
2273 msgstr "B<--live>"
2274
2275 #. type: textblock
2276 #: ../cat/virt-ls.pod:374
2277 msgid ""
2278 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2279 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2280 "LISTING>."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:378
2285 msgid ""
2286 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2287 "LONG LISTING>."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:381
2292 msgid ""
2293 "C<virt-ls -R> produces a recursive list of files starting at the named "
2294 "directory.  See L</RECURSIVE LISTING>."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:384
2299 msgid ""
2300 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2301 "parsed.  See L</RECURSIVE LONG LISTING>."
2302 msgstr ""
2303
2304 #. type: =item
2305 #: ../cat/virt-ls.pod:387
2306 #, fuzzy
2307 #| msgid "B<--live>"
2308 msgid "B<--times>"
2309 msgstr "B<--live>"
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:389
2313 msgid "Display time fields."
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../cat/virt-ls.pod:394
2318 #, fuzzy
2319 #| msgid "B<--echo-keys>"
2320 msgid "B<--time-days>"
2321 msgstr "B<--echo-keys>"
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:396
2325 msgid "Display time fields as days before now (negative if in the future)."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../cat/virt-ls.pod:398
2330 msgid ""
2331 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2332 "of the file is between 0 and 86399 seconds."
2333 msgstr ""
2334
2335 #. type: =item
2336 #: ../cat/virt-ls.pod:404
2337 #, fuzzy
2338 #| msgid "B<--live>"
2339 msgid "B<--time-relative>"
2340 msgstr "B<--live>"
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:406
2344 msgid "Display time fields as seconds before now (negative if in the future)."
2345 msgstr ""
2346
2347 #. type: =item
2348 #: ../cat/virt-ls.pod:411
2349 #, fuzzy
2350 #| msgid "I<--timeout N>"
2351 msgid "B<--time-t>"
2352 msgstr "I<--timeout N>"
2353
2354 #. type: textblock
2355 #: ../cat/virt-ls.pod:413
2356 msgid "Display time fields as seconds since the Unix epoch."
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../cat/virt-ls.pod:418
2361 #, fuzzy
2362 #| msgid "B<--csh>"
2363 msgid "B<--uids>"
2364 msgstr "B<--csh>"
2365
2366 #. type: textblock
2367 #: ../cat/virt-ls.pod:420
2368 msgid "Display UID and GID fields."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../cat/virt-ls.pod:445
2373 msgid "Previous versions of virt-ls allowed you to write either:"
2374 msgstr ""
2375
2376 #. type: verbatim
2377 #: ../cat/virt-ls.pod:447
2378 #, fuzzy, no-wrap
2379 #| msgid ""
2380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2381 #| "\n"
2382 msgid ""
2383 " virt-ls disk.img [disk.img ...] /dir\n"
2384 "\n"
2385 msgstr ""
2386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2387 "\n"
2388
2389 #. type: verbatim
2390 #: ../cat/virt-ls.pod:451
2391 #, fuzzy, no-wrap
2392 #| msgid ""
2393 #| " inspect-get-hostname root\n"
2394 #| "\n"
2395 msgid ""
2396 " virt-ls guestname /dir\n"
2397 "\n"
2398 msgstr ""
2399 " inspect-get-hostname корінь\n"
2400 "\n"
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:492
2404 #, fuzzy
2405 #| msgid ""
2406 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2407 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2408 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2409 msgid ""
2410 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2411 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2412 "L<http://libguestfs.org/>."
2413 msgstr ""
2414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2417
2418 #. type: textblock
2419 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2420 #: ../rescue/virt-rescue.pod:298
2421 #, fuzzy
2422 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2423 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2424 msgstr "© Red Hat Inc., 2009–2010"
2425
2426 #. type: textblock
2427 #: ../df/virt-df.pod:5
2428 msgid "virt-df - Display free space on virtual filesystems"
2429 msgstr ""
2430
2431 #. type: verbatim
2432 #: ../df/virt-df.pod:9
2433 #, fuzzy, no-wrap
2434 #| msgid ""
2435 #| " virt-list-partitions [--options] domname\n"
2436 #| "\n"
2437 msgid ""
2438 " virt-df [--options]\n"
2439 "\n"
2440 msgstr ""
2441 " virt-list-partitions [--параметри] назва_домену\n"
2442 "\n"
2443
2444 #. type: verbatim
2445 #: ../df/virt-df.pod:11
2446 #, fuzzy, no-wrap
2447 #| msgid ""
2448 #| " virt-list-partitions [--options] domname\n"
2449 #| "\n"
2450 msgid ""
2451 " virt-df [--options] -d domname\n"
2452 "\n"
2453 msgstr ""
2454 " virt-list-partitions [--параметри] назва_домену\n"
2455 "\n"
2456
2457 #. type: verbatim
2458 #: ../df/virt-df.pod:13
2459 #, fuzzy, no-wrap
2460 #| msgid ""
2461 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2462 #| "\n"
2463 msgid ""
2464 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2465 "\n"
2466 msgstr ""
2467 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2468 "\n"
2469
2470 #. type: verbatim
2471 #: ../df/virt-df.pod:17
2472 #, fuzzy, no-wrap
2473 #| msgid ""
2474 #| " virt-list-partitions [--options] domname\n"
2475 #| "\n"
2476 msgid ""
2477 " virt-df [--options] domname\n"
2478 "\n"
2479 msgstr ""
2480 " virt-list-partitions [--параметри] назва_домену\n"
2481 "\n"
2482
2483 #. type: verbatim
2484 #: ../df/virt-df.pod:19
2485 #, fuzzy, no-wrap
2486 #| msgid ""
2487 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2488 #| "\n"
2489 msgid ""
2490 " virt-df [--options] disk.img [disk.img ...]\n"
2491 "\n"
2492 msgstr ""
2493 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 "\n"
2495
2496 #. type: textblock
2497 #: ../df/virt-df.pod:23
2498 msgid ""
2499 "C<virt-df> is a command line tool to display free space on virtual machine "
2500 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2501 "allocated to a virtual machine, but can look inside disk images to see how "
2502 "much space is really being used."
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../df/virt-df.pod:28
2507 msgid ""
2508 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2509 "to get a list of all active and inactive guests, and performs a C<df>-type "
2510 "operation on each one in turn, printing out the results."
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../df/virt-df.pod:32
2515 msgid ""
2516 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2517 "type operation on either the single named libvirt domain, or on the disk "
2518 "image(s) listed on the command line (which must all belong to a single VM).  "
2519 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2520 "guest>.  If you want to run on multiple guests, then you have to invoke "
2521 "C<virt-df> multiple times."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../df/virt-df.pod:39
2526 msgid ""
2527 "Use the I<--csv> option to get a format which can be easily parsed by other "
2528 "programs.  Other options are similar to the standard L<df(1)> command."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:45
2533 msgid ""
2534 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2535 "output human-readable:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../df/virt-df.pod:48
2540 #, no-wrap
2541 msgid ""
2542 " # virt-df -d F14x64 -h\n"
2543 " Filesystem                       Size     Used  Available  Use%\n"
2544 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2545 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2546 "\n"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:53
2551 msgid "Show disk usage for a disk image file called C<test.img>:"
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../df/virt-df.pod:55
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-df -a test1.img\n"
2559 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2560 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../df/virt-df.pod:112
2566 #, fuzzy, no-wrap
2567 #| msgid ""
2568 #| " guestfish --format=raw -a disk.img\n"
2569 #| "\n"
2570 msgid ""
2571 " virt-df --format=raw -a disk.img\n"
2572 "\n"
2573 msgstr ""
2574 " guestfish --format=raw -a disk.img\n"
2575 "\n"
2576
2577 #. type: verbatim
2578 #: ../df/virt-df.pod:116
2579 #, fuzzy, no-wrap
2580 #| msgid ""
2581 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2582 #| "\n"
2583 msgid ""
2584 " virt-df --format=raw -a disk.img --format -a another.img\n"
2585 "\n"
2586 msgstr ""
2587 " guestfish --format=raw -a disk.img --format -a another.img\n"
2588 "\n"
2589
2590 #. type: textblock
2591 #: ../df/virt-df.pod:129
2592 msgid "Print sizes in human-readable format."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../df/virt-df.pod:131
2597 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2598 msgstr ""
2599
2600 #. type: =item
2601 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2602 msgid "B<-i>"
2603 msgstr "B<-i>"
2604
2605 #. type: =item
2606 #: ../df/virt-df.pod:135
2607 #, fuzzy
2608 #| msgid "B<--live>"
2609 msgid "B<--inodes>"
2610 msgstr "B<--live>"
2611
2612 #. type: textblock
2613 #: ../df/virt-df.pod:137
2614 msgid "Print inodes instead of blocks."
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../df/virt-df.pod:139
2619 #, fuzzy
2620 #| msgid "B<--merge>"
2621 msgid "B<--one-per-guest>"
2622 msgstr "B<--merge>"
2623
2624 #. type: textblock
2625 #: ../df/virt-df.pod:141
2626 msgid ""
2627 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2628 "disks from several guests to a single libguestfs appliance."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../df/virt-df.pod:144
2633 msgid "You might use this option in the following circumstances:"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2638 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2639 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2640 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2641 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2642 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2643 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2644 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2645 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2646 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
2647 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
2648 #: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103
2649 #: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111
2650 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
2651 #: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137
2652 #: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145
2653 #: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239
2654 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249
2655 #: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295
2656 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933
2657 #: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947
2658 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961
2659 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2660 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2661 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2662 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2663 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2664 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2665 #: ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591
2666 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605
2667 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666
2668 #: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674
2669 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686
2670 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700
2671 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708
2672 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
2673 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2674 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925
2675 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859
2676 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873
2677 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887
2678 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2679 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2680 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2681 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2682 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2683 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2684 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2685 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2686 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2687 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053
2688 #: ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421
2689 #: ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438
2690 #: ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828
2691 #: ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850
2692 #: ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084
2693 #: ../src/guestfs.pod:3088 ../src/guestfs.pod:3092
2694 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2695 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2696 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2697 msgid "*"
2698 msgstr "*"
2699
2700 #. type: textblock
2701 #: ../df/virt-df.pod:150
2702 msgid ""
2703 "If you think an untrusted guest might actively try to exploit the libguestfs "
2704 "appliance kernel, then this prevents one guest from interfering with the "
2705 "stats printed for another guest."
2706 msgstr ""
2707
2708 #. type: textblock
2709 #: ../df/virt-df.pod:156
2710 msgid ""
2711 "If the kernel has a bug which stops it from accessing a filesystem in one "
2712 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2713 "and report stats for further guests."
2714 msgstr ""
2715
2716 #. type: textblock
2717 #: ../df/virt-df.pod:165
2718 msgid ""
2719 "Print UUIDs instead of names.  This is useful for following a guest even "
2720 "when the guest is migrated or renamed, or when two guests happen to have the "
2721 "same name."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../df/virt-df.pod:169
2726 msgid ""
2727 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2728 "images, we still print the disk image name even when this option is "
2729 "specified."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../df/virt-df.pod:224
2734 msgid ""
2735 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2736 "libguestfs.org/>."
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../edit/virt-edit.pod:5
2741 msgid "virt-edit - Edit a file in a virtual machine"
2742 msgstr ""
2743
2744 #. type: verbatim
2745 #: ../edit/virt-edit.pod:9
2746 #, fuzzy, no-wrap
2747 #| msgid ""
2748 #| " virt-list-partitions [--options] domname\n"
2749 #| "\n"
2750 msgid ""
2751 " virt-edit [--options] -d domname file [file ...]\n"
2752 "\n"
2753 msgstr ""
2754 " virt-list-partitions [--параметри] назва_домену\n"
2755 "\n"
2756
2757 #. type: verbatim
2758 #: ../edit/virt-edit.pod:11
2759 #, fuzzy, no-wrap
2760 #| msgid ""
2761 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2762 #| "\n"
2763 msgid ""
2764 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2765 "\n"
2766 msgstr ""
2767 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2768 "\n"
2769
2770 #. type: verbatim
2771 #: ../edit/virt-edit.pod:13
2772 #, no-wrap
2773 msgid ""
2774 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2775 "\n"
2776 msgstr ""
2777
2778 #. type: verbatim
2779 #: ../edit/virt-edit.pod:17
2780 #, no-wrap
2781 msgid ""
2782 " virt-edit domname file\n"
2783 "\n"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2788 #, fuzzy, no-wrap
2789 #| msgid ""
2790 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2791 #| "\n"
2792 msgid ""
2793 " virt-edit disk.img [disk.img ...] file\n"
2794 "\n"
2795 msgstr ""
2796 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2797 "\n"
2798
2799 #. type: =head1
2800 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2801 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2802 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2803 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2804 msgid "WARNING"
2805 msgstr "ПОПЕРЕДЖЕННЯ"
2806
2807 #. type: textblock
2808 #: ../edit/virt-edit.pod:23
2809 msgid ""
2810 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2811 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2812 "doing this, but doesn't catch all cases."
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../edit/virt-edit.pod:29
2817 msgid ""
2818 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2819 "exists in the named virtual machine (or disk image)."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../edit/virt-edit.pod:32
2824 msgid ""
2825 "Multiple filenames can be given, in which case they are each edited in "
2826 "turn.  Each filename must be a full path, starting at the root directory "
2827 "(starting with '/')."
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../edit/virt-edit.pod:36
2832 msgid "If you want to just view a file, use L<virt-cat(1)>."
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:38
2837 msgid ""
2838 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2839 "USING GUESTFISH> below)."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:41
2844 msgid ""
2845 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2846 "that and much more."
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../edit/virt-edit.pod:46
2851 msgid "Edit the named files interactively:"
2852 msgstr ""
2853
2854 #. type: verbatim
2855 #: ../edit/virt-edit.pod:48
2856 #, no-wrap
2857 msgid ""
2858 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2859 "\n"
2860 msgstr ""
2861
2862 #. type: verbatim
2863 #: ../edit/virt-edit.pod:50
2864 #, no-wrap
2865 msgid ""
2866 " virt-edit -d mydomain /etc/passwd\n"
2867 "\n"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../edit/virt-edit.pod:52
2872 msgid "For Windows guests, some Windows paths are understood:"
2873 msgstr ""
2874
2875 #. type: verbatim
2876 #: ../edit/virt-edit.pod:54
2877 #, no-wrap
2878 msgid ""
2879 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2880 "\n"
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../edit/virt-edit.pod:56
2885 msgid ""
2886 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2887 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2888 msgstr ""
2889
2890 #. type: verbatim
2891 #: ../edit/virt-edit.pod:60
2892 #, no-wrap
2893 msgid ""
2894 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2895 "\n"
2896 msgstr ""
2897
2898 #. type: =item
2899 #: ../edit/virt-edit.pod:81
2900 msgid "B<-b> extension"
2901 msgstr ""
2902
2903 #. type: =item
2904 #: ../edit/virt-edit.pod:83
2905 msgid "B<--backup> extension"
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../edit/virt-edit.pod:85
2910 msgid ""
2911 "Create a backup of the original file I<in the guest disk image>.  The backup "
2912 "has the original filename with C<extension> added."
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../edit/virt-edit.pod:88
2917 msgid ""
2918 "Usually the first character of C<extension> would be a dot C<.> so you would "
2919 "write:"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../edit/virt-edit.pod:91
2924 #, no-wrap
2925 msgid ""
2926 " virt-edit -b .orig [etc]\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:93
2932 msgid "By default, no backup file is made."
2933 msgstr ""
2934
2935 #. type: =item
2936 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2937 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2938 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2939 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2940 msgid "B<-c URI>"
2941 msgstr "B<-c адреса>"
2942
2943 #. type: =item
2944 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2945 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2946 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2947 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2948 msgid "B<--connect URI>"
2949 msgstr "B<--connect адреса>"
2950
2951 #. type: textblock
2952 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2953 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2954 #: ../tools/virt-win-reg.pl:135
2955 msgid ""
2956 "If you specify guest block devices directly, then libvirt is not used at all."
2957 msgstr ""
2958
2959 #. type: textblock
2960 #: ../edit/virt-edit.pod:114
2961 msgid ""
2962 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2963 "off so you cannot see what you are typing.  If you are not worried about "
2964 "Tempest attacks and there is no one else in the room you can specify this "
2965 "flag to see what you are typing."
2966 msgstr ""
2967
2968 #. type: =item
2969 #: ../edit/virt-edit.pod:119
2970 msgid "B<-e> EXPR"
2971 msgstr ""
2972
2973 #. type: =item
2974 #: ../edit/virt-edit.pod:121
2975 #, fuzzy
2976 #| msgid "B<--help>"
2977 msgid "B<--expr> EXPR"
2978 msgstr "B<--help>"
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:123
2982 msgid ""
2983 "Instead of launching the external editor, non-interactively apply the Perl "
2984 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2985 "EDITING> below."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../edit/virt-edit.pod:127
2990 msgid ""
2991 "Be careful to properly quote the expression to prevent it from being altered "
2992 "by the shell."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../edit/virt-edit.pod:130
2997 msgid "Note that this option is only available when Perl 5 is installed."
2998 msgstr ""
2999
3000 #. type: =item
3001 #: ../edit/virt-edit.pod:132
3002 #, fuzzy
3003 #| msgid "B<--format=raw|qcow2|..>"
3004 msgid "B<--format> raw|qcow2|..."
3005 msgstr "B<--format=raw|qcow2|..>"
3006
3007 #. type: verbatim
3008 #: ../edit/virt-edit.pod:143
3009 #, fuzzy, no-wrap
3010 #| msgid ""
3011 #| " guestfish --format=raw -a disk.img\n"
3012 #| "\n"
3013 msgid ""
3014 " virt-edit --format=raw -a disk.img file\n"
3015 "\n"
3016 msgstr ""
3017 " guestfish --format=raw -a disk.img\n"
3018 "\n"
3019
3020 #. type: verbatim
3021 #: ../edit/virt-edit.pod:147
3022 #, fuzzy, no-wrap
3023 #| msgid ""
3024 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3025 #| "\n"
3026 msgid ""
3027 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3028 "\n"
3029 msgstr ""
3030 " guestfish --format=raw -a disk.img --format -a another.img\n"
3031 "\n"
3032
3033 #. type: textblock
3034 #: ../edit/virt-edit.pod:181
3035 msgid "Previous versions of virt-edit allowed you to write either:"
3036 msgstr ""
3037
3038 #. type: verbatim
3039 #: ../edit/virt-edit.pod:187
3040 #, fuzzy, no-wrap
3041 #| msgid ""
3042 #| " edit filename\n"
3043 #| "\n"
3044 msgid ""
3045 " virt-edit guestname file\n"
3046 "\n"
3047 msgstr ""
3048 " edit назва_файла\n"
3049 "\n"
3050
3051 #. type: =head1
3052 #: ../edit/virt-edit.pod:195
3053 msgid "NON-INTERACTIVE EDITING"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../edit/virt-edit.pod:197
3058 msgid ""
3059 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3060 "administrator can interactively edit the file."
3061 msgstr ""
3062
3063 #. type: textblock
3064 #: ../edit/virt-edit.pod:200
3065 msgid ""
3066 "There are two ways also to use C<virt-edit> from scripts in order to make "
3067 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3068 "like this, it's less error-prone to write scripts directly using the "
3069 "libguestfs API and Augeas for configuration file editing.)"
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../edit/virt-edit.pod:206
3074 msgid ""
3075 "The first method is to temporarily set C<$EDITOR> to any script or program "
3076 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3077 "update C<tmpfile> in place however it likes."
3078 msgstr ""
3079
3080 #. type: textblock
3081 #: ../edit/virt-edit.pod:210
3082 msgid ""
3083 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3084 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3085 "instances of C<foo> with C<bar> in a file:"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../edit/virt-edit.pod:214
3090 #, no-wrap
3091 msgid ""
3092 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../edit/virt-edit.pod:216
3098 msgid ""
3099 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3100 "For example to delete root's password you could do:"
3101 msgstr ""
3102
3103 #. type: verbatim
3104 #: ../edit/virt-edit.pod:219
3105 #, no-wrap
3106 msgid ""
3107 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3108 "\n"
3109 msgstr ""
3110
3111 #. type: textblock
3112 #: ../edit/virt-edit.pod:221
3113 msgid ""
3114 "What really happens is that the snippet is evaluated as a Perl expression "
3115 "for each line of the file.  The line, including the final C<\\n>, is passed "
3116 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3117 msgstr ""
3118
3119 #. type: textblock
3120 #: ../edit/virt-edit.pod:226
3121 msgid ""
3122 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3123 "C<apache> user account from the password file you can do:"
3124 msgstr ""
3125
3126 #. type: verbatim
3127 #: ../edit/virt-edit.pod:229
3128 #, no-wrap
3129 msgid ""
3130 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3131 "\n"
3132 msgstr ""
3133
3134 #. type: textblock
3135 #: ../edit/virt-edit.pod:231
3136 msgid ""
3137 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3138 "the end of the file is rather difficult this way since there is no concept "
3139 "of \"last line of the file\" - your expression just doesn't get called "
3140 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3141 "want to do this."
3142 msgstr ""
3143
3144 #. type: textblock
3145 #: ../edit/virt-edit.pod:237
3146 msgid ""
3147 "The variable C<$lineno> contains the current line number.  As is "
3148 "traditional, the first line in the file is number C<1>."
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../edit/virt-edit.pod:240
3153 msgid ""
3154 "The return value from the expression is ignored, but the expression may call "
3155 "C<die> in order to abort the whole program, leaving the original file "
3156 "untouched."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../edit/virt-edit.pod:244
3161 msgid ""
3162 "Remember when matching the end of a line that C<$_> may contain the final C<"
3163 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3164 "newline then neither of these.  Thus to match or substitute some text at the "
3165 "end of a line, use this regular expression:"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../edit/virt-edit.pod:249
3170 #, no-wrap
3171 msgid ""
3172 " /some text(\\r?\\n)?$/\n"
3173 "\n"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../edit/virt-edit.pod:251
3178 msgid ""
3179 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3180 "$_> itself (since that would remove all newlines from the file):"
3181 msgstr ""
3182
3183 #. type: verbatim
3184 #: ../edit/virt-edit.pod:255
3185 #, no-wrap
3186 msgid ""
3187 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3188 "\n"
3189 msgstr ""
3190
3191 #. type: =head1
3192 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3193 msgid "WINDOWS PATHS"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../edit/virt-edit.pod:259
3198 msgid ""
3199 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3200 "paths (eg. C<E:\\foo\\bar.txt>)."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../edit/virt-edit.pod:262
3205 msgid "If and only if the guest is running Windows then:"
3206 msgstr ""
3207
3208 #. type: textblock
3209 #: ../edit/virt-edit.pod:268
3210 msgid ""
3211 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3212 "to the correct filesystem."
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../edit/virt-edit.pod:273
3217 msgid ""
3218 "Any backslash (C<\\>) characters in the path are replaced with forward "
3219 "slashes so that libguestfs can process it."
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../edit/virt-edit.pod:278
3224 msgid ""
3225 "The path is resolved case insensitively to locate the file that should be "
3226 "edited."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../edit/virt-edit.pod:283
3231 msgid "There are some known shortcomings:"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../edit/virt-edit.pod:289
3236 msgid "Some NTFS symbolic links may not be followed correctly."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../edit/virt-edit.pod:293
3241 msgid "NTFS junction points that cross filesystems are not followed."
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../edit/virt-edit.pod:299
3246 msgid ""
3247 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3248 "C<virt-edit> doesn't work."
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../edit/virt-edit.pod:302
3253 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3254 msgstr ""
3255
3256 #. type: verbatim
3257 #: ../edit/virt-edit.pod:304
3258 #, fuzzy, no-wrap
3259 #| msgid ""
3260 #| " guestfish --ro -d myguest -i\n"
3261 #| "\n"
3262 msgid ""
3263 " guestfish --rw -i -d domname edit /file\n"
3264 "\n"
3265 msgstr ""
3266 " guestfish --ro -d myguest -i\n"
3267 "\n"
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:306
3271 msgid ""
3272 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3273 "path to the file."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:309
3278 msgid ""
3279 "The command above uses libguestfs's guest inspection feature and so does not "
3280 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3281 "disk images that don't contain guests.  To edit a file on a disk image "
3282 "directly, use:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../edit/virt-edit.pod:314
3287 #, fuzzy, no-wrap
3288 #| msgid ""
3289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3290 #| "\n"
3291 msgid ""
3292 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3293 "\n"
3294 msgstr ""
3295 " guestfish --format=raw -a disk.img --format -a another.img\n"
3296 "\n"
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:316
3300 msgid ""
3301 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3302 "the disk image to edit, and C</file> is the full path to the file."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../edit/virt-edit.pod:320
3307 msgid ""
3308 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3309 "C<write> or C<upload> instead:"
3310 msgstr ""
3311
3312 #. type: verbatim
3313 #: ../edit/virt-edit.pod:323
3314 #, fuzzy, no-wrap
3315 #| msgid ""
3316 #| " guestfish --ro -d myguest -i\n"
3317 #| "\n"
3318 msgid ""
3319 " guestfish --rw -i -d domname touch /newfile\n"
3320 "\n"
3321 msgstr ""
3322 " guestfish --ro -d myguest -i\n"
3323 "\n"
3324
3325 #. type: verbatim
3326 #: ../edit/virt-edit.pod:325
3327 #, no-wrap
3328 msgid ""
3329 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: verbatim
3334 #: ../edit/virt-edit.pod:327
3335 #, no-wrap
3336 msgid ""
3337 " guestfish --rw -i -d domname upload localfile /newfile\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head1
3342 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1075
3343 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966
3344 #: ../test-tool/libguestfs-test-tool.pod:82
3345 msgid "ENVIRONMENT VARIABLES"
3346 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3347
3348 #. type: =item
3349 #: ../edit/virt-edit.pod:333
3350 #, fuzzy
3351 #| msgid "EDITOR"
3352 msgid "C<EDITOR>"
3353 msgstr "РЕДАКТОР"
3354
3355 #. type: textblock
3356 #: ../edit/virt-edit.pod:335
3357 msgid ""
3358 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3359 "\"emacs -nw\">"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../edit/virt-edit.pod:338
3364 msgid "If not set, C<vi> is used."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../edit/virt-edit.pod:351
3369 #, fuzzy
3370 #| msgid ""
3371 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3372 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3373 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3374 msgid ""
3375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3376 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3377 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3378 msgstr ""
3379 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3380 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3381 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3382
3383 #. type: textblock
3384 #: ../examples/guestfs-examples.pod:5
3385 msgid "guestfs-examples - Examples of using libguestfs from C"
3386 msgstr ""
3387
3388 #. type: verbatim
3389 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3390 #, no-wrap
3391 msgid ""
3392 " #include <guestfs.h>\n"
3393 " \n"
3394 msgstr ""
3395 " #include <guestfs.h>\n"
3396 " \n"
3397
3398 #. type: verbatim
3399 #: ../examples/guestfs-examples.pod:11
3400 #, no-wrap
3401 msgid ""
3402 " guestfs_h *g = guestfs_create ();\n"
3403 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3404 " guestfs_launch (g);\n"
3405 "\n"
3406 msgstr ""
3407
3408 #. type: verbatim
3409 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3410 #, no-wrap
3411 msgid ""
3412 " cc prog.c -o prog -lguestfs\n"
3413 "or:\n"
3414 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3415 "\n"
3416 msgstr ""
3417 " cc prog.c -o prog -lguestfs\n"
3418 "або:\n"
3419 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3420 "\n"
3421
3422 #. type: textblock
3423 #: ../examples/guestfs-examples.pod:21
3424 msgid ""
3425 "This manual page contains examples of calling libguestfs from the C "
3426 "programming language.  If you are not familiar with using libguestfs, you "
3427 "also need to read L<guestfs(3)>."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3432 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3433 #: ../python/examples/guestfs-python.pod:34
3434 #: ../ruby/examples/guestfs-ruby.pod:28
3435 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3440 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3441 #: ../python/examples/guestfs-python.pod:36
3442 #: ../ruby/examples/guestfs-ruby.pod:30
3443 #, fuzzy
3444 #| msgid "EXAMPLE"
3445 msgid "@EXAMPLE1@"
3446 msgstr "ПРИКЛАД"
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3450 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3451 #: ../python/examples/guestfs-python.pod:38
3452 #: ../ruby/examples/guestfs-ruby.pod:32
3453 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3458 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3459 #: ../python/examples/guestfs-python.pod:40
3460 #: ../ruby/examples/guestfs-ruby.pod:34
3461 #, fuzzy
3462 #| msgid "EXAMPLE"
3463 msgid "@EXAMPLE2@"
3464 msgstr "ПРИКЛАД"
3465
3466 #. type: textblock
3467 #: ../examples/guestfs-examples.pod:35
3468 #, fuzzy
3469 #| msgid ""
3470 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3471 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3472 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3473 msgid ""
3474 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3475 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3476 "libguestfs.org/>."
3477 msgstr ""
3478 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3479 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3480 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3481
3482 #. type: =head1
3483 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3484 #: ../fish/guestfish.pod:1249 ../fish/virt-copy-in.pod:60
3485 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3486 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3487 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3488 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3489 #: ../python/examples/guestfs-python.pod:53
3490 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3099
3491 #: ../test-tool/libguestfs-test-tool.pod:93
3492 msgid "AUTHORS"
3493 msgstr "АВТОРИ"
3494
3495 #. type: textblock
3496 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3497 #: ../fish/guestfish.pod:1251 ../fish/virt-copy-in.pod:62
3498 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3499 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3500 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3501 #: ../perl/examples/guestfs-perl.pod:53
3502 #: ../python/examples/guestfs-python.pod:55
3503 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3101
3504 #: ../test-tool/libguestfs-test-tool.pod:95
3505 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3510 #: ../python/examples/guestfs-python.pod:59
3511 #: ../ruby/examples/guestfs-ruby.pod:53
3512 #, fuzzy
3513 #| msgid "Copyright (C) 2009 Red Hat Inc."
3514 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3515 msgstr "© Red Hat Inc., 2009"
3516
3517 #. type: textblock
3518 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3519 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3520 #: ../perl/examples/guestfs-perl.pod:59
3521 #: ../python/examples/guestfs-python.pod:61
3522 #: ../ruby/examples/guestfs-ruby.pod:55
3523 msgid ""
3524 "The examples in this manual page may be freely copied, modified and "
3525 "distributed without any restrictions."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3530 #: ../java/examples/guestfs-java.pod:68
3531 #: ../ocaml/examples/guestfs-ocaml.pod:101
3532 #: ../perl/examples/guestfs-perl.pod:62
3533 #: ../python/examples/guestfs-python.pod:64
3534 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3108
3535 msgid ""
3536 "This library is free software; you can redistribute it and/or modify it "
3537 "under the terms of the GNU Lesser General Public License as published by the "
3538 "Free Software Foundation; either version 2 of the License, or (at your "
3539 "option) any later version."
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3544 #: ../java/examples/guestfs-java.pod:73
3545 #: ../ocaml/examples/guestfs-ocaml.pod:106
3546 #: ../perl/examples/guestfs-perl.pod:67
3547 #: ../python/examples/guestfs-python.pod:69
3548 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3113
3549 msgid ""
3550 "This library is distributed in the hope that it will be useful, but WITHOUT "
3551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3553 "for more details."
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3558 #: ../java/examples/guestfs-java.pod:78
3559 #: ../ocaml/examples/guestfs-ocaml.pod:111
3560 #: ../perl/examples/guestfs-perl.pod:72
3561 #: ../python/examples/guestfs-python.pod:74
3562 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3118
3563 msgid ""
3564 "You should have received a copy of the GNU Lesser General Public License "
3565 "along with this library; if not, write to the Free Software Foundation, "
3566 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3567 msgstr ""
3568
3569 #. type: =end
3570 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3571 msgid "comment"
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../examples/guestfs-recipes.pod:5
3576 msgid ""
3577 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3578 "here.  The only way which works for both sorts of output is to just write "
3579 "the URL directly.  Do NOT use L<...> for URLs."
3580 msgstr ""
3581
3582 #. type: textblock
3583 #: ../examples/guestfs-recipes.pod:9
3584 msgid ""
3585 "We break with tradition here and don't use ALL CAPS for the section "
3586 "headings, as this makes them much easier to read."
3587 msgstr ""
3588
3589 #. type: textblock
3590 #: ../examples/guestfs-recipes.pod:16
3591 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3592 msgstr ""
3593
3594 #. type: textblock
3595 #: ../examples/guestfs-recipes.pod:20
3596 msgid ""
3597 "This page contains recipes for and links to things you can do using "
3598 "libguestfs, L<guestfish(1)> and the virt tools."
3599 msgstr ""
3600
3601 #. type: =head1
3602 #: ../examples/guestfs-recipes.pod:23
3603 msgid "Audit a virtual machine for setuid files"
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../examples/guestfs-recipes.pod:25
3608 msgid ""
3609 "The link below contains a small program which can be used to audit a Linux "
3610 "virtual machine to see what setuid and setgid files it contains."
3611 msgstr ""
3612
3613 #. type: textblock
3614 #: ../examples/guestfs-recipes.pod:28
3615 msgid ""
3616 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3617 "files/#content"
3618 msgstr ""
3619
3620 #. type: =head1
3621 #: ../examples/guestfs-recipes.pod:30
3622 msgid "Change the background image in a Windows XP VM"
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../examples/guestfs-recipes.pod:32
3627 msgid ""
3628 "The links below explain how to use L<guestfish(1)> to change the background "
3629 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3630 "be substantially different for each version of Windows."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../examples/guestfs-recipes.pod:37
3635 msgid ""
3636 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3637 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3638 msgstr ""
3639
3640 #. type: =head1
3641 #: ../examples/guestfs-recipes.pod:40
3642 msgid "Cloning a virtual machine (Linux)"
3643 msgstr ""
3644
3645 #. type: textblock
3646 #: ../examples/guestfs-recipes.pod:42
3647 msgid ""
3648 "The guestfish technique described in the link below works well for most "
3649 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3650 "slightly."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:46
3655 msgid ""
3656 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3657 "vm/#content"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../examples/guestfs-recipes.pod:48
3662 msgid ""
3663 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3664 "discussion."
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../examples/guestfs-recipes.pod:51
3669 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3670 msgstr ""
3671
3672 #. type: =head1
3673 #: ../examples/guestfs-recipes.pod:53
3674 msgid "Cloning a virtual machine (Windows)"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../examples/guestfs-recipes.pod:55
3679 msgid ""
3680 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3681 "straightforward.  Currently there is code in the Aeolus Oz project which "
3682 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3683 "we may add sysprepping ability."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../examples/guestfs-recipes.pod:60
3688 msgid ""
3689 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3690 "list/2011-May/msg00019.html"
3691 msgstr ""
3692
3693 #. type: =head1
3694 #: ../examples/guestfs-recipes.pod:63
3695 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../examples/guestfs-recipes.pod:65
3700 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3701 msgstr ""
3702
3703 #. type: verbatim
3704 #: ../examples/guestfs-recipes.pod:67
3705 #, no-wrap
3706 msgid ""
3707 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3708 "\n"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../examples/guestfs-recipes.pod:69
3713 msgid "To export just a subdirectory, eg. C</files>, do:"
3714 msgstr ""
3715
3716 #. type: verbatim
3717 #: ../examples/guestfs-recipes.pod:71
3718 #, no-wrap
3719 msgid ""
3720 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3721 "\n"
3722 msgstr ""
3723
3724 #. type: =head1
3725 #: ../examples/guestfs-recipes.pod:73
3726 msgid "Create empty disk images"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../examples/guestfs-recipes.pod:75
3731 msgid ""
3732 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3733 "The useful guide below explains the options available."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../examples/guestfs-recipes.pod:78
3738 msgid ""
3739 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3740 "#content"
3741 msgstr ""
3742
3743 #. type: =head1
3744 #: ../examples/guestfs-recipes.pod:80
3745 msgid "Dump raw filesystem content from inside a disk image or VM"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:82
3750 msgid ""
3751 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3752 "filesystem content from any filesystem in a disk image or a VM (even one "
3753 "which is encrypted or buried inside an LV):"
3754 msgstr ""
3755
3756 #. type: verbatim
3757 #: ../examples/guestfs-recipes.pod:86
3758 #, fuzzy, no-wrap
3759 #| msgid ""
3760 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3761 #| "\n"
3762 msgid ""
3763 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3764 "\n"
3765 msgstr ""
3766 " guestfish --format=raw -a disk.img --format -a another.img\n"
3767 "\n"
3768
3769 #. type: verbatim
3770 #: ../examples/guestfs-recipes.pod:88
3771 #, no-wrap
3772 msgid ""
3773 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:90
3779 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3780 msgstr ""
3781
3782 #. type: =head1
3783 #: ../examples/guestfs-recipes.pod:92
3784 msgid "Edit grub configuration in a VM"
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../examples/guestfs-recipes.pod:94
3789 msgid "You can use this to:"
3790 msgstr ""
3791
3792 #. type: textblock
3793 #: ../examples/guestfs-recipes.pod:100
3794 msgid "Fix a virtual machine that does not boot."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../examples/guestfs-recipes.pod:104
3799 msgid "Change which kernel is used to boot the VM."
3800 msgstr ""
3801
3802 #. type: textblock
3803 #: ../examples/guestfs-recipes.pod:108
3804 msgid "Change kernel command line options."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../examples/guestfs-recipes.pod:112
3809 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../examples/guestfs-recipes.pod:114
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../examples/guestfs-recipes.pod:116
3822 msgid ""
3823 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3824 "this:"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../examples/guestfs-recipes.pod:119
3829 #, no-wrap
3830 msgid ""
3831 " virt-rescue -d BrokenGuest\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: =head1
3836 #: ../examples/guestfs-recipes.pod:121
3837 msgid "Export any directory from a VM"
3838 msgstr ""
3839
3840 #. type: textblock
3841 #: ../examples/guestfs-recipes.pod:123
3842 msgid ""
3843 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3844 msgstr ""
3845
3846 #. type: verbatim
3847 #: ../examples/guestfs-recipes.pod:126
3848 #, fuzzy, no-wrap
3849 #| msgid ""
3850 #| " copy-out /home .\n"
3851 #| "\n"
3852 msgid ""
3853 " virt-copy-out -d Guest /home .\n"
3854 "\n"
3855 msgstr ""
3856 " copy-out /home .\n"
3857 "\n"
3858
3859 #. type: textblock
3860 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3861 #: ../fish/guestfish-actions.pod:1287 ../fish/guestfish-actions.pod:1929
3862 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1917
3863 #: ../src/guestfs-actions.pod:2855 ../src/guestfs.pod:1640
3864 #: ../tools/virt-win-reg.pl:706
3865 msgid "Notes:"
3866 msgstr "Нотатки:"
3867
3868 #. type: textblock
3869 #: ../examples/guestfs-recipes.pod:134
3870 msgid ""
3871 "The final dot of the command is not a printing error.  It means we want to "
3872 "copy out to the current directory."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../examples/guestfs-recipes.pod:139
3877 msgid "This creates a directory called C<home> under the current directory."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:143
3882 msgid ""
3883 "If the guest is a Windows guest then you can use drive letters and "
3884 "backslashes, but you must prefix the path with C<win:> and quote it to "
3885 "protect it from the shell, like this:"
3886 msgstr ""
3887
3888 #. type: verbatim
3889 #: ../examples/guestfs-recipes.pod:147
3890 #, no-wrap
3891 msgid ""
3892 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../examples/guestfs-recipes.pod:149
3898 msgid "To get the output as a compressed tarball, do:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../examples/guestfs-recipes.pod:151
3903 #, no-wrap
3904 msgid ""
3905 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3906 "\n"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../examples/guestfs-recipes.pod:153
3911 msgid ""
3912 "Although it sounds tempting, this is usually not a reliable way to get a "
3913 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3914 "org/FAQ.html#backup"
3915 msgstr ""
3916
3917 #. type: =head1
3918 #: ../examples/guestfs-recipes.pod:157
3919 msgid "Find out which user is using the most space"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:159
3924 msgid ""
3925 "This simple script examines a Linux guest to find out which user is using "
3926 "the most space in their home directory:"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../examples/guestfs-recipes.pod:162
3931 #, fuzzy, no-wrap
3932 #| msgid ""
3933 #| " #!/usr/bin/guestfish -f\n"
3934 #| "\n"
3935 msgid ""
3936 " #!/bin/sh -\n"
3937 " \n"
3938 msgstr ""
3939 " #!/usr/bin/guestfish -f\n"
3940 "\n"
3941
3942 #. type: verbatim
3943 #: ../examples/guestfs-recipes.pod:164
3944 #, fuzzy, no-wrap
3945 #| msgid ""
3946 #| " set-qemu qemu\n"
3947 #| "\n"
3948 msgid ""
3949 " set -e\n"
3950 " \n"
3951 msgstr ""
3952 " set-qemu qemu\n"
3953 "\n"
3954
3955 #. type: verbatim
3956 #: ../examples/guestfs-recipes.pod:166
3957 #, no-wrap
3958 msgid ""
3959 " vm=\"$1\"\n"
3960 " dir=/home\n"
3961 " \n"
3962 msgstr ""
3963
3964 #. type: verbatim
3965 #: ../examples/guestfs-recipes.pod:169
3966 #, fuzzy, no-wrap
3967 #| msgid ""
3968 #| " guestfish --ro -d myguest -i\n"
3969 #| "\n"
3970 msgid ""
3971 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3972 " \n"
3973 msgstr ""
3974 " guestfish --ro -d myguest -i\n"
3975 "\n"
3976
3977 #. type: verbatim
3978 #: ../examples/guestfs-recipes.pod:171
3979 #, no-wrap
3980 msgid ""
3981 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3982 "     echo -n \"$dir/$d\"\n"
3983 "     echo -ne '\\t'\n"
3984 "     guestfish --remote du \"$dir/$d\";\n"
3985 " done | sort -nr -k 2\n"
3986 " \n"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3991 #, no-wrap
3992 msgid ""
3993 " guestfish --remote exit\n"
3994 "\n"
3995 msgstr ""
3996
3997 #. type: =head1
3998 #: ../examples/guestfs-recipes.pod:179
3999 msgid "Get DHCP address from a VM"
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../examples/guestfs-recipes.pod:181
4004 msgid ""
4005 "The link below explains the many different possible techniques for getting "
4006 "the last assigned DHCP address of a virtual machine."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../examples/guestfs-recipes.pod:184
4011 msgid ""
4012 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4013 "a-virtual-machine-disk-image/#content"
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../examples/guestfs-recipes.pod:186
4018 msgid ""
4019 "In the libguestfs source examples directory you will find the latest version "
4020 "of the C<virt-dhcp-address.c> program."
4021 msgstr ""
4022
4023 #. type: =head1
4024 #: ../examples/guestfs-recipes.pod:189
4025 msgid "Get the operating system product name string"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../examples/guestfs-recipes.pod:191
4030 msgid "Save the following script into a file called C<product-name.sh>:"
4031 msgstr ""
4032
4033 #. type: verbatim
4034 #: ../examples/guestfs-recipes.pod:193
4035 #, fuzzy, no-wrap
4036 #| msgid ""
4037 #| " eval \"`guestfish --listen`\"\n"
4038 #| " guestfish --remote add-ro disk.img\n"
4039 #| " guestfish --remote run\n"
4040 #| " guestfish --remote lvs\n"
4041 #| "\n"
4042 msgid ""
4043 " #!/bin/sh -\n"
4044 " set -e\n"
4045 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4046 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4047 " guestfish --remote inspect-get-product-name \"$root\"\n"
4048 " guestfish --remote exit\n"
4049 "\n"
4050 msgstr ""
4051 " eval \"`guestfish --listen`\"\n"
4052 " guestfish --remote add-ro disk.img\n"
4053 " guestfish --remote run\n"
4054 " guestfish --remote lvs\n"
4055 "\n"
4056
4057 #. type: textblock
4058 #: ../examples/guestfs-recipes.pod:200
4059 msgid "Make the script executable and run it on a named guest:"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../examples/guestfs-recipes.pod:202
4064 #, no-wrap
4065 msgid ""
4066 " # product-name.sh RHEL60x64\n"
4067 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4068 "\n"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../examples/guestfs-recipes.pod:205
4073 msgid ""
4074 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4075 "C<xpath> command line tool or from your favourite programming language:"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../examples/guestfs-recipes.pod:209
4080 #, no-wrap
4081 msgid ""
4082 " # virt-inspector RHEL60x64 > xml\n"
4083 " # xpath '//product_name' < xml\n"
4084 " Found 1 nodes:\n"
4085 " -- NODE --\n"
4086 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4087 "\n"
4088 msgstr ""
4089
4090 #. type: =head1
4091 #: ../examples/guestfs-recipes.pod:215
4092 msgid "Get the default boot kernel for a Linux VM"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../examples/guestfs-recipes.pod:217
4097 msgid ""
4098 "The link below contains a program to print the default boot kernel for a "
4099 "Linux VM."
4100 msgstr ""
4101
4102 #. type: textblock
4103 #: ../examples/guestfs-recipes.pod:220
4104 msgid ""
4105 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4106 "kernel-for-a-vm/#content"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../examples/guestfs-recipes.pod:222
4111 msgid ""
4112 "It uses Augeas, and the technique is generally applicable for many different "
4113 "tasks, such as:"
4114 msgstr ""
4115
4116 #. type: textblock
4117 #: ../examples/guestfs-recipes.pod:229
4118 msgid "listing the user accounts in the guest"
4119 msgstr ""
4120
4121 #. type: textblock
4122 #: ../examples/guestfs-recipes.pod:233
4123 msgid "what repositories is it configured to use"
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../examples/guestfs-recipes.pod:237
4128 msgid "what NTP servers does it connect to"
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../examples/guestfs-recipes.pod:241
4133 msgid "what were the boot messages last time it booted"
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../examples/guestfs-recipes.pod:245
4138 msgid "listing who was logged in recently"
4139 msgstr ""
4140
4141 #. type: textblock
4142 #: ../examples/guestfs-recipes.pod:249
4143 msgid "http://augeas.net/"
4144 msgstr ""
4145
4146 #. type: =head1
4147 #: ../examples/guestfs-recipes.pod:251
4148 msgid "Install RPMs in a guest"
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../examples/guestfs-recipes.pod:253
4153 msgid ""
4154 "The link below contains a method to install RPMs in a guest.  In fact the "
4155 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4156 "installs them next time the guest is booted.  You could use this technique "
4157 "to install vital security updates in an offline guest."
4158 msgstr ""
4159
4160 #. type: textblock
4161 #: ../examples/guestfs-recipes.pod:259
4162 msgid ""
4163 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4164 msgstr ""
4165
4166 #. type: =head1
4167 #: ../examples/guestfs-recipes.pod:261
4168 msgid "List applications installed in a VM"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../examples/guestfs-recipes.pod:263
4173 msgid "Save the following to a file C<list-apps.sh>:"
4174 msgstr ""
4175
4176 #. type: verbatim
4177 #: ../examples/guestfs-recipes.pod:265
4178 #, fuzzy, no-wrap
4179 #| msgid ""
4180 #| " eval \"`guestfish --listen`\"\n"
4181 #| " guestfish --remote add-ro disk.img\n"
4182 #| " guestfish --remote run\n"
4183 #| " guestfish --remote lvs\n"
4184 #| "\n"
4185 msgid ""
4186 " #!/bin/sh -\n"
4187 " set -e\n"
4188 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4189 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4190 " guestfish --remote inspect-list-applications \"$root\"\n"
4191 " guestfish --remote exit\n"
4192 "\n"
4193 msgstr ""
4194 " eval \"`guestfish --listen`\"\n"
4195 " guestfish --remote add-ro disk.img\n"
4196 " guestfish --remote run\n"
4197 " guestfish --remote lvs\n"
4198 "\n"
4199
4200 #. type: textblock
4201 #: ../examples/guestfs-recipes.pod:272
4202 msgid ""
4203 "Make the file executable and then you can run it on any named virtual "
4204 "machine:"
4205 msgstr ""
4206
4207 #. type: verbatim
4208 #: ../examples/guestfs-recipes.pod:275
4209 #, no-wrap
4210 msgid ""
4211 " # list-apps.sh WinGuest\n"
4212 " [0] = {\n"
4213 "   app_name: Mozilla Firefox (3.6.12)\n"
4214 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4215 "   app_epoch: 0\n"
4216 "   app_version: 3.6.12 (en-GB)\n"
4217 "   app_release:\n"
4218 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4219 "   app_trans_path:\n"
4220 "   app_publisher: Mozilla\n"
4221 "   app_url: http://www.mozilla.com/en-GB/\n"
4222 "   app_source_package:\n"
4223 "   app_summary:\n"
4224 "   app_description: Mozilla Firefox\n"
4225 " }\n"
4226 " [1] = {\n"
4227 "   app_name: VLC media player\n"
4228 "   app_display_name: VLC media player 1.1.5\n"
4229 "   app_epoch: 0\n"
4230 "   app_version: 1.1.5\n"
4231 "   app_release:\n"
4232 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4233 "   app_trans_path:\n"
4234 "   app_publisher: VideoLAN\n"
4235 "   app_url: http://www.videolan.org/\n"
4236 "   app_source_package:\n"
4237 "   app_summary:\n"
4238 "   app_description:\n"
4239 " }\n"
4240 "\n"
4241 msgstr ""
4242
4243 #. type: textblock
4244 #: ../examples/guestfs-recipes.pod:305
4245 msgid ""
4246 "If you want to run the script on disk images (instead of libvirt virtual "
4247 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4248 ">."
4249 msgstr ""
4250
4251 #. type: =head1
4252 #: ../examples/guestfs-recipes.pod:309
4253 msgid "List files and directories in a VM"
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../examples/guestfs-recipes.pod:311
4258 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4259 msgstr ""
4260
4261 #. type: verbatim
4262 #: ../examples/guestfs-recipes.pod:313
4263 #, fuzzy, no-wrap
4264 #| msgid ""
4265 #| " guestfish --ro -d myguest -i\n"
4266 #| "\n"
4267 msgid ""
4268 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4269 "\n"
4270 msgstr ""
4271 " guestfish --ro -d myguest -i\n"
4272 "\n"
4273
4274 #. type: =head1
4275 #: ../examples/guestfs-recipes.pod:315
4276 msgid "List services in a Windows VM"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../examples/guestfs-recipes.pod:317
4281 msgid ""
4282 "The link below contains a script that can be used to list out the services "
4283 "from a Windows VM, and whether those services run at boot time or are loaded "
4284 "on demand."
4285 msgstr ""
4286
4287 #. type: textblock
4288 #: ../examples/guestfs-recipes.pod:321
4289 msgid ""
4290 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4291 "#content"
4292 msgstr ""
4293
4294 #. type: =head1
4295 #: ../examples/guestfs-recipes.pod:323
4296 msgid "Make a disk image sparse"
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../examples/guestfs-recipes.pod:325
4301 msgid ""
4302 "The link below contains some guides for making a disk image sparse (or "
4303 "reintroducing sparseness)."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../examples/guestfs-recipes.pod:328
4308 msgid ""
4309 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4310 msgstr ""
4311
4312 #. type: =head1
4313 #: ../examples/guestfs-recipes.pod:330
4314 msgid "Monitor disk usage over time"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../examples/guestfs-recipes.pod:332
4319 msgid ""
4320 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4321 "The link below contains a guide."
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../examples/guestfs-recipes.pod:335
4326 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4327 msgstr ""
4328
4329 #. type: =head1
4330 #: ../examples/guestfs-recipes.pod:337
4331 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../examples/guestfs-recipes.pod:339
4336 msgid ""
4337 "L<guestfish(1)> plus the tools described in the link below can be used to "
4338 "read out the Windows Event Log from any virtual machine running Windows "
4339 "Vista or a later version."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../examples/guestfs-recipes.pod:343
4344 msgid ""
4345 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4346 "guestfish/#content"
4347 msgstr ""
4348
4349 #. type: =head1
4350 #: ../examples/guestfs-recipes.pod:345
4351 msgid "Remove root password (Linux)"
4352 msgstr ""
4353
4354 #. type: textblock
4355 #: ../examples/guestfs-recipes.pod:347
4356 msgid ""
4357 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4358 "files.  One use is to remove the root password from a Linux guest:"
4359 msgstr ""
4360
4361 #. type: verbatim
4362 #: ../examples/guestfs-recipes.pod:350
4363 #, no-wrap
4364 msgid ""
4365 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4366 "\n"
4367 msgstr ""
4368
4369 #. type: =head1
4370 #: ../examples/guestfs-recipes.pod:352
4371 msgid "Remove Administrator password (Windows)"
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../examples/guestfs-recipes.pod:354
4376 msgid ""
4377 "The link below contains one technique for removing the Administrator "
4378 "password from a Windows VM, or to be more precise, it gives you a command "
4379 "prompt the next time you log in which you can use to bypass any security:"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../examples/guestfs-recipes.pod:359
4384 msgid ""
4385 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4386 "administrator-password-with-guestfish/"
4387 msgstr ""
4388
4389 #. type: =head1
4390 #: ../examples/guestfs-recipes.pod:361
4391 msgid "Unpack a live CD"
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../examples/guestfs-recipes.pod:363
4396 msgid ""
4397 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4398 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4399 "layers, as outlined in the guide below."
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../examples/guestfs-recipes.pod:367
4404 msgid ""
4405 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4406 "cd/#content"
4407 msgstr ""
4408
4409 #. type: =head1
4410 #: ../examples/guestfs-recipes.pod:369
4411 msgid "Uploading and downloading files"
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../examples/guestfs-recipes.pod:371
4416 msgid ""
4417 "The link below contains general tips on uploading (copying in)  and "
4418 "downloading (copying out) files from VMs."
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:374
4423 msgid ""
4424 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4425 msgstr ""
4426
4427 #. type: =head1
4428 #: ../examples/guestfs-recipes.pod:376
4429 msgid "Use libguestfs tools on VMware ESX guests"
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../examples/guestfs-recipes.pod:378
4434 msgid ""
4435 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4436 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../examples/guestfs-recipes.pod:382
4441 msgid ""
4442 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4443 "guests/#content"
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../examples/guestfs-recipes.pod:386
4448 #, fuzzy
4449 #| msgid ""
4450 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4451 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4452 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4453 msgid ""
4454 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4455 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4456 "(3)>, L<http://libguestfs.org/>."
4457 msgstr ""
4458 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4459 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4460 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4461
4462 #. type: textblock
4463 #: ../examples/guestfs-recipes.pod:402
4464 #, fuzzy
4465 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4466 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4467 msgstr "© Red Hat Inc., 2009–2010"
4468
4469 #. type: =head2
4470 #: ../fish/guestfish-actions.pod:1
4471 msgid "add-cdrom"
4472 msgstr ""
4473
4474 #. type: verbatim
4475 #: ../fish/guestfish-actions.pod:3
4476 #, no-wrap
4477 msgid ""
4478 " add-cdrom filename\n"
4479 "\n"
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4484 msgid "This function adds a virtual CD-ROM disk image to the guest."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4489 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../fish/guestfish-actions.pod:15
4494 msgid ""
4495 "This call checks for the existence of C<filename>.  This stops you from "
4496 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4497 "and C<http:> URLs.  To specify those, use the general L</config> call "
4498 "instead."
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../fish/guestfish-actions.pod:22
4503 msgid ""
4504 "If you just want to add an ISO file (often you use this as an efficient way "
4505 "to transfer large files into the guest), then you should probably use L</add-"
4506 "drive-ro> instead."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4511 #: ../fish/guestfish-actions.pod:177
4512 msgid ""
4513 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4514 "instead."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4519 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986
4520 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4521 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4522 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4523 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4524 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4525 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4526 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4527 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1503
4528 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023
4529 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4921
4530 #: ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5250
4531 #: ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6560
4532 #: ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6657
4533 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7698
4534 #: ../src/guestfs-actions.pod:7873
4535 msgid ""
4536 "Deprecated functions will not be removed from the API, but the fact that "
4537 "they are deprecated indicates that there are problems with correct use of "
4538 "these functions."
4539 msgstr ""
4540
4541 #. type: =head2
4542 #: ../fish/guestfish-actions.pod:35
4543 msgid "add-domain"
4544 msgstr "add-domain"
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:37
4548 msgid "domain"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:39
4553 #, no-wrap
4554 msgid ""
4555 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:41
4561 msgid ""
4562 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4563 "It works by connecting to libvirt, requesting the domain and domain XML from "
4564 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4569 msgid ""
4570 "The number of disks added is returned.  This operation is atomic: if an "
4571 "error is returned, then no disks are added."
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4576 msgid ""
4577 "This function does some minimal checks to make sure the libvirt domain is "
4578 "not running (unless C<readonly> is true).  In a future version we will try "
4579 "to acquire the libvirt lock on each disk."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4584 msgid ""
4585 "Disks must be accessible locally.  This often means that adding disks from a "
4586 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4587 "unless those disks are accessible via the same device path locally too."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4592 msgid ""
4593 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4594 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4595 "libvirt URI (or one set through an environment variable, see the libvirt "
4596 "documentation for full details)."
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4601 msgid ""
4602 "The optional C<live> flag controls whether this call will try to connect to "
4603 "a running virtual machine C<guestfsd> process if it sees a suitable "
4604 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4605 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4606 "DAEMONS> for more information."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4611 msgid ""
4612 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4613 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4614 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4615 "as usual."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../fish/guestfish-actions.pod:76
4620 msgid ""
4621 "The other optional parameters are passed directly through to L</add-drive-"
4622 "opts>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4627 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
4628 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4629 #: ../fish/guestfish-actions.pod:3442
4630 msgid ""
4631 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../fish/guestfish-actions.pod:81
4636 msgid "add-drive"
4637 msgstr "add-drive"
4638
4639 #. type: verbatim
4640 #: ../fish/guestfish-actions.pod:83
4641 #, no-wrap
4642 msgid ""
4643 " add-drive filename\n"
4644 "\n"
4645 msgstr ""
4646 " add-drive назва_файла\n"
4647 "\n"
4648
4649 #. type: textblock
4650 #: ../fish/guestfish-actions.pod:85
4651 msgid ""
4652 "This function is the equivalent of calling L</add-drive-opts> with no "
4653 "optional parameters, so the disk is added writable, with the format being "
4654 "detected automatically."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../fish/guestfish-actions.pod:89
4659 msgid ""
4660 "Automatic detection of the format opens you up to a potential security hole "
4661 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4662 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4663 "you should think about replacing calls to this function with calls to L</add-"
4664 "drive-opts>, and specifying the format."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../fish/guestfish-actions.pod:96
4669 msgid "add-drive-opts"
4670 msgstr "add-drive-opts"
4671
4672 #. type: =head2
4673 #: ../fish/guestfish-actions.pod:98
4674 msgid "add"
4675 msgstr "add"
4676
4677 #. type: verbatim
4678 #: ../fish/guestfish-actions.pod:100
4679 #, no-wrap
4680 msgid ""
4681 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4687 msgid ""
4688 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4689 "The first time you call this function, the disk appears as C</dev/sda>, the "
4690 "second time as C</dev/sdb>, and so on."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4695 msgid ""
4696 "You don't necessarily need to be root when using libguestfs.  However you "
4697 "obviously do need sufficient permissions to access the filename for whatever "
4698 "operations you want to perform (ie. read access if you just want to read the "
4699 "image or write access if you want to modify the image)."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4704 msgid "This call checks that C<filename> exists."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
4710 msgid "The optional arguments are:"
4711 msgstr ""
4712
4713 #. type: =item
4714 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4715 msgid "C<readonly>"
4716 msgstr "C<readonly>"
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4720 msgid ""
4721 "If true then the image is treated as read-only.  Writes are still allowed, "
4722 "but they are stored in a temporary snapshot overlay which is discarded at "
4723 "the end.  The disk that you add is not modified."
4724 msgstr ""
4725
4726 #. type: =item
4727 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4728 msgid "C<format>"
4729 msgstr "C<format>"
4730
4731 #. type: textblock
4732 #: ../fish/guestfish-actions.pod:127
4733 msgid ""
4734 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4735 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4736 "include C<raw> and C<qcow2>."
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4741 msgid ""
4742 "Automatic detection of the format opens you up to a potential security hole "
4743 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4744 "RHBZ#642934.  Specifying the format closes this security hole."
4745 msgstr ""
4746
4747 #. type: =item
4748 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4749 msgid "C<iface>"
4750 msgstr "C<iface>"
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:138
4754 msgid ""
4755 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4756 "add-drive-with-if> call (q.v.)"
4757 msgstr ""
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:145
4761 msgid "add-drive-ro"
4762 msgstr "add-drive-ro"
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:147
4766 msgid "add-ro"
4767 msgstr "add-ro"
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:149
4771 #, no-wrap
4772 msgid ""
4773 " add-drive-ro filename\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:151
4779 msgid ""
4780 "This function is the equivalent of calling L</add-drive-opts> with the "
4781 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4782 "is added read-only, with the format being detected automatically."
4783 msgstr ""
4784
4785 #. type: =head2
4786 #: ../fish/guestfish-actions.pod:156
4787 msgid "add-drive-ro-with-if"
4788 msgstr ""
4789
4790 #. type: verbatim
4791 #: ../fish/guestfish-actions.pod:158
4792 #, no-wrap
4793 msgid ""
4794 " add-drive-ro-with-if filename iface\n"
4795 "\n"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../fish/guestfish-actions.pod:160
4800 msgid ""
4801 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4802 "interface emulation to use at run time."
4803 msgstr ""
4804
4805 #. type: =head2
4806 #: ../fish/guestfish-actions.pod:170
4807 msgid "add-drive-with-if"
4808 msgstr ""
4809
4810 #. type: verbatim
4811 #: ../fish/guestfish-actions.pod:172
4812 #, no-wrap
4813 msgid ""
4814 " add-drive-with-if filename iface\n"
4815 "\n"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:174
4820 msgid ""
4821 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4822 "interface emulation to use at run time."
4823 msgstr ""
4824
4825 #. type: =head2
4826 #: ../fish/guestfish-actions.pod:184
4827 msgid "aug-clear"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../fish/guestfish-actions.pod:186
4832 #, no-wrap
4833 msgid ""
4834 " aug-clear augpath\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4840 msgid ""
4841 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4842 "L<augtool(1)> C<clear> command."
4843 msgstr ""
4844
4845 #. type: =head2
4846 #: ../fish/guestfish-actions.pod:191
4847 msgid "aug-close"
4848 msgstr ""
4849
4850 #. type: verbatim
4851 #: ../fish/guestfish-actions.pod:193
4852 #, no-wrap
4853 msgid ""
4854 " aug-close\n"
4855 "\n"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:195
4860 msgid ""
4861 "Close the current Augeas handle and free up any resources used by it.  After "
4862 "calling this, you have to call L</aug-init> again before you can use any "
4863 "other Augeas functions."
4864 msgstr ""
4865
4866 #. type: =head2
4867 #: ../fish/guestfish-actions.pod:200
4868 msgid "aug-defnode"
4869 msgstr ""
4870
4871 #. type: verbatim
4872 #: ../fish/guestfish-actions.pod:202
4873 #, no-wrap
4874 msgid ""
4875 " aug-defnode name expr val\n"
4876 "\n"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4881 msgid ""
4882 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../fish/guestfish-actions.pod:207
4887 msgid ""
4888 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4889 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4890 "containing that single node."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4895 msgid ""
4896 "On success this returns a pair containing the number of nodes in the "
4897 "nodeset, and a boolean flag if a node was created."
4898 msgstr ""
4899
4900 #. type: =head2
4901 #: ../fish/guestfish-actions.pod:215
4902 msgid "aug-defvar"
4903 msgstr ""
4904
4905 #. type: verbatim
4906 #: ../fish/guestfish-actions.pod:217
4907 #, no-wrap
4908 msgid ""
4909 " aug-defvar name expr\n"
4910 "\n"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4915 msgid ""
4916 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4917 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4922 msgid ""
4923 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4924 "evaluates to something which is not a nodeset."
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../fish/guestfish-actions.pod:226
4929 msgid "aug-get"
4930 msgstr ""
4931
4932 #. type: verbatim
4933 #: ../fish/guestfish-actions.pod:228
4934 #, no-wrap
4935 msgid ""
4936 " aug-get augpath\n"
4937 "\n"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4942 msgid ""
4943 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4944 "node, the C<value> is returned."
4945 msgstr ""
4946
4947 #. type: =head2
4948 #: ../fish/guestfish-actions.pod:233
4949 msgid "aug-init"
4950 msgstr ""
4951
4952 #. type: verbatim
4953 #: ../fish/guestfish-actions.pod:235
4954 #, no-wrap
4955 msgid ""
4956 " aug-init root flags\n"
4957 "\n"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4962 msgid ""
4963 "Create a new Augeas handle for editing configuration files.  If there was "
4964 "any previous Augeas handle associated with this guestfs session, then it is "
4965 "closed."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:241
4970 msgid "You must call this before using any other L</aug-*> commands."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4975 msgid ""
4976 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4981 msgid ""
4982 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4983 "logical I<or> of the following integers:"
4984 msgstr ""
4985
4986 #. type: =item
4987 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4988 msgid "C<AUG_SAVE_BACKUP> = 1"
4989 msgstr "C<AUG_SAVE_BACKUP> = 1"
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4993 msgid "Keep the original file with a C<.augsave> extension."
4994 msgstr ""
4995
4996 #. type: =item
4997 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4998 msgid "C<AUG_SAVE_NEWFILE> = 2"
4999 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5003 msgid ""
5004 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5005 "original.  Overrides C<AUG_SAVE_BACKUP>."
5006 msgstr ""
5007
5008 #. type: =item
5009 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5010 msgid "C<AUG_TYPE_CHECK> = 4"
5011 msgstr "C<AUG_TYPE_CHECK> = 4"
5012
5013 #. type: textblock
5014 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5015 msgid "Typecheck lenses (can be expensive)."
5016 msgstr ""
5017
5018 #. type: =item
5019 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
5020 msgid "C<AUG_NO_STDINC> = 8"
5021 msgstr "C<AUG_NO_STDINC> = 8"
5022
5023 #. type: textblock
5024 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
5025 msgid "Do not use standard load path for modules."
5026 msgstr ""
5027
5028 #. type: =item
5029 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
5030 msgid "C<AUG_SAVE_NOOP> = 16"
5031 msgstr "C<AUG_SAVE_NOOP> = 16"
5032
5033 #. type: textblock
5034 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
5035 msgid "Make save a no-op, just record what would have been changed."
5036 msgstr ""
5037
5038 #. type: =item
5039 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
5040 msgid "C<AUG_NO_LOAD> = 32"
5041 msgstr "C<AUG_NO_LOAD> = 32"
5042
5043 #. type: textblock
5044 #: ../fish/guestfish-actions.pod:276
5045 msgid "Do not load the tree in L</aug-init>."
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../fish/guestfish-actions.pod:280
5050 msgid "To close the handle, you can call L</aug-close>."
5051 msgstr ""
5052
5053 #. type: textblock
5054 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
5055 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5056 msgstr ""
5057
5058 #. type: =head2
5059 #: ../fish/guestfish-actions.pod:284
5060 msgid "aug-insert"
5061 msgstr ""
5062
5063 #. type: verbatim
5064 #: ../fish/guestfish-actions.pod:286
5065 #, no-wrap
5066 msgid ""
5067 " aug-insert augpath label true|false\n"
5068 "\n"
5069 msgstr ""
5070
5071 #. type: textblock
5072 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
5073 msgid ""
5074 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5075 "or after C<path> (depending on the boolean flag C<before>)."
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
5080 msgid ""
5081 "C<path> must match exactly one existing node in the tree, and C<label> must "
5082 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5083 msgstr ""
5084
5085 #. type: =head2
5086 #: ../fish/guestfish-actions.pod:296
5087 msgid "aug-load"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../fish/guestfish-actions.pod:298
5092 #, no-wrap
5093 msgid ""
5094 " aug-load\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
5100 msgid "Load files into the tree."
5101 msgstr "Завантажити файли до ієрархії."
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
5105 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:305
5110 msgid "aug-ls"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:307
5115 #, no-wrap
5116 msgid ""
5117 " aug-ls augpath\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:309
5123 msgid ""
5124 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5125 "resulting nodes into alphabetical order."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../fish/guestfish-actions.pod:312
5130 msgid "aug-match"
5131 msgstr ""
5132
5133 #. type: verbatim
5134 #: ../fish/guestfish-actions.pod:314
5135 #, no-wrap
5136 msgid ""
5137 " aug-match augpath\n"
5138 "\n"
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
5143 msgid ""
5144 "Returns a list of paths which match the path expression C<path>.  The "
5145 "returned paths are sufficiently qualified so that they match exactly one "
5146 "node in the current tree."
5147 msgstr ""
5148
5149 #. type: =head2
5150 #: ../fish/guestfish-actions.pod:320
5151 msgid "aug-mv"
5152 msgstr ""
5153
5154 #. type: verbatim
5155 #: ../fish/guestfish-actions.pod:322
5156 #, no-wrap
5157 msgid ""
5158 " aug-mv src dest\n"
5159 "\n"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
5164 msgid ""
5165 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5166 "C<dest> is overwritten if it exists."
5167 msgstr ""
5168
5169 #. type: =head2
5170 #: ../fish/guestfish-actions.pod:327
5171 msgid "aug-rm"
5172 msgstr ""
5173
5174 #. type: verbatim
5175 #: ../fish/guestfish-actions.pod:329
5176 #, no-wrap
5177 msgid ""
5178 " aug-rm augpath\n"
5179 "\n"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
5184 msgid "Remove C<path> and all of its children."
5185 msgstr ""
5186
5187 #. type: textblock
5188 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
5189 msgid "On success this returns the number of entries which were removed."
5190 msgstr ""
5191
5192 #. type: =head2
5193 #: ../fish/guestfish-actions.pod:335
5194 msgid "aug-save"
5195 msgstr ""
5196
5197 #. type: verbatim
5198 #: ../fish/guestfish-actions.pod:337
5199 #, no-wrap
5200 msgid ""
5201 " aug-save\n"
5202 "\n"
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
5207 msgid "This writes all pending changes to disk."
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:341
5212 msgid ""
5213 "The flags which were passed to L</aug-init> affect exactly how files are "
5214 "saved."
5215 msgstr ""
5216
5217 #. type: =head2
5218 #: ../fish/guestfish-actions.pod:344
5219 msgid "aug-set"
5220 msgstr ""
5221
5222 #. type: verbatim
5223 #: ../fish/guestfish-actions.pod:346
5224 #, no-wrap
5225 msgid ""
5226 " aug-set augpath val\n"
5227 "\n"
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
5232 msgid "Set the value associated with C<path> to C<val>."
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../fish/guestfish-actions.pod:350
5237 msgid ""
5238 "In the Augeas API, it is possible to clear a node by setting the value to "
5239 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5240 "this call.  Instead you must use the L</aug-clear> call."
5241 msgstr ""
5242
5243 #. type: =head2
5244 #: ../fish/guestfish-actions.pod:355
5245 msgid "available"
5246 msgstr ""
5247
5248 #. type: verbatim
5249 #: ../fish/guestfish-actions.pod:357
5250 #, no-wrap
5251 msgid ""
5252 " available 'groups ...'\n"
5253 "\n"
5254 msgstr ""
5255
5256 #. type: textblock
5257 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
5258 msgid ""
5259 "This command is used to check the availability of some groups of "
5260 "functionality in the appliance, which not all builds of the libguestfs "
5261 "appliance will be able to provide."
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:363
5266 msgid ""
5267 "The libguestfs groups, and the functions that those groups correspond to, "
5268 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5269 "runtime by calling L</available-all-groups>."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
5274 msgid ""
5275 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5276 "\"]> would check for the availability of the Linux inotify functions and "
5277 "Augeas (configuration file editing) functions."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5282 msgid "The command returns no error if I<all> requested groups are available."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
5287 msgid ""
5288 "It fails with an error if one or more of the requested groups is unavailable "
5289 "in the appliance."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5294 msgid ""
5295 "If an unknown group name is included in the list of groups then an error is "
5296 "always returned."
5297 msgstr ""
5298
5299 #. type: textblock
5300 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
5301 msgid "I<Notes:>"
5302 msgstr "I<Нотатки:>"
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:387
5306 msgid "You must call L</launch> before calling this function."
5307 msgstr ""
5308
5309 #. type: textblock
5310 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
5311 msgid ""
5312 "The reason is because we don't know what groups are supported by the "
5313 "appliance/daemon until it is running and can be queried."
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
5318 msgid ""
5319 "If a group of functions is available, this does not necessarily mean that "
5320 "they will work.  You still have to check for errors when calling individual "
5321 "API functions even if they are available."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
5326 msgid ""
5327 "It is usually the job of distro packagers to build complete functionality "
5328 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5329 "with all requirements satisfied, will support everything."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:409
5334 msgid ""
5335 "This call was added in version C<1.0.80>.  In previous versions of "
5336 "libguestfs all you could do would be to speculatively execute a command to "
5337 "find out if the daemon implemented it.  See also L</version>."
5338 msgstr ""
5339
5340 #. type: =head2
5341 #: ../fish/guestfish-actions.pod:416
5342 msgid "available-all-groups"
5343 msgstr ""
5344
5345 #. type: verbatim
5346 #: ../fish/guestfish-actions.pod:418
5347 #, no-wrap
5348 msgid ""
5349 " available-all-groups\n"
5350 "\n"
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:420
5355 msgid ""
5356 "This command returns a list of all optional groups that this daemon knows "
5357 "about.  Note this returns both supported and unsupported groups.  To find "
5358 "out which ones the daemon can actually support you have to call L</"
5359 "available> on each member of the returned list."
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../fish/guestfish-actions.pod:426
5364 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5365 msgstr ""
5366
5367 #. type: =head2
5368 #: ../fish/guestfish-actions.pod:428
5369 msgid "base64-in"
5370 msgstr ""
5371
5372 #. type: verbatim
5373 #: ../fish/guestfish-actions.pod:430
5374 #, no-wrap
5375 msgid ""
5376 " base64-in (base64file|-) filename\n"
5377 "\n"
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
5382 msgid ""
5383 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
5388 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
5389 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
5390 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
5391 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
5392 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
5393 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
5394 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5395 msgstr ""
5396
5397 #. type: =head2
5398 #: ../fish/guestfish-actions.pod:437
5399 msgid "base64-out"
5400 msgstr ""
5401
5402 #. type: verbatim
5403 #: ../fish/guestfish-actions.pod:439
5404 #, no-wrap
5405 msgid ""
5406 " base64-out filename (base64file|-)\n"
5407 "\n"
5408 msgstr ""
5409
5410 #. type: textblock
5411 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5412 msgid ""
5413 "This command downloads the contents of C<filename>, writing it out to local "
5414 "file C<base64file> encoded as base64."
5415 msgstr ""
5416
5417 #. type: =head2
5418 #: ../fish/guestfish-actions.pod:446
5419 msgid "blockdev-flushbufs"
5420 msgstr ""
5421
5422 #. type: verbatim
5423 #: ../fish/guestfish-actions.pod:448
5424 #, no-wrap
5425 msgid ""
5426 " blockdev-flushbufs device\n"
5427 "\n"
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5432 msgid ""
5433 "This tells the kernel to flush internal buffers associated with C<device>."
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5438 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5439 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5440 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5441 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5442 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5443 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5444 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5445 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5446 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5447 msgid "This uses the L<blockdev(8)> command."
5448 msgstr ""
5449
5450 #. type: =head2
5451 #: ../fish/guestfish-actions.pod:455
5452 msgid "blockdev-getbsz"
5453 msgstr ""
5454
5455 #. type: verbatim
5456 #: ../fish/guestfish-actions.pod:457
5457 #, no-wrap
5458 msgid ""
5459 " blockdev-getbsz device\n"
5460 "\n"
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5465 msgid "This returns the block size of a device."
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5470 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5471 msgid ""
5472 "(Note this is different from both I<size in blocks> and I<filesystem block "
5473 "size>)."
5474 msgstr ""
5475
5476 #. type: =head2
5477 #: ../fish/guestfish-actions.pod:466
5478 msgid "blockdev-getro"
5479 msgstr ""
5480
5481 #. type: verbatim
5482 #: ../fish/guestfish-actions.pod:468
5483 #, no-wrap
5484 msgid ""
5485 " blockdev-getro device\n"
5486 "\n"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5491 msgid ""
5492 "Returns a boolean indicating if the block device is read-only (true if read-"
5493 "only, false if not)."
5494 msgstr ""
5495
5496 #. type: =head2
5497 #: ../fish/guestfish-actions.pod:475
5498 msgid "blockdev-getsize64"
5499 msgstr ""
5500
5501 #. type: verbatim
5502 #: ../fish/guestfish-actions.pod:477
5503 #, no-wrap
5504 msgid ""
5505 " blockdev-getsize64 device\n"
5506 "\n"
5507 msgstr ""
5508
5509 #. type: textblock
5510 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5511 msgid "This returns the size of the device in bytes."
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:481
5516 msgid "See also L</blockdev-getsz>."
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../fish/guestfish-actions.pod:485
5521 msgid "blockdev-getss"
5522 msgstr ""
5523
5524 #. type: verbatim
5525 #: ../fish/guestfish-actions.pod:487
5526 #, no-wrap
5527 msgid ""
5528 " blockdev-getss device\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5534 msgid ""
5535 "This returns the size of sectors on a block device.  Usually 512, but can be "
5536 "larger for modern devices."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:492
5541 msgid ""
5542 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5543 msgstr ""
5544
5545 #. type: =head2
5546 #: ../fish/guestfish-actions.pod:497
5547 msgid "blockdev-getsz"
5548 msgstr ""
5549
5550 #. type: verbatim
5551 #: ../fish/guestfish-actions.pod:499
5552 #, no-wrap
5553 msgid ""
5554 " blockdev-getsz device\n"
5555 "\n"
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5560 msgid ""
5561 "This returns the size of the device in units of 512-byte sectors (even if "
5562 "the sectorsize isn't 512 bytes ... weird)."
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../fish/guestfish-actions.pod:504
5567 msgid ""
5568 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5569 "blockdev-getsize64> for the more useful I<size in bytes>."
5570 msgstr ""
5571
5572 #. type: =head2
5573 #: ../fish/guestfish-actions.pod:510
5574 msgid "blockdev-rereadpt"
5575 msgstr ""
5576
5577 #. type: verbatim
5578 #: ../fish/guestfish-actions.pod:512
5579 #, no-wrap
5580 msgid ""
5581 " blockdev-rereadpt device\n"
5582 "\n"
5583 msgstr ""
5584
5585 #. type: textblock
5586 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5587 msgid "Reread the partition table on C<device>."
5588 msgstr ""
5589
5590 #. type: =head2
5591 #: ../fish/guestfish-actions.pod:518
5592 msgid "blockdev-setbsz"
5593 msgstr ""
5594
5595 #. type: verbatim
5596 #: ../fish/guestfish-actions.pod:520
5597 #, no-wrap
5598 msgid ""
5599 " blockdev-setbsz device blocksize\n"
5600 "\n"
5601 msgstr ""
5602
5603 #. type: textblock
5604 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5605 msgid "This sets the block size of a device."
5606 msgstr ""
5607
5608 #. type: =head2
5609 #: ../fish/guestfish-actions.pod:529
5610 msgid "blockdev-setro"
5611 msgstr ""
5612
5613 #. type: verbatim
5614 #: ../fish/guestfish-actions.pod:531
5615 #, no-wrap
5616 msgid ""
5617 " blockdev-setro device\n"
5618 "\n"
5619 msgstr ""
5620
5621 #. type: textblock
5622 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5623 msgid "Sets the block device named C<device> to read-only."
5624 msgstr ""
5625
5626 #. type: =head2
5627 #: ../fish/guestfish-actions.pod:537
5628 msgid "blockdev-setrw"
5629 msgstr ""
5630
5631 #. type: verbatim
5632 #: ../fish/guestfish-actions.pod:539
5633 #, no-wrap
5634 msgid ""
5635 " blockdev-setrw device\n"
5636 "\n"
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5641 msgid "Sets the block device named C<device> to read-write."
5642 msgstr ""
5643
5644 #. type: =head2
5645 #: ../fish/guestfish-actions.pod:545
5646 msgid "btrfs-filesystem-resize"
5647 msgstr ""
5648
5649 #. type: verbatim
5650 #: ../fish/guestfish-actions.pod:547
5651 #, no-wrap
5652 msgid ""
5653 " btrfs-filesystem-resize mountpoint [size:..]\n"
5654 "\n"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5659 msgid "This command resizes a btrfs filesystem."
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5664 msgid ""
5665 "Note that unlike other resize calls, the filesystem has to be mounted and "
5666 "the parameter is the mountpoint not the device (this is a requirement of "
5667 "btrfs itself)."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5672 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5673 msgid "The optional parameters are:"
5674 msgstr ""
5675
5676 #. type: =item
5677 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5678 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5679 msgid "C<size>"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5684 msgid ""
5685 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5686 "resized to the maximum size."
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5691 msgid "See also L<btrfs(8)>."
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../fish/guestfish-actions.pod:570
5696 msgid "case-sensitive-path"
5697 msgstr ""
5698
5699 #. type: verbatim
5700 #: ../fish/guestfish-actions.pod:572
5701 #, no-wrap
5702 msgid ""
5703 " case-sensitive-path path\n"
5704 "\n"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5709 msgid ""
5710 "This can be used to resolve case insensitive paths on a filesystem which is "
5711 "case sensitive.  The use case is to resolve paths which you have read from "
5712 "Windows configuration files or the Windows Registry, to the true path."
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5717 msgid ""
5718 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5719 "(and probably others), which is that although the underlying filesystem is "
5720 "case-insensitive, the driver exports the filesystem to Linux as case-"
5721 "sensitive."
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5726 msgid ""
5727 "One consequence of this is that special directories such as C<c:\\windows> "
5728 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5729 "precise details of how they were created.  In Windows itself this would not "
5730 "be a problem."
5731 msgstr ""
5732
5733 #. type: textblock
5734 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5735 msgid ""
5736 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5737 "#posixfilenames1>"
5738 msgstr ""
5739
5740 #. type: textblock
5741 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5742 msgid ""
5743 "This function resolves the true case of each element in the path and returns "
5744 "the case-sensitive path."
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:596
5749 msgid ""
5750 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5751 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5752 "the directories were originally created under Windows)."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5757 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:604
5762 msgid "See also L</realpath>."
5763 msgstr ""
5764
5765 #. type: =head2
5766 #: ../fish/guestfish-actions.pod:606
5767 msgid "cat"
5768 msgstr "cat"
5769
5770 #. type: verbatim
5771 #: ../fish/guestfish-actions.pod:608
5772 #, no-wrap
5773 msgid ""
5774 " cat path\n"
5775 "\n"
5776 msgstr ""
5777 " cat шлях\n"
5778 "\n"
5779
5780 #. type: textblock
5781 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5782 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5783 msgid "Return the contents of the file named C<path>."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../fish/guestfish-actions.pod:612
5788 msgid ""
5789 "Note that this function cannot correctly handle binary files (specifically, "
5790 "files containing C<\\0> character which is treated as end of string).  For "
5791 "those you need to use the L</read-file> or L</download> functions which have "
5792 "a more complex interface."
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5797 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5798 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5799 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5800 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5801 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5802 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5803 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5804 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5805 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5806 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5807 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5808 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5809 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5810 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5811 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5812 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5813 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5814 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5815 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5816 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5817 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5818 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5819 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5820 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5821 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5822 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5823 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5824 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7715
5825 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5826 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5827 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5828 msgid ""
5829 "Because of the message protocol, there is a transfer limit of somewhere "
5830 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5831 msgstr ""
5832
5833 #. type: =head2
5834 #: ../fish/guestfish-actions.pod:620
5835 msgid "checksum"
5836 msgstr "checksum"
5837
5838 #. type: verbatim
5839 #: ../fish/guestfish-actions.pod:622
5840 #, no-wrap
5841 msgid ""
5842 " checksum csumtype path\n"
5843 "\n"
5844 msgstr ""
5845
5846 #. type: textblock
5847 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5848 msgid ""
5849 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5854 msgid ""
5855 "The type of checksum to compute is given by the C<csumtype> parameter which "
5856 "must have one of the following values:"
5857 msgstr ""
5858
5859 #. type: =item
5860 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5861 msgid "C<crc>"
5862 msgstr "C<crc>"
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5866 msgid ""
5867 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5868 "C<cksum> command."
5869 msgstr ""
5870
5871 #. type: =item
5872 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5873 msgid "C<md5>"
5874 msgstr "C<md5>"
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5878 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5879 msgstr ""
5880
5881 #. type: =item
5882 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5883 msgid "C<sha1>"
5884 msgstr "C<sha1>"
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5888 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5889 msgstr ""
5890
5891 #. type: =item
5892 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5893 msgid "C<sha224>"
5894 msgstr "C<sha224>"
5895
5896 #. type: textblock
5897 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5898 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5899 msgstr ""
5900
5901 #. type: =item
5902 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5903 msgid "C<sha256>"
5904 msgstr "C<sha256>"
5905
5906 #. type: textblock
5907 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5908 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5909 msgstr ""
5910
5911 #. type: =item
5912 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5913 msgid "C<sha384>"
5914 msgstr "C<sha384>"
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5918 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5919 msgstr ""
5920
5921 #. type: =item
5922 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5923 msgid "C<sha512>"
5924 msgstr "C<sha512>"
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5928 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5929 msgstr ""
5930
5931 #. type: textblock
5932 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5933 msgid "The checksum is returned as a printable string."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:665
5938 msgid "To get the checksum for a device, use L</checksum-device>."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:667
5943 msgid "To get the checksums for many files, use L</checksums-out>."
5944 msgstr ""
5945
5946 #. type: =head2
5947 #: ../fish/guestfish-actions.pod:669
5948 msgid "checksum-device"
5949 msgstr "checksum-device"
5950
5951 #. type: verbatim
5952 #: ../fish/guestfish-actions.pod:671
5953 #, no-wrap
5954 msgid ""
5955 " checksum-device csumtype device\n"
5956 "\n"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../fish/guestfish-actions.pod:673
5961 msgid ""
5962 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5963 "device named C<device>.  For the types of checksums supported see the L</"
5964 "checksum> command."
5965 msgstr ""
5966
5967 #. type: =head2
5968 #: ../fish/guestfish-actions.pod:677
5969 msgid "checksums-out"
5970 msgstr ""
5971
5972 #. type: verbatim
5973 #: ../fish/guestfish-actions.pod:679
5974 #, no-wrap
5975 msgid ""
5976 " checksums-out csumtype directory (sumsfile|-)\n"
5977 "\n"
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5982 msgid ""
5983 "This command computes the checksums of all regular files in C<directory> and "
5984 "then emits a list of those checksums to the local output file C<sumsfile>."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5989 msgid ""
5990 "This can be used for verifying the integrity of a virtual machine.  However "
5991 "to be properly secure you should pay attention to the output of the checksum "
5992 "command (it uses the ones from GNU coreutils).  In particular when the "
5993 "filename is not printable, coreutils uses a special backslash syntax.  For "
5994 "more information, see the GNU coreutils info file."
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../fish/guestfish-actions.pod:695
5999 msgid "chmod"
6000 msgstr "chmod"
6001
6002 #. type: verbatim
6003 #: ../fish/guestfish-actions.pod:697
6004 #, no-wrap
6005 msgid ""
6006 " chmod mode path\n"
6007 "\n"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
6012 msgid ""
6013 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6014 "supported."
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
6019 msgid ""
6020 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6021 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6022 "C<700>."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
6027 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
6028 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
6029 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
6030 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
6031 msgid "The mode actually set is affected by the umask."
6032 msgstr ""
6033
6034 #. type: =head2
6035 #: ../fish/guestfish-actions.pod:708
6036 msgid "chown"
6037 msgstr "chown"
6038
6039 #. type: verbatim
6040 #: ../fish/guestfish-actions.pod:710
6041 #, no-wrap
6042 msgid ""
6043 " chown owner group path\n"
6044 "\n"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
6049 msgid "Change the file owner to C<owner> and group to C<group>."
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
6054 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
6055 msgid ""
6056 "Only numeric uid and gid are supported.  If you want to use names, you will "
6057 "need to locate and parse the password file yourself (Augeas support makes "
6058 "this relatively easy)."
6059 msgstr ""
6060
6061 #. type: =head2
6062 #: ../fish/guestfish-actions.pod:718
6063 msgid "command"
6064 msgstr ""
6065
6066 #. type: verbatim
6067 #: ../fish/guestfish-actions.pod:720
6068 #, no-wrap
6069 msgid ""
6070 " command 'arguments ...'\n"
6071 "\n"
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
6076 msgid ""
6077 "This call runs a command from the guest filesystem.  The filesystem must be "
6078 "mounted, and must contain a compatible operating system (ie. something "
6079 "Linux, with the same or compatible processor architecture)."
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:727
6084 msgid ""
6085 "The single parameter is an argv-style list of arguments.  The first element "
6086 "is the name of the program to run.  Subsequent elements are parameters.  The "
6087 "list must be non-empty (ie. must contain a program name).  Note that the "
6088 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
6093 msgid "The return value is anything printed to I<stdout> by the command."
6094 msgstr ""
6095
6096 #. type: textblock
6097 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
6098 msgid ""
6099 "If the command returns a non-zero exit status, then this function returns an "
6100 "error message.  The error message string is the content of I<stderr> from "
6101 "the command."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
6106 msgid ""
6107 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6108 "bin>.  If you require a program from another location, you should provide "
6109 "the full path in the first parameter."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6114 msgid ""
6115 "Shared libraries and data files required by the program must be available on "
6116 "filesystems which are mounted in the correct places.  It is the caller's "
6117 "responsibility to ensure all filesystems that are needed are mounted at the "
6118 "right locations."
6119 msgstr ""
6120
6121 #. type: =head2
6122 #: ../fish/guestfish-actions.pod:755
6123 msgid "command-lines"
6124 msgstr ""
6125
6126 #. type: verbatim
6127 #: ../fish/guestfish-actions.pod:757
6128 #, no-wrap
6129 msgid ""
6130 " command-lines 'arguments ...'\n"
6131 "\n"
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:759
6136 msgid ""
6137 "This is the same as L</command>, but splits the result into a list of lines."
6138 msgstr ""
6139
6140 #. type: textblock
6141 #: ../fish/guestfish-actions.pod:762
6142 msgid "See also: L</sh-lines>"
6143 msgstr ""
6144
6145 #. type: =head2
6146 #: ../fish/guestfish-actions.pod:767
6147 msgid "config"
6148 msgstr ""
6149
6150 #. type: verbatim
6151 #: ../fish/guestfish-actions.pod:769
6152 #, no-wrap
6153 msgid ""
6154 " config qemuparam qemuvalue\n"
6155 "\n"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
6160 msgid ""
6161 "This can be used to add arbitrary qemu command line parameters of the form "
6162 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6163 "setting some parameters which would interfere with parameters that we use."
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6168 msgid "The first character of C<param> string must be a C<-> (dash)."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
6173 msgid "C<value> can be NULL."
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../fish/guestfish-actions.pod:780
6178 msgid "copy-size"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../fish/guestfish-actions.pod:782
6183 #, no-wrap
6184 msgid ""
6185 " copy-size src dest size\n"
6186 "\n"
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
6191 msgid ""
6192 "This command copies exactly C<size> bytes from one source device or file "
6193 "C<src> to another destination device or file C<dest>."
6194 msgstr ""
6195
6196 #. type: textblock
6197 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
6198 msgid ""
6199 "Note this will fail if the source is too short or if the destination is not "
6200 "large enough."
6201 msgstr ""
6202
6203 #. type: =head2
6204 #: ../fish/guestfish-actions.pod:790
6205 msgid "cp"
6206 msgstr "cp"
6207
6208 #. type: verbatim
6209 #: ../fish/guestfish-actions.pod:792
6210 #, no-wrap
6211 msgid ""
6212 " cp src dest\n"
6213 "\n"
6214 msgstr ""
6215
6216 #. type: textblock
6217 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
6218 msgid ""
6219 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6220 "destination filename or destination directory."
6221 msgstr ""
6222
6223 #. type: =head2
6224 #: ../fish/guestfish-actions.pod:797
6225 msgid "cp-a"
6226 msgstr "cp-a"
6227
6228 #. type: verbatim
6229 #: ../fish/guestfish-actions.pod:799
6230 #, no-wrap
6231 msgid ""
6232 " cp-a src dest\n"
6233 "\n"
6234 msgstr ""
6235
6236 #. type: textblock
6237 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
6238 msgid ""
6239 "This copies a file or directory from C<src> to C<dest> recursively using the "
6240 "C<cp -a> command."
6241 msgstr ""
6242
6243 #. type: =head2
6244 #: ../fish/guestfish-actions.pod:804
6245 msgid "dd"
6246 msgstr "dd"
6247
6248 #. type: verbatim
6249 #: ../fish/guestfish-actions.pod:806
6250 #, no-wrap
6251 msgid ""
6252 " dd src dest\n"
6253 "\n"
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
6258 msgid ""
6259 "This command copies from one source device or file C<src> to another "
6260 "destination device or file C<dest>.  Normally you would use this to copy to "
6261 "or from a device or partition, for example to duplicate a filesystem."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:813
6266 msgid ""
6267 "If the destination is a device, it must be as large or larger than the "
6268 "source file or device, otherwise the copy will fail.  This command cannot do "
6269 "partial copies (see L</copy-size>)."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:817
6274 msgid "df"
6275 msgstr "df"
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:819
6279 #, no-wrap
6280 msgid ""
6281 " df\n"
6282 "\n"
6283 msgstr ""
6284 " df\n"
6285 "\n"
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
6289 msgid "This command runs the C<df> command to report disk space used."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
6294 msgid ""
6295 "This command is mostly useful for interactive sessions.  It is I<not> "
6296 "intended that you try to parse the output string.  Use L</statvfs> from "
6297 "programs."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:827
6302 msgid "df-h"
6303 msgstr "df-h"
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:829
6307 #, no-wrap
6308 msgid ""
6309 " df-h\n"
6310 "\n"
6311 msgstr ""
6312 " df-h\n"
6313 "\n"
6314
6315 #. type: textblock
6316 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
6317 msgid ""
6318 "This command runs the C<df -h> command to report disk space used in human-"
6319 "readable format."
6320 msgstr ""
6321
6322 #. type: =head2
6323 #: ../fish/guestfish-actions.pod:838
6324 msgid "dmesg"
6325 msgstr "dmesg"
6326
6327 #. type: verbatim
6328 #: ../fish/guestfish-actions.pod:840
6329 #, no-wrap
6330 msgid ""
6331 " dmesg\n"
6332 "\n"
6333 msgstr ""
6334 " dmesg\n"
6335 "\n"
6336
6337 #. type: textblock
6338 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
6339 msgid ""
6340 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6341 "This is sometimes useful for extended debugging of problems."
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:846
6346 msgid ""
6347 "Another way to get the same information is to enable verbose messages with "
6348 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6349 "before running the program."
6350 msgstr ""
6351
6352 #. type: =head2
6353 #: ../fish/guestfish-actions.pod:851
6354 msgid "download"
6355 msgstr "download"
6356
6357 #. type: verbatim
6358 #: ../fish/guestfish-actions.pod:853
6359 #, no-wrap
6360 msgid ""
6361 " download remotefilename (filename|-)\n"
6362 "\n"
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
6367 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
6368 msgid ""
6369 "Download file C<remotefilename> and save it as C<filename> on the local "
6370 "machine."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
6375 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
6376 msgid "C<filename> can also be a named pipe."
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:860
6381 msgid "See also L</upload>, L</cat>."
6382 msgstr ""
6383
6384 #. type: =head2
6385 #: ../fish/guestfish-actions.pod:864
6386 msgid "download-offset"
6387 msgstr "download-offset"
6388
6389 #. type: verbatim
6390 #: ../fish/guestfish-actions.pod:866
6391 #, no-wrap
6392 msgid ""
6393 " download-offset remotefilename (filename|-) offset size\n"
6394 "\n"
6395 msgstr ""
6396
6397 #. type: textblock
6398 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
6399 msgid ""
6400 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6401 "region must be within the file or device)."
6402 msgstr ""
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:874
6406 msgid ""
6407 "Note that there is no limit on the amount of data that can be downloaded "
6408 "with this call, unlike with L</pread>, and this call always reads the full "
6409 "amount unless an error occurs."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:879
6414 msgid "See also L</download>, L</pread>."
6415 msgstr ""
6416
6417 #. type: =head2
6418 #: ../fish/guestfish-actions.pod:883
6419 msgid "drop-caches"
6420 msgstr ""
6421
6422 #. type: verbatim
6423 #: ../fish/guestfish-actions.pod:885
6424 #, no-wrap
6425 msgid ""
6426 " drop-caches whattodrop\n"
6427 "\n"
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6432 msgid ""
6433 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6434 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6435 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6440 msgid "Setting C<whattodrop> to 3 should drop everything."
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6445 msgid ""
6446 "This automatically calls L<sync(2)> before the operation, so that the "
6447 "maximum guest memory is freed."
6448 msgstr ""
6449
6450 #. type: =head2
6451 #: ../fish/guestfish-actions.pod:897
6452 msgid "du"
6453 msgstr "du"
6454
6455 #. type: verbatim
6456 #: ../fish/guestfish-actions.pod:899
6457 #, no-wrap
6458 msgid ""
6459 " du path\n"
6460 "\n"
6461 msgstr ""
6462 " du шлях\n"
6463 "\n"
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6467 msgid ""
6468 "This command runs the C<du -s> command to estimate file space usage for "
6469 "C<path>."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6474 msgid ""
6475 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6476 "estimate includes the contents of the directory and all subdirectories "
6477 "(recursively)."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6482 msgid ""
6483 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6484 msgstr ""
6485
6486 #. type: =head2
6487 #: ../fish/guestfish-actions.pod:911
6488 msgid "e2fsck-f"
6489 msgstr "e2fsck-f"
6490
6491 #. type: verbatim
6492 #: ../fish/guestfish-actions.pod:913
6493 #, no-wrap
6494 msgid ""
6495 " e2fsck-f device\n"
6496 "\n"
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6501 msgid ""
6502 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6503 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6504 "clean (I<-f>)."
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:919
6509 msgid ""
6510 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6511 "should use L</fsck>."
6512 msgstr ""
6513
6514 #. type: =head2
6515 #: ../fish/guestfish-actions.pod:922
6516 msgid "echo-daemon"
6517 msgstr ""
6518
6519 #. type: verbatim
6520 #: ../fish/guestfish-actions.pod:924
6521 #, no-wrap
6522 msgid ""
6523 " echo-daemon 'words ...'\n"
6524 "\n"
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6529 msgid ""
6530 "This command concatenates the list of C<words> passed with single spaces "
6531 "between them and returns the resulting string."
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6536 msgid "You can use this command to test the connection through to the daemon."
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:931
6541 msgid "See also L</ping-daemon>."
6542 msgstr ""
6543
6544 #. type: =head2
6545 #: ../fish/guestfish-actions.pod:933
6546 msgid "egrep"
6547 msgstr "egrep"
6548
6549 #. type: verbatim
6550 #: ../fish/guestfish-actions.pod:935
6551 #, no-wrap
6552 msgid ""
6553 " egrep regex path\n"
6554 "\n"
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6559 msgid ""
6560 "This calls the external C<egrep> program and returns the matching lines."
6561 msgstr ""
6562
6563 #. type: =head2
6564 #: ../fish/guestfish-actions.pod:943
6565 msgid "egrepi"
6566 msgstr "egrepi"
6567
6568 #. type: verbatim
6569 #: ../fish/guestfish-actions.pod:945
6570 #, no-wrap
6571 msgid ""
6572 " egrepi regex path\n"
6573 "\n"
6574 msgstr ""
6575
6576 #. type: textblock
6577 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6578 msgid ""
6579 "This calls the external C<egrep -i> program and returns the matching lines."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../fish/guestfish-actions.pod:953
6584 msgid "equal"
6585 msgstr "equal"
6586
6587 #. type: verbatim
6588 #: ../fish/guestfish-actions.pod:955
6589 #, no-wrap
6590 msgid ""
6591 " equal file1 file2\n"
6592 "\n"
6593 msgstr ""
6594 " equal файл1 файл2\n"
6595 "\n"
6596
6597 #. type: textblock
6598 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6599 msgid ""
6600 "This compares the two files C<file1> and C<file2> and returns true if their "
6601 "content is exactly equal, or false otherwise."
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6606 msgid "The external L<cmp(1)> program is used for the comparison."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:962
6611 msgid "exists"
6612 msgstr "exists"
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:964
6616 #, no-wrap
6617 msgid ""
6618 " exists path\n"
6619 "\n"
6620 msgstr ""
6621 " exists шлях\n"
6622 "\n"
6623
6624 #. type: textblock
6625 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6626 msgid ""
6627 "This returns C<true> if and only if there is a file, directory (or anything) "
6628 "with the given C<path> name."
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:969
6633 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6634 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6635
6636 #. type: =head2
6637 #: ../fish/guestfish-actions.pod:971
6638 msgid "fallocate"
6639 msgstr "fallocate"
6640
6641 #. type: verbatim
6642 #: ../fish/guestfish-actions.pod:973
6643 #, no-wrap
6644 msgid ""
6645 " fallocate path len\n"
6646 "\n"
6647 msgstr ""
6648 " fallocate шлях довжина\n"
6649 "\n"
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6653 #: ../src/guestfs-actions.pod:1507 ../src/guestfs-actions.pod:1526
6654 msgid ""
6655 "This command preallocates a file (containing zero bytes) named C<path> of "
6656 "size C<len> bytes.  If the file exists already, it is overwritten."
6657 msgstr ""
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1511
6661 msgid ""
6662 "Do not confuse this with the guestfish-specific C<alloc> command which "
6663 "allocates a file in the host and attaches it as a device."
6664 msgstr ""
6665
6666 #. type: textblock
6667 #: ../fish/guestfish-actions.pod:983
6668 msgid ""
6669 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6670 "instead."
6671 msgstr ""
6672
6673 #. type: =head2
6674 #: ../fish/guestfish-actions.pod:990
6675 msgid "fallocate64"
6676 msgstr "fallocate64"
6677
6678 #. type: verbatim
6679 #: ../fish/guestfish-actions.pod:992
6680 #, no-wrap
6681 msgid ""
6682 " fallocate64 path len\n"
6683 "\n"
6684 msgstr ""
6685 " fallocate64 шлях довжина\n"
6686 "\n"
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:998
6690 msgid ""
6691 "Note that this call allocates disk blocks for the file.  To create a sparse "
6692 "file use L</truncate-size> instead."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:1001
6697 msgid ""
6698 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6699 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6700 "maximum size of files created through that call to 1GB."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6705 msgid ""
6706 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6707 "commands which create a file in the host and attach it as a device."
6708 msgstr ""
6709
6710 #. type: =head2
6711 #: ../fish/guestfish-actions.pod:1010
6712 msgid "fgrep"
6713 msgstr "fgrep"
6714
6715 #. type: verbatim
6716 #: ../fish/guestfish-actions.pod:1012
6717 #, no-wrap
6718 msgid ""
6719 " fgrep pattern path\n"
6720 "\n"
6721 msgstr ""
6722 " fgrep шаблон шлях\n"
6723 "\n"
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6727 msgid ""
6728 "This calls the external C<fgrep> program and returns the matching lines."
6729 msgstr ""
6730
6731 #. type: =head2
6732 #: ../fish/guestfish-actions.pod:1020
6733 msgid "fgrepi"
6734 msgstr "fgrepi"
6735
6736 #. type: verbatim
6737 #: ../fish/guestfish-actions.pod:1022
6738 #, no-wrap
6739 msgid ""
6740 " fgrepi pattern path\n"
6741 "\n"
6742 msgstr ""
6743 " fgrepi шаблон шлях\n"
6744 "\n"
6745
6746 #. type: textblock
6747 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6748 msgid ""
6749 "This calls the external C<fgrep -i> program and returns the matching lines."
6750 msgstr ""
6751
6752 #. type: =head2
6753 #: ../fish/guestfish-actions.pod:1030
6754 msgid "file"
6755 msgstr "file"
6756
6757 #. type: verbatim
6758 #: ../fish/guestfish-actions.pod:1032
6759 #, no-wrap
6760 msgid ""
6761 " file path\n"
6762 "\n"
6763 msgstr ""
6764 " file шлях\n"
6765 "\n"
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6769 msgid ""
6770 "This call uses the standard L<file(1)> command to determine the type or "
6771 "contents of the file."
6772 msgstr ""
6773
6774 #. type: textblock
6775 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6776 msgid ""
6777 "This call will also transparently look inside various types of compressed "
6778 "file."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6783 msgid ""
6784 "The exact command which runs is C<file -zb path>.  Note in particular that "
6785 "the filename is not prepended to the output (the I<-b> option)."
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6790 msgid ""
6791 "The output depends on the output of the underlying L<file(1)> command and it "
6792 "can change in future in ways beyond our control.  In other words, the output "
6793 "is not guaranteed by the ABI."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1048
6798 msgid ""
6799 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6800 "(etc), L</is-zero>."
6801 msgstr ""
6802
6803 #. type: =head2
6804 #: ../fish/guestfish-actions.pod:1051
6805 msgid "file-architecture"
6806 msgstr "file-architecture"
6807
6808 #. type: verbatim
6809 #: ../fish/guestfish-actions.pod:1053
6810 #, no-wrap
6811 msgid ""
6812 " file-architecture filename\n"
6813 "\n"
6814 msgstr ""
6815 " file-architecture назва_файла\n"
6816 "\n"
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6820 msgid ""
6821 "This detects the architecture of the binary C<filename>, and returns it if "
6822 "known."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6827 msgid "Currently defined architectures are:"
6828 msgstr ""
6829
6830 #. type: =item
6831 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6832 msgid "\"i386\""
6833 msgstr "\"i386\""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6837 msgid ""
6838 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6839 "irrespective of the precise processor requirements of the binary."
6840 msgstr ""
6841
6842 #. type: =item
6843 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6844 msgid "\"x86_64\""
6845 msgstr "\"x86_64\""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6849 msgid "64 bit x86-64."
6850 msgstr ""
6851
6852 #. type: =item
6853 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6854 msgid "\"sparc\""
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6859 msgid "32 bit SPARC."
6860 msgstr ""
6861
6862 #. type: =item
6863 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6864 msgid "\"sparc64\""
6865 msgstr ""
6866
6867 #. type: textblock
6868 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6869 msgid "64 bit SPARC V9 and above."
6870 msgstr ""
6871
6872 #. type: =item
6873 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6874 msgid "\"ia64\""
6875 msgstr "\"ia64\""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6879 msgid "Intel Itanium."
6880 msgstr "Intel Itanium."
6881
6882 #. type: =item
6883 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6884 msgid "\"ppc\""
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6889 msgid "32 bit Power PC."
6890 msgstr ""
6891
6892 #. type: =item
6893 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6894 msgid "\"ppc64\""
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6899 msgid "64 bit Power PC."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6904 msgid "Libguestfs may return other architecture strings in future."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6909 msgid "The function works on at least the following types of files:"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6914 msgid "many types of Un*x and Linux binary"
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6919 msgid "many types of Un*x and Linux shared library"
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6924 msgid "Windows Win32 and Win64 binaries"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6929 msgid "Windows Win32 and Win64 DLLs"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6934 msgid "Win32 binaries and DLLs return C<i386>."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6939 msgid "Win64 binaries and DLLs return C<x86_64>."
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6944 msgid "Linux kernel modules"
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6949 msgid "Linux new-style initrd images"
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6954 msgid "some non-x86 Linux vmlinuz kernels"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6959 msgid "What it can't do currently:"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6964 msgid "static libraries (libfoo.a)"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6969 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6974 msgid "x86 Linux vmlinuz kernels"
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6979 msgid ""
6980 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6981 "compressed code, and are horribly hard to unpack.  If you want to find the "
6982 "architecture of a kernel, use the architecture of the associated initrd or "
6983 "kernel module(s) instead."
6984 msgstr ""
6985
6986 #. type: =head2
6987 #: ../fish/guestfish-actions.pod:1156
6988 msgid "filesize"
6989 msgstr "filesize"
6990
6991 #. type: verbatim
6992 #: ../fish/guestfish-actions.pod:1158
6993 #, no-wrap
6994 msgid ""
6995 " filesize file\n"
6996 "\n"
6997 msgstr ""
6998 " filesize файл\n"
6999 "\n"
7000
7001 #. type: textblock
7002 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
7003 msgid "This command returns the size of C<file> in bytes."
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:1162
7008 msgid ""
7009 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7010 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7011 msgstr ""
7012
7013 #. type: =head2
7014 #: ../fish/guestfish-actions.pod:1166
7015 msgid "fill"
7016 msgstr "fill"
7017
7018 #. type: verbatim
7019 #: ../fish/guestfish-actions.pod:1168
7020 #, no-wrap
7021 msgid ""
7022 " fill c len path\n"
7023 "\n"
7024 msgstr ""
7025
7026 #. type: textblock
7027 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
7028 msgid ""
7029 "This command creates a new file called C<path>.  The initial content of the "
7030 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7031 "[0..255]>."
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1174
7036 msgid ""
7037 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7038 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7039 "L</fill-pattern>."
7040 msgstr ""
7041
7042 #. type: =head2
7043 #: ../fish/guestfish-actions.pod:1179
7044 msgid "fill-pattern"
7045 msgstr "fill-pattern"
7046
7047 #. type: verbatim
7048 #: ../fish/guestfish-actions.pod:1181
7049 #, no-wrap
7050 msgid ""
7051 " fill-pattern pattern len path\n"
7052 "\n"
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../fish/guestfish-actions.pod:1183
7057 msgid ""
7058 "This function is like L</fill> except that it creates a new file of length "
7059 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7060 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7061 "bytes."
7062 msgstr ""
7063
7064 #. type: =head2
7065 #: ../fish/guestfish-actions.pod:1188
7066 msgid "find"
7067 msgstr "find"
7068
7069 #. type: verbatim
7070 #: ../fish/guestfish-actions.pod:1190
7071 #, no-wrap
7072 msgid ""
7073 " find directory\n"
7074 "\n"
7075 msgstr ""
7076 " find каталог\n"
7077 "\n"
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
7081 msgid ""
7082 "This command lists out all files and directories, recursively, starting at "
7083 "C<directory>.  It is essentially equivalent to running the shell command "
7084 "C<find directory -print> but some post-processing happens on the output, "
7085 "described below."
7086 msgstr ""
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7090 msgid ""
7091 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7092 "structure was:"
7093 msgstr ""
7094
7095 #. type: verbatim
7096 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
7097 #, no-wrap
7098 msgid ""
7099 " /tmp/a\n"
7100 " /tmp/b\n"
7101 " /tmp/c/d\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:1204
7107 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7108 msgstr ""
7109
7110 #. type: verbatim
7111 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
7112 #, no-wrap
7113 msgid ""
7114 " a\n"
7115 " b\n"
7116 " c\n"
7117 " c/d\n"
7118 "\n"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7123 msgid "If C<directory> is not a directory, then this command returns an error."
7124 msgstr ""
7125
7126 #. type: textblock
7127 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
7128 msgid "The returned list is sorted."
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../fish/guestfish-actions.pod:1217
7133 msgid "See also L</find0>."
7134 msgstr "Див. також L</find0>."
7135
7136 #. type: =head2
7137 #: ../fish/guestfish-actions.pod:1222
7138 msgid "find0"
7139 msgstr "find0"
7140
7141 #. type: verbatim
7142 #: ../fish/guestfish-actions.pod:1224
7143 #, no-wrap
7144 msgid ""
7145 " find0 directory (files|-)\n"
7146 "\n"
7147 msgstr ""
7148 " find0 каталог (файли|-)\n"
7149 "\n"
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
7153 msgid ""
7154 "This command lists out all files and directories, recursively, starting at "
7155 "C<directory>, placing the resulting list in the external file called "
7156 "C<files>."
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1230
7161 msgid ""
7162 "This command works the same way as L</find> with the following exceptions:"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
7167 msgid "The resulting list is written to an external file."
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
7172 msgid ""
7173 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7174 "L<find(1)> option I<-print0>."
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7179 msgid "This command is not limited in the number of names that it can return."
7180 msgstr ""
7181
7182 #. type: textblock
7183 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7184 msgid "The result list is not sorted."
7185 msgstr ""
7186
7187 #. type: =head2
7188 #: ../fish/guestfish-actions.pod:1257
7189 msgid "findfs-label"
7190 msgstr "findfs-label"
7191
7192 #. type: verbatim
7193 #: ../fish/guestfish-actions.pod:1259
7194 #, no-wrap
7195 msgid ""
7196 " findfs-label label\n"
7197 "\n"
7198 msgstr ""
7199 " findfs-label мітка\n"
7200 "\n"
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
7204 msgid ""
7205 "This command searches the filesystems and returns the one which has the "
7206 "given label.  An error is returned if no such filesystem can be found."
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:1265
7211 msgid "To find the label of a filesystem, use L</vfs-label>."
7212 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7213
7214 #. type: =head2
7215 #: ../fish/guestfish-actions.pod:1267
7216 msgid "findfs-uuid"
7217 msgstr "findfs-uuid"
7218
7219 #. type: verbatim
7220 #: ../fish/guestfish-actions.pod:1269
7221 #, no-wrap
7222 msgid ""
7223 " findfs-uuid uuid\n"
7224 "\n"
7225 msgstr ""
7226 " findfs-uuid uuid\n"
7227 "\n"
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
7231 msgid ""
7232 "This command searches the filesystems and returns the one which has the "
7233 "given UUID.  An error is returned if no such filesystem can be found."
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1275
7238 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7239 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7240
7241 #. type: =head2
7242 #: ../fish/guestfish-actions.pod:1277
7243 msgid "fsck"
7244 msgstr "fsck"
7245
7246 #. type: verbatim
7247 #: ../fish/guestfish-actions.pod:1279
7248 #, no-wrap
7249 msgid ""
7250 " fsck fstype device\n"
7251 "\n"
7252 msgstr ""
7253 " fsck тип_файлової_системи пристрій\n"
7254 "\n"
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
7258 msgid ""
7259 "This runs the filesystem checker (fsck) on C<device> which should have "
7260 "filesystem type C<fstype>."
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
7265 msgid ""
7266 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7267 "codes from C<fsck>."
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
7272 msgid "Multiple status codes can be summed together."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
7277 msgid ""
7278 "A non-zero return code can mean \"success\", for example if errors have been "
7279 "corrected on the filesystem."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7284 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7289 msgid ""
7290 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7291 msgstr ""
7292
7293 #. type: =head2
7294 #: ../fish/guestfish-actions.pod:1309
7295 msgid "get-append"
7296 msgstr "get-append"
7297
7298 #. type: verbatim
7299 #: ../fish/guestfish-actions.pod:1311
7300 #, no-wrap
7301 msgid ""
7302 " get-append\n"
7303 "\n"
7304 msgstr ""
7305 " get-append\n"
7306 "\n"
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
7310 msgid ""
7311 "Return the additional kernel options which are added to the guest kernel "
7312 "command line."
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
7317 msgid "If C<NULL> then no options are added."
7318 msgstr ""
7319
7320 #. type: =head2
7321 #: ../fish/guestfish-actions.pod:1318
7322 msgid "get-attach-method"
7323 msgstr "get-attach-method"
7324
7325 #. type: verbatim
7326 #: ../fish/guestfish-actions.pod:1320
7327 #, no-wrap
7328 msgid ""
7329 " get-attach-method\n"
7330 "\n"
7331 msgstr ""
7332 " get-attach-method\n"
7333 "\n"
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1322
7337 msgid "Return the current attach method.  See L</set-attach-method>."
7338 msgstr ""
7339
7340 #. type: =head2
7341 #: ../fish/guestfish-actions.pod:1324
7342 msgid "get-autosync"
7343 msgstr "get-autosync"
7344
7345 #. type: verbatim
7346 #: ../fish/guestfish-actions.pod:1326
7347 #, no-wrap
7348 msgid ""
7349 " get-autosync\n"
7350 "\n"
7351 msgstr ""
7352 " get-autosync\n"
7353 "\n"
7354
7355 #. type: textblock
7356 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
7357 msgid "Get the autosync flag."
7358 msgstr ""
7359
7360 #. type: =head2
7361 #: ../fish/guestfish-actions.pod:1330
7362 msgid "get-direct"
7363 msgstr "get-direct"
7364
7365 #. type: verbatim
7366 #: ../fish/guestfish-actions.pod:1332
7367 #, no-wrap
7368 msgid ""
7369 " get-direct\n"
7370 "\n"
7371 msgstr ""
7372 " get-direct\n"
7373 "\n"
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
7377 msgid "Return the direct appliance mode flag."
7378 msgstr ""
7379
7380 #. type: =head2
7381 #: ../fish/guestfish-actions.pod:1336
7382 msgid "get-e2label"
7383 msgstr "get-e2label"
7384
7385 #. type: verbatim
7386 #: ../fish/guestfish-actions.pod:1338
7387 #, no-wrap
7388 msgid ""
7389 " get-e2label device\n"
7390 "\n"
7391 msgstr ""
7392 " get-e2label пристрій\n"
7393 "\n"
7394
7395 #. type: textblock
7396 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:2006
7397 msgid ""
7398 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1343
7403 msgid ""
7404 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7405 "instead."
7406 msgstr ""
7407
7408 #. type: =head2
7409 #: ../fish/guestfish-actions.pod:1350
7410 msgid "get-e2uuid"
7411 msgstr "get-e2uuid"
7412
7413 #. type: verbatim
7414 #: ../fish/guestfish-actions.pod:1352
7415 #, no-wrap
7416 msgid ""
7417 " get-e2uuid device\n"
7418 "\n"
7419 msgstr ""
7420 " get-e2uuid пристрій\n"
7421 "\n"
7422
7423 #. type: textblock
7424 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2027
7425 msgid ""
7426 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../fish/guestfish-actions.pod:1357
7431 msgid ""
7432 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7433 "instead."
7434 msgstr ""
7435
7436 #. type: =head2
7437 #: ../fish/guestfish-actions.pod:1364
7438 msgid "get-memsize"
7439 msgstr "get-memsize"
7440
7441 #. type: verbatim
7442 #: ../fish/guestfish-actions.pod:1366
7443 #, no-wrap
7444 msgid ""
7445 " get-memsize\n"
7446 "\n"
7447 msgstr ""
7448 " get-memsize\n"
7449 "\n"
7450
7451 #. type: textblock
7452 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
7453 msgid ""
7454 "This gets the memory size in megabytes allocated to the qemu subprocess."
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:1371
7459 msgid ""
7460 "If L</set-memsize> was not called on this handle, and if "
7461 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7462 "value for memsize."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
7467 #: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265
7468 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139
7469 #: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
7470 msgid ""
7471 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7472 msgstr ""
7473
7474 #. type: =head2
7475 #: ../fish/guestfish-actions.pod:1378
7476 msgid "get-network"
7477 msgstr "get-network"
7478
7479 #. type: verbatim
7480 #: ../fish/guestfish-actions.pod:1380
7481 #, no-wrap
7482 msgid ""
7483 " get-network\n"
7484 "\n"
7485 msgstr ""
7486 " get-network\n"
7487 "\n"
7488
7489 #. type: textblock
7490 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
7491 msgid "This returns the enable network flag."
7492 msgstr ""
7493
7494 #. type: =head2
7495 #: ../fish/guestfish-actions.pod:1384
7496 msgid "get-path"
7497 msgstr "get-path"
7498
7499 #. type: verbatim
7500 #: ../fish/guestfish-actions.pod:1386
7501 #, no-wrap
7502 msgid ""
7503 " get-path\n"
7504 "\n"
7505 msgstr ""
7506 " get-path\n"
7507 "\n"
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
7511 msgid "Return the current search path."
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
7516 msgid ""
7517 "This is always non-NULL.  If it wasn't set already, then this will return "
7518 "the default path."
7519 msgstr ""
7520
7521 #. type: =head2
7522 #: ../fish/guestfish-actions.pod:1393
7523 msgid "get-pgroup"
7524 msgstr ""
7525
7526 #. type: verbatim
7527 #: ../fish/guestfish-actions.pod:1395
7528 #, no-wrap
7529 msgid ""
7530 " get-pgroup\n"
7531 "\n"
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
7536 msgid "This returns the process group flag."
7537 msgstr ""
7538
7539 #. type: =head2
7540 #: ../fish/guestfish-actions.pod:1399
7541 msgid "get-pid"
7542 msgstr "get-pid"
7543
7544 #. type: =head2
7545 #: ../fish/guestfish-actions.pod:1401
7546 msgid "pid"
7547 msgstr ""
7548
7549 #. type: verbatim
7550 #: ../fish/guestfish-actions.pod:1403
7551 #, no-wrap
7552 msgid ""
7553 " get-pid\n"
7554 "\n"
7555 msgstr ""
7556 " get-pid\n"
7557 "\n"
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
7561 msgid ""
7562 "Return the process ID of the qemu subprocess.  If there is no qemu "
7563 "subprocess, then this will return an error."
7564 msgstr ""
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
7568 msgid "This is an internal call used for debugging and testing."
7569 msgstr ""
7570
7571 #. type: =head2
7572 #: ../fish/guestfish-actions.pod:1410
7573 msgid "get-qemu"
7574 msgstr "get-qemu"
7575
7576 #. type: verbatim
7577 #: ../fish/guestfish-actions.pod:1412
7578 #, no-wrap
7579 msgid ""
7580 " get-qemu\n"
7581 "\n"
7582 msgstr ""
7583 " get-qemu\n"
7584 "\n"
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
7588 msgid "Return the current qemu binary."
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
7593 msgid ""
7594 "This is always non-NULL.  If it wasn't set already, then this will return "
7595 "the default qemu binary name."
7596 msgstr ""
7597
7598 #. type: =head2
7599 #: ../fish/guestfish-actions.pod:1419
7600 msgid "get-recovery-proc"
7601 msgstr "get-recovery-proc"
7602
7603 #. type: verbatim
7604 #: ../fish/guestfish-actions.pod:1421
7605 #, no-wrap
7606 msgid ""
7607 " get-recovery-proc\n"
7608 "\n"
7609 msgstr ""
7610 " get-recovery-proc\n"
7611 "\n"
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
7615 msgid "Return the recovery process enabled flag."
7616 msgstr ""
7617
7618 #. type: =head2
7619 #: ../fish/guestfish-actions.pod:1425
7620 msgid "get-selinux"
7621 msgstr "get-selinux"
7622
7623 #. type: verbatim
7624 #: ../fish/guestfish-actions.pod:1427
7625 #, no-wrap
7626 msgid ""
7627 " get-selinux\n"
7628 "\n"
7629 msgstr ""
7630 " get-selinux\n"
7631 "\n"
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1429
7635 msgid ""
7636 "This returns the current setting of the selinux flag which is passed to the "
7637 "appliance at boot time.  See L</set-selinux>."
7638 msgstr ""
7639
7640 #. type: =head2
7641 #: ../fish/guestfish-actions.pod:1435
7642 msgid "get-state"
7643 msgstr "get-state"
7644
7645 #. type: verbatim
7646 #: ../fish/guestfish-actions.pod:1437
7647 #, no-wrap
7648 msgid ""
7649 " get-state\n"
7650 "\n"
7651 msgstr ""
7652 " get-state\n"
7653 "\n"
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
7657 msgid ""
7658 "This returns the current state as an opaque integer.  This is only useful "
7659 "for printing debug and internal error messages."
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362
7664 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418
7665 #: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154
7666 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463
7667 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
7668 msgid "For more information on states, see L<guestfs(3)>."
7669 msgstr ""
7670
7671 #. type: =head2
7672 #: ../fish/guestfish-actions.pod:1444
7673 msgid "get-trace"
7674 msgstr "get-trace"
7675
7676 #. type: verbatim
7677 #: ../fish/guestfish-actions.pod:1446
7678 #, no-wrap
7679 msgid ""
7680 " get-trace\n"
7681 "\n"
7682 msgstr ""
7683 " get-trace\n"
7684 "\n"
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
7688 msgid "Return the command trace flag."
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:1450
7693 msgid "get-umask"
7694 msgstr "get-umask"
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:1452
7698 #, no-wrap
7699 msgid ""
7700 " get-umask\n"
7701 "\n"
7702 msgstr ""
7703 " get-umask\n"
7704 "\n"
7705
7706 #. type: textblock
7707 #: ../fish/guestfish-actions.pod:1454
7708 msgid ""
7709 "Return the current umask.  By default the umask is C<022> unless it has been "
7710 "set by calling L</umask>."
7711 msgstr ""
7712
7713 #. type: =head2
7714 #: ../fish/guestfish-actions.pod:1457
7715 msgid "get-verbose"
7716 msgstr "get-verbose"
7717
7718 #. type: verbatim
7719 #: ../fish/guestfish-actions.pod:1459
7720 #, no-wrap
7721 msgid ""
7722 " get-verbose\n"
7723 "\n"
7724 msgstr ""
7725 " get-verbose\n"
7726 "\n"
7727
7728 #. type: textblock
7729 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
7730 msgid "This returns the verbose messages flag."
7731 msgstr ""
7732
7733 #. type: =head2
7734 #: ../fish/guestfish-actions.pod:1463
7735 msgid "getcon"
7736 msgstr "getcon"
7737
7738 #. type: verbatim
7739 #: ../fish/guestfish-actions.pod:1465
7740 #, no-wrap
7741 msgid ""
7742 " getcon\n"
7743 "\n"
7744 msgstr ""
7745 " getcon\n"
7746 "\n"
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
7750 msgid "This gets the SELinux security context of the daemon."
7751 msgstr ""
7752
7753 #. type: textblock
7754 #: ../fish/guestfish-actions.pod:1469
7755 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7756 msgstr ""
7757
7758 #. type: =head2
7759 #: ../fish/guestfish-actions.pod:1472
7760 msgid "getxattr"
7761 msgstr "getxattr"
7762
7763 #. type: verbatim
7764 #: ../fish/guestfish-actions.pod:1474
7765 #, no-wrap
7766 msgid ""
7767 " getxattr path name\n"
7768 "\n"
7769 msgstr ""
7770 " getxattr шлях назва\n"
7771 "\n"
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:1476
7775 msgid ""
7776 "Get a single extended attribute from file C<path> named C<name>.  This call "
7777 "follows symlinks.  If you want to lookup an extended attribute for the "
7778 "symlink itself, use L</lgetxattr>."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
7783 msgid ""
7784 "Normally it is better to get all extended attributes from a file in one go "
7785 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7786 "buggy and do not provide a way to list out attributes.  For these "
7787 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7788 "attributes you want in advance and call this function."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
7793 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
7794 msgid ""
7795 "Extended attribute values are blobs of binary data.  If there is no extended "
7796 "attribute named C<name>, this returns an error."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1490
7801 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7802 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7803
7804 #. type: =head2
7805 #: ../fish/guestfish-actions.pod:1492
7806 msgid "getxattrs"
7807 msgstr "getxattrs"
7808
7809 #. type: verbatim
7810 #: ../fish/guestfish-actions.pod:1494
7811 #, no-wrap
7812 msgid ""
7813 " getxattrs path\n"
7814 "\n"
7815 msgstr ""
7816 " getxattrs шлях\n"
7817 "\n"
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
7821 msgid ""
7822 "This call lists the extended attributes of the file or directory C<path>."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
7827 msgid ""
7828 "At the system call level, this is a combination of the L<listxattr(2)> and "
7829 "L<getxattr(2)> calls."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../fish/guestfish-actions.pod:1502
7834 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7835 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7836
7837 #. type: =head2
7838 #: ../fish/guestfish-actions.pod:1504
7839 msgid "glob-expand"
7840 msgstr "glob-expand"
7841
7842 #. type: verbatim
7843 #: ../fish/guestfish-actions.pod:1506
7844 #, no-wrap
7845 msgid ""
7846 " glob-expand pattern\n"
7847 "\n"
7848 msgstr ""
7849 " glob-expand шаблон\n"
7850 "\n"
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
7854 msgid ""
7855 "This command searches for all the pathnames matching C<pattern> according to "
7856 "the wildcard expansion rules used by the shell."
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
7861 msgid ""
7862 "If no paths match, then this returns an empty list (note: not an error)."
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
7867 msgid ""
7868 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7869 "GLOB_BRACE>.  See that manual page for more details."
7870 msgstr ""
7871
7872 #. type: =head2
7873 #: ../fish/guestfish-actions.pod:1519
7874 msgid "grep"
7875 msgstr "grep"
7876
7877 #. type: verbatim
7878 #: ../fish/guestfish-actions.pod:1521
7879 #, no-wrap
7880 msgid ""
7881 " grep regex path\n"
7882 "\n"
7883 msgstr ""
7884 " grepi формальний_вираз шлях\n"
7885 "\n"
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
7889 msgid "This calls the external C<grep> program and returns the matching lines."
7890 msgstr ""
7891
7892 #. type: =head2
7893 #: ../fish/guestfish-actions.pod:1529
7894 msgid "grepi"
7895 msgstr "grepi"
7896
7897 #. type: verbatim
7898 #: ../fish/guestfish-actions.pod:1531
7899 #, no-wrap
7900 msgid ""
7901 " grepi regex path\n"
7902 "\n"
7903 msgstr ""
7904 " grepi формальний_вираз шлях\n"
7905 "\n"
7906
7907 #. type: textblock
7908 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
7909 msgid ""
7910 "This calls the external C<grep -i> program and returns the matching lines."
7911 msgstr ""
7912
7913 #. type: =head2
7914 #: ../fish/guestfish-actions.pod:1539
7915 msgid "grub-install"
7916 msgstr "grub-install"
7917
7918 #. type: verbatim
7919 #: ../fish/guestfish-actions.pod:1541
7920 #, no-wrap
7921 msgid ""
7922 " grub-install root device\n"
7923 "\n"
7924 msgstr ""
7925 " grub-install кореневий пристрій\n"
7926 "\n"
7927
7928 #. type: textblock
7929 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
7930 msgid ""
7931 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7932 "the root directory being C<root>."
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
7937 msgid ""
7938 "Note: If grub-install reports the error \"No suitable drive was found in the "
7939 "generated device map.\" it may be that you need to create a C</boot/grub/"
7940 "device.map> file first that contains the mapping between grub device names "
7941 "and Linux device names.  It is usually sufficient to create a file "
7942 "containing:"
7943 msgstr ""
7944
7945 #. type: verbatim
7946 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
7947 #, no-wrap
7948 msgid ""
7949 " (hd0) /dev/vda\n"
7950 "\n"
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
7955 msgid "replacing C</dev/vda> with the name of the installation device."
7956 msgstr ""
7957
7958 #. type: =head2
7959 #: ../fish/guestfish-actions.pod:1557
7960 msgid "head"
7961 msgstr "head"
7962
7963 #. type: verbatim
7964 #: ../fish/guestfish-actions.pod:1559
7965 #, no-wrap
7966 msgid ""
7967 " head path\n"
7968 "\n"
7969 msgstr ""
7970 " head шлях\n"
7971 "\n"
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
7975 msgid ""
7976 "This command returns up to the first 10 lines of a file as a list of strings."
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:1567
7981 msgid "head-n"
7982 msgstr "head-n"
7983
7984 #. type: verbatim
7985 #: ../fish/guestfish-actions.pod:1569
7986 #, no-wrap
7987 msgid ""
7988 " head-n nrlines path\n"
7989 "\n"
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7994 msgid ""
7995 "If the parameter C<nrlines> is a positive number, this returns the first "
7996 "C<nrlines> lines of the file C<path>."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
8001 msgid ""
8002 "If the parameter C<nrlines> is a negative number, this returns lines from "
8003 "the file C<path>, excluding the last C<nrlines> lines."
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643
8008 #: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
8009 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8010 msgstr ""
8011
8012 #. type: =head2
8013 #: ../fish/guestfish-actions.pod:1582
8014 msgid "hexdump"
8015 msgstr "hexdump"
8016
8017 #. type: verbatim
8018 #: ../fish/guestfish-actions.pod:1584
8019 #, no-wrap
8020 msgid ""
8021 " hexdump path\n"
8022 "\n"
8023 msgstr ""
8024 " hexdump шлях\n"
8025 "\n"
8026
8027 #. type: textblock
8028 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
8029 msgid ""
8030 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8031 "readable, canonical hex dump of the file."
8032 msgstr ""
8033
8034 #. type: =head2
8035 #: ../fish/guestfish-actions.pod:1592
8036 msgid "initrd-cat"
8037 msgstr "initrd-cat"
8038
8039 #. type: verbatim
8040 #: ../fish/guestfish-actions.pod:1594
8041 #, no-wrap
8042 msgid ""
8043 " initrd-cat initrdpath filename\n"
8044 "\n"
8045 msgstr ""
8046 " initrd-cat шлях_initrd назва_файла\n"
8047 "\n"
8048
8049 #. type: textblock
8050 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
8051 msgid ""
8052 "This command unpacks the file C<filename> from the initrd file called "
8053 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8054 "character."
8055 msgstr ""
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
8059 msgid ""
8060 "For example, in guestfish you could use the following command to examine the "
8061 "boot script (usually called C</init>)  contained in a Linux initrd or "
8062 "initramfs image:"
8063 msgstr ""
8064
8065 #. type: verbatim
8066 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
8067 #, no-wrap
8068 msgid ""
8069 " initrd-cat /boot/initrd-<version>.img init\n"
8070 "\n"
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1606
8075 msgid "See also L</initrd-list>."
8076 msgstr "Див. також L</initrd-list>."
8077
8078 #. type: =head2
8079 #: ../fish/guestfish-actions.pod:1611
8080 msgid "initrd-list"
8081 msgstr "initrd-list"
8082
8083 #. type: verbatim
8084 #: ../fish/guestfish-actions.pod:1613
8085 #, no-wrap
8086 msgid ""
8087 " initrd-list path\n"
8088 "\n"
8089 msgstr ""
8090 " initrd-list шлях\n"
8091 "\n"
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
8095 msgid "This command lists out files contained in an initrd."
8096 msgstr ""
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
8100 msgid ""
8101 "The files are listed without any initial C</> character.  The files are "
8102 "listed in the order they appear (not necessarily alphabetical).  Directory "
8103 "names are listed as separate items."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
8108 msgid ""
8109 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8110 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8111 "files)."
8112 msgstr ""
8113
8114 #. type: =head2
8115 #: ../fish/guestfish-actions.pod:1625
8116 msgid "inotify-add-watch"
8117 msgstr "inotify-add-watch"
8118
8119 #. type: verbatim
8120 #: ../fish/guestfish-actions.pod:1627
8121 #, no-wrap
8122 msgid ""
8123 " inotify-add-watch path mask\n"
8124 "\n"
8125 msgstr ""
8126 " inotify-add-watch шлях маска\n"
8127 "\n"
8128
8129 #. type: textblock
8130 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
8131 msgid "Watch C<path> for the events listed in C<mask>."
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
8136 msgid ""
8137 "Note that if C<path> is a directory then events within that directory are "
8138 "watched, but this does I<not> happen recursively (in subdirectories)."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
8143 msgid ""
8144 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8145 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8146 msgstr ""
8147
8148 #. type: =head2
8149 #: ../fish/guestfish-actions.pod:1639
8150 msgid "inotify-close"
8151 msgstr "inotify-close"
8152
8153 #. type: verbatim
8154 #: ../fish/guestfish-actions.pod:1641
8155 #, no-wrap
8156 msgid ""
8157 " inotify-close\n"
8158 "\n"
8159 msgstr ""
8160 " inotify-close\n"
8161 "\n"
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
8165 msgid ""
8166 "This closes the inotify handle which was previously opened by inotify_init.  "
8167 "It removes all watches, throws away any pending events, and deallocates all "
8168 "resources."
8169 msgstr ""
8170
8171 #. type: =head2
8172 #: ../fish/guestfish-actions.pod:1647
8173 msgid "inotify-files"
8174 msgstr "inotify-files"
8175
8176 #. type: verbatim
8177 #: ../fish/guestfish-actions.pod:1649
8178 #, no-wrap
8179 msgid ""
8180 " inotify-files\n"
8181 "\n"
8182 msgstr ""
8183 " inotify-files\n"
8184 "\n"
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1651
8188 msgid ""
8189 "This function is a helpful wrapper around L</inotify-read> which just "
8190 "returns a list of pathnames of objects that were touched.  The returned "
8191 "pathnames are sorted and deduplicated."
8192 msgstr ""
8193
8194 #. type: =head2
8195 #: ../fish/guestfish-actions.pod:1655
8196 msgid "inotify-init"
8197 msgstr "inotify-init"
8198
8199 #. type: verbatim
8200 #: ../fish/guestfish-actions.pod:1657
8201 #, no-wrap
8202 msgid ""
8203 " inotify-init maxevents\n"
8204 "\n"
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
8209 msgid ""
8210 "This command creates a new inotify handle.  The inotify subsystem can be "
8211 "used to notify events which happen to objects in the guest filesystem."
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1663
8216 msgid ""
8217 "C<maxevents> is the maximum number of events which will be queued up between "
8218 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8219 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8220 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8221 "but records the fact that it threw them away by setting a flag "
8222 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1673
8227 msgid ""
8228 "Before any events are generated, you have to add some watches to the "
8229 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8230 "L</inotify-watch-all>."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1679
8235 msgid ""
8236 "Queued up events should be read periodically by calling L</inotify-read> (or "
8237 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8238 "If you don't read the events out often enough then you risk the internal "
8239 "queue overflowing."
8240 msgstr ""
8241
8242 #. type: textblock
8243 #: ../fish/guestfish-actions.pod:1686
8244 msgid ""
8245 "The handle should be closed after use by calling L</inotify-close>.  This "
8246 "also removes any watches automatically."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
8251 msgid ""
8252 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8253 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8254 "that there is one global inotify handle per libguestfs instance."
8255 msgstr ""
8256
8257 #. type: =head2
8258 #: ../fish/guestfish-actions.pod:1695
8259 msgid "inotify-read"
8260 msgstr "inotify-read"
8261
8262 #. type: verbatim
8263 #: ../fish/guestfish-actions.pod:1697
8264 #, no-wrap
8265 msgid ""
8266 " inotify-read\n"
8267 "\n"
8268 msgstr ""
8269 " inotify-read\n"
8270 "\n"
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
8274 msgid ""
8275 "Return the complete queue of events that have happened since the previous "
8276 "read call."
8277 msgstr ""
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
8281 msgid "If no events have happened, this returns an empty list."
8282 msgstr ""
8283
8284 #. type: textblock
8285 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8286 msgid ""
8287 "I<Note>: In order to make sure that all events have been read, you must call "
8288 "this function repeatedly until it returns an empty list.  The reason is that "
8289 "the call will read events up to the maximum appliance-to-host message size "
8290 "and leave remaining events in the queue."
8291 msgstr ""
8292
8293 #. type: =head2
8294 #: ../fish/guestfish-actions.pod:1710
8295 msgid "inotify-rm-watch"
8296 msgstr "inotify-rm-watch"
8297
8298 #. type: verbatim
8299 #: ../fish/guestfish-actions.pod:1712
8300 #, no-wrap
8301 msgid ""
8302 " inotify-rm-watch wd\n"
8303 "\n"
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1714
8308 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8309 msgstr ""
8310
8311 #. type: =head2
8312 #: ../fish/guestfish-actions.pod:1717
8313 msgid "inspect-get-arch"
8314 msgstr "inspect-get-arch"
8315
8316 #. type: verbatim
8317 #: ../fish/guestfish-actions.pod:1719
8318 #, no-wrap
8319 msgid ""
8320 " inspect-get-arch root\n"
8321 "\n"
8322 msgstr ""
8323 " inspect-get-arch корінь\n"
8324 "\n"
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:1721
8328 msgid ""
8329 "This returns the architecture of the inspected operating system.  The "
8330 "possible return values are listed under L</file-architecture>."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
8335 msgid ""
8336 "If the architecture could not be determined, then the string C<unknown> is "
8337 "returned."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811
8342 #: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902
8343 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047
8344 #: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082
8345 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154
8346 #: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180
8347 #: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200
8348 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308
8349 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598
8350 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
8351 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942
8352 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053
8353 #: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127
8354 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187
8355 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224
8356 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
8357 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
8358 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8359 msgstr ""
8360
8361 #. type: =head2
8362 #: ../fish/guestfish-actions.pod:1730
8363 msgid "inspect-get-distro"
8364 msgstr "inspect-get-distro"
8365
8366 #. type: verbatim
8367 #: ../fish/guestfish-actions.pod:1732
8368 #, no-wrap
8369 msgid ""
8370 " inspect-get-distro root\n"
8371 "\n"
8372 msgstr ""
8373 " inspect-get-distro корінь\n"
8374 "\n"
8375
8376 #. type: textblock
8377 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
8378 msgid ""
8379 "This returns the distro (distribution) of the inspected operating system."
8380 msgstr ""
8381
8382 #. type: textblock
8383 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
8384 msgid "Currently defined distros are:"
8385 msgstr ""
8386
8387 #. type: =item
8388 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
8389 msgid "\"archlinux\""
8390 msgstr "\"archlinux\""
8391
8392 #. type: textblock
8393 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
8394 msgid "Arch Linux."
8395 msgstr "Arch Linux."
8396
8397 #. type: =item
8398 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
8399 msgid "\"centos\""
8400 msgstr ""
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
8404 msgid "CentOS."
8405 msgstr ""
8406
8407 #. type: =item
8408 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
8409 msgid "\"debian\""
8410 msgstr "\"debian\""
8411
8412 #. type: textblock
8413 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
8414 msgid "Debian."
8415 msgstr "Debian."
8416
8417 #. type: =item
8418 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
8419 msgid "\"fedora\""
8420 msgstr "\"fedora\""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
8424 msgid "Fedora."
8425 msgstr "Fedora."
8426
8427 #. type: =item
8428 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
8429 msgid "\"gentoo\""
8430 msgstr "\"gentoo\""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
8434 msgid "Gentoo."
8435 msgstr "Gentoo."
8436
8437 #. type: =item
8438 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8439 msgid "\"linuxmint\""
8440 msgstr "\"linuxmint\""
8441
8442 #. type: textblock
8443 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
8444 msgid "Linux Mint."
8445 msgstr "Linux Mint."
8446
8447 #. type: =item
8448 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
8449 msgid "\"mandriva\""
8450 msgstr "\"mandriva\""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
8454 msgid "Mandriva."
8455 msgstr "Mandriva."
8456
8457 #. type: =item
8458 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
8459 msgid "\"meego\""
8460 msgstr "\"meego\""
8461
8462 #. type: textblock
8463 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
8464 msgid "MeeGo."
8465 msgstr "MeeGo."
8466
8467 #. type: =item
8468 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
8469 msgid "\"pardus\""
8470 msgstr "\"pardus\""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
8474 msgid "Pardus."
8475 msgstr "Pardus."
8476
8477 #. type: =item
8478 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
8479 msgid "\"redhat-based\""
8480 msgstr "\"redhat-based\""
8481
8482 #. type: textblock
8483 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
8484 msgid "Some Red Hat-derived distro."
8485 msgstr "Дистрибутив, що походить від Red Hat."
8486
8487 #. type: =item
8488 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
8489 msgid "\"rhel\""
8490 msgstr "\"rhel\""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
8494 msgid "Red Hat Enterprise Linux."
8495 msgstr ""
8496
8497 #. type: =item
8498 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
8499 msgid "\"scientificlinux\""
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
8504 msgid "Scientific Linux."
8505 msgstr ""
8506
8507 #. type: =item
8508 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
8509 msgid "\"slackware\""
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
8514 msgid "Slackware."
8515 msgstr ""
8516
8517 #. type: =item
8518 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
8519 msgid "\"ubuntu\""
8520 msgstr "\"ubuntu\""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
8524 msgid "Ubuntu."
8525 msgstr "Ubuntu."
8526
8527 #. type: =item
8528 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881
8529 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674
8530 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
8531 msgid "\"unknown\""
8532 msgstr "\"unknown\""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
8536 msgid "The distro could not be determined."
8537 msgstr "Дистрибутив, тип якого не вдалося визначити."
8538
8539 #. type: =item
8540 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
8541 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
8542 msgid "\"windows\""
8543 msgstr "\"windows\""
8544
8545 #. type: textblock
8546 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
8547 msgid ""
8548 "Windows does not have distributions.  This string is returned if the OS type "
8549 "is Windows."
8550 msgstr ""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887
8554 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685
8555 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
8556 msgid ""
8557 "Future versions of libguestfs may return other strings here.  The caller "
8558 "should be prepared to handle any string."
8559 msgstr ""
8560
8561 #. type: =head2
8562 #: ../fish/guestfish-actions.pod:1813
8563 msgid "inspect-get-drive-mappings"
8564 msgstr ""
8565
8566 #. type: verbatim
8567 #: ../fish/guestfish-actions.pod:1815
8568 #, no-wrap
8569 msgid ""
8570 " inspect-get-drive-mappings root\n"
8571 "\n"
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
8576 msgid ""
8577 "This call is useful for Windows which uses a primitive system of assigning "
8578 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8579 "Windows Registry to find out how disks/partitions are mapped to drive "
8580 "letters, and returns a hash table as in the example below:"
8581 msgstr ""
8582
8583 #. type: verbatim
8584 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
8585 #, no-wrap
8586 msgid ""
8587 " C      =>     /dev/vda2\n"
8588 " E      =>     /dev/vdb1\n"
8589 " F      =>     /dev/vdc1\n"
8590 "\n"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
8595 msgid ""
8596 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8597 "and just contains the drive letter, without the customary colon separator "
8598 "character."
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
8603 msgid ""
8604 "In future we may support other operating systems that also used drive "
8605 "letters, but the keys for those might not be case insensitive and might be "
8606 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8607 "C<h1> etc."
8608 msgstr ""
8609
8610 #. type: textblock
8611 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8612 msgid ""
8613 "For Windows guests, currently only hard drive mappings are returned.  "
8614 "Removable disks (eg. DVD-ROMs) are ignored."
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
8619 msgid ""
8620 "For guests that do not use drive mappings, or if the drive mappings could "
8621 "not be determined, this returns an empty hash table."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1842
8626 msgid ""
8627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8628 "get-mountpoints>, L</inspect-get-filesystems>."
8629 msgstr ""
8630
8631 #. type: =head2
8632 #: ../fish/guestfish-actions.pod:1846
8633 msgid "inspect-get-filesystems"
8634 msgstr "inspect-get-filesystems"
8635
8636 #. type: verbatim
8637 #: ../fish/guestfish-actions.pod:1848
8638 #, no-wrap
8639 msgid ""
8640 " inspect-get-filesystems root\n"
8641 "\n"
8642 msgstr ""
8643 " inspect-get-filesystems корінь\n"
8644 "\n"
8645
8646 #. type: textblock
8647 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
8648 msgid ""
8649 "This returns a list of all the filesystems that we think are associated with "
8650 "this operating system.  This includes the root filesystem, other ordinary "
8651 "filesystems, and non-mounted devices like swap partitions."
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8656 msgid ""
8657 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8658 "to be shared between operating systems."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:1858
8663 msgid ""
8664 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8665 "get-mountpoints>."
8666 msgstr ""
8667
8668 #. type: =head2
8669 #: ../fish/guestfish-actions.pod:1861
8670 msgid "inspect-get-format"
8671 msgstr "inspect-get-format"
8672
8673 #. type: verbatim
8674 #: ../fish/guestfish-actions.pod:1863
8675 #, no-wrap
8676 msgid ""
8677 " inspect-get-format root\n"
8678 "\n"
8679 msgstr ""
8680 " inspect-get-format корінь\n"
8681 "\n"
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
8685 msgid ""
8686 "This returns the format of the inspected operating system.  You can use it "
8687 "to detect install images, live CDs and similar."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
8692 msgid "Currently defined formats are:"
8693 msgstr ""
8694
8695 #. type: =item
8696 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
8697 msgid "\"installed\""
8698 msgstr "\"installed\""
8699
8700 #. type: textblock
8701 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
8702 msgid "This is an installed operating system."
8703 msgstr "Це встановлена операційна система."
8704
8705 #. type: =item
8706 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
8707 msgid "\"installer\""
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
8712 msgid ""
8713 "The disk image being inspected is not an installed operating system, but a "
8714 "I<bootable> install disk, live CD, or similar."
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8719 msgid "The format of this disk image is not known."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:1892
8724 msgid "inspect-get-hostname"
8725 msgstr "inspect-get-hostname"
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:1894
8729 #, no-wrap
8730 msgid ""
8731 " inspect-get-hostname root\n"
8732 "\n"
8733 msgstr ""
8734 " inspect-get-hostname корінь\n"
8735 "\n"
8736
8737 #. type: textblock
8738 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
8739 msgid ""
8740 "This function returns the hostname of the operating system as found by "
8741 "inspection of the guest's configuration files."
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
8746 msgid ""
8747 "If the hostname could not be determined, then the string C<unknown> is "
8748 "returned."
8749 msgstr ""
8750
8751 #. type: =head2
8752 #: ../fish/guestfish-actions.pod:1904
8753 msgid "inspect-get-icon"
8754 msgstr ""
8755
8756 #. type: verbatim
8757 #: ../fish/guestfish-actions.pod:1906
8758 #, no-wrap
8759 msgid ""
8760 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8761 "\n"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
8766 msgid ""
8767 "This function returns an icon corresponding to the inspected operating "
8768 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8769 "to PNG if necessary)."
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
8774 msgid ""
8775 "If it was not possible to get an icon this function returns a zero-length "
8776 "(non-NULL) buffer.  I<Callers must check for this case>."
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
8781 msgid ""
8782 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8783 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8784 "this file will be returned.  You can disable favicons by passing the "
8785 "optional C<favicon> boolean as false (default is true)."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
8790 msgid ""
8791 "If finding the favicon fails, then we look in other places in the guest for "
8792 "a suitable icon."
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
8797 msgid ""
8798 "If the optional C<highquality> boolean is true then only high quality icons "
8799 "are returned, which means only icons of high resolution with an alpha "
8800 "channel.  The default (false) is to return any icon we can, even if it is of "
8801 "substandard quality."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8806 msgid ""
8807 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8808 "before you call this, since it needs to read information from the guest "
8809 "filesystem during the call."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
8814 msgid ""
8815 "B<Security:> The icon data comes from the untrusted guest, and should be "
8816 "treated with caution.  PNG files have been known to contain exploits.  "
8817 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8818 "trying to process or display the icon."
8819 msgstr ""
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
8823 msgid ""
8824 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8825 "tries to return the largest, highest quality icon available.  The "
8826 "application must scale the icon to the required size."
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
8831 msgid ""
8832 "Extracting icons from Windows guests requires the external C<wrestool> "
8833 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8834 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8835 "installed separately."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
8840 msgid ""
8841 "Operating system icons are usually trademarks.  Seek legal advice before "
8842 "using trademarks in applications."
8843 msgstr ""
8844
8845 #. type: =head2
8846 #: ../fish/guestfish-actions.pod:1970
8847 msgid "inspect-get-major-version"
8848 msgstr "inspect-get-major-version"
8849
8850 #. type: verbatim
8851 #: ../fish/guestfish-actions.pod:1972
8852 #, no-wrap
8853 msgid ""
8854 " inspect-get-major-version root\n"
8855 "\n"
8856 msgstr ""
8857 " inspect-get-major-version корінь\n"
8858 "\n"
8859
8860 #. type: textblock
8861 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
8862 msgid ""
8863 "This returns the major version number of the inspected operating system."
8864 msgstr ""
8865
8866 #. type: textblock
8867 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
8868 msgid ""
8869 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8870 "popular public names used by the operating system.  Notably the operating "
8871 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8872 "1).  You can find out the real versions corresponding to releases of Windows "
8873 "by consulting Wikipedia or MSDN."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
8878 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
8879 msgid "If the version could not be determined, then C<0> is returned."
8880 msgstr ""
8881
8882 #. type: =head2
8883 #: ../fish/guestfish-actions.pod:1988
8884 msgid "inspect-get-minor-version"
8885 msgstr "inspect-get-minor-version"
8886
8887 #. type: verbatim
8888 #: ../fish/guestfish-actions.pod:1990
8889 #, no-wrap
8890 msgid ""
8891 " inspect-get-minor-version root\n"
8892 "\n"
8893 msgstr ""
8894 " inspect-get-minor-version корінь\n"
8895 "\n"
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
8899 msgid ""
8900 "This returns the minor version number of the inspected operating system."
8901 msgstr ""
8902
8903 #. type: textblock
8904 #: ../fish/guestfish-actions.pod:1997
8905 msgid ""
8906 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8907 "get-major-version>."
8908 msgstr ""
8909
8910 #. type: =head2
8911 #: ../fish/guestfish-actions.pod:2000
8912 msgid "inspect-get-mountpoints"
8913 msgstr "inspect-get-mountpoints"
8914
8915 #. type: verbatim
8916 #: ../fish/guestfish-actions.pod:2002
8917 #, no-wrap
8918 msgid ""
8919 " inspect-get-mountpoints root\n"
8920 "\n"
8921 msgstr ""
8922 " inspect-get-mountpoints корінь\n"
8923 "\n"
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
8927 msgid ""
8928 "This returns a hash of where we think the filesystems associated with this "
8929 "operating system should be mounted.  Callers should note that this is at "
8930 "best an educated guess made by reading configuration files such as C</etc/"
8931 "fstab>.  I<In particular note> that this may return filesystems which are "
8932 "non-existent or not mountable and callers should be prepared to handle or "
8933 "ignore failures if they try to mount them."
8934 msgstr ""
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
8938 msgid ""
8939 "Each element in the returned hashtable has a key which is the path of the "
8940 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8941 "mounted there (eg. C</dev/sda1>)."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8946 msgid ""
8947 "Non-mounted devices such as swap devices are I<not> returned in this list."
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:2021
8952 msgid ""
8953 "For operating systems like Windows which still use drive letters, this call "
8954 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8955 "information about the mapping of drive letters to partitions, see L</inspect-"
8956 "get-drive-mappings>."
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../fish/guestfish-actions.pod:2027
8961 msgid ""
8962 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8963 "get-filesystems>."
8964 msgstr ""
8965
8966 #. type: =head2
8967 #: ../fish/guestfish-actions.pod:2030
8968 msgid "inspect-get-package-format"
8969 msgstr "inspect-get-package-format"
8970
8971 #. type: verbatim
8972 #: ../fish/guestfish-actions.pod:2032
8973 #, no-wrap
8974 msgid ""
8975 " inspect-get-package-format root\n"
8976 "\n"
8977 msgstr ""
8978 " inspect-get-package-format корінь\n"
8979 "\n"
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:2034
8983 msgid ""
8984 "This function and L</inspect-get-package-management> return the package "
8985 "format and package management tool used by the inspected operating system.  "
8986 "For example for Fedora these functions would return C<rpm> (package format) "
8987 "and C<yum> (package management)."
8988 msgstr ""
8989
8990 #. type: textblock
8991 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
8992 msgid ""
8993 "This returns the string C<unknown> if we could not determine the package "
8994 "format I<or> if the operating system does not have a real packaging system "
8995 "(eg. Windows)."
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
9000 msgid ""
9001 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9002 "Future versions of libguestfs may return other strings."
9003 msgstr ""
9004
9005 #. type: =head2
9006 #: ../fish/guestfish-actions.pod:2049
9007 msgid "inspect-get-package-management"
9008 msgstr "inspect-get-package-management"
9009
9010 #. type: verbatim
9011 #: ../fish/guestfish-actions.pod:2051
9012 #, no-wrap
9013 msgid ""
9014 " inspect-get-package-management root\n"
9015 "\n"
9016 msgstr ""
9017 " inspect-get-package-management корінь\n"
9018 "\n"
9019
9020 #. type: textblock
9021 #: ../fish/guestfish-actions.pod:2053
9022 msgid ""
9023 "L</inspect-get-package-format> and this function return the package format "
9024 "and package management tool used by the inspected operating system.  For "
9025 "example for Fedora these functions would return C<rpm> (package format) and "
9026 "C<yum> (package management)."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
9031 msgid ""
9032 "This returns the string C<unknown> if we could not determine the package "
9033 "management tool I<or> if the operating system does not have a real packaging "
9034 "system (eg. Windows)."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
9039 msgid ""
9040 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9041 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9042 "libguestfs may return other strings."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:2070
9047 msgid "inspect-get-product-name"
9048 msgstr "inspect-get-product-name"
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:2072
9052 #, no-wrap
9053 msgid ""
9054 " inspect-get-product-name root\n"
9055 "\n"
9056 msgstr ""
9057 " inspect-get-product-name корінь\n"
9058 "\n"
9059
9060 #. type: textblock
9061 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
9062 msgid ""
9063 "This returns the product name of the inspected operating system.  The "
9064 "product name is generally some freeform string which can be displayed to the "
9065 "user, but should not be parsed by programs."
9066 msgstr ""
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9070 msgid ""
9071 "If the product name could not be determined, then the string C<unknown> is "
9072 "returned."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:2084
9077 msgid "inspect-get-product-variant"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:2086
9082 #, no-wrap
9083 msgid ""
9084 " inspect-get-product-variant root\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
9090 msgid "This returns the product variant of the inspected operating system."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
9095 msgid ""
9096 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9097 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9098 "is usually a string such as C<Client> or C<Server> (other values are "
9099 "possible).  This can be used to distinguish consumer and enterprise versions "
9100 "of Windows that have the same version number (for example, Windows 7 and "
9101 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9102 "the latter is C<Server>)."
9103 msgstr ""
9104
9105 #. type: textblock
9106 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
9107 msgid ""
9108 "For enterprise Linux guests, in future we intend this to return the product "
9109 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9110 "implemented at present."
9111 msgstr ""
9112
9113 #. type: textblock
9114 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
9115 msgid ""
9116 "If the product variant could not be determined, then the string C<unknown> "
9117 "is returned."
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:2107
9122 msgid ""
9123 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9124 "get-product-name>, L</inspect-get-major-version>."
9125 msgstr ""
9126
9127 #. type: =head2
9128 #: ../fish/guestfish-actions.pod:2111
9129 msgid "inspect-get-roots"
9130 msgstr "inspect-get-roots"
9131
9132 #. type: verbatim
9133 #: ../fish/guestfish-actions.pod:2113
9134 #, no-wrap
9135 msgid ""
9136 " inspect-get-roots\n"
9137 "\n"
9138 msgstr ""
9139 " inspect-get-roots\n"
9140 "\n"
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:2115
9144 msgid ""
9145 "This function is a convenient way to get the list of root devices, as "
9146 "returned from a previous call to L</inspect-os>, but without redoing the "
9147 "whole inspection process."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:2119
9152 msgid ""
9153 "This returns an empty list if either no root devices were found or the "
9154 "caller has not called L</inspect-os>."
9155 msgstr ""
9156
9157 #. type: =head2
9158 #: ../fish/guestfish-actions.pod:2124
9159 msgid "inspect-get-type"
9160 msgstr "inspect-get-type"
9161
9162 #. type: verbatim
9163 #: ../fish/guestfish-actions.pod:2126
9164 #, no-wrap
9165 msgid ""
9166 " inspect-get-type root\n"
9167 "\n"
9168 msgstr ""
9169 " inspect-get-type корінь\n"
9170 "\n"
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
9174 msgid ""
9175 "This returns the type of the inspected operating system.  Currently defined "
9176 "types are:"
9177 msgstr ""
9178
9179 #. type: =item
9180 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9181 msgid "\"linux\""
9182 msgstr "\"linux\""
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
9186 msgid "Any Linux-based operating system."
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
9191 msgid "Any Microsoft Windows operating system."
9192 msgstr ""
9193
9194 #. type: =item
9195 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
9196 msgid "\"freebsd\""
9197 msgstr "\"freebsd\""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
9201 msgid "FreeBSD."
9202 msgstr "FreeBSD."
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
9206 msgid "The operating system type could not be determined."
9207 msgstr ""
9208
9209 #. type: =head2
9210 #: ../fish/guestfish-actions.pod:2156
9211 msgid "inspect-get-windows-current-control-set"
9212 msgstr ""
9213
9214 #. type: verbatim
9215 #: ../fish/guestfish-actions.pod:2158
9216 #, no-wrap
9217 msgid ""
9218 " inspect-get-windows-current-control-set root\n"
9219 "\n"
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
9224 msgid ""
9225 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9226 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
9231 msgid ""
9232 "This call assumes that the guest is Windows and that the Registry could be "
9233 "examined by inspection.  If this is not the case then an error is returned."
9234 msgstr ""
9235
9236 #. type: =head2
9237 #: ../fish/guestfish-actions.pod:2169
9238 msgid "inspect-get-windows-systemroot"
9239 msgstr "inspect-get-windows-systemroot"
9240
9241 #. type: verbatim
9242 #: ../fish/guestfish-actions.pod:2171
9243 #, no-wrap
9244 msgid ""
9245 " inspect-get-windows-systemroot root\n"
9246 "\n"
9247 msgstr ""
9248 " inspect-get-windows-systemroot корінь\n"
9249 "\n"
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
9253 msgid ""
9254 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9255 "is a directory path such as C</WINDOWS>."
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
9260 msgid ""
9261 "This call assumes that the guest is Windows and that the systemroot could be "
9262 "determined by inspection.  If this is not the case then an error is returned."
9263 msgstr ""
9264
9265 #. type: =head2
9266 #: ../fish/guestfish-actions.pod:2182
9267 msgid "inspect-is-live"
9268 msgstr "inspect-is-live"
9269
9270 #. type: verbatim
9271 #: ../fish/guestfish-actions.pod:2184
9272 #, no-wrap
9273 msgid ""
9274 " inspect-is-live root\n"
9275 "\n"
9276 msgstr ""
9277 " inspect-is-live корінь\n"
9278 "\n"
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:2186
9282 msgid ""
9283 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9284 "then this returns true if a live image was detected on the disk."
9285 msgstr ""
9286
9287 #. type: =head2
9288 #: ../fish/guestfish-actions.pod:2192
9289 msgid "inspect-is-multipart"
9290 msgstr "inspect-is-multipart"
9291
9292 #. type: verbatim
9293 #: ../fish/guestfish-actions.pod:2194
9294 #, no-wrap
9295 msgid ""
9296 " inspect-is-multipart root\n"
9297 "\n"
9298 msgstr ""
9299 " inspect-is-multipart корінь\n"
9300 "\n"
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:2196
9304 msgid ""
9305 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9306 "then this returns true if the disk is part of a set."
9307 msgstr ""
9308
9309 #. type: =head2
9310 #: ../fish/guestfish-actions.pod:2202
9311 msgid "inspect-is-netinst"
9312 msgstr "inspect-is-netinst"
9313
9314 #. type: verbatim
9315 #: ../fish/guestfish-actions.pod:2204
9316 #, no-wrap
9317 msgid ""
9318 " inspect-is-netinst root\n"
9319 "\n"
9320 msgstr ""
9321 " inspect-is-netinst корінь\n"
9322 "\n"
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:2206
9326 msgid ""
9327 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9328 "then this returns true if the disk is a network installer, ie. not a self-"
9329 "contained install CD but one which is likely to require network access to "
9330 "complete the install."
9331 msgstr ""
9332
9333 #. type: =head2
9334 #: ../fish/guestfish-actions.pod:2214
9335 msgid "inspect-list-applications"
9336 msgstr "inspect-list-applications"
9337
9338 #. type: verbatim
9339 #: ../fish/guestfish-actions.pod:2216
9340 #, no-wrap
9341 msgid ""
9342 " inspect-list-applications root\n"
9343 "\n"
9344 msgstr ""
9345 " inspect-list-applications кореневий_каталог\n"
9346 "\n"
9347
9348 #. type: textblock
9349 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
9350 msgid "Return the list of applications installed in the operating system."
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:2220
9355 msgid ""
9356 "I<Note:> This call works differently from other parts of the inspection "
9357 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9358 "then mount up the disks, before calling this.  Listing applications is a "
9359 "significantly more difficult operation which requires access to the full "
9360 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9361 "are just returning data cached in the libguestfs handle, this call actually "
9362 "reads parts of the mounted filesystems during the call."
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
9367 msgid ""
9368 "This returns an empty list if the inspection code was not able to determine "
9369 "the list of applications."
9370 msgstr ""
9371
9372 #. type: textblock
9373 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
9374 msgid "The application structure contains the following fields:"
9375 msgstr ""
9376
9377 #. type: =item
9378 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
9379 msgid "C<app_name>"
9380 msgstr "C<app_name>"
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
9384 msgid ""
9385 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9386 "guests, this is the package name."
9387 msgstr ""
9388
9389 #. type: =item
9390 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9391 msgid "C<app_display_name>"
9392 msgstr "C<app_display_name>"
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9396 msgid ""
9397 "The display name of the application, sometimes localized to the install "
9398 "language of the guest operating system."
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9403 msgid ""
9404 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9405 "to display something can use C<app_name> instead."
9406 msgstr ""
9407
9408 #. type: =item
9409 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
9410 msgid "C<app_epoch>"
9411 msgstr "C<app_epoch>"
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9415 msgid ""
9416 "For package managers which use epochs, this contains the epoch of the "
9417 "package (an integer).  If unavailable, this is returned as C<0>."
9418 msgstr ""
9419
9420 #. type: =item
9421 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9422 msgid "C<app_version>"
9423 msgstr "C<app_version>"
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9427 msgid ""
9428 "The version string of the application or package.  If unavailable this is "
9429 "returned as an empty string C<\"\">."
9430 msgstr ""
9431
9432 #. type: =item
9433 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9434 msgid "C<app_release>"
9435 msgstr "C<app_release>"
9436
9437 #. type: textblock
9438 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9439 msgid ""
9440 "The release string of the application or package, for package managers that "
9441 "use this.  If unavailable this is returned as an empty string C<\"\">."
9442 msgstr ""
9443
9444 #. type: =item
9445 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9446 msgid "C<app_install_path>"
9447 msgstr "C<app_install_path>"
9448
9449 #. type: textblock
9450 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
9451 msgid ""
9452 "The installation path of the application (on operating systems such as "
9453 "Windows which use installation paths).  This path is in the format used by "
9454 "the guest operating system, it is not a libguestfs path."
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9459 msgid "If unavailable this is returned as an empty string C<\"\">."
9460 msgstr ""
9461
9462 #. type: =item
9463 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
9464 msgid "C<app_trans_path>"
9465 msgstr "C<app_trans_path>"
9466
9467 #. type: textblock
9468 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9469 msgid ""
9470 "The install path translated into a libguestfs path.  If unavailable this is "
9471 "returned as an empty string C<\"\">."
9472 msgstr ""
9473
9474 #. type: =item
9475 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9476 msgid "C<app_publisher>"
9477 msgstr "C<app_publisher>"
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9481 msgid ""
9482 "The name of the publisher of the application, for package managers that use "
9483 "this.  If unavailable this is returned as an empty string C<\"\">."
9484 msgstr ""
9485
9486 #. type: =item
9487 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
9488 msgid "C<app_url>"
9489 msgstr "C<app_url>"
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
9493 msgid ""
9494 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9495 "returned as an empty string C<\"\">."
9496 msgstr ""
9497
9498 #. type: =item
9499 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9500 msgid "C<app_source_package>"
9501 msgstr "C<app_source_package>"
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9505 msgid ""
9506 "For packaging systems which support this, the name of the source package.  "
9507 "If unavailable this is returned as an empty string C<\"\">."
9508 msgstr ""
9509
9510 #. type: =item
9511 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9512 msgid "C<app_summary>"
9513 msgstr "C<app_summary>"
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9517 msgid ""
9518 "A short (usually one line) description of the application or package.  If "
9519 "unavailable this is returned as an empty string C<\"\">."
9520 msgstr ""
9521
9522 #. type: =item
9523 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9524 msgid "C<app_description>"
9525 msgstr "C<app_description>"
9526
9527 #. type: textblock
9528 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9529 msgid ""
9530 "A longer description of the application or package.  If unavailable this is "
9531 "returned as an empty string C<\"\">."
9532 msgstr ""
9533
9534 #. type: =head2
9535 #: ../fish/guestfish-actions.pod:2310
9536 msgid "inspect-os"
9537 msgstr "inspect-os"
9538
9539 #. type: verbatim
9540 #: ../fish/guestfish-actions.pod:2312
9541 #, no-wrap
9542 msgid ""
9543 " inspect-os\n"
9544 "\n"
9545 msgstr ""
9546 " inspect-os\n"
9547 "\n"
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
9551 msgid ""
9552 "This function uses other libguestfs functions and certain heuristics to "
9553 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9554 "for operating systems."
9555 msgstr ""
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
9559 msgid "The list returned is empty if no operating systems were found."
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
9564 msgid ""
9565 "If one operating system was found, then this returns a list with a single "
9566 "element, which is the name of the root filesystem of this operating system.  "
9567 "It is also possible for this function to return a list containing more than "
9568 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9569 "element being the root filesystem of one of the operating systems."
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2327
9574 msgid ""
9575 "You can pass the root string(s) returned to other L</inspect-get-*> "
9576 "functions in order to query further information about each operating system, "
9577 "such as the name and version."
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2332
9582 msgid ""
9583 "This function uses other libguestfs features such as L</mount-ro> and L</"
9584 "umount-all> in order to mount and unmount filesystems and look at the "
9585 "contents.  This should be called with no disks currently mounted.  The "
9586 "function may also use Augeas, so any existing Augeas handle will be closed."
9587 msgstr ""
9588
9589 #. type: textblock
9590 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
9591 msgid ""
9592 "This function cannot decrypt encrypted disks.  The caller must do that first "
9593 "(supplying the necessary keys) if the disk is encrypted."
9594 msgstr ""
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
9598 #: ../fish/guestfish-actions.pod:2601
9599 msgid "See also L</list-filesystems>."
9600 msgstr "Див. також L</list-filesystems>."
9601
9602 #. type: =head2
9603 #: ../fish/guestfish-actions.pod:2346
9604 msgid "is-blockdev"
9605 msgstr "is-blockdev"
9606
9607 #. type: verbatim
9608 #: ../fish/guestfish-actions.pod:2348
9609 #, no-wrap
9610 msgid ""
9611 " is-blockdev path\n"
9612 "\n"
9613 msgstr ""
9614 " is-blockdev шлях\n"
9615 "\n"
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
9619 msgid ""
9620 "This returns C<true> if and only if there is a block device with the given "
9621 "C<path> name."
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
9626 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
9627 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
9628 #: ../fish/guestfish-actions.pod:2452
9629 msgid "See also L</stat>."
9630 msgstr "Див. також L</stat>."
9631
9632 #. type: =head2
9633 #: ../fish/guestfish-actions.pod:2355
9634 msgid "is-busy"
9635 msgstr "is-busy"
9636
9637 #. type: verbatim
9638 #: ../fish/guestfish-actions.pod:2357
9639 #, no-wrap
9640 msgid ""
9641 " is-busy\n"
9642 "\n"
9643 msgstr ""
9644 " is-busy\n"
9645 "\n"
9646
9647 #. type: textblock
9648 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
9649 msgid ""
9650 "This returns true iff this handle is busy processing a command (in the "
9651 "C<BUSY> state)."
9652 msgstr ""
9653
9654 #. type: =head2
9655 #: ../fish/guestfish-actions.pod:2364
9656 msgid "is-chardev"
9657 msgstr "is-chardev"
9658
9659 #. type: verbatim
9660 #: ../fish/guestfish-actions.pod:2366
9661 #, no-wrap
9662 msgid ""
9663 " is-chardev path\n"
9664 "\n"
9665 msgstr ""
9666 " is-chardev шлях\n"
9667 "\n"
9668
9669 #. type: textblock
9670 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
9671 msgid ""
9672 "This returns C<true> if and only if there is a character device with the "
9673 "given C<path> name."
9674 msgstr ""
9675
9676 #. type: =head2
9677 #: ../fish/guestfish-actions.pod:2373
9678 msgid "is-config"
9679 msgstr "is-config"
9680
9681 #. type: verbatim
9682 #: ../fish/guestfish-actions.pod:2375
9683 #, no-wrap
9684 msgid ""
9685 " is-config\n"
9686 "\n"
9687 msgstr ""
9688 " is-config\n"
9689 "\n"
9690
9691 #. type: textblock
9692 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
9693 msgid ""
9694 "This returns true iff this handle is being configured (in the C<CONFIG> "
9695 "state)."
9696 msgstr ""
9697
9698 #. type: =head2
9699 #: ../fish/guestfish-actions.pod:2382
9700 msgid "is-dir"
9701 msgstr "is-dir"
9702
9703 #. type: verbatim
9704 #: ../fish/guestfish-actions.pod:2384
9705 #, no-wrap
9706 msgid ""
9707 " is-dir path\n"
9708 "\n"
9709 msgstr ""
9710 " is-dir шлях\n"
9711 "\n"
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
9715 msgid ""
9716 "This returns C<true> if and only if there is a directory with the given "
9717 "C<path> name.  Note that it returns false for other objects like files."
9718 msgstr ""
9719
9720 #. type: =head2
9721 #: ../fish/guestfish-actions.pod:2392
9722 msgid "is-fifo"
9723 msgstr "is-fifo"
9724
9725 #. type: verbatim
9726 #: ../fish/guestfish-actions.pod:2394
9727 #, no-wrap
9728 msgid ""
9729 " is-fifo path\n"
9730 "\n"
9731 msgstr ""
9732 " is-fifo шлях\n"
9733 "\n"
9734
9735 #. type: textblock
9736 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
9737 msgid ""
9738 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9739 "given C<path> name."
9740 msgstr ""
9741
9742 #. type: =head2
9743 #: ../fish/guestfish-actions.pod:2401
9744 msgid "is-file"
9745 msgstr "is-file"
9746
9747 #. type: verbatim
9748 #: ../fish/guestfish-actions.pod:2403
9749 #, no-wrap
9750 msgid ""
9751 " is-file path\n"
9752 "\n"
9753 msgstr ""
9754 " is-file шлях\n"
9755 "\n"
9756
9757 #. type: textblock
9758 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
9759 msgid ""
9760 "This returns C<true> if and only if there is a regular file with the given "
9761 "C<path> name.  Note that it returns false for other objects like directories."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:2411
9766 msgid "is-launching"
9767 msgstr "is-launching"
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:2413
9771 #, no-wrap
9772 msgid ""
9773 " is-launching\n"
9774 "\n"
9775 msgstr ""
9776 " is-launching\n"
9777 "\n"
9778
9779 #. type: textblock
9780 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
9781 msgid ""
9782 "This returns true iff this handle is launching the subprocess (in the "
9783 "C<LAUNCHING> state)."
9784 msgstr ""
9785
9786 #. type: =head2
9787 #: ../fish/guestfish-actions.pod:2420
9788 msgid "is-lv"
9789 msgstr "is-lv"
9790
9791 #. type: verbatim
9792 #: ../fish/guestfish-actions.pod:2422
9793 #, no-wrap
9794 msgid ""
9795 " is-lv device\n"
9796 "\n"
9797 msgstr ""
9798 " is-lv пристрій\n"
9799 "\n"
9800
9801 #. type: textblock
9802 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
9803 msgid ""
9804 "This command tests whether C<device> is a logical volume, and returns true "
9805 "iff this is the case."
9806 msgstr ""
9807
9808 #. type: =head2
9809 #: ../fish/guestfish-actions.pod:2427
9810 msgid "is-ready"
9811 msgstr "is-ready"
9812
9813 #. type: verbatim
9814 #: ../fish/guestfish-actions.pod:2429
9815 #, no-wrap
9816 msgid ""
9817 " is-ready\n"
9818 "\n"
9819 msgstr ""
9820 " is-ready\n"
9821 "\n"
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
9825 msgid ""
9826 "This returns true iff this handle is ready to accept commands (in the "
9827 "C<READY> state)."
9828 msgstr ""
9829
9830 #. type: =head2
9831 #: ../fish/guestfish-actions.pod:2436
9832 msgid "is-socket"
9833 msgstr "is-socket"
9834
9835 #. type: verbatim
9836 #: ../fish/guestfish-actions.pod:2438
9837 #, no-wrap
9838 msgid ""
9839 " is-socket path\n"
9840 "\n"
9841 msgstr ""
9842 " is-socket шлях\n"
9843 "\n"
9844
9845 #. type: textblock
9846 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
9847 msgid ""
9848 "This returns C<true> if and only if there is a Unix domain socket with the "
9849 "given C<path> name."
9850 msgstr ""
9851
9852 #. type: =head2
9853 #: ../fish/guestfish-actions.pod:2445
9854 msgid "is-symlink"
9855 msgstr "is-symlink"
9856
9857 #. type: verbatim
9858 #: ../fish/guestfish-actions.pod:2447
9859 #, no-wrap
9860 msgid ""
9861 " is-symlink path\n"
9862 "\n"
9863 msgstr ""
9864 " is-symlink шлях\n"
9865 "\n"
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
9869 msgid ""
9870 "This returns C<true> if and only if there is a symbolic link with the given "
9871 "C<path> name."
9872 msgstr ""
9873
9874 #. type: =head2
9875 #: ../fish/guestfish-actions.pod:2454
9876 msgid "is-zero"
9877 msgstr ""
9878
9879 #. type: verbatim
9880 #: ../fish/guestfish-actions.pod:2456
9881 #, no-wrap
9882 msgid ""
9883 " is-zero path\n"
9884 "\n"
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
9889 msgid ""
9890 "This returns true iff the file exists and the file is empty or it contains "
9891 "all zero bytes."
9892 msgstr ""
9893
9894 #. type: =head2
9895 #: ../fish/guestfish-actions.pod:2461
9896 msgid "is-zero-device"
9897 msgstr ""
9898
9899 #. type: verbatim
9900 #: ../fish/guestfish-actions.pod:2463
9901 #, no-wrap
9902 msgid ""
9903 " is-zero-device device\n"
9904 "\n"
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
9909 msgid "This returns true iff the device exists and contains all zero bytes."
9910 msgstr ""
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
9914 msgid "Note that for large devices this can take a long time to run."
9915 msgstr ""
9916
9917 #. type: =head2
9918 #: ../fish/guestfish-actions.pod:2469
9919 msgid "kill-subprocess"
9920 msgstr "kill-subprocess"
9921
9922 #. type: verbatim
9923 #: ../fish/guestfish-actions.pod:2471
9924 #, no-wrap
9925 msgid ""
9926 " kill-subprocess\n"
9927 "\n"
9928 msgstr ""
9929 " kill-subprocess\n"
9930 "\n"
9931
9932 #. type: textblock
9933 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
9934 msgid "This kills the qemu subprocess.  You should never need to call this."
9935 msgstr ""
9936
9937 #. type: =head2
9938 #: ../fish/guestfish-actions.pod:2475
9939 msgid "launch"
9940 msgstr "launch"
9941
9942 #. type: =head2
9943 #: ../fish/guestfish-actions.pod:2477
9944 msgid "run"
9945 msgstr ""
9946
9947 #. type: verbatim
9948 #: ../fish/guestfish-actions.pod:2479
9949 #, no-wrap
9950 msgid ""
9951 " launch\n"
9952 "\n"
9953 msgstr ""
9954 " launch\n"
9955 "\n"
9956
9957 #. type: textblock
9958 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
9959 msgid ""
9960 "Internally libguestfs is implemented by running a virtual machine using "
9961 "L<qemu(1)>."
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
9966 msgid ""
9967 "You should call this after configuring the handle (eg. adding drives) but "
9968 "before performing any actions."
9969 msgstr ""
9970
9971 #. type: =head2
9972 #: ../fish/guestfish-actions.pod:2487
9973 msgid "lchown"
9974 msgstr "lchown"
9975
9976 #. type: verbatim
9977 #: ../fish/guestfish-actions.pod:2489
9978 #, no-wrap
9979 msgid ""
9980 " lchown owner group path\n"
9981 "\n"
9982 msgstr ""
9983 " lchown власник група шлях\n"
9984 "\n"
9985
9986 #. type: textblock
9987 #: ../fish/guestfish-actions.pod:2491
9988 msgid ""
9989 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9990 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9991 "target."
9992 msgstr ""
9993
9994 #. type: =head2
9995 #: ../fish/guestfish-actions.pod:2499
9996 msgid "lgetxattr"
9997 msgstr "lgetxattr"
9998
9999 #. type: verbatim
10000 #: ../fish/guestfish-actions.pod:2501
10001 #, no-wrap
10002 msgid ""
10003 " lgetxattr path name\n"
10004 "\n"
10005 msgstr ""
10006 " lgetxattr шлях назва\n"
10007 "\n"
10008
10009 #. type: textblock
10010 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
10011 msgid ""
10012 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10013 "is a symlink, then this call returns an extended attribute from the symlink."
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:2517
10018 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10019 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10020
10021 #. type: =head2
10022 #: ../fish/guestfish-actions.pod:2519
10023 msgid "lgetxattrs"
10024 msgstr "lgetxattrs"
10025
10026 #. type: verbatim
10027 #: ../fish/guestfish-actions.pod:2521
10028 #, no-wrap
10029 msgid ""
10030 " lgetxattrs path\n"
10031 "\n"
10032 msgstr ""
10033 " lgetxattrs шлях\n"
10034 "\n"
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2523
10038 msgid ""
10039 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10040 "it returns the extended attributes of the link itself."
10041 msgstr ""
10042
10043 #. type: =head2
10044 #: ../fish/guestfish-actions.pod:2527
10045 msgid "list-9p"
10046 msgstr ""
10047
10048 #. type: verbatim
10049 #: ../fish/guestfish-actions.pod:2529
10050 #, no-wrap
10051 msgid ""
10052 " list-9p\n"
10053 "\n"
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
10058 msgid ""
10059 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10060 "returned."
10061 msgstr ""
10062
10063 #. type: =head2
10064 #: ../fish/guestfish-actions.pod:2534
10065 msgid "list-devices"
10066 msgstr "list-devices"
10067
10068 #. type: verbatim
10069 #: ../fish/guestfish-actions.pod:2536
10070 #, no-wrap
10071 msgid ""
10072 " list-devices\n"
10073 "\n"
10074 msgstr ""
10075 " list-devices\n"
10076 "\n"
10077
10078 #. type: textblock
10079 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
10080 msgid "List all the block devices."
10081 msgstr ""
10082
10083 #. type: textblock
10084 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
10085 msgid "The full block device names are returned, eg. C</dev/sda>."
10086 msgstr ""
10087
10088 #. type: =head2
10089 #: ../fish/guestfish-actions.pod:2544
10090 msgid "list-dm-devices"
10091 msgstr ""
10092
10093 #. type: verbatim
10094 #: ../fish/guestfish-actions.pod:2546
10095 #, no-wrap
10096 msgid ""
10097 " list-dm-devices\n"
10098 "\n"
10099 msgstr ""
10100
10101 #. type: textblock
10102 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
10103 msgid "List all device mapper devices."
10104 msgstr ""
10105
10106 #. type: textblock
10107 #: ../fish/guestfish-actions.pod:2550
10108 msgid ""
10109 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10110 "previous call to L</luks-open>."
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2553
10115 msgid ""
10116 "Device mapper devices which correspond to logical volumes are I<not> "
10117 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:2557
10122 msgid "list-filesystems"
10123 msgstr "list-filesystems"
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:2559
10127 #, no-wrap
10128 msgid ""
10129 " list-filesystems\n"
10130 "\n"
10131 msgstr ""
10132 " list-filesystems\n"
10133 "\n"
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
10137 msgid ""
10138 "This inspection command looks for filesystems on partitions, block devices "
10139 "and logical volumes, returning a list of devices containing filesystems and "
10140 "their type."
10141 msgstr ""
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
10145 msgid ""
10146 "The return value is a hash, where the keys are the devices containing "
10147 "filesystems, and the values are the filesystem types.  For example:"
10148 msgstr ""
10149
10150 #. type: verbatim
10151 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
10152 #, no-wrap
10153 msgid ""
10154 " \"/dev/sda1\" => \"ntfs\"\n"
10155 " \"/dev/sda2\" => \"ext2\"\n"
10156 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10157 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10158 "\n"
10159 msgstr ""
10160
10161 #. type: textblock
10162 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10163 msgid ""
10164 "The value can have the special value \"unknown\", meaning the content of the "
10165 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10166 msgstr ""
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2578
10170 msgid ""
10171 "This command runs other libguestfs commands, which might include L</mount> "
10172 "and L</umount>, and therefore you should use this soon after launch and only "
10173 "when nothing is mounted."
10174 msgstr ""
10175
10176 #. type: textblock
10177 #: ../fish/guestfish-actions.pod:2582
10178 msgid ""
10179 "Not all of the filesystems returned will be mountable.  In particular, swap "
10180 "partitions are returned in the list.  Also this command does not check that "
10181 "each filesystem found is valid and mountable, and some filesystems might be "
10182 "mountable but require special options.  Filesystems may not all belong to a "
10183 "single logical operating system (use L</inspect-os> to look for OSes)."
10184 msgstr ""
10185
10186 #. type: =head2
10187 #: ../fish/guestfish-actions.pod:2590
10188 msgid "list-partitions"
10189 msgstr "list-partitions"
10190
10191 #. type: verbatim
10192 #: ../fish/guestfish-actions.pod:2592
10193 #, no-wrap
10194 msgid ""
10195 " list-partitions\n"
10196 "\n"
10197 msgstr ""
10198 " list-partitions\n"
10199 "\n"
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
10203 msgid "List all the partitions detected on all block devices."
10204 msgstr ""
10205
10206 #. type: textblock
10207 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
10208 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:2598
10213 msgid ""
10214 "This does not return logical volumes.  For that you will need to call L</"
10215 "lvs>."
10216 msgstr ""
10217
10218 #. type: =head2
10219 #: ../fish/guestfish-actions.pod:2603
10220 msgid "ll"
10221 msgstr "ll"
10222
10223 #. type: verbatim
10224 #: ../fish/guestfish-actions.pod:2605
10225 #, no-wrap
10226 msgid ""
10227 " ll directory\n"
10228 "\n"
10229 msgstr ""
10230 " ll каталог\n"
10231 "\n"
10232
10233 #. type: textblock
10234 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
10235 msgid ""
10236 "List the files in C<directory> (relative to the root directory, there is no "
10237 "cwd) in the format of 'ls -la'."
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
10242 msgid ""
10243 "This command is mostly useful for interactive sessions.  It is I<not> "
10244 "intended that you try to parse the output string."
10245 msgstr ""
10246
10247 #. type: =head2
10248 #: ../fish/guestfish-actions.pod:2613
10249 msgid "ln"
10250 msgstr "ln"
10251
10252 #. type: verbatim
10253 #: ../fish/guestfish-actions.pod:2615
10254 #, no-wrap
10255 msgid ""
10256 " ln target linkname\n"
10257 "\n"
10258 msgstr ""
10259 " ln призначення назва_посилання\n"
10260 "\n"
10261
10262 #. type: textblock
10263 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
10264 msgid "This command creates a hard link using the C<ln> command."
10265 msgstr ""
10266
10267 #. type: =head2
10268 #: ../fish/guestfish-actions.pod:2619
10269 msgid "ln-f"
10270 msgstr "ln-f"
10271
10272 #. type: verbatim
10273 #: ../fish/guestfish-actions.pod:2621
10274 #, no-wrap
10275 msgid ""
10276 " ln-f target linkname\n"
10277 "\n"
10278 msgstr ""
10279 " ln-f призначення назва_посилання\n"
10280 "\n"
10281
10282 #. type: textblock
10283 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
10284 msgid ""
10285 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10286 "option removes the link (C<linkname>) if it exists already."
10287 msgstr ""
10288
10289 #. type: =head2
10290 #: ../fish/guestfish-actions.pod:2626
10291 msgid "ln-s"
10292 msgstr "ln-s"
10293
10294 #. type: verbatim
10295 #: ../fish/guestfish-actions.pod:2628
10296 #, no-wrap
10297 msgid ""
10298 " ln-s target linkname\n"
10299 "\n"
10300 msgstr ""
10301 " ln-s призначення назва_посилання\n"
10302 "\n"
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
10306 msgid "This command creates a symbolic link using the C<ln -s> command."
10307 msgstr ""
10308
10309 #. type: =head2
10310 #: ../fish/guestfish-actions.pod:2632
10311 msgid "ln-sf"
10312 msgstr "ln-sf"
10313
10314 #. type: verbatim
10315 #: ../fish/guestfish-actions.pod:2634
10316 #, no-wrap
10317 msgid ""
10318 " ln-sf target linkname\n"
10319 "\n"
10320 msgstr ""
10321 " ln-sf призначення назва_посилання\n"
10322 "\n"
10323
10324 #. type: textblock
10325 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
10326 msgid ""
10327 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10328 "option removes the link (C<linkname>) if it exists already."
10329 msgstr ""
10330
10331 #. type: =head2
10332 #: ../fish/guestfish-actions.pod:2639
10333 msgid "lremovexattr"
10334 msgstr "lremovexattr"
10335
10336 #. type: verbatim
10337 #: ../fish/guestfish-actions.pod:2641
10338 #, no-wrap
10339 msgid ""
10340 " lremovexattr xattr path\n"
10341 "\n"
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2643
10346 msgid ""
10347 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10348 "it removes an extended attribute of the link itself."
10349 msgstr ""
10350
10351 #. type: =head2
10352 #: ../fish/guestfish-actions.pod:2647
10353 msgid "ls"
10354 msgstr "ls"
10355
10356 #. type: verbatim
10357 #: ../fish/guestfish-actions.pod:2649
10358 #, no-wrap
10359 msgid ""
10360 " ls directory\n"
10361 "\n"
10362 msgstr ""
10363 " ls каталог\n"
10364 "\n"
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
10368 msgid ""
10369 "List the files in C<directory> (relative to the root directory, there is no "
10370 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10371 msgstr ""
10372
10373 #. type: textblock
10374 #: ../fish/guestfish-actions.pod:2655
10375 msgid ""
10376 "This command is mostly useful for interactive sessions.  Programs should "
10377 "probably use L</readdir> instead."
10378 msgstr ""
10379
10380 #. type: =head2
10381 #: ../fish/guestfish-actions.pod:2658
10382 msgid "lsetxattr"
10383 msgstr "lsetxattr"
10384
10385 #. type: verbatim
10386 #: ../fish/guestfish-actions.pod:2660
10387 #, no-wrap
10388 msgid ""
10389 " lsetxattr xattr val vallen path\n"
10390 "\n"
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2662
10395 msgid ""
10396 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10397 "sets an extended attribute of the link itself."
10398 msgstr ""
10399
10400 #. type: =head2
10401 #: ../fish/guestfish-actions.pod:2666
10402 msgid "lstat"
10403 msgstr "lstat"
10404
10405 #. type: verbatim
10406 #: ../fish/guestfish-actions.pod:2668
10407 #, no-wrap
10408 msgid ""
10409 " lstat path\n"
10410 "\n"
10411 msgstr ""
10412 " lstat шлях\n"
10413 "\n"
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478
10417 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
10418 msgid "Returns file information for the given C<path>."
10419 msgstr ""
10420
10421 #. type: textblock
10422 #: ../fish/guestfish-actions.pod:2672
10423 msgid ""
10424 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10425 "the link is stat-ed, not the file it refers to."
10426 msgstr ""
10427
10428 #. type: textblock
10429 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
10430 msgid "This is the same as the C<lstat(2)> system call."
10431 msgstr ""
10432
10433 #. type: =head2
10434 #: ../fish/guestfish-actions.pod:2678
10435 msgid "lstatlist"
10436 msgstr "lstatlist"
10437
10438 #. type: verbatim
10439 #: ../fish/guestfish-actions.pod:2680
10440 #, no-wrap
10441 msgid ""
10442 " lstatlist path 'names ...'\n"
10443 "\n"
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2682
10448 msgid ""
10449 "This call allows you to perform the L</lstat> operation on multiple files, "
10450 "where all files are in the directory C<path>.  C<names> is the list of files "
10451 "from this directory."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
10456 msgid ""
10457 "On return you get a list of stat structs, with a one-to-one correspondence "
10458 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10459 "then the C<ino> field of that structure is set to C<-1>."
10460 msgstr ""
10461
10462 #. type: textblock
10463 #: ../fish/guestfish-actions.pod:2691
10464 msgid ""
10465 "This call is intended for programs that want to efficiently list a directory "
10466 "contents without making many round-trips.  See also L</lxattrlist> for a "
10467 "similarly efficient call for getting extended attributes.  Very long "
10468 "directory listings might cause the protocol message size to be exceeded, "
10469 "causing this call to fail.  The caller must split up such requests into "
10470 "smaller groups of names."
10471 msgstr ""
10472
10473 #. type: =head2
10474 #: ../fish/guestfish-actions.pod:2699
10475 msgid "luks-add-key"
10476 msgstr "luks-add-key"
10477
10478 #. type: verbatim
10479 #: ../fish/guestfish-actions.pod:2701
10480 #, no-wrap
10481 msgid ""
10482 " luks-add-key device keyslot\n"
10483 "\n"
10484 msgstr ""
10485
10486 #. type: textblock
10487 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
10488 msgid ""
10489 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10490 "existing key, and is used to access the device.  C<newkey> is the new key to "
10491 "add.  C<keyslot> is the key slot that will be replaced."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2708
10496 msgid ""
10497 "Note that if C<keyslot> already contains a key, then this command will "
10498 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10499 msgstr ""
10500
10501 #. type: textblock
10502 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
10503 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
10504 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
10505 msgid ""
10506 "This command has one or more key or passphrase parameters.  Guestfish will "
10507 "prompt for these separately."
10508 msgstr ""
10509
10510 #. type: =head2
10511 #: ../fish/guestfish-actions.pod:2715
10512 msgid "luks-close"
10513 msgstr "luks-close"
10514
10515 #. type: verbatim
10516 #: ../fish/guestfish-actions.pod:2717
10517 #, no-wrap
10518 msgid ""
10519 " luks-close device\n"
10520 "\n"
10521 msgstr ""
10522 " luks-close пристрій\n"
10523 "\n"
10524
10525 #. type: textblock
10526 #: ../fish/guestfish-actions.pod:2719
10527 msgid ""
10528 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10529 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10530 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10531 "block device."
10532 msgstr ""
10533
10534 #. type: =head2
10535 #: ../fish/guestfish-actions.pod:2725
10536 msgid "luks-format"
10537 msgstr "luks-format"
10538
10539 #. type: verbatim
10540 #: ../fish/guestfish-actions.pod:2727
10541 #, no-wrap
10542 msgid ""
10543 " luks-format device keyslot\n"
10544 "\n"
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
10549 msgid ""
10550 "This command erases existing data on C<device> and formats the device as a "
10551 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10552 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750
10557 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498
10558 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349
10559 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
10560 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053
10561 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219
10562 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110
10563 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6575
10564 #: ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7799
10565 msgid ""
10566 "B<This command is dangerous.  Without careful use you can easily destroy all "
10567 "your data>."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2740
10572 msgid "luks-format-cipher"
10573 msgstr "luks-format-cipher"
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2742
10577 #, no-wrap
10578 msgid ""
10579 " luks-format-cipher device keyslot cipher\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2744
10585 msgid ""
10586 "This command is the same as L</luks-format> but it also allows you to set "
10587 "the C<cipher> used."
10588 msgstr ""
10589
10590 #. type: =head2
10591 #: ../fish/guestfish-actions.pod:2753
10592 msgid "luks-kill-slot"
10593 msgstr "luks-kill-slot"
10594
10595 #. type: verbatim
10596 #: ../fish/guestfish-actions.pod:2755
10597 #, no-wrap
10598 msgid ""
10599 " luks-kill-slot device keyslot\n"
10600 "\n"
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
10605 msgid ""
10606 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10607 "device C<device>.  C<key> must be one of the I<other> keys."
10608 msgstr ""
10609
10610 #. type: =head2
10611 #: ../fish/guestfish-actions.pod:2764
10612 msgid "luks-open"
10613 msgstr "luks-open"
10614
10615 #. type: verbatim
10616 #: ../fish/guestfish-actions.pod:2766
10617 #, no-wrap
10618 msgid ""
10619 " luks-open device mapname\n"
10620 "\n"
10621 msgstr ""
10622
10623 #. type: textblock
10624 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
10625 msgid ""
10626 "This command opens a block device which has been encrypted according to the "
10627 "Linux Unified Key Setup (LUKS) standard."
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
10632 msgid "C<device> is the encrypted block device or partition."
10633 msgstr ""
10634
10635 #. type: textblock
10636 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10637 msgid ""
10638 "The caller must supply one of the keys associated with the LUKS block "
10639 "device, in the C<key> parameter."
10640 msgstr ""
10641
10642 #. type: textblock
10643 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10644 msgid ""
10645 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10646 "writes to this block device are decrypted from and encrypted to the "
10647 "underlying C<device> respectively."
10648 msgstr ""
10649
10650 #. type: textblock
10651 #: ../fish/guestfish-actions.pod:2780
10652 msgid ""
10653 "If this block device contains LVM volume groups, then calling L</vgscan> "
10654 "followed by L</vg-activate-all> will make them visible."
10655 msgstr ""
10656
10657 #. type: textblock
10658 #: ../fish/guestfish-actions.pod:2784
10659 msgid "Use L</list-dm-devices> to list all device mapper devices."
10660 msgstr ""
10661
10662 #. type: =head2
10663 #: ../fish/guestfish-actions.pod:2790
10664 msgid "luks-open-ro"
10665 msgstr "luks-open-ro"
10666
10667 #. type: verbatim
10668 #: ../fish/guestfish-actions.pod:2792
10669 #, no-wrap
10670 msgid ""
10671 " luks-open-ro device mapname\n"
10672 "\n"
10673 msgstr ""
10674
10675 #. type: textblock
10676 #: ../fish/guestfish-actions.pod:2794
10677 msgid ""
10678 "This is the same as L</luks-open> except that a read-only mapping is created."
10679 msgstr ""
10680
10681 #. type: =head2
10682 #: ../fish/guestfish-actions.pod:2800
10683 msgid "lvcreate"
10684 msgstr "lvcreate"
10685
10686 #. type: verbatim
10687 #: ../fish/guestfish-actions.pod:2802
10688 #, no-wrap
10689 msgid ""
10690 " lvcreate logvol volgroup mbytes\n"
10691 "\n"
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
10696 msgid ""
10697 "This creates an LVM logical volume called C<logvol> on the volume group "
10698 "C<volgroup>, with C<size> megabytes."
10699 msgstr ""
10700
10701 #. type: =head2
10702 #: ../fish/guestfish-actions.pod:2807
10703 msgid "lvm-canonical-lv-name"
10704 msgstr "lvm-canonical-lv-name"
10705
10706 #. type: verbatim
10707 #: ../fish/guestfish-actions.pod:2809
10708 #, no-wrap
10709 msgid ""
10710 " lvm-canonical-lv-name lvname\n"
10711 "\n"
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
10716 msgid ""
10717 "This converts alternative naming schemes for LVs that you might find to the "
10718 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10719 "LV>."
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
10724 msgid ""
10725 "This command returns an error if the C<lvname> parameter does not refer to a "
10726 "logical volume."
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:2818
10731 msgid "See also L</is-lv>."
10732 msgstr "Див. також L</is-lv>."
10733
10734 #. type: =head2
10735 #: ../fish/guestfish-actions.pod:2820
10736 msgid "lvm-clear-filter"
10737 msgstr "lvm-clear-filter"
10738
10739 #. type: verbatim
10740 #: ../fish/guestfish-actions.pod:2822
10741 #, no-wrap
10742 msgid ""
10743 " lvm-clear-filter\n"
10744 "\n"
10745 msgstr ""
10746 " lvm-clear-filter\n"
10747 "\n"
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:2824
10751 msgid ""
10752 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10753 "block device."
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
10758 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
10759 msgid ""
10760 "This command also clears the LVM cache and performs a volume group scan."
10761 msgstr ""
10762
10763 #. type: =head2
10764 #: ../fish/guestfish-actions.pod:2830
10765 msgid "lvm-remove-all"
10766 msgstr "lvm-remove-all"
10767
10768 #. type: verbatim
10769 #: ../fish/guestfish-actions.pod:2832
10770 #, no-wrap
10771 msgid ""
10772 " lvm-remove-all\n"
10773 "\n"
10774 msgstr ""
10775 " lvm-remove-all\n"
10776 "\n"
10777
10778 #. type: textblock
10779 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
10780 msgid ""
10781 "This command removes all LVM logical volumes, volume groups and physical "
10782 "volumes."
10783 msgstr ""
10784
10785 #. type: =head2
10786 #: ../fish/guestfish-actions.pod:2840
10787 msgid "lvm-set-filter"
10788 msgstr "lvm-set-filter"
10789
10790 #. type: verbatim
10791 #: ../fish/guestfish-actions.pod:2842
10792 #, no-wrap
10793 msgid ""
10794 " lvm-set-filter 'devices ...'\n"
10795 "\n"
10796 msgstr ""
10797 " lvm-set-filter 'пристрої...'\n"
10798 "\n"
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
10802 msgid ""
10803 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10804 "block devices in the list C<devices>, and will ignore all other attached "
10805 "block devices."
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
10810 msgid ""
10811 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10812 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10813 "there are two types of duplication possible: either cloned PVs/VGs which "
10814 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10815 "same name.  In normal operation you cannot create this situation, but you "
10816 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10817 "inside the LVM metadata."
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
10822 msgid "You can filter whole block devices or individual partitions."
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
10827 msgid ""
10828 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10829 "filesystem), even if you are not filtering out that VG."
10830 msgstr ""
10831
10832 #. type: =head2
10833 #: ../fish/guestfish-actions.pod:2867
10834 msgid "lvremove"
10835 msgstr "lvremove"
10836
10837 #. type: verbatim
10838 #: ../fish/guestfish-actions.pod:2869
10839 #, no-wrap
10840 msgid ""
10841 " lvremove device\n"
10842 "\n"
10843 msgstr ""
10844 " lvremove пристрій\n"
10845 "\n"
10846
10847 #. type: textblock
10848 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
10849 msgid ""
10850 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10851 "LV, such as C</dev/VG/LV>."
10852 msgstr ""
10853
10854 #. type: textblock
10855 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
10856 msgid ""
10857 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10858 "dev/VG>."
10859 msgstr ""
10860
10861 #. type: =head2
10862 #: ../fish/guestfish-actions.pod:2877
10863 msgid "lvrename"
10864 msgstr "lvrename"
10865
10866 #. type: verbatim
10867 #: ../fish/guestfish-actions.pod:2879
10868 #, no-wrap
10869 msgid ""
10870 " lvrename logvol newlogvol\n"
10871 "\n"
10872 msgstr ""
10873
10874 #. type: textblock
10875 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
10876 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10877 msgstr ""
10878
10879 #. type: =head2
10880 #: ../fish/guestfish-actions.pod:2883
10881 msgid "lvresize"
10882 msgstr "lvresize"
10883
10884 #. type: verbatim
10885 #: ../fish/guestfish-actions.pod:2885
10886 #, no-wrap
10887 msgid ""
10888 " lvresize device mbytes\n"
10889 "\n"
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
10894 msgid ""
10895 "This resizes (expands or shrinks) an existing LVM logical volume to "
10896 "C<mbytes>.  When reducing, data in the reduced part is lost."
10897 msgstr ""
10898
10899 #. type: =head2
10900 #: ../fish/guestfish-actions.pod:2891
10901 msgid "lvresize-free"
10902 msgstr "lvresize-free"
10903
10904 #. type: verbatim
10905 #: ../fish/guestfish-actions.pod:2893
10906 #, no-wrap
10907 msgid ""
10908 " lvresize-free lv percent\n"
10909 "\n"
10910 msgstr ""
10911
10912 #. type: textblock
10913 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
10914 msgid ""
10915 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10916 "remaining free space in the volume group.  Commonly you would call this with "
10917 "pc = 100 which expands the logical volume as much as possible, using all "
10918 "remaining free space in the volume group."
10919 msgstr ""
10920
10921 #. type: =head2
10922 #: ../fish/guestfish-actions.pod:2901
10923 msgid "lvs"
10924 msgstr "lvs"
10925
10926 #. type: verbatim
10927 #: ../fish/guestfish-actions.pod:2903
10928 #, no-wrap
10929 msgid ""
10930 " lvs\n"
10931 "\n"
10932 msgstr ""
10933 " lvs\n"
10934 "\n"
10935
10936 #. type: textblock
10937 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
10938 msgid ""
10939 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10940 "(8)> command."
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
10945 msgid ""
10946 "This returns a list of the logical volume device names (eg. C</dev/"
10947 "VolGroup00/LogVol00>)."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2911
10952 msgid "See also L</lvs-full>, L</list-filesystems>."
10953 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10954
10955 #. type: =head2
10956 #: ../fish/guestfish-actions.pod:2913
10957 msgid "lvs-full"
10958 msgstr "lvs-full"
10959
10960 #. type: verbatim
10961 #: ../fish/guestfish-actions.pod:2915
10962 #, no-wrap
10963 msgid ""
10964 " lvs-full\n"
10965 "\n"
10966 msgstr ""
10967 " lvs-full\n"
10968 "\n"
10969
10970 #. type: textblock
10971 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
10972 msgid ""
10973 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10974 "(8)> command.  The \"full\" version includes all fields."
10975 msgstr ""
10976
10977 #. type: =head2
10978 #: ../fish/guestfish-actions.pod:2920
10979 msgid "lvuuid"
10980 msgstr "lvuuid"
10981
10982 #. type: verbatim
10983 #: ../fish/guestfish-actions.pod:2922
10984 #, no-wrap
10985 msgid ""
10986 " lvuuid device\n"
10987 "\n"
10988 msgstr ""
10989 " lvuuid пристрій\n"
10990 "\n"
10991
10992 #. type: textblock
10993 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
10994 msgid "This command returns the UUID of the LVM LV C<device>."
10995 msgstr ""
10996
10997 #. type: =head2
10998 #: ../fish/guestfish-actions.pod:2926
10999 msgid "lxattrlist"
11000 msgstr "lxattrlist"
11001
11002 #. type: verbatim
11003 #: ../fish/guestfish-actions.pod:2928
11004 #, no-wrap
11005 msgid ""
11006 " lxattrlist path 'names ...'\n"
11007 "\n"
11008 msgstr ""
11009
11010 #. type: textblock
11011 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
11012 msgid ""
11013 "This call allows you to get the extended attributes of multiple files, where "
11014 "all files are in the directory C<path>.  C<names> is the list of files from "
11015 "this directory."
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
11020 msgid ""
11021 "On return you get a flat list of xattr structs which must be interpreted "
11022 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11023 "C<attrval> in this struct is zero-length to indicate there was an error "
11024 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11025 "number (the number of following attributes for this file, which could be C<"
11026 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11027 "for the first named file.  This repeats for the second and subsequent files."
11028 msgstr ""
11029
11030 #. type: textblock
11031 #: ../fish/guestfish-actions.pod:2944
11032 msgid ""
11033 "This call is intended for programs that want to efficiently list a directory "
11034 "contents without making many round-trips.  See also L</lstatlist> for a "
11035 "similarly efficient call for getting standard stats.  Very long directory "
11036 "listings might cause the protocol message size to be exceeded, causing this "
11037 "call to fail.  The caller must split up such requests into smaller groups of "
11038 "names."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:2952
11043 msgid "mkdir"
11044 msgstr "mkdir"
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:2954
11048 #, no-wrap
11049 msgid ""
11050 " mkdir path\n"
11051 "\n"
11052 msgstr ""
11053 " mkdir шлях\n"
11054 "\n"
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
11058 msgid "Create a directory named C<path>."
11059 msgstr ""
11060
11061 #. type: =head2
11062 #: ../fish/guestfish-actions.pod:2958
11063 msgid "mkdir-mode"
11064 msgstr "mkdir-mode"
11065
11066 #. type: verbatim
11067 #: ../fish/guestfish-actions.pod:2960
11068 #, no-wrap
11069 msgid ""
11070 " mkdir-mode path mode\n"
11071 "\n"
11072 msgstr ""
11073 " mkdir-mode шлях режим\n"
11074 "\n"
11075
11076 #. type: textblock
11077 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
11078 msgid ""
11079 "This command creates a directory, setting the initial permissions of the "
11080 "directory to C<mode>."
11081 msgstr ""
11082
11083 #. type: textblock
11084 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
11085 msgid ""
11086 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11087 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11088 "other ways."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2969
11093 msgid "See also L</mkdir>, L</umask>"
11094 msgstr "Див. також L</mkdir>, L</umask>"
11095
11096 #. type: =head2
11097 #: ../fish/guestfish-actions.pod:2971
11098 msgid "mkdir-p"
11099 msgstr "mkdir-p"
11100
11101 #. type: verbatim
11102 #: ../fish/guestfish-actions.pod:2973
11103 #, no-wrap
11104 msgid ""
11105 " mkdir-p path\n"
11106 "\n"
11107 msgstr ""
11108 " mkdir-p шлях\n"
11109 "\n"
11110
11111 #. type: textblock
11112 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
11113 msgid ""
11114 "Create a directory named C<path>, creating any parent directories as "
11115 "necessary.  This is like the C<mkdir -p> shell command."
11116 msgstr ""
11117
11118 #. type: =head2
11119 #: ../fish/guestfish-actions.pod:2978
11120 msgid "mkdtemp"
11121 msgstr "mkdtemp"
11122
11123 #. type: verbatim
11124 #: ../fish/guestfish-actions.pod:2980
11125 #, no-wrap
11126 msgid ""
11127 " mkdtemp template\n"
11128 "\n"
11129 msgstr ""
11130 " mkdtemp шаблон\n"
11131 "\n"
11132
11133 #. type: textblock
11134 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
11135 msgid ""
11136 "This command creates a temporary directory.  The C<template> parameter "
11137 "should be a full pathname for the temporary directory name with the final "
11138 "six characters being \"XXXXXX\"."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11143 msgid ""
11144 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11145 "being suitable for Windows filesystems."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
11150 msgid "The name of the temporary directory that was created is returned."
11151 msgstr ""
11152
11153 #. type: textblock
11154 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
11155 msgid "The temporary directory is created with mode 0700 and is owned by root."
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
11160 msgid ""
11161 "The caller is responsible for deleting the temporary directory and its "
11162 "contents after use."
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
11167 msgid "See also: L<mkdtemp(3)>"
11168 msgstr ""
11169
11170 #. type: =head2
11171 #: ../fish/guestfish-actions.pod:3001
11172 msgid "mke2fs-J"
11173 msgstr "mke2fs-J"
11174
11175 #. type: verbatim
11176 #: ../fish/guestfish-actions.pod:3003
11177 #, no-wrap
11178 msgid ""
11179 " mke2fs-J fstype blocksize device journal\n"
11180 "\n"
11181 msgstr ""
11182
11183 #. type: textblock
11184 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
11185 msgid ""
11186 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11187 "C<journal>.  It is equivalent to the command:"
11188 msgstr ""
11189
11190 #. type: verbatim
11191 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
11192 #, no-wrap
11193 msgid ""
11194 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11195 "\n"
11196 msgstr ""
11197 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11198 "\n"
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:3011
11202 msgid "See also L</mke2journal>."
11203 msgstr "Див. також L</mke2journal>."
11204
11205 #. type: =head2
11206 #: ../fish/guestfish-actions.pod:3013
11207 msgid "mke2fs-JL"
11208 msgstr "mke2fs-JL"
11209
11210 #. type: verbatim
11211 #: ../fish/guestfish-actions.pod:3015
11212 #, no-wrap
11213 msgid ""
11214 " mke2fs-JL fstype blocksize device label\n"
11215 "\n"
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
11220 msgid ""
11221 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11222 "the journal labeled C<label>."
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:3020
11227 msgid "See also L</mke2journal-L>."
11228 msgstr "Див. також L</mke2journal-L>."
11229
11230 #. type: =head2
11231 #: ../fish/guestfish-actions.pod:3022
11232 msgid "mke2fs-JU"
11233 msgstr "mke2fs-JU"
11234
11235 #. type: verbatim
11236 #: ../fish/guestfish-actions.pod:3024
11237 #, no-wrap
11238 msgid ""
11239 " mke2fs-JU fstype blocksize device uuid\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
11245 msgid ""
11246 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11247 "the journal with UUID C<uuid>."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:3029
11252 msgid "See also L</mke2journal-U>."
11253 msgstr "Див. також L</mke2journal-U>."
11254
11255 #. type: =head2
11256 #: ../fish/guestfish-actions.pod:3031
11257 msgid "mke2journal"
11258 msgstr "mke2journal"
11259
11260 #. type: verbatim
11261 #: ../fish/guestfish-actions.pod:3033
11262 #, no-wrap
11263 msgid ""
11264 " mke2journal blocksize device\n"
11265 "\n"
11266 msgstr ""
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
11270 msgid ""
11271 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11272 "command:"
11273 msgstr ""
11274
11275 #. type: verbatim
11276 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
11277 #, no-wrap
11278 msgid ""
11279 " mke2fs -O journal_dev -b blocksize device\n"
11280 "\n"
11281 msgstr ""
11282
11283 #. type: =head2
11284 #: ../fish/guestfish-actions.pod:3040
11285 msgid "mke2journal-L"
11286 msgstr "mke2journal-L"
11287
11288 #. type: verbatim
11289 #: ../fish/guestfish-actions.pod:3042
11290 #, no-wrap
11291 msgid ""
11292 " mke2journal-L blocksize label device\n"
11293 "\n"
11294 msgstr ""
11295
11296 #. type: textblock
11297 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
11298 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11299 msgstr ""
11300
11301 #. type: =head2
11302 #: ../fish/guestfish-actions.pod:3046
11303 msgid "mke2journal-U"
11304 msgstr "mke2journal-U"
11305
11306 #. type: verbatim
11307 #: ../fish/guestfish-actions.pod:3048
11308 #, no-wrap
11309 msgid ""
11310 " mke2journal-U blocksize uuid device\n"
11311 "\n"
11312 msgstr ""
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
11316 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11317 msgstr ""
11318
11319 #. type: =head2
11320 #: ../fish/guestfish-actions.pod:3052
11321 msgid "mkfifo"
11322 msgstr "mkfifo"
11323
11324 #. type: verbatim
11325 #: ../fish/guestfish-actions.pod:3054
11326 #, no-wrap
11327 msgid ""
11328 " mkfifo mode path\n"
11329 "\n"
11330 msgstr ""
11331 " mkfifo режим шлях\n"
11332 "\n"
11333
11334 #. type: textblock
11335 #: ../fish/guestfish-actions.pod:3056
11336 msgid ""
11337 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11338 "is just a convenient wrapper around L</mknod>."
11339 msgstr ""
11340
11341 #. type: =head2
11342 #: ../fish/guestfish-actions.pod:3062
11343 msgid "mkfs"
11344 msgstr "mkfs"
11345
11346 #. type: verbatim
11347 #: ../fish/guestfish-actions.pod:3064
11348 #, no-wrap
11349 msgid ""
11350 " mkfs fstype device\n"
11351 "\n"
11352 msgstr ""
11353 " mkfs тип_файлової_системи пристрій\n"
11354 "\n"
11355
11356 #. type: textblock
11357 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
11358 msgid ""
11359 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11360 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11361 msgstr ""
11362
11363 #. type: =head2
11364 #: ../fish/guestfish-actions.pod:3070
11365 msgid "mkfs-b"
11366 msgstr "mkfs-b"
11367
11368 #. type: verbatim
11369 #: ../fish/guestfish-actions.pod:3072
11370 #, no-wrap
11371 msgid ""
11372 " mkfs-b fstype blocksize device\n"
11373 "\n"
11374 msgstr ""
11375
11376 #. type: textblock
11377 #: ../fish/guestfish-actions.pod:3074
11378 msgid ""
11379 "This call is similar to L</mkfs>, but it allows you to control the block "
11380 "size of the resulting filesystem.  Supported block sizes depend on the "
11381 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
11386 #: ../src/guestfs-actions.pod:4627 ../src/guestfs-actions.pod:4665
11387 msgid ""
11388 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11389 "cluster size."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3082
11394 msgid ""
11395 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11396 "instead."
11397 msgstr ""
11398
11399 #. type: =head2
11400 #: ../fish/guestfish-actions.pod:3089
11401 msgid "mkfs-opts"
11402 msgstr "mkfs-opts"
11403
11404 #. type: verbatim
11405 #: ../fish/guestfish-actions.pod:3091
11406 #, no-wrap
11407 msgid ""
11408 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11409 "\n"
11410 msgstr ""
11411
11412 #. type: textblock
11413 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
11414 msgid ""
11415 "This function creates a filesystem on C<device>.  The filesystem type is "
11416 "C<fstype>, for example C<ext3>."
11417 msgstr ""
11418
11419 #. type: =item
11420 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
11421 msgid "C<blocksize>"
11422 msgstr "C<blocksize>"
11423
11424 #. type: textblock
11425 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
11426 msgid ""
11427 "The filesystem block size.  Supported block sizes depend on the filesystem "
11428 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11429 "filesystems."
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
11434 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11435 msgstr ""
11436
11437 #. type: =item
11438 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
11439 msgid "C<features>"
11440 msgstr "C<features>"
11441
11442 #. type: textblock
11443 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
11444 msgid "This passes the I<-O> parameter to the external mkfs program."
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
11449 msgid ""
11450 "For certain filesystem types, this allows extra filesystem features to be "
11451 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
11456 msgid ""
11457 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11458 "type."
11459 msgstr ""
11460
11461 #. type: =item
11462 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
11463 msgid "C<inode>"
11464 msgstr ""
11465
11466 #. type: textblock
11467 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11468 msgid ""
11469 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11470 "sets the inode size (only for ext2/3/4 filesystems at present)."
11471 msgstr ""
11472
11473 #. type: =item
11474 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11475 msgid "C<sectorsize>"
11476 msgstr ""
11477
11478 #. type: textblock
11479 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11480 msgid ""
11481 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11482 "sets sector size for ufs filesystem."
11483 msgstr ""
11484
11485 #. type: =head2
11486 #: ../fish/guestfish-actions.pod:3136
11487 msgid "mkmountpoint"
11488 msgstr "mkmountpoint"
11489
11490 #. type: verbatim
11491 #: ../fish/guestfish-actions.pod:3138
11492 #, no-wrap
11493 msgid ""
11494 " mkmountpoint exemptpath\n"
11495 "\n"
11496 msgstr ""
11497
11498 #. type: textblock
11499 #: ../fish/guestfish-actions.pod:3140
11500 msgid ""
11501 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11502 "to create extra mountpoints before mounting the first filesystem."
11503 msgstr ""
11504
11505 #. type: textblock
11506 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
11507 msgid ""
11508 "These calls are I<only> necessary in some very limited circumstances, mainly "
11509 "the case where you want to mount a mix of unrelated and/or read-only "
11510 "filesystems together."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
11515 msgid ""
11516 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11517 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11518 "inside that.  You can unpack this as follows in guestfish:"
11519 msgstr ""
11520
11521 #. type: verbatim
11522 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11523 #, no-wrap
11524 msgid ""
11525 " add-ro Fedora-11-i686-Live.iso\n"
11526 " run\n"
11527 " mkmountpoint /cd\n"
11528 " mkmountpoint /sqsh\n"
11529 " mkmountpoint /ext3fs\n"
11530 " mount /dev/sda /cd\n"
11531 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11532 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11533 "\n"
11534 msgstr ""
11535 " add-ro Fedora-11-i686-Live.iso\n"
11536 " run\n"
11537 " mkmountpoint /cd\n"
11538 " mkmountpoint /sqsh\n"
11539 " mkmountpoint /ext3fs\n"
11540 " mount /dev/sda /cd\n"
11541 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11542 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11543 "\n"
11544
11545 #. type: textblock
11546 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
11547 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3164
11552 msgid ""
11553 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11554 "unexpected errors if you try to mix these calls.  It is safest to manually "
11555 "unmount filesystems and remove mountpoints after use."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3168
11560 msgid ""
11561 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11562 "for this to work for manual mountpoints, you must ensure that the innermost "
11563 "mountpoints have the longest pathnames, as in the example code above."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
11568 msgid ""
11569 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11570 msgstr ""
11571
11572 #. type: textblock
11573 #: ../fish/guestfish-actions.pod:3175
11574 msgid ""
11575 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11576 "L</umount-all> to be called when the handle is closed which can also trigger "
11577 "these issues."
11578 msgstr ""
11579
11580 #. type: =head2
11581 #: ../fish/guestfish-actions.pod:3179
11582 msgid "mknod"
11583 msgstr "mknod"
11584
11585 #. type: verbatim
11586 #: ../fish/guestfish-actions.pod:3181
11587 #, no-wrap
11588 msgid ""
11589 " mknod mode devmajor devminor path\n"
11590 "\n"
11591 msgstr ""
11592
11593 #. type: textblock
11594 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
11595 msgid ""
11596 "This call creates block or character special devices, or named pipes (FIFOs)."
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
11601 msgid ""
11602 "The C<mode> parameter should be the mode, using the standard constants.  "
11603 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11604 "used when creating block and character special devices."
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:3191
11609 msgid ""
11610 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11611 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11612 "regular file).  These constants are available in the standard Linux header "
11613 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11614 "wrappers around this command which bitwise OR in the appropriate constant "
11615 "for you."
11616 msgstr ""
11617
11618 #. type: =head2
11619 #: ../fish/guestfish-actions.pod:3201
11620 msgid "mknod-b"
11621 msgstr "mknod-b"
11622
11623 #. type: verbatim
11624 #: ../fish/guestfish-actions.pod:3203
11625 #, no-wrap
11626 msgid ""
11627 " mknod-b mode devmajor devminor path\n"
11628 "\n"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:3205
11633 msgid ""
11634 "This call creates a block device node called C<path> with mode C<mode> and "
11635 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11636 "wrapper around L</mknod>."
11637 msgstr ""
11638
11639 #. type: =head2
11640 #: ../fish/guestfish-actions.pod:3211
11641 msgid "mknod-c"
11642 msgstr "mknod-c"
11643
11644 #. type: verbatim
11645 #: ../fish/guestfish-actions.pod:3213
11646 #, no-wrap
11647 msgid ""
11648 " mknod-c mode devmajor devminor path\n"
11649 "\n"
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:3215
11654 msgid ""
11655 "This call creates a char device node called C<path> with mode C<mode> and "
11656 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11657 "wrapper around L</mknod>."
11658 msgstr ""
11659
11660 #. type: =head2
11661 #: ../fish/guestfish-actions.pod:3221
11662 msgid "mkswap"
11663 msgstr "mkswap"
11664
11665 #. type: verbatim
11666 #: ../fish/guestfish-actions.pod:3223
11667 #, no-wrap
11668 msgid ""
11669 " mkswap device\n"
11670 "\n"
11671 msgstr ""
11672 " mkswap пристрій\n"
11673 "\n"
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11677 msgid "Create a swap partition on C<device>."
11678 msgstr ""
11679
11680 #. type: =head2
11681 #: ../fish/guestfish-actions.pod:3227
11682 msgid "mkswap-L"
11683 msgstr "mkswap-L"
11684
11685 #. type: verbatim
11686 #: ../fish/guestfish-actions.pod:3229
11687 #, no-wrap
11688 msgid ""
11689 " mkswap-L label device\n"
11690 "\n"
11691 msgstr ""
11692 " mkswap-L мітка пристрій\n"
11693 "\n"
11694
11695 #. type: textblock
11696 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11697 msgid "Create a swap partition on C<device> with label C<label>."
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11702 msgid ""
11703 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11704 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11705 "or swap tools."
11706 msgstr ""
11707
11708 #. type: =head2
11709 #: ../fish/guestfish-actions.pod:3237
11710 msgid "mkswap-U"
11711 msgstr "mkswap-U"
11712
11713 #. type: verbatim
11714 #: ../fish/guestfish-actions.pod:3239
11715 #, no-wrap
11716 msgid ""
11717 " mkswap-U uuid device\n"
11718 "\n"
11719 msgstr ""
11720 " mkswap-U uuid пристрій\n"
11721 "\n"
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11725 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../fish/guestfish-actions.pod:3243
11730 msgid "mkswap-file"
11731 msgstr "mkswap-file"
11732
11733 #. type: verbatim
11734 #: ../fish/guestfish-actions.pod:3245
11735 #, no-wrap
11736 msgid ""
11737 " mkswap-file path\n"
11738 "\n"
11739 msgstr ""
11740 " mkswap-file шлях\n"
11741 "\n"
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11745 msgid "Create a swap file."
11746 msgstr "Створити файл резервної пам’яті."
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:3249
11750 msgid ""
11751 "This command just writes a swap file signature to an existing file.  To "
11752 "create the file itself, use something like L</fallocate>."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:3252
11757 msgid "modprobe"
11758 msgstr "modprobe"
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:3254
11762 #, no-wrap
11763 msgid ""
11764 " modprobe modulename\n"
11765 "\n"
11766 msgstr ""
11767 " modprobe назва_модуля\n"
11768 "\n"
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11772 msgid "This loads a kernel module in the appliance."
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11777 msgid ""
11778 "The kernel module must have been whitelisted when libguestfs was built (see "
11779 "C<appliance/kmod.whitelist.in> in the source)."
11780 msgstr ""
11781
11782 #. type: =head2
11783 #: ../fish/guestfish-actions.pod:3261
11784 msgid "mount"
11785 msgstr "mount"
11786
11787 #. type: verbatim
11788 #: ../fish/guestfish-actions.pod:3263
11789 #, no-wrap
11790 msgid ""
11791 " mount device mountpoint\n"
11792 "\n"
11793 msgstr ""
11794 " mount пристрій точка_монтування\n"
11795 "\n"
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4925
11799 msgid ""
11800 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11801 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11802 "those block devices contain partitions, they will have the usual names (eg. "
11803 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11804 msgstr ""
11805
11806 #. type: textblock
11807 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4931
11808 msgid ""
11809 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11810 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11811 "mounted on directories which already exist."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11816 msgid ""
11817 "The mounted filesystem is writable, if we have sufficient permissions on the "
11818 "underlying device."
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:3279
11823 msgid ""
11824 "B<Important note:> When you use this call, the filesystem options C<sync> "
11825 "and C<noatime> are set implicitly.  This was originally done because we "
11826 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11827 "very large negative performance impact and negligible effect on "
11828 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11829 "code that needs performance, and instead use L</mount-options> (use an empty "
11830 "string for the first parameter if you don't want any options)."
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:3289
11835 msgid ""
11836 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11837 "instead."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:3296
11842 msgid "mount-9p"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:3298
11847 #, no-wrap
11848 msgid ""
11849 " mount-9p mounttag mountpoint [options:..]\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11855 msgid ""
11856 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11857 "C<mountpoint>."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11862 msgid ""
11863 "If required, C<trans=virtio> will be automatically added to the options.  "
11864 "Any other options required can be passed in the optional C<options> "
11865 "parameter."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:3309
11870 msgid "mount-loop"
11871 msgstr "mount-loop"
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:3311
11875 #, no-wrap
11876 msgid ""
11877 " mount-loop file mountpoint\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11883 msgid ""
11884 "This command lets you mount C<file> (a filesystem image in a file) on a "
11885 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11886 "mountpoint>."
11887 msgstr ""
11888
11889 #. type: =head2
11890 #: ../fish/guestfish-actions.pod:3317
11891 msgid "mount-options"
11892 msgstr "mount-options"
11893
11894 #. type: verbatim
11895 #: ../fish/guestfish-actions.pod:3319
11896 #, no-wrap
11897 msgid ""
11898 " mount-options options device mountpoint\n"
11899 "\n"
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../fish/guestfish-actions.pod:3321
11904 msgid ""
11905 "This is the same as the L</mount> command, but it allows you to set the "
11906 "mount options as for the L<mount(8)> I<-o> flag."
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11911 msgid ""
11912 "If the C<options> parameter is an empty string, then no options are passed "
11913 "(all options default to whatever the filesystem uses)."
11914 msgstr ""
11915
11916 #. type: =head2
11917 #: ../fish/guestfish-actions.pod:3329
11918 msgid "mount-ro"
11919 msgstr "mount-ro"
11920
11921 #. type: verbatim
11922 #: ../fish/guestfish-actions.pod:3331
11923 #, no-wrap
11924 msgid ""
11925 " mount-ro device mountpoint\n"
11926 "\n"
11927 msgstr ""
11928 " mount-ro пристрій точка_монтування\n"
11929 "\n"
11930
11931 #. type: textblock
11932 #: ../fish/guestfish-actions.pod:3333
11933 msgid ""
11934 "This is the same as the L</mount> command, but it mounts the filesystem with "
11935 "the read-only (I<-o ro>) flag."
11936 msgstr ""
11937
11938 #. type: =head2
11939 #: ../fish/guestfish-actions.pod:3336
11940 msgid "mount-vfs"
11941 msgstr "mount-vfs"
11942
11943 #. type: verbatim
11944 #: ../fish/guestfish-actions.pod:3338
11945 #, no-wrap
11946 msgid ""
11947 " mount-vfs options vfstype device mountpoint\n"
11948 "\n"
11949 msgstr ""
11950
11951 #. type: textblock
11952 #: ../fish/guestfish-actions.pod:3340
11953 msgid ""
11954 "This is the same as the L</mount> command, but it allows you to set both the "
11955 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11956 msgstr ""
11957
11958 #. type: =head2
11959 #: ../fish/guestfish-actions.pod:3344
11960 msgid "mountpoints"
11961 msgstr "mountpoints"
11962
11963 #. type: verbatim
11964 #: ../fish/guestfish-actions.pod:3346
11965 #, no-wrap
11966 msgid ""
11967 " mountpoints\n"
11968 "\n"
11969 msgstr ""
11970 " mountpoints\n"
11971 "\n"
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:3348
11975 msgid ""
11976 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11977 "This one returns a hash table (map) of device name to directory where the "
11978 "device is mounted."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:3352
11983 msgid "mounts"
11984 msgstr "mounts"
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:3354
11988 #, no-wrap
11989 msgid ""
11990 " mounts\n"
11991 "\n"
11992 msgstr ""
11993 " mounts\n"
11994 "\n"
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11998 msgid ""
11999 "This returns the list of currently mounted filesystems.  It returns the list "
12000 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12001 msgstr ""
12002
12003 #. type: textblock
12004 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
12005 msgid "Some internal mounts are not shown."
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:3361
12010 msgid "See also: L</mountpoints>"
12011 msgstr "Див. також L</mountpoints>"
12012
12013 #. type: =head2
12014 #: ../fish/guestfish-actions.pod:3363
12015 msgid "mv"
12016 msgstr "mv"
12017
12018 #. type: verbatim
12019 #: ../fish/guestfish-actions.pod:3365
12020 #, no-wrap
12021 msgid ""
12022 " mv src dest\n"
12023 "\n"
12024 msgstr ""
12025 " mv джерело призначення\n"
12026 "\n"
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
12030 msgid ""
12031 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12032 "destination filename or destination directory."
12033 msgstr ""
12034
12035 #. type: =head2
12036 #: ../fish/guestfish-actions.pod:3370
12037 msgid "ntfs-3g-probe"
12038 msgstr "ntfs-3g-probe"
12039
12040 #. type: verbatim
12041 #: ../fish/guestfish-actions.pod:3372
12042 #, no-wrap
12043 msgid ""
12044 " ntfs-3g-probe true|false device\n"
12045 "\n"
12046 msgstr ""
12047
12048 #. type: textblock
12049 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
12050 msgid ""
12051 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12052 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12053 "write, and some cannot be mounted at all)."
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
12058 msgid ""
12059 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12060 "can be mounted read-write.  Set it to false if you want to test if the "
12061 "volume can be mounted read-only."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
12066 msgid ""
12067 "The return value is an integer which C<0> if the operation would succeed, or "
12068 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12069 msgstr ""
12070
12071 #. type: =head2
12072 #: ../fish/guestfish-actions.pod:3386
12073 msgid "ntfsresize"
12074 msgstr "ntfsresize"
12075
12076 #. type: verbatim
12077 #: ../fish/guestfish-actions.pod:3388
12078 #, no-wrap
12079 msgid ""
12080 " ntfsresize device\n"
12081 "\n"
12082 msgstr ""
12083 " ntfsresize пристрій\n"
12084 "\n"
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
12088 #: ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5186
12089 msgid ""
12090 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12091 "size of the underlying device."
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5157
12096 msgid ""
12097 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12098 "consistency check (for safety).  You have to boot into Windows to perform "
12099 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12100 "resize filesystems which have been marked in this way.  So in effect it is "
12101 "not possible to call ntfsresize multiple times on a single filesystem "
12102 "without booting into Windows between each resize."
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
12107 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5212
12108 msgid "See also L<ntfsresize(8)>."
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
12113 msgid ""
12114 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12115 "call instead."
12116 msgstr ""
12117
12118 #. type: =head2
12119 #: ../fish/guestfish-actions.pod:3410
12120 msgid "ntfsresize-opts"
12121 msgstr ""
12122
12123 #. type: verbatim
12124 #: ../fish/guestfish-actions.pod:3412
12125 #, no-wrap
12126 msgid ""
12127 " ntfsresize-opts device [size:..] [force:..]\n"
12128 "\n"
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
12133 msgid ""
12134 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12135 "resized to fit the container (eg. partition)."
12136 msgstr ""
12137
12138 #. type: =item
12139 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
12140 msgid "C<force>"
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12145 msgid ""
12146 "If this option is true, then force the resize of the filesystem even if the "
12147 "filesystem is marked as requiring a consistency check."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3431
12152 msgid ""
12153 "After the resize operation, the filesystem is always marked as requiring a "
12154 "consistency check (for safety).  You have to boot into Windows to perform "
12155 "this check and clear this condition.  If you I<don't> set the C<force> "
12156 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12157 "a single filesystem without booting into Windows between each resize."
12158 msgstr ""
12159
12160 #. type: =head2
12161 #: ../fish/guestfish-actions.pod:3444
12162 msgid "ntfsresize-size"
12163 msgstr "ntfsresize-size"
12164
12165 #. type: verbatim
12166 #: ../fish/guestfish-actions.pod:3446
12167 #, no-wrap
12168 msgid ""
12169 " ntfsresize-size device size\n"
12170 "\n"
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:3448
12175 msgid ""
12176 "This command is the same as L</ntfsresize> except that it allows you to "
12177 "specify the new size (in bytes) explicitly."
12178 msgstr ""
12179
12180 #. type: =head2
12181 #: ../fish/guestfish-actions.pod:3458
12182 msgid "part-add"
12183 msgstr "part-add"
12184
12185 #. type: verbatim
12186 #: ../fish/guestfish-actions.pod:3460
12187 #, no-wrap
12188 msgid ""
12189 " part-add device prlogex startsect endsect\n"
12190 "\n"
12191 msgstr ""
12192
12193 #. type: textblock
12194 #: ../fish/guestfish-actions.pod:3462
12195 msgid ""
12196 "This command adds a partition to C<device>.  If there is no partition table "
12197 "on the device, call L</part-init> first."
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
12202 msgid ""
12203 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12204 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12205 "C<logical>) and C<e> (or C<extended>) partition types."
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12210 msgid ""
12211 "C<startsect> and C<endsect> are the start and end of the partition in "
12212 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12213 "from the end of the disk (C<-1> is the last sector)."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3474
12218 msgid ""
12219 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12220 "part-disk> to do that."
12221 msgstr ""
12222
12223 #. type: =head2
12224 #: ../fish/guestfish-actions.pod:3477
12225 msgid "part-del"
12226 msgstr "part-del"
12227
12228 #. type: verbatim
12229 #: ../fish/guestfish-actions.pod:3479
12230 #, no-wrap
12231 msgid ""
12232 " part-del device partnum\n"
12233 "\n"
12234 msgstr ""
12235
12236 #. type: textblock
12237 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
12238 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12239 msgstr ""
12240
12241 #. type: textblock
12242 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
12243 msgid ""
12244 "Note that in the case of MBR partitioning, deleting an extended partition "
12245 "also deletes any logical partitions it contains."
12246 msgstr ""
12247
12248 #. type: =head2
12249 #: ../fish/guestfish-actions.pod:3487
12250 msgid "part-disk"
12251 msgstr "part-disk"
12252
12253 #. type: verbatim
12254 #: ../fish/guestfish-actions.pod:3489
12255 #, no-wrap
12256 msgid ""
12257 " part-disk device parttype\n"
12258 "\n"
12259 msgstr ""
12260 " part-disk пристрій тип_розділу\n"
12261 "\n"
12262
12263 #. type: textblock
12264 #: ../fish/guestfish-actions.pod:3491
12265 msgid ""
12266 "This command is simply a combination of L</part-init> followed by L</part-"
12267 "add> to create a single primary partition covering the whole disk."
12268 msgstr ""
12269
12270 #. type: textblock
12271 #: ../fish/guestfish-actions.pod:3495
12272 msgid ""
12273 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12274 "possible values are described in L</part-init>."
12275 msgstr ""
12276
12277 #. type: =head2
12278 #: ../fish/guestfish-actions.pod:3501
12279 msgid "part-get-bootable"
12280 msgstr "part-get-bootable"
12281
12282 #. type: verbatim
12283 #: ../fish/guestfish-actions.pod:3503
12284 #, no-wrap
12285 msgid ""
12286 " part-get-bootable device partnum\n"
12287 "\n"
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
12292 msgid ""
12293 "This command returns true if the partition C<partnum> on C<device> has the "
12294 "bootable flag set."
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3508
12299 msgid "See also L</part-set-bootable>."
12300 msgstr "Див. також L</part-set-bootable>."
12301
12302 #. type: =head2
12303 #: ../fish/guestfish-actions.pod:3510
12304 msgid "part-get-mbr-id"
12305 msgstr "part-get-mbr-id"
12306
12307 #. type: verbatim
12308 #: ../fish/guestfish-actions.pod:3512
12309 #, no-wrap
12310 msgid ""
12311 " part-get-mbr-id device partnum\n"
12312 "\n"
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
12317 msgid ""
12318 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12319 "partition C<partnum>."
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
12324 msgid ""
12325 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12326 "undefined results for other partition table types (see L</part-get-"
12327 "parttype>)."
12328 msgstr ""
12329
12330 #. type: =head2
12331 #: ../fish/guestfish-actions.pod:3521
12332 msgid "part-get-parttype"
12333 msgstr "part-get-parttype"
12334
12335 #. type: verbatim
12336 #: ../fish/guestfish-actions.pod:3523
12337 #, no-wrap
12338 msgid ""
12339 " part-get-parttype device\n"
12340 "\n"
12341 msgstr ""
12342 " part-get-parttype пристрій\n"
12343 "\n"
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
12347 msgid ""
12348 "This command examines the partition table on C<device> and returns the "
12349 "partition table type (format) being used."
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:3528
12354 msgid ""
12355 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12356 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12357 "possible, although unusual.  See L</part-init> for a full list."
12358 msgstr ""
12359
12360 #. type: =head2
12361 #: ../fish/guestfish-actions.pod:3533
12362 msgid "part-init"
12363 msgstr "part-init"
12364
12365 #. type: verbatim
12366 #: ../fish/guestfish-actions.pod:3535
12367 #, no-wrap
12368 msgid ""
12369 " part-init device parttype\n"
12370 "\n"
12371 msgstr ""
12372
12373 #. type: textblock
12374 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
12375 msgid ""
12376 "This creates an empty partition table on C<device> of one of the partition "
12377 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12378 "(for large disks)."
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3541
12383 msgid ""
12384 "Initially there are no partitions.  Following this, you should call L</part-"
12385 "add> for each partition required."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
12390 msgid "Possible values for C<parttype> are:"
12391 msgstr ""
12392
12393 #. type: =item
12394 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
12395 msgid "B<efi>"
12396 msgstr ""
12397
12398 #. type: =item
12399 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
12400 msgid "B<gpt>"
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
12405 msgid "Intel EFI / GPT partition table."
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
12410 msgid ""
12411 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12412 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12413 "the C<mbr> format."
12414 msgstr ""
12415
12416 #. type: =item
12417 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
12418 msgid "B<mbr>"
12419 msgstr ""
12420
12421 #. type: =item
12422 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
12423 msgid "B<msdos>"
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
12428 msgid ""
12429 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12430 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12431 "TB.  For large disks we recommend using C<gpt>."
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
12436 msgid ""
12437 "Other partition table types that may work but are not supported include:"
12438 msgstr ""
12439
12440 #. type: =item
12441 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12442 msgid "B<aix>"
12443 msgstr "B<aix>"
12444
12445 #. type: textblock
12446 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
12447 msgid "AIX disk labels."
12448 msgstr "Мітки дисків AIX."
12449
12450 #. type: =item
12451 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
12452 #, fuzzy
12453 #| msgid "B<amiga> | B<rdb>"
12454 msgid "B<amiga>"
12455 msgstr "B<amiga> | B<rdb>"
12456
12457 #. type: =item
12458 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
12459 msgid "B<rdb>"
12460 msgstr ""
12461
12462 #. type: textblock
12463 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
12464 msgid "Amiga \"Rigid Disk Block\" format."
12465 msgstr "Формат \"Rigid Disk Block\" Amiga."
12466
12467 #. type: =item
12468 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
12469 msgid "B<bsd>"
12470 msgstr "B<bsd>"
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
12474 msgid "BSD disk labels."
12475 msgstr "Мітки дисків BSD."
12476
12477 #. type: =item
12478 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
12479 msgid "B<dasd>"
12480 msgstr "B<dasd>"
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
12484 msgid "DASD, used on IBM mainframes."
12485 msgstr "DASD, використовувалися у мейнфреймах IBM."
12486
12487 #. type: =item
12488 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
12489 msgid "B<dvh>"
12490 msgstr "B<dvh>"
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
12494 msgid "MIPS/SGI volumes."
12495 msgstr "Томи MIPS/SGI."
12496
12497 #. type: =item
12498 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12499 msgid "B<mac>"
12500 msgstr "B<mac>"
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
12504 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12505 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12506
12507 #. type: =item
12508 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
12509 msgid "B<pc98>"
12510 msgstr "B<pc98>"
12511
12512 #. type: textblock
12513 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
12514 msgid "NEC PC-98 format, common in Japan apparently."
12515 msgstr "Формат NEC PC-98, поширений у Японії."
12516
12517 #. type: =item
12518 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
12519 msgid "B<sun>"
12520 msgstr "B<sun>"
12521
12522 #. type: textblock
12523 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
12524 msgid "Sun disk labels."
12525 msgstr "Мітки дисків Sun."
12526
12527 #. type: =head2
12528 #: ../fish/guestfish-actions.pod:3610
12529 msgid "part-list"
12530 msgstr "part-list"
12531
12532 #. type: verbatim
12533 #: ../fish/guestfish-actions.pod:3612
12534 #, no-wrap
12535 msgid ""
12536 " part-list device\n"
12537 "\n"
12538 msgstr ""
12539 " part-list device\n"
12540 "\n"
12541
12542 #. type: textblock
12543 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
12544 msgid ""
12545 "This command parses the partition table on C<device> and returns the list of "
12546 "partitions found."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
12551 msgid "The fields in the returned structure are:"
12552 msgstr ""
12553
12554 #. type: =item
12555 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
12556 msgid "B<part_num>"
12557 msgstr "B<part_num>"
12558
12559 #. type: textblock
12560 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
12561 msgid "Partition number, counting from 1."
12562 msgstr ""
12563
12564 #. type: =item
12565 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
12566 msgid "B<part_start>"
12567 msgstr "B<part_start>"
12568
12569 #. type: textblock
12570 #: ../fish/guestfish-actions.pod:3627
12571 msgid ""
12572 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12573 "the device's sector size, see L</blockdev-getss>."
12574 msgstr ""
12575
12576 #. type: =item
12577 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12578 msgid "B<part_end>"
12579 msgstr "B<part_end>"
12580
12581 #. type: textblock
12582 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
12583 msgid "End of the partition in bytes."
12584 msgstr ""
12585
12586 #. type: =item
12587 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
12588 msgid "B<part_size>"
12589 msgstr "B<part_size>"
12590
12591 #. type: textblock
12592 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
12593 msgid "Size of the partition in bytes."
12594 msgstr ""
12595
12596 #. type: =head2
12597 #: ../fish/guestfish-actions.pod:3640
12598 msgid "part-set-bootable"
12599 msgstr "part-set-bootable"
12600
12601 #. type: verbatim
12602 #: ../fish/guestfish-actions.pod:3642
12603 #, no-wrap
12604 msgid ""
12605 " part-set-bootable device partnum true|false\n"
12606 "\n"
12607 msgstr ""
12608
12609 #. type: textblock
12610 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
12611 msgid ""
12612 "This sets the bootable flag on partition numbered C<partnum> on device "
12613 "C<device>.  Note that partitions are numbered from 1."
12614 msgstr ""
12615
12616 #. type: textblock
12617 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
12618 msgid ""
12619 "The bootable flag is used by some operating systems (notably Windows) to "
12620 "determine which partition to boot from.  It is by no means universally "
12621 "recognized."
12622 msgstr ""
12623
12624 #. type: =head2
12625 #: ../fish/guestfish-actions.pod:3651
12626 msgid "part-set-mbr-id"
12627 msgstr "part-set-mbr-id"
12628
12629 #. type: verbatim
12630 #: ../fish/guestfish-actions.pod:3653
12631 #, no-wrap
12632 msgid ""
12633 " part-set-mbr-id device partnum idbyte\n"
12634 "\n"
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
12639 msgid ""
12640 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12641 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12642 "documentation are in fact hexadecimal numbers, but usually documented "
12643 "without any leading \"0x\" which might be confusing."
12644 msgstr ""
12645
12646 #. type: =head2
12647 #: ../fish/guestfish-actions.pod:3665
12648 msgid "part-set-name"
12649 msgstr "part-set-name"
12650
12651 #. type: verbatim
12652 #: ../fish/guestfish-actions.pod:3667
12653 #, no-wrap
12654 msgid ""
12655 " part-set-name device partnum name\n"
12656 "\n"
12657 msgstr ""
12658
12659 #. type: textblock
12660 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
12661 msgid ""
12662 "This sets the partition name on partition numbered C<partnum> on device "
12663 "C<device>.  Note that partitions are numbered from 1."
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
12668 msgid ""
12669 "The partition name can only be set on certain types of partition table.  "
12670 "This works on C<gpt> but not on C<mbr> partitions."
12671 msgstr ""
12672
12673 #. type: =head2
12674 #: ../fish/guestfish-actions.pod:3675
12675 msgid "part-to-dev"
12676 msgstr "part-to-dev"
12677
12678 #. type: verbatim
12679 #: ../fish/guestfish-actions.pod:3677
12680 #, no-wrap
12681 msgid ""
12682 " part-to-dev partition\n"
12683 "\n"
12684 msgstr ""
12685 " part-to-dev розділ\n"
12686 "\n"
12687
12688 #. type: textblock
12689 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
12690 msgid ""
12691 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12692 "partition number, returning the device name (eg. \"/dev/sdb\")."
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3683
12697 msgid ""
12698 "The named partition must exist, for example as a string returned from L</"
12699 "list-partitions>."
12700 msgstr ""
12701
12702 #. type: =head2
12703 #: ../fish/guestfish-actions.pod:3686
12704 msgid "ping-daemon"
12705 msgstr "ping-daemon"
12706
12707 #. type: verbatim
12708 #: ../fish/guestfish-actions.pod:3688
12709 #, no-wrap
12710 msgid ""
12711 " ping-daemon\n"
12712 "\n"
12713 msgstr ""
12714 " ping-daemon\n"
12715 "\n"
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
12719 msgid ""
12720 "This is a test probe into the guestfs daemon running inside the qemu "
12721 "subprocess.  Calling this function checks that the daemon responds to the "
12722 "ping message, without affecting the daemon or attached block device(s) in "
12723 "any other way."
12724 msgstr ""
12725
12726 #. type: =head2
12727 #: ../fish/guestfish-actions.pod:3695
12728 msgid "pread"
12729 msgstr "pread"
12730
12731 #. type: verbatim
12732 #: ../fish/guestfish-actions.pod:3697
12733 #, no-wrap
12734 msgid ""
12735 " pread path count offset\n"
12736 "\n"
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
12741 msgid ""
12742 "This command lets you read part of a file.  It reads C<count> bytes of the "
12743 "file, starting at C<offset>, from file C<path>."
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717
12748 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
12749 msgid ""
12750 "This may read fewer bytes than requested.  For further details see the "
12751 "L<pread(2)> system call."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../fish/guestfish-actions.pod:3705
12756 msgid "See also L</pwrite>, L</pread-device>."
12757 msgstr "Див. також L</pwrite>, L</pread-device>."
12758
12759 #. type: =head2
12760 #: ../fish/guestfish-actions.pod:3710
12761 msgid "pread-device"
12762 msgstr "pread-device"
12763
12764 #. type: verbatim
12765 #: ../fish/guestfish-actions.pod:3712
12766 #, no-wrap
12767 msgid ""
12768 " pread-device device count offset\n"
12769 "\n"
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
12774 msgid ""
12775 "This command lets you read part of a file.  It reads C<count> bytes of "
12776 "C<device>, starting at C<offset>."
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3720
12781 msgid "See also L</pread>."
12782 msgstr "Див. також L</pread>."
12783
12784 #. type: =head2
12785 #: ../fish/guestfish-actions.pod:3725
12786 msgid "pvcreate"
12787 msgstr "pvcreate"
12788
12789 #. type: verbatim
12790 #: ../fish/guestfish-actions.pod:3727
12791 #, no-wrap
12792 msgid ""
12793 " pvcreate device\n"
12794 "\n"
12795 msgstr ""
12796 " pvcreate пристрій\n"
12797 "\n"
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
12801 msgid ""
12802 "This creates an LVM physical volume on the named C<device>, where C<device> "
12803 "should usually be a partition name such as C</dev/sda1>."
12804 msgstr ""
12805
12806 #. type: =head2
12807 #: ../fish/guestfish-actions.pod:3733
12808 msgid "pvremove"
12809 msgstr "pvremove"
12810
12811 #. type: verbatim
12812 #: ../fish/guestfish-actions.pod:3735
12813 #, no-wrap
12814 msgid ""
12815 " pvremove device\n"
12816 "\n"
12817 msgstr ""
12818 " pvremove пристрій\n"
12819 "\n"
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
12823 msgid ""
12824 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12825 "it."
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
12830 msgid ""
12831 "The implementation uses the C<pvremove> command which refuses to wipe "
12832 "physical volumes that contain any volume groups, so you have to remove those "
12833 "first."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3744
12838 msgid "pvresize"
12839 msgstr "pvresize"
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3746
12843 #, no-wrap
12844 msgid ""
12845 " pvresize device\n"
12846 "\n"
12847 msgstr ""
12848 " pvresize пристрій\n"
12849 "\n"
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
12853 msgid ""
12854 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12855 "the new size of the underlying device."
12856 msgstr ""
12857
12858 #. type: =head2
12859 #: ../fish/guestfish-actions.pod:3751
12860 msgid "pvresize-size"
12861 msgstr "pvresize-size"
12862
12863 #. type: verbatim
12864 #: ../fish/guestfish-actions.pod:3753
12865 #, no-wrap
12866 msgid ""
12867 " pvresize-size device size\n"
12868 "\n"
12869 msgstr ""
12870
12871 #. type: textblock
12872 #: ../fish/guestfish-actions.pod:3755
12873 msgid ""
12874 "This command is the same as L</pvresize> except that it allows you to "
12875 "specify the new size (in bytes) explicitly."
12876 msgstr ""
12877
12878 #. type: =head2
12879 #: ../fish/guestfish-actions.pod:3758
12880 msgid "pvs"
12881 msgstr "pvs"
12882
12883 #. type: verbatim
12884 #: ../fish/guestfish-actions.pod:3760
12885 #, no-wrap
12886 msgid ""
12887 " pvs\n"
12888 "\n"
12889 msgstr ""
12890 " pvs\n"
12891 "\n"
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
12895 msgid ""
12896 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12897 "(8)> command."
12898 msgstr ""
12899
12900 #. type: textblock
12901 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
12902 msgid ""
12903 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12904 "sda2>)."
12905 msgstr ""
12906
12907 #. type: textblock
12908 #: ../fish/guestfish-actions.pod:3768
12909 msgid "See also L</pvs-full>."
12910 msgstr "Див. також L</pvs-full>."
12911
12912 #. type: =head2
12913 #: ../fish/guestfish-actions.pod:3770
12914 msgid "pvs-full"
12915 msgstr "pvs-full"
12916
12917 #. type: verbatim
12918 #: ../fish/guestfish-actions.pod:3772
12919 #, no-wrap
12920 msgid ""
12921 " pvs-full\n"
12922 "\n"
12923 msgstr ""
12924 " pvs-full\n"
12925 "\n"
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
12929 msgid ""
12930 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12931 "(8)> command.  The \"full\" version includes all fields."
12932 msgstr ""
12933
12934 #. type: =head2
12935 #: ../fish/guestfish-actions.pod:3777
12936 msgid "pvuuid"
12937 msgstr "pvuuid"
12938
12939 #. type: verbatim
12940 #: ../fish/guestfish-actions.pod:3779
12941 #, no-wrap
12942 msgid ""
12943 " pvuuid device\n"
12944 "\n"
12945 msgstr ""
12946 " pvuuid пристрій\n"
12947 "\n"
12948
12949 #. type: textblock
12950 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
12951 msgid "This command returns the UUID of the LVM PV C<device>."
12952 msgstr ""
12953
12954 #. type: =head2
12955 #: ../fish/guestfish-actions.pod:3783
12956 msgid "pwrite"
12957 msgstr "pwrite"
12958
12959 #. type: verbatim
12960 #: ../fish/guestfish-actions.pod:3785
12961 #, no-wrap
12962 msgid ""
12963 " pwrite path content offset\n"
12964 "\n"
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
12969 msgid ""
12970 "This command writes to part of a file.  It writes the data buffer C<content> "
12971 "to the file C<path> starting at offset C<offset>."
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
12976 msgid ""
12977 "This command implements the L<pwrite(2)> system call, and like that system "
12978 "call it may not write the full data requested.  The return value is the "
12979 "number of bytes that were actually written to the file.  This could even be "
12980 "0, although short writes are unlikely for regular files in ordinary "
12981 "circumstances."
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../fish/guestfish-actions.pod:3796
12986 msgid "See also L</pread>, L</pwrite-device>."
12987 msgstr "Див. також L</pread>, L</pwrite-device>."
12988
12989 #. type: =head2
12990 #: ../fish/guestfish-actions.pod:3801
12991 msgid "pwrite-device"
12992 msgstr "pwrite-device"
12993
12994 #. type: verbatim
12995 #: ../fish/guestfish-actions.pod:3803
12996 #, no-wrap
12997 msgid ""
12998 " pwrite-device device content offset\n"
12999 "\n"
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
13004 msgid ""
13005 "This command writes to part of a device.  It writes the data buffer "
13006 "C<content> to C<device> starting at offset C<offset>."
13007 msgstr ""
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
13011 msgid ""
13012 "This command implements the L<pwrite(2)> system call, and like that system "
13013 "call it may not write the full data requested (although short writes to disk "
13014 "devices and partitions are probably impossible with standard Linux kernels)."
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:3813
13019 msgid "See also L</pwrite>."
13020 msgstr "Див. також L</pwrite>."
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:3818
13024 msgid "read-file"
13025 msgstr "read-file"
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:3820
13029 #, no-wrap
13030 msgid ""
13031 " read-file path\n"
13032 "\n"
13033 msgstr ""
13034 " read-file шлях\n"
13035 "\n"
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
13039 msgid "This calls returns the contents of the file C<path> as a buffer."
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:3825
13044 msgid ""
13045 "Unlike L</cat>, this function can correctly handle files that contain "
13046 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13047 "is limited in the total size of file that can be handled."
13048 msgstr ""
13049
13050 #. type: =head2
13051 #: ../fish/guestfish-actions.pod:3833
13052 msgid "read-lines"
13053 msgstr "read-lines"
13054
13055 #. type: verbatim
13056 #: ../fish/guestfish-actions.pod:3835
13057 #, no-wrap
13058 msgid ""
13059 " read-lines path\n"
13060 "\n"
13061 msgstr ""
13062 " read-lines шлях\n"
13063 "\n"
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
13067 msgid ""
13068 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13069 "C<CRLF> character sequences are I<not> returned."
13070 msgstr ""
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:3842
13074 msgid ""
13075 "Note that this function cannot correctly handle binary files (specifically, "
13076 "files containing C<\\0> character which is treated as end of line).  For "
13077 "those you need to use the L</read-file> function which has a more complex "
13078 "interface."
13079 msgstr ""
13080
13081 #. type: =head2
13082 #: ../fish/guestfish-actions.pod:3847
13083 msgid "readdir"
13084 msgstr "readdir"
13085
13086 #. type: verbatim
13087 #: ../fish/guestfish-actions.pod:3849
13088 #, no-wrap
13089 msgid ""
13090 " readdir dir\n"
13091 "\n"
13092 msgstr ""
13093 " readdir каталог\n"
13094 "\n"
13095
13096 #. type: textblock
13097 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
13098 msgid "This returns the list of directory entries in directory C<dir>."
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
13103 msgid ""
13104 "All entries in the directory are returned, including C<.> and C<..>.  The "
13105 "entries are I<not> sorted, but returned in the same order as the underlying "
13106 "filesystem."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
13111 msgid ""
13112 "Also this call returns basic file type information about each file.  The "
13113 "C<ftyp> field will contain one of the following characters:"
13114 msgstr ""
13115
13116 #. type: =item
13117 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13118 msgid "'b'"
13119 msgstr "'b'"
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
13123 msgid "Block special"
13124 msgstr "Блоковий особливий"
13125
13126 #. type: =item
13127 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
13128 msgid "'c'"
13129 msgstr "'c'"
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
13133 msgid "Char special"
13134 msgstr "Символьний особливий"
13135
13136 #. type: =item
13137 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
13138 msgid "'d'"
13139 msgstr "'d'"
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
13143 msgid "Directory"
13144 msgstr "Каталог"
13145
13146 #. type: =item
13147 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
13148 msgid "'f'"
13149 msgstr "'f'"
13150
13151 #. type: textblock
13152 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
13153 msgid "FIFO (named pipe)"
13154 msgstr "FIFO (іменований канал)"
13155
13156 #. type: =item
13157 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13158 msgid "'l'"
13159 msgstr "'l'"
13160
13161 #. type: textblock
13162 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13163 msgid "Symbolic link"
13164 msgstr "Символічне посилання"
13165
13166 #. type: =item
13167 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
13168 msgid "'r'"
13169 msgstr "'r'"
13170
13171 #. type: textblock
13172 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13173 msgid "Regular file"
13174 msgstr "Звичайний файл"
13175
13176 #. type: =item
13177 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
13178 msgid "'s'"
13179 msgstr "'s'"
13180
13181 #. type: textblock
13182 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
13183 msgid "Socket"
13184 msgstr "Сокет"
13185
13186 #. type: =item
13187 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
13188 msgid "'u'"
13189 msgstr "'u'"
13190
13191 #. type: textblock
13192 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
13193 msgid "Unknown file type"
13194 msgstr "Невідомий тип файла"
13195
13196 #. type: =item
13197 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
13198 msgid "'?'"
13199 msgstr ""
13200
13201 #. type: textblock
13202 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
13203 msgid ""
13204 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3901
13209 msgid ""
13210 "This function is primarily intended for use by programs.  To get a simple "
13211 "list of names, use L</ls>.  To get a printable directory for human "
13212 "consumption, use L</ll>."
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:3905
13217 msgid "readlink"
13218 msgstr "readlink"
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:3907
13222 #, no-wrap
13223 msgid ""
13224 " readlink path\n"
13225 "\n"
13226 msgstr ""
13227 " readlink шлях\n"
13228 "\n"
13229
13230 #. type: textblock
13231 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
13232 msgid "This command reads the target of a symbolic link."
13233 msgstr ""
13234
13235 #. type: =head2
13236 #: ../fish/guestfish-actions.pod:3911
13237 msgid "readlinklist"
13238 msgstr "readlinklist"
13239
13240 #. type: verbatim
13241 #: ../fish/guestfish-actions.pod:3913
13242 #, no-wrap
13243 msgid ""
13244 " readlinklist path 'names ...'\n"
13245 "\n"
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
13250 msgid ""
13251 "This call allows you to do a C<readlink> operation on multiple files, where "
13252 "all files are in the directory C<path>.  C<names> is the list of files from "
13253 "this directory."
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
13258 msgid ""
13259 "On return you get a list of strings, with a one-to-one correspondence to the "
13260 "C<names> list.  Each string is the value of the symbolic link."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
13265 msgid ""
13266 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13267 "result string is the empty string C<\"\">.  However the whole operation is "
13268 "completed even if there were C<readlink(2)> errors, and so you can call this "
13269 "function with names where you don't know if they are symbolic links already "
13270 "(albeit slightly less efficient)."
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
13275 msgid ""
13276 "This call is intended for programs that want to efficiently list a directory "
13277 "contents without making many round-trips.  Very long directory listings "
13278 "might cause the protocol message size to be exceeded, causing this call to "
13279 "fail.  The caller must split up such requests into smaller groups of names."
13280 msgstr ""
13281
13282 #. type: =head2
13283 #: ../fish/guestfish-actions.pod:3937
13284 msgid "realpath"
13285 msgstr "realpath"
13286
13287 #. type: verbatim
13288 #: ../fish/guestfish-actions.pod:3939
13289 #, no-wrap
13290 msgid ""
13291 " realpath path\n"
13292 "\n"
13293 msgstr ""
13294 " realpath шлях\n"
13295 "\n"
13296
13297 #. type: textblock
13298 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
13299 msgid ""
13300 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13301 "has no C<.>, C<..> or symbolic link path elements."
13302 msgstr ""
13303
13304 #. type: =head2
13305 #: ../fish/guestfish-actions.pod:3944
13306 msgid "removexattr"
13307 msgstr "removexattr"
13308
13309 #. type: verbatim
13310 #: ../fish/guestfish-actions.pod:3946
13311 #, no-wrap
13312 msgid ""
13313 " removexattr xattr path\n"
13314 "\n"
13315 msgstr ""
13316
13317 #. type: textblock
13318 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
13319 msgid ""
13320 "This call removes the extended attribute named C<xattr> of the file C<path>."
13321 msgstr ""
13322
13323 #. type: textblock
13324 #: ../fish/guestfish-actions.pod:3951
13325 msgid "See also: L</lremovexattr>, L<attr(5)>."
13326 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13327
13328 #. type: =head2
13329 #: ../fish/guestfish-actions.pod:3953
13330 msgid "resize2fs"
13331 msgstr "resize2fs"
13332
13333 #. type: verbatim
13334 #: ../fish/guestfish-actions.pod:3955
13335 #, no-wrap
13336 msgid ""
13337 " resize2fs device\n"
13338 "\n"
13339 msgstr ""
13340 " resize2fs пристрій\n"
13341 "\n"
13342
13343 #. type: textblock
13344 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
13345 msgid ""
13346 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13347 "underlying device."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3960
13352 msgid ""
13353 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13354 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13355 "gives an error about this and sometimes not.  In any case, it is always safe "
13356 "to call L</e2fsck-f> before calling this function."
13357 msgstr ""
13358
13359 #. type: =head2
13360 #: ../fish/guestfish-actions.pod:3966
13361 msgid "resize2fs-M"
13362 msgstr "resize2fs-M"
13363
13364 #. type: verbatim
13365 #: ../fish/guestfish-actions.pod:3968
13366 #, no-wrap
13367 msgid ""
13368 " resize2fs-M device\n"
13369 "\n"
13370 msgstr ""
13371 " resize2fs-M пристрій\n"
13372 "\n"
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:3970
13376 msgid ""
13377 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13378 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13379 "command."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3974
13384 msgid ""
13385 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13386 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13387 "multiplied together, give the resulting size of the minimal filesystem in "
13388 "bytes."
13389 msgstr ""
13390
13391 #. type: =head2
13392 #: ../fish/guestfish-actions.pod:3979
13393 msgid "resize2fs-size"
13394 msgstr "resize2fs-size"
13395
13396 #. type: verbatim
13397 #: ../fish/guestfish-actions.pod:3981
13398 #, no-wrap
13399 msgid ""
13400 " resize2fs-size device size\n"
13401 "\n"
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../fish/guestfish-actions.pod:3983
13406 msgid ""
13407 "This command is the same as L</resize2fs> except that it allows you to "
13408 "specify the new size (in bytes) explicitly."
13409 msgstr ""
13410
13411 #. type: =head2
13412 #: ../fish/guestfish-actions.pod:3986
13413 msgid "rm"
13414 msgstr "rm"
13415
13416 #. type: verbatim
13417 #: ../fish/guestfish-actions.pod:3988
13418 #, no-wrap
13419 msgid ""
13420 " rm path\n"
13421 "\n"
13422 msgstr ""
13423 " rm шлях\n"
13424 "\n"
13425
13426 #. type: textblock
13427 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
13428 msgid "Remove the single file C<path>."
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:3992
13433 msgid "rm-rf"
13434 msgstr "rm-rf"
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:3994
13438 #, no-wrap
13439 msgid ""
13440 " rm-rf path\n"
13441 "\n"
13442 msgstr ""
13443 " rm-rf шлях\n"
13444 "\n"
13445
13446 #. type: textblock
13447 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
13448 msgid ""
13449 "Remove the file or directory C<path>, recursively removing the contents if "
13450 "its a directory.  This is like the C<rm -rf> shell command."
13451 msgstr ""
13452
13453 #. type: =head2
13454 #: ../fish/guestfish-actions.pod:4000
13455 msgid "rmdir"
13456 msgstr "rmdir"
13457
13458 #. type: verbatim
13459 #: ../fish/guestfish-actions.pod:4002
13460 #, no-wrap
13461 msgid ""
13462 " rmdir path\n"
13463 "\n"
13464 msgstr ""
13465 " rmdir шлях\n"
13466 "\n"
13467
13468 #. type: textblock
13469 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
13470 msgid "Remove the single directory C<path>."
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:4006
13475 msgid "rmmountpoint"
13476 msgstr "rmmountpoint"
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:4008
13480 #, no-wrap
13481 msgid ""
13482 " rmmountpoint exemptpath\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:4010
13488 msgid ""
13489 "This calls removes a mountpoint that was previously created with L</"
13490 "mkmountpoint>.  See L</mkmountpoint> for full details."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:4014
13495 msgid "scrub-device"
13496 msgstr "scrub-device"
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:4016
13500 #, no-wrap
13501 msgid ""
13502 " scrub-device device\n"
13503 "\n"
13504 msgstr ""
13505 " scrub-device пристрій\n"
13506 "\n"
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
13510 msgid ""
13511 "This command writes patterns over C<device> to make data retrieval more "
13512 "difficult."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
13517 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105
13518 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
13519 msgid ""
13520 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13521 "more details."
13522 msgstr ""
13523
13524 #. type: =head2
13525 #: ../fish/guestfish-actions.pod:4027
13526 msgid "scrub-file"
13527 msgstr "scrub-file"
13528
13529 #. type: verbatim
13530 #: ../fish/guestfish-actions.pod:4029
13531 #, no-wrap
13532 msgid ""
13533 " scrub-file file\n"
13534 "\n"
13535 msgstr ""
13536 " scrub-file файл\n"
13537 "\n"
13538
13539 #. type: textblock
13540 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
13541 msgid ""
13542 "This command writes patterns over a file to make data retrieval more "
13543 "difficult."
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
13548 msgid "The file is I<removed> after scrubbing."
13549 msgstr ""
13550
13551 #. type: =head2
13552 #: ../fish/guestfish-actions.pod:4039
13553 msgid "scrub-freespace"
13554 msgstr "scrub-freespace"
13555
13556 #. type: verbatim
13557 #: ../fish/guestfish-actions.pod:4041
13558 #, no-wrap
13559 msgid ""
13560 " scrub-freespace dir\n"
13561 "\n"
13562 msgstr ""
13563 " scrub-freespace каталог\n"
13564 "\n"
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:4043
13568 msgid ""
13569 "This command creates the directory C<dir> and then fills it with files until "
13570 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13571 "deletes them.  The intention is to scrub any free space on the partition "
13572 "containing C<dir>."
13573 msgstr ""
13574
13575 #. type: =head2
13576 #: ../fish/guestfish-actions.pod:4052
13577 msgid "set-append"
13578 msgstr "set-append"
13579
13580 #. type: =head2
13581 #: ../fish/guestfish-actions.pod:4054
13582 msgid "append"
13583 msgstr ""
13584
13585 #. type: verbatim
13586 #: ../fish/guestfish-actions.pod:4056
13587 #, no-wrap
13588 msgid ""
13589 " set-append append\n"
13590 "\n"
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
13595 msgid ""
13596 "This function is used to add additional options to the guest kernel command "
13597 "line."
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
13602 msgid ""
13603 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13604 "environment variable."
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
13609 msgid ""
13610 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13611 "(libguestfs always adds a few of its own)."
13612 msgstr ""
13613
13614 #. type: =head2
13615 #: ../fish/guestfish-actions.pod:4067
13616 msgid "set-attach-method"
13617 msgstr "set-attach-method"
13618
13619 #. type: =head2
13620 #: ../fish/guestfish-actions.pod:4069
13621 msgid "attach-method"
13622 msgstr ""
13623
13624 #. type: verbatim
13625 #: ../fish/guestfish-actions.pod:4071
13626 #, no-wrap
13627 msgid ""
13628 " set-attach-method attachmethod\n"
13629 "\n"
13630 msgstr ""
13631
13632 #. type: textblock
13633 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
13634 msgid ""
13635 "Set the method that libguestfs uses to connect to the back end guestfsd "
13636 "daemon.  Possible methods are:"
13637 msgstr ""
13638
13639 #. type: =item
13640 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13641 #: ../src/guestfs.pod:2688
13642 msgid "C<appliance>"
13643 msgstr "C<appliance>"
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
13647 msgid ""
13648 "Launch an appliance and connect to it.  This is the ordinary method and the "
13649 "default."
13650 msgstr ""
13651
13652 #. type: =item
13653 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13654 msgid "C<unix:I<path>>"
13655 msgstr "C<unix:I<шлях>>"
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13659 msgid "Connect to the Unix domain socket I<path>."
13660 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
13664 msgid ""
13665 "This method lets you connect to an existing daemon or (using virtio-serial) "
13666 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13667 "RUNNING DAEMONS>."
13668 msgstr ""
13669
13670 #. type: =head2
13671 #: ../fish/guestfish-actions.pod:4093
13672 msgid "set-autosync"
13673 msgstr "set-autosync"
13674
13675 #. type: =head2
13676 #: ../fish/guestfish-actions.pod:4095
13677 msgid "autosync"
13678 msgstr "autosync"
13679
13680 #. type: verbatim
13681 #: ../fish/guestfish-actions.pod:4097
13682 #, no-wrap
13683 msgid ""
13684 " set-autosync true|false\n"
13685 "\n"
13686 msgstr ""
13687 " set-autosync true|false\n"
13688 "\n"
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
13692 msgid ""
13693 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13694 "effort attempt to make filesystems consistent and synchronized when the "
13695 "handle is closed (also if the program exits without closing handles)."
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13700 msgid ""
13701 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13702 "disabled by default)."
13703 msgstr ""
13704
13705 #. type: =head2
13706 #: ../fish/guestfish-actions.pod:4107
13707 msgid "set-direct"
13708 msgstr "set-direct"
13709
13710 #. type: =head2
13711 #: ../fish/guestfish-actions.pod:4109
13712 msgid "direct"
13713 msgstr "direct"
13714
13715 #. type: verbatim
13716 #: ../fish/guestfish-actions.pod:4111
13717 #, no-wrap
13718 msgid ""
13719 " set-direct true|false\n"
13720 "\n"
13721 msgstr ""
13722 " set-direct true|false\n"
13723 "\n"
13724
13725 #. type: textblock
13726 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
13727 msgid ""
13728 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13729 "passed directly through to the appliance once it is launched."
13730 msgstr ""
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:4117
13734 msgid ""
13735 "One consequence of this is that log messages aren't caught by the library "
13736 "and handled by L</set-log-message-callback>, but go straight to stdout."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
13741 msgid "You probably don't want to use this unless you know what you are doing."
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
13746 msgid "The default is disabled."
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4126
13751 msgid "set-e2label"
13752 msgstr "set-e2label"
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4128
13756 #, no-wrap
13757 msgid ""
13758 " set-e2label device label\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
13764 msgid ""
13765 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13766 "C<label>.  Filesystem labels are limited to 16 characters."
13767 msgstr ""
13768
13769 #. type: textblock
13770 #: ../fish/guestfish-actions.pod:4134
13771 msgid ""
13772 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13773 "label on a filesystem."
13774 msgstr ""
13775
13776 #. type: =head2
13777 #: ../fish/guestfish-actions.pod:4137
13778 msgid "set-e2uuid"
13779 msgstr "set-e2uuid"
13780
13781 #. type: verbatim
13782 #: ../fish/guestfish-actions.pod:4139
13783 #, no-wrap
13784 msgid ""
13785 " set-e2uuid device uuid\n"
13786 "\n"
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
13791 msgid ""
13792 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13793 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13794 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13795 msgstr ""
13796
13797 #. type: textblock
13798 #: ../fish/guestfish-actions.pod:4146
13799 msgid ""
13800 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13801 "UUID of a filesystem."
13802 msgstr ""
13803
13804 #. type: =head2
13805 #: ../fish/guestfish-actions.pod:4149
13806 msgid "set-memsize"
13807 msgstr "set-memsize"
13808
13809 #. type: =head2
13810 #: ../fish/guestfish-actions.pod:4151
13811 msgid "memsize"
13812 msgstr ""
13813
13814 #. type: verbatim
13815 #: ../fish/guestfish-actions.pod:4153
13816 #, no-wrap
13817 msgid ""
13818 " set-memsize memsize\n"
13819 "\n"
13820 msgstr ""
13821
13822 #. type: textblock
13823 #: ../fish/guestfish-actions.pod:4155
13824 msgid ""
13825 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13826 "This only has any effect if called before L</launch>."
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
13831 msgid ""
13832 "You can also change this by setting the environment variable "
13833 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13834 msgstr ""
13835
13836 #. type: =head2
13837 #: ../fish/guestfish-actions.pod:4166
13838 msgid "set-network"
13839 msgstr "set-network"
13840
13841 #. type: =head2
13842 #: ../fish/guestfish-actions.pod:4168
13843 msgid "network"
13844 msgstr "network"
13845
13846 #. type: verbatim
13847 #: ../fish/guestfish-actions.pod:4170
13848 #, no-wrap
13849 msgid ""
13850 " set-network true|false\n"
13851 "\n"
13852 msgstr ""
13853 " set-network true|false\n"
13854 "\n"
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
13858 msgid ""
13859 "If C<network> is true, then the network is enabled in the libguestfs "
13860 "appliance.  The default is false."
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
13865 msgid ""
13866 "This affects whether commands are able to access the network (see L<guestfs"
13867 "(3)/RUNNING COMMANDS>)."
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:4178
13872 msgid ""
13873 "You must call this before calling L</launch>, otherwise it has no effect."
13874 msgstr ""
13875
13876 #. type: =head2
13877 #: ../fish/guestfish-actions.pod:4181
13878 msgid "set-path"
13879 msgstr "set-path"
13880
13881 #. type: verbatim
13882 #: ../fish/guestfish-actions.pod:4185
13883 #, no-wrap
13884 msgid ""
13885 " set-path searchpath\n"
13886 "\n"
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
13891 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
13896 msgid ""
13897 "The default is C<$libdir/guestfs> unless overridden by setting "
13898 "C<LIBGUESTFS_PATH> environment variable."
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13903 msgid "Setting C<path> to C<NULL> restores the default path."
13904 msgstr ""
13905
13906 #. type: =head2
13907 #: ../fish/guestfish-actions.pod:4194
13908 msgid "set-pgroup"
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../fish/guestfish-actions.pod:4196
13913 msgid "pgroup"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../fish/guestfish-actions.pod:4198
13918 #, no-wrap
13919 msgid ""
13920 " set-pgroup true|false\n"
13921 "\n"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
13926 msgid ""
13927 "If C<pgroup> is true, child processes are placed into their own process "
13928 "group."
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
13933 msgid ""
13934 "The practical upshot of this is that signals like C<SIGINT> (from users "
13935 "pressing C<^C>) won't be received by the child process."
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
13940 msgid ""
13941 "The default for this flag is false, because usually you want C<^C> to kill "
13942 "the subprocess."
13943 msgstr ""
13944
13945 #. type: =head2
13946 #: ../fish/guestfish-actions.pod:4209
13947 msgid "set-qemu"
13948 msgstr "set-qemu"
13949
13950 #. type: =head2
13951 #: ../fish/guestfish-actions.pod:4211
13952 msgid "qemu"
13953 msgstr "qemu"
13954
13955 #. type: verbatim
13956 #: ../fish/guestfish-actions.pod:4213
13957 #, no-wrap
13958 msgid ""
13959 " set-qemu qemu\n"
13960 "\n"
13961 msgstr ""
13962 " set-qemu qemu\n"
13963 "\n"
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
13967 msgid "Set the qemu binary that we will use."
13968 msgstr ""
13969
13970 #. type: textblock
13971 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
13972 msgid ""
13973 "The default is chosen when the library was compiled by the configure script."
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13978 msgid ""
13979 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13980 "variable."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
13985 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13990 msgid ""
13991 "Note that you should call this function as early as possible after creating "
13992 "the handle.  This is because some pre-launch operations depend on testing "
13993 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13994 "don't retest features, and so you might see inconsistent results.  Using the "
13995 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13996 "the qemu binary at the same time as the handle is created."
13997 msgstr ""
13998
13999 #. type: =head2
14000 #: ../fish/guestfish-actions.pod:4233
14001 msgid "set-recovery-proc"
14002 msgstr "set-recovery-proc"
14003
14004 #. type: =head2
14005 #: ../fish/guestfish-actions.pod:4235
14006 msgid "recovery-proc"
14007 msgstr "recovery-proc"
14008
14009 #. type: verbatim
14010 #: ../fish/guestfish-actions.pod:4237
14011 #, no-wrap
14012 msgid ""
14013 " set-recovery-proc true|false\n"
14014 "\n"
14015 msgstr ""
14016 " set-recovery-proc true|false\n"
14017 "\n"
14018
14019 #. type: textblock
14020 #: ../fish/guestfish-actions.pod:4239
14021 msgid ""
14022 "If this is called with the parameter C<false> then L</launch> does not "
14023 "create a recovery process.  The purpose of the recovery process is to stop "
14024 "runaway qemu processes in the case where the main program aborts abruptly."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:4244
14029 msgid ""
14030 "This only has any effect if called before L</launch>, and the default is "
14031 "true."
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
14036 msgid ""
14037 "About the only time when you would want to disable this is if the main "
14038 "process will fork itself into the background (\"daemonize\" itself).  In "
14039 "this case the recovery process thinks that the main program has disappeared "
14040 "and so kills qemu, which is not very helpful."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../fish/guestfish-actions.pod:4253
14045 msgid "set-selinux"
14046 msgstr "set-selinux"
14047
14048 #. type: =head2
14049 #: ../fish/guestfish-actions.pod:4255
14050 msgid "selinux"
14051 msgstr "selinux"
14052
14053 #. type: verbatim
14054 #: ../fish/guestfish-actions.pod:4257
14055 #, no-wrap
14056 msgid ""
14057 " set-selinux true|false\n"
14058 "\n"
14059 msgstr ""
14060 " set-selinux true|false\n"
14061 "\n"
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
14065 msgid ""
14066 "This sets the selinux flag that is passed to the appliance at boot time.  "
14067 "The default is C<selinux=0> (disabled)."
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
14072 msgid ""
14073 "Note that if SELinux is enabled, it is always in Permissive mode "
14074 "(C<enforcing=0>)."
14075 msgstr ""
14076
14077 #. type: =head2
14078 #: ../fish/guestfish-actions.pod:4268
14079 msgid "set-trace"
14080 msgstr "set-trace"
14081
14082 #. type: =head2
14083 #: ../fish/guestfish-actions.pod:4270
14084 msgid "trace"
14085 msgstr "trace"
14086
14087 #. type: verbatim
14088 #: ../fish/guestfish-actions.pod:4272
14089 #, no-wrap
14090 msgid ""
14091 " set-trace true|false\n"
14092 "\n"
14093 msgstr ""
14094 " set-trace true|false\n"
14095 "\n"
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
14099 msgid ""
14100 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14101 "return values are traced."
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
14106 msgid ""
14107 "If you want to trace C API calls into libguestfs (and other libraries) then "
14108 "possibly a better way is to use the external ltrace(1) command."
14109 msgstr ""
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
14113 msgid ""
14114 "Command traces are disabled unless the environment variable "
14115 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4284
14120 msgid ""
14121 "Trace messages are normally sent to C<stderr>, unless you register a "
14122 "callback to send them somewhere else (see L</set-event-callback>)."
14123 msgstr ""
14124
14125 #. type: =head2
14126 #: ../fish/guestfish-actions.pod:4288
14127 msgid "set-verbose"
14128 msgstr "set-verbose"
14129
14130 #. type: =head2
14131 #: ../fish/guestfish-actions.pod:4290
14132 msgid "verbose"
14133 msgstr ""
14134
14135 #. type: verbatim
14136 #: ../fish/guestfish-actions.pod:4292
14137 #, no-wrap
14138 msgid ""
14139 " set-verbose true|false\n"
14140 "\n"
14141 msgstr ""
14142 " set-verbose true|false\n"
14143 "\n"
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
14147 msgid "If C<verbose> is true, this turns on verbose messages."
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
14152 msgid ""
14153 "Verbose messages are disabled unless the environment variable "
14154 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:4299
14159 msgid ""
14160 "Verbose messages are normally sent to C<stderr>, unless you register a "
14161 "callback to send them somewhere else (see L</set-event-callback>)."
14162 msgstr ""
14163
14164 #. type: =head2
14165 #: ../fish/guestfish-actions.pod:4303
14166 msgid "setcon"
14167 msgstr "setcon"
14168
14169 #. type: verbatim
14170 #: ../fish/guestfish-actions.pod:4305
14171 #, no-wrap
14172 msgid ""
14173 " setcon context\n"
14174 "\n"
14175 msgstr ""
14176 " setcon контекст\n"
14177 "\n"
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
14181 msgid ""
14182 "This sets the SELinux security context of the daemon to the string "
14183 "C<context>."
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
14188 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14189 msgstr ""
14190
14191 #. type: =head2
14192 #: ../fish/guestfish-actions.pod:4312
14193 msgid "setxattr"
14194 msgstr "setxattr"
14195
14196 #. type: verbatim
14197 #: ../fish/guestfish-actions.pod:4314
14198 #, no-wrap
14199 msgid ""
14200 " setxattr xattr val vallen path\n"
14201 "\n"
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
14206 msgid ""
14207 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14208 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4320
14213 msgid "See also: L</lsetxattr>, L<attr(5)>."
14214 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14215
14216 #. type: =head2
14217 #: ../fish/guestfish-actions.pod:4322
14218 msgid "sfdisk"
14219 msgstr "sfdisk"
14220
14221 #. type: verbatim
14222 #: ../fish/guestfish-actions.pod:4324
14223 #, no-wrap
14224 msgid ""
14225 " sfdisk device cyls heads sectors 'lines ...'\n"
14226 "\n"
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6520
14231 msgid ""
14232 "This is a direct interface to the L<sfdisk(8)> program for creating "
14233 "partitions on block devices."
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6523
14238 msgid "C<device> should be a block device, for example C</dev/sda>."
14239 msgstr ""
14240
14241 #. type: textblock
14242 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14243 msgid ""
14244 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14245 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14246 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14247 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14248 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14249 "the kernel) cannot work out the right geometry and you will need to tell it."
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6533
14254 msgid ""
14255 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14256 "refer to the L<sfdisk(8)> manpage."
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6536
14261 msgid ""
14262 "To create a single partition occupying the whole disk, you would pass "
14263 "C<lines> as a single element list, when the single element being the string "
14264 "C<,> (comma)."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:4346
14269 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14270 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14271
14272 #. type: textblock
14273 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375
14274 #: ../fish/guestfish-actions.pod:4397
14275 msgid ""
14276 "I<This function is deprecated.> In new code, use the L</part_add> call "
14277 "instead."
14278 msgstr ""
14279
14280 #. type: =head2
14281 #: ../fish/guestfish-actions.pod:4359
14282 msgid "sfdiskM"
14283 msgstr "sfdiskM"
14284
14285 #. type: verbatim
14286 #: ../fish/guestfish-actions.pod:4361
14287 #, no-wrap
14288 msgid ""
14289 " sfdiskM device 'lines ...'\n"
14290 "\n"
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:4363
14295 msgid ""
14296 "This is a simplified interface to the L</sfdisk> command, where partition "
14297 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14298 "you don't need to specify the cyls, heads and sectors parameters which were "
14299 "rarely if ever used anyway."
14300 msgstr ""
14301
14302 #. type: textblock
14303 #: ../fish/guestfish-actions.pod:4369
14304 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14305 msgstr ""
14306 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14307
14308 #. type: =head2
14309 #: ../fish/guestfish-actions.pod:4382
14310 msgid "sfdisk-N"
14311 msgstr "sfdisk-N"
14312
14313 #. type: verbatim
14314 #: ../fish/guestfish-actions.pod:4384
14315 #, no-wrap
14316 msgid ""
14317 " sfdisk-N device partnum cyls heads sectors line\n"
14318 "\n"
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6598
14323 msgid ""
14324 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14325 "(note: C<n> counts from 1)."
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:4389
14330 msgid ""
14331 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14332 "cyls/heads/sectors parameters."
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:4392
14337 msgid "See also: L</part-add>"
14338 msgstr "Див. також L</part-add>"
14339
14340 #. type: =head2
14341 #: ../fish/guestfish-actions.pod:4404
14342 msgid "sfdisk-disk-geometry"
14343 msgstr "sfdisk-disk-geometry"
14344
14345 #. type: verbatim
14346 #: ../fish/guestfish-actions.pod:4406
14347 #, no-wrap
14348 msgid ""
14349 " sfdisk-disk-geometry device\n"
14350 "\n"
14351 msgstr ""
14352 " sfdisk-disk-geometry пристрій\n"
14353 "\n"
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:4408
14357 msgid ""
14358 "This displays the disk geometry of C<device> read from the partition table.  "
14359 "Especially in the case where the underlying block device has been resized, "
14360 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14361 "kernel-geometry>)."
14362 msgstr ""
14363
14364 #. type: textblock
14365 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
14366 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
14367 msgid "The result is in human-readable format, and not designed to be parsed."
14368 msgstr ""
14369
14370 #. type: =head2
14371 #: ../fish/guestfish-actions.pod:4416
14372 msgid "sfdisk-kernel-geometry"
14373 msgstr "sfdisk-kernel-geometry"
14374
14375 #. type: verbatim
14376 #: ../fish/guestfish-actions.pod:4418
14377 #, no-wrap
14378 msgid ""
14379 " sfdisk-kernel-geometry device\n"
14380 "\n"
14381 msgstr ""
14382 " sfdisk-kernel-geometry пристрій\n"
14383 "\n"
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
14387 msgid "This displays the kernel's idea of the geometry of C<device>."
14388 msgstr ""
14389
14390 #. type: =head2
14391 #: ../fish/guestfish-actions.pod:4425
14392 msgid "sfdisk-l"
14393 msgstr "sfdisk-l"
14394
14395 #. type: verbatim
14396 #: ../fish/guestfish-actions.pod:4427
14397 #, no-wrap
14398 msgid ""
14399 " sfdisk-l device\n"
14400 "\n"
14401 msgstr ""
14402 " sfdisk-l пристрій\n"
14403 "\n"
14404
14405 #. type: textblock
14406 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6661
14407 msgid ""
14408 "This displays the partition table on C<device>, in the human-readable output "
14409 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:4433
14414 msgid "See also: L</part-list>"
14415 msgstr "Див. також L</part-list>"
14416
14417 #. type: textblock
14418 #: ../fish/guestfish-actions.pod:4435
14419 msgid ""
14420 "I<This function is deprecated.> In new code, use the L</part_list> call "
14421 "instead."
14422 msgstr ""
14423
14424 #. type: =head2
14425 #: ../fish/guestfish-actions.pod:4442
14426 msgid "sh"
14427 msgstr "sh"
14428
14429 #. type: verbatim
14430 #: ../fish/guestfish-actions.pod:4444
14431 #, no-wrap
14432 msgid ""
14433 " sh command\n"
14434 "\n"
14435 msgstr ""
14436 " sh команда\n"
14437 "\n"
14438
14439 #. type: textblock
14440 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
14441 msgid ""
14442 "This call runs a command from the guest filesystem via the guest's C</bin/"
14443 "sh>."
14444 msgstr ""
14445
14446 #. type: textblock
14447 #: ../fish/guestfish-actions.pod:4449
14448 msgid "This is like L</command>, but passes the command to:"
14449 msgstr ""
14450
14451 #. type: verbatim
14452 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14453 #, no-wrap
14454 msgid ""
14455 " /bin/sh -c \"command\"\n"
14456 "\n"
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
14461 msgid ""
14462 "Depending on the guest's shell, this usually results in wildcards being "
14463 "expanded, shell expressions being interpolated and so on."
14464 msgstr ""
14465
14466 #. type: textblock
14467 #: ../fish/guestfish-actions.pod:4457
14468 msgid "All the provisos about L</command> apply to this call."
14469 msgstr ""
14470
14471 #. type: =head2
14472 #: ../fish/guestfish-actions.pod:4459
14473 msgid "sh-lines"
14474 msgstr "sh-lines"
14475
14476 #. type: verbatim
14477 #: ../fish/guestfish-actions.pod:4461
14478 #, no-wrap
14479 msgid ""
14480 " sh-lines command\n"
14481 "\n"
14482 msgstr ""
14483 " sh-lines команда\n"
14484 "\n"
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:4463
14488 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14489 msgstr ""
14490
14491 #. type: textblock
14492 #: ../fish/guestfish-actions.pod:4466
14493 msgid "See also: L</command-lines>"
14494 msgstr "Див. також L</command-lines>"
14495
14496 #. type: =head2
14497 #: ../fish/guestfish-actions.pod:4468
14498 msgid "sleep"
14499 msgstr "sleep"
14500
14501 #. type: verbatim
14502 #: ../fish/guestfish-actions.pod:4470
14503 #, no-wrap
14504 msgid ""
14505 " sleep secs\n"
14506 "\n"
14507 msgstr ""
14508 " sleep час_у_секундах\n"
14509 "\n"
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
14513 msgid "Sleep for C<secs> seconds."
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4474
14518 msgid "stat"
14519 msgstr "stat"
14520
14521 #. type: verbatim
14522 #: ../fish/guestfish-actions.pod:4476
14523 #, no-wrap
14524 msgid ""
14525 " stat path\n"
14526 "\n"
14527 msgstr ""
14528 " stat шлях\n"
14529 "\n"
14530
14531 #. type: textblock
14532 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
14533 msgid "This is the same as the C<stat(2)> system call."
14534 msgstr ""
14535
14536 #. type: =head2
14537 #: ../fish/guestfish-actions.pod:4482
14538 msgid "statvfs"
14539 msgstr "statvfs"
14540
14541 #. type: verbatim
14542 #: ../fish/guestfish-actions.pod:4484
14543 #, no-wrap
14544 msgid ""
14545 " statvfs path\n"
14546 "\n"
14547 msgstr ""
14548 " statvfs шлях\n"
14549 "\n"
14550
14551 #. type: textblock
14552 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
14553 msgid ""
14554 "Returns file system statistics for any mounted file system.  C<path> should "
14555 "be a file or directory in the mounted file system (typically it is the mount "
14556 "point itself, but it doesn't need to be)."
14557 msgstr ""
14558
14559 #. type: textblock
14560 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
14561 msgid "This is the same as the C<statvfs(2)> system call."
14562 msgstr ""
14563
14564 #. type: =head2
14565 #: ../fish/guestfish-actions.pod:4492
14566 msgid "strings"
14567 msgstr "strings"
14568
14569 #. type: verbatim
14570 #: ../fish/guestfish-actions.pod:4494
14571 #, no-wrap
14572 msgid ""
14573 " strings path\n"
14574 "\n"
14575 msgstr ""
14576 " strings шлях\n"
14577 "\n"
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
14581 msgid ""
14582 "This runs the L<strings(1)> command on a file and returns the list of "
14583 "printable strings found."
14584 msgstr ""
14585
14586 #. type: =head2
14587 #: ../fish/guestfish-actions.pod:4502
14588 msgid "strings-e"
14589 msgstr "strings-e"
14590
14591 #. type: verbatim
14592 #: ../fish/guestfish-actions.pod:4504
14593 #, no-wrap
14594 msgid ""
14595 " strings-e encoding path\n"
14596 "\n"
14597 msgstr ""
14598 " strings-e кодування шлях\n"
14599 "\n"
14600
14601 #. type: textblock
14602 #: ../fish/guestfish-actions.pod:4506
14603 msgid ""
14604 "This is like the L</strings> command, but allows you to specify the encoding "
14605 "of strings that are looked for in the source file C<path>."
14606 msgstr ""
14607
14608 #. type: textblock
14609 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
14610 msgid "Allowed encodings are:"
14611 msgstr "Можливими кодуваннями є:"
14612
14613 #. type: =item
14614 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
14615 msgid "s"
14616 msgstr "s"
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:4516
14620 msgid ""
14621 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14622 "ISO-8859-X (this is what L</strings> uses)."
14623 msgstr ""
14624
14625 #. type: =item
14626 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14627 msgid "S"
14628 msgstr "S"
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
14632 msgid "Single 8-bit-byte characters."
14633 msgstr "Окремі 8-бітові-байтові символи."
14634
14635 #. type: =item
14636 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
14637 msgid "b"
14638 msgstr "b"
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
14642 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14643 msgstr ""
14644
14645 #. type: =item
14646 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14647 msgid "l (lower case letter L)"
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14652 msgid ""
14653 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14654 "examining binaries in Windows guests."
14655 msgstr ""
14656
14657 #. type: =item
14658 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14659 msgid "B"
14660 msgstr "B"
14661
14662 #. type: textblock
14663 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14664 msgid "32-bit big endian such as UCS-4BE."
14665 msgstr ""
14666
14667 #. type: =item
14668 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14669 msgid "L"
14670 msgstr "L"
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
14674 msgid "32-bit little endian such as UCS-4LE."
14675 msgstr ""
14676
14677 #. type: textblock
14678 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
14679 msgid "The returned strings are transcoded to UTF-8."
14680 msgstr ""
14681
14682 #. type: =head2
14683 #: ../fish/guestfish-actions.pod:4548
14684 msgid "swapoff-device"
14685 msgstr "swapoff-device"
14686
14687 #. type: verbatim
14688 #: ../fish/guestfish-actions.pod:4550
14689 #, no-wrap
14690 msgid ""
14691 " swapoff-device device\n"
14692 "\n"
14693 msgstr ""
14694 " swapoff-device пристрій\n"
14695 "\n"
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:4552
14699 msgid ""
14700 "This command disables the libguestfs appliance swap device or partition "
14701 "named C<device>.  See L</swapon-device>."
14702 msgstr ""
14703
14704 #. type: =head2
14705 #: ../fish/guestfish-actions.pod:4556
14706 msgid "swapoff-file"
14707 msgstr "swapoff-file"
14708
14709 #. type: verbatim
14710 #: ../fish/guestfish-actions.pod:4558
14711 #, no-wrap
14712 msgid ""
14713 " swapoff-file file\n"
14714 "\n"
14715 msgstr ""
14716 " swapoff-file файл\n"
14717 "\n"
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
14721 msgid "This command disables the libguestfs appliance swap on file."
14722 msgstr ""
14723
14724 #. type: =head2
14725 #: ../fish/guestfish-actions.pod:4562
14726 msgid "swapoff-label"
14727 msgstr "swapoff-label"
14728
14729 #. type: verbatim
14730 #: ../fish/guestfish-actions.pod:4564
14731 #, no-wrap
14732 msgid ""
14733 " swapoff-label label\n"
14734 "\n"
14735 msgstr ""
14736 " swapoff-label мітка\n"
14737 "\n"
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
14741 msgid ""
14742 "This command disables the libguestfs appliance swap on labeled swap "
14743 "partition."
14744 msgstr ""
14745
14746 #. type: =head2
14747 #: ../fish/guestfish-actions.pod:4569
14748 msgid "swapoff-uuid"
14749 msgstr "swapoff-uuid"
14750
14751 #. type: verbatim
14752 #: ../fish/guestfish-actions.pod:4571
14753 #, no-wrap
14754 msgid ""
14755 " swapoff-uuid uuid\n"
14756 "\n"
14757 msgstr ""
14758 " swapoff-uuid uuid\n"
14759 "\n"
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
14763 msgid ""
14764 "This command disables the libguestfs appliance swap partition with the given "
14765 "UUID."
14766 msgstr ""
14767
14768 #. type: =head2
14769 #: ../fish/guestfish-actions.pod:4576
14770 msgid "swapon-device"
14771 msgstr "swapon-device"
14772
14773 #. type: verbatim
14774 #: ../fish/guestfish-actions.pod:4578
14775 #, no-wrap
14776 msgid ""
14777 " swapon-device device\n"
14778 "\n"
14779 msgstr ""
14780 " swapon-device пристрій\n"
14781 "\n"
14782
14783 #. type: textblock
14784 #: ../fish/guestfish-actions.pod:4580
14785 msgid ""
14786 "This command enables the libguestfs appliance to use the swap device or "
14787 "partition named C<device>.  The increased memory is made available for all "
14788 "commands, for example those run using L</command> or L</sh>."
14789 msgstr ""
14790
14791 #. type: textblock
14792 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
14793 msgid ""
14794 "Note that you should not swap to existing guest swap partitions unless you "
14795 "know what you are doing.  They may contain hibernation information, or other "
14796 "information that the guest doesn't want you to trash.  You also risk leaking "
14797 "information about the host to the guest this way.  Instead, attach a new "
14798 "host device to the guest and swap on that."
14799 msgstr ""
14800
14801 #. type: =head2
14802 #: ../fish/guestfish-actions.pod:4592
14803 msgid "swapon-file"
14804 msgstr "swapon-file"
14805
14806 #. type: verbatim
14807 #: ../fish/guestfish-actions.pod:4594
14808 #, no-wrap
14809 msgid ""
14810 " swapon-file file\n"
14811 "\n"
14812 msgstr ""
14813 " swapon-file файл\n"
14814 "\n"
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:4596
14818 msgid ""
14819 "This command enables swap to a file.  See L</swapon-device> for other notes."
14820 msgstr ""
14821
14822 #. type: =head2
14823 #: ../fish/guestfish-actions.pod:4599
14824 msgid "swapon-label"
14825 msgstr "swapon-label"
14826
14827 #. type: verbatim
14828 #: ../fish/guestfish-actions.pod:4601
14829 #, no-wrap
14830 msgid ""
14831 " swapon-label label\n"
14832 "\n"
14833 msgstr ""
14834 " swapon-label мітка\n"
14835 "\n"
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:4603
14839 msgid ""
14840 "This command enables swap to a labeled swap partition.  See L</swapon-"
14841 "device> for other notes."
14842 msgstr ""
14843
14844 #. type: =head2
14845 #: ../fish/guestfish-actions.pod:4606
14846 msgid "swapon-uuid"
14847 msgstr "swapon-uuid"
14848
14849 #. type: verbatim
14850 #: ../fish/guestfish-actions.pod:4608
14851 #, no-wrap
14852 msgid ""
14853 " swapon-uuid uuid\n"
14854 "\n"
14855 msgstr ""
14856 " swapon-uuid uuid\n"
14857 "\n"
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:4610
14861 msgid ""
14862 "This command enables swap to a swap partition with the given UUID.  See L</"
14863 "swapon-device> for other notes."
14864 msgstr ""
14865
14866 #. type: =head2
14867 #: ../fish/guestfish-actions.pod:4613
14868 msgid "sync"
14869 msgstr "sync"
14870
14871 #. type: verbatim
14872 #: ../fish/guestfish-actions.pod:4615
14873 #, no-wrap
14874 msgid ""
14875 " sync\n"
14876 "\n"
14877 msgstr ""
14878 " sync\n"
14879 "\n"
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
14883 msgid ""
14884 "This syncs the disk, so that any writes are flushed through to the "
14885 "underlying disk image."
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
14890 msgid ""
14891 "You should always call this if you have modified a disk image, before "
14892 "closing the handle."
14893 msgstr ""
14894
14895 #. type: =head2
14896 #: ../fish/guestfish-actions.pod:4623
14897 msgid "tail"
14898 msgstr "tail"
14899
14900 #. type: verbatim
14901 #: ../fish/guestfish-actions.pod:4625
14902 #, no-wrap
14903 msgid ""
14904 " tail path\n"
14905 "\n"
14906 msgstr ""
14907 " tail шлях\n"
14908 "\n"
14909
14910 #. type: textblock
14911 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
14912 msgid ""
14913 "This command returns up to the last 10 lines of a file as a list of strings."
14914 msgstr ""
14915
14916 #. type: =head2
14917 #: ../fish/guestfish-actions.pod:4633
14918 msgid "tail-n"
14919 msgstr "tail-n"
14920
14921 #. type: verbatim
14922 #: ../fish/guestfish-actions.pod:4635
14923 #, no-wrap
14924 msgid ""
14925 " tail-n nrlines path\n"
14926 "\n"
14927 msgstr ""
14928
14929 #. type: textblock
14930 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
14931 msgid ""
14932 "If the parameter C<nrlines> is a positive number, this returns the last "
14933 "C<nrlines> lines of the file C<path>."
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
14938 msgid ""
14939 "If the parameter C<nrlines> is a negative number, this returns lines from "
14940 "the file C<path>, starting with the C<-nrlines>th line."
14941 msgstr ""
14942
14943 #. type: =head2
14944 #: ../fish/guestfish-actions.pod:4648
14945 msgid "tar-in"
14946 msgstr "tar-in"
14947
14948 #. type: verbatim
14949 #: ../fish/guestfish-actions.pod:4650
14950 #, no-wrap
14951 msgid ""
14952 " tar-in (tarfile|-) directory\n"
14953 "\n"
14954 msgstr ""
14955 " tar-in (файл_tar|-) каталог\n"
14956 "\n"
14957
14958 #. type: textblock
14959 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
14960 msgid ""
14961 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14962 "tar file) into C<directory>."
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:4655
14967 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14968 msgstr ""
14969
14970 #. type: =head2
14971 #: ../fish/guestfish-actions.pod:4660
14972 msgid "tar-out"
14973 msgstr "tar-out"
14974
14975 #. type: verbatim
14976 #: ../fish/guestfish-actions.pod:4662
14977 #, no-wrap
14978 msgid ""
14979 " tar-out directory (tarfile|-)\n"
14980 "\n"
14981 msgstr ""
14982 " tar-out каталог (файл tar|-)\n"
14983 "\n"
14984
14985 #. type: textblock
14986 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
14987 msgid ""
14988 "This command packs the contents of C<directory> and downloads it to local "
14989 "file C<tarfile>."
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-actions.pod:4667
14994 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14995 msgstr ""
14996
14997 #. type: =head2
14998 #: ../fish/guestfish-actions.pod:4672
14999 msgid "tgz-in"
15000 msgstr "tgz-in"
15001
15002 #. type: verbatim
15003 #: ../fish/guestfish-actions.pod:4674
15004 #, no-wrap
15005 msgid ""
15006 " tgz-in (tarball|-) directory\n"
15007 "\n"
15008 msgstr ""
15009 " tgz-in (архів tar|-) каталог\n"
15010 "\n"
15011
15012 #. type: textblock
15013 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
15014 msgid ""
15015 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15016 "tar file) into C<directory>."
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../fish/guestfish-actions.pod:4679
15021 msgid "To upload an uncompressed tarball, use L</tar-in>."
15022 msgstr ""
15023
15024 #. type: =head2
15025 #: ../fish/guestfish-actions.pod:4683
15026 msgid "tgz-out"
15027 msgstr "tgz-out"
15028
15029 #. type: verbatim
15030 #: ../fish/guestfish-actions.pod:4685
15031 #, no-wrap
15032 msgid ""
15033 " tgz-out directory (tarball|-)\n"
15034 "\n"
15035 msgstr ""
15036 " tgz-out каталог (архів tar|-)\n"
15037 "\n"
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
15041 msgid ""
15042 "This command packs the contents of C<directory> and downloads it to local "
15043 "file C<tarball>."
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4690
15048 msgid "To download an uncompressed tarball, use L</tar-out>."
15049 msgstr ""
15050
15051 #. type: =head2
15052 #: ../fish/guestfish-actions.pod:4694
15053 msgid "touch"
15054 msgstr "touch"
15055
15056 #. type: verbatim
15057 #: ../fish/guestfish-actions.pod:4696
15058 #, no-wrap
15059 msgid ""
15060 " touch path\n"
15061 "\n"
15062 msgstr ""
15063 " touch шлях\n"
15064 "\n"
15065
15066 #. type: textblock
15067 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
15068 msgid ""
15069 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15070 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15071 "length file."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
15076 msgid ""
15077 "This command only works on regular files, and will fail on other file types "
15078 "such as directories, symbolic links, block special etc."
15079 msgstr ""
15080
15081 #. type: =head2
15082 #: ../fish/guestfish-actions.pod:4705
15083 msgid "truncate"
15084 msgstr "truncate"
15085
15086 #. type: verbatim
15087 #: ../fish/guestfish-actions.pod:4707
15088 #, no-wrap
15089 msgid ""
15090 " truncate path\n"
15091 "\n"
15092 msgstr ""
15093 " truncate шлях\n"
15094 "\n"
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
15098 msgid ""
15099 "This command truncates C<path> to a zero-length file.  The file must exist "
15100 "already."
15101 msgstr ""
15102
15103 #. type: =head2
15104 #: ../fish/guestfish-actions.pod:4712
15105 msgid "truncate-size"
15106 msgstr "truncate-size"
15107
15108 #. type: verbatim
15109 #: ../fish/guestfish-actions.pod:4714
15110 #, no-wrap
15111 msgid ""
15112 " truncate-size path size\n"
15113 "\n"
15114 msgstr ""
15115 " truncate-size шлях розмір\n"
15116 "\n"
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
15120 msgid ""
15121 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15122 "already."
15123 msgstr ""
15124
15125 #. type: textblock
15126 #: ../fish/guestfish-actions.pod:4719
15127 msgid ""
15128 "If the current file size is less than C<size> then the file is extended to "
15129 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15130 "blocks are not allocated for the file until you write to it).  To create a "
15131 "non-sparse file of zeroes, use L</fallocate64> instead."
15132 msgstr ""
15133
15134 #. type: =head2
15135 #: ../fish/guestfish-actions.pod:4725
15136 msgid "tune2fs-l"
15137 msgstr "tune2fs-l"
15138
15139 #. type: verbatim
15140 #: ../fish/guestfish-actions.pod:4727
15141 #, no-wrap
15142 msgid ""
15143 " tune2fs-l device\n"
15144 "\n"
15145 msgstr ""
15146 " tune2fs-l пристрій\n"
15147 "\n"
15148
15149 #. type: textblock
15150 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
15151 msgid ""
15152 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15153 "C<device>."
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
15158 msgid ""
15159 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15160 "for more details.  The list of fields returned isn't clearly defined, and "
15161 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15162 "and the filesystem itself."
15163 msgstr ""
15164
15165 #. type: =head2
15166 #: ../fish/guestfish-actions.pod:4737
15167 msgid "txz-in"
15168 msgstr "txz-in"
15169
15170 #. type: verbatim
15171 #: ../fish/guestfish-actions.pod:4739
15172 #, no-wrap
15173 msgid ""
15174 " txz-in (tarball|-) directory\n"
15175 "\n"
15176 msgstr ""
15177 " txz-in (архів tar|-) каталог\n"
15178 "\n"
15179
15180 #. type: textblock
15181 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
15182 msgid ""
15183 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15184 "tar file) into C<directory>."
15185 msgstr ""
15186
15187 #. type: =head2
15188 #: ../fish/guestfish-actions.pod:4746
15189 msgid "txz-out"
15190 msgstr "txz-out"
15191
15192 #. type: verbatim
15193 #: ../fish/guestfish-actions.pod:4748
15194 #, no-wrap
15195 msgid ""
15196 " txz-out directory (tarball|-)\n"
15197 "\n"
15198 msgstr ""
15199 " txz-out каталог (архів tar|-)\n"
15200 "\n"
15201
15202 #. type: textblock
15203 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
15204 msgid ""
15205 "This command packs the contents of C<directory> and downloads it to local "
15206 "file C<tarball> (as an xz compressed tar archive)."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-actions.pod:4755
15211 msgid "umask"
15212 msgstr "umask"
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-actions.pod:4757
15216 #, no-wrap
15217 msgid ""
15218 " umask mask\n"
15219 "\n"
15220 msgstr ""
15221 " umask маска\n"
15222 "\n"
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
15226 msgid ""
15227 "This function sets the mask used for creating new files and device nodes to "
15228 "C<mask & 0777>."
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
15233 msgid ""
15234 "Typical umask values would be C<022> which creates new files with "
15235 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15236 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15237 msgstr ""
15238
15239 #. type: textblock
15240 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15241 msgid ""
15242 "The default umask is C<022>.  This is important because it means that "
15243 "directories and device nodes will be created with C<0644> or C<0755> mode "
15244 "even if you specify C<0777>."
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4771
15249 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15250 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
15254 msgid "This call returns the previous umask."
15255 msgstr ""
15256
15257 #. type: =head2
15258 #: ../fish/guestfish-actions.pod:4776
15259 msgid "umount"
15260 msgstr "umount"
15261
15262 #. type: =head2
15263 #: ../fish/guestfish-actions.pod:4778
15264 msgid "unmount"
15265 msgstr "unmount"
15266
15267 #. type: verbatim
15268 #: ../fish/guestfish-actions.pod:4780
15269 #, no-wrap
15270 msgid ""
15271 " umount pathordevice\n"
15272 "\n"
15273 msgstr ""
15274 " umount шлях_або_пристрій\n"
15275 "\n"
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
15279 msgid ""
15280 "This unmounts the given filesystem.  The filesystem may be specified either "
15281 "by its mountpoint (path) or the device which contains the filesystem."
15282 msgstr ""
15283
15284 #. type: =head2
15285 #: ../fish/guestfish-actions.pod:4786
15286 msgid "umount-all"
15287 msgstr "umount-all"
15288
15289 #. type: =head2
15290 #: ../fish/guestfish-actions.pod:4788
15291 msgid "unmount-all"
15292 msgstr "unmount-all"
15293
15294 #. type: verbatim
15295 #: ../fish/guestfish-actions.pod:4790
15296 #, no-wrap
15297 msgid ""
15298 " umount-all\n"
15299 "\n"
15300 msgstr ""
15301 " umount-all\n"
15302 "\n"
15303
15304 #. type: textblock
15305 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
15306 msgid "This unmounts all mounted filesystems."
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
15311 msgid "Some internal mounts are not unmounted by this call."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-actions.pod:4796
15316 msgid "upload"
15317 msgstr "upload"
15318
15319 #. type: verbatim
15320 #: ../fish/guestfish-actions.pod:4798
15321 #, no-wrap
15322 msgid ""
15323 " upload (filename|-) remotefilename\n"
15324 "\n"
15325 msgstr ""
15326 " upload (назва_файла|-) назва_віддаленого_файла\n"
15327 "\n"
15328
15329 #. type: textblock
15330 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813
15331 #: ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
15332 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15333 msgstr ""
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:4805
15337 msgid "See also L</download>."
15338 msgstr "Див. також L</download>."
15339
15340 #. type: =head2
15341 #: ../fish/guestfish-actions.pod:4809
15342 msgid "upload-offset"
15343 msgstr "upload-offset"
15344
15345 #. type: verbatim
15346 #: ../fish/guestfish-actions.pod:4811
15347 #, no-wrap
15348 msgid ""
15349 " upload-offset (filename|-) remotefilename offset\n"
15350 "\n"
15351 msgstr ""
15352 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15353 "\n"
15354
15355 #. type: textblock
15356 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
15357 msgid ""
15358 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15359 "The intention is to overwrite parts of existing files or devices, although "
15360 "if a non-existant file is specified then it is created with a \"hole\" "
15361 "before C<offset>.  The size of the data written is implicit in the size of "
15362 "the source C<filename>."
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4823
15367 msgid ""
15368 "Note that there is no limit on the amount of data that can be uploaded with "
15369 "this call, unlike with L</pwrite>, and this call always writes the full "
15370 "amount unless an error occurs."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4828
15375 msgid "See also L</upload>, L</pwrite>."
15376 msgstr "Див. також L</upload>, L</pwrite>."
15377
15378 #. type: =head2
15379 #: ../fish/guestfish-actions.pod:4832
15380 msgid "utimens"
15381 msgstr "utimens"
15382
15383 #. type: verbatim
15384 #: ../fish/guestfish-actions.pod:4834
15385 #, no-wrap
15386 msgid ""
15387 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15388 "\n"
15389 msgstr ""
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
15393 msgid "This command sets the timestamps of a file with nanosecond precision."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
15398 msgid ""
15399 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15400 "from the epoch."
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
15405 msgid ""
15406 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15407 "nanoseconds from the epoch."
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
15412 msgid ""
15413 "If the C<*nsecs> field contains the special value C<-1> then the "
15414 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15415 "ignored in this case)."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
15420 msgid ""
15421 "If the C<*nsecs> field contains the special value C<-2> then the "
15422 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15423 "in this case)."
15424 msgstr ""
15425
15426 #. type: =head2
15427 #: ../fish/guestfish-actions.pod:4853
15428 msgid "version"
15429 msgstr "version"
15430
15431 #. type: verbatim
15432 #: ../fish/guestfish-actions.pod:4855
15433 #, no-wrap
15434 msgid ""
15435 " version\n"
15436 "\n"
15437 msgstr ""
15438 " version\n"
15439 "\n"
15440
15441 #. type: textblock
15442 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
15443 msgid ""
15444 "Return the libguestfs version number that the program is linked against."
15445 msgstr ""
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
15449 msgid ""
15450 "Note that because of dynamic linking this is not necessarily the version of "
15451 "libguestfs that you compiled against.  You can compile the program, and then "
15452 "at runtime dynamically link against a completely different C<libguestfs.so> "
15453 "library."
15454 msgstr ""
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15458 msgid ""
15459 "This call was added in version C<1.0.58>.  In previous versions of "
15460 "libguestfs there was no way to get the version number.  From C code you can "
15461 "use dynamic linker functions to find out if this symbol exists (if it "
15462 "doesn't, then it's an earlier version)."
15463 msgstr ""
15464
15465 #. type: textblock
15466 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
15467 msgid ""
15468 "The call returns a structure with four elements.  The first three (C<major>, "
15469 "C<minor> and C<release>) are numbers and correspond to the usual version "
15470 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15471 "but may be used for distro-specific information."
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
15476 msgid ""
15477 "To construct the original version string: C<$major.$minor.$release$extra>"
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
15482 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4882
15487 msgid ""
15488 "I<Note:> Don't use this call to test for availability of features.  In "
15489 "enterprise distributions we backport features from later versions into "
15490 "earlier versions, making this an unreliable way to test for features.  Use "
15491 "L</available> instead."
15492 msgstr ""
15493
15494 #. type: =head2
15495 #: ../fish/guestfish-actions.pod:4888
15496 msgid "vfs-label"
15497 msgstr "vfs-label"
15498
15499 #. type: verbatim
15500 #: ../fish/guestfish-actions.pod:4890
15501 #, no-wrap
15502 msgid ""
15503 " vfs-label device\n"
15504 "\n"
15505 msgstr ""
15506 " vfs-label пристрій\n"
15507 "\n"
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
15511 msgid "This returns the filesystem label of the filesystem on C<device>."
15512 msgstr ""
15513
15514 #. type: textblock
15515 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
15516 msgid "If the filesystem is unlabeled, this returns the empty string."
15517 msgstr ""
15518
15519 #. type: textblock
15520 #: ../fish/guestfish-actions.pod:4897
15521 msgid "To find a filesystem from the label, use L</findfs-label>."
15522 msgstr ""
15523
15524 #. type: =head2
15525 #: ../fish/guestfish-actions.pod:4899
15526 msgid "vfs-type"
15527 msgstr "vfs-type"
15528
15529 #. type: verbatim
15530 #: ../fish/guestfish-actions.pod:4901
15531 #, no-wrap
15532 msgid ""
15533 " vfs-type device\n"
15534 "\n"
15535 msgstr ""
15536 " vfs-type пристрій\n"
15537 "\n"
15538
15539 #. type: textblock
15540 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
15541 msgid ""
15542 "This command gets the filesystem type corresponding to the filesystem on "
15543 "C<device>."
15544 msgstr ""
15545
15546 #. type: textblock
15547 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
15548 msgid ""
15549 "For most filesystems, the result is the name of the Linux VFS module which "
15550 "would be used to mount this filesystem if you mounted it without specifying "
15551 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15552 msgstr ""
15553
15554 #. type: =head2
15555 #: ../fish/guestfish-actions.pod:4911
15556 msgid "vfs-uuid"
15557 msgstr "vfs-uuid"
15558
15559 #. type: verbatim
15560 #: ../fish/guestfish-actions.pod:4913
15561 #, no-wrap
15562 msgid ""
15563 " vfs-uuid device\n"
15564 "\n"
15565 msgstr ""
15566 " vfs-uuid пристрій\n"
15567 "\n"
15568
15569 #. type: textblock
15570 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
15571 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15572 msgstr ""
15573
15574 #. type: textblock
15575 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
15576 msgid "If the filesystem does not have a UUID, this returns the empty string."
15577 msgstr ""
15578
15579 #. type: textblock
15580 #: ../fish/guestfish-actions.pod:4920
15581 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15582 msgstr ""
15583
15584 #. type: =head2
15585 #: ../fish/guestfish-actions.pod:4922
15586 msgid "vg-activate"
15587 msgstr "vg-activate"
15588
15589 #. type: verbatim
15590 #: ../fish/guestfish-actions.pod:4924
15591 #, no-wrap
15592 msgid ""
15593 " vg-activate true|false 'volgroups ...'\n"
15594 "\n"
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
15599 msgid ""
15600 "This command activates or (if C<activate> is false) deactivates all logical "
15601 "volumes in the listed volume groups C<volgroups>."
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
15606 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15607 msgstr ""
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15611 msgid ""
15612 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15613 "activated or deactivated."
15614 msgstr ""
15615
15616 #. type: =head2
15617 #: ../fish/guestfish-actions.pod:4934
15618 msgid "vg-activate-all"
15619 msgstr "vg-activate-all"
15620
15621 #. type: verbatim
15622 #: ../fish/guestfish-actions.pod:4936
15623 #, no-wrap
15624 msgid ""
15625 " vg-activate-all true|false\n"
15626 "\n"
15627 msgstr ""
15628 " vg-activate-all true|false\n"
15629 "\n"
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
15633 msgid ""
15634 "This command activates or (if C<activate> is false) deactivates all logical "
15635 "volumes in all volume groups."
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
15640 msgid "This command is the same as running C<vgchange -a y|n>"
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-actions.pod:4943
15645 msgid "vgcreate"
15646 msgstr "vgcreate"
15647
15648 #. type: verbatim
15649 #: ../fish/guestfish-actions.pod:4945
15650 #, no-wrap
15651 msgid ""
15652 " vgcreate volgroup 'physvols ...'\n"
15653 "\n"
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
15658 msgid ""
15659 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15660 "of physical volumes C<physvols>."
15661 msgstr ""
15662
15663 #. type: =head2
15664 #: ../fish/guestfish-actions.pod:4950
15665 msgid "vglvuuids"
15666 msgstr "vglvuuids"
15667
15668 #. type: verbatim
15669 #: ../fish/guestfish-actions.pod:4952
15670 #, no-wrap
15671 msgid ""
15672 " vglvuuids vgname\n"
15673 "\n"
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
15678 msgid ""
15679 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15680 "volumes created in this volume group."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4957
15685 msgid ""
15686 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15687 "logical volumes and volume groups."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4960
15692 msgid "See also L</vgpvuuids>."
15693 msgstr "Див. також L</vgpvuuids>."
15694
15695 #. type: =head2
15696 #: ../fish/guestfish-actions.pod:4962
15697 msgid "vgpvuuids"
15698 msgstr "vgpvuuids"
15699
15700 #. type: verbatim
15701 #: ../fish/guestfish-actions.pod:4964
15702 #, no-wrap
15703 msgid ""
15704 " vgpvuuids vgname\n"
15705 "\n"
15706 msgstr ""
15707
15708 #. type: textblock
15709 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
15710 msgid ""
15711 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15712 "volumes that this volume group resides on."
15713 msgstr ""
15714
15715 #. type: textblock
15716 #: ../fish/guestfish-actions.pod:4969
15717 msgid ""
15718 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15719 "physical volumes and volume groups."
15720 msgstr ""
15721
15722 #. type: textblock
15723 #: ../fish/guestfish-actions.pod:4972
15724 msgid "See also L</vglvuuids>."
15725 msgstr "Див. також L</vglvuuids>."
15726
15727 #. type: =head2
15728 #: ../fish/guestfish-actions.pod:4974
15729 msgid "vgremove"
15730 msgstr "vgremove"
15731
15732 #. type: verbatim
15733 #: ../fish/guestfish-actions.pod:4976
15734 #, no-wrap
15735 msgid ""
15736 " vgremove vgname\n"
15737 "\n"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
15742 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
15747 msgid ""
15748 "This also forcibly removes all logical volumes in the volume group (if any)."
15749 msgstr ""
15750
15751 #. type: =head2
15752 #: ../fish/guestfish-actions.pod:4983
15753 msgid "vgrename"
15754 msgstr "vgrename"
15755
15756 #. type: verbatim
15757 #: ../fish/guestfish-actions.pod:4985
15758 #, no-wrap
15759 msgid ""
15760 " vgrename volgroup newvolgroup\n"
15761 "\n"
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
15766 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15767 msgstr ""
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4989
15771 msgid "vgs"
15772 msgstr "vgs"
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4991
15776 #, no-wrap
15777 msgid ""
15778 " vgs\n"
15779 "\n"
15780 msgstr ""
15781 " vgs\n"
15782 "\n"
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
15786 msgid ""
15787 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15788 "> command."
15789 msgstr ""
15790
15791 #. type: textblock
15792 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
15793 msgid ""
15794 "This returns a list of just the volume group names that were detected (eg. "
15795 "C<VolGroup00>)."
15796 msgstr ""
15797
15798 #. type: textblock
15799 #: ../fish/guestfish-actions.pod:4999
15800 msgid "See also L</vgs-full>."
15801 msgstr "Див. також L</vgs-full>."
15802
15803 #. type: =head2
15804 #: ../fish/guestfish-actions.pod:5001
15805 msgid "vgs-full"
15806 msgstr "vgs-full"
15807
15808 #. type: verbatim
15809 #: ../fish/guestfish-actions.pod:5003
15810 #, no-wrap
15811 msgid ""
15812 " vgs-full\n"
15813 "\n"
15814 msgstr ""
15815 " vgs-full\n"
15816 "\n"
15817
15818 #. type: textblock
15819 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
15820 msgid ""
15821 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15822 "> command.  The \"full\" version includes all fields."
15823 msgstr ""
15824
15825 #. type: =head2
15826 #: ../fish/guestfish-actions.pod:5008
15827 msgid "vgscan"
15828 msgstr "vgscan"
15829
15830 #. type: verbatim
15831 #: ../fish/guestfish-actions.pod:5010
15832 #, no-wrap
15833 msgid ""
15834 " vgscan\n"
15835 "\n"
15836 msgstr ""
15837 " vgscan\n"
15838 "\n"
15839
15840 #. type: textblock
15841 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
15842 msgid ""
15843 "This rescans all block devices and rebuilds the list of LVM physical "
15844 "volumes, volume groups and logical volumes."
15845 msgstr ""
15846
15847 #. type: =head2
15848 #: ../fish/guestfish-actions.pod:5015
15849 msgid "vguuid"
15850 msgstr "vguuid"
15851
15852 #. type: verbatim
15853 #: ../fish/guestfish-actions.pod:5017
15854 #, no-wrap
15855 msgid ""
15856 " vguuid vgname\n"
15857 "\n"
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
15862 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15863 msgstr ""
15864
15865 #. type: =head2
15866 #: ../fish/guestfish-actions.pod:5021
15867 msgid "wc-c"
15868 msgstr "wc-c"
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish-actions.pod:5023
15872 #, no-wrap
15873 msgid ""
15874 " wc-c path\n"
15875 "\n"
15876 msgstr ""
15877 " wc-c шлях\n"
15878 "\n"
15879
15880 #. type: textblock
15881 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
15882 msgid ""
15883 "This command counts the characters in a file, using the C<wc -c> external "
15884 "command."
15885 msgstr ""
15886
15887 #. type: =head2
15888 #: ../fish/guestfish-actions.pod:5028
15889 msgid "wc-l"
15890 msgstr "wc-l"
15891
15892 #. type: verbatim
15893 #: ../fish/guestfish-actions.pod:5030
15894 #, no-wrap
15895 msgid ""
15896 " wc-l path\n"
15897 "\n"
15898 msgstr ""
15899 " wc-l шлях\n"
15900 "\n"
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
15904 msgid ""
15905 "This command counts the lines in a file, using the C<wc -l> external command."
15906 msgstr ""
15907
15908 #. type: =head2
15909 #: ../fish/guestfish-actions.pod:5035
15910 msgid "wc-w"
15911 msgstr "wc-w"
15912
15913 #. type: verbatim
15914 #: ../fish/guestfish-actions.pod:5037
15915 #, no-wrap
15916 msgid ""
15917 " wc-w path\n"
15918 "\n"
15919 msgstr ""
15920 " wc-w шлях\n"
15921 "\n"
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
15925 msgid ""
15926 "This command counts the words in a file, using the C<wc -w> external command."
15927 msgstr ""
15928
15929 #. type: =head2
15930 #: ../fish/guestfish-actions.pod:5042
15931 msgid "write"
15932 msgstr "write"
15933
15934 #. type: verbatim
15935 #: ../fish/guestfish-actions.pod:5044
15936 #, no-wrap
15937 msgid ""
15938 " write path content\n"
15939 "\n"
15940 msgstr ""
15941 " write шлях дані\n"
15942 "\n"
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
15946 msgid ""
15947 "This call creates a file called C<path>.  The content of the file is the "
15948 "string C<content> (which can contain any 8 bit data)."
15949 msgstr ""
15950
15951 #. type: textblock
15952 #: ../fish/guestfish-actions.pod:5049
15953 msgid "See also L</write-append>."
15954 msgstr ""
15955
15956 #. type: =head2
15957 #: ../fish/guestfish-actions.pod:5054
15958 msgid "write-append"
15959 msgstr ""
15960
15961 #. type: verbatim
15962 #: ../fish/guestfish-actions.pod:5056
15963 #, no-wrap
15964 msgid ""
15965 " write-append path content\n"
15966 "\n"
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
15971 msgid ""
15972 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15973 "not exist, then a new file is created."
15974 msgstr ""
15975
15976 #. type: textblock
15977 #: ../fish/guestfish-actions.pod:5061
15978 msgid "See also L</write>."
15979 msgstr ""
15980
15981 #. type: =head2
15982 #: ../fish/guestfish-actions.pod:5066
15983 msgid "write-file"
15984 msgstr "write-file"
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish-actions.pod:5068
15988 #, no-wrap
15989 msgid ""
15990 " write-file path content size\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7702
15996 msgid ""
15997 "This call creates a file called C<path>.  The contents of the file is the "
15998 "string C<content> (which can contain any 8 bit data), with length C<size>."
15999 msgstr ""
16000
16001 #. type: textblock
16002 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7706
16003 msgid ""
16004 "As a special case, if C<size> is C<0> then the length is calculated using "
16005 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7710
16010 msgid ""
16011 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16012 "I<not> work, even if the length is specified."
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:5084
16017 msgid ""
16018 "I<This function is deprecated.> In new code, use the L</write> call instead."
16019 msgstr ""
16020
16021 #. type: =head2
16022 #: ../fish/guestfish-actions.pod:5091
16023 msgid "zegrep"
16024 msgstr "zegrep"
16025
16026 #. type: verbatim
16027 #: ../fish/guestfish-actions.pod:5093
16028 #, no-wrap
16029 msgid ""
16030 " zegrep regex path\n"
16031 "\n"
16032 msgstr ""
16033 " zegrep формальний_вираз шлях\n"
16034 "\n"
16035
16036 #. type: textblock
16037 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
16038 msgid ""
16039 "This calls the external C<zegrep> program and returns the matching lines."
16040 msgstr ""
16041
16042 #. type: =head2
16043 #: ../fish/guestfish-actions.pod:5101
16044 msgid "zegrepi"
16045 msgstr "zegrepi"
16046
16047 #. type: verbatim
16048 #: ../fish/guestfish-actions.pod:5103
16049 #, no-wrap
16050 msgid ""
16051 " zegrepi regex path\n"
16052 "\n"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
16057 msgid ""
16058 "This calls the external C<zegrep -i> program and returns the matching lines."
16059 msgstr ""
16060
16061 #. type: =head2
16062 #: ../fish/guestfish-actions.pod:5111
16063 msgid "zero"
16064 msgstr "zero"
16065
16066 #. type: verbatim
16067 #: ../fish/guestfish-actions.pod:5113
16068 #, no-wrap
16069 msgid ""
16070 " zero device\n"
16071 "\n"
16072 msgstr ""
16073 " zero пристрій\n"
16074 "\n"
16075
16076 #. type: textblock
16077 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
16078 msgid "This command writes zeroes over the first few blocks of C<device>."
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
16083 msgid ""
16084 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16085 "securely wipe the device).  It should be sufficient to remove any partition "
16086 "tables, filesystem superblocks and so on."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish-actions.pod:5121
16091 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16092 msgstr ""
16093
16094 #. type: =head2
16095 #: ../fish/guestfish-actions.pod:5124
16096 msgid "zero-device"
16097 msgstr "zero-device"
16098
16099 #. type: verbatim
16100 #: ../fish/guestfish-actions.pod:5126
16101 #, no-wrap
16102 msgid ""
16103 " zero-device device\n"
16104 "\n"
16105 msgstr ""
16106 " zero-device пристрій\n"
16107 "\n"
16108
16109 #. type: textblock
16110 #: ../fish/guestfish-actions.pod:5128
16111 msgid ""
16112 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16113 "which just zeroes the first few blocks of a device."
16114 msgstr ""
16115
16116 #. type: =head2
16117 #: ../fish/guestfish-actions.pod:5135
16118 msgid "zerofree"
16119 msgstr "zerofree"
16120
16121 #. type: verbatim
16122 #: ../fish/guestfish-actions.pod:5137
16123 #, no-wrap
16124 msgid ""
16125 " zerofree device\n"
16126 "\n"
16127 msgstr ""
16128 " zerofree пристрій\n"
16129 "\n"
16130
16131 #. type: textblock
16132 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
16133 msgid ""
16134 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16135 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16136 "possible to compress the filesystem more effectively."
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
16141 msgid "You should B<not> run this program if the filesystem is mounted."
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
16146 msgid ""
16147 "It is possible that using this program can damage the filesystem or data on "
16148 "the filesystem."
16149 msgstr ""
16150
16151 #. type: =head2
16152 #: ../fish/guestfish-actions.pod:5150
16153 msgid "zfgrep"
16154 msgstr "zfgrep"
16155
16156 #. type: verbatim
16157 #: ../fish/guestfish-actions.pod:5152
16158 #, no-wrap
16159 msgid ""
16160 " zfgrep pattern path\n"
16161 "\n"
16162 msgstr ""
16163 " zfgrep шаблон шлях\n"
16164 "\n"
16165
16166 #. type: textblock
16167 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
16168 msgid ""
16169 "This calls the external C<zfgrep> program and returns the matching lines."
16170 msgstr ""
16171
16172 #. type: =head2
16173 #: ../fish/guestfish-actions.pod:5160
16174 msgid "zfgrepi"
16175 msgstr "zfgrepi"
16176
16177 #. type: verbatim
16178 #: ../fish/guestfish-actions.pod:5162
16179 #, no-wrap
16180 msgid ""
16181 " zfgrepi pattern path\n"
16182 "\n"
16183 msgstr ""
16184 " zfgrepi шаблон шлях\n"
16185 "\n"
16186
16187 #. type: textblock
16188 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
16189 msgid ""
16190 "This calls the external C<zfgrep -i> program and returns the matching lines."
16191 msgstr ""
16192
16193 #. type: =head2
16194 #: ../fish/guestfish-actions.pod:5170
16195 msgid "zfile"
16196 msgstr "zfile"
16197
16198 #. type: verbatim
16199 #: ../fish/guestfish-actions.pod:5172
16200 #, no-wrap
16201 msgid ""
16202 " zfile meth path\n"
16203 "\n"
16204 msgstr ""
16205 " zfile метод шлях\n"
16206 "\n"
16207
16208 #. type: textblock
16209 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7877
16210 msgid ""
16211 "This command runs C<file> after first decompressing C<path> using C<method>."
16212 msgstr ""
16213
16214 #. type: textblock
16215 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7880
16216 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:5179
16221 msgid ""
16222 "Since 1.0.63, use L</file> instead which can now process compressed files."
16223 msgstr ""
16224
16225 #. type: textblock
16226 #: ../fish/guestfish-actions.pod:5182
16227 msgid ""
16228 "I<This function is deprecated.> In new code, use the L</file> call instead."
16229 msgstr ""
16230
16231 #. type: =head2
16232 #: ../fish/guestfish-actions.pod:5189
16233 msgid "zgrep"
16234 msgstr "zgrep"
16235
16236 #. type: verbatim
16237 #: ../fish/guestfish-actions.pod:5191
16238 #, no-wrap
16239 msgid ""
16240 " zgrep regex path\n"
16241 "\n"
16242 msgstr ""
16243 " zgrep формальний_вираз шлях\n"
16244 "\n"
16245
16246 #. type: textblock
16247 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
16248 msgid ""
16249 "This calls the external C<zgrep> program and returns the matching lines."
16250 msgstr ""
16251
16252 #. type: =head2
16253 #: ../fish/guestfish-actions.pod:5199
16254 msgid "zgrepi"
16255 msgstr "zgrepi"
16256
16257 #. type: verbatim
16258 #: ../fish/guestfish-actions.pod:5201
16259 #, no-wrap
16260 msgid ""
16261 " zgrepi regex path\n"
16262 "\n"
16263 msgstr ""
16264 " zgrepi формальний_вираз шлях\n"
16265 "\n"
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
16269 msgid ""
16270 "This calls the external C<zgrep -i> program and returns the matching lines."
16271 msgstr ""
16272
16273 #. type: =head2
16274 #: ../fish/guestfish-commands.pod:1
16275 msgid "alloc"
16276 msgstr "alloc"
16277
16278 #. type: =head2
16279 #: ../fish/guestfish-commands.pod:3
16280 msgid "allocate"
16281 msgstr ""
16282
16283 #. type: verbatim
16284 #: ../fish/guestfish-commands.pod:5
16285 #, no-wrap
16286 msgid ""
16287 " alloc filename size\n"
16288 "\n"
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-commands.pod:7
16293 msgid ""
16294 "This creates an empty (zeroed) file of the given size, and then adds so it "
16295 "can be further examined."
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16300 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16305 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-commands.pod:14
16310 msgid ""
16311 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16312 "image, see L</PREPARED DISK IMAGES>."
16313 msgstr ""
16314
16315 #. type: =head2
16316 #: ../fish/guestfish-commands.pod:17
16317 msgid "copy-in"
16318 msgstr "copy-in"
16319
16320 #. type: verbatim
16321 #: ../fish/guestfish-commands.pod:19
16322 #, no-wrap
16323 msgid ""
16324 " copy-in local [local ...] /remotedir\n"
16325 "\n"
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-commands.pod:21
16330 msgid ""
16331 "C<copy-in> copies local files or directories recursively into the disk "
16332 "image, placing them in the directory called C</remotedir> (which must "
16333 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16334 "other commands as necessary."
16335 msgstr ""
16336
16337 #. type: textblock
16338 #: ../fish/guestfish-commands.pod:26
16339 msgid ""
16340 "Multiple local files and directories can be specified, but the last "
16341 "parameter must always be a remote directory.  Wildcards cannot be used."
16342 msgstr ""
16343
16344 #. type: =head2
16345 #: ../fish/guestfish-commands.pod:30
16346 msgid "copy-out"
16347 msgstr "copy-out"
16348
16349 #. type: verbatim
16350 #: ../fish/guestfish-commands.pod:32
16351 #, no-wrap
16352 msgid ""
16353 " copy-out remote [remote ...] localdir\n"
16354 "\n"
16355 msgstr ""
16356
16357 #. type: textblock
16358 #: ../fish/guestfish-commands.pod:34
16359 msgid ""
16360 "C<copy-out> copies remote files or directories recursively out of the disk "
16361 "image, placing them on the host disk in a local directory called C<localdir> "
16362 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16363 "download>, L</tar-out> and other commands as necessary."
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../fish/guestfish-commands.pod:40
16368 msgid ""
16369 "Multiple remote files and directories can be specified, but the last "
16370 "parameter must always be a local directory.  To download to the current "
16371 "directory, use C<.> as in:"
16372 msgstr ""
16373
16374 #. type: verbatim
16375 #: ../fish/guestfish-commands.pod:44
16376 #, no-wrap
16377 msgid ""
16378 " copy-out /home .\n"
16379 "\n"
16380 msgstr ""
16381 " copy-out /home .\n"
16382 "\n"
16383
16384 #. type: textblock
16385 #: ../fish/guestfish-commands.pod:46
16386 msgid ""
16387 "Wildcards cannot be used in the ordinary command, but you can use them with "
16388 "the help of L</glob> like this:"
16389 msgstr ""
16390
16391 #. type: verbatim
16392 #: ../fish/guestfish-commands.pod:49
16393 #, no-wrap
16394 msgid ""
16395 " glob copy-out /home/* .\n"
16396 "\n"
16397 msgstr ""
16398 " glob copy-out /home/* .\n"
16399 "\n"
16400
16401 #. type: =head2
16402 #: ../fish/guestfish-commands.pod:51
16403 msgid "display"
16404 msgstr ""
16405
16406 #. type: verbatim
16407 #: ../fish/guestfish-commands.pod:53
16408 #, no-wrap
16409 msgid ""
16410 " display filename\n"
16411 "\n"
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-commands.pod:55
16416 msgid ""
16417 "Use C<display> (a graphical display program) to display an image file.  It "
16418 "downloads the file, and runs C<display> on it."
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish-commands.pod:58
16423 msgid ""
16424 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16425 "environment variable.  For example to use the GNOME display program:"
16426 msgstr ""
16427
16428 #. type: verbatim
16429 #: ../fish/guestfish-commands.pod:61
16430 #, no-wrap
16431 msgid ""
16432 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16433 "\n"
16434 msgstr ""
16435
16436 #. type: textblock
16437 #: ../fish/guestfish-commands.pod:63
16438 msgid "See also L<display(1)>."
16439 msgstr ""
16440
16441 #. type: =head2
16442 #: ../fish/guestfish-commands.pod:65
16443 msgid "echo"
16444 msgstr "echo"
16445
16446 #. type: verbatim
16447 #: ../fish/guestfish-commands.pod:67
16448 #, no-wrap
16449 msgid ""
16450 " echo [params ...]\n"
16451 "\n"
16452 msgstr ""
16453 " echo [параметри...]\n"
16454 "\n"
16455
16456 #. type: textblock
16457 #: ../fish/guestfish-commands.pod:69
16458 msgid "This echos the parameters to the terminal."
16459 msgstr ""
16460
16461 #. type: =head2
16462 #: ../fish/guestfish-commands.pod:71
16463 msgid "edit"
16464 msgstr "edit"
16465
16466 #. type: =head2
16467 #: ../fish/guestfish-commands.pod:73
16468 msgid "vi"
16469 msgstr "vi"
16470
16471 #. type: =head2
16472 #: ../fish/guestfish-commands.pod:75
16473 msgid "emacs"
16474 msgstr "emacs"
16475
16476 #. type: verbatim
16477 #: ../fish/guestfish-commands.pod:77
16478 #, no-wrap
16479 msgid ""
16480 " edit filename\n"
16481 "\n"
16482 msgstr ""
16483 " edit назва_файла\n"
16484 "\n"
16485
16486 #. type: textblock
16487 #: ../fish/guestfish-commands.pod:79
16488 msgid ""
16489 "This is used to edit a file.  It downloads the file, edits it locally using "
16490 "your editor, then uploads the result."
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-commands.pod:82
16495 msgid ""
16496 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16497 "or C<emacs> you will get those corresponding editors."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-commands.pod:86
16502 msgid "glob"
16503 msgstr "glob"
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-commands.pod:88
16507 #, no-wrap
16508 msgid ""
16509 " glob command args...\n"
16510 "\n"
16511 msgstr ""
16512 " glob команда параметри...\n"
16513 "\n"
16514
16515 #. type: textblock
16516 #: ../fish/guestfish-commands.pod:90
16517 msgid ""
16518 "Expand wildcards in any paths in the args list, and run C<command> "
16519 "repeatedly on each matching path."
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../fish/guestfish-commands.pod:93
16524 msgid "See L</WILDCARDS AND GLOBBING>."
16525 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16526
16527 #. type: =head2
16528 #: ../fish/guestfish-commands.pod:95
16529 msgid "hexedit"
16530 msgstr "hexedit"
16531
16532 #. type: verbatim
16533 #: ../fish/guestfish-commands.pod:97
16534 #, no-wrap
16535 msgid ""
16536 " hexedit <filename|device>\n"
16537 " hexedit <filename|device> <max>\n"
16538 " hexedit <filename|device> <start> <max>\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish-commands.pod:101
16544 msgid ""
16545 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16546 "device."
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../fish/guestfish-commands.pod:104
16551 msgid ""
16552 "This command works by downloading potentially the whole file or device, "
16553 "editing it locally, then uploading it.  If the file or device is large, you "
16554 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16555 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16556 "usual modifiers allowed such as C<1M> (1 megabyte)."
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish-commands.pod:111
16561 msgid "For example to edit the first few sectors of a disk you might do:"
16562 msgstr ""
16563
16564 #. type: verbatim
16565 #: ../fish/guestfish-commands.pod:114
16566 #, no-wrap
16567 msgid ""
16568 " hexedit /dev/sda 1M\n"
16569 "\n"
16570 msgstr ""
16571 " hexedit /dev/sda 1M\n"
16572 "\n"
16573
16574 #. type: textblock
16575 #: ../fish/guestfish-commands.pod:116
16576 msgid ""
16577 "which would allow you to edit anywhere within the first megabyte of the disk."
16578 msgstr ""
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-commands.pod:119
16582 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16583 msgstr ""
16584
16585 #. type: verbatim
16586 #: ../fish/guestfish-commands.pod:121
16587 #, no-wrap
16588 msgid ""
16589 " hexedit /dev/sda1 0x400 0x400\n"
16590 "\n"
16591 msgstr ""
16592 " hexedit /dev/sda1 0x400 0x400\n"
16593 "\n"
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-commands.pod:123
16597 msgid "(assuming the superblock is in the standard location)."
16598 msgstr ""
16599
16600 #. type: textblock
16601 #: ../fish/guestfish-commands.pod:125
16602 msgid ""
16603 "This command requires the external L<hexedit(1)> program.  You can specify "
16604 "another program to use by setting the C<HEXEDITOR> environment variable."
16605 msgstr ""
16606
16607 #. type: textblock
16608 #: ../fish/guestfish-commands.pod:129
16609 msgid "See also L</hexdump>."
16610 msgstr "Див. також L</hexdump>."
16611
16612 #. type: =head2
16613 #: ../fish/guestfish-commands.pod:131
16614 msgid "lcd"
16615 msgstr "lcd"
16616
16617 #. type: verbatim
16618 #: ../fish/guestfish-commands.pod:133
16619 #, no-wrap
16620 msgid ""
16621 " lcd directory\n"
16622 "\n"
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-commands.pod:135
16627 msgid ""
16628 "Change the local directory, ie. the current directory of guestfish itself."
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-commands.pod:138
16633 msgid "Note that C<!cd> won't do what you might expect."
16634 msgstr ""
16635
16636 #. type: =head2
16637 #: ../fish/guestfish-commands.pod:140
16638 msgid "man"
16639 msgstr "man"
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-commands.pod:142
16643 msgid "manual"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-commands.pod:144
16648 #, no-wrap
16649 msgid ""
16650 "  man\n"
16651 "\n"
16652 msgstr ""
16653 "  man\n"
16654 "\n"
16655
16656 #. type: textblock
16657 #: ../fish/guestfish-commands.pod:146
16658 msgid "Opens the manual page for guestfish."
16659 msgstr ""
16660
16661 #. type: =head2
16662 #: ../fish/guestfish-commands.pod:148
16663 msgid "more"
16664 msgstr "more"
16665
16666 #. type: =head2
16667 #: ../fish/guestfish-commands.pod:150
16668 msgid "less"
16669 msgstr "less"
16670
16671 #. type: verbatim
16672 #: ../fish/guestfish-commands.pod:152
16673 #, no-wrap
16674 msgid ""
16675 " more filename\n"
16676 "\n"
16677 msgstr ""
16678
16679 #. type: verbatim
16680 #: ../fish/guestfish-commands.pod:154
16681 #, no-wrap
16682 msgid ""
16683 " less filename\n"
16684 "\n"
16685 msgstr ""
16686
16687 #. type: textblock
16688 #: ../fish/guestfish-commands.pod:156
16689 msgid "This is used to view a file."
16690 msgstr ""
16691
16692 #. type: textblock
16693 #: ../fish/guestfish-commands.pod:158
16694 msgid ""
16695 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16696 "C<less> you will get the C<less> command specifically."
16697 msgstr ""
16698
16699 #. type: =head2
16700 #: ../fish/guestfish-commands.pod:161
16701 msgid "reopen"
16702 msgstr "reopen"
16703
16704 #. type: verbatim
16705 #: ../fish/guestfish-commands.pod:163
16706 #, no-wrap
16707 msgid ""
16708 "  reopen\n"
16709 "\n"
16710 msgstr ""
16711
16712 #. type: textblock
16713 #: ../fish/guestfish-commands.pod:165
16714 msgid ""
16715 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16716 "normally, because the handle is closed properly when guestfish exits.  "
16717 "However this is occasionally useful for testing."
16718 msgstr ""
16719
16720 #. type: =head2
16721 #: ../fish/guestfish-commands.pod:169
16722 msgid "setenv"
16723 msgstr ""
16724
16725 #. type: verbatim
16726 #: ../fish/guestfish-commands.pod:171
16727 #, no-wrap
16728 msgid ""
16729 "  setenv VAR value\n"
16730 "\n"
16731 msgstr ""
16732
16733 #. type: textblock
16734 #: ../fish/guestfish-commands.pod:173
16735 msgid "Set the environment variable C<VAR> to the string C<value>."
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../fish/guestfish-commands.pod:175
16740 msgid ""
16741 "To print the value of an environment variable use a shell command such as:"
16742 msgstr ""
16743
16744 #. type: verbatim
16745 #: ../fish/guestfish-commands.pod:178
16746 #, no-wrap
16747 msgid ""
16748 " !echo $VAR\n"
16749 "\n"
16750 msgstr ""
16751
16752 #. type: =head2
16753 #: ../fish/guestfish-commands.pod:180
16754 msgid "sparse"
16755 msgstr "sparse"
16756
16757 #. type: verbatim
16758 #: ../fish/guestfish-commands.pod:182
16759 #, no-wrap
16760 msgid ""
16761 " sparse filename size\n"
16762 "\n"
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish-commands.pod:184
16767 msgid ""
16768 "This creates an empty sparse file of the given size, and then adds so it can "
16769 "be further examined."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-commands.pod:187
16774 msgid ""
16775 "In all respects it works the same as the L</alloc> command, except that the "
16776 "image file is allocated sparsely, which means that disk blocks are not "
16777 "assigned to the file until they are needed.  Sparse disk files only use "
16778 "space when written to, but they are slower and there is a danger you could "
16779 "run out of real disk space during a write operation."
16780 msgstr ""
16781
16782 #. type: =head2
16783 #: ../fish/guestfish-commands.pod:197
16784 msgid "supported"
16785 msgstr "supported"
16786
16787 #. type: verbatim
16788 #: ../fish/guestfish-commands.pod:199
16789 #, no-wrap
16790 msgid ""
16791 " supported\n"
16792 "\n"
16793 msgstr ""
16794 " supported\n"
16795 "\n"
16796
16797 #. type: textblock
16798 #: ../fish/guestfish-commands.pod:201
16799 msgid ""
16800 "This command returns a list of the optional groups known to the daemon, and "
16801 "indicates which ones are supported by this build of the libguestfs appliance."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish-commands.pod:205
16806 msgid "See also L<guestfs(3)/AVAILABILITY>."
16807 msgstr ""
16808
16809 #. type: =head2
16810 #: ../fish/guestfish-commands.pod:207
16811 msgid "time"
16812 msgstr "time"
16813
16814 #. type: verbatim
16815 #: ../fish/guestfish-commands.pod:209
16816 #, no-wrap
16817 msgid ""
16818 " time command args...\n"
16819 "\n"
16820 msgstr ""
16821
16822 #. type: textblock
16823 #: ../fish/guestfish-commands.pod:211
16824 msgid ""
16825 "Run the command as usual, but print the elapsed time afterwards.  This can "
16826 "be useful for benchmarking operations."
16827 msgstr ""
16828
16829 #. type: =head2
16830 #: ../fish/guestfish-commands.pod:214
16831 msgid "unsetenv"
16832 msgstr ""
16833
16834 #. type: verbatim
16835 #: ../fish/guestfish-commands.pod:216
16836 #, no-wrap
16837 msgid ""
16838 "  unsetenv VAR\n"
16839 "\n"
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../fish/guestfish-commands.pod:218
16844 msgid "Remove C<VAR> from the environment."
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../fish/guestfish.pod:5
16849 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16850 msgstr ""
16851
16852 #. type: verbatim
16853 #: ../fish/guestfish.pod:9
16854 #, no-wrap
16855 msgid ""
16856 " guestfish [--options] [commands]\n"
16857 "\n"
16858 msgstr ""
16859
16860 #. type: verbatim
16861 #: ../fish/guestfish.pod:11
16862 #, no-wrap
16863 msgid ""
16864 " guestfish\n"
16865 "\n"
16866 msgstr ""
16867
16868 #. type: verbatim
16869 #: ../fish/guestfish.pod:13
16870 #, no-wrap
16871 msgid ""
16872 " guestfish [--ro|--rw] -a disk.img\n"
16873 "\n"
16874 msgstr ""
16875
16876 #. type: verbatim
16877 #: ../fish/guestfish.pod:15
16878 #, no-wrap
16879 msgid ""
16880 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16881 "\n"
16882 msgstr ""
16883
16884 #. type: verbatim
16885 #: ../fish/guestfish.pod:17
16886 #, no-wrap
16887 msgid ""
16888 " guestfish -d libvirt-domain\n"
16889 "\n"
16890 msgstr ""
16891
16892 #. type: verbatim
16893 #: ../fish/guestfish.pod:19
16894 #, no-wrap
16895 msgid ""
16896 " guestfish [--ro|--rw] -a disk.img -i\n"
16897 "\n"
16898 msgstr ""
16899
16900 #. type: verbatim
16901 #: ../fish/guestfish.pod:21
16902 #, no-wrap
16903 msgid ""
16904 " guestfish -d libvirt-domain -i\n"
16905 "\n"
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:25
16910 msgid ""
16911 "Using guestfish in read/write mode on live virtual machines can be "
16912 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16913 "option to use guestfish safely if the disk image or virtual machine might be "
16914 "live."
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish.pod:32
16919 msgid ""
16920 "Guestfish is a shell and command-line tool for examining and modifying "
16921 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16922 "functionality of the guestfs API, see L<guestfs(3)>."
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:36
16927 msgid ""
16928 "Guestfish gives you structured access to the libguestfs API, from shell "
16929 "scripts or the command line or interactively.  If you want to rescue a "
16930 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16931 "command."
16932 msgstr ""
16933
16934 #. type: =head2
16935 #: ../fish/guestfish.pod:43
16936 msgid "As an interactive shell"
16937 msgstr ""
16938
16939 #. type: verbatim
16940 #: ../fish/guestfish.pod:45
16941 #, no-wrap
16942 msgid ""
16943 " $ guestfish\n"
16944 " \n"
16945 msgstr ""
16946
16947 #. type: verbatim
16948 #: ../fish/guestfish.pod:47
16949 #, no-wrap
16950 msgid ""
16951 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16952 " editing virtual machine filesystems.\n"
16953 " \n"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish.pod:50
16958 #, no-wrap
16959 msgid ""
16960 " Type: 'help' for a list of commands\n"
16961 "       'man' to read the manual\n"
16962 "       'quit' to quit the shell\n"
16963 " \n"
16964 msgstr ""
16965
16966 #. type: verbatim
16967 #: ../fish/guestfish.pod:54
16968 #, no-wrap
16969 msgid ""
16970 " ><fs> add-ro disk.img\n"
16971 " ><fs> run\n"
16972 " ><fs> list-filesystems\n"
16973 " /dev/sda1: ext4\n"
16974 " /dev/vg_guest/lv_root: ext4\n"
16975 " /dev/vg_guest/lv_swap: swap\n"
16976 " ><fs> mount /dev/vg_guest/lv_root /\n"
16977 " ><fs> cat /etc/fstab\n"
16978 " # /etc/fstab\n"
16979 " # Created by anaconda\n"
16980 " [...]\n"
16981 " ><fs> exit\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: =head2
16986 #: ../fish/guestfish.pod:67
16987 msgid "From shell scripts"
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish.pod:69
16992 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16993 msgstr ""
16994
16995 #. type: verbatim
16996 #: ../fish/guestfish.pod:71
16997 #, no-wrap
16998 msgid ""
16999 " guestfish <<_EOF_\n"
17000 " add disk.img\n"
17001 " run\n"
17002 " mount /dev/vg_guest/lv_root /\n"
17003 " write /etc/motd \"Welcome, new users\"\n"
17004 " _EOF_\n"
17005 "\n"
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish.pod:78
17010 msgid "List the LVM logical volumes in a disk image:"
17011 msgstr ""
17012
17013 #. type: verbatim
17014 #: ../fish/guestfish.pod:80
17015 #, no-wrap
17016 msgid ""
17017 " guestfish -a disk.img --ro <<_EOF_\n"
17018 " run\n"
17019 " lvs\n"
17020 " _EOF_\n"
17021 "\n"
17022 msgstr ""
17023
17024 #. type: textblock
17025 #: ../fish/guestfish.pod:85
17026 msgid "List all the filesystems in a disk image:"
17027 msgstr ""
17028
17029 #. type: verbatim
17030 #: ../fish/guestfish.pod:87
17031 #, no-wrap
17032 msgid ""
17033 " guestfish -a disk.img --ro <<_EOF_\n"
17034 " run\n"
17035 " list-filesystems\n"
17036 " _EOF_\n"
17037 "\n"
17038 msgstr ""
17039
17040 #. type: =head2
17041 #: ../fish/guestfish.pod:92
17042 msgid "On one command line"
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17047 msgid "Update C</etc/resolv.conf> in a guest:"
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish.pod:96
17052 #, no-wrap
17053 msgid ""
17054 " guestfish \\\n"
17055 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17056 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17057 "\n"
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish.pod:100
17062 msgid "Edit C</boot/grub/grub.conf> interactively:"
17063 msgstr ""
17064
17065 #. type: verbatim
17066 #: ../fish/guestfish.pod:102
17067 #, no-wrap
17068 msgid ""
17069 " guestfish --rw --add disk.img \\\n"
17070 "   --mount /dev/vg_guest/lv_root \\\n"
17071 "   --mount /dev/sda1:/boot \\\n"
17072 "   edit /boot/grub/grub.conf\n"
17073 "\n"
17074 msgstr ""
17075
17076 #. type: =head2
17077 #: ../fish/guestfish.pod:107
17078 msgid "Mount disks automatically"
17079 msgstr ""
17080
17081 #. type: textblock
17082 #: ../fish/guestfish.pod:109
17083 msgid ""
17084 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17085 msgstr ""
17086
17087 #. type: verbatim
17088 #: ../fish/guestfish.pod:112
17089 #, no-wrap
17090 msgid ""
17091 " guestfish --ro -a disk.img -i cat /etc/group\n"
17092 "\n"
17093 msgstr ""
17094
17095 #. type: verbatim
17096 #: ../fish/guestfish.pod:114
17097 #, no-wrap
17098 msgid ""
17099 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17100 "\n"
17101 msgstr ""
17102
17103 #. type: textblock
17104 #: ../fish/guestfish.pod:116
17105 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17106 msgstr ""
17107
17108 #. type: verbatim
17109 #: ../fish/guestfish.pod:118
17110 #, no-wrap
17111 msgid ""
17112 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: =head2
17117 #: ../fish/guestfish.pod:120
17118 msgid "As a script interpreter"
17119 msgstr ""
17120
17121 #. type: textblock
17122 #: ../fish/guestfish.pod:122
17123 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17124 msgstr ""
17125
17126 #. type: verbatim
17127 #: ../fish/guestfish.pod:124
17128 #, no-wrap
17129 msgid ""
17130 " #!/usr/bin/guestfish -f\n"
17131 " sparse test1.img 100M\n"
17132 " run\n"
17133 " part-disk /dev/sda mbr\n"
17134 " mkfs ext2 /dev/sda1\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: =head2
17139 #: ../fish/guestfish.pod:130
17140 msgid "Start with a prepared disk"
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish.pod:132
17145 msgid ""
17146 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17147 "single ext2-formatted partition:"
17148 msgstr ""
17149
17150 #. type: verbatim
17151 #: ../fish/guestfish.pod:135
17152 #, no-wrap
17153 msgid ""
17154 " guestfish -N fs\n"
17155 "\n"
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish.pod:137
17160 msgid "To list what is available do:"
17161 msgstr ""
17162
17163 #. type: verbatim
17164 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
17165 #, no-wrap
17166 msgid ""
17167 " guestfish -N help | less\n"
17168 "\n"
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../fish/guestfish.pod:141
17173 msgid "Remote control"
17174 msgstr "Дистанційне керування"
17175
17176 #. type: verbatim
17177 #: ../fish/guestfish.pod:143
17178 #, no-wrap
17179 msgid ""
17180 " eval \"`guestfish --listen`\"\n"
17181 " guestfish --remote add-ro disk.img\n"
17182 " guestfish --remote run\n"
17183 " guestfish --remote lvs\n"
17184 "\n"
17185 msgstr ""
17186 " eval \"`guestfish --listen`\"\n"
17187 " guestfish --remote add-ro disk.img\n"
17188 " guestfish --remote run\n"
17189 " guestfish --remote lvs\n"
17190 "\n"
17191
17192 #. type: textblock
17193 #: ../fish/guestfish.pod:154
17194 msgid "Displays general help on options."
17195 msgstr ""
17196
17197 #. type: =item
17198 #: ../fish/guestfish.pod:158
17199 msgid "B<--cmd-help>"
17200 msgstr "B<--cmd-help>"
17201
17202 #. type: textblock
17203 #: ../fish/guestfish.pod:160
17204 msgid "Lists all available guestfish commands."
17205 msgstr ""
17206
17207 #. type: =item
17208 #: ../fish/guestfish.pod:162
17209 msgid "B<-h cmd>"
17210 msgstr "B<-h команда>"
17211
17212 #. type: =item
17213 #: ../fish/guestfish.pod:164
17214 msgid "B<--cmd-help cmd>"
17215 msgstr "B<--cmd-help команда>"
17216
17217 #. type: textblock
17218 #: ../fish/guestfish.pod:166
17219 msgid "Displays detailed help on a single command C<cmd>."
17220 msgstr ""
17221
17222 #. type: =item
17223 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17224 msgid "B<-a image>"
17225 msgstr "B<-a образ>"
17226
17227 #. type: =item
17228 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17229 msgid "B<--add image>"
17230 msgstr "B<--add образ>"
17231
17232 #. type: textblock
17233 #: ../fish/guestfish.pod:172
17234 msgid "Add a block device or virtual machine image to the shell."
17235 msgstr ""
17236
17237 #. type: textblock
17238 #: ../fish/guestfish.pod:177
17239 msgid ""
17240 "Using this flag is mostly equivalent to using the C<add> command, with "
17241 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17242 "the I<--format=...> flag was given."
17243 msgstr ""
17244
17245 #. type: textblock
17246 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17247 msgid ""
17248 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17249 "URI to use.  The default is to use the default libvirt connection."
17250 msgstr ""
17251
17252 #. type: =item
17253 #: ../fish/guestfish.pod:189
17254 msgid "B<--csh>"
17255 msgstr "B<--csh>"
17256
17257 #. type: textblock
17258 #: ../fish/guestfish.pod:191
17259 msgid ""
17260 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17261 "section L</REMOTE CONTROL AND CSH> below."
17262 msgstr ""
17263
17264 #. type: =item
17265 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17266 msgid "B<-d libvirt-domain>"
17267 msgstr "B<-d домен-libvirt>"
17268
17269 #. type: =item
17270 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17271 msgid "B<--domain libvirt-domain>"
17272 msgstr "B<--domain домен-libvirt>"
17273
17274 #. type: textblock
17275 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17276 msgid ""
17277 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17278 "used, then any libvirt domain can be used.  However in write mode, only "
17279 "libvirt domains which are shut down can be named here."
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17284 msgid "Domain UUIDs can be used instead of names."
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish.pod:204
17289 msgid ""
17290 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17291 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17292 "if the I<--format:...> flag was given."
17293 msgstr ""
17294
17295 #. type: =item
17296 #: ../fish/guestfish.pod:208
17297 msgid "B<-D>"
17298 msgstr "B<-D>"
17299
17300 #. type: =item
17301 #: ../fish/guestfish.pod:210
17302 msgid "B<--no-dest-paths>"
17303 msgstr "B<--no-dest-paths>"
17304
17305 #. type: textblock
17306 #: ../fish/guestfish.pod:212
17307 msgid ""
17308 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17309 "to hit the tab key to complete paths on the guest filesystem, but this "
17310 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17311 "allow this feature to be disabled."
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17316 msgid ""
17317 "When prompting for keys and passphrases, guestfish normally turns echoing "
17318 "off so you cannot see what you are typing.  If you are not worried about "
17319 "Tempest attacks and there is no one else in the room you can specify this "
17320 "flag to see what you are typing."
17321 msgstr ""
17322
17323 #. type: =item
17324 #: ../fish/guestfish.pod:224
17325 msgid "B<-f file>"
17326 msgstr "B<-f файл>"
17327
17328 #. type: =item
17329 #: ../fish/guestfish.pod:226
17330 msgid "B<--file file>"
17331 msgstr "B<--file файл>"
17332
17333 #. type: textblock
17334 #: ../fish/guestfish.pod:228
17335 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17336 msgstr ""
17337
17338 #. type: verbatim
17339 #: ../fish/guestfish.pod:231
17340 #, no-wrap
17341 msgid ""
17342 " #!/usr/bin/guestfish -f\n"
17343 "\n"
17344 msgstr ""
17345 " #!/usr/bin/guestfish -f\n"
17346 "\n"
17347
17348 #. type: verbatim
17349 #: ../fish/guestfish.pod:244
17350 #, no-wrap
17351 msgid ""
17352 " guestfish --format=raw -a disk.img\n"
17353 "\n"
17354 msgstr ""
17355 " guestfish --format=raw -a disk.img\n"
17356 "\n"
17357
17358 #. type: verbatim
17359 #: ../fish/guestfish.pod:248
17360 #, no-wrap
17361 msgid ""
17362 " guestfish --format=raw -a disk.img --format -a another.img\n"
17363 "\n"
17364 msgstr ""
17365 " guestfish --format=raw -a disk.img --format -a another.img\n"
17366 "\n"
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:253
17370 msgid ""
17371 "If you have untrusted raw-format guest disk images, you should use this "
17372 "option to specify the disk format.  This avoids a possible security problem "
17373 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17374 msgstr ""
17375
17376 #. type: =item
17377 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17378 msgid "B<--inspector>"
17379 msgstr "B<--inspector>"
17380
17381 #. type: textblock
17382 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17383 msgid ""
17384 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17385 "system and mount filesystems as they would be mounted on the real virtual "
17386 "machine."
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish.pod:266
17391 msgid "Typical usage is either:"
17392 msgstr ""
17393
17394 #. type: verbatim
17395 #: ../fish/guestfish.pod:268
17396 #, no-wrap
17397 msgid ""
17398 " guestfish -d myguest -i\n"
17399 "\n"
17400 msgstr ""
17401 " guestfish -d myguest -i\n"
17402 "\n"
17403
17404 #. type: textblock
17405 #: ../fish/guestfish.pod:270
17406 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17407 msgstr ""
17408
17409 #. type: verbatim
17410 #: ../fish/guestfish.pod:272
17411 #, no-wrap
17412 msgid ""
17413 " guestfish --ro -d myguest -i\n"
17414 "\n"
17415 msgstr ""
17416 " guestfish --ro -d myguest -i\n"
17417 "\n"
17418
17419 #. type: textblock
17420 #: ../fish/guestfish.pod:274
17421 msgid "(for active domains, readonly), or specify the block device directly:"
17422 msgstr ""
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish.pod:276
17426 #, no-wrap
17427 msgid ""
17428 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17429 "\n"
17430 msgstr ""
17431 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17432 "\n"
17433
17434 #. type: textblock
17435 #: ../fish/guestfish.pod:278
17436 msgid ""
17437 "Note that the command line syntax changed slightly over older versions of "
17438 "guestfish.  You can still use the old syntax:"
17439 msgstr ""
17440
17441 #. type: verbatim
17442 #: ../fish/guestfish.pod:281
17443 #, no-wrap
17444 msgid ""
17445 " guestfish [--ro] -i disk.img\n"
17446 "\n"
17447 msgstr ""
17448 " guestfish [--ro] -i disk.img\n"
17449 "\n"
17450
17451 #. type: verbatim
17452 #: ../fish/guestfish.pod:283
17453 #, no-wrap
17454 msgid ""
17455 " guestfish [--ro] -i libvirt-domain\n"
17456 "\n"
17457 msgstr ""
17458
17459 #. type: textblock
17460 #: ../fish/guestfish.pod:285
17461 msgid ""
17462 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17463 "then using other commands to mount the filesystems that were found."
17464 msgstr ""
17465
17466 #. type: =item
17467 #: ../fish/guestfish.pod:294
17468 msgid "B<--listen>"
17469 msgstr "B<--listen>"
17470
17471 #. type: textblock
17472 #: ../fish/guestfish.pod:296
17473 msgid ""
17474 "Fork into the background and listen for remote commands.  See section L</"
17475 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17476 msgstr ""
17477
17478 #. type: =item
17479 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17480 msgid "B<--live>"
17481 msgstr "B<--live>"
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17485 msgid ""
17486 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17487 "ATTACHING TO RUNNING DAEMONS>)."
17488 msgstr ""
17489
17490 #. type: =item
17491 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17492 msgid "B<-m dev[:mountpoint[:options]]>"
17493 msgstr ""
17494
17495 #. type: =item
17496 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17497 msgid "B<--mount dev[:mountpoint[:options]]>"
17498 msgstr ""
17499
17500 #. type: textblock
17501 #: ../fish/guestfish.pod:308
17502 msgid "Mount the named partition or logical volume on the given mountpoint."
17503 msgstr ""
17504
17505 #. type: textblock
17506 #: ../fish/guestfish.pod:310
17507 msgid "If the mountpoint is omitted, it defaults to C</>."
17508 msgstr ""
17509
17510 #. type: textblock
17511 #: ../fish/guestfish.pod:312
17512 msgid "You have to mount something on C</> before most commands will work."
17513 msgstr ""
17514
17515 #. type: textblock
17516 #: ../fish/guestfish.pod:314
17517 msgid ""
17518 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17519 "launched."
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:317
17524 msgid ""
17525 "If you don't know what filesystems a disk image contains, you can either run "
17526 "guestfish without this option, then list the partitions, filesystems and LVs "
17527 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17528 "commands), or you can use the L<virt-filesystems(1)> program."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17533 msgid ""
17534 "The third (and rarely used) part of the mount parameter is the list of mount "
17535 "options used to mount the underlying filesystem.  If this is not given, then "
17536 "the mount options are either the empty string or C<ro> (the latter if the "
17537 "I<--ro> flag is used).  By specifying the mount options, you override this "
17538 "default choice.  Probably the only time you would use this is to enable ACLs "
17539 "and/or extended attributes if the filesystem can support them:"
17540 msgstr ""
17541
17542 #. type: verbatim
17543 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17544 #, no-wrap
17545 msgid ""
17546 " -m /dev/sda1:/:acl,user_xattr\n"
17547 "\n"
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish.pod:333
17552 msgid "Using this flag is equivalent to using the C<mount-options> command."
17553 msgstr ""
17554
17555 #. type: =item
17556 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17557 #: ../resize/virt-resize.pod:352
17558 msgid "B<-n>"
17559 msgstr "B<-n>"
17560
17561 #. type: =item
17562 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17563 msgid "B<--no-sync>"
17564 msgstr "B<--no-sync>"
17565
17566 #. type: textblock
17567 #: ../fish/guestfish.pod:339
17568 msgid ""
17569 "Disable autosync.  This is enabled by default.  See the discussion of "
17570 "autosync in the L<guestfs(3)> manpage."
17571 msgstr ""
17572
17573 #. type: =item
17574 #: ../fish/guestfish.pod:342
17575 msgid "B<-N type>"
17576 msgstr "B<-N тип>"
17577
17578 #. type: =item
17579 #: ../fish/guestfish.pod:344
17580 msgid "B<--new type>"
17581 msgstr "B<--new тип>"
17582
17583 #. type: =item
17584 #: ../fish/guestfish.pod:346
17585 msgid "B<-N help>"
17586 msgstr "B<-N help>"
17587
17588 #. type: textblock
17589 #: ../fish/guestfish.pod:348
17590 msgid ""
17591 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17592 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17593 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17594 "IMAGES> below."
17595 msgstr ""
17596
17597 #. type: =item
17598 #: ../fish/guestfish.pod:353
17599 msgid "B<--progress-bars>"
17600 msgstr "B<--progress-bars>"
17601
17602 #. type: textblock
17603 #: ../fish/guestfish.pod:355
17604 msgid "Enable progress bars, even when guestfish is used non-interactively."
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish.pod:357
17609 msgid ""
17610 "Progress bars are enabled by default when guestfish is used as an "
17611 "interactive shell."
17612 msgstr ""
17613
17614 #. type: =item
17615 #: ../fish/guestfish.pod:360
17616 msgid "B<--no-progress-bars>"
17617 msgstr "B<--no-progress-bars>"
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:362
17621 msgid "Disable progress bars."
17622 msgstr ""
17623
17624 #. type: =item
17625 #: ../fish/guestfish.pod:364
17626 msgid "B<--remote[=pid]>"
17627 msgstr "B<--remote[=pid]>"
17628
17629 #. type: textblock
17630 #: ../fish/guestfish.pod:366
17631 msgid ""
17632 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17633 "CONTROL GUESTFISH OVER A SOCKET> below."
17634 msgstr ""
17635
17636 #. type: =item
17637 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17638 #: ../rescue/virt-rescue.pod:161
17639 msgid "B<-r>"
17640 msgstr "B<-r>"
17641
17642 #. type: =item
17643 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17644 #: ../rescue/virt-rescue.pod:163
17645 msgid "B<--ro>"
17646 msgstr "B<--ro>"
17647
17648 #. type: textblock
17649 #: ../fish/guestfish.pod:373
17650 msgid ""
17651 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17652 "mounts are done read-only."
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17657 msgid ""
17658 "The option must always be used if the disk image or virtual machine might be "
17659 "running, and is generally recommended in cases where you don't need write "
17660 "access to the disk."
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:380
17665 msgid ""
17666 "Note that prepared disk images created with I<-N> are not affected by this "
17667 "option.  Also commands like C<add> are not affected - you have to specify "
17668 "the C<readonly:true> option explicitly if you need it."
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../fish/guestfish.pod:384
17673 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17674 msgstr ""
17675
17676 #. type: =item
17677 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17678 #: ../rescue/virt-rescue.pod:173
17679 msgid "B<--selinux>"
17680 msgstr "B<--selinux>"
17681
17682 #. type: textblock
17683 #: ../fish/guestfish.pod:388
17684 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish.pod:394
17689 msgid ""
17690 "Enable very verbose messages.  This is particularly useful if you find a bug."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish.pod:401
17695 msgid "Display the guestfish / libguestfs version number and exit."
17696 msgstr ""
17697
17698 #. type: =item
17699 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17700 #: ../rescue/virt-rescue.pod:190
17701 msgid "B<-w>"
17702 msgstr "B<-w>"
17703
17704 #. type: =item
17705 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17706 #: ../rescue/virt-rescue.pod:192
17707 msgid "B<--rw>"
17708 msgstr "B<--rw>"
17709
17710 #. type: textblock
17711 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17712 msgid ""
17713 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17714 "mounts are done read-write."
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:410
17719 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:414
17724 msgid "Echo each command before executing it."
17725 msgstr ""
17726
17727 #. type: =head1
17728 #: ../fish/guestfish.pod:418
17729 msgid "COMMANDS ON COMMAND LINE"
17730 msgstr ""
17731
17732 #. type: textblock
17733 #: ../fish/guestfish.pod:420
17734 msgid ""
17735 "Any additional (non-option) arguments are treated as commands to execute."
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish.pod:423
17740 msgid ""
17741 "Commands to execute should be separated by a colon (C<:>), where the colon "
17742 "is a separate parameter.  Thus:"
17743 msgstr ""
17744
17745 #. type: verbatim
17746 #: ../fish/guestfish.pod:426
17747 #, no-wrap
17748 msgid ""
17749 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17750 "\n"
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../fish/guestfish.pod:428
17755 msgid ""
17756 "If there are no additional arguments, then we enter a shell, either an "
17757 "interactive shell with a prompt (if the input is a terminal) or a non-"
17758 "interactive shell."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish.pod:432
17763 msgid ""
17764 "In either command line mode or non-interactive shell, the first command that "
17765 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17766 "prompt) if a command fails, you can continue to enter commands."
17767 msgstr ""
17768
17769 #. type: =head1
17770 #: ../fish/guestfish.pod:437
17771 msgid "USING launch (OR run)"
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../fish/guestfish.pod:439
17776 msgid ""
17777 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17778 "then launch it, then mount any disks you need, and finally issue actions/"
17779 "commands.  So the general order of the day is:"
17780 msgstr ""
17781
17782 #. type: textblock
17783 #: ../fish/guestfish.pod:447
17784 msgid "add or -a/--add"
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish.pod:451
17789 msgid "launch (aka run)"
17790 msgstr ""
17791
17792 #. type: textblock
17793 #: ../fish/guestfish.pod:455
17794 msgid "mount or -m/--mount"
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish.pod:459
17799 msgid "any other commands"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish.pod:463
17804 msgid ""
17805 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17806 "guest before mounting or performing any other commands."
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:466
17811 msgid ""
17812 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17813 "I<--new> options were given then C<run> is done automatically, simply "
17814 "because guestfish can't perform the action you asked for without doing this."
17815 msgstr ""
17816
17817 #. type: =head1
17818 #: ../fish/guestfish.pod:471
17819 msgid "OPENING DISKS FOR READ AND WRITE"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:473
17824 msgid ""
17825 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17826 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17827 "I<-i> and I<-m> open disk images read-only or for writing."
17828 msgstr ""
17829
17830 #. type: textblock
17831 #: ../fish/guestfish.pod:478
17832 msgid ""
17833 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17834 "opening disk images supplied on the command line for write.  To open a disk "
17835 "image read-only you have to do I<-a image --ro>."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish.pod:482
17840 msgid ""
17841 "This matters: If you accidentally open a live VM disk image writable then "
17842 "you will cause irreversible disk corruption."
17843 msgstr ""
17844
17845 #. type: textblock
17846 #: ../fish/guestfish.pod:485
17847 msgid ""
17848 "In a future libguestfs we intend to change the default the other way.  Disk "
17849 "images will be opened read-only.  You will have to either specify "
17850 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17851 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17852 "access for disk images specified by those other command line options."
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../fish/guestfish.pod:492
17857 msgid ""
17858 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17859 "which does nothing (it is already the default).  However it is highly "
17860 "recommended that you use this option to indicate that you need write access, "
17861 "and prepare your scripts for the day when this option will be required for "
17862 "write access."
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish.pod:498
17867 msgid ""
17868 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17869 "other libguestfs program apart from guestfish and guestmount."
17870 msgstr ""
17871
17872 #. type: =head1
17873 #: ../fish/guestfish.pod:501
17874 msgid "QUOTING"
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../fish/guestfish.pod:503
17879 msgid ""
17880 "You can quote ordinary parameters using either single or double quotes.  For "
17881 "example:"
17882 msgstr ""
17883
17884 #. type: verbatim
17885 #: ../fish/guestfish.pod:506
17886 #, no-wrap
17887 msgid ""
17888 " add \"file with a space.img\"\n"
17889 "\n"
17890 msgstr ""
17891
17892 #. type: verbatim
17893 #: ../fish/guestfish.pod:508
17894 #, no-wrap
17895 msgid ""
17896 " rm '/file name'\n"
17897 "\n"
17898 msgstr ""
17899
17900 #. type: verbatim
17901 #: ../fish/guestfish.pod:510
17902 #, no-wrap
17903 msgid ""
17904 " rm '/\"'\n"
17905 "\n"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:512
17910 msgid ""
17911 "A few commands require a list of strings to be passed.  For these, use a "
17912 "whitespace-separated list, enclosed in quotes.  Strings containing "
17913 "whitespace to be passed through must be enclosed in single quotes.  A "
17914 "literal single quote must be escaped with a backslash."
17915 msgstr ""
17916
17917 #. type: verbatim
17918 #: ../fish/guestfish.pod:517
17919 #, no-wrap
17920 msgid ""
17921 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17922 " command \"/bin/echo 'foo      bar'\"\n"
17923 " command \"/bin/echo \\'foo\\'\"\n"
17924 "\n"
17925 msgstr ""
17926
17927 #. type: =head2
17928 #: ../fish/guestfish.pod:521
17929 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish.pod:523
17934 msgid ""
17935 "In double-quoted arguments (only) use backslash to insert special characters:"
17936 msgstr ""
17937
17938 #. type: =item
17939 #: ../fish/guestfish.pod:528
17940 msgid "C<\\a>"
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../fish/guestfish.pod:530
17945 msgid "Alert (bell) character."
17946 msgstr ""
17947
17948 #. type: =item
17949 #: ../fish/guestfish.pod:532
17950 msgid "C<\\b>"
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:534
17955 msgid "Backspace character."
17956 msgstr ""
17957
17958 #. type: =item
17959 #: ../fish/guestfish.pod:536
17960 msgid "C<\\f>"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:538
17965 msgid "Form feed character."
17966 msgstr ""
17967
17968 #. type: =item
17969 #: ../fish/guestfish.pod:540
17970 msgid "C<\\n>"
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish.pod:542
17975 msgid "Newline character."
17976 msgstr ""
17977
17978 #. type: =item
17979 #: ../fish/guestfish.pod:544
17980 msgid "C<\\r>"
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../fish/guestfish.pod:546
17985 msgid "Carriage return character."
17986 msgstr ""
17987
17988 #. type: =item
17989 #: ../fish/guestfish.pod:548
17990 msgid "C<\\t>"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish.pod:550
17995 msgid "Horizontal tab character."
17996 msgstr ""
17997
17998 #. type: =item
17999 #: ../fish/guestfish.pod:552
18000 msgid "C<\\v>"
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:554
18005 msgid "Vertical tab character."
18006 msgstr ""
18007
18008 #. type: =item
18009 #: ../fish/guestfish.pod:556
18010 msgid "C<\\\">"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish.pod:558
18015 msgid "A literal double quote character."
18016 msgstr ""
18017
18018 #. type: =item
18019 #: ../fish/guestfish.pod:560
18020 msgid "C<\\ooo>"
18021 msgstr ""
18022
18023 #. type: textblock
18024 #: ../fish/guestfish.pod:562
18025 msgid ""
18026 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18027 "(unlike C)."
18028 msgstr ""
18029
18030 #. type: =item
18031 #: ../fish/guestfish.pod:565
18032 msgid "C<\\xhh>"
18033 msgstr ""
18034
18035 #. type: textblock
18036 #: ../fish/guestfish.pod:567
18037 msgid ""
18038 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18039 msgstr ""
18040
18041 #. type: textblock
18042 #: ../fish/guestfish.pod:570
18043 msgid ""
18044 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18045 "strings."
18046 msgstr ""
18047
18048 #. type: =item
18049 #: ../fish/guestfish.pod:573
18050 msgid "C<\\\\>"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../fish/guestfish.pod:575
18055 msgid "A literal backslash character."
18056 msgstr ""
18057
18058 #. type: =head1
18059 #: ../fish/guestfish.pod:579
18060 msgid "OPTIONAL ARGUMENTS"
18061 msgstr ""
18062
18063 #. type: textblock
18064 #: ../fish/guestfish.pod:581
18065 msgid ""
18066 "Some commands take optional arguments.  These arguments appear in this "
18067 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18068 msgstr ""
18069
18070 #. type: verbatim
18071 #: ../fish/guestfish.pod:585
18072 #, no-wrap
18073 msgid ""
18074 " add-drive-opts filename\n"
18075 "\n"
18076 msgstr ""
18077
18078 #. type: verbatim
18079 #: ../fish/guestfish.pod:587
18080 #, no-wrap
18081 msgid ""
18082 " add-drive-opts filename readonly:true\n"
18083 "\n"
18084 msgstr ""
18085
18086 #. type: verbatim
18087 #: ../fish/guestfish.pod:589
18088 #, no-wrap
18089 msgid ""
18090 " add-drive-opts filename format:qcow2 readonly:false\n"
18091 "\n"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:591
18096 msgid ""
18097 "Each optional argument can appear at most once.  All optional arguments must "
18098 "appear after the required ones."
18099 msgstr ""
18100
18101 #. type: =head1
18102 #: ../fish/guestfish.pod:594
18103 msgid "NUMBERS"
18104 msgstr "ЧИСЛА"
18105
18106 #. type: textblock
18107 #: ../fish/guestfish.pod:596
18108 msgid ""
18109 "This section applies to all commands which can take integers as parameters."
18110 msgstr ""
18111
18112 #. type: =head2
18113 #: ../fish/guestfish.pod:599
18114 msgid "SIZE SUFFIX"
18115 msgstr ""
18116
18117 #. type: textblock
18118 #: ../fish/guestfish.pod:601
18119 msgid ""
18120 "When the command takes a parameter measured in bytes, you can use one of the "
18121 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18122 msgstr ""
18123
18124 #. type: =item
18125 #: ../fish/guestfish.pod:607
18126 msgid "B<k> or B<K> or B<KiB>"
18127 msgstr "B<k>, B<K> або B<KiB>"
18128
18129 #. type: textblock
18130 #: ../fish/guestfish.pod:609
18131 msgid "The size in kilobytes (multiplied by 1024)."
18132 msgstr ""
18133
18134 #. type: =item
18135 #: ../fish/guestfish.pod:611
18136 msgid "B<KB>"
18137 msgstr "B<KB>"
18138
18139 #. type: textblock
18140 #: ../fish/guestfish.pod:613
18141 msgid "The size in SI 1000 byte units."
18142 msgstr ""
18143
18144 #. type: =item
18145 #: ../fish/guestfish.pod:615
18146 msgid "B<M> or B<MiB>"
18147 msgstr "B<M> або B<MiB>"
18148
18149 #. type: textblock
18150 #: ../fish/guestfish.pod:617
18151 msgid "The size in megabytes (multiplied by 1048576)."
18152 msgstr ""
18153
18154 #. type: =item
18155 #: ../fish/guestfish.pod:619
18156 msgid "B<MB>"
18157 msgstr "B<MB>"
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:621
18161 msgid "The size in SI 1000000 byte units."
18162 msgstr ""
18163
18164 #. type: =item
18165 #: ../fish/guestfish.pod:623
18166 msgid "B<G> or B<GiB>"
18167 msgstr "B<G> або B<GiB>"
18168
18169 #. type: textblock
18170 #: ../fish/guestfish.pod:625
18171 msgid "The size in gigabytes (multiplied by 2**30)."
18172 msgstr "Розмір у гігабайтах (з множником 2**30)."
18173
18174 #. type: =item
18175 #: ../fish/guestfish.pod:627
18176 msgid "B<GB>"
18177 msgstr "B<GB>"
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:629
18181 msgid "The size in SI 10**9 byte units."
18182 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18183
18184 #. type: =item
18185 #: ../fish/guestfish.pod:631
18186 msgid "B<T> or B<TiB>"
18187 msgstr "B<T> або B<TiB>"
18188
18189 #. type: textblock
18190 #: ../fish/guestfish.pod:633
18191 msgid "The size in terabytes (multiplied by 2**40)."
18192 msgstr "Розмір у терабайтах (з множником 2**40)."
18193
18194 #. type: =item
18195 #: ../fish/guestfish.pod:635
18196 msgid "B<TB>"
18197 msgstr "B<TB>"
18198
18199 #. type: textblock
18200 #: ../fish/guestfish.pod:637
18201 msgid "The size in SI 10**12 byte units."
18202 msgstr ""
18203
18204 #. type: =item
18205 #: ../fish/guestfish.pod:639
18206 msgid "B<P> or B<PiB>"
18207 msgstr "B<P> або B<PiB>"
18208
18209 #. type: textblock
18210 #: ../fish/guestfish.pod:641
18211 msgid "The size in petabytes (multiplied by 2**50)."
18212 msgstr ""
18213
18214 #. type: =item
18215 #: ../fish/guestfish.pod:643
18216 msgid "B<PB>"
18217 msgstr "B<PB>"
18218
18219 #. type: textblock
18220 #: ../fish/guestfish.pod:645
18221 msgid "The size in SI 10**15 byte units."
18222 msgstr ""
18223
18224 #. type: =item
18225 #: ../fish/guestfish.pod:647
18226 msgid "B<E> or B<EiB>"
18227 msgstr "B<E> або B<EiB>"
18228
18229 #. type: textblock
18230 #: ../fish/guestfish.pod:649
18231 msgid "The size in exabytes (multiplied by 2**60)."
18232 msgstr ""
18233
18234 #. type: =item
18235 #: ../fish/guestfish.pod:651
18236 msgid "B<EB>"
18237 msgstr "B<EB>"
18238
18239 #. type: textblock
18240 #: ../fish/guestfish.pod:653
18241 msgid "The size in SI 10**18 byte units."
18242 msgstr ""
18243
18244 #. type: =item
18245 #: ../fish/guestfish.pod:655
18246 msgid "B<Z> or B<ZiB>"
18247 msgstr "B<Z> або B<ZiB>"
18248
18249 #. type: textblock
18250 #: ../fish/guestfish.pod:657
18251 msgid "The size in zettabytes (multiplied by 2**70)."
18252 msgstr ""
18253
18254 #. type: =item
18255 #: ../fish/guestfish.pod:659
18256 msgid "B<ZB>"
18257 msgstr "B<ZB>"
18258
18259 #. type: textblock
18260 #: ../fish/guestfish.pod:661
18261 msgid "The size in SI 10**21 byte units."
18262 msgstr ""
18263
18264 #. type: =item
18265 #: ../fish/guestfish.pod:663
18266 msgid "B<Y> or B<YiB>"
18267 msgstr "B<Y> або B<YiB>"
18268
18269 #. type: textblock
18270 #: ../fish/guestfish.pod:665
18271 msgid "The size in yottabytes (multiplied by 2**80)."
18272 msgstr ""
18273
18274 #. type: =item
18275 #: ../fish/guestfish.pod:667
18276 msgid "B<YB>"
18277 msgstr "B<YB>"
18278
18279 #. type: textblock
18280 #: ../fish/guestfish.pod:669
18281 msgid "The size in SI 10**24 byte units."
18282 msgstr ""
18283
18284 #. type: verbatim
18285 #: ../fish/guestfish.pod:675
18286 #, no-wrap
18287 msgid ""
18288 " truncate-size /file 1G\n"
18289 "\n"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish.pod:677
18294 msgid "would truncate the file to 1 gigabyte."
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../fish/guestfish.pod:679
18299 msgid ""
18300 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18301 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18302 "suffix will probably not do what you expect."
18303 msgstr ""
18304
18305 #. type: =head2
18306 #: ../fish/guestfish.pod:683
18307 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/guestfish.pod:685
18312 msgid ""
18313 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18314 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18315 msgstr ""
18316
18317 #. type: verbatim
18318 #: ../fish/guestfish.pod:688
18319 #, no-wrap
18320 msgid ""
18321 " 1234      decimal number 1234\n"
18322 " 02322     octal number, equivalent to decimal 1234\n"
18323 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18324 "\n"
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish.pod:692
18329 msgid ""
18330 "When using the C<chmod> command, you almost always want to specify an octal "
18331 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18332 "L<chmod(1)> program):"
18333 msgstr ""
18334
18335 #. type: verbatim
18336 #: ../fish/guestfish.pod:696
18337 #, no-wrap
18338 msgid ""
18339 " chmod 0777 /public  # OK\n"
18340 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18341 "\n"
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:699
18346 msgid ""
18347 "Commands that return numbers usually print them in decimal, but some "
18348 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18349 "octal, preceeded by C<0>)."
18350 msgstr ""
18351
18352 #. type: =head1
18353 #: ../fish/guestfish.pod:703
18354 msgid "WILDCARDS AND GLOBBING"
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish.pod:705
18359 msgid ""
18360 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18361 "(globbing) by default.  So for example the following will not do what you "
18362 "expect:"
18363 msgstr ""
18364
18365 #. type: verbatim
18366 #: ../fish/guestfish.pod:709
18367 #, no-wrap
18368 msgid ""
18369 " rm-rf /home/*\n"
18370 "\n"
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:711
18375 msgid ""
18376 "Assuming you don't have a directory called literally C</home/*> then the "
18377 "above command will return an error."
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:714
18382 msgid "To perform wildcard expansion, use the C<glob> command."
18383 msgstr ""
18384
18385 #. type: verbatim
18386 #: ../fish/guestfish.pod:716
18387 #, no-wrap
18388 msgid ""
18389 " glob rm-rf /home/*\n"
18390 "\n"
18391 msgstr ""
18392
18393 #. type: textblock
18394 #: ../fish/guestfish.pod:718
18395 msgid ""
18396 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18397 "many times), equivalent to:"
18398 msgstr ""
18399
18400 #. type: verbatim
18401 #: ../fish/guestfish.pod:721
18402 #, no-wrap
18403 msgid ""
18404 " rm-rf /home/jim\n"
18405 " rm-rf /home/joe\n"
18406 " rm-rf /home/mary\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:725
18412 msgid "C<glob> only works on simple guest paths and not on device names."
18413 msgstr ""
18414
18415 #. type: textblock
18416 #: ../fish/guestfish.pod:727
18417 msgid ""
18418 "If you have several parameters, each containing a wildcard, then glob will "
18419 "perform a Cartesian product."
18420 msgstr ""
18421
18422 #. type: =head1
18423 #: ../fish/guestfish.pod:730
18424 msgid "COMMENTS"
18425 msgstr "КОМЕНТАРІ"
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:732
18429 msgid ""
18430 "Any line which starts with a I<#> character is treated as a comment and "
18431 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18432 "a command.  For example:"
18433 msgstr ""
18434
18435 #. type: verbatim
18436 #: ../fish/guestfish.pod:736
18437 #, no-wrap
18438 msgid ""
18439 " # this is a comment\n"
18440 "         # this is a comment\n"
18441 " foo # NOT a comment\n"
18442 "\n"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/guestfish.pod:740
18447 msgid "Blank lines are also ignored."
18448 msgstr ""
18449
18450 #. type: =head1
18451 #: ../fish/guestfish.pod:742
18452 msgid "RUNNING COMMANDS LOCALLY"
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:744
18457 msgid ""
18458 "Any line which starts with a I<!> character is treated as a command sent to "
18459 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18460 msgstr ""
18461
18462 #. type: verbatim
18463 #: ../fish/guestfish.pod:748
18464 #, no-wrap
18465 msgid ""
18466 " !mkdir local\n"
18467 " tgz-out /remote local/remote-data.tar.gz\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: textblock
18472 #: ../fish/guestfish.pod:751
18473 msgid ""
18474 "will create a directory C<local> on the host, and then export the contents "
18475 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18476 "(See C<tgz-out>)."
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:755
18481 msgid ""
18482 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18483 "effect, due to the way that subprocesses work in Unix."
18484 msgstr ""
18485
18486 #. type: =head2
18487 #: ../fish/guestfish.pod:758
18488 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish.pod:760
18493 msgid ""
18494 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18495 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18496 "and executed as guestfish commands."
18497 msgstr ""
18498
18499 #. type: textblock
18500 #: ../fish/guestfish.pod:764
18501 msgid ""
18502 "Thus you can use shell script to construct arbitrary guestfish commands "
18503 "which are then parsed by guestfish."
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:767
18508 msgid ""
18509 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18510 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18511 "if we use a shell script to create the guestfish commands for us:"
18512 msgstr ""
18513
18514 #. type: verbatim
18515 #: ../fish/guestfish.pod:772
18516 #, no-wrap
18517 msgid ""
18518 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18519 "\n"
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:774
18524 msgid "or with names like C</foo.001>:"
18525 msgstr ""
18526
18527 #. type: verbatim
18528 #: ../fish/guestfish.pod:776
18529 #, no-wrap
18530 msgid ""
18531 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18532 "\n"
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/guestfish.pod:778
18537 msgid ""
18538 "When using guestfish interactively it can be helpful to just run the shell "
18539 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18540 "ordinary I<!> local command), see what guestfish commands it would run, and "
18541 "when you are happy with those prepend the C<E<lt>> character to run the "
18542 "guestfish commands for real."
18543 msgstr ""
18544
18545 #. type: =head1
18546 #: ../fish/guestfish.pod:784
18547 msgid "PIPES"
18548 msgstr "КАНАЛИ"
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:786
18552 msgid ""
18553 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18554 "command (a guestfish command) to the second command (any host command).  For "
18555 "example:"
18556 msgstr ""
18557
18558 #. type: verbatim
18559 #: ../fish/guestfish.pod:790
18560 #, no-wrap
18561 msgid ""
18562 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18563 "\n"
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:792
18568 msgid ""
18569 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18570 "program).  The above command would list all accounts in the guest filesystem "
18571 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18572 msgstr ""
18573
18574 #. type: verbatim
18575 #: ../fish/guestfish.pod:797
18576 #, no-wrap
18577 msgid ""
18578 " hexdump /bin/ls | head\n"
18579 " list-devices | tail -1\n"
18580 " tgz-out / - | tar ztf -\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish.pod:801
18586 msgid ""
18587 "The space before the pipe symbol is required, any space after the pipe "
18588 "symbol is optional.  Everything after the pipe symbol is just passed "
18589 "straight to the host shell, so it can contain redirections, globs and "
18590 "anything else that makes sense on the host side."
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../fish/guestfish.pod:806
18595 msgid ""
18596 "To use a literal argument which begins with a pipe symbol, you have to quote "
18597 "it, eg:"
18598 msgstr ""
18599
18600 #. type: verbatim
18601 #: ../fish/guestfish.pod:809
18602 #, no-wrap
18603 msgid ""
18604 " echo \"|\"\n"
18605 "\n"
18606 msgstr ""
18607
18608 #. type: =head1
18609 #: ../fish/guestfish.pod:811
18610 msgid "HOME DIRECTORIES"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish.pod:813
18615 msgid ""
18616 "If a parameter starts with the character C<~> then the tilde may be expanded "
18617 "as a home directory path (either C<~> for the current user's home directory, "
18618 "or C<~user> for another user)."
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fish/guestfish.pod:817
18623 msgid ""
18624 "Note that home directory expansion happens for users known I<on the host>, "
18625 "not in the guest filesystem."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:820
18630 msgid ""
18631 "To use a literal argument which begins with a tilde, you have to quote it, "
18632 "eg:"
18633 msgstr ""
18634
18635 #. type: verbatim
18636 #: ../fish/guestfish.pod:823
18637 #, no-wrap
18638 msgid ""
18639 " echo \"~\"\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: =head2
18644 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18645 msgid "ENCRYPTED DISKS"
18646 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18647
18648 #. type: textblock
18649 #: ../fish/guestfish.pod:827
18650 msgid ""
18651 "Libguestfs has some support for Linux guests encrypted according to the "
18652 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18653 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18654 "LUKS is supported."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:832
18659 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18660 msgstr ""
18661
18662 #. type: verbatim
18663 #: ../fish/guestfish.pod:834
18664 #, no-wrap
18665 msgid ""
18666 " ><fs> vfs-type /dev/sda2\n"
18667 " crypto_LUKS\n"
18668 "\n"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/guestfish.pod:837
18673 msgid ""
18674 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18675 "device called C</dev/mapper/luksdev>."
18676 msgstr ""
18677
18678 #. type: verbatim
18679 #: ../fish/guestfish.pod:840
18680 #, no-wrap
18681 msgid ""
18682 " ><fs> luks-open /dev/sda2 luksdev\n"
18683 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18684 "\n"
18685 msgstr ""
18686
18687 #. type: textblock
18688 #: ../fish/guestfish.pod:843
18689 msgid ""
18690 "Finally you have to tell LVM to scan for volume groups on the newly created "
18691 "mapper device:"
18692 msgstr ""
18693
18694 #. type: verbatim
18695 #: ../fish/guestfish.pod:846
18696 #, no-wrap
18697 msgid ""
18698 " vgscan\n"
18699 " vg-activate-all true\n"
18700 "\n"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:849
18705 msgid "The logical volume(s) can now be mounted in the usual way."
18706 msgstr ""
18707
18708 #. type: textblock
18709 #: ../fish/guestfish.pod:851
18710 msgid ""
18711 "Before closing a LUKS device you must unmount any logical volumes on it and "
18712 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18713 "one.  Then you can close the mapper device:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/guestfish.pod:855
18718 #, no-wrap
18719 msgid ""
18720 " vg-activate false /dev/VG\n"
18721 " luks-close /dev/mapper/luksdev\n"
18722 "\n"
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish.pod:860
18727 msgid ""
18728 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18729 "letters and paths (with some limitations).  The following commands are "
18730 "equivalent:"
18731 msgstr ""
18732
18733 #. type: verbatim
18734 #: ../fish/guestfish.pod:864
18735 #, no-wrap
18736 msgid ""
18737 " file /WINDOWS/system32/config/system.LOG\n"
18738 "\n"
18739 msgstr ""
18740
18741 #. type: verbatim
18742 #: ../fish/guestfish.pod:866
18743 #, no-wrap
18744 msgid ""
18745 " file win:\\windows\\system32\\config\\system.log\n"
18746 "\n"
18747 msgstr ""
18748
18749 #. type: verbatim
18750 #: ../fish/guestfish.pod:868
18751 #, no-wrap
18752 msgid ""
18753 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18754 "\n"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish.pod:870
18759 msgid ""
18760 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18761 "where the drive is mounted, prepending that to the path, changing all "
18762 "backslash characters to forward slash, then resolving the result using L</"
18763 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18764 "the parameter might be rewritten like this:"
18765 msgstr ""
18766
18767 #. type: verbatim
18768 #: ../fish/guestfish.pod:876
18769 #, no-wrap
18770 msgid ""
18771 " win:e:\\foo\\bar => /e/FOO/bar\n"
18772 "\n"
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish.pod:878
18777 msgid "This only works in argument positions that expect a path."
18778 msgstr ""
18779
18780 #. type: =head1
18781 #: ../fish/guestfish.pod:880
18782 msgid "UPLOADING AND DOWNLOADING FILES"
18783 msgstr ""
18784
18785 #. type: textblock
18786 #: ../fish/guestfish.pod:882
18787 msgid ""
18788 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18789 "others which upload from or download to a local file, you can use the "
18790 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18791 msgstr ""
18792
18793 #. type: verbatim
18794 #: ../fish/guestfish.pod:886
18795 #, no-wrap
18796 msgid ""
18797 " upload - /foo\n"
18798 "\n"
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../fish/guestfish.pod:888
18803 msgid ""
18804 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18805 msgstr ""
18806
18807 #. type: verbatim
18808 #: ../fish/guestfish.pod:891
18809 #, no-wrap
18810 msgid ""
18811 " tar-out /etc - | tar tf -\n"
18812 "\n"
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../fish/guestfish.pod:893
18817 msgid ""
18818 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18819 "command (see L</PIPES>)."
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../fish/guestfish.pod:896
18824 msgid ""
18825 "When using C<-> to read from stdin, the input is read up to the end of "
18826 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18827 "some arbitrary end marker:"
18828 msgstr ""
18829
18830 #. type: verbatim
18831 #: ../fish/guestfish.pod:900
18832 #, no-wrap
18833 msgid ""
18834 " upload -<<END /foo\n"
18835 " input line 1\n"
18836 " input line 2\n"
18837 " input line 3\n"
18838 " END\n"
18839 "\n"
18840 msgstr ""
18841
18842 #. type: textblock
18843 #: ../fish/guestfish.pod:906
18844 msgid ""
18845 "Any string of characters can be used instead of C<END>.  The end marker must "
18846 "appear on a line of its own, without any preceeding or following characters "
18847 "(not even spaces)."
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish.pod:910
18852 msgid ""
18853 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18854 "upload local files (so-called \"FileIn\" parameters in the generator)."
18855 msgstr ""
18856
18857 #. type: =head1
18858 #: ../fish/guestfish.pod:913
18859 msgid "EXIT ON ERROR BEHAVIOUR"
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/guestfish.pod:915
18864 msgid ""
18865 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18866 "taking commands from a human over a tty), and will exit on the first error "
18867 "in non-interactive mode (scripts, commands given on the command line)."
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../fish/guestfish.pod:920
18872 msgid ""
18873 "If you prefix a command with a I<-> character, then that command will not "
18874 "cause guestfish to exit, even if that (one) command returns an error."
18875 msgstr ""
18876
18877 #. type: =head1
18878 #: ../fish/guestfish.pod:924
18879 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:926
18884 msgid ""
18885 "Guestfish can be remote-controlled over a socket.  This is useful "
18886 "particularly in shell scripts where you want to make several different "
18887 "changes to a filesystem, but you don't want the overhead of starting up a "
18888 "guestfish process each time."
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../fish/guestfish.pod:931
18893 msgid "Start a guestfish server process using:"
18894 msgstr ""
18895
18896 #. type: verbatim
18897 #: ../fish/guestfish.pod:933
18898 #, no-wrap
18899 msgid ""
18900 " eval \"`guestfish --listen`\"\n"
18901 "\n"
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish.pod:935
18906 msgid "and then send it commands by doing:"
18907 msgstr ""
18908
18909 #. type: verbatim
18910 #: ../fish/guestfish.pod:937
18911 #, no-wrap
18912 msgid ""
18913 " guestfish --remote cmd [...]\n"
18914 "\n"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:939
18919 msgid "To cause the server to exit, send it the exit command:"
18920 msgstr ""
18921
18922 #. type: textblock
18923 #: ../fish/guestfish.pod:943
18924 msgid ""
18925 "Note that the server will normally exit if there is an error in a command.  "
18926 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18927 "BEHAVIOUR>."
18928 msgstr ""
18929
18930 #. type: =head2
18931 #: ../fish/guestfish.pod:947
18932 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18933 msgstr ""
18934
18935 #. type: textblock
18936 #: ../fish/guestfish.pod:949
18937 msgid ""
18938 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18939 "is how the I<--remote> option knows where to send the commands.  You can "
18940 "have several guestfish listener processes running using:"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fish/guestfish.pod:953
18945 #, no-wrap
18946 msgid ""
18947 " eval \"`guestfish --listen`\"\n"
18948 " pid1=$GUESTFISH_PID\n"
18949 " eval \"`guestfish --listen`\"\n"
18950 " pid2=$GUESTFISH_PID\n"
18951 " ...\n"
18952 " guestfish --remote=$pid1 cmd\n"
18953 " guestfish --remote=$pid2 cmd\n"
18954 "\n"
18955 msgstr ""
18956
18957 #. type: =head2
18958 #: ../fish/guestfish.pod:961
18959 msgid "REMOTE CONTROL AND CSH"
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../fish/guestfish.pod:963
18964 msgid ""
18965 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18966 "option:"
18967 msgstr ""
18968
18969 #. type: verbatim
18970 #: ../fish/guestfish.pod:966
18971 #, no-wrap
18972 msgid ""
18973 " eval \"`guestfish --listen --csh`\"\n"
18974 "\n"
18975 msgstr ""
18976
18977 #. type: =head2
18978 #: ../fish/guestfish.pod:968
18979 msgid "REMOTE CONTROL DETAILS"
18980 msgstr ""
18981
18982 #. type: textblock
18983 #: ../fish/guestfish.pod:970
18984 msgid ""
18985 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18986 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18987 "and C<$PID> is the process ID of the server."
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/guestfish.pod:974
18992 msgid "Guestfish client and server versions must match exactly."
18993 msgstr ""
18994
18995 #. type: =head1
18996 #: ../fish/guestfish.pod:976
18997 msgid "PREPARED DISK IMAGES"
18998 msgstr ""
18999
19000 #. type: textblock
19001 #: ../fish/guestfish.pod:978
19002 msgid ""
19003 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19004 "preformatted disk images that guestfish can make for you to save typing.  "
19005 "This is particularly useful for testing purposes.  This option is used "
19006 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19007 "can be mixed with I<-a>)."
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../fish/guestfish.pod:984
19012 msgid ""
19013 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19014 "the second and so on.  Existing files in the current directory are "
19015 "I<overwritten>."
19016 msgstr ""
19017
19018 #. type: textblock
19019 #: ../fish/guestfish.pod:988
19020 msgid ""
19021 "The type briefly describes how the disk should be sized, partitioned, how "
19022 "filesystem(s) should be created, and how content should be added.  "
19023 "Optionally the type can be followed by extra parameters, separated by C<:> "
19024 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19025 "allocated disk, containing a single partition, with the partition formatted "
19026 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19027 "disk instead."
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish.pod:996
19032 msgid "To list the available types and any extra parameters they take, run:"
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../fish/guestfish.pod:1000
19037 msgid ""
19038 "Note that the prepared filesystem is not mounted.  You would usually have to "
19039 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:1004
19044 msgid ""
19045 "If any I<-N> or I<--new> options are given, the guest is automatically "
19046 "launched."
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:1009
19051 msgid "Create a 100MB disk with an ext4-formatted partition:"
19052 msgstr ""
19053
19054 #. type: verbatim
19055 #: ../fish/guestfish.pod:1011
19056 #, no-wrap
19057 msgid ""
19058 " guestfish -N fs:ext4\n"
19059 "\n"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../fish/guestfish.pod:1013
19064 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19065 msgstr ""
19066
19067 #. type: verbatim
19068 #: ../fish/guestfish.pod:1015
19069 #, no-wrap
19070 msgid ""
19071 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19072 "\n"
19073 msgstr ""
19074
19075 #. type: textblock
19076 #: ../fish/guestfish.pod:1017
19077 msgid "Create a blank 200MB disk:"
19078 msgstr ""
19079
19080 #. type: verbatim
19081 #: ../fish/guestfish.pod:1019
19082 #, no-wrap
19083 msgid ""
19084 " guestfish -N disk:200M\n"
19085 "\n"
19086 msgstr ""
19087
19088 #. type: =head1
19089 #: ../fish/guestfish.pod:1021
19090 msgid "PROGRESS BARS"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fish/guestfish.pod:1023
19095 msgid ""
19096 "Some (not all) long-running commands send progress notification messages as "
19097 "they are running.  Guestfish turns these messages into progress bars."
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish.pod:1027
19102 msgid ""
19103 "When a command that supports progress bars takes longer than two seconds to "
19104 "run, and if progress bars are enabled, then you will see one appearing below "
19105 "the command:"
19106 msgstr ""
19107
19108 #. type: verbatim
19109 #: ../fish/guestfish.pod:1031
19110 #, no-wrap
19111 msgid ""
19112 " ><fs> copy-size /large-file /another-file 2048M\n"
19113 " / 10% [#####-----------------------------------------] 00:30\n"
19114 "\n"
19115 msgstr ""
19116
19117 #. type: textblock
19118 #: ../fish/guestfish.pod:1034
19119 msgid ""
19120 "The spinner on the left hand side moves round once for every progress "
19121 "notification received from the backend.  This is a (reasonably) golden "
19122 "assurance that the command is \"doing something\" even if the progress bar "
19123 "is not moving, because the command is able to send the progress "
19124 "notifications.  When the bar reaches 100% and the command finishes, the "
19125 "spinner disappears."
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:1041
19130 msgid ""
19131 "Progress bars are enabled by default when guestfish is used interactively.  "
19132 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19133 "and you can disable them completely using I<--no-progress-bars>."
19134 msgstr ""
19135
19136 #. type: =head1
19137 #: ../fish/guestfish.pod:1046
19138 msgid "GUESTFISH COMMANDS"
19139 msgstr ""
19140
19141 #. type: textblock
19142 #: ../fish/guestfish.pod:1048
19143 msgid ""
19144 "The commands in this section are guestfish convenience commands, in other "
19145 "words, they are not part of the L<guestfs(3)> API."
19146 msgstr ""
19147
19148 #. type: =head2
19149 #: ../fish/guestfish.pod:1051
19150 msgid "help"
19151 msgstr "help"
19152
19153 #. type: verbatim
19154 #: ../fish/guestfish.pod:1053
19155 #, no-wrap
19156 msgid ""
19157 " help\n"
19158 " help cmd\n"
19159 "\n"
19160 msgstr ""
19161 " help\n"
19162 " help команда\n"
19163 "\n"
19164
19165 #. type: textblock
19166 #: ../fish/guestfish.pod:1056
19167 msgid "Without any parameter, this provides general help."
19168 msgstr "Без параметра показує загальну довідкову інформацію."
19169
19170 #. type: textblock
19171 #: ../fish/guestfish.pod:1058
19172 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19173 msgstr ""
19174
19175 #. type: =head2
19176 #: ../fish/guestfish.pod:1060
19177 msgid "quit | exit"
19178 msgstr ""
19179
19180 #. type: textblock
19181 #: ../fish/guestfish.pod:1062
19182 msgid "This exits guestfish.  You can also use C<^D> key."
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:1064
19187 msgid "@FISH_COMMANDS@"
19188 msgstr ""
19189
19190 #. type: =head1
19191 #: ../fish/guestfish.pod:1066
19192 msgid "COMMANDS"
19193 msgstr "КОМАНДИ"
19194
19195 #. type: textblock
19196 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1475
19197 msgid "@ACTIONS@"
19198 msgstr "@ACTIONS@"
19199
19200 #. type: =head1
19201 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
19202 msgid "EXIT CODE"
19203 msgstr "КОД ВИХОДУ"
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:1072
19207 msgid ""
19208 "guestfish returns 0 if the commands completed without error, or 1 if there "
19209 "was an error."
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:1079
19214 msgid "EDITOR"
19215 msgstr "РЕДАКТОР"
19216
19217 #. type: textblock
19218 #: ../fish/guestfish.pod:1081
19219 msgid ""
19220 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19221 "C<vi>."
19222 msgstr ""
19223
19224 #. type: =item
19225 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2970
19226 msgid "FEBOOTSTRAP_KERNEL"
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2972
19231 msgid "FEBOOTSTRAP_MODULES"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2974
19236 msgid ""
19237 "These two environment variables allow the kernel that libguestfs uses in the "
19238 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19239 "most recent host kernel is chosen.  For more information about kernel "
19240 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19241 "available in febootstrap E<ge> 3.8."
19242 msgstr ""
19243
19244 #. type: =item
19245 #: ../fish/guestfish.pod:1094
19246 msgid "GUESTFISH_DISPLAY_IMAGE"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../fish/guestfish.pod:1096
19251 msgid ""
19252 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19253 "If not set, it uses L<display(1)>."
19254 msgstr ""
19255
19256 #. type: =item
19257 #: ../fish/guestfish.pod:1099
19258 msgid "GUESTFISH_PID"
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fish/guestfish.pod:1101
19263 msgid ""
19264 "Used with the I<--remote> option to specify the remote guestfish process to "
19265 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19266 msgstr ""
19267
19268 #. type: =item
19269 #: ../fish/guestfish.pod:1105
19270 msgid "HEXEDITOR"
19271 msgstr ""
19272
19273 #. type: textblock
19274 #: ../fish/guestfish.pod:1107
19275 msgid ""
19276 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19277 "not specified, the external L<hexedit(1)> program is used."
19278 msgstr ""
19279
19280 #. type: =item
19281 #: ../fish/guestfish.pod:1111
19282 msgid "HOME"
19283 msgstr "ДОМІВКА"
19284
19285 #. type: textblock
19286 #: ../fish/guestfish.pod:1113
19287 msgid ""
19288 "If compiled with GNU readline support, various files in the home directory "
19289 "can be used.  See L</FILES>."
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2980
19294 msgid "LIBGUESTFS_APPEND"
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2982
19299 msgid "Pass additional options to the guest kernel."
19300 msgstr ""
19301
19302 #. type: =item
19303 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2984
19304 msgid "LIBGUESTFS_DEBUG"
19305 msgstr "LIBGUESTFS_DEBUG"
19306
19307 #. type: textblock
19308 #: ../fish/guestfish.pod:1122
19309 msgid ""
19310 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19311 "effect as using the B<-v> option."
19312 msgstr ""
19313
19314 #. type: =item
19315 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2989
19316 msgid "LIBGUESTFS_MEMSIZE"
19317 msgstr "LIBGUESTFS_MEMSIZE"
19318
19319 #. type: textblock
19320 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2991
19321 msgid ""
19322 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19323 msgstr ""
19324
19325 #. type: verbatim
19326 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2994
19327 #, no-wrap
19328 msgid ""
19329 " LIBGUESTFS_MEMSIZE=700\n"
19330 "\n"
19331 msgstr ""
19332 " LIBGUESTFS_MEMSIZE=700\n"
19333 "\n"
19334
19335 #. type: =item
19336 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2996
19337 msgid "LIBGUESTFS_PATH"
19338 msgstr ""
19339
19340 #. type: textblock
19341 #: ../fish/guestfish.pod:1134
19342 msgid ""
19343 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19344 "the discussion of paths in L<guestfs(3)>."
19345 msgstr ""
19346
19347 #. type: =item
19348 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3001
19349 msgid "LIBGUESTFS_QEMU"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3003
19354 msgid ""
19355 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19356 "which was found at compile time by the configure script is used."
19357 msgstr ""
19358
19359 #. type: =item
19360 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3009
19361 msgid "LIBGUESTFS_TRACE"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:1145
19366 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:1147
19371 msgid "PAGER"
19372 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:1149
19376 msgid ""
19377 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19378 "C<more>."
19379 msgstr ""
19380
19381 #. type: =item
19382 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3014
19383 msgid "TMPDIR"
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3016
19388 msgid ""
19389 "Location of temporary directory, defaults to C</tmp> except for the cached "
19390 "supermin appliance which defaults to C</var/tmp>."
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3019
19395 msgid ""
19396 "If libguestfs was compiled to use the supermin appliance then the real "
19397 "appliance is cached in this directory, shared between all handles belonging "
19398 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19399 "use in case C</var/tmp> is not large enough."
19400 msgstr ""
19401
19402 #. type: =head1
19403 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288
19404 #: ../rescue/virt-rescue.pod:269
19405 msgid "FILES"
19406 msgstr "ФАЙЛИ"
19407
19408 #. type: =item
19409 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292
19410 #: ../rescue/virt-rescue.pod:273
19411 msgid "$HOME/.libguestfs-tools.rc"
19412 msgstr ""
19413
19414 #. type: =item
19415 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294
19416 #: ../rescue/virt-rescue.pod:275
19417 msgid "/etc/libguestfs-tools.conf"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296
19422 #: ../rescue/virt-rescue.pod:277
19423 msgid ""
19424 "This configuration file controls the default read-only or read-write mode "
19425 "(I<--ro> or I<--rw>)."
19426 msgstr ""
19427
19428 #. type: textblock
19429 #: ../fish/guestfish.pod:1176
19430 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19431 msgstr ""
19432
19433 #. type: =item
19434 #: ../fish/guestfish.pod:1178
19435 msgid "$HOME/.guestfish"
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fish/guestfish.pod:1180
19440 msgid ""
19441 "If compiled with GNU readline support, then the command history is saved in "
19442 "this file."
19443 msgstr ""
19444
19445 #. type: =item
19446 #: ../fish/guestfish.pod:1183
19447 msgid "$HOME/.inputrc"
19448 msgstr ""
19449
19450 #. type: =item
19451 #: ../fish/guestfish.pod:1185
19452 msgid "/etc/inputrc"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:1187
19457 msgid ""
19458 "If compiled with GNU readline support, then these files can be used to "
19459 "configure readline.  For further information, please see L<readline(3)/"
19460 "INITIALIZATION FILE>."
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish.pod:1191
19465 msgid "To write rules which only apply to guestfish, use:"
19466 msgstr ""
19467
19468 #. type: verbatim
19469 #: ../fish/guestfish.pod:1193
19470 #, no-wrap
19471 msgid ""
19472 " $if guestfish\n"
19473 " ...\n"
19474 " $endif\n"
19475 "\n"
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../fish/guestfish.pod:1197
19480 msgid ""
19481 "Variables that you can set in inputrc that change the behaviour of guestfish "
19482 "in useful ways include:"
19483 msgstr ""
19484
19485 #. type: =item
19486 #: ../fish/guestfish.pod:1202
19487 msgid "completion-ignore-case (default: on)"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:1204
19492 msgid ""
19493 "By default, guestfish will ignore case when tab-completing paths on the "
19494 "disk.  Use:"
19495 msgstr ""
19496
19497 #. type: verbatim
19498 #: ../fish/guestfish.pod:1207
19499 #, no-wrap
19500 msgid ""
19501 " set completion-ignore-case off\n"
19502 "\n"
19503 msgstr ""
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:1209
19507 msgid "to make guestfish case sensitive."
19508 msgstr ""
19509
19510 #. type: =item
19511 #: ../fish/guestfish.pod:1213
19512 msgid "test1.img"
19513 msgstr ""
19514
19515 #. type: =item
19516 #: ../fish/guestfish.pod:1215
19517 msgid "test2.img (etc)"
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../fish/guestfish.pod:1217
19522 msgid ""
19523 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19524 "will be created in the file C<test1.img> in the current directory.  The "
19525 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19526 "the same name will be overwritten."
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:1226
19531 msgid ""
19532 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19533 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19534 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19535 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19536 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19537 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3105
19542 #: ../test-tool/libguestfs-test-tool.pod:99
19543 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19544 msgstr ""
19545
19546 #. type: textblock
19547 #: ../fish/virt-copy-in.pod:5
19548 msgid ""
19549 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19550 msgstr ""
19551
19552 #. type: verbatim
19553 #: ../fish/virt-copy-in.pod:9
19554 #, no-wrap
19555 msgid ""
19556 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19557 "\n"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/virt-copy-in.pod:11
19562 #, no-wrap
19563 msgid ""
19564 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19565 "\n"
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../fish/virt-copy-in.pod:15
19570 msgid ""
19571 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19572 "causing disk corruption.  The virtual machine must be shut down before you "
19573 "use this command."
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fish/virt-copy-in.pod:21
19578 msgid ""
19579 "C<virt-copy-in> copies files and directories from the local disk into a "
19580 "virtual machine disk image or named libvirt domain."
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../fish/virt-copy-in.pod:24
19585 msgid ""
19586 "You can give one of more filenames and directories on the command line.  "
19587 "Directories are copied in recursively.  The final parameter must be the "
19588 "destination directory in the disk image which must be an absolute path "
19589 "starting with a C</> character."
19590 msgstr ""
19591
19592 #. type: verbatim
19593 #: ../fish/virt-copy-in.pod:33
19594 #, no-wrap
19595 msgid ""
19596 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19597 "\n"
19598 msgstr ""
19599
19600 #. type: textblock
19601 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19602 msgid "Upload a home directory to a guest:"
19603 msgstr ""
19604
19605 #. type: verbatim
19606 #: ../fish/virt-copy-in.pod:37
19607 #, no-wrap
19608 msgid ""
19609 " virt-copy-in -d MyGuest skel /home\n"
19610 "\n"
19611 msgstr ""
19612
19613 #. type: =head1
19614 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19615 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19616 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/virt-copy-in.pod:41
19621 msgid ""
19622 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19623 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19624 "are probably better off using guestfish directly."
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19629 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19630 msgid ""
19631 "Since the shell script just passes options straight to guestfish, read "
19632 "L<guestfish(1)> to see the full list of options."
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/virt-copy-in.pod:52
19637 #, fuzzy
19638 #| msgid ""
19639 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19640 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19641 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19642 #| "libguestfs.org/>."
19643 msgid ""
19644 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19645 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19646 msgstr ""
19647 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19648 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19649 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19650 "org/>."
19651
19652 #. type: textblock
19653 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19654 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19655 #, fuzzy
19656 #| msgid "Copyright (C) 2009 Red Hat Inc."
19657 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19658 msgstr "© Red Hat Inc., 2009"
19659
19660 #. type: textblock
19661 #: ../fish/virt-copy-out.pod:5
19662 msgid ""
19663 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19664 "image."
19665 msgstr ""
19666
19667 #. type: verbatim
19668 #: ../fish/virt-copy-out.pod:9
19669 #, no-wrap
19670 msgid ""
19671 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19672 "\n"
19673 msgstr ""
19674
19675 #. type: verbatim
19676 #: ../fish/virt-copy-out.pod:11
19677 #, no-wrap
19678 msgid ""
19679 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19680 "\n"
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../fish/virt-copy-out.pod:15
19685 msgid ""
19686 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19687 "image or named libvirt domain."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/virt-copy-out.pod:18
19692 msgid ""
19693 "You can give one of more filenames and directories on the command line.  "
19694 "Directories are copied out recursively."
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../fish/virt-copy-out.pod:23
19699 msgid "Download the home directories from a virtual machine:"
19700 msgstr ""
19701
19702 #. type: verbatim
19703 #: ../fish/virt-copy-out.pod:25
19704 #, no-wrap
19705 msgid ""
19706 " mkdir homes\n"
19707 " virt-copy-out -d MyGuest /home homes\n"
19708 "\n"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/virt-copy-out.pod:30
19713 msgid ""
19714 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19715 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19716 "are probably better off using guestfish directly."
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/virt-copy-out.pod:41
19721 #, fuzzy
19722 #| msgid ""
19723 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19724 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19725 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19726 #| "libguestfs.org/>."
19727 msgid ""
19728 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19729 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19730 msgstr ""
19731 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19732 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19733 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19734 "org/>."
19735
19736 #. type: textblock
19737 #: ../fish/virt-tar-in.pod:5
19738 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/virt-tar-in.pod:9
19743 #, no-wrap
19744 msgid ""
19745 " virt-tar-in -a disk.img data.tar /destination\n"
19746 "\n"
19747 msgstr ""
19748
19749 #. type: verbatim
19750 #: ../fish/virt-tar-in.pod:11
19751 #, no-wrap
19752 msgid ""
19753 " virt-tar-in -d domain data.tar /destination\n"
19754 "\n"
19755 msgstr ""
19756
19757 #. type: verbatim
19758 #: ../fish/virt-tar-in.pod:13
19759 #, no-wrap
19760 msgid ""
19761 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19762 "\n"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fish/virt-tar-in.pod:17
19767 msgid ""
19768 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19769 "causing disk corruption.  The virtual machine must be shut down before you "
19770 "use this command."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/virt-tar-in.pod:23
19775 msgid ""
19776 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19777 "image or named libvirt domain."
19778 msgstr ""
19779
19780 #. type: textblock
19781 #: ../fish/virt-tar-in.pod:26
19782 msgid ""
19783 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19784 "standard input.  The second parameter is the absolute target directory to "
19785 "unpack into."
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../fish/virt-tar-in.pod:34
19790 #, no-wrap
19791 msgid ""
19792 " virt-tar-in -d MyGuest homes.tar /home\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/virt-tar-in.pod:38
19798 msgid ""
19799 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19800 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19801 "probably better off using guestfish directly."
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fish/virt-tar-in.pod:49
19806 #, fuzzy
19807 #| msgid ""
19808 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19809 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19810 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19811 #| "libguestfs.org/>."
19812 msgid ""
19813 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19814 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19815 "org/>."
19816 msgstr ""
19817 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19818 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19819 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19820 "org/>."
19821
19822 #. type: textblock
19823 #: ../fish/virt-tar-out.pod:5
19824 msgid ""
19825 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19826 msgstr ""
19827
19828 #. type: verbatim
19829 #: ../fish/virt-tar-out.pod:9
19830 #, no-wrap
19831 msgid ""
19832 " virt-tar-out -a disk.img /dir files.tar\n"
19833 "\n"
19834 msgstr ""
19835
19836 #. type: verbatim
19837 #: ../fish/virt-tar-out.pod:11
19838 #, no-wrap
19839 msgid ""
19840 " virt-tar-out -d domain /dir files.tar\n"
19841 "\n"
19842 msgstr ""
19843
19844 #. type: verbatim
19845 #: ../fish/virt-tar-out.pod:13
19846 #, no-wrap
19847 msgid ""
19848 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19849 "\n"
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../fish/virt-tar-out.pod:17
19854 msgid ""
19855 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/virt-tar-out.pod:20
19860 msgid ""
19861 "The first parameter is the absolute path of the virtual machine directory.  "
19862 "The second parameter is the tar file to write.  Use C<-> to write to "
19863 "standard output."
19864 msgstr ""
19865
19866 #. type: textblock
19867 #: ../fish/virt-tar-out.pod:26
19868 msgid "Download the home directories from a guest:"
19869 msgstr ""
19870
19871 #. type: verbatim
19872 #: ../fish/virt-tar-out.pod:28
19873 #, no-wrap
19874 msgid ""
19875 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19876 "\n"
19877 msgstr ""
19878
19879 #. type: textblock
19880 #: ../fish/virt-tar-out.pod:32
19881 msgid ""
19882 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19883 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19884 "are probably better off using guestfish directly."
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/virt-tar-out.pod:43
19889 #, fuzzy
19890 #| msgid ""
19891 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19892 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19893 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19894 #| "libguestfs.org/>."
19895 msgid ""
19896 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19897 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19898 msgstr ""
19899 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19900 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19901 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19902 "org/>."
19903
19904 #. type: textblock
19905 #: ../fuse/guestmount.pod:5
19906 msgid ""
19907 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19908 msgstr ""
19909
19910 #. type: verbatim
19911 #: ../fuse/guestmount.pod:9
19912 #, no-wrap
19913 msgid ""
19914 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19915 "\n"
19916 msgstr ""
19917
19918 #. type: verbatim
19919 #: ../fuse/guestmount.pod:11
19920 #, no-wrap
19921 msgid ""
19922 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19923 "\n"
19924 msgstr ""
19925
19926 #. type: verbatim
19927 #: ../fuse/guestmount.pod:13
19928 #, no-wrap
19929 msgid ""
19930 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19931 "\n"
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../fuse/guestmount.pod:17
19936 msgid ""
19937 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19938 "machines.  If you do this, you risk disk corruption in the VM."
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fuse/guestmount.pod:22
19943 msgid ""
19944 "The guestmount program can be used to mount virtual machine filesystems and "
19945 "other disk images on the host.  It uses libguestfs for access to the guest "
19946 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19947 "a mountable device."
19948 msgstr ""
19949
19950 #. type: textblock
19951 #: ../fuse/guestmount.pod:27
19952 msgid ""
19953 "Along with other options, you have to give at least one device (I<-a> "
19954 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19955 "option) or use the I<-i> inspection option.  How this works is better "
19956 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19957 "below."
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fuse/guestmount.pod:33
19962 msgid ""
19963 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19964 "by you, and the filesystem will not be visible to any other users unless you "
19965 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19966 "the filesystem, use the C<fusermount -u> command."
19967 msgstr ""
19968
19969 #. type: textblock
19970 #: ../fuse/guestmount.pod:41
19971 msgid ""
19972 "For a typical Windows guest which has its main filesystem on the first "
19973 "partition:"
19974 msgstr ""
19975
19976 #. type: verbatim
19977 #: ../fuse/guestmount.pod:44
19978 #, no-wrap
19979 msgid ""
19980 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19981 "\n"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fuse/guestmount.pod:46
19986 msgid ""
19987 "For a typical Linux guest which has a /boot filesystem on the first "
19988 "partition, and the root filesystem on a logical volume:"
19989 msgstr ""
19990
19991 #. type: verbatim
19992 #: ../fuse/guestmount.pod:49
19993 #, no-wrap
19994 msgid ""
19995 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19996 "\n"
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fuse/guestmount.pod:51
20001 msgid "To get libguestfs to detect guest mountpoints for you:"
20002 msgstr ""
20003
20004 #. type: verbatim
20005 #: ../fuse/guestmount.pod:53
20006 #, no-wrap
20007 msgid ""
20008 " guestmount -a guest.img -i --ro /mnt\n"
20009 "\n"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fuse/guestmount.pod:55
20014 msgid "For a libvirt guest called \"Guest\" you could do:"
20015 msgstr ""
20016
20017 #. type: verbatim
20018 #: ../fuse/guestmount.pod:57
20019 #, no-wrap
20020 msgid ""
20021 " guestmount -d Guest -i --ro /mnt\n"
20022 "\n"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../fuse/guestmount.pod:59
20027 msgid ""
20028 "If you don't know what filesystems are contained in a guest or disk image, "
20029 "use L<virt-filesystems(1)> first:"
20030 msgstr ""
20031
20032 #. type: verbatim
20033 #: ../fuse/guestmount.pod:62
20034 #, no-wrap
20035 msgid ""
20036 " virt-filesystems MyGuest\n"
20037 "\n"
20038 msgstr ""
20039
20040 #. type: textblock
20041 #: ../fuse/guestmount.pod:64
20042 msgid ""
20043 "If you want to trace the libguestfs calls but without excessive debugging "
20044 "information, we recommend:"
20045 msgstr ""
20046
20047 #. type: verbatim
20048 #: ../fuse/guestmount.pod:67
20049 #, no-wrap
20050 msgid ""
20051 " guestmount [...] --trace /mnt\n"
20052 "\n"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fuse/guestmount.pod:69
20057 msgid "If you want to debug the program, we recommend:"
20058 msgstr ""
20059
20060 #. type: verbatim
20061 #: ../fuse/guestmount.pod:71
20062 #, no-wrap
20063 msgid ""
20064 " guestmount [...] --trace --verbose /mnt\n"
20065 "\n"
20066 msgstr ""
20067
20068 #. type: =head1
20069 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20070 #: ../resize/virt-resize.pod:486
20071 msgid "NOTES"
20072 msgstr "ПРИМІТКИ"
20073
20074 #. type: =head2
20075 #: ../fuse/guestmount.pod:75
20076 msgid "Other users cannot see the filesystem by default"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fuse/guestmount.pod:77
20081 msgid ""
20082 "If you mount a filesystem as one user (eg. root), then other users will not "
20083 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20084 "option when mounting:"
20085 msgstr ""
20086
20087 #. type: verbatim
20088 #: ../fuse/guestmount.pod:81
20089 #, no-wrap
20090 msgid ""
20091 " sudo guestmount [...] -o allow_other /mnt\n"
20092 "\n"
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fuse/guestmount.pod:91
20097 msgid "Add a block device or virtual machine image."
20098 msgstr ""
20099
20100 #. type: =item
20101 #: ../fuse/guestmount.pod:114
20102 msgid "B<--dir-cache-timeout N>"
20103 msgstr "B<--dir-cache-timeout N>"
20104
20105 #. type: textblock
20106 #: ../fuse/guestmount.pod:116
20107 msgid ""
20108 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20109 "seconds.  The readdir cache [actually, there are several semi-independent "
20110 "caches] is populated after a readdir(2) call with the stat and extended "
20111 "attributes of the files in the directory, in anticipation that they will be "
20112 "requested soon after."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fuse/guestmount.pod:122
20117 msgid ""
20118 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20119 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20120 "requests, only cache existing ones."
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fuse/guestmount.pod:142
20125 msgid ""
20126 "If you have untrusted raw-format guest disk images, you should use this "
20127 "option to specify the disk format.  This avoids a possible security problem "
20128 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20129 "guestfs_add_drive_opts>."
20130 msgstr ""
20131
20132 #. type: =item
20133 #: ../fuse/guestmount.pod:147
20134 msgid "B<--fuse-help>"
20135 msgstr "B<--fuse-help>"
20136
20137 #. type: textblock
20138 #: ../fuse/guestmount.pod:149
20139 msgid "Display help on special FUSE options (see I<-o> below)."
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fuse/guestmount.pod:153
20144 msgid "Display brief help and exit."
20145 msgstr ""
20146
20147 #. type: textblock
20148 #: ../fuse/guestmount.pod:177
20149 msgid ""
20150 "Mount the named partition or logical volume on the given mountpoint B<in the "
20151 "guest> (this has nothing to do with mountpoints in the host)."
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../fuse/guestmount.pod:180
20156 msgid ""
20157 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20158 "something on C</>."
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fuse/guestmount.pod:197
20163 msgid ""
20164 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20165 "unmounted.  If you specify this option, then we don't attempt to sync the "
20166 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20167 msgstr ""
20168
20169 #. type: =item
20170 #: ../fuse/guestmount.pod:202
20171 #, fuzzy
20172 #| msgid "B<--partition>"
20173 msgid "B<-o option>"
20174 msgstr "B<--partition>"
20175
20176 #. type: =item
20177 #: ../fuse/guestmount.pod:204
20178 #, fuzzy
20179 #| msgid "B<--partition>"
20180 msgid "B<--option option>"
20181 msgstr "B<--partition>"
20182
20183 #. type: textblock
20184 #: ../fuse/guestmount.pod:206
20185 msgid "Pass extra options to FUSE."
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../fuse/guestmount.pod:208
20190 msgid ""
20191 "To get a list of all the extra options supported by FUSE, use the command "
20192 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20193 "of them are a good idea."
20194 msgstr ""
20195
20196 #. type: verbatim
20197 #: ../fuse/guestmount.pod:212
20198 #, no-wrap
20199 msgid ""
20200 " guestmount --fuse-help\n"
20201 "\n"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fuse/guestmount.pod:214
20206 msgid "Some potentially useful FUSE options:"
20207 msgstr ""
20208
20209 #. type: =item
20210 #: ../fuse/guestmount.pod:218
20211 msgid "B<-o allow_other>"
20212 msgstr ""
20213
20214 #. type: textblock
20215 #: ../fuse/guestmount.pod:220
20216 msgid "Allow other users to see the filesystem."
20217 msgstr ""
20218
20219 #. type: =item
20220 #: ../fuse/guestmount.pod:222
20221 msgid "B<-o attr_timeout=N>"
20222 msgstr "B<-o attr_timeout=N>"
20223
20224 #. type: textblock
20225 #: ../fuse/guestmount.pod:224
20226 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20227 msgstr ""
20228
20229 #. type: =item
20230 #: ../fuse/guestmount.pod:226
20231 msgid "B<-o kernel_cache>"
20232 msgstr ""
20233
20234 #. type: textblock
20235 #: ../fuse/guestmount.pod:228
20236 msgid ""
20237 "Allow the kernel to cache files (reduces the number of reads that have to go "
20238 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20239 "afford the extra memory usage."
20240 msgstr ""
20241
20242 #. type: =item
20243 #: ../fuse/guestmount.pod:232
20244 msgid "B<-o uid=N> B<-o gid=N>"
20245 msgstr ""
20246
20247 #. type: textblock
20248 #: ../fuse/guestmount.pod:234
20249 msgid ""
20250 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20251 "the chosen values."
20252 msgstr ""
20253
20254 #. type: textblock
20255 #: ../fuse/guestmount.pod:243
20256 msgid ""
20257 "Add devices and mount everything read-only.  Also disallow writes and make "
20258 "the disk appear read-only to FUSE."
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fuse/guestmount.pod:246
20263 msgid ""
20264 "This is highly recommended if you are not going to edit the guest disk.  If "
20265 "the guest is running and this option is I<not> supplied, then there is a "
20266 "strong risk of disk corruption in the guest.  We try to prevent this from "
20267 "happening, but it is not always possible."
20268 msgstr ""
20269
20270 #. type: textblock
20271 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20272 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fuse/guestmount.pod:255
20277 msgid "Enable SELinux support for the guest."
20278 msgstr ""
20279
20280 #. type: textblock
20281 #: ../fuse/guestmount.pod:261
20282 msgid "Enable verbose messages from underlying libguestfs."
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fuse/guestmount.pod:267
20287 msgid "Display the program version and exit."
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20292 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20293 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20294 msgstr ""
20295
20296 #. type: =item
20297 #: ../fuse/guestmount.pod:280
20298 #, fuzzy
20299 #| msgid "B<--ro>"
20300 msgid "B<--trace>"
20301 msgstr "B<--ro>"
20302
20303 #. type: textblock
20304 #: ../fuse/guestmount.pod:282
20305 msgid "Trace libguestfs calls and entry into each FUSE function."
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fuse/guestmount.pod:284
20310 msgid "This also stops the daemon from forking into the background."
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fuse/guestmount.pod:305
20315 msgid ""
20316 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20317 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20318 "net/>."
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../fuse/guestmount.pod:320
20323 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../inspector/virt-inspector.pod:5
20328 msgid ""
20329 "virt-inspector - Display operating system version and other information "
20330 "about a virtual machine"
20331 msgstr ""
20332
20333 #. type: verbatim
20334 #: ../inspector/virt-inspector.pod:9
20335 #, fuzzy, no-wrap
20336 #| msgid ""
20337 #| " virt-list-partitions [--options] domname\n"
20338 #| "\n"
20339 msgid ""
20340 " virt-inspector [--options] -d domname\n"
20341 "\n"
20342 msgstr ""
20343 " virt-list-partitions [--параметри] назва_домену\n"
20344 "\n"
20345
20346 #. type: verbatim
20347 #: ../inspector/virt-inspector.pod:11
20348 #, fuzzy, no-wrap
20349 #| msgid ""
20350 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20351 #| "\n"
20352 msgid ""
20353 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20354 "\n"
20355 msgstr ""
20356 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20357 "\n"
20358
20359 #. type: verbatim
20360 #: ../inspector/virt-inspector.pod:15
20361 #, fuzzy, no-wrap
20362 #| msgid ""
20363 #| " virt-list-partitions [--options] domname\n"
20364 #| "\n"
20365 msgid ""
20366 " virt-inspector domname\n"
20367 "\n"
20368 msgstr ""
20369 " virt-list-partitions [--параметри] назва_домену\n"
20370 "\n"
20371
20372 #. type: verbatim
20373 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20374 #, fuzzy, no-wrap
20375 #| msgid ""
20376 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20377 #| "\n"
20378 msgid ""
20379 " virt-inspector disk.img [disk.img ...]\n"
20380 "\n"
20381 msgstr ""
20382 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20383 "\n"
20384
20385 #. type: textblock
20386 #: ../inspector/virt-inspector.pod:21
20387 msgid ""
20388 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20389 "determine the version of the operating system and other information about "
20390 "the virtual machine."
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../inspector/virt-inspector.pod:25
20395 msgid "Virt-inspector produces XML output for feeding into other programs."
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../inspector/virt-inspector.pod:27
20400 msgid ""
20401 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20402 "the libvirt domain (see: C<virsh list --all>)."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../inspector/virt-inspector.pod:30
20407 msgid ""
20408 "You can also run virt-inspector directly on disk images from a single "
20409 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20410 "has several block devices, in which case you should list several I<-a> "
20411 "options one after another, with the first corresponding to the guest's C</"
20412 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20413 msgstr ""
20414
20415 #. type: textblock
20416 #: ../inspector/virt-inspector.pod:37
20417 msgid ""
20418 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20419 "keys and similar."
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../inspector/virt-inspector.pod:40
20424 msgid ""
20425 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20426 "inspect several virtual machines, you have to run virt-inspector several "
20427 "times (for example, from a shell script for-loop)."
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../inspector/virt-inspector.pod:45
20432 msgid ""
20433 "Because virt-inspector needs direct access to guest images, it won't "
20434 "normally work over remote libvirt connections."
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../inspector/virt-inspector.pod:48
20439 msgid ""
20440 "All of the information available from virt-inspector is also available "
20441 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20442 "The same information can also be fetched using guestfish or via libguestfs "
20443 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20444 "WITH OTHER PROGRAMMING LANGUAGES>)."
20445 msgstr ""
20446
20447 #. type: textblock
20448 #: ../inspector/virt-inspector.pod:81
20449 msgid ""
20450 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20451 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20452 "at all."
20453 msgstr ""
20454
20455 #. type: textblock
20456 #: ../inspector/virt-inspector.pod:94
20457 msgid ""
20458 "When prompting for keys and passphrases, virt-inspector normally turns "
20459 "echoing off so you cannot see what you are typing.  If you are not worried "
20460 "about Tempest attacks and there is no one else in the room you can specify "
20461 "this flag to see what you are typing."
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20466 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20467 #: ../tools/virt-win-reg.pl:144
20468 msgid ""
20469 "Specify the format of disk images given on the command line.  If this is "
20470 "omitted then the format is autodetected from the content of the disk image."
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20475 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20476 #: ../tools/virt-win-reg.pl:148
20477 msgid ""
20478 "If disk images are requested from libvirt, then this program asks libvirt "
20479 "for this information.  In this case, the value of the format parameter is "
20480 "ignored."
20481 msgstr ""
20482
20483 #. type: textblock
20484 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20485 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20486 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20487 #: ../tools/virt-win-reg.pl:152
20488 msgid ""
20489 "If working with untrusted raw-format guest disk images, you should ensure "
20490 "the format is always specified."
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../inspector/virt-inspector.pod:139
20495 msgid "Previous versions of virt-inspector allowed you to write either:"
20496 msgstr ""
20497
20498 #. type: verbatim
20499 #: ../inspector/virt-inspector.pod:145
20500 #, fuzzy, no-wrap
20501 #| msgid ""
20502 #| " inspect-get-hostname root\n"
20503 #| "\n"
20504 msgid ""
20505 " virt-inspector guestname\n"
20506 "\n"
20507 msgstr ""
20508 " inspect-get-hostname корінь\n"
20509 "\n"
20510
20511 #. type: =head1
20512 #: ../inspector/virt-inspector.pod:153
20513 msgid "XML FORMAT"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../inspector/virt-inspector.pod:155
20518 msgid ""
20519 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20520 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20521 "just an overview."
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../inspector/virt-inspector.pod:159
20526 msgid ""
20527 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20528 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20529 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20530 "which is vanishingly rare in real world VMs."
20531 msgstr ""
20532
20533 #. type: =head2
20534 #: ../inspector/virt-inspector.pod:164
20535 msgid "E<lt>operatingsystemE<gt>"
20536 msgstr ""
20537
20538 #. type: textblock
20539 #: ../inspector/virt-inspector.pod:166
20540 msgid ""
20541 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20542 "describe the operating system, its architecture, the descriptive \"product "
20543 "name\" string, the type of OS and so on, as in this example:"
20544 msgstr ""
20545
20546 #. type: verbatim
20547 #: ../inspector/virt-inspector.pod:170
20548 #, no-wrap
20549 msgid ""
20550 " <operatingsystems>\n"
20551 "   <operatingsystem>\n"
20552 "     <root>/dev/sda2</root>\n"
20553 "     <name>windows</name>\n"
20554 "     <arch>i386</arch>\n"
20555 "     <distro>windows</distro>\n"
20556 "     <product_name>Windows 7 Enterprise</product_name>\n"
20557 "     <product_variant>Client</product_variant>\n"
20558 "     <major_version>6</major_version>\n"
20559 "     <minor_version>1</minor_version>\n"
20560 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20561 "     <format>installed</format>\n"
20562 "\n"
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../inspector/virt-inspector.pod:183
20567 msgid ""
20568 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20569 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20570 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20571 "architecture.  The other fields are fairly self-explanatory, but because "
20572 "these fields are taken directly from the libguestfs inspection API you can "
20573 "find precise information from L<guestfs(3)/INSPECTION>."
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../inspector/virt-inspector.pod:191
20578 msgid ""
20579 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20580 "of view of libguestfs (block devices may have completely different names "
20581 "inside the VM itself)."
20582 msgstr ""
20583
20584 #. type: =head2
20585 #: ../inspector/virt-inspector.pod:195
20586 #, fuzzy
20587 #| msgid "mountpoints"
20588 msgid "E<lt>mountpointsE<gt>"
20589 msgstr "mountpoints"
20590
20591 #. type: textblock
20592 #: ../inspector/virt-inspector.pod:197
20593 msgid ""
20594 "Un*x-like guests typically have multiple filesystems which are mounted at "
20595 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20596 "element which looks like this:"
20597 msgstr ""
20598
20599 #. type: verbatim
20600 #: ../inspector/virt-inspector.pod:201
20601 #, no-wrap
20602 msgid ""
20603 " <operatingsystems>\n"
20604 "   <operatingsystem>\n"
20605 "     ...\n"
20606 "     <mountpoints>\n"
20607 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20608 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20609 "     </mountpoints>\n"
20610 "\n"
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../inspector/virt-inspector.pod:209
20615 msgid ""
20616 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20617 "and may have completely different names inside the guest.  Only mountable "
20618 "filesystems appear in this list, not things like swap devices."
20619 msgstr ""
20620
20621 #. type: =head2
20622 #: ../inspector/virt-inspector.pod:214
20623 #, fuzzy
20624 #| msgid "list-filesystems"
20625 msgid "E<lt>filesystemsE<gt>"
20626 msgstr "list-filesystems"
20627
20628 #. type: textblock
20629 #: ../inspector/virt-inspector.pod:216
20630 msgid ""
20631 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20632 "filesystems belonging to the guest, including swap and empty partitions.  "
20633 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20634 "this OS or shared with this OS and other OSes)."
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../inspector/virt-inspector.pod:222
20639 msgid "You might see something like this:"
20640 msgstr ""
20641
20642 #. type: verbatim
20643 #: ../inspector/virt-inspector.pod:224
20644 #, no-wrap
20645 msgid ""
20646 " <operatingsystems>\n"
20647 "   <operatingsystem>\n"
20648 "     ...\n"
20649 "     <filesystems>\n"
20650 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20651 "         <type>ext4</type>\n"
20652 "         <label>Fedora-13-x86_64</label>\n"
20653 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20654 "       </filesystem>\n"
20655 "\n"
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../inspector/virt-inspector.pod:234
20660 msgid ""
20661 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20662 "the label, and the UUID."
20663 msgstr ""
20664
20665 #. type: =head2
20666 #: ../inspector/virt-inspector.pod:237
20667 msgid "E<lt>applicationsE<gt>"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../inspector/virt-inspector.pod:239
20672 msgid ""
20673 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20674 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20675 "machine."
20676 msgstr ""
20677
20678 #. type: textblock
20679 #: ../inspector/virt-inspector.pod:243
20680 msgid ""
20681 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20682 "Typical values would be C<rpm> and C<deb>."
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../inspector/virt-inspector.pod:246
20687 msgid ""
20688 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20689 "Typical values include C<yum>, C<up2date> and C<apt>"
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../inspector/virt-inspector.pod:249
20694 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20695 msgstr ""
20696
20697 #. type: verbatim
20698 #: ../inspector/virt-inspector.pod:252
20699 #, no-wrap
20700 msgid ""
20701 " <operatingsystems>\n"
20702 "   <operatingsystem>\n"
20703 "     ...\n"
20704 "     <applications>\n"
20705 "       <application>\n"
20706 "         <name>coreutils</name>\n"
20707 "         <version>8.5</version>\n"
20708 "         <release>1</release>\n"
20709 "       </application>\n"
20710 "\n"
20711 msgstr ""
20712
20713 #. type: textblock
20714 #: ../inspector/virt-inspector.pod:262
20715 msgid ""
20716 "The version and release fields may not be available for some types guests.  "
20717 "Other fields are possible, see L<guestfs(3)/"
20718 "guestfs_inspect_list_applications>."
20719 msgstr ""
20720
20721 #. type: =head2
20722 #: ../inspector/virt-inspector.pod:266
20723 msgid "E<lt>drive_mappingsE<gt>"
20724 msgstr ""
20725
20726 #. type: textblock
20727 #: ../inspector/virt-inspector.pod:268
20728 msgid ""
20729 "For operating systems like Windows which use drive letters, virt-inspector "
20730 "is able to find out how drive letters map to filesystems."
20731 msgstr ""
20732
20733 #. type: verbatim
20734 #: ../inspector/virt-inspector.pod:272
20735 #, no-wrap
20736 msgid ""
20737 " <operatingsystems>\n"
20738 "   <operatingsystem>\n"
20739 "     ...\n"
20740 "     <drive_mappings>\n"
20741 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20742 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20743 "     </drive_mappings>\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../inspector/virt-inspector.pod:280
20749 msgid ""
20750 "In the example above, drive C maps to the filesystem on the second partition "
20751 "on the first disk, and drive E maps to the filesystem on the first partition "
20752 "on the second disk."
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../inspector/virt-inspector.pod:284
20757 msgid ""
20758 "Note that this only covers permanent local filesystem mappings, not things "
20759 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20760 "here."
20761 msgstr ""
20762
20763 #. type: =head2
20764 #: ../inspector/virt-inspector.pod:288
20765 #, fuzzy
20766 #| msgid "B<-s E<lt>NE<gt>>"
20767 msgid "E<lt>iconE<gt>"
20768 msgstr "B<-s E<lt>NE<gt>>"
20769
20770 #. type: textblock
20771 #: ../inspector/virt-inspector.pod:290
20772 msgid ""
20773 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20774 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20775 "very large and high quality."
20776 msgstr ""
20777
20778 #. type: verbatim
20779 #: ../inspector/virt-inspector.pod:294
20780 #, no-wrap
20781 msgid ""
20782 " <operatingsystems>\n"
20783 "   <operatingsystem>\n"
20784 "     ...\n"
20785 "     <icon>\n"
20786 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20787 "       [... many lines of base64 data ...]\n"
20788 "     </icon>\n"
20789 "\n"
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../inspector/virt-inspector.pod:302
20794 msgid ""
20795 "To display the icon, you have to extract it and convert the base64 data back "
20796 "to a binary file.  Use an XPath query or simply an editor to extract the "
20797 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20798 "to a PNG file:"
20799 msgstr ""
20800
20801 #. type: verbatim
20802 #: ../inspector/virt-inspector.pod:307
20803 #, no-wrap
20804 msgid ""
20805 " base64 -i -d < icon.data > icon.png\n"
20806 "\n"
20807 msgstr ""
20808
20809 #. type: =head2
20810 #: ../inspector/virt-inspector.pod:309
20811 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../inspector/virt-inspector.pod:311
20816 msgid ""
20817 "Virt-inspector can detect some operating system installers on install disks, "
20818 "live CDs, bootable USB keys and more."
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../inspector/virt-inspector.pod:314
20823 msgid ""
20824 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20825 "fields may be present to indicate a live CD, network installer, or one part "
20826 "of a multipart CD.  For example:"
20827 msgstr ""
20828
20829 #. type: verbatim
20830 #: ../inspector/virt-inspector.pod:318
20831 #, no-wrap
20832 msgid ""
20833 " <operatingsystems>\n"
20834 "   <operatingsystem>\n"
20835 "     <root>/dev/sda</root>\n"
20836 "     <name>linux</name>\n"
20837 "     <arch>i386</arch>\n"
20838 "     <distro>ubuntu</distro>\n"
20839 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20840 "     <major_version>10</major_version>\n"
20841 "     <minor_version>10</minor_version>\n"
20842 "     <format>installer</format>\n"
20843 "     <live/>\n"
20844 "\n"
20845 msgstr ""
20846
20847 #. type: =head1
20848 #: ../inspector/virt-inspector.pod:330
20849 msgid "USING XPATH"
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../inspector/virt-inspector.pod:332
20854 msgid ""
20855 "You can use the XPath query language, and/or the xpath tool, in order to "
20856 "select parts of the XML."
20857 msgstr ""
20858
20859 #. type: verbatim
20860 #: ../inspector/virt-inspector.pod:337
20861 #, no-wrap
20862 msgid ""
20863 " $ virt-inspector -d Guest | xpath //filesystems\n"
20864 " Found 1 nodes:\n"
20865 " -- NODE --\n"
20866 " <filesystems>\n"
20867 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20868 "        <type>ext4</type>\n"
20869 " [etc]\n"
20870 "\n"
20871 msgstr ""
20872
20873 #. type: verbatim
20874 #: ../inspector/virt-inspector.pod:345
20875 #, no-wrap
20876 msgid ""
20877 " $ virt-inspector -d Guest | \\\n"
20878 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20879 " Query didn't return a nodeset. Value: ext4\n"
20880 "\n"
20881 msgstr ""
20882
20883 #. type: =head1
20884 #: ../inspector/virt-inspector.pod:356
20885 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../inspector/virt-inspector.pod:358
20890 msgid ""
20891 "Early versions of libguestfs shipped with a different virt-inspector program "
20892 "written in Perl (the current version is written in C).  The XML output of "
20893 "the Perl virt-inspector was different and it could also output in other "
20894 "formats like text."
20895 msgstr ""
20896
20897 #. type: textblock
20898 #: ../inspector/virt-inspector.pod:363
20899 msgid ""
20900 "The old virt-inspector is no longer supported or shipped with libguestfs."
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../inspector/virt-inspector.pod:366
20905 msgid ""
20906 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20907 "versions of virt-inspector with different names:"
20908 msgstr ""
20909
20910 #. type: verbatim
20911 #: ../inspector/virt-inspector.pod:369
20912 #, no-wrap
20913 msgid ""
20914 " virt-inspector     Old Perl version.\n"
20915 " virt-inspector2    New C version.\n"
20916 "\n"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../inspector/virt-inspector.pod:374
20921 msgid ""
20922 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20923 ">, L<http://libguestfs.org/>."
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../inspector/virt-inspector.pod:390
20928 msgid "Matthew Booth L<mbooth@redhat.com>"
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../java/examples/guestfs-java.pod:5
20933 msgid "guestfs-java - How to use libguestfs from Java"
20934 msgstr ""
20935
20936 #. type: verbatim
20937 #: ../java/examples/guestfs-java.pod:9
20938 #, no-wrap
20939 msgid ""
20940 " import com.redhat.et.libguestfs.*;\n"
20941 " \n"
20942 msgstr ""
20943
20944 #. type: verbatim
20945 #: ../java/examples/guestfs-java.pod:11
20946 #, no-wrap
20947 msgid ""
20948 " GuestFS g = new GuestFS ();\n"
20949 " g.add_drive_opts (\"disk.img\", null);\n"
20950 " g.launch ();\n"
20951 "\n"
20952 msgstr ""
20953
20954 #. type: textblock
20955 #: ../java/examples/guestfs-java.pod:17
20956 msgid ""
20957 "This manual page documents how to call libguestfs from the Java programming "
20958 "language.  This page just documents the differences from the C API and gives "
20959 "some examples.  If you are not familiar with using libguestfs, you also need "
20960 "to read L<guestfs(3)>."
20961 msgstr ""
20962
20963 #. type: =head2
20964 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20965 msgid "CLOSING THE HANDLE"
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../java/examples/guestfs-java.pod:24
20970 msgid ""
20971 "The handle is closed when it is reaped by the garbage collector.  Because "
20972 "libguestfs handles include a lot of state, it is also possible to close (and "
20973 "hence free) them explicitly by calling the C<close> method."
20974 msgstr ""
20975
20976 #. type: =head2
20977 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20978 #: ../python/examples/guestfs-python.pod:21
20979 #: ../ruby/examples/guestfs-ruby.pod:22
20980 #, fuzzy
20981 #| msgid "OPTIONS"
20982 msgid "EXCEPTIONS"
20983 msgstr "ПАРАМЕТРИ"
20984
20985 #. type: textblock
20986 #: ../java/examples/guestfs-java.pod:31
20987 msgid ""
20988 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20989 "exception.  This has a single parameter which is the error message (a "
20990 "C<String>)."
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../java/examples/guestfs-java.pod:35
20995 msgid "Calling any method on a closed handle raises the same exception."
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../java/examples/guestfs-java.pod:47
21000 #, fuzzy
21001 #| msgid ""
21002 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21003 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21004 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21005 msgid ""
21006 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21007 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21008 "libguestfs.org/>, L<http://caml.inria.fr/>."
21009 msgstr ""
21010 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21011 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21012 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21013
21014 #. type: textblock
21015 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21016 #, fuzzy
21017 #| msgid "Copyright (C) 2009 Red Hat Inc."
21018 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21019 msgstr "© Red Hat Inc., 2009"
21020
21021 #. type: textblock
21022 #: ../ocaml/examples/guestfs-ocaml.pod:5
21023 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../ocaml/examples/guestfs-ocaml.pod:9
21028 msgid "Module style:"
21029 msgstr ""
21030
21031 #. type: verbatim
21032 #: ../ocaml/examples/guestfs-ocaml.pod:11
21033 #, no-wrap
21034 msgid ""
21035 " let g = Guestfs.create () in\n"
21036 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21037 " Guestfs.launch g;\n"
21038 "\n"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../ocaml/examples/guestfs-ocaml.pod:15
21043 msgid "Object-oriented style:"
21044 msgstr ""
21045
21046 #. type: verbatim
21047 #: ../ocaml/examples/guestfs-ocaml.pod:17
21048 #, no-wrap
21049 msgid ""
21050 " let g = new Guestfs.guestfs () in\n"
21051 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21052 " g#launch ();\n"
21053 "\n"
21054 msgstr ""
21055
21056 #. type: verbatim
21057 #: ../ocaml/examples/guestfs-ocaml.pod:21
21058 #, no-wrap
21059 msgid ""
21060 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21061 "or:\n"
21062 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21063 "\n"
21064 msgstr ""
21065
21066 #. type: textblock
21067 #: ../ocaml/examples/guestfs-ocaml.pod:27
21068 msgid ""
21069 "This manual page documents how to call libguestfs from the OCaml programming "
21070 "language.  This page just documents the differences from the C API and gives "
21071 "some examples.  If you are not familiar with using libguestfs, you also need "
21072 "to read L<guestfs(3)>."
21073 msgstr ""
21074
21075 #. type: =head2
21076 #: ../ocaml/examples/guestfs-ocaml.pod:32
21077 msgid "PROGRAMMING STYLES"
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../ocaml/examples/guestfs-ocaml.pod:34
21082 msgid ""
21083 "There are two different programming styles supported by the OCaml bindings.  "
21084 "You can use a module style, with each C function mapped to an OCaml function:"
21085 msgstr ""
21086
21087 #. type: verbatim
21088 #: ../ocaml/examples/guestfs-ocaml.pod:38
21089 #, fuzzy, no-wrap
21090 #| msgid ""
21091 #| " int guestfs_last_errno (guestfs_h *g);\n"
21092 #| "\n"
21093 msgid ""
21094 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21095 "\n"
21096 msgstr ""
21097 " int guestfs_last_errno (guestfs_h *g);\n"
21098 "\n"
21099
21100 #. type: textblock
21101 #: ../ocaml/examples/guestfs-ocaml.pod:40
21102 msgid "becomes:"
21103 msgstr ""
21104
21105 #. type: verbatim
21106 #: ../ocaml/examples/guestfs-ocaml.pod:42
21107 #, no-wrap
21108 msgid ""
21109 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21110 "\n"
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../ocaml/examples/guestfs-ocaml.pod:44
21115 msgid ""
21116 "Alternately you can use an object-oriented style, calling methods on the "
21117 "class C<Guestfs.guestfs>:"
21118 msgstr ""
21119
21120 #. type: verbatim
21121 #: ../ocaml/examples/guestfs-ocaml.pod:47
21122 #, no-wrap
21123 msgid ""
21124 " method set_verbose : bool -> unit\n"
21125 "\n"
21126 msgstr ""
21127
21128 #. type: textblock
21129 #: ../ocaml/examples/guestfs-ocaml.pod:49
21130 msgid ""
21131 "The object-oriented style is usually briefer, and the minor performance "
21132 "penalty isn't noticable in the general overhead of performing libguestfs "
21133 "functions."
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../ocaml/examples/guestfs-ocaml.pod:55
21138 msgid ""
21139 "The handle is closed when it is reaped by the garbage collector.  Because "
21140 "libguestfs handles include a lot of state, it is also possible to close (and "
21141 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21142 "method."
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../ocaml/examples/guestfs-ocaml.pod:62
21147 msgid ""
21148 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21149 "exception.  This has a single parameter which is the error message (a "
21150 "string)."
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../ocaml/examples/guestfs-ocaml.pod:66
21155 msgid ""
21156 "Calling any function/method on a closed handle raises C<Guestfs."
21157 "Handle_closed>.  The single parameter is the name of the function that you "
21158 "called."
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../ocaml/examples/guestfs-ocaml.pod:80
21163 #, fuzzy
21164 #| msgid ""
21165 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21166 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21167 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21168 msgid ""
21169 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21170 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21171 "libguestfs.org/>, L<http://caml.inria.fr/>."
21172 msgstr ""
21173 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21174 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21175 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21176
21177 #. type: textblock
21178 #: ../perl/examples/guestfs-perl.pod:5
21179 msgid "guestfs-perl - How to use libguestfs from Perl"
21180 msgstr ""
21181
21182 #. type: verbatim
21183 #: ../perl/examples/guestfs-perl.pod:9
21184 #, no-wrap
21185 msgid ""
21186 " use Sys::Guestfs;\n"
21187 " \n"
21188 msgstr ""
21189
21190 #. type: verbatim
21191 #: ../perl/examples/guestfs-perl.pod:11
21192 #, no-wrap
21193 msgid ""
21194 " my $h = Sys::Guestfs->new ();\n"
21195 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21196 " $h->launch ();\n"
21197 " $h->mount_options ('', '/dev/sda1', '/');\n"
21198 " $h->touch ('/hello');\n"
21199 " $h->sync ();\n"
21200 "\n"
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../perl/examples/guestfs-perl.pod:20
21205 msgid ""
21206 "This manual page documents how to call libguestfs from the Perl programming "
21207 "language.  This page just documents the differences from the C API and gives "
21208 "some examples.  If you are not familiar with using libguestfs, you also need "
21209 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21210 msgstr ""
21211
21212 #. type: =head2
21213 #: ../perl/examples/guestfs-perl.pod:26
21214 msgid "ERRORS"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../perl/examples/guestfs-perl.pod:28
21219 msgid ""
21220 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21221 ">)."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../perl/examples/guestfs-perl.pod:41
21226 #, fuzzy
21227 #| msgid ""
21228 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21229 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21230 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21231 msgid ""
21232 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21233 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21234 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21235 msgstr ""
21236 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21237 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21238 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21239
21240 #. type: textblock
21241 #: ../python/examples/guestfs-python.pod:5
21242 msgid "guestfs-python - How to use libguestfs from Python"
21243 msgstr ""
21244
21245 #. type: verbatim
21246 #: ../python/examples/guestfs-python.pod:9
21247 #, no-wrap
21248 msgid ""
21249 " import guestfs\n"
21250 " g = guestfs.GuestFS ()\n"
21251 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21252 " g.launch\n"
21253 "\n"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../python/examples/guestfs-python.pod:16
21258 msgid ""
21259 "This manual page documents how to call libguestfs from the Python "
21260 "programming language.  This page just documents the differences from the C "
21261 "API and gives some examples.  If you are not familiar with using libguestfs, "
21262 "you also need to read L<guestfs(3)>."
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../python/examples/guestfs-python.pod:23
21267 msgid ""
21268 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21269 "single string argument which is the error message."
21270 msgstr ""
21271
21272 #. type: =head2
21273 #: ../python/examples/guestfs-python.pod:26
21274 msgid "MORE DOCUMENTATION"
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../python/examples/guestfs-python.pod:28
21279 msgid "Type:"
21280 msgstr ""
21281
21282 #. type: verbatim
21283 #: ../python/examples/guestfs-python.pod:30
21284 #, no-wrap
21285 msgid ""
21286 " $ python\n"
21287 " >>> import guestfs\n"
21288 " >>> help (guestfs)\n"
21289 "\n"
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../python/examples/guestfs-python.pod:44
21294 #, fuzzy
21295 #| msgid ""
21296 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21297 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21298 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21299 msgid ""
21300 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21301 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21302 "libguestfs.org/>."
21303 msgstr ""
21304 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21305 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21306 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21307
21308 #. type: textblock
21309 #: ../rescue/virt-rescue.pod:5
21310 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21311 msgstr ""
21312
21313 #. type: verbatim
21314 #: ../rescue/virt-rescue.pod:9
21315 #, fuzzy, no-wrap
21316 #| msgid ""
21317 #| " virt-list-partitions [--options] domname\n"
21318 #| "\n"
21319 msgid ""
21320 " virt-rescue [--options] -d domname\n"
21321 "\n"
21322 msgstr ""
21323 " virt-list-partitions [--параметри] назва_домену\n"
21324 "\n"
21325
21326 #. type: verbatim
21327 #: ../rescue/virt-rescue.pod:11
21328 #, fuzzy, no-wrap
21329 #| msgid ""
21330 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21331 #| "\n"
21332 msgid ""
21333 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21334 "\n"
21335 msgstr ""
21336 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21337 "\n"
21338
21339 #. type: verbatim
21340 #: ../rescue/virt-rescue.pod:15
21341 #, fuzzy, no-wrap
21342 #| msgid ""
21343 #| " virt-list-partitions [--options] domname\n"
21344 #| "\n"
21345 msgid ""
21346 " virt-rescue [--options] domname\n"
21347 "\n"
21348 msgstr ""
21349 " virt-list-partitions [--параметри] назва_домену\n"
21350 "\n"
21351
21352 #. type: verbatim
21353 #: ../rescue/virt-rescue.pod:17
21354 #, fuzzy, no-wrap
21355 #| msgid ""
21356 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21357 #| "\n"
21358 msgid ""
21359 " virt-rescue [--options] disk.img [disk.img ...]\n"
21360 "\n"
21361 msgstr ""
21362 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21363 "\n"
21364
21365 #. type: textblock
21366 #: ../rescue/virt-rescue.pod:21
21367 msgid ""
21368 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21369 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21370 "you from doing this, but doesn't catch all cases."
21371 msgstr ""
21372
21373 #. type: textblock
21374 #: ../rescue/virt-rescue.pod:25
21375 msgid ""
21376 "However if you use the I<--ro> (read only) option, then you can attach a "
21377 "shell to a live virtual machine.  The results might be strange or "
21378 "inconsistent at times but you won't get disk corruption."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../rescue/virt-rescue.pod:31
21383 msgid ""
21384 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21385 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21386 "recovery tools which you can use to examine or rescue a virtual machine or "
21387 "disk image."
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../rescue/virt-rescue.pod:36
21392 msgid ""
21393 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21394 "on disk image(s):"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../rescue/virt-rescue.pod:39
21399 #, no-wrap
21400 msgid ""
21401 " virt-rescue -d GuestName\n"
21402 "\n"
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../rescue/virt-rescue.pod:41
21407 #, no-wrap
21408 msgid ""
21409 " virt-rescue --ro -a /path/to/disk.img\n"
21410 "\n"
21411 msgstr ""
21412
21413 #. type: verbatim
21414 #: ../rescue/virt-rescue.pod:43
21415 #, no-wrap
21416 msgid ""
21417 " virt-rescue -a /dev/sdc\n"
21418 "\n"
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../rescue/virt-rescue.pod:45
21423 msgid "For live VMs you I<must> use the --ro option."
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../rescue/virt-rescue.pod:47
21428 msgid ""
21429 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21430 "in an interactive bash shell where you can use many ordinary Linux "
21431 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21432 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21433 "is an empty directory called C</sysroot> where you can mount filesystems."
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../rescue/virt-rescue.pod:54
21438 msgid ""
21439 "In the example below, we list logical volumes, then choose one to mount "
21440 "under C</sysroot>:"
21441 msgstr ""
21442
21443 #. type: verbatim
21444 #: ../rescue/virt-rescue.pod:57
21445 #, no-wrap
21446 msgid ""
21447 " ><rescue> lvs\n"
21448 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21449 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21450 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21451 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21452 " ><rescue> ls /sysroot\n"
21453 "\n"
21454 msgstr ""
21455
21456 #. type: textblock
21457 #: ../rescue/virt-rescue.pod:64
21458 msgid ""
21459 "If you don't know what filesystems are available on the virtual machine then "
21460 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../rescue/virt-rescue.pod:70
21465 msgid ""
21466 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21467 "virtual machine.  For example you can use it on a blank file if you want to "
21468 "partition that file (although we would recommend using L<guestfish(1)> "
21469 "instead as it is more suitable for this purpose).  You can even use virt-"
21470 "rescue on things like SD cards."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../rescue/virt-rescue.pod:76
21475 msgid ""
21476 "Virt-rescue does not require root.  You only need to run it as root if you "
21477 "need root to open the disk image."
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../rescue/virt-rescue.pod:79
21482 msgid ""
21483 "This tool is just designed for quick interactive hacking on a virtual "
21484 "machine.  For more structured access to a virtual machine disk image, you "
21485 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21486 "make scripted changes to guests, use L<guestfish(1)>."
21487 msgstr ""
21488
21489 #. type: =item
21490 #: ../rescue/virt-rescue.pod:103
21491 msgid "B<--append kernelopts>"
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../rescue/virt-rescue.pod:105
21496 msgid "Pass additional options to the rescue kernel."
21497 msgstr ""
21498
21499 #. type: verbatim
21500 #: ../rescue/virt-rescue.pod:135
21501 #, fuzzy, no-wrap
21502 #| msgid ""
21503 #| " guestfish --format=raw -a disk.img\n"
21504 #| "\n"
21505 msgid ""
21506 " virt-rescue --format=raw -a disk.img\n"
21507 "\n"
21508 msgstr ""
21509 " guestfish --format=raw -a disk.img\n"
21510 "\n"
21511
21512 #. type: verbatim
21513 #: ../rescue/virt-rescue.pod:139
21514 #, fuzzy, no-wrap
21515 #| msgid ""
21516 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21517 #| "\n"
21518 msgid ""
21519 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21520 "\n"
21521 msgstr ""
21522 " guestfish --format=raw -a disk.img --format -a another.img\n"
21523 "\n"
21524
21525 #. type: =item
21526 #: ../rescue/virt-rescue.pod:148
21527 msgid "B<-m MB>"
21528 msgstr ""
21529
21530 #. type: =item
21531 #: ../rescue/virt-rescue.pod:150
21532 #, fuzzy
21533 #| msgid "B<--merge>"
21534 msgid "B<--memsize MB>"
21535 msgstr "B<--merge>"
21536
21537 #. type: textblock
21538 #: ../rescue/virt-rescue.pod:152
21539 msgid ""
21540 "Change the amount of memory allocated to the rescue system.  The default is "
21541 "set by libguestfs and is small but adequate for running system tools.  The "
21542 "occasional program might need more memory.  The parameter is specified in "
21543 "megabytes."
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../rescue/virt-rescue.pod:157
21548 #, fuzzy
21549 #| msgid "B<--inspector>"
21550 msgid "B<--network>"
21551 msgstr "B<--inspector>"
21552
21553 #. type: textblock
21554 #: ../rescue/virt-rescue.pod:159
21555 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../rescue/virt-rescue.pod:165
21560 msgid "Open the image read-only."
21561 msgstr ""
21562
21563 #. type: textblock
21564 #: ../rescue/virt-rescue.pod:175
21565 msgid ""
21566 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21567 "SELINUX> before using this option."
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../rescue/virt-rescue.pod:194
21572 msgid ""
21573 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21574 "are done read-write."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../rescue/virt-rescue.pod:207
21579 msgid "Previous versions of virt-rescue allowed you to write either:"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../rescue/virt-rescue.pod:209
21584 #, fuzzy, no-wrap
21585 #| msgid ""
21586 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21587 #| "\n"
21588 msgid ""
21589 " virt-rescue disk.img [disk.img ...]\n"
21590 "\n"
21591 msgstr ""
21592 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21593 "\n"
21594
21595 #. type: verbatim
21596 #: ../rescue/virt-rescue.pod:213
21597 #, fuzzy, no-wrap
21598 #| msgid ""
21599 #| " file-architecture filename\n"
21600 #| "\n"
21601 msgid ""
21602 " virt-rescue guestname\n"
21603 "\n"
21604 msgstr ""
21605 " file-architecture назва_файла\n"
21606 "\n"
21607
21608 #. type: =head1
21609 #: ../rescue/virt-rescue.pod:221
21610 msgid "NETWORK"
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../rescue/virt-rescue.pod:223
21615 msgid ""
21616 "Adding the I<--network> option enables QEMU user networking in the rescue "
21617 "appliance.  There are some differences between user networking and ordinary "
21618 "networking:"
21619 msgstr ""
21620
21621 #. type: =item
21622 #: ../rescue/virt-rescue.pod:229
21623 msgid "ping does not work"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../rescue/virt-rescue.pod:231
21628 msgid ""
21629 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21630 "send the ping packets, and because virt-rescue must be able to run as non-"
21631 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21632 "The ping command will appear to resolve addresses but will not be able to "
21633 "send or receive any packets.  This does not mean that the network is not "
21634 "working."
21635 msgstr ""
21636
21637 #. type: =item
21638 #: ../rescue/virt-rescue.pod:238
21639 msgid "cannot receive connections"
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../rescue/virt-rescue.pod:240
21644 msgid "QEMU user networking cannot receive incoming connections."
21645 msgstr ""
21646
21647 #. type: =item
21648 #: ../rescue/virt-rescue.pod:242
21649 msgid "making TCP connections"
21650 msgstr ""
21651
21652 #. type: textblock
21653 #: ../rescue/virt-rescue.pod:244
21654 msgid ""
21655 "The virt-rescue appliance needs to be small and so does not include many "
21656 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21657 "make TCP connections from the shell using the magical C</dev/tcp/"
21658 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21659 msgstr ""
21660
21661 #. type: verbatim
21662 #: ../rescue/virt-rescue.pod:249
21663 #, no-wrap
21664 msgid ""
21665 " exec 3<>/dev/tcp/redhat.com/80\n"
21666 " echo \"GET /\" >&3\n"
21667 " cat <&3\n"
21668 "\n"
21669 msgstr ""
21670
21671 #. type: textblock
21672 #: ../rescue/virt-rescue.pod:253
21673 msgid "See L<bash(1)> for more details."
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../rescue/virt-rescue.pod:259
21678 msgid ""
21679 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21680 "ENVIRONMENT VARIABLES> for the complete list."
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../rescue/virt-rescue.pod:286
21685 #, fuzzy
21686 #| msgid ""
21687 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21688 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21689 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21690 msgid ""
21691 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21692 "libguestfs.org/>."
21693 msgstr ""
21694 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21695 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21696 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21697
21698 #. type: textblock
21699 #: ../resize/virt-resize.pod:5
21700 msgid "virt-resize - Resize a virtual machine disk"
21701 msgstr ""
21702
21703 #. type: verbatim
21704 #: ../resize/virt-resize.pod:9
21705 #, no-wrap
21706 msgid ""
21707 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21708 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21709 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21710 "\n"
21711 msgstr ""
21712
21713 #. type: textblock
21714 #: ../resize/virt-resize.pod:15
21715 msgid ""
21716 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21717 "larger or smaller overall, and resizing or deleting any partitions contained "
21718 "within."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../resize/virt-resize.pod:19
21723 msgid ""
21724 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21725 "not> be used on live virtual machines - for consistent results, shut the "
21726 "virtual machine down before resizing it."
21727 msgstr ""
21728
21729 #. type: textblock
21730 #: ../resize/virt-resize.pod:23
21731 msgid ""
21732 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21733 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21734 msgstr ""
21735
21736 #. type: =item
21737 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21738 #: ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
21739 msgid "1."
21740 msgstr "1."
21741
21742 #. type: textblock
21743 #: ../resize/virt-resize.pod:33
21744 msgid ""
21745 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21746 "fill the extra 5GB of space."
21747 msgstr ""
21748
21749 #. type: verbatim
21750 #: ../resize/virt-resize.pod:36
21751 #, no-wrap
21752 msgid ""
21753 " virt-filesystems --long -h --all -a olddisk\n"
21754 " \n"
21755 msgstr ""
21756
21757 #. type: verbatim
21758 #: ../resize/virt-resize.pod:38
21759 #, no-wrap
21760 msgid ""
21761 " truncate -r olddisk newdisk\n"
21762 " truncate -s +5G newdisk\n"
21763 " \n"
21764 msgstr ""
21765
21766 #. type: verbatim
21767 #: ../resize/virt-resize.pod:41
21768 #, no-wrap
21769 msgid ""
21770 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21771 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21772 "\n"
21773 msgstr ""
21774
21775 #. type: =item
21776 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21777 #: ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
21778 msgid "2."
21779 msgstr "2."
21780
21781 #. type: textblock
21782 #: ../resize/virt-resize.pod:46
21783 msgid ""
21784 "As above, but make the /boot partition 200MB bigger, while giving the "
21785 "remaining space to /dev/sda2:"
21786 msgstr ""
21787
21788 #. type: verbatim
21789 #: ../resize/virt-resize.pod:49
21790 #, no-wrap
21791 msgid ""
21792 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21793 "   olddisk newdisk\n"
21794 "\n"
21795 msgstr ""
21796
21797 #. type: =item
21798 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21799 msgid "3."
21800 msgstr "3."
21801
21802 #. type: textblock
21803 #: ../resize/virt-resize.pod:54
21804 msgid ""
21805 "As in the first example, but expand a logical volume as the final step.  "
21806 "This is what you would typically use for Linux guests that use LVM:"
21807 msgstr ""
21808
21809 #. type: verbatim
21810 #: ../resize/virt-resize.pod:58
21811 #, no-wrap
21812 msgid ""
21813 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21814 "   olddisk newdisk\n"
21815 "\n"
21816 msgstr ""
21817
21818 #. type: =item
21819 #: ../resize/virt-resize.pod:61
21820 msgid "4."
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../resize/virt-resize.pod:63
21825 msgid ""
21826 "As in the first example, but the output format will be qcow2 instead of a "
21827 "raw disk:"
21828 msgstr ""
21829
21830 #. type: verbatim
21831 #: ../resize/virt-resize.pod:66
21832 #, no-wrap
21833 msgid ""
21834 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21835 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21836 "\n"
21837 msgstr ""
21838
21839 #. type: =head1
21840 #: ../resize/virt-resize.pod:71
21841 msgid "DETAILED USAGE"
21842 msgstr ""
21843
21844 #. type: =head2
21845 #: ../resize/virt-resize.pod:73
21846 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21847 msgstr ""
21848
21849 #. type: =item
21850 #: ../resize/virt-resize.pod:77
21851 msgid "1. Shut down the virtual machine"
21852 msgstr ""
21853
21854 #. type: =item
21855 #: ../resize/virt-resize.pod:79
21856 msgid "2. Locate input disk image"
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../resize/virt-resize.pod:81
21861 msgid ""
21862 "Locate the input disk image (ie. the file or device on the host containing "
21863 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21864 "dumpxml> like this to find the disk image name:"
21865 msgstr ""
21866
21867 #. type: verbatim
21868 #: ../resize/virt-resize.pod:85
21869 #, no-wrap
21870 msgid ""
21871 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21872 " Found 1 nodes:\n"
21873 " -- NODE --\n"
21874 " <source dev=\"/dev/vg/lv_guest\" />\n"
21875 "\n"
21876 msgstr ""
21877
21878 #. type: =item
21879 #: ../resize/virt-resize.pod:90
21880 msgid "3. Look at current sizing"
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../resize/virt-resize.pod:92
21885 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21886 msgstr ""
21887
21888 #. type: verbatim
21889 #: ../resize/virt-resize.pod:95
21890 #, no-wrap
21891 msgid ""
21892 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21893 " Name       Type       Size  Parent\n"
21894 " /dev/sda1  partition  101M  /dev/sda\n"
21895 " /dev/sda2  partition  7.9G  /dev/sda\n"
21896 " /dev/sda   device     8.0G  -\n"
21897 "\n"
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../resize/virt-resize.pod:101
21902 msgid ""
21903 "(This example is a virtual machine with an 8 GB disk which we would like to "
21904 "expand up to 10 GB)."
21905 msgstr ""
21906
21907 #. type: =item
21908 #: ../resize/virt-resize.pod:104
21909 msgid "4. Create output disk"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../resize/virt-resize.pod:106
21914 msgid ""
21915 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21916 "to store the resized output disk."
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../resize/virt-resize.pod:109
21921 msgid ""
21922 "To store the resized disk image in a file, create a file of a suitable size:"
21923 msgstr ""
21924
21925 #. type: verbatim
21926 #: ../resize/virt-resize.pod:112
21927 #, no-wrap
21928 msgid ""
21929 " # rm -f outdisk\n"
21930 " # truncate -s 10G outdisk\n"
21931 "\n"
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../resize/virt-resize.pod:115
21936 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21937 msgstr ""
21938
21939 #. type: verbatim
21940 #: ../resize/virt-resize.pod:117
21941 #, no-wrap
21942 msgid ""
21943 " # lvcreate -L 10G -n lv_name vg_name\n"
21944 "\n"
21945 msgstr ""
21946
21947 #. type: textblock
21948 #: ../resize/virt-resize.pod:119
21949 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21950 msgstr ""
21951
21952 #. type: verbatim
21953 #: ../resize/virt-resize.pod:121
21954 #, no-wrap
21955 msgid ""
21956 " # virsh pool-list\n"
21957 " # virsh vol-create-as poolname newvol 10G\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: =item
21962 #: ../resize/virt-resize.pod:124
21963 msgid "5. Resize"
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../resize/virt-resize.pod:126
21968 msgid ""
21969 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21970 "file) and the output disk.  The output disk is the one created in the "
21971 "previous step."
21972 msgstr ""
21973
21974 #. type: verbatim
21975 #: ../resize/virt-resize.pod:130
21976 #, no-wrap
21977 msgid ""
21978 " # virt-resize indisk outdisk\n"
21979 "\n"
21980 msgstr ""
21981
21982 #. type: textblock
21983 #: ../resize/virt-resize.pod:132
21984 msgid ""
21985 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21986 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21987 "larger, then an extra, empty partition is created at the end of the disk "
21988 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21989 "error."
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../resize/virt-resize.pod:138
21994 msgid ""
21995 "More realistically you'd want to expand existing partitions in the disk "
21996 "image by passing extra options (for the full list see the L</OPTIONS> "
21997 "section below)."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../resize/virt-resize.pod:142
22002 msgid ""
22003 "L</--expand> is the most useful option.  It expands the named partition "
22004 "within the disk to fill any extra space:"
22005 msgstr ""
22006
22007 #. type: verbatim
22008 #: ../resize/virt-resize.pod:145
22009 #, no-wrap
22010 msgid ""
22011 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22012 "\n"
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../resize/virt-resize.pod:147
22017 msgid ""
22018 "(In this case, an extra partition is I<not> created at the end of the disk, "
22019 "because there will be no unused space)."
22020 msgstr ""
22021
22022 #. type: textblock
22023 #: ../resize/virt-resize.pod:150
22024 msgid ""
22025 "L</--resize> is the other commonly used option.  The following would "
22026 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22027 "rest of the available space:"
22028 msgstr ""
22029
22030 #. type: verbatim
22031 #: ../resize/virt-resize.pod:154
22032 #, no-wrap
22033 msgid ""
22034 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22035 "     indisk outdisk\n"
22036 "\n"
22037 msgstr ""
22038
22039 #. type: textblock
22040 #: ../resize/virt-resize.pod:157
22041 msgid ""
22042 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22043 "if virt-resize knows how, it will resize the contents, the equivalent of "
22044 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22045 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22046 "filesystems, so you would have to online resize them after booting the guest."
22047 msgstr ""
22048
22049 #. type: textblock
22050 #: ../resize/virt-resize.pod:164
22051 msgid "Other options are covered below."
22052 msgstr ""
22053
22054 #. type: =item
22055 #: ../resize/virt-resize.pod:166
22056 msgid "6. Test"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../resize/virt-resize.pod:168
22061 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../resize/virt-resize.pod:170
22066 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22067 msgstr ""
22068
22069 #. type: verbatim
22070 #: ../resize/virt-resize.pod:172
22071 #, fuzzy, no-wrap
22072 #| msgid ""
22073 #| " edit filename\n"
22074 #| "\n"
22075 msgid ""
22076 " # virsh edit guestname\n"
22077 "\n"
22078 msgstr ""
22079 " edit назва_файла\n"
22080 "\n"
22081
22082 #. type: textblock
22083 #: ../resize/virt-resize.pod:174
22084 msgid ""
22085 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22086 "html#elementsDisks>"
22087 msgstr ""
22088
22089 #. type: textblock
22090 #: ../resize/virt-resize.pod:177
22091 msgid "Then start up the domain with the new, resized disk:"
22092 msgstr ""
22093
22094 #. type: verbatim
22095 #: ../resize/virt-resize.pod:179
22096 #, fuzzy, no-wrap
22097 #| msgid ""
22098 #| " ln-s target linkname\n"
22099 #| "\n"
22100 msgid ""
22101 " # virsh start guestname\n"
22102 "\n"
22103 msgstr ""
22104 " ln-s призначення назва_посилання\n"
22105 "\n"
22106
22107 #. type: textblock
22108 #: ../resize/virt-resize.pod:181
22109 msgid ""
22110 "and check that it still works.  See also the L</NOTES> section below for "
22111 "additional information."
22112 msgstr ""
22113
22114 #. type: =item
22115 #: ../resize/virt-resize.pod:184
22116 msgid "7. Resize LVs etc inside the guest"
22117 msgstr ""
22118
22119 #. type: textblock
22120 #: ../resize/virt-resize.pod:186
22121 msgid "(This can also be done offline using L<guestfish(1)>)"
22122 msgstr ""
22123
22124 #. type: textblock
22125 #: ../resize/virt-resize.pod:188
22126 msgid ""
22127 "Once the guest has booted you should see the new space available, at least "
22128 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22129 "may need to resize LVs inside PVs, and also resize filesystem types that "
22130 "virt-resize does not know how to expand."
22131 msgstr ""
22132
22133 #. type: =head2
22134 #: ../resize/virt-resize.pod:195
22135 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22136 msgstr ""
22137
22138 #. type: textblock
22139 #: ../resize/virt-resize.pod:197
22140 msgid ""
22141 "Shrinking is somewhat more complex than expanding, and only an overview is "
22142 "given here."
22143 msgstr ""
22144
22145 #. type: textblock
22146 #: ../resize/virt-resize.pod:200
22147 msgid ""
22148 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22149 "filesystems).  The user has to shrink content before passing the disk image "
22150 "to virt-resize, and virt-resize will check that the content has been shrunk "
22151 "properly."
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../resize/virt-resize.pod:205
22156 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22157 msgstr ""
22158
22159 #. type: textblock
22160 #: ../resize/virt-resize.pod:207
22161 msgid ""
22162 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22163 "steps 3 and 4 above to allocate a new disk image."
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../resize/virt-resize.pod:210
22168 msgid ""
22169 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22170 msgstr ""
22171
22172 #. type: =head2
22173 #: ../resize/virt-resize.pod:213
22174 msgid "IGNORING OR DELETING PARTITIONS"
22175 msgstr ""
22176
22177 #. type: textblock
22178 #: ../resize/virt-resize.pod:215
22179 msgid ""
22180 "virt-resize also gives a convenient way to ignore or delete partitions when "
22181 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22182 "up the copy where you don't care about the existing contents of a "
22183 "partition.  Deleting a partition removes it completely, but note that it "
22184 "also renumbers any partitions after the one which is deleted, which can "
22185 "leave some guests unbootable."
22186 msgstr ""
22187
22188 #. type: =head2
22189 #: ../resize/virt-resize.pod:222
22190 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../resize/virt-resize.pod:224
22195 msgid ""
22196 "If the input disk is in qcow2 format, then you may prefer that the output is "
22197 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22198 "the fly.  The output format is simply determined by the format of the empty "
22199 "output container that you provide.  Thus to create qcow2 output, use:"
22200 msgstr ""
22201
22202 #. type: verbatim
22203 #: ../resize/virt-resize.pod:230
22204 #, no-wrap
22205 msgid ""
22206 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22207 "\n"
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../resize/virt-resize.pod:232
22212 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../resize/virt-resize.pod:234
22217 msgid "Similarly, to get non-sparse raw output use:"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../resize/virt-resize.pod:236
22222 #, fuzzy, no-wrap
22223 #| msgid ""
22224 #| " fallocate path len\n"
22225 #| "\n"
22226 msgid ""
22227 " fallocate -l size outdisk\n"
22228 "\n"
22229 msgstr ""
22230 " fallocate шлях довжина\n"
22231 "\n"
22232
22233 #. type: textblock
22234 #: ../resize/virt-resize.pod:238
22235 msgid ""
22236 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22237 "dev/zero of=outdisk bs=1M count=..>)"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../resize/virt-resize.pod:247
22242 msgid "Display help."
22243 msgstr ""
22244
22245 #. type: =item
22246 #: ../resize/virt-resize.pod:249
22247 msgid "B<-d>"
22248 msgstr ""
22249
22250 #. type: =item
22251 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22252 #: ../tools/virt-win-reg.pl:120
22253 msgid "B<--debug>"
22254 msgstr "B<--debug>"
22255
22256 #. type: textblock
22257 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22258 msgid "Enable debugging messages."
22259 msgstr ""
22260
22261 #. type: =item
22262 #: ../resize/virt-resize.pod:255
22263 #, fuzzy
22264 #| msgid "B<--no-dest-paths>"
22265 msgid "B<--delete part>"
22266 msgstr "B<--no-dest-paths>"
22267
22268 #. type: textblock
22269 #: ../resize/virt-resize.pod:257
22270 msgid ""
22271 "Delete the named partition.  It would be more accurate to describe this as "
22272 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22273 "the original disk image is left intact."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../resize/virt-resize.pod:261
22278 msgid ""
22279 "Note that when you delete a partition, then anything contained in the "
22280 "partition is also deleted.  Furthermore, this causes any partitions that "
22281 "come after to be I<renumbered>, which can easily make your guest unbootable."
22282 msgstr ""
22283
22284 #. type: textblock
22285 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22286 #: ../resize/virt-resize.pod:448
22287 msgid "You can give this option multiple times."
22288 msgstr ""
22289
22290 #. type: =item
22291 #: ../resize/virt-resize.pod:268
22292 #, fuzzy
22293 #| msgid "B<--partition>"
22294 msgid "B<--expand part>"
22295 msgstr "B<--partition>"
22296
22297 #. type: textblock
22298 #: ../resize/virt-resize.pod:270
22299 msgid ""
22300 "Expand the named partition so it uses up all extra space (space left over "
22301 "after any other resize changes that you request have been done)."
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../resize/virt-resize.pod:273
22306 msgid ""
22307 "If virt-resize knows how, it will expand the direct content of the "
22308 "partition.  For example, if the partition is an LVM PV, it will expand the "
22309 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22310 "content it doesn't know about alone."
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../resize/virt-resize.pod:278
22315 msgid "Currently virt-resize can resize:"
22316 msgstr ""
22317
22318 #. type: textblock
22319 #: ../resize/virt-resize.pod:284
22320 msgid "ext2, ext3 and ext4 filesystems."
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../resize/virt-resize.pod:288
22325 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22326 msgstr ""
22327
22328 #. type: textblock
22329 #: ../resize/virt-resize.pod:290
22330 msgid ""
22331 "The filesystem must have been shut down consistently last time it was used.  "
22332 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22333 "consistency check, so at the first boot after resizing Windows will check "
22334 "the disk."
22335 msgstr ""
22336
22337 #. type: textblock
22338 #: ../resize/virt-resize.pod:297
22339 msgid ""
22340 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22341 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22342 "resize LVs as desired after boot."
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../resize/virt-resize.pod:303
22347 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22352 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22353 msgstr ""
22354
22355 #. type: =item
22356 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22357 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22358 #: ../tools/virt-win-reg.pl:142
22359 msgid "B<--format> raw"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../resize/virt-resize.pod:311
22364 msgid ""
22365 "Specify the format of the input disk image.  If this flag is not given then "
22366 "it is auto-detected from the image itself."
22367 msgstr ""
22368
22369 #. type: textblock
22370 #: ../resize/virt-resize.pod:317
22371 msgid ""
22372 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22373 "AND NON-SPARSE RAW FORMATS>."
22374 msgstr ""
22375
22376 #. type: =item
22377 #: ../resize/virt-resize.pod:320
22378 #, fuzzy
22379 #| msgid "B<--format>"
22380 msgid "B<--ignore part>"
22381 msgstr "B<--format>"
22382
22383 #. type: textblock
22384 #: ../resize/virt-resize.pod:322
22385 msgid ""
22386 "Ignore the named partition.  Effectively this means the partition is "
22387 "allocated on the destination disk, but the content is not copied across from "
22388 "the source disk.  The content of the partition will be blank (all zero "
22389 "bytes)."
22390 msgstr ""
22391
22392 #. type: =item
22393 #: ../resize/virt-resize.pod:329
22394 msgid "B<--LV-expand logvol>"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../resize/virt-resize.pod:331
22399 msgid ""
22400 "This takes the logical volume and, as a final step, expands it to fill all "
22401 "the space available in its volume group.  A typical usage, assuming a Linux "
22402 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22403 "lv_root> would be:"
22404 msgstr ""
22405
22406 #. type: verbatim
22407 #: ../resize/virt-resize.pod:336
22408 #, no-wrap
22409 msgid ""
22410 " virt-resize indisk outdisk \\\n"
22411 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22412 "\n"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../resize/virt-resize.pod:339
22417 msgid ""
22418 "This would first expand the partition (and PV), and then expand the root "
22419 "device to fill the extra space in the PV."
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../resize/virt-resize.pod:342
22424 msgid ""
22425 "The contents of the LV are also resized if virt-resize knows how to do "
22426 "that.  You can stop virt-resize from trying to expand the content by using "
22427 "the option I<--no-expand-content>."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../resize/virt-resize.pod:346
22432 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22433 msgstr ""
22434
22435 #. type: textblock
22436 #: ../resize/virt-resize.pod:348
22437 msgid ""
22438 "You can give this option multiple times, I<but> it doesn't make sense to do "
22439 "this unless the logical volumes you specify are all in different volume "
22440 "groups."
22441 msgstr ""
22442
22443 #. type: =item
22444 #: ../resize/virt-resize.pod:354
22445 #, fuzzy
22446 #| msgid "B<--debug>"
22447 msgid "B<--dryrun>"
22448 msgstr "B<--debug>"
22449
22450 #. type: textblock
22451 #: ../resize/virt-resize.pod:356
22452 msgid "Print a summary of what would be done, but don't do anything."
22453 msgstr ""
22454
22455 #. type: =item
22456 #: ../resize/virt-resize.pod:358
22457 msgid "B<--no-copy-boot-loader>"
22458 msgstr ""
22459
22460 #. type: textblock
22461 #: ../resize/virt-resize.pod:360
22462 msgid ""
22463 "By default, virt-resize copies over some sectors at the start of the disk "
22464 "(up to the beginning of the first partition).  Commonly these sectors "
22465 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22466 "in order for the guest to boot correctly."
22467 msgstr ""
22468
22469 #. type: textblock
22470 #: ../resize/virt-resize.pod:365
22471 msgid ""
22472 "If you specify this flag, then this initial copy is not done.  You may need "
22473 "to reinstall the boot loader in this case."
22474 msgstr ""
22475
22476 #. type: =item
22477 #: ../resize/virt-resize.pod:368
22478 #, fuzzy
22479 #| msgid "B<--partition>"
22480 msgid "B<--no-extra-partition>"
22481 msgstr "B<--partition>"
22482
22483 #. type: textblock
22484 #: ../resize/virt-resize.pod:370
22485 msgid ""
22486 "By default, virt-resize creates an extra partition if there is any extra, "
22487 "unused space after all resizing has happened.  Use this option to prevent "
22488 "the extra partition from being created.  If you do this then the extra space "
22489 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22490 "tool in the guest."
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../resize/virt-resize.pod:376
22495 msgid ""
22496 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22497 "will be created."
22498 msgstr ""
22499
22500 #. type: =item
22501 #: ../resize/virt-resize.pod:379
22502 #, fuzzy
22503 #| msgid "B<--no-dest-paths>"
22504 msgid "B<--no-expand-content>"
22505 msgstr "B<--no-dest-paths>"
22506
22507 #. type: textblock
22508 #: ../resize/virt-resize.pod:381
22509 msgid ""
22510 "By default, virt-resize will try to expand the direct contents of "
22511 "partitions, if it knows how (see I<--expand> option above)."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../resize/virt-resize.pod:384
22516 msgid ""
22517 "If you give the I<--no-expand-content> option then virt-resize will not "
22518 "attempt this."
22519 msgstr ""
22520
22521 #. type: =item
22522 #: ../resize/virt-resize.pod:387
22523 #, fuzzy
22524 #| msgid "ntfsresize-size"
22525 msgid "B<--ntfsresize-force>"
22526 msgstr "ntfsresize-size"
22527
22528 #. type: textblock
22529 #: ../resize/virt-resize.pod:389
22530 msgid ""
22531 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22532 "the NTFS disk is marked as needing a consistency check.  You have to use "
22533 "this option if you want to resize a Windows guest multiple times without "
22534 "booting into Windows between each resize."
22535 msgstr ""
22536
22537 #. type: =item
22538 #: ../resize/virt-resize.pod:395
22539 #, fuzzy
22540 #| msgid "B<--format>"
22541 msgid "B<--output-format> raw"
22542 msgstr "B<--format>"
22543
22544 #. type: textblock
22545 #: ../resize/virt-resize.pod:397
22546 msgid ""
22547 "Specify the format of the output disk image.  If this flag is not given then "
22548 "it is auto-detected from the image itself."
22549 msgstr ""
22550
22551 #. type: textblock
22552 #: ../resize/virt-resize.pod:403
22553 msgid ""
22554 "Note that this option I<does not create> the output format.  This option "
22555 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22556 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22557 "SPARSE RAW FORMATS>."
22558 msgstr ""
22559
22560 #. type: =item
22561 #: ../resize/virt-resize.pod:408
22562 msgid "B<-q>"
22563 msgstr ""
22564
22565 #. type: =item
22566 #: ../resize/virt-resize.pod:410
22567 #, fuzzy
22568 #| msgid "B<--live>"
22569 msgid "B<--quiet>"
22570 msgstr "B<--live>"
22571
22572 #. type: textblock
22573 #: ../resize/virt-resize.pod:412
22574 msgid "Don't print the summary."
22575 msgstr ""
22576
22577 #. type: =item
22578 #: ../resize/virt-resize.pod:414
22579 #, fuzzy
22580 #| msgid "B<part_size>"
22581 msgid "B<--resize part=size>"
22582 msgstr "B<part_size>"
22583
22584 #. type: textblock
22585 #: ../resize/virt-resize.pod:416
22586 msgid ""
22587 "Resize the named partition (expanding or shrinking it) so that it has the "
22588 "given size."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../resize/virt-resize.pod:419
22593 msgid ""
22594 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22595 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22596 "size; or as a relative number or percentage.  For example:"
22597 msgstr ""
22598
22599 #. type: verbatim
22600 #: ../resize/virt-resize.pod:425
22601 #, fuzzy, no-wrap
22602 #| msgid ""
22603 #| " hexedit /dev/sda 1M\n"
22604 #| "\n"
22605 msgid ""
22606 " --resize /dev/sda2=10G\n"
22607 "\n"
22608 msgstr ""
22609 " hexedit /dev/sda 1M\n"
22610 "\n"
22611
22612 #. type: verbatim
22613 #: ../resize/virt-resize.pod:427
22614 #, fuzzy, no-wrap
22615 #| msgid ""
22616 #| " pvresize device\n"
22617 #| "\n"
22618 msgid ""
22619 " --resize /dev/sda4=90%\n"
22620 "\n"
22621 msgstr ""
22622 " pvresize пристрій\n"
22623 "\n"
22624
22625 #. type: verbatim
22626 #: ../resize/virt-resize.pod:429
22627 #, fuzzy, no-wrap
22628 #| msgid ""
22629 #| " hexedit /dev/sda 1M\n"
22630 #| "\n"
22631 msgid ""
22632 " --resize /dev/sda2=+1G\n"
22633 "\n"
22634 msgstr ""
22635 " hexedit /dev/sda 1M\n"
22636 "\n"
22637
22638 #. type: verbatim
22639 #: ../resize/virt-resize.pod:431
22640 #, fuzzy, no-wrap
22641 #| msgid ""
22642 #| " hexedit /dev/sda 1M\n"
22643 #| "\n"
22644 msgid ""
22645 " --resize /dev/sda2=-200M\n"
22646 "\n"
22647 msgstr ""
22648 " hexedit /dev/sda 1M\n"
22649 "\n"
22650
22651 #. type: verbatim
22652 #: ../resize/virt-resize.pod:433
22653 #, fuzzy, no-wrap
22654 #| msgid ""
22655 #| " hexedit /dev/sda 1M\n"
22656 #| "\n"
22657 msgid ""
22658 " --resize /dev/sda1=+128K\n"
22659 "\n"
22660 msgstr ""
22661 " hexedit /dev/sda 1M\n"
22662 "\n"
22663
22664 #. type: verbatim
22665 #: ../resize/virt-resize.pod:435
22666 #, fuzzy, no-wrap
22667 #| msgid ""
22668 #| " hexedit /dev/sda 1M\n"
22669 #| "\n"
22670 msgid ""
22671 " --resize /dev/sda1=+10%\n"
22672 "\n"
22673 msgstr ""
22674 " hexedit /dev/sda 1M\n"
22675 "\n"
22676
22677 #. type: verbatim
22678 #: ../resize/virt-resize.pod:437
22679 #, fuzzy, no-wrap
22680 #| msgid ""
22681 #| " hexedit /dev/sda 1M\n"
22682 #| "\n"
22683 msgid ""
22684 " --resize /dev/sda1=-10%\n"
22685 "\n"
22686 msgstr ""
22687 " hexedit /dev/sda 1M\n"
22688 "\n"
22689
22690 #. type: textblock
22691 #: ../resize/virt-resize.pod:439
22692 msgid ""
22693 "You can increase the size of any partition.  Virt-resize will expand the "
22694 "direct content of the partition if it knows how (see I<--expand> below)."
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../resize/virt-resize.pod:443
22699 msgid ""
22700 "You can only I<decrease> the size of partitions that contain filesystems or "
22701 "PVs which have already been shrunk.  Virt-resize will check this has been "
22702 "done before proceeding, or else will print an error (see also I<--resize-"
22703 "force>)."
22704 msgstr ""
22705
22706 #. type: =item
22707 #: ../resize/virt-resize.pod:450
22708 msgid "B<--resize-force part=size>"
22709 msgstr ""
22710
22711 #. type: textblock
22712 #: ../resize/virt-resize.pod:452
22713 msgid ""
22714 "This is the same as I<--resize> except that it will let you decrease the "
22715 "size of any partition.  Generally this means you will lose any data which "
22716 "was at the end of the partition you shrink, but you may not care about that "
22717 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22718 "as a swap partition)."
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../resize/virt-resize.pod:458
22723 msgid "See also the I<--ignore> option."
22724 msgstr ""
22725
22726 #. type: =item
22727 #: ../resize/virt-resize.pod:460
22728 #, fuzzy
22729 #| msgid "B<--partition>"
22730 msgid "B<--shrink part>"
22731 msgstr "B<--partition>"
22732
22733 #. type: textblock
22734 #: ../resize/virt-resize.pod:462
22735 msgid ""
22736 "Shrink the named partition until the overall disk image fits in the "
22737 "destination.  The named partition B<must> contain a filesystem or PV which "
22738 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22739 "online tools).  Virt-resize will check this and give an error if it has not "
22740 "been done."
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../resize/virt-resize.pod:468
22745 msgid ""
22746 "The amount by which the overall disk must be shrunk (after carrying out all "
22747 "other operations requested by the user) is called the \"deficit\".  For "
22748 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22749 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22750 "would give an error unless the user specified a partition to shrink and that "
22751 "partition had more than a gigabyte of free space."
22752 msgstr ""
22753
22754 #. type: =head2
22755 #: ../resize/virt-resize.pod:488
22756 msgid "\"Partition 1 does not end on cylinder boundary.\""
22757 msgstr ""
22758
22759 #. type: textblock
22760 #: ../resize/virt-resize.pod:490
22761 msgid ""
22762 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22763 "means the partitions will not be aligned to the ancient CHS geometry.  "
22764 "However CHS geometry is meaningless for disks manufactured since the early "
22765 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22766 "cylinders is not required by any modern operating system."
22767 msgstr ""
22768
22769 #. type: =head2
22770 #: ../resize/virt-resize.pod:497
22771 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../resize/virt-resize.pod:499
22776 msgid ""
22777 "In Windows Vista and later versions, Microsoft switched to using a separate "
22778 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22779 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22780 "the boot partition.  Doing so seems to break the guest completely.  However "
22781 "expanding the second partition (ie. C: drive) should work."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../resize/virt-resize.pod:506
22786 msgid ""
22787 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22788 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22789 "it find errors) is nothing to worry about."
22790 msgstr ""
22791
22792 #. type: =head2
22793 #: ../resize/virt-resize.pod:510
22794 msgid "GUEST BOOT STUCK AT \"GRUB\""
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../resize/virt-resize.pod:512
22799 msgid ""
22800 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22801 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22802 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22803 "although we think is to do with partition alignment."
22804 msgstr ""
22805
22806 #. type: verbatim
22807 #: ../resize/virt-resize.pod:517
22808 #, no-wrap
22809 msgid ""
22810 " guestfish -i -a newdisk\n"
22811 " ><fs> cat /boot/grub/device.map\n"
22812 " # check the contents of this file are sensible or\n"
22813 " # edit the file if necessary\n"
22814 " ><fs> grub-install / /dev/vda\n"
22815 " ><fs> exit\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../resize/virt-resize.pod:524
22821 msgid ""
22822 "For more flexible guest reconfiguration, including if you need to specify "
22823 "other parameters to grub-install, use L<virt-rescue(1)>."
22824 msgstr ""
22825
22826 #. type: =head1
22827 #: ../resize/virt-resize.pod:527
22828 msgid "ALTERNATIVE TOOLS"
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../resize/virt-resize.pod:529
22833 msgid ""
22834 "There are several proprietary tools for resizing partitions.  We won't "
22835 "mention any here."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../resize/virt-resize.pod:532
22840 msgid ""
22841 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22842 "operations on disk images.  They can resize and move partitions, but I don't "
22843 "think they can do anything with the contents, and they certainly don't "
22844 "understand LVM."
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../resize/virt-resize.pod:537
22849 msgid ""
22850 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22851 "but at a much lower level.  You will probably end up hand-calculating sector "
22852 "offsets, which is something that virt-resize was designed to avoid.  If you "
22853 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22854 "I<--debug> flag."
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../resize/virt-resize.pod:552
22859 msgid ""
22860 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22861 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22862 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22863 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22864 msgstr ""
22865
22866 #. type: textblock
22867 #: ../ruby/examples/guestfs-ruby.pod:5
22868 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22869 msgstr ""
22870
22871 #. type: verbatim
22872 #: ../ruby/examples/guestfs-ruby.pod:9
22873 #, no-wrap
22874 msgid ""
22875 " require 'guestfs'\n"
22876 " g = Guestfs::Guestfs.new()\n"
22877 " g.add_drive_opts(\"disk.img\",\n"
22878 "                  :readonly => 1, :format => \"raw\")\n"
22879 " g.launch()\n"
22880 "\n"
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../ruby/examples/guestfs-ruby.pod:17
22885 msgid ""
22886 "This manual page documents how to call libguestfs from the Ruby programming "
22887 "language.  This page just documents the differences from the C API and gives "
22888 "some examples.  If you are not familiar with using libguestfs, you also need "
22889 "to read L<guestfs(3)>."
22890 msgstr ""
22891
22892 #. type: textblock
22893 #: ../ruby/examples/guestfs-ruby.pod:24
22894 msgid ""
22895 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22896 "This has a single parameter which is the error message (a string)."
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../ruby/examples/guestfs-ruby.pod:38
22901 #, fuzzy
22902 #| msgid ""
22903 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22904 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22905 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22906 msgid ""
22907 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22908 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22909 "libguestfs.org/>."
22910 msgstr ""
22911 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22912 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22913 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22914
22915 #. type: =head2
22916 #: ../src/guestfs-actions.pod:1
22917 msgid "guestfs_add_cdrom"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../src/guestfs-actions.pod:3
22922 #, no-wrap
22923 msgid ""
22924 " int\n"
22925 " guestfs_add_cdrom (guestfs_h *g,\n"
22926 "                    const char *filename);\n"
22927 "\n"
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22932 #: ../src/guestfs-actions.pod:270
22933 msgid ""
22934 "I<This function is deprecated.> In new code, use the L</"
22935 "guestfs_add_drive_opts> call instead."
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../src/guestfs-actions.pod:24
22940 msgid ""
22941 "This call checks for the existence of C<filename>.  This stops you from "
22942 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22943 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22944 "instead."
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../src/guestfs-actions.pod:31
22949 msgid ""
22950 "If you just want to add an ISO file (often you use this as an efficient way "
22951 "to transfer large files into the guest), then you should probably use "
22952 "C<guestfs_add_drive_ro> instead."
22953 msgstr ""
22954
22955 #. type: textblock
22956 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
22957 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22958 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
22959 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22960 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
22961 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
22962 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
22963 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
22964 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
22965 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
22966 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
22967 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
22968 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
22969 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
22970 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
22971 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
22972 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
22973 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1515
22974 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
22975 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
22976 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485
22977 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581
22978 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636
22979 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850
22980 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
22981 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
22982 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014
22983 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051
22984 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097
22985 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
22986 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205
22987 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253
22988 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282
22989 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314
22990 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427
22991 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491
22992 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527
22993 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557
22994 #: ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588
22995 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4630
22996 #: ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766
22997 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
22998 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
22999 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
23000 #: ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907
23001 #: ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4975
23002 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034
23003 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
23004 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5167
23005 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5257
23006 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302
23007 #: ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460
23008 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539
23009 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589
23010 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672
23011 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699
23012 #: ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007
23013 #: ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040
23014 #: ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066
23015 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092
23016 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129
23017 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167
23018 #: ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215
23019 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256
23020 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296
23021 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332
23022 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379
23023 #: ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422
23024 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465
23025 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499
23026 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
23027 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6721
23028 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854
23029 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880
23030 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915
23031 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941
23032 #: ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015
23033 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048
23034 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081
23035 #: ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114
23036 #: ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164
23037 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
23038 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270
23039 #: ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422
23040 #: ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451
23041 #: ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519
23042 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7604
23043 #: ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680
23044 #: ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7773
23045 #: ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
23046 msgid "This function returns 0 on success or -1 on error."
23047 msgstr ""
23048
23049 #. type: textblock
23050 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23051 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
23052 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
23053 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
23054 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
23055 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
23056 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
23057 #: ../src/guestfs-actions.pod:7606
23058 msgid "(Added in 0.3)"
23059 msgstr ""
23060
23061 #. type: =head2
23062 #: ../src/guestfs-actions.pod:41
23063 msgid "guestfs_add_domain"
23064 msgstr ""
23065
23066 #. type: verbatim
23067 #: ../src/guestfs-actions.pod:43
23068 #, no-wrap
23069 msgid ""
23070 " int\n"
23071 " guestfs_add_domain (guestfs_h *g,\n"
23072 "                     const char *dom,\n"
23073 "                     ...);\n"
23074 "\n"
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23079 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
23080 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
23081 #: ../src/guestfs-actions.pod:5178
23082 msgid ""
23083 "You may supply a list of optional arguments to this call.  Use zero or more "
23084 "of the following pairs of parameters, and terminate the list with C<-1> on "
23085 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23086 msgstr ""
23087
23088 #. type: verbatim
23089 #: ../src/guestfs-actions.pod:53
23090 #, no-wrap
23091 msgid ""
23092 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23093 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23094 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23095 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23096 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23097 "\n"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../src/guestfs-actions.pod:59
23102 msgid ""
23103 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23104 "It works by connecting to libvirt, requesting the domain and domain XML from "
23105 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23106 "one."
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../src/guestfs-actions.pod:94
23111 msgid ""
23112 "The other optional parameters are passed directly through to "
23113 "C<guestfs_add_drive_opts>."
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23118 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
23119 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
23120 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
23121 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
23122 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
23123 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
23124 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
23125 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
23126 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
23127 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
23128 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
23129 #: ../src/guestfs-actions.pod:7643
23130 msgid "On error this function returns -1."
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../src/guestfs-actions.pod:99
23135 msgid "(Added in 1.7.4)"
23136 msgstr ""
23137
23138 #. type: =head2
23139 #: ../src/guestfs-actions.pod:101
23140 msgid "guestfs_add_domain_va"
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../src/guestfs-actions.pod:103
23145 #, no-wrap
23146 msgid ""
23147 " int\n"
23148 " guestfs_add_domain_va (guestfs_h *g,\n"
23149 "                        const char *dom,\n"
23150 "                        va_list args);\n"
23151 "\n"
23152 msgstr ""
23153
23154 #. type: textblock
23155 #: ../src/guestfs-actions.pod:108
23156 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23161 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23162 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
23163 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
23164 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
23165 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
23166 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
23167 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23168 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23169
23170 #. type: =head2
23171 #: ../src/guestfs-actions.pod:112
23172 msgid "guestfs_add_domain_argv"
23173 msgstr "guestfs_add_domain_argv"
23174
23175 #. type: verbatim
23176 #: ../src/guestfs-actions.pod:114
23177 #, no-wrap
23178 msgid ""
23179 " int\n"
23180 " guestfs_add_domain_argv (guestfs_h *g,\n"
23181 "                          const char *dom,\n"
23182 "                          const struct guestfs_add_domain_argv *optargs);\n"
23183 "\n"
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../src/guestfs-actions.pod:119
23188 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23189 msgstr ""
23190
23191 #. type: =head2
23192 #: ../src/guestfs-actions.pod:123
23193 msgid "guestfs_add_drive"
23194 msgstr ""
23195
23196 #. type: verbatim
23197 #: ../src/guestfs-actions.pod:125
23198 #, no-wrap
23199 msgid ""
23200 " int\n"
23201 " guestfs_add_drive (guestfs_h *g,\n"
23202 "                    const char *filename);\n"
23203 "\n"
23204 msgstr ""
23205
23206 #. type: textblock
23207 #: ../src/guestfs-actions.pod:129
23208 msgid ""
23209 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23210 "optional parameters, so the disk is added writable, with the format being "
23211 "detected automatically."
23212 msgstr ""
23213
23214 #. type: textblock
23215 #: ../src/guestfs-actions.pod:133
23216 msgid ""
23217 "Automatic detection of the format opens you up to a potential security hole "
23218 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23219 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23220 "you should think about replacing calls to this function with calls to "
23221 "C<guestfs_add_drive_opts>, and specifying the format."
23222 msgstr ""
23223
23224 #. type: =head2
23225 #: ../src/guestfs-actions.pod:144
23226 msgid "guestfs_add_drive_opts"
23227 msgstr ""
23228
23229 #. type: verbatim
23230 #: ../src/guestfs-actions.pod:146
23231 #, no-wrap
23232 msgid ""
23233 " int\n"
23234 " guestfs_add_drive_opts (guestfs_h *g,\n"
23235 "                         const char *filename,\n"
23236 "                         ...);\n"
23237 "\n"
23238 msgstr ""
23239
23240 #. type: verbatim
23241 #: ../src/guestfs-actions.pod:156
23242 #, no-wrap
23243 msgid ""
23244 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23245 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23246 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23247 "\n"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../src/guestfs-actions.pod:185
23252 msgid ""
23253 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23254 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23255 "Possible formats include C<raw> and C<qcow2>."
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../src/guestfs-actions.pod:196
23260 msgid ""
23261 "This rarely-used option lets you emulate the behaviour of the deprecated "
23262 "C<guestfs_add_drive_with_if> call (q.v.)"
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../src/guestfs-actions.pod:203
23267 msgid "(Added in 1.5.23)"
23268 msgstr ""
23269
23270 #. type: =head2
23271 #: ../src/guestfs-actions.pod:205
23272 msgid "guestfs_add_drive_opts_va"
23273 msgstr ""
23274
23275 #. type: verbatim
23276 #: ../src/guestfs-actions.pod:207
23277 #, no-wrap
23278 msgid ""
23279 " int\n"
23280 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23281 "                            const char *filename,\n"
23282 "                            va_list args);\n"
23283 "\n"
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../src/guestfs-actions.pod:212
23288 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23289 msgstr ""
23290
23291 #. type: =head2
23292 #: ../src/guestfs-actions.pod:216
23293 msgid "guestfs_add_drive_opts_argv"
23294 msgstr ""
23295
23296 #. type: verbatim
23297 #: ../src/guestfs-actions.pod:218
23298 #, no-wrap
23299 msgid ""
23300 " int\n"
23301 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23302 "                              const char *filename,\n"
23303 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23304 "\n"
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../src/guestfs-actions.pod:223
23309 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23310 msgstr ""
23311
23312 #. type: =head2
23313 #: ../src/guestfs-actions.pod:227
23314 msgid "guestfs_add_drive_ro"
23315 msgstr ""
23316
23317 #. type: verbatim
23318 #: ../src/guestfs-actions.pod:229
23319 #, no-wrap
23320 msgid ""
23321 " int\n"
23322 " guestfs_add_drive_ro (guestfs_h *g,\n"
23323 "                       const char *filename);\n"
23324 "\n"
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../src/guestfs-actions.pod:233
23329 msgid ""
23330 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23331 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23332 "disk is added read-only, with the format being detected automatically."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../src/guestfs-actions.pod:240
23337 msgid "(Added in 1.0.38)"
23338 msgstr ""
23339
23340 #. type: =head2
23341 #: ../src/guestfs-actions.pod:242
23342 msgid "guestfs_add_drive_ro_with_if"
23343 msgstr ""
23344
23345 #. type: verbatim
23346 #: ../src/guestfs-actions.pod:244
23347 #, no-wrap
23348 msgid ""
23349 " int\n"
23350 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23351 "                               const char *filename,\n"
23352 "                               const char *iface);\n"
23353 "\n"
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../src/guestfs-actions.pod:256
23358 msgid ""
23359 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23360 "QEMU interface emulation to use at run time."
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23365 #: ../src/guestfs-actions.pod:2431
23366 msgid "(Added in 1.0.84)"
23367 msgstr ""
23368
23369 #. type: =head2
23370 #: ../src/guestfs-actions.pod:263
23371 msgid "guestfs_add_drive_with_if"
23372 msgstr ""
23373
23374 #. type: verbatim
23375 #: ../src/guestfs-actions.pod:265
23376 #, no-wrap
23377 msgid ""
23378 " int\n"
23379 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23380 "                            const char *filename,\n"
23381 "                            const char *iface);\n"
23382 "\n"
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../src/guestfs-actions.pod:277
23387 msgid ""
23388 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23389 "QEMU interface emulation to use at run time."
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../src/guestfs-actions.pod:284
23394 msgid "guestfs_aug_clear"
23395 msgstr ""
23396
23397 #. type: verbatim
23398 #: ../src/guestfs-actions.pod:286
23399 #, no-wrap
23400 msgid ""
23401 " int\n"
23402 " guestfs_aug_clear (guestfs_h *g,\n"
23403 "                    const char *augpath);\n"
23404 "\n"
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
23409 msgid "(Added in 1.3.4)"
23410 msgstr ""
23411
23412 #. type: =head2
23413 #: ../src/guestfs-actions.pod:297
23414 msgid "guestfs_aug_close"
23415 msgstr ""
23416
23417 #. type: verbatim
23418 #: ../src/guestfs-actions.pod:299
23419 #, no-wrap
23420 msgid ""
23421 " int\n"
23422 " guestfs_aug_close (guestfs_h *g);\n"
23423 "\n"
23424 msgstr ""
23425
23426 #. type: textblock
23427 #: ../src/guestfs-actions.pod:302
23428 msgid ""
23429 "Close the current Augeas handle and free up any resources used by it.  After "
23430 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23431 "any other Augeas functions."
23432 msgstr ""
23433
23434 #. type: textblock
23435 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23436 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23437 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
23438 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
23439 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
23440 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
23441 #: ../src/guestfs-actions.pod:5846
23442 msgid "(Added in 0.7)"
23443 msgstr ""
23444
23445 #. type: =head2
23446 #: ../src/guestfs-actions.pod:311
23447 msgid "guestfs_aug_defnode"
23448 msgstr ""
23449
23450 #. type: verbatim
23451 #: ../src/guestfs-actions.pod:313
23452 #, no-wrap
23453 msgid ""
23454 " struct guestfs_int_bool *\n"
23455 " guestfs_aug_defnode (guestfs_h *g,\n"
23456 "                      const char *name,\n"
23457 "                      const char *expr,\n"
23458 "                      const char *val);\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../src/guestfs-actions.pod:322
23464 msgid ""
23465 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23466 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23467 "containing that single node."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../src/guestfs-actions.pod:330
23472 msgid ""
23473 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23474 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23475 msgstr ""
23476
23477 #. type: =head2
23478 #: ../src/guestfs-actions.pod:336
23479 msgid "guestfs_aug_defvar"
23480 msgstr ""
23481
23482 #. type: verbatim
23483 #: ../src/guestfs-actions.pod:338
23484 #, no-wrap
23485 msgid ""
23486 " int\n"
23487 " guestfs_aug_defvar (guestfs_h *g,\n"
23488 "                     const char *name,\n"
23489 "                     const char *expr);\n"
23490 "\n"
23491 msgstr ""
23492
23493 #. type: =head2
23494 #: ../src/guestfs-actions.pod:354
23495 msgid "guestfs_aug_get"
23496 msgstr ""
23497
23498 #. type: verbatim
23499 #: ../src/guestfs-actions.pod:356
23500 #, no-wrap
23501 msgid ""
23502 " char *\n"
23503 " guestfs_aug_get (guestfs_h *g,\n"
23504 "                  const char *augpath);\n"
23505 "\n"
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
23510 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
23511 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
23512 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
23513 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
23514 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
23515 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
23516 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2009
23517 #: ../src/guestfs-actions.pod:2030 ../src/guestfs-actions.pod:2204
23518 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
23519 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
23520 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
23521 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
23522 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
23523 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
23524 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
23525 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
23526 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
23527 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
23528 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
23529 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6667
23530 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
23531 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
23532 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7885
23533 msgid ""
23534 "This function returns a string, or NULL on error.  I<The caller must free "
23535 "the returned string after use>."
23536 msgstr ""
23537
23538 #. type: =head2
23539 #: ../src/guestfs-actions.pod:368
23540 msgid "guestfs_aug_init"
23541 msgstr ""
23542
23543 #. type: verbatim
23544 #: ../src/guestfs-actions.pod:370
23545 #, no-wrap
23546 msgid ""
23547 " int\n"
23548 " guestfs_aug_init (guestfs_h *g,\n"
23549 "                   const char *root,\n"
23550 "                   int flags);\n"
23551 "\n"
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../src/guestfs-actions.pod:379
23556 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../src/guestfs-actions.pod:414
23561 msgid "Do not load the tree in C<guestfs_aug_init>."
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../src/guestfs-actions.pod:418
23566 msgid "To close the handle, you can call C<guestfs_aug_close>."
23567 msgstr ""
23568
23569 #. type: =head2
23570 #: ../src/guestfs-actions.pod:426
23571 msgid "guestfs_aug_insert"
23572 msgstr ""
23573
23574 #. type: verbatim
23575 #: ../src/guestfs-actions.pod:428
23576 #, no-wrap
23577 msgid ""
23578 " int\n"
23579 " guestfs_aug_insert (guestfs_h *g,\n"
23580 "                     const char *augpath,\n"
23581 "                     const char *label,\n"
23582 "                     int before);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: =head2
23587 #: ../src/guestfs-actions.pod:446
23588 msgid "guestfs_aug_load"
23589 msgstr ""
23590
23591 #. type: verbatim
23592 #: ../src/guestfs-actions.pod:448
23593 #, no-wrap
23594 msgid ""
23595 " int\n"
23596 " guestfs_aug_load (guestfs_h *g);\n"
23597 "\n"
23598 msgstr ""
23599
23600 #. type: =head2
23601 #: ../src/guestfs-actions.pod:460
23602 msgid "guestfs_aug_ls"
23603 msgstr ""
23604
23605 #. type: verbatim
23606 #: ../src/guestfs-actions.pod:462
23607 #, no-wrap
23608 msgid ""
23609 " char **\n"
23610 " guestfs_aug_ls (guestfs_h *g,\n"
23611 "                 const char *augpath);\n"
23612 "\n"
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../src/guestfs-actions.pod:466
23617 msgid ""
23618 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23619 "sorting the resulting nodes into alphabetical order."
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
23624 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
23625 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
23626 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
23627 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
23628 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
23629 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
23630 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
23631 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
23632 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
23633 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
23634 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
23635 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
23636 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
23637 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
23638 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
23639 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
23640 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
23641 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
23642 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
23643 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
23644 #: ../src/guestfs-actions.pod:7919
23645 msgid ""
23646 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23647 ">), or NULL if there was an error.  I<The caller must free the strings and "
23648 "the array after use>."
23649 msgstr ""
23650
23651 #. type: textblock
23652 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
23653 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
23654 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
23655 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
23656 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
23657 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
23658 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
23659 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
23660 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
23661 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
23662 #: ../src/guestfs-actions.pod:7718
23663 msgid "(Added in 0.8)"
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../src/guestfs-actions.pod:475
23668 msgid "guestfs_aug_match"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../src/guestfs-actions.pod:477
23673 #, no-wrap
23674 msgid ""
23675 " char **\n"
23676 " guestfs_aug_match (guestfs_h *g,\n"
23677 "                    const char *augpath);\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../src/guestfs-actions.pod:491
23683 msgid "guestfs_aug_mv"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../src/guestfs-actions.pod:493
23688 #, no-wrap
23689 msgid ""
23690 " int\n"
23691 " guestfs_aug_mv (guestfs_h *g,\n"
23692 "                 const char *src,\n"
23693 "                 const char *dest);\n"
23694 "\n"
23695 msgstr ""
23696
23697 #. type: =head2
23698 #: ../src/guestfs-actions.pod:505
23699 msgid "guestfs_aug_rm"
23700 msgstr ""
23701
23702 #. type: verbatim
23703 #: ../src/guestfs-actions.pod:507
23704 #, no-wrap
23705 msgid ""
23706 " int\n"
23707 " guestfs_aug_rm (guestfs_h *g,\n"
23708 "                 const char *augpath);\n"
23709 "\n"
23710 msgstr ""
23711
23712 #. type: =head2
23713 #: ../src/guestfs-actions.pod:519
23714 msgid "guestfs_aug_save"
23715 msgstr ""
23716
23717 #. type: verbatim
23718 #: ../src/guestfs-actions.pod:521
23719 #, no-wrap
23720 msgid ""
23721 " int\n"
23722 " guestfs_aug_save (guestfs_h *g);\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../src/guestfs-actions.pod:526
23728 msgid ""
23729 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23730 "are saved."
23731 msgstr ""
23732
23733 #. type: =head2
23734 #: ../src/guestfs-actions.pod:533
23735 msgid "guestfs_aug_set"
23736 msgstr ""
23737
23738 #. type: verbatim
23739 #: ../src/guestfs-actions.pod:535
23740 #, no-wrap
23741 msgid ""
23742 " int\n"
23743 " guestfs_aug_set (guestfs_h *g,\n"
23744 "                  const char *augpath,\n"
23745 "                  const char *val);\n"
23746 "\n"
23747 msgstr ""
23748
23749 #. type: textblock
23750 #: ../src/guestfs-actions.pod:542
23751 msgid ""
23752 "In the Augeas API, it is possible to clear a node by setting the value to "
23753 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23754 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23755 msgstr ""
23756
23757 #. type: =head2
23758 #: ../src/guestfs-actions.pod:551
23759 msgid "guestfs_available"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../src/guestfs-actions.pod:553
23764 #, no-wrap
23765 msgid ""
23766 " int\n"
23767 " guestfs_available (guestfs_h *g,\n"
23768 "                    char *const *groups);\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../src/guestfs-actions.pod:561
23774 msgid ""
23775 "The libguestfs groups, and the functions that those groups correspond to, "
23776 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23777 "runtime by calling C<guestfs_available_all_groups>."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../src/guestfs-actions.pod:585
23782 msgid "You must call C<guestfs_launch> before calling this function."
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../src/guestfs-actions.pod:607
23787 msgid ""
23788 "This call was added in version C<1.0.80>.  In previous versions of "
23789 "libguestfs all you could do would be to speculatively execute a command to "
23790 "find out if the daemon implemented it.  See also C<guestfs_version>."
23791 msgstr ""
23792
23793 #. type: textblock
23794 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
23795 msgid "(Added in 1.0.80)"
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../src/guestfs-actions.pod:618
23800 msgid "guestfs_available_all_groups"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../src/guestfs-actions.pod:620
23805 #, no-wrap
23806 msgid ""
23807 " char **\n"
23808 " guestfs_available_all_groups (guestfs_h *g);\n"
23809 "\n"
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../src/guestfs-actions.pod:623
23814 msgid ""
23815 "This command returns a list of all optional groups that this daemon knows "
23816 "about.  Note this returns both supported and unsupported groups.  To find "
23817 "out which ones the daemon can actually support you have to call "
23818 "C<guestfs_available> on each member of the returned list."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:629
23823 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../src/guestfs-actions.pod:635
23828 msgid "(Added in 1.3.15)"
23829 msgstr ""
23830
23831 #. type: =head2
23832 #: ../src/guestfs-actions.pod:637
23833 msgid "guestfs_base64_in"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../src/guestfs-actions.pod:639
23838 #, no-wrap
23839 msgid ""
23840 " int\n"
23841 " guestfs_base64_in (guestfs_h *g,\n"
23842 "                    const char *base64file,\n"
23843 "                    const char *filename);\n"
23844 "\n"
23845 msgstr ""
23846
23847 #. type: textblock
23848 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
23849 msgid "(Added in 1.3.5)"
23850 msgstr ""
23851
23852 #. type: =head2
23853 #: ../src/guestfs-actions.pod:651
23854 msgid "guestfs_base64_out"
23855 msgstr ""
23856
23857 #. type: verbatim
23858 #: ../src/guestfs-actions.pod:653
23859 #, no-wrap
23860 msgid ""
23861 " int\n"
23862 " guestfs_base64_out (guestfs_h *g,\n"
23863 "                     const char *filename,\n"
23864 "                     const char *base64file);\n"
23865 "\n"
23866 msgstr ""
23867
23868 #. type: =head2
23869 #: ../src/guestfs-actions.pod:665
23870 msgid "guestfs_blockdev_flushbufs"
23871 msgstr ""
23872
23873 #. type: verbatim
23874 #: ../src/guestfs-actions.pod:667
23875 #, no-wrap
23876 msgid ""
23877 " int\n"
23878 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23879 "                             const char *device);\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
23885 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
23886 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
23887 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
23888 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
23889 msgid "(Added in 0.9.3)"
23890 msgstr ""
23891
23892 #. type: =head2
23893 #: ../src/guestfs-actions.pod:680
23894 msgid "guestfs_blockdev_getbsz"
23895 msgstr ""
23896
23897 #. type: verbatim
23898 #: ../src/guestfs-actions.pod:682
23899 #, no-wrap
23900 msgid ""
23901 " int\n"
23902 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23903 "                          const char *device);\n"
23904 "\n"
23905 msgstr ""
23906
23907 #. type: =head2
23908 #: ../src/guestfs-actions.pod:697
23909 msgid "guestfs_blockdev_getro"
23910 msgstr ""
23911
23912 #. type: verbatim
23913 #: ../src/guestfs-actions.pod:699
23914 #, no-wrap
23915 msgid ""
23916 " int\n"
23917 " guestfs_blockdev_getro (guestfs_h *g,\n"
23918 "                         const char *device);\n"
23919 "\n"
23920 msgstr ""
23921
23922 #. type: textblock
23923 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
23924 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
23925 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
23926 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
23927 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
23928 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
23929 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
23930 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
23931 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
23932 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
23933 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
23934 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
23935 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
23936 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
23937 #: ../src/guestfs-actions.pod:5339
23938 msgid "This function returns a C truth value on success or -1 on error."
23939 msgstr ""
23940
23941 #. type: =head2
23942 #: ../src/guestfs-actions.pod:712
23943 msgid "guestfs_blockdev_getsize64"
23944 msgstr ""
23945
23946 #. type: verbatim
23947 #: ../src/guestfs-actions.pod:714
23948 #, no-wrap
23949 msgid ""
23950 " int64_t\n"
23951 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23952 "                             const char *device);\n"
23953 "\n"
23954 msgstr ""
23955
23956 #. type: textblock
23957 #: ../src/guestfs-actions.pod:720
23958 msgid "See also C<guestfs_blockdev_getsz>."
23959 msgstr ""
23960
23961 #. type: =head2
23962 #: ../src/guestfs-actions.pod:728
23963 msgid "guestfs_blockdev_getss"
23964 msgstr ""
23965
23966 #. type: verbatim
23967 #: ../src/guestfs-actions.pod:730
23968 #, no-wrap
23969 msgid ""
23970 " int\n"
23971 " guestfs_blockdev_getss (guestfs_h *g,\n"
23972 "                         const char *device);\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../src/guestfs-actions.pod:737
23978 msgid ""
23979 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23980 "that)."
23981 msgstr ""
23982
23983 #. type: =head2
23984 #: ../src/guestfs-actions.pod:746
23985 msgid "guestfs_blockdev_getsz"
23986 msgstr ""
23987
23988 #. type: verbatim
23989 #: ../src/guestfs-actions.pod:748
23990 #, no-wrap
23991 msgid ""
23992 " int64_t\n"
23993 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23994 "                         const char *device);\n"
23995 "\n"
23996 msgstr ""
23997
23998 #. type: textblock
23999 #: ../src/guestfs-actions.pod:755
24000 msgid ""
24001 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24002 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24003 msgstr ""
24004
24005 #. type: =head2
24006 #: ../src/guestfs-actions.pod:765
24007 msgid "guestfs_blockdev_rereadpt"
24008 msgstr ""
24009
24010 #. type: verbatim
24011 #: ../src/guestfs-actions.pod:767
24012 #, no-wrap
24013 msgid ""
24014 " int\n"
24015 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24016 "                            const char *device);\n"
24017 "\n"
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../src/guestfs-actions.pod:779
24022 msgid "guestfs_blockdev_setbsz"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../src/guestfs-actions.pod:781
24027 #, no-wrap
24028 msgid ""
24029 " int\n"
24030 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24031 "                          const char *device,\n"
24032 "                          int blocksize);\n"
24033 "\n"
24034 msgstr ""
24035
24036 #. type: =head2
24037 #: ../src/guestfs-actions.pod:797
24038 msgid "guestfs_blockdev_setro"
24039 msgstr ""
24040
24041 #. type: verbatim
24042 #: ../src/guestfs-actions.pod:799
24043 #, no-wrap
24044 msgid ""
24045 " int\n"
24046 " guestfs_blockdev_setro (guestfs_h *g,\n"
24047 "                         const char *device);\n"
24048 "\n"
24049 msgstr ""
24050
24051 #. type: =head2
24052 #: ../src/guestfs-actions.pod:811
24053 msgid "guestfs_blockdev_setrw"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../src/guestfs-actions.pod:813
24058 #, no-wrap
24059 msgid ""
24060 " int\n"
24061 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24062 "                         const char *device);\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: =head2
24067 #: ../src/guestfs-actions.pod:825
24068 msgid "guestfs_btrfs_filesystem_resize"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../src/guestfs-actions.pod:827
24073 #, no-wrap
24074 msgid ""
24075 " int\n"
24076 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24077 "                                  const char *mountpoint,\n"
24078 "                                  ...);\n"
24079 "\n"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../src/guestfs-actions.pod:837
24084 #, no-wrap
24085 msgid ""
24086 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24087 "\n"
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../src/guestfs-actions.pod:860
24092 msgid "(Added in 1.11.17)"
24093 msgstr ""
24094
24095 #. type: =head2
24096 #: ../src/guestfs-actions.pod:862
24097 msgid "guestfs_btrfs_filesystem_resize_va"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../src/guestfs-actions.pod:864
24102 #, no-wrap
24103 msgid ""
24104 " int\n"
24105 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24106 "                                     const char *mountpoint,\n"
24107 "                                     va_list args);\n"
24108 "\n"
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../src/guestfs-actions.pod:869
24113 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24114 msgstr ""
24115
24116 #. type: =head2
24117 #: ../src/guestfs-actions.pod:873
24118 msgid "guestfs_btrfs_filesystem_resize_argv"
24119 msgstr ""
24120
24121 #. type: verbatim
24122 #: ../src/guestfs-actions.pod:875
24123 #, no-wrap
24124 msgid ""
24125 " int\n"
24126 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24127 "                                       const char *mountpoint,\n"
24128 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24129 "\n"
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../src/guestfs-actions.pod:880
24134 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24135 msgstr ""
24136
24137 #. type: =head2
24138 #: ../src/guestfs-actions.pod:884
24139 msgid "guestfs_case_sensitive_path"
24140 msgstr ""
24141
24142 #. type: verbatim
24143 #: ../src/guestfs-actions.pod:886
24144 #, no-wrap
24145 msgid ""
24146 " char *\n"
24147 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24148 "                              const char *path);\n"
24149 "\n"
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../src/guestfs-actions.pod:912
24154 msgid ""
24155 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24156 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24157 "how the directories were originally created under Windows)."
24158 msgstr ""
24159
24160 #. type: textblock
24161 #: ../src/guestfs-actions.pod:920
24162 msgid "See also C<guestfs_realpath>."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
24167 msgid "(Added in 1.0.75)"
24168 msgstr ""
24169
24170 #. type: =head2
24171 #: ../src/guestfs-actions.pod:927
24172 msgid "guestfs_cat"
24173 msgstr ""
24174
24175 #. type: verbatim
24176 #: ../src/guestfs-actions.pod:929
24177 #, no-wrap
24178 msgid ""
24179 " char *\n"
24180 " guestfs_cat (guestfs_h *g,\n"
24181 "              const char *path);\n"
24182 "\n"
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../src/guestfs-actions.pod:935
24187 msgid ""
24188 "Note that this function cannot correctly handle binary files (specifically, "
24189 "files containing C<\\0> character which is treated as end of string).  For "
24190 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24191 "functions which have a more complex interface."
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
24196 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
24197 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
24198 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
24199 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
24200 #: ../src/guestfs-actions.pod:7554
24201 msgid "(Added in 0.4)"
24202 msgstr ""
24203
24204 #. type: =head2
24205 #: ../src/guestfs-actions.pod:948
24206 msgid "guestfs_checksum"
24207 msgstr ""
24208
24209 #. type: verbatim
24210 #: ../src/guestfs-actions.pod:950
24211 #, no-wrap
24212 msgid ""
24213 " char *\n"
24214 " guestfs_checksum (guestfs_h *g,\n"
24215 "                   const char *csumtype,\n"
24216 "                   const char *path);\n"
24217 "\n"
24218 msgstr ""
24219
24220 #. type: textblock
24221 #: ../src/guestfs-actions.pod:996
24222 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../src/guestfs-actions.pod:998
24227 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24228 msgstr ""
24229
24230 #. type: textblock
24231 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
24232 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
24233 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
24234 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
24235 msgid "(Added in 1.0.2)"
24236 msgstr ""
24237
24238 #. type: =head2
24239 #: ../src/guestfs-actions.pod:1005
24240 msgid "guestfs_checksum_device"
24241 msgstr ""
24242
24243 #. type: verbatim
24244 #: ../src/guestfs-actions.pod:1007
24245 #, no-wrap
24246 msgid ""
24247 " char *\n"
24248 " guestfs_checksum_device (guestfs_h *g,\n"
24249 "                          const char *csumtype,\n"
24250 "                          const char *device);\n"
24251 "\n"
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../src/guestfs-actions.pod:1012
24256 msgid ""
24257 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24258 "device named C<device>.  For the types of checksums supported see the "
24259 "C<guestfs_checksum> command."
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
24264 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
24265 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
24266 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
24267 #: ../src/guestfs-actions.pod:7566
24268 msgid "(Added in 1.3.2)"
24269 msgstr ""
24270
24271 #. type: =head2
24272 #: ../src/guestfs-actions.pod:1021
24273 msgid "guestfs_checksums_out"
24274 msgstr ""
24275
24276 #. type: verbatim
24277 #: ../src/guestfs-actions.pod:1023
24278 #, no-wrap
24279 msgid ""
24280 " int\n"
24281 " guestfs_checksums_out (guestfs_h *g,\n"
24282 "                        const char *csumtype,\n"
24283 "                        const char *directory,\n"
24284 "                        const char *sumsfile);\n"
24285 "\n"
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../src/guestfs-actions.pod:1043
24290 msgid "(Added in 1.3.7)"
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../src/guestfs-actions.pod:1045
24295 msgid "guestfs_chmod"
24296 msgstr ""
24297
24298 #. type: verbatim
24299 #: ../src/guestfs-actions.pod:1047
24300 #, no-wrap
24301 msgid ""
24302 " int\n"
24303 " guestfs_chmod (guestfs_h *g,\n"
24304 "                int mode,\n"
24305 "                const char *path);\n"
24306 "\n"
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:1065
24311 msgid "guestfs_chown"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:1067
24316 #, no-wrap
24317 msgid ""
24318 " int\n"
24319 " guestfs_chown (guestfs_h *g,\n"
24320 "                int owner,\n"
24321 "                int group,\n"
24322 "                const char *path);\n"
24323 "\n"
24324 msgstr ""
24325
24326 #. type: =head2
24327 #: ../src/guestfs-actions.pod:1083
24328 msgid "guestfs_command"
24329 msgstr ""
24330
24331 #. type: verbatim
24332 #: ../src/guestfs-actions.pod:1085
24333 #, no-wrap
24334 msgid ""
24335 " char *\n"
24336 " guestfs_command (guestfs_h *g,\n"
24337 "                  char *const *arguments);\n"
24338 "\n"
24339 msgstr ""
24340
24341 #. type: textblock
24342 #: ../src/guestfs-actions.pod:1094
24343 msgid ""
24344 "The single parameter is an argv-style list of arguments.  The first element "
24345 "is the name of the program to run.  Subsequent elements are parameters.  The "
24346 "list must be non-empty (ie. must contain a program name).  Note that the "
24347 "command runs directly, and is I<not> invoked via the shell (see "
24348 "C<guestfs_sh>)."
24349 msgstr ""
24350
24351 #. type: textblock
24352 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
24353 #: ../src/guestfs-actions.pod:1610
24354 msgid "(Added in 0.9.1)"
24355 msgstr ""
24356
24357 #. type: =head2
24358 #: ../src/guestfs-actions.pod:1127
24359 msgid "guestfs_command_lines"
24360 msgstr ""
24361
24362 #. type: verbatim
24363 #: ../src/guestfs-actions.pod:1129
24364 #, no-wrap
24365 msgid ""
24366 " char **\n"
24367 " guestfs_command_lines (guestfs_h *g,\n"
24368 "                        char *const *arguments);\n"
24369 "\n"
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../src/guestfs-actions.pod:1133
24374 msgid ""
24375 "This is the same as C<guestfs_command>, but splits the result into a list of "
24376 "lines."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../src/guestfs-actions.pod:1136
24381 msgid "See also: C<guestfs_sh_lines>"
24382 msgstr ""
24383
24384 #. type: =head2
24385 #: ../src/guestfs-actions.pod:1147
24386 msgid "guestfs_config"
24387 msgstr ""
24388
24389 #. type: verbatim
24390 #: ../src/guestfs-actions.pod:1149
24391 #, no-wrap
24392 msgid ""
24393 " int\n"
24394 " guestfs_config (guestfs_h *g,\n"
24395 "                 const char *qemuparam,\n"
24396 "                 const char *qemuvalue);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: =head2
24401 #: ../src/guestfs-actions.pod:1167
24402 msgid "guestfs_copy_size"
24403 msgstr ""
24404
24405 #. type: verbatim
24406 #: ../src/guestfs-actions.pod:1169
24407 #, no-wrap
24408 msgid ""
24409 " int\n"
24410 " guestfs_copy_size (guestfs_h *g,\n"
24411 "                    const char *src,\n"
24412 "                    const char *dest,\n"
24413 "                    int64_t size);\n"
24414 "\n"
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
24419 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
24420 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
24421 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
24422 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
24423 #: ../src/guestfs-actions.pod:7794
24424 msgid ""
24425 "This long-running command can generate progress notification messages so "
24426 "that the caller can display a progress bar or indicator.  To receive these "
24427 "messages, the caller must register a progress event callback.  See L<guestfs"
24428 "(3)/GUESTFS_EVENT_PROGRESS>."
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
24433 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
24434 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
24435 msgid "(Added in 1.0.87)"
24436 msgstr ""
24437
24438 #. type: =head2
24439 #: ../src/guestfs-actions.pod:1190
24440 msgid "guestfs_cp"
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../src/guestfs-actions.pod:1192
24445 #, no-wrap
24446 msgid ""
24447 " int\n"
24448 " guestfs_cp (guestfs_h *g,\n"
24449 "             const char *src,\n"
24450 "             const char *dest);\n"
24451 "\n"
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
24456 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
24457 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
24458 #: ../src/guestfs-actions.pod:5591
24459 msgid "(Added in 1.0.18)"
24460 msgstr ""
24461
24462 #. type: =head2
24463 #: ../src/guestfs-actions.pod:1204
24464 msgid "guestfs_cp_a"
24465 msgstr ""
24466
24467 #. type: verbatim
24468 #: ../src/guestfs-actions.pod:1206
24469 #, no-wrap
24470 msgid ""
24471 " int\n"
24472 " guestfs_cp_a (guestfs_h *g,\n"
24473 "               const char *src,\n"
24474 "               const char *dest);\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: =head2
24479 #: ../src/guestfs-actions.pod:1218
24480 msgid "guestfs_dd"
24481 msgstr ""
24482
24483 #. type: verbatim
24484 #: ../src/guestfs-actions.pod:1220
24485 #, no-wrap
24486 msgid ""
24487 " int\n"
24488 " guestfs_dd (guestfs_h *g,\n"
24489 "             const char *src,\n"
24490 "             const char *dest);\n"
24491 "\n"
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../src/guestfs-actions.pod:1230
24496 msgid ""
24497 "If the destination is a device, it must be as large or larger than the "
24498 "source file or device, otherwise the copy will fail.  This command cannot do "
24499 "partial copies (see C<guestfs_copy_size>)."
24500 msgstr ""
24501
24502 #. type: =head2
24503 #: ../src/guestfs-actions.pod:1238
24504 msgid "guestfs_df"
24505 msgstr ""
24506
24507 #. type: verbatim
24508 #: ../src/guestfs-actions.pod:1240
24509 #, no-wrap
24510 msgid ""
24511 " char *\n"
24512 " guestfs_df (guestfs_h *g);\n"
24513 "\n"
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
24518 msgid ""
24519 "This command is mostly useful for interactive sessions.  It is I<not> "
24520 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24521 "from programs."
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
24526 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
24527 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
24528 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
24529 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
24530 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
24531 #: ../src/guestfs-actions.pod:7645
24532 msgid "(Added in 1.0.54)"
24533 msgstr ""
24534
24535 #. type: =head2
24536 #: ../src/guestfs-actions.pod:1254
24537 msgid "guestfs_df_h"
24538 msgstr ""
24539
24540 #. type: verbatim
24541 #: ../src/guestfs-actions.pod:1256
24542 #, no-wrap
24543 msgid ""
24544 " char *\n"
24545 " guestfs_df_h (guestfs_h *g);\n"
24546 "\n"
24547 msgstr ""
24548
24549 #. type: =head2
24550 #: ../src/guestfs-actions.pod:1271
24551 msgid "guestfs_dmesg"
24552 msgstr ""
24553
24554 #. type: verbatim
24555 #: ../src/guestfs-actions.pod:1273
24556 #, no-wrap
24557 msgid ""
24558 " char *\n"
24559 " guestfs_dmesg (guestfs_h *g);\n"
24560 "\n"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../src/guestfs-actions.pod:1280
24565 msgid ""
24566 "Another way to get the same information is to enable verbose messages with "
24567 "C<guestfs_set_verbose> or by setting the environment variable "
24568 "C<LIBGUESTFS_DEBUG=1> before running the program."
24569 msgstr ""
24570
24571 #. type: =head2
24572 #: ../src/guestfs-actions.pod:1290
24573 msgid "guestfs_download"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../src/guestfs-actions.pod:1292
24578 #, no-wrap
24579 msgid ""
24580 " int\n"
24581 " guestfs_download (guestfs_h *g,\n"
24582 "                   const char *remotefilename,\n"
24583 "                   const char *filename);\n"
24584 "\n"
24585 msgstr ""
24586
24587 #. type: textblock
24588 #: ../src/guestfs-actions.pod:1302
24589 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24590 msgstr ""
24591
24592 #. type: =head2
24593 #: ../src/guestfs-actions.pod:1313
24594 msgid "guestfs_download_offset"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../src/guestfs-actions.pod:1315
24599 #, no-wrap
24600 msgid ""
24601 " int\n"
24602 " guestfs_download_offset (guestfs_h *g,\n"
24603 "                          const char *remotefilename,\n"
24604 "                          const char *filename,\n"
24605 "                          int64_t offset,\n"
24606 "                          int64_t size);\n"
24607 "\n"
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../src/guestfs-actions.pod:1328
24612 msgid ""
24613 "Note that there is no limit on the amount of data that can be downloaded "
24614 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24615 "full amount unless an error occurs."
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../src/guestfs-actions.pod:1333
24620 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
24625 msgid "(Added in 1.5.17)"
24626 msgstr ""
24627
24628 #. type: =head2
24629 #: ../src/guestfs-actions.pod:1344
24630 msgid "guestfs_drop_caches"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../src/guestfs-actions.pod:1346
24635 #, no-wrap
24636 msgid ""
24637 " int\n"
24638 " guestfs_drop_caches (guestfs_h *g,\n"
24639 "                      int whattodrop);\n"
24640 "\n"
24641 msgstr ""
24642
24643 #. type: =head2
24644 #: ../src/guestfs-actions.pod:1364
24645 msgid "guestfs_du"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../src/guestfs-actions.pod:1366
24650 #, no-wrap
24651 msgid ""
24652 " int64_t\n"
24653 " guestfs_du (guestfs_h *g,\n"
24654 "             const char *path);\n"
24655 "\n"
24656 msgstr ""
24657
24658 #. type: =head2
24659 #: ../src/guestfs-actions.pod:1389
24660 msgid "guestfs_e2fsck_f"
24661 msgstr ""
24662
24663 #. type: verbatim
24664 #: ../src/guestfs-actions.pod:1391
24665 #, no-wrap
24666 msgid ""
24667 " int\n"
24668 " guestfs_e2fsck_f (guestfs_h *g,\n"
24669 "                   const char *device);\n"
24670 "\n"
24671 msgstr ""
24672
24673 #. type: textblock
24674 #: ../src/guestfs-actions.pod:1399
24675 msgid ""
24676 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24677 "Normally you should use C<guestfs_fsck>."
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../src/guestfs-actions.pod:1404
24682 msgid "(Added in 1.0.29)"
24683 msgstr ""
24684
24685 #. type: =head2
24686 #: ../src/guestfs-actions.pod:1406
24687 msgid "guestfs_echo_daemon"
24688 msgstr ""
24689
24690 #. type: verbatim
24691 #: ../src/guestfs-actions.pod:1408
24692 #, no-wrap
24693 msgid ""
24694 " char *\n"
24695 " guestfs_echo_daemon (guestfs_h *g,\n"
24696 "                      char *const *words);\n"
24697 "\n"
24698 msgstr ""
24699
24700 #. type: textblock
24701 #: ../src/guestfs-actions.pod:1417
24702 msgid "See also C<guestfs_ping_daemon>."
24703 msgstr ""
24704
24705 #. type: textblock
24706 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
24707 #: ../src/guestfs-actions.pod:6448
24708 msgid "(Added in 1.0.69)"
24709 msgstr ""
24710
24711 #. type: =head2
24712 #: ../src/guestfs-actions.pod:1424
24713 msgid "guestfs_egrep"
24714 msgstr ""
24715
24716 #. type: verbatim
24717 #: ../src/guestfs-actions.pod:1426
24718 #, no-wrap
24719 msgid ""
24720 " char **\n"
24721 " guestfs_egrep (guestfs_h *g,\n"
24722 "                const char *regex,\n"
24723 "                const char *path);\n"
24724 "\n"
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
24729 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
24730 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
24731 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
24732 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
24733 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
24734 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
24735 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
24736 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
24737 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
24738 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
24739 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
24740 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
24741 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
24742 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
24743 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
24744 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
24745 msgid "(Added in 1.0.66)"
24746 msgstr ""
24747
24748 #. type: =head2
24749 #: ../src/guestfs-actions.pod:1443
24750 msgid "guestfs_egrepi"
24751 msgstr ""
24752
24753 #. type: verbatim
24754 #: ../src/guestfs-actions.pod:1445
24755 #, no-wrap
24756 msgid ""
24757 " char **\n"
24758 " guestfs_egrepi (guestfs_h *g,\n"
24759 "                 const char *regex,\n"
24760 "                 const char *path);\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: =head2
24765 #: ../src/guestfs-actions.pod:1462
24766 msgid "guestfs_equal"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../src/guestfs-actions.pod:1464
24771 #, no-wrap
24772 msgid ""
24773 " int\n"
24774 " guestfs_equal (guestfs_h *g,\n"
24775 "                const char *file1,\n"
24776 "                const char *file2);\n"
24777 "\n"
24778 msgstr ""
24779
24780 #. type: =head2
24781 #: ../src/guestfs-actions.pod:1478
24782 msgid "guestfs_exists"
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../src/guestfs-actions.pod:1480
24787 #, no-wrap
24788 msgid ""
24789 " int\n"
24790 " guestfs_exists (guestfs_h *g,\n"
24791 "                 const char *path);\n"
24792 "\n"
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../src/guestfs-actions.pod:1487
24797 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../src/guestfs-actions.pod:1493
24802 msgid "guestfs_fallocate"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../src/guestfs-actions.pod:1495
24807 #, no-wrap
24808 msgid ""
24809 " int\n"
24810 " guestfs_fallocate (guestfs_h *g,\n"
24811 "                    const char *path,\n"
24812 "                    int len);\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../src/guestfs-actions.pod:1500
24818 msgid ""
24819 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24820 "call instead."
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../src/guestfs-actions.pod:1519
24825 msgid "guestfs_fallocate64"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../src/guestfs-actions.pod:1521
24830 #, no-wrap
24831 msgid ""
24832 " int\n"
24833 " guestfs_fallocate64 (guestfs_h *g,\n"
24834 "                      const char *path,\n"
24835 "                      int64_t len);\n"
24836 "\n"
24837 msgstr ""
24838
24839 #. type: textblock
24840 #: ../src/guestfs-actions.pod:1530
24841 msgid ""
24842 "Note that this call allocates disk blocks for the file.  To create a sparse "
24843 "file use C<guestfs_truncate_size> instead."
24844 msgstr ""
24845
24846 #. type: textblock
24847 #: ../src/guestfs-actions.pod:1533
24848 msgid ""
24849 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24850 "oversight it only allowed 30 bit lengths to be specified, effectively "
24851 "limiting the maximum size of files created through that call to 1GB."
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../src/guestfs-actions.pod:1544
24856 msgid "(Added in 1.3.17)"
24857 msgstr ""
24858
24859 #. type: =head2
24860 #: ../src/guestfs-actions.pod:1546
24861 msgid "guestfs_fgrep"
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../src/guestfs-actions.pod:1548
24866 #, no-wrap
24867 msgid ""
24868 " char **\n"
24869 " guestfs_fgrep (guestfs_h *g,\n"
24870 "                const char *pattern,\n"
24871 "                const char *path);\n"
24872 "\n"
24873 msgstr ""
24874
24875 #. type: =head2
24876 #: ../src/guestfs-actions.pod:1565
24877 msgid "guestfs_fgrepi"
24878 msgstr ""
24879
24880 #. type: verbatim
24881 #: ../src/guestfs-actions.pod:1567
24882 #, no-wrap
24883 msgid ""
24884 " char **\n"
24885 " guestfs_fgrepi (guestfs_h *g,\n"
24886 "                 const char *pattern,\n"
24887 "                 const char *path);\n"
24888 "\n"
24889 msgstr ""
24890
24891 #. type: =head2
24892 #: ../src/guestfs-actions.pod:1584
24893 msgid "guestfs_file"
24894 msgstr ""
24895
24896 #. type: verbatim
24897 #: ../src/guestfs-actions.pod:1586
24898 #, no-wrap
24899 msgid ""
24900 " char *\n"
24901 " guestfs_file (guestfs_h *g,\n"
24902 "               const char *path);\n"
24903 "\n"
24904 msgstr ""
24905
24906 #. type: textblock
24907 #: ../src/guestfs-actions.pod:1604
24908 msgid ""
24909 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24910 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24911 msgstr ""
24912
24913 #. type: =head2
24914 #: ../src/guestfs-actions.pod:1612
24915 msgid "guestfs_file_architecture"
24916 msgstr ""
24917
24918 #. type: verbatim
24919 #: ../src/guestfs-actions.pod:1614
24920 #, no-wrap
24921 msgid ""
24922 " char *\n"
24923 " guestfs_file_architecture (guestfs_h *g,\n"
24924 "                            const char *filename);\n"
24925 "\n"
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
24930 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
24931 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
24932 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
24933 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
24934 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
24935 #: ../src/guestfs-actions.pod:3541
24936 msgid "(Added in 1.5.3)"
24937 msgstr ""
24938
24939 #. type: =head2
24940 #: ../src/guestfs-actions.pod:1724
24941 msgid "guestfs_filesize"
24942 msgstr ""
24943
24944 #. type: verbatim
24945 #: ../src/guestfs-actions.pod:1726
24946 #, no-wrap
24947 msgid ""
24948 " int64_t\n"
24949 " guestfs_filesize (guestfs_h *g,\n"
24950 "                   const char *file);\n"
24951 "\n"
24952 msgstr ""
24953
24954 #. type: textblock
24955 #: ../src/guestfs-actions.pod:1732
24956 msgid ""
24957 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24958 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24959 "devices, use C<guestfs_blockdev_getsize64>."
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../src/guestfs-actions.pod:1738
24964 msgid "(Added in 1.0.82)"
24965 msgstr ""
24966
24967 #. type: =head2
24968 #: ../src/guestfs-actions.pod:1740
24969 msgid "guestfs_fill"
24970 msgstr ""
24971
24972 #. type: verbatim
24973 #: ../src/guestfs-actions.pod:1742
24974 #, no-wrap
24975 msgid ""
24976 " int\n"
24977 " guestfs_fill (guestfs_h *g,\n"
24978 "               int c,\n"
24979 "               int len,\n"
24980 "               const char *path);\n"
24981 "\n"
24982 msgstr ""
24983
24984 #. type: textblock
24985 #: ../src/guestfs-actions.pod:1752
24986 msgid ""
24987 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24988 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24989 "bytes use C<guestfs_fill_pattern>."
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../src/guestfs-actions.pod:1764
24994 msgid "(Added in 1.0.79)"
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:1766
24999 msgid "guestfs_fill_pattern"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../src/guestfs-actions.pod:1768
25004 #, no-wrap
25005 msgid ""
25006 " int\n"
25007 " guestfs_fill_pattern (guestfs_h *g,\n"
25008 "                       const char *pattern,\n"
25009 "                       int len,\n"
25010 "                       const char *path);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:1774
25016 msgid ""
25017 "This function is like C<guestfs_fill> except that it creates a new file of "
25018 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25019 "pattern is truncated if necessary to ensure the length of the file is "
25020 "exactly C<len> bytes."
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../src/guestfs-actions.pod:1786
25025 msgid "(Added in 1.3.12)"
25026 msgstr ""
25027
25028 #. type: =head2
25029 #: ../src/guestfs-actions.pod:1788
25030 msgid "guestfs_find"
25031 msgstr ""
25032
25033 #. type: verbatim
25034 #: ../src/guestfs-actions.pod:1790
25035 #, no-wrap
25036 msgid ""
25037 " char **\n"
25038 " guestfs_find (guestfs_h *g,\n"
25039 "               const char *directory);\n"
25040 "\n"
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../src/guestfs-actions.pod:1806
25045 msgid ""
25046 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../src/guestfs-actions.pod:1819
25051 msgid "See also C<guestfs_find0>."
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
25056 #: ../src/guestfs-actions.pod:6009
25057 msgid "(Added in 1.0.27)"
25058 msgstr ""
25059
25060 #. type: =head2
25061 #: ../src/guestfs-actions.pod:1830
25062 msgid "guestfs_find0"
25063 msgstr ""
25064
25065 #. type: verbatim
25066 #: ../src/guestfs-actions.pod:1832
25067 #, no-wrap
25068 msgid ""
25069 " int\n"
25070 " guestfs_find0 (guestfs_h *g,\n"
25071 "                const char *directory,\n"
25072 "                const char *files);\n"
25073 "\n"
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../src/guestfs-actions.pod:1841
25078 msgid ""
25079 "This command works the same way as C<guestfs_find> with the following "
25080 "exceptions:"
25081 msgstr ""
25082
25083 #. type: textblock
25084 #: ../src/guestfs-actions.pod:1868
25085 msgid "(Added in 1.0.74)"
25086 msgstr ""
25087
25088 #. type: =head2
25089 #: ../src/guestfs-actions.pod:1870
25090 msgid "guestfs_findfs_label"
25091 msgstr ""
25092
25093 #. type: verbatim
25094 #: ../src/guestfs-actions.pod:1872
25095 #, no-wrap
25096 msgid ""
25097 " char *\n"
25098 " guestfs_findfs_label (guestfs_h *g,\n"
25099 "                       const char *label);\n"
25100 "\n"
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../src/guestfs-actions.pod:1880
25105 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25106 msgstr ""
25107
25108 #. type: =head2
25109 #: ../src/guestfs-actions.pod:1887
25110 msgid "guestfs_findfs_uuid"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../src/guestfs-actions.pod:1889
25115 #, no-wrap
25116 msgid ""
25117 " char *\n"
25118 " guestfs_findfs_uuid (guestfs_h *g,\n"
25119 "                      const char *uuid);\n"
25120 "\n"
25121 msgstr ""
25122
25123 #. type: textblock
25124 #: ../src/guestfs-actions.pod:1897
25125 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25126 msgstr ""
25127
25128 #. type: =head2
25129 #: ../src/guestfs-actions.pod:1904
25130 msgid "guestfs_fsck"
25131 msgstr ""
25132
25133 #. type: verbatim
25134 #: ../src/guestfs-actions.pod:1906
25135 #, no-wrap
25136 msgid ""
25137 " int\n"
25138 " guestfs_fsck (guestfs_h *g,\n"
25139 "               const char *fstype,\n"
25140 "               const char *device);\n"
25141 "\n"
25142 msgstr ""
25143
25144 #. type: textblock
25145 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
25146 msgid "(Added in 1.0.16)"
25147 msgstr ""
25148
25149 #. type: =head2
25150 #: ../src/guestfs-actions.pod:1943
25151 msgid "guestfs_get_append"
25152 msgstr ""
25153
25154 #. type: verbatim
25155 #: ../src/guestfs-actions.pod:1945
25156 #, no-wrap
25157 msgid ""
25158 " const char *\n"
25159 " guestfs_get_append (guestfs_h *g);\n"
25160 "\n"
25161 msgstr ""
25162
25163 #. type: textblock
25164 #: ../src/guestfs-actions.pod:1953
25165 msgid ""
25166 "This function returns a string which may be NULL.  There is no way to return "
25167 "an error from this function.  The string is owned by the guest handle and "
25168 "must I<not> be freed."
25169 msgstr ""
25170
25171 #. type: textblock
25172 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
25173 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
25174 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
25175 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
25176 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
25177 msgid "(Added in 1.0.26)"
25178 msgstr ""
25179
25180 #. type: =head2
25181 #: ../src/guestfs-actions.pod:1959
25182 msgid "guestfs_get_attach_method"
25183 msgstr ""
25184
25185 #. type: verbatim
25186 #: ../src/guestfs-actions.pod:1961
25187 #, no-wrap
25188 msgid ""
25189 " char *\n"
25190 " guestfs_get_attach_method (guestfs_h *g);\n"
25191 "\n"
25192 msgstr ""
25193
25194 #. type: textblock
25195 #: ../src/guestfs-actions.pod:1964
25196 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25197 msgstr ""
25198
25199 #. type: textblock
25200 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
25201 msgid "(Added in 1.9.8)"
25202 msgstr ""
25203
25204 #. type: =head2
25205 #: ../src/guestfs-actions.pod:1971
25206 msgid "guestfs_get_autosync"
25207 msgstr ""
25208
25209 #. type: verbatim
25210 #: ../src/guestfs-actions.pod:1973
25211 #, no-wrap
25212 msgid ""
25213 " int\n"
25214 " guestfs_get_autosync (guestfs_h *g);\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: =head2
25219 #: ../src/guestfs-actions.pod:1982
25220 msgid "guestfs_get_direct"
25221 msgstr ""
25222
25223 #. type: verbatim
25224 #: ../src/guestfs-actions.pod:1984
25225 #, no-wrap
25226 msgid ""
25227 " int\n"
25228 " guestfs_get_direct (guestfs_h *g);\n"
25229 "\n"
25230 msgstr ""
25231
25232 #. type: textblock
25233 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
25234 msgid "(Added in 1.0.72)"
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:1993
25239 msgid "guestfs_get_e2label"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:1995
25244 #, no-wrap
25245 msgid ""
25246 " char *\n"
25247 " guestfs_get_e2label (guestfs_h *g,\n"
25248 "                      const char *device);\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:1999
25254 msgid ""
25255 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25256 "call instead."
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
25261 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
25262 msgid "(Added in 1.0.15)"
25263 msgstr ""
25264
25265 #. type: =head2
25266 #: ../src/guestfs-actions.pod:2014
25267 msgid "guestfs_get_e2uuid"
25268 msgstr ""
25269
25270 #. type: verbatim
25271 #: ../src/guestfs-actions.pod:2016
25272 #, no-wrap
25273 msgid ""
25274 " char *\n"
25275 " guestfs_get_e2uuid (guestfs_h *g,\n"
25276 "                     const char *device);\n"
25277 "\n"
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:2020
25282 msgid ""
25283 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25284 "call instead."
25285 msgstr ""
25286
25287 #. type: =head2
25288 #: ../src/guestfs-actions.pod:2035
25289 msgid "guestfs_get_memsize"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../src/guestfs-actions.pod:2037
25294 #, no-wrap
25295 msgid ""
25296 " int\n"
25297 " guestfs_get_memsize (guestfs_h *g);\n"
25298 "\n"
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../src/guestfs-actions.pod:2043
25303 msgid ""
25304 "If C<guestfs_set_memsize> was not called on this handle, and if "
25305 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25306 "value for memsize."
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
25311 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
25312 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
25313 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
25314 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
25315 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
25316 msgid "(Added in 1.0.55)"
25317 msgstr ""
25318
25319 #. type: =head2
25320 #: ../src/guestfs-actions.pod:2054
25321 msgid "guestfs_get_network"
25322 msgstr ""
25323
25324 #. type: verbatim
25325 #: ../src/guestfs-actions.pod:2056
25326 #, no-wrap
25327 msgid ""
25328 " int\n"
25329 " guestfs_get_network (guestfs_h *g);\n"
25330 "\n"
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
25335 msgid "(Added in 1.5.4)"
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:2065
25340 msgid "guestfs_get_path"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:2067
25345 #, no-wrap
25346 msgid ""
25347 " const char *\n"
25348 " guestfs_get_path (guestfs_h *g);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
25354 msgid ""
25355 "This function returns a string, or NULL on error.  The string is owned by "
25356 "the guest handle and must I<not> be freed."
25357 msgstr ""
25358
25359 #. type: =head2
25360 #: ../src/guestfs-actions.pod:2080
25361 msgid "guestfs_get_pgroup"
25362 msgstr ""
25363
25364 #. type: verbatim
25365 #: ../src/guestfs-actions.pod:2082
25366 #, no-wrap
25367 msgid ""
25368 " int\n"
25369 " guestfs_get_pgroup (guestfs_h *g);\n"
25370 "\n"
25371 msgstr ""
25372
25373 #. type: textblock
25374 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
25375 #: ../src/guestfs-actions.pod:7685
25376 #, fuzzy
25377 #| msgid "(Added in 1.5.1)"
25378 msgid "(Added in 1.11.18)"
25379 msgstr "(Додано у 1.5.1)"
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:2091
25383 msgid "guestfs_get_pid"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:2093
25388 #, no-wrap
25389 msgid ""
25390 " int\n"
25391 " guestfs_get_pid (guestfs_h *g);\n"
25392 "\n"
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:2103
25397 msgid "(Added in 1.0.56)"
25398 msgstr ""
25399
25400 #. type: =head2
25401 #: ../src/guestfs-actions.pod:2105
25402 msgid "guestfs_get_qemu"
25403 msgstr ""
25404
25405 #. type: verbatim
25406 #: ../src/guestfs-actions.pod:2107
25407 #, no-wrap
25408 msgid ""
25409 " const char *\n"
25410 " guestfs_get_qemu (guestfs_h *g);\n"
25411 "\n"
25412 msgstr ""
25413
25414 #. type: textblock
25415 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
25416 msgid "(Added in 1.0.6)"
25417 msgstr ""
25418
25419 #. type: =head2
25420 #: ../src/guestfs-actions.pod:2120
25421 msgid "guestfs_get_recovery_proc"
25422 msgstr ""
25423
25424 #. type: verbatim
25425 #: ../src/guestfs-actions.pod:2122
25426 #, no-wrap
25427 msgid ""
25428 " int\n"
25429 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25430 "\n"
25431 msgstr ""
25432
25433 #. type: textblock
25434 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
25435 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
25436 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
25437 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
25438 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
25439 #: ../src/guestfs-actions.pod:7308
25440 msgid "(Added in 1.0.77)"
25441 msgstr ""
25442
25443 #. type: =head2
25444 #: ../src/guestfs-actions.pod:2131
25445 msgid "guestfs_get_selinux"
25446 msgstr ""
25447
25448 #. type: verbatim
25449 #: ../src/guestfs-actions.pod:2133
25450 #, no-wrap
25451 msgid ""
25452 " int\n"
25453 " guestfs_get_selinux (guestfs_h *g);\n"
25454 "\n"
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../src/guestfs-actions.pod:2136
25459 msgid ""
25460 "This returns the current setting of the selinux flag which is passed to the "
25461 "appliance at boot time.  See C<guestfs_set_selinux>."
25462 msgstr ""
25463
25464 #. type: textblock
25465 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
25466 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
25467 msgid "(Added in 1.0.67)"
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../src/guestfs-actions.pod:2146
25472 msgid "guestfs_get_state"
25473 msgstr ""
25474
25475 #. type: verbatim
25476 #: ../src/guestfs-actions.pod:2148
25477 #, no-wrap
25478 msgid ""
25479 " int\n"
25480 " guestfs_get_state (guestfs_h *g);\n"
25481 "\n"
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../src/guestfs-actions.pod:2160
25486 msgid "guestfs_get_trace"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../src/guestfs-actions.pod:2162
25491 #, no-wrap
25492 msgid ""
25493 " int\n"
25494 " guestfs_get_trace (guestfs_h *g);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: =head2
25499 #: ../src/guestfs-actions.pod:2171
25500 msgid "guestfs_get_umask"
25501 msgstr ""
25502
25503 #. type: verbatim
25504 #: ../src/guestfs-actions.pod:2173
25505 #, no-wrap
25506 msgid ""
25507 " int\n"
25508 " guestfs_get_umask (guestfs_h *g);\n"
25509 "\n"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../src/guestfs-actions.pod:2176
25514 msgid ""
25515 "Return the current umask.  By default the umask is C<022> unless it has been "
25516 "set by calling C<guestfs_umask>."
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:2183
25521 msgid "guestfs_get_verbose"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:2185
25526 #, no-wrap
25527 msgid ""
25528 " int\n"
25529 " guestfs_get_verbose (guestfs_h *g);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: =head2
25534 #: ../src/guestfs-actions.pod:2194
25535 msgid "guestfs_getcon"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../src/guestfs-actions.pod:2196
25540 #, no-wrap
25541 msgid ""
25542 " char *\n"
25543 " guestfs_getcon (guestfs_h *g);\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: textblock
25548 #: ../src/guestfs-actions.pod:2201
25549 msgid ""
25550 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25551 msgstr ""
25552
25553 #. type: =head2
25554 #: ../src/guestfs-actions.pod:2209
25555 msgid "guestfs_getxattr"
25556 msgstr ""
25557
25558 #. type: verbatim
25559 #: ../src/guestfs-actions.pod:2211
25560 #, no-wrap
25561 msgid ""
25562 " char *\n"
25563 " guestfs_getxattr (guestfs_h *g,\n"
25564 "                   const char *path,\n"
25565 "                   const char *name,\n"
25566 "                   size_t *size_r);\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../src/guestfs-actions.pod:2217
25572 msgid ""
25573 "Get a single extended attribute from file C<path> named C<name>.  This call "
25574 "follows symlinks.  If you want to lookup an extended attribute for the "
25575 "symlink itself, use C<guestfs_lgetxattr>."
25576 msgstr ""
25577
25578 #. type: textblock
25579 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
25580 msgid ""
25581 "Normally it is better to get all extended attributes from a file in one go "
25582 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25583 "implementations are buggy and do not provide a way to list out attributes.  "
25584 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25585 "extended attributes you want in advance and call this function."
25586 msgstr ""
25587
25588 #. type: textblock
25589 #: ../src/guestfs-actions.pod:2231
25590 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25591 msgstr ""
25592
25593 #. type: textblock
25594 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
25595 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
25596 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
25597 #: ../src/guestfs-actions.pod:5817
25598 msgid ""
25599 "This function returns a buffer, or NULL on error.  The size of the returned "
25600 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25601 "after use>."
25602 msgstr ""
25603
25604 #. type: textblock
25605 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
25606 msgid "(Added in 1.7.24)"
25607 msgstr ""
25608
25609 #. type: =head2
25610 #: ../src/guestfs-actions.pod:2239
25611 msgid "guestfs_getxattrs"
25612 msgstr ""
25613
25614 #. type: verbatim
25615 #: ../src/guestfs-actions.pod:2241
25616 #, no-wrap
25617 msgid ""
25618 " struct guestfs_xattr_list *\n"
25619 " guestfs_getxattrs (guestfs_h *g,\n"
25620 "                    const char *path);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:2251
25626 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25627 msgstr ""
25628
25629 #. type: textblock
25630 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
25631 #: ../src/guestfs-actions.pod:4393
25632 msgid ""
25633 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25634 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
25639 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
25640 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
25641 #: ../src/guestfs-actions.pod:7888
25642 msgid "(Added in 1.0.59)"
25643 msgstr ""
25644
25645 #. type: =head2
25646 #: ../src/guestfs-actions.pod:2259
25647 msgid "guestfs_glob_expand"
25648 msgstr ""
25649
25650 #. type: verbatim
25651 #: ../src/guestfs-actions.pod:2261
25652 #, no-wrap
25653 msgid ""
25654 " char **\n"
25655 " guestfs_glob_expand (guestfs_h *g,\n"
25656 "                      const char *pattern);\n"
25657 "\n"
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
25662 #: ../src/guestfs-actions.pod:6711
25663 msgid "(Added in 1.0.50)"
25664 msgstr ""
25665
25666 #. type: =head2
25667 #: ../src/guestfs-actions.pod:2282
25668 msgid "guestfs_grep"
25669 msgstr ""
25670
25671 #. type: verbatim
25672 #: ../src/guestfs-actions.pod:2284
25673 #, no-wrap
25674 msgid ""
25675 " char **\n"
25676 " guestfs_grep (guestfs_h *g,\n"
25677 "               const char *regex,\n"
25678 "               const char *path);\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: =head2
25683 #: ../src/guestfs-actions.pod:2301
25684 msgid "guestfs_grepi"
25685 msgstr ""
25686
25687 #. type: verbatim
25688 #: ../src/guestfs-actions.pod:2303
25689 #, no-wrap
25690 msgid ""
25691 " char **\n"
25692 " guestfs_grepi (guestfs_h *g,\n"
25693 "                const char *regex,\n"
25694 "                const char *path);\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:2320
25700 msgid "guestfs_grub_install"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:2322
25705 #, no-wrap
25706 msgid ""
25707 " int\n"
25708 " guestfs_grub_install (guestfs_h *g,\n"
25709 "                       const char *root,\n"
25710 "                       const char *device);\n"
25711 "\n"
25712 msgstr ""
25713
25714 #. type: textblock
25715 #: ../src/guestfs-actions.pod:2343
25716 msgid "(Added in 1.0.17)"
25717 msgstr ""
25718
25719 #. type: =head2
25720 #: ../src/guestfs-actions.pod:2345
25721 msgid "guestfs_head"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../src/guestfs-actions.pod:2347
25726 #, no-wrap
25727 msgid ""
25728 " char **\n"
25729 " guestfs_head (guestfs_h *g,\n"
25730 "               const char *path);\n"
25731 "\n"
25732 msgstr ""
25733
25734 #. type: =head2
25735 #: ../src/guestfs-actions.pod:2363
25736 msgid "guestfs_head_n"
25737 msgstr ""
25738
25739 #. type: verbatim
25740 #: ../src/guestfs-actions.pod:2365
25741 #, no-wrap
25742 msgid ""
25743 " char **\n"
25744 " guestfs_head_n (guestfs_h *g,\n"
25745 "                 int nrlines,\n"
25746 "                 const char *path);\n"
25747 "\n"
25748 msgstr ""
25749
25750 #. type: =head2
25751 #: ../src/guestfs-actions.pod:2387
25752 msgid "guestfs_hexdump"
25753 msgstr ""
25754
25755 #. type: verbatim
25756 #: ../src/guestfs-actions.pod:2389
25757 #, no-wrap
25758 msgid ""
25759 " char *\n"
25760 " guestfs_hexdump (guestfs_h *g,\n"
25761 "                  const char *path);\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
25767 #: ../src/guestfs-actions.pod:6830
25768 msgid "(Added in 1.0.22)"
25769 msgstr ""
25770
25771 #. type: =head2
25772 #: ../src/guestfs-actions.pod:2404
25773 msgid "guestfs_initrd_cat"
25774 msgstr ""
25775
25776 #. type: verbatim
25777 #: ../src/guestfs-actions.pod:2406
25778 #, no-wrap
25779 msgid ""
25780 " char *\n"
25781 " guestfs_initrd_cat (guestfs_h *g,\n"
25782 "                     const char *initrdpath,\n"
25783 "                     const char *filename,\n"
25784 "                     size_t *size_r);\n"
25785 "\n"
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../src/guestfs-actions.pod:2422
25790 msgid "See also C<guestfs_initrd_list>."
25791 msgstr ""
25792
25793 #. type: =head2
25794 #: ../src/guestfs-actions.pod:2433
25795 msgid "guestfs_initrd_list"
25796 msgstr ""
25797
25798 #. type: verbatim
25799 #: ../src/guestfs-actions.pod:2435
25800 #, no-wrap
25801 msgid ""
25802 " char **\n"
25803 " guestfs_initrd_list (guestfs_h *g,\n"
25804 "                      const char *path);\n"
25805 "\n"
25806 msgstr ""
25807
25808 #. type: =head2
25809 #: ../src/guestfs-actions.pod:2455
25810 msgid "guestfs_inotify_add_watch"
25811 msgstr ""
25812
25813 #. type: verbatim
25814 #: ../src/guestfs-actions.pod:2457
25815 #, no-wrap
25816 msgid ""
25817 " int64_t\n"
25818 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25819 "                            const char *path,\n"
25820 "                            int mask);\n"
25821 "\n"
25822 msgstr ""
25823
25824 #. type: =head2
25825 #: ../src/guestfs-actions.pod:2476
25826 msgid "guestfs_inotify_close"
25827 msgstr ""
25828
25829 #. type: verbatim
25830 #: ../src/guestfs-actions.pod:2478
25831 #, no-wrap
25832 msgid ""
25833 " int\n"
25834 " guestfs_inotify_close (guestfs_h *g);\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: =head2
25839 #: ../src/guestfs-actions.pod:2489
25840 msgid "guestfs_inotify_files"
25841 msgstr ""
25842
25843 #. type: verbatim
25844 #: ../src/guestfs-actions.pod:2491
25845 #, no-wrap
25846 msgid ""
25847 " char **\n"
25848 " guestfs_inotify_files (guestfs_h *g);\n"
25849 "\n"
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:2494
25854 msgid ""
25855 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25856 "returns a list of pathnames of objects that were touched.  The returned "
25857 "pathnames are sorted and deduplicated."
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../src/guestfs-actions.pod:2504
25862 msgid "guestfs_inotify_init"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../src/guestfs-actions.pod:2506
25867 #, no-wrap
25868 msgid ""
25869 " int\n"
25870 " guestfs_inotify_init (guestfs_h *g,\n"
25871 "                       int maxevents);\n"
25872 "\n"
25873 msgstr ""
25874
25875 #. type: textblock
25876 #: ../src/guestfs-actions.pod:2514
25877 msgid ""
25878 "C<maxevents> is the maximum number of events which will be queued up between "
25879 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25880 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25881 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25882 "throws away events, but records the fact that it threw them away by setting "
25883 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25884 "C<guestfs_inotify_read>)."
25885 msgstr ""
25886
25887 #. type: textblock
25888 #: ../src/guestfs-actions.pod:2524
25889 msgid ""
25890 "Before any events are generated, you have to add some watches to the "
25891 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25892 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25893 msgstr ""
25894
25895 #. type: textblock
25896 #: ../src/guestfs-actions.pod:2530
25897 msgid ""
25898 "Queued up events should be read periodically by calling "
25899 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25900 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25901 "often enough then you risk the internal queue overflowing."
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:2537
25906 msgid ""
25907 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25908 "This also removes any watches automatically."
25909 msgstr ""
25910
25911 #. type: =head2
25912 #: ../src/guestfs-actions.pod:2550
25913 msgid "guestfs_inotify_read"
25914 msgstr ""
25915
25916 #. type: verbatim
25917 #: ../src/guestfs-actions.pod:2552
25918 #, no-wrap
25919 msgid ""
25920 " struct guestfs_inotify_event_list *\n"
25921 " guestfs_inotify_read (guestfs_h *g);\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: textblock
25926 #: ../src/guestfs-actions.pod:2566
25927 msgid ""
25928 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25929 "there was an error.  I<The caller must call "
25930 "C<guestfs_free_inotify_event_list> after use>."
25931 msgstr ""
25932
25933 #. type: =head2
25934 #: ../src/guestfs-actions.pod:2572
25935 msgid "guestfs_inotify_rm_watch"
25936 msgstr ""
25937
25938 #. type: verbatim
25939 #: ../src/guestfs-actions.pod:2574
25940 #, no-wrap
25941 msgid ""
25942 " int\n"
25943 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25944 "                           int wd);\n"
25945 "\n"
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:2578
25950 msgid ""
25951 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25952 msgstr ""
25953
25954 #. type: =head2
25955 #: ../src/guestfs-actions.pod:2585
25956 msgid "guestfs_inspect_get_arch"
25957 msgstr ""
25958
25959 #. type: verbatim
25960 #: ../src/guestfs-actions.pod:2587
25961 #, no-wrap
25962 msgid ""
25963 " char *\n"
25964 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25965 "                           const char *root);\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../src/guestfs-actions.pod:2591
25971 msgid ""
25972 "This returns the architecture of the inspected operating system.  The "
25973 "possible return values are listed under C<guestfs_file_architecture>."
25974 msgstr ""
25975
25976 #. type: =head2
25977 #: ../src/guestfs-actions.pod:2605
25978 msgid "guestfs_inspect_get_distro"
25979 msgstr ""
25980
25981 #. type: verbatim
25982 #: ../src/guestfs-actions.pod:2607
25983 #, no-wrap
25984 msgid ""
25985 " char *\n"
25986 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25987 "                             const char *root);\n"
25988 "\n"
25989 msgstr ""
25990
25991 #. type: =head2
25992 #: ../src/guestfs-actions.pod:2695
25993 msgid "guestfs_inspect_get_drive_mappings"
25994 msgstr ""
25995
25996 #. type: verbatim
25997 #: ../src/guestfs-actions.pod:2697
25998 #, no-wrap
25999 msgid ""
26000 " char **\n"
26001 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26002 "                                     const char *root);\n"
26003 "\n"
26004 msgstr ""
26005
26006 #. type: textblock
26007 #: ../src/guestfs-actions.pod:2726
26008 msgid ""
26009 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26010 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26011 msgstr ""
26012
26013 #. type: textblock
26014 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
26015 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
26016 #: ../src/guestfs-actions.pod:7132
26017 msgid ""
26018 "This function returns a NULL-terminated array of strings, or NULL if there "
26019 "was an error.  The array of strings will always have length C<2n+1>, where "
26020 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26021 "caller must free the strings and the array after use>."
26022 msgstr ""
26023
26024 #. type: textblock
26025 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
26026 msgid "(Added in 1.9.17)"
26027 msgstr ""
26028
26029 #. type: =head2
26030 #: ../src/guestfs-actions.pod:2738
26031 msgid "guestfs_inspect_get_filesystems"
26032 msgstr ""
26033
26034 #. type: verbatim
26035 #: ../src/guestfs-actions.pod:2740
26036 #, no-wrap
26037 msgid ""
26038 " char **\n"
26039 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26040 "                                  const char *root);\n"
26041 "\n"
26042 msgstr ""
26043
26044 #. type: textblock
26045 #: ../src/guestfs-actions.pod:2752
26046 msgid ""
26047 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26048 "C<guestfs_inspect_get_mountpoints>."
26049 msgstr ""
26050
26051 #. type: =head2
26052 #: ../src/guestfs-actions.pod:2761
26053 msgid "guestfs_inspect_get_format"
26054 msgstr ""
26055
26056 #. type: verbatim
26057 #: ../src/guestfs-actions.pod:2763
26058 #, no-wrap
26059 msgid ""
26060 " char *\n"
26061 " guestfs_inspect_get_format (guestfs_h *g,\n"
26062 "                             const char *root);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
26068 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
26069 #: ../src/guestfs-actions.pod:6028
26070 msgid "(Added in 1.9.4)"
26071 msgstr ""
26072
26073 #. type: =head2
26074 #: ../src/guestfs-actions.pod:2799
26075 msgid "guestfs_inspect_get_hostname"
26076 msgstr ""
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:2801
26080 #, no-wrap
26081 msgid ""
26082 " char *\n"
26083 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26084 "                               const char *root);\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:2816
26090 msgid "(Added in 1.7.9)"
26091 msgstr ""
26092
26093 #. type: =head2
26094 #: ../src/guestfs-actions.pod:2818
26095 msgid "guestfs_inspect_get_icon"
26096 msgstr ""
26097
26098 #. type: verbatim
26099 #: ../src/guestfs-actions.pod:2820
26100 #, no-wrap
26101 msgid ""
26102 " char *\n"
26103 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26104 "                           const char *root,\n"
26105 "                           size_t *size_r,\n"
26106 "                           ...);\n"
26107 "\n"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../src/guestfs-actions.pod:2831
26112 #, no-wrap
26113 msgid ""
26114 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26115 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26116 "\n"
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
26121 #: ../src/guestfs-actions.pod:4977
26122 msgid "(Added in 1.11.12)"
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:2900
26127 msgid "guestfs_inspect_get_icon_va"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:2902
26132 #, no-wrap
26133 msgid ""
26134 " char *\n"
26135 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26136 "                              const char *root,\n"
26137 "                              size_t *size_r,\n"
26138 "                              va_list args);\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:2908
26144 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:2912
26149 msgid "guestfs_inspect_get_icon_argv"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:2914
26154 #, no-wrap
26155 msgid ""
26156 " char *\n"
26157 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26158 "                                const char *root,\n"
26159 "                                size_t *size_r,\n"
26160 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26161 "\n"
26162 msgstr ""
26163
26164 #. type: textblock
26165 #: ../src/guestfs-actions.pod:2920
26166 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26167 msgstr ""
26168
26169 #. type: =head2
26170 #: ../src/guestfs-actions.pod:2924
26171 msgid "guestfs_inspect_get_major_version"
26172 msgstr ""
26173
26174 #. type: verbatim
26175 #: ../src/guestfs-actions.pod:2926
26176 #, no-wrap
26177 msgid ""
26178 " int\n"
26179 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26180 "                                    const char *root);\n"
26181 "\n"
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../src/guestfs-actions.pod:2948
26186 msgid "guestfs_inspect_get_minor_version"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:2950
26191 #, no-wrap
26192 msgid ""
26193 " int\n"
26194 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26195 "                                    const char *root);\n"
26196 "\n"
26197 msgstr ""
26198
26199 #. type: textblock
26200 #: ../src/guestfs-actions.pod:2959
26201 msgid ""
26202 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26203 "C<guestfs_inspect_get_major_version>."
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:2966
26208 msgid "guestfs_inspect_get_mountpoints"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:2968
26213 #, no-wrap
26214 msgid ""
26215 " char **\n"
26216 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26217 "                                  const char *root);\n"
26218 "\n"
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../src/guestfs-actions.pod:2989
26223 msgid ""
26224 "For operating systems like Windows which still use drive letters, this call "
26225 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26226 "information about the mapping of drive letters to partitions, see "
26227 "C<guestfs_inspect_get_drive_mappings>."
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../src/guestfs-actions.pod:2995
26232 msgid ""
26233 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26234 "C<guestfs_inspect_get_filesystems>."
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../src/guestfs-actions.pod:3006
26239 msgid "guestfs_inspect_get_package_format"
26240 msgstr ""
26241
26242 #. type: verbatim
26243 #: ../src/guestfs-actions.pod:3008
26244 #, no-wrap
26245 msgid ""
26246 " char *\n"
26247 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26248 "                                     const char *root);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:3012
26254 msgid ""
26255 "This function and C<guestfs_inspect_get_package_management> return the "
26256 "package format and package management tool used by the inspected operating "
26257 "system.  For example for Fedora these functions would return C<rpm> (package "
26258 "format) and C<yum> (package management)."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
26263 msgid "(Added in 1.7.5)"
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:3032
26268 msgid "guestfs_inspect_get_package_management"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:3034
26273 #, no-wrap
26274 msgid ""
26275 " char *\n"
26276 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26277 "                                         const char *root);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../src/guestfs-actions.pod:3038
26283 msgid ""
26284 "C<guestfs_inspect_get_package_format> and this function return the package "
26285 "format and package management tool used by the inspected operating system.  "
26286 "For example for Fedora these functions would return C<rpm> (package format) "
26287 "and C<yum> (package management)."
26288 msgstr ""
26289
26290 #. type: =head2
26291 #: ../src/guestfs-actions.pod:3060
26292 msgid "guestfs_inspect_get_product_name"
26293 msgstr ""
26294
26295 #. type: verbatim
26296 #: ../src/guestfs-actions.pod:3062
26297 #, no-wrap
26298 msgid ""
26299 " char *\n"
26300 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26301 "                                   const char *root);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:3081
26307 msgid "guestfs_inspect_get_product_variant"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:3083
26312 #, no-wrap
26313 msgid ""
26314 " char *\n"
26315 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26316 "                                      const char *root);\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:3106
26322 msgid ""
26323 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26324 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26325 msgstr ""
26326
26327 #. type: textblock
26328 #: ../src/guestfs-actions.pod:3113
26329 msgid "(Added in 1.9.13)"
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:3115
26334 msgid "guestfs_inspect_get_roots"
26335 msgstr ""
26336
26337 #. type: verbatim
26338 #: ../src/guestfs-actions.pod:3117
26339 #, no-wrap
26340 msgid ""
26341 " char **\n"
26342 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26343 "\n"
26344 msgstr ""
26345
26346 #. type: textblock
26347 #: ../src/guestfs-actions.pod:3120
26348 msgid ""
26349 "This function is a convenient way to get the list of root devices, as "
26350 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26351 "the whole inspection process."
26352 msgstr ""
26353
26354 #. type: textblock
26355 #: ../src/guestfs-actions.pod:3124
26356 msgid ""
26357 "This returns an empty list if either no root devices were found or the "
26358 "caller has not called C<guestfs_inspect_os>."
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:3133
26363 msgid "(Added in 1.7.3)"
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:3135
26368 msgid "guestfs_inspect_get_type"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:3137
26373 #, no-wrap
26374 msgid ""
26375 " char *\n"
26376 " guestfs_inspect_get_type (guestfs_h *g,\n"
26377 "                           const char *root);\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: =head2
26382 #: ../src/guestfs-actions.pod:3174
26383 msgid "guestfs_inspect_get_windows_current_control_set"
26384 msgstr ""
26385
26386 #. type: verbatim
26387 #: ../src/guestfs-actions.pod:3176
26388 #, no-wrap
26389 msgid ""
26390 " char *\n"
26391 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26392 "                                                  const char *root);\n"
26393 "\n"
26394 msgstr ""
26395
26396 #. type: =head2
26397 #: ../src/guestfs-actions.pod:3194
26398 msgid "guestfs_inspect_get_windows_systemroot"
26399 msgstr ""
26400
26401 #. type: verbatim
26402 #: ../src/guestfs-actions.pod:3196
26403 #, no-wrap
26404 msgid ""
26405 " char *\n"
26406 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26407 "                                         const char *root);\n"
26408 "\n"
26409 msgstr ""
26410
26411 #. type: textblock
26412 #: ../src/guestfs-actions.pod:3212
26413 msgid "(Added in 1.5.25)"
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:3214
26418 msgid "guestfs_inspect_is_live"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:3216
26423 #, no-wrap
26424 msgid ""
26425 " int\n"
26426 " guestfs_inspect_is_live (guestfs_h *g,\n"
26427 "                          const char *root);\n"
26428 "\n"
26429 msgstr ""
26430
26431 #. type: textblock
26432 #: ../src/guestfs-actions.pod:3220
26433 msgid ""
26434 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26435 "disk), then this returns true if a live image was detected on the disk."
26436 msgstr ""
26437
26438 #. type: =head2
26439 #: ../src/guestfs-actions.pod:3230
26440 msgid "guestfs_inspect_is_multipart"
26441 msgstr ""
26442
26443 #. type: verbatim
26444 #: ../src/guestfs-actions.pod:3232
26445 #, no-wrap
26446 msgid ""
26447 " int\n"
26448 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26449 "                               const char *root);\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../src/guestfs-actions.pod:3236
26455 msgid ""
26456 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26457 "disk), then this returns true if the disk is part of a set."
26458 msgstr ""
26459
26460 #. type: =head2
26461 #: ../src/guestfs-actions.pod:3246
26462 msgid "guestfs_inspect_is_netinst"
26463 msgstr ""
26464
26465 #. type: verbatim
26466 #: ../src/guestfs-actions.pod:3248
26467 #, no-wrap
26468 msgid ""
26469 " int\n"
26470 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26471 "                             const char *root);\n"
26472 "\n"
26473 msgstr ""
26474
26475 #. type: textblock
26476 #: ../src/guestfs-actions.pod:3252
26477 msgid ""
26478 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26479 "disk), then this returns true if the disk is a network installer, ie. not a "
26480 "self-contained install CD but one which is likely to require network access "
26481 "to complete the install."
26482 msgstr ""
26483
26484 #. type: =head2
26485 #: ../src/guestfs-actions.pod:3264
26486 msgid "guestfs_inspect_list_applications"
26487 msgstr ""
26488
26489 #. type: verbatim
26490 #: ../src/guestfs-actions.pod:3266
26491 #, no-wrap
26492 msgid ""
26493 " struct guestfs_application_list *\n"
26494 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26495 "                                    const char *root);\n"
26496 "\n"
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../src/guestfs-actions.pod:3272
26501 msgid ""
26502 "I<Note:> This call works differently from other parts of the inspection "
26503 "API.  You have to call C<guestfs_inspect_os>, then "
26504 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26505 "this.  Listing applications is a significantly more difficult operation "
26506 "which requires access to the full filesystem.  Also note that unlike the "
26507 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26508 "the libguestfs handle, this call actually reads parts of the mounted "
26509 "filesystems during the call."
26510 msgstr ""
26511
26512 #. type: textblock
26513 #: ../src/guestfs-actions.pod:3362
26514 msgid ""
26515 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26516 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26517 "after use>."
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../src/guestfs-actions.pod:3366
26522 msgid "(Added in 1.7.8)"
26523 msgstr ""
26524
26525 #. type: =head2
26526 #: ../src/guestfs-actions.pod:3368
26527 msgid "guestfs_inspect_os"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:3370
26532 #, no-wrap
26533 msgid ""
26534 " char **\n"
26535 " guestfs_inspect_os (guestfs_h *g);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../src/guestfs-actions.pod:3386
26541 msgid ""
26542 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26543 "functions in order to query further information about each operating system, "
26544 "such as the name and version."
26545 msgstr ""
26546
26547 #. type: textblock
26548 #: ../src/guestfs-actions.pod:3391
26549 msgid ""
26550 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26551 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26552 "the contents.  This should be called with no disks currently mounted.  The "
26553 "function may also use Augeas, so any existing Augeas handle will be closed."
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
26558 #: ../src/guestfs-actions.pod:3816
26559 msgid "See also C<guestfs_list_filesystems>."
26560 msgstr ""
26561
26562 #. type: =head2
26563 #: ../src/guestfs-actions.pod:3411
26564 msgid "guestfs_is_blockdev"
26565 msgstr ""
26566
26567 #. type: verbatim
26568 #: ../src/guestfs-actions.pod:3413
26569 #, no-wrap
26570 msgid ""
26571 " int\n"
26572 " guestfs_is_blockdev (guestfs_h *g,\n"
26573 "                      const char *path);\n"
26574 "\n"
26575 msgstr ""
26576
26577 #. type: textblock
26578 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
26579 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
26580 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
26581 #: ../src/guestfs-actions.pod:3581
26582 msgid "See also C<guestfs_stat>."
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
26587 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
26588 #: ../src/guestfs-actions.pod:3585
26589 msgid "(Added in 1.5.10)"
26590 msgstr ""
26591
26592 #. type: =head2
26593 #: ../src/guestfs-actions.pod:3426
26594 msgid "guestfs_is_busy"
26595 msgstr ""
26596
26597 #. type: verbatim
26598 #: ../src/guestfs-actions.pod:3428
26599 #, no-wrap
26600 msgid ""
26601 " int\n"
26602 " guestfs_is_busy (guestfs_h *g);\n"
26603 "\n"
26604 msgstr ""
26605
26606 #. type: =head2
26607 #: ../src/guestfs-actions.pod:3440
26608 msgid "guestfs_is_chardev"
26609 msgstr ""
26610
26611 #. type: verbatim
26612 #: ../src/guestfs-actions.pod:3442
26613 #, no-wrap
26614 msgid ""
26615 " int\n"
26616 " guestfs_is_chardev (guestfs_h *g,\n"
26617 "                     const char *path);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:3455
26623 msgid "guestfs_is_config"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:3457
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_is_config (guestfs_h *g);\n"
26632 "\n"
26633 msgstr ""
26634
26635 #. type: =head2
26636 #: ../src/guestfs-actions.pod:3469
26637 msgid "guestfs_is_dir"
26638 msgstr ""
26639
26640 #. type: verbatim
26641 #: ../src/guestfs-actions.pod:3471
26642 #, no-wrap
26643 msgid ""
26644 " int\n"
26645 " guestfs_is_dir (guestfs_h *g,\n"
26646 "                 const char *path);\n"
26647 "\n"
26648 msgstr ""
26649
26650 #. type: =head2
26651 #: ../src/guestfs-actions.pod:3485
26652 msgid "guestfs_is_fifo"
26653 msgstr ""
26654
26655 #. type: verbatim
26656 #: ../src/guestfs-actions.pod:3487
26657 #, no-wrap
26658 msgid ""
26659 " int\n"
26660 " guestfs_is_fifo (guestfs_h *g,\n"
26661 "                  const char *path);\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: =head2
26666 #: ../src/guestfs-actions.pod:3500
26667 msgid "guestfs_is_file"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../src/guestfs-actions.pod:3502
26672 #, no-wrap
26673 msgid ""
26674 " int\n"
26675 " guestfs_is_file (guestfs_h *g,\n"
26676 "                  const char *path);\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../src/guestfs-actions.pod:3516
26682 msgid "guestfs_is_launching"
26683 msgstr ""
26684
26685 #. type: verbatim
26686 #: ../src/guestfs-actions.pod:3518
26687 #, no-wrap
26688 msgid ""
26689 " int\n"
26690 " guestfs_is_launching (guestfs_h *g);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../src/guestfs-actions.pod:3530
26696 msgid "guestfs_is_lv"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../src/guestfs-actions.pod:3532
26701 #, no-wrap
26702 msgid ""
26703 " int\n"
26704 " guestfs_is_lv (guestfs_h *g,\n"
26705 "                const char *device);\n"
26706 "\n"
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../src/guestfs-actions.pod:3543
26711 msgid "guestfs_is_ready"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../src/guestfs-actions.pod:3545
26716 #, no-wrap
26717 msgid ""
26718 " int\n"
26719 " guestfs_is_ready (guestfs_h *g);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: =head2
26724 #: ../src/guestfs-actions.pod:3557
26725 msgid "guestfs_is_socket"
26726 msgstr ""
26727
26728 #. type: verbatim
26729 #: ../src/guestfs-actions.pod:3559
26730 #, no-wrap
26731 msgid ""
26732 " int\n"
26733 " guestfs_is_socket (guestfs_h *g,\n"
26734 "                    const char *path);\n"
26735 "\n"
26736 msgstr ""
26737
26738 #. type: =head2
26739 #: ../src/guestfs-actions.pod:3572
26740 msgid "guestfs_is_symlink"
26741 msgstr ""
26742
26743 #. type: verbatim
26744 #: ../src/guestfs-actions.pod:3574
26745 #, no-wrap
26746 msgid ""
26747 " int\n"
26748 " guestfs_is_symlink (guestfs_h *g,\n"
26749 "                     const char *path);\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:3587
26755 msgid "guestfs_is_zero"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:3589
26760 #, no-wrap
26761 msgid ""
26762 " int\n"
26763 " guestfs_is_zero (guestfs_h *g,\n"
26764 "                  const char *path);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
26770 msgid "(Added in 1.11.8)"
26771 msgstr ""
26772
26773 #. type: =head2
26774 #: ../src/guestfs-actions.pod:3600
26775 msgid "guestfs_is_zero_device"
26776 msgstr ""
26777
26778 #. type: verbatim
26779 #: ../src/guestfs-actions.pod:3602
26780 #, no-wrap
26781 msgid ""
26782 " int\n"
26783 " guestfs_is_zero_device (guestfs_h *g,\n"
26784 "                         const char *device);\n"
26785 "\n"
26786 msgstr ""
26787
26788 #. type: =head2
26789 #: ../src/guestfs-actions.pod:3614
26790 msgid "guestfs_kill_subprocess"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../src/guestfs-actions.pod:3616
26795 #, no-wrap
26796 msgid ""
26797 " int\n"
26798 " guestfs_kill_subprocess (guestfs_h *g);\n"
26799 "\n"
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:3625
26804 msgid "guestfs_launch"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:3627
26809 #, no-wrap
26810 msgid ""
26811 " int\n"
26812 " guestfs_launch (guestfs_h *g);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:3645
26818 msgid "guestfs_lchown"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:3647
26823 #, no-wrap
26824 msgid ""
26825 " int\n"
26826 " guestfs_lchown (guestfs_h *g,\n"
26827 "                 int owner,\n"
26828 "                 int group,\n"
26829 "                 const char *path);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:3653
26835 msgid ""
26836 "Change the file owner to C<owner> and group to C<group>.  This is like "
26837 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26838 "changed, not the target."
26839 msgstr ""
26840
26841 #. type: =head2
26842 #: ../src/guestfs-actions.pod:3665
26843 msgid "guestfs_lgetxattr"
26844 msgstr ""
26845
26846 #. type: verbatim
26847 #: ../src/guestfs-actions.pod:3667
26848 #, no-wrap
26849 msgid ""
26850 " char *\n"
26851 " guestfs_lgetxattr (guestfs_h *g,\n"
26852 "                    const char *path,\n"
26853 "                    const char *name,\n"
26854 "                    size_t *size_r);\n"
26855 "\n"
26856 msgstr ""
26857
26858 #. type: textblock
26859 #: ../src/guestfs-actions.pod:3687
26860 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26861 msgstr ""
26862
26863 #. type: =head2
26864 #: ../src/guestfs-actions.pod:3695
26865 msgid "guestfs_lgetxattrs"
26866 msgstr ""
26867
26868 #. type: verbatim
26869 #: ../src/guestfs-actions.pod:3697
26870 #, no-wrap
26871 msgid ""
26872 " struct guestfs_xattr_list *\n"
26873 " guestfs_lgetxattrs (guestfs_h *g,\n"
26874 "                     const char *path);\n"
26875 "\n"
26876 msgstr ""
26877
26878 #. type: textblock
26879 #: ../src/guestfs-actions.pod:3701
26880 msgid ""
26881 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26882 "then it returns the extended attributes of the link itself."
26883 msgstr ""
26884
26885 #. type: =head2
26886 #: ../src/guestfs-actions.pod:3711
26887 msgid "guestfs_list_9p"
26888 msgstr ""
26889
26890 #. type: verbatim
26891 #: ../src/guestfs-actions.pod:3713
26892 #, no-wrap
26893 msgid ""
26894 " char **\n"
26895 " guestfs_list_9p (guestfs_h *g);\n"
26896 "\n"
26897 msgstr ""
26898
26899 #. type: =head2
26900 #: ../src/guestfs-actions.pod:3725
26901 msgid "guestfs_list_devices"
26902 msgstr ""
26903
26904 #. type: verbatim
26905 #: ../src/guestfs-actions.pod:3727
26906 #, no-wrap
26907 msgid ""
26908 " char **\n"
26909 " guestfs_list_devices (guestfs_h *g);\n"
26910 "\n"
26911 msgstr ""
26912
26913 #. type: =head2
26914 #: ../src/guestfs-actions.pod:3742
26915 msgid "guestfs_list_dm_devices"
26916 msgstr ""
26917
26918 #. type: verbatim
26919 #: ../src/guestfs-actions.pod:3744
26920 #, no-wrap
26921 msgid ""
26922 " char **\n"
26923 " guestfs_list_dm_devices (guestfs_h *g);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:3749
26929 msgid ""
26930 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26931 "previous call to C<guestfs_luks_open>."
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:3752
26936 msgid ""
26937 "Device mapper devices which correspond to logical volumes are I<not> "
26938 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26939 "volumes."
26940 msgstr ""
26941
26942 #. type: textblock
26943 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
26944 msgid "(Added in 1.11.15)"
26945 msgstr ""
26946
26947 #. type: =head2
26948 #: ../src/guestfs-actions.pod:3762
26949 msgid "guestfs_list_filesystems"
26950 msgstr ""
26951
26952 #. type: verbatim
26953 #: ../src/guestfs-actions.pod:3764
26954 #, no-wrap
26955 msgid ""
26956 " char **\n"
26957 " guestfs_list_filesystems (guestfs_h *g);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:3784
26963 msgid ""
26964 "This command runs other libguestfs commands, which might include "
26965 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26966 "soon after launch and only when nothing is mounted."
26967 msgstr ""
26968
26969 #. type: textblock
26970 #: ../src/guestfs-actions.pod:3788
26971 msgid ""
26972 "Not all of the filesystems returned will be mountable.  In particular, swap "
26973 "partitions are returned in the list.  Also this command does not check that "
26974 "each filesystem found is valid and mountable, and some filesystems might be "
26975 "mountable but require special options.  Filesystems may not all belong to a "
26976 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26977 msgstr ""
26978
26979 #. type: textblock
26980 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
26981 msgid "(Added in 1.5.15)"
26982 msgstr ""
26983
26984 #. type: =head2
26985 #: ../src/guestfs-actions.pod:3804
26986 msgid "guestfs_list_partitions"
26987 msgstr "guestfs_list_partitions"
26988
26989 #. type: verbatim
26990 #: ../src/guestfs-actions.pod:3806
26991 #, no-wrap
26992 msgid ""
26993 " char **\n"
26994 " guestfs_list_partitions (guestfs_h *g);\n"
26995 "\n"
26996 msgstr ""
26997 " char **\n"
26998 " guestfs_list_partitions (guestfs_h *g);\n"
26999 "\n"
27000
27001 #. type: textblock
27002 #: ../src/guestfs-actions.pod:3813
27003 msgid ""
27004 "This does not return logical volumes.  For that you will need to call "
27005 "C<guestfs_lvs>."
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:3824
27010 msgid "guestfs_ll"
27011 msgstr "guestfs_ll"
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:3826
27015 #, no-wrap
27016 msgid ""
27017 " char *\n"
27018 " guestfs_ll (guestfs_h *g,\n"
27019 "             const char *directory);\n"
27020 "\n"
27021 msgstr ""
27022 " char *\n"
27023 " guestfs_ll (guestfs_h *g,\n"
27024 "             const char *directory);\n"
27025 "\n"
27026
27027 #. type: =head2
27028 #: ../src/guestfs-actions.pod:3841
27029 msgid "guestfs_ln"
27030 msgstr "guestfs_ln"
27031
27032 #. type: verbatim
27033 #: ../src/guestfs-actions.pod:3843
27034 #, no-wrap
27035 msgid ""
27036 " int\n"
27037 " guestfs_ln (guestfs_h *g,\n"
27038 "             const char *target,\n"
27039 "             const char *linkname);\n"
27040 "\n"
27041 msgstr ""
27042 " int\n"
27043 " guestfs_ln (guestfs_h *g,\n"
27044 "             const char *target,\n"
27045 "             const char *linkname);\n"
27046 "\n"
27047
27048 #. type: =head2
27049 #: ../src/guestfs-actions.pod:3854
27050 msgid "guestfs_ln_f"
27051 msgstr "guestfs_ln_f"
27052
27053 #. type: verbatim
27054 #: ../src/guestfs-actions.pod:3856
27055 #, no-wrap
27056 msgid ""
27057 " int\n"
27058 " guestfs_ln_f (guestfs_h *g,\n"
27059 "               const char *target,\n"
27060 "               const char *linkname);\n"
27061 "\n"
27062 msgstr ""
27063 " int\n"
27064 " guestfs_ln_f (guestfs_h *g,\n"
27065 "               const char *target,\n"
27066 "               const char *linkname);\n"
27067 "\n"
27068
27069 #. type: =head2
27070 #: ../src/guestfs-actions.pod:3868
27071 msgid "guestfs_ln_s"
27072 msgstr "guestfs_ln_s"
27073
27074 #. type: verbatim
27075 #: ../src/guestfs-actions.pod:3870
27076 #, no-wrap
27077 msgid ""
27078 " int\n"
27079 " guestfs_ln_s (guestfs_h *g,\n"
27080 "               const char *target,\n"
27081 "               const char *linkname);\n"
27082 "\n"
27083 msgstr ""
27084 " int\n"
27085 " guestfs_ln_s (guestfs_h *g,\n"
27086 "               const char *target,\n"
27087 "               const char *linkname);\n"
27088 "\n"
27089
27090 #. type: =head2
27091 #: ../src/guestfs-actions.pod:3881
27092 msgid "guestfs_ln_sf"
27093 msgstr "guestfs_ln_sf"
27094
27095 #. type: verbatim
27096 #: ../src/guestfs-actions.pod:3883
27097 #, no-wrap
27098 msgid ""
27099 " int\n"
27100 " guestfs_ln_sf (guestfs_h *g,\n"
27101 "                const char *target,\n"
27102 "                const char *linkname);\n"
27103 "\n"
27104 msgstr ""
27105 " int\n"
27106 " guestfs_ln_sf (guestfs_h *g,\n"
27107 "                const char *target,\n"
27108 "                const char *linkname);\n"
27109 "\n"
27110
27111 #. type: =head2
27112 #: ../src/guestfs-actions.pod:3895
27113 msgid "guestfs_lremovexattr"
27114 msgstr "guestfs_lremovexattr"
27115
27116 #. type: verbatim
27117 #: ../src/guestfs-actions.pod:3897
27118 #, no-wrap
27119 msgid ""
27120 " int\n"
27121 " guestfs_lremovexattr (guestfs_h *g,\n"
27122 "                       const char *xattr,\n"
27123 "                       const char *path);\n"
27124 "\n"
27125 msgstr ""
27126 " int\n"
27127 " guestfs_lremovexattr (guestfs_h *g,\n"
27128 "                       const char *xattr,\n"
27129 "                       const char *path);\n"
27130 "\n"
27131
27132 #. type: textblock
27133 #: ../src/guestfs-actions.pod:3902
27134 msgid ""
27135 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27136 "link, then it removes an extended attribute of the link itself."
27137 msgstr ""
27138
27139 #. type: =head2
27140 #: ../src/guestfs-actions.pod:3910
27141 msgid "guestfs_ls"
27142 msgstr "guestfs_ls"
27143
27144 #. type: verbatim
27145 #: ../src/guestfs-actions.pod:3912
27146 #, no-wrap
27147 msgid ""
27148 " char **\n"
27149 " guestfs_ls (guestfs_h *g,\n"
27150 "             const char *directory);\n"
27151 "\n"
27152 msgstr ""
27153 " char **\n"
27154 " guestfs_ls (guestfs_h *g,\n"
27155 "             const char *directory);\n"
27156 "\n"
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:3920
27160 msgid ""
27161 "This command is mostly useful for interactive sessions.  Programs should "
27162 "probably use C<guestfs_readdir> instead."
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:3929
27167 msgid "guestfs_lsetxattr"
27168 msgstr "guestfs_lsetxattr"
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:3931
27172 #, no-wrap
27173 msgid ""
27174 " int\n"
27175 " guestfs_lsetxattr (guestfs_h *g,\n"
27176 "                    const char *xattr,\n"
27177 "                    const char *val,\n"
27178 "                    int vallen,\n"
27179 "                    const char *path);\n"
27180 "\n"
27181 msgstr ""
27182 " int\n"
27183 " guestfs_lsetxattr (guestfs_h *g,\n"
27184 "                    const char *xattr,\n"
27185 "                    const char *val,\n"
27186 "                    int vallen,\n"
27187 "                    const char *path);\n"
27188 "\n"
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:3938
27192 msgid ""
27193 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27194 "then it sets an extended attribute of the link itself."
27195 msgstr ""
27196
27197 #. type: =head2
27198 #: ../src/guestfs-actions.pod:3946
27199 msgid "guestfs_lstat"
27200 msgstr "guestfs_lstat"
27201
27202 #. type: verbatim
27203 #: ../src/guestfs-actions.pod:3948
27204 #, no-wrap
27205 msgid ""
27206 " struct guestfs_stat *\n"
27207 " guestfs_lstat (guestfs_h *g,\n"
27208 "                const char *path);\n"
27209 "\n"
27210 msgstr ""
27211 " struct guestfs_stat *\n"
27212 " guestfs_lstat (guestfs_h *g,\n"
27213 "                const char *path);\n"
27214 "\n"
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:3954
27218 msgid ""
27219 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27220 "link, then the link is stat-ed, not the file it refers to."
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
27225 msgid ""
27226 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27227 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27228 msgstr ""
27229
27230 #. type: textblock
27231 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
27232 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
27233 msgid "(Added in 0.9.2)"
27234 msgstr "(Додано у 0.9.2)"
27235
27236 #. type: =head2
27237 #: ../src/guestfs-actions.pod:3966
27238 msgid "guestfs_lstatlist"
27239 msgstr "guestfs_lstatlist"
27240
27241 #. type: verbatim
27242 #: ../src/guestfs-actions.pod:3968
27243 #, no-wrap
27244 msgid ""
27245 " struct guestfs_stat_list *\n"
27246 " guestfs_lstatlist (guestfs_h *g,\n"
27247 "                    const char *path,\n"
27248 "                    char *const *names);\n"
27249 "\n"
27250 msgstr ""
27251 " struct guestfs_stat_list *\n"
27252 " guestfs_lstatlist (guestfs_h *g,\n"
27253 "                    const char *path,\n"
27254 "                    char *const *names);\n"
27255 "\n"
27256
27257 #. type: textblock
27258 #: ../src/guestfs-actions.pod:3973
27259 msgid ""
27260 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27261 "files, where all files are in the directory C<path>.  C<names> is the list "
27262 "of files from this directory."
27263 msgstr ""
27264
27265 #. type: textblock
27266 #: ../src/guestfs-actions.pod:3982
27267 msgid ""
27268 "This call is intended for programs that want to efficiently list a directory "
27269 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27270 "for a similarly efficient call for getting extended attributes.  Very long "
27271 "directory listings might cause the protocol message size to be exceeded, "
27272 "causing this call to fail.  The caller must split up such requests into "
27273 "smaller groups of names."
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../src/guestfs-actions.pod:3990
27278 msgid ""
27279 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27280 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27281 msgstr ""
27282
27283 #. type: =head2
27284 #: ../src/guestfs-actions.pod:3996
27285 msgid "guestfs_luks_add_key"
27286 msgstr "guestfs_luks_add_key"
27287
27288 #. type: verbatim
27289 #: ../src/guestfs-actions.pod:3998
27290 #, no-wrap
27291 msgid ""
27292 " int\n"
27293 " guestfs_luks_add_key (guestfs_h *g,\n"
27294 "                       const char *device,\n"
27295 "                       const char *key,\n"
27296 "                       const char *newkey,\n"
27297 "                       int keyslot);\n"
27298 "\n"
27299 msgstr ""
27300 " int\n"
27301 " guestfs_luks_add_key (guestfs_h *g,\n"
27302 "                       const char *device,\n"
27303 "                       const char *key,\n"
27304 "                       const char *newkey,\n"
27305 "                       int keyslot);\n"
27306 "\n"
27307
27308 #. type: textblock
27309 #: ../src/guestfs-actions.pod:4010
27310 msgid ""
27311 "Note that if C<keyslot> already contains a key, then this command will "
27312 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27313 msgstr ""
27314
27315 #. type: textblock
27316 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
27317 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
27318 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
27319 msgid ""
27320 "This function takes a key or passphrase parameter which could contain "
27321 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27322 "information."
27323 msgstr ""
27324
27325 #. type: textblock
27326 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
27327 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
27328 msgid "(Added in 1.5.2)"
27329 msgstr "(Додано у 1.5.2)"
27330
27331 #. type: =head2
27332 #: ../src/guestfs-actions.pod:4022
27333 msgid "guestfs_luks_close"
27334 msgstr "guestfs_luks_close"
27335
27336 #. type: verbatim
27337 #: ../src/guestfs-actions.pod:4024
27338 #, no-wrap
27339 msgid ""
27340 " int\n"
27341 " guestfs_luks_close (guestfs_h *g,\n"
27342 "                     const char *device);\n"
27343 "\n"
27344 msgstr ""
27345 " int\n"
27346 " guestfs_luks_close (guestfs_h *g,\n"
27347 "                     const char *device);\n"
27348 "\n"
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:4028
27352 msgid ""
27353 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27354 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27355 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27356 "underlying block device."
27357 msgstr ""
27358
27359 #. type: textblock
27360 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
27361 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
27362 #: ../src/guestfs-actions.pod:4255
27363 msgid "(Added in 1.5.1)"
27364 msgstr "(Додано у 1.5.1)"
27365
27366 #. type: =head2
27367 #: ../src/guestfs-actions.pod:4038
27368 msgid "guestfs_luks_format"
27369 msgstr "guestfs_luks_format"
27370
27371 #. type: verbatim
27372 #: ../src/guestfs-actions.pod:4040
27373 #, no-wrap
27374 msgid ""
27375 " int\n"
27376 " guestfs_luks_format (guestfs_h *g,\n"
27377 "                      const char *device,\n"
27378 "                      const char *key,\n"
27379 "                      int keyslot);\n"
27380 "\n"
27381 msgstr ""
27382 " int\n"
27383 " guestfs_luks_format (guestfs_h *g,\n"
27384 "                      const char *device,\n"
27385 "                      const char *key,\n"
27386 "                      int keyslot);\n"
27387 "\n"
27388
27389 #. type: =head2
27390 #: ../src/guestfs-actions.pod:4062
27391 msgid "guestfs_luks_format_cipher"
27392 msgstr "guestfs_luks_format_cipher"
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:4064
27396 #, no-wrap
27397 msgid ""
27398 " int\n"
27399 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27400 "                             const char *device,\n"
27401 "                             const char *key,\n"
27402 "                             int keyslot,\n"
27403 "                             const char *cipher);\n"
27404 "\n"
27405 msgstr ""
27406 " int\n"
27407 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27408 "                             const char *device,\n"
27409 "                             const char *key,\n"
27410 "                             int keyslot,\n"
27411 "                             const char *cipher);\n"
27412 "\n"
27413
27414 #. type: textblock
27415 #: ../src/guestfs-actions.pod:4071
27416 msgid ""
27417 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27418 "set the C<cipher> used."
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:4085
27423 msgid "guestfs_luks_kill_slot"
27424 msgstr "guestfs_luks_kill_slot"
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:4087
27428 #, no-wrap
27429 msgid ""
27430 " int\n"
27431 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27432 "                         const char *device,\n"
27433 "                         const char *key,\n"
27434 "                         int keyslot);\n"
27435 "\n"
27436 msgstr ""
27437 " int\n"
27438 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27439 "                         const char *device,\n"
27440 "                         const char *key,\n"
27441 "                         int keyslot);\n"
27442 "\n"
27443
27444 #. type: =head2
27445 #: ../src/guestfs-actions.pod:4105
27446 msgid "guestfs_luks_open"
27447 msgstr "guestfs_luks_open"
27448
27449 #. type: verbatim
27450 #: ../src/guestfs-actions.pod:4107
27451 #, no-wrap
27452 msgid ""
27453 " int\n"
27454 " guestfs_luks_open (guestfs_h *g,\n"
27455 "                    const char *device,\n"
27456 "                    const char *key,\n"
27457 "                    const char *mapname);\n"
27458 "\n"
27459 msgstr ""
27460 " int\n"
27461 " guestfs_luks_open (guestfs_h *g,\n"
27462 "                    const char *device,\n"
27463 "                    const char *key,\n"
27464 "                    const char *mapname);\n"
27465 "\n"
27466
27467 #. type: textblock
27468 #: ../src/guestfs-actions.pod:4125
27469 msgid ""
27470 "If this block device contains LVM volume groups, then calling "
27471 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27472 "visible."
27473 msgstr ""
27474
27475 #. type: textblock
27476 #: ../src/guestfs-actions.pod:4129
27477 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27478 msgstr ""
27479
27480 #. type: =head2
27481 #: ../src/guestfs-actions.pod:4140
27482 msgid "guestfs_luks_open_ro"
27483 msgstr "guestfs_luks_open_ro"
27484
27485 #. type: verbatim
27486 #: ../src/guestfs-actions.pod:4142
27487 #, no-wrap
27488 msgid ""
27489 " int\n"
27490 " guestfs_luks_open_ro (guestfs_h *g,\n"
27491 "                       const char *device,\n"
27492 "                       const char *key,\n"
27493 "                       const char *mapname);\n"
27494 "\n"
27495 msgstr ""
27496 " int\n"
27497 " guestfs_luks_open_ro (guestfs_h *g,\n"
27498 "                       const char *device,\n"
27499 "                       const char *key,\n"
27500 "                       const char *mapname);\n"
27501 "\n"
27502
27503 #. type: textblock
27504 #: ../src/guestfs-actions.pod:4148
27505 msgid ""
27506 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27507 "created."
27508 msgstr ""
27509
27510 #. type: =head2
27511 #: ../src/guestfs-actions.pod:4159
27512 msgid "guestfs_lvcreate"
27513 msgstr "guestfs_lvcreate"
27514
27515 #. type: verbatim
27516 #: ../src/guestfs-actions.pod:4161
27517 #, no-wrap
27518 msgid ""
27519 " int\n"
27520 " guestfs_lvcreate (guestfs_h *g,\n"
27521 "                   const char *logvol,\n"
27522 "                   const char *volgroup,\n"
27523 "                   int mbytes);\n"
27524 "\n"
27525 msgstr ""
27526 " int\n"
27527 " guestfs_lvcreate (guestfs_h *g,\n"
27528 "                   const char *logvol,\n"
27529 "                   const char *volgroup,\n"
27530 "                   int mbytes);\n"
27531 "\n"
27532
27533 #. type: =head2
27534 #: ../src/guestfs-actions.pod:4174
27535 msgid "guestfs_lvm_canonical_lv_name"
27536 msgstr "guestfs_lvm_canonical_lv_name"
27537
27538 #. type: verbatim
27539 #: ../src/guestfs-actions.pod:4176
27540 #, no-wrap
27541 msgid ""
27542 " char *\n"
27543 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27544 "                                const char *lvname);\n"
27545 "\n"
27546 msgstr ""
27547 " char *\n"
27548 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27549 "                                const char *lvname);\n"
27550 "\n"
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:4187
27554 msgid "See also C<guestfs_is_lv>."
27555 msgstr ""
27556
27557 #. type: textblock
27558 #: ../src/guestfs-actions.pod:4192
27559 msgid "(Added in 1.5.24)"
27560 msgstr "(Додано у 1.5.24)"
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:4194
27564 msgid "guestfs_lvm_clear_filter"
27565 msgstr "guestfs_lvm_clear_filter"
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:4196
27569 #, no-wrap
27570 msgid ""
27571 " int\n"
27572 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27573 "\n"
27574 msgstr ""
27575 " int\n"
27576 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27577 "\n"
27578
27579 #. type: textblock
27580 #: ../src/guestfs-actions.pod:4199
27581 msgid ""
27582 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27583 "see every block device."
27584 msgstr ""
27585
27586 #. type: =head2
27587 #: ../src/guestfs-actions.pod:4209
27588 msgid "guestfs_lvm_remove_all"
27589 msgstr "guestfs_lvm_remove_all"
27590
27591 #. type: verbatim
27592 #: ../src/guestfs-actions.pod:4211
27593 #, no-wrap
27594 msgid ""
27595 " int\n"
27596 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27597 "\n"
27598 msgstr ""
27599 " int\n"
27600 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27601 "\n"
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:4224
27605 msgid "guestfs_lvm_set_filter"
27606 msgstr "guestfs_lvm_set_filter"
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:4226
27610 #, no-wrap
27611 msgid ""
27612 " int\n"
27613 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27614 "                         char *const *devices);\n"
27615 "\n"
27616 msgstr ""
27617 " int\n"
27618 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27619 "                         char *const *devices);\n"
27620 "\n"
27621
27622 #. type: =head2
27623 #: ../src/guestfs-actions.pod:4257
27624 msgid "guestfs_lvremove"
27625 msgstr "guestfs_lvremove"
27626
27627 #. type: verbatim
27628 #: ../src/guestfs-actions.pod:4259
27629 #, no-wrap
27630 msgid ""
27631 " int\n"
27632 " guestfs_lvremove (guestfs_h *g,\n"
27633 "                   const char *device);\n"
27634 "\n"
27635 msgstr ""
27636 " int\n"
27637 " guestfs_lvremove (guestfs_h *g,\n"
27638 "                   const char *device);\n"
27639 "\n"
27640
27641 #. type: textblock
27642 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
27643 #: ../src/guestfs-actions.pod:7508
27644 msgid "(Added in 1.0.13)"
27645 msgstr "(Додано у 1.0.13)"
27646
27647 #. type: =head2
27648 #: ../src/guestfs-actions.pod:4273
27649 msgid "guestfs_lvrename"
27650 msgstr "guestfs_lvrename"
27651
27652 #. type: verbatim
27653 #: ../src/guestfs-actions.pod:4275
27654 #, no-wrap
27655 msgid ""
27656 " int\n"
27657 " guestfs_lvrename (guestfs_h *g,\n"
27658 "                   const char *logvol,\n"
27659 "                   const char *newlogvol);\n"
27660 "\n"
27661 msgstr ""
27662 " int\n"
27663 " guestfs_lvrename (guestfs_h *g,\n"
27664 "                   const char *logvol,\n"
27665 "                   const char *newlogvol);\n"
27666 "\n"
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
27670 msgid "(Added in 1.0.83)"
27671 msgstr "(Додано у 1.0.83)"
27672
27673 #. type: =head2
27674 #: ../src/guestfs-actions.pod:4286
27675 msgid "guestfs_lvresize"
27676 msgstr "guestfs_lvresize"
27677
27678 #. type: verbatim
27679 #: ../src/guestfs-actions.pod:4288
27680 #, no-wrap
27681 msgid ""
27682 " int\n"
27683 " guestfs_lvresize (guestfs_h *g,\n"
27684 "                   const char *device,\n"
27685 "                   int mbytes);\n"
27686 "\n"
27687 msgstr ""
27688 " int\n"
27689 " guestfs_lvresize (guestfs_h *g,\n"
27690 "                   const char *device,\n"
27691 "                   int mbytes);\n"
27692 "\n"
27693
27694 #. type: =head2
27695 #: ../src/guestfs-actions.pod:4301
27696 msgid "guestfs_lvresize_free"
27697 msgstr "guestfs_lvresize_free"
27698
27699 #. type: verbatim
27700 #: ../src/guestfs-actions.pod:4303
27701 #, no-wrap
27702 msgid ""
27703 " int\n"
27704 " guestfs_lvresize_free (guestfs_h *g,\n"
27705 "                        const char *lv,\n"
27706 "                        int percent);\n"
27707 "\n"
27708 msgstr ""
27709 " int\n"
27710 " guestfs_lvresize_free (guestfs_h *g,\n"
27711 "                        const char *lv,\n"
27712 "                        int percent);\n"
27713 "\n"
27714
27715 #. type: textblock
27716 #: ../src/guestfs-actions.pod:4316
27717 msgid "(Added in 1.3.3)"
27718 msgstr "(Додано у 1.3.3)"
27719
27720 #. type: =head2
27721 #: ../src/guestfs-actions.pod:4318
27722 msgid "guestfs_lvs"
27723 msgstr "guestfs_lvs"
27724
27725 #. type: verbatim
27726 #: ../src/guestfs-actions.pod:4320
27727 #, no-wrap
27728 msgid ""
27729 " char **\n"
27730 " guestfs_lvs (guestfs_h *g);\n"
27731 "\n"
27732 msgstr ""
27733 " char **\n"
27734 " guestfs_lvs (guestfs_h *g);\n"
27735 "\n"
27736
27737 #. type: textblock
27738 #: ../src/guestfs-actions.pod:4329
27739 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27740 msgstr ""
27741
27742 #. type: =head2
27743 #: ../src/guestfs-actions.pod:4337
27744 msgid "guestfs_lvs_full"
27745 msgstr "guestfs_lvs_full"
27746
27747 #. type: verbatim
27748 #: ../src/guestfs-actions.pod:4339
27749 #, no-wrap
27750 msgid ""
27751 " struct guestfs_lvm_lv_list *\n"
27752 " guestfs_lvs_full (guestfs_h *g);\n"
27753 "\n"
27754 msgstr ""
27755 " struct guestfs_lvm_lv_list *\n"
27756 " guestfs_lvs_full (guestfs_h *g);\n"
27757 "\n"
27758
27759 #. type: textblock
27760 #: ../src/guestfs-actions.pod:4345
27761 msgid ""
27762 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27763 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27764 msgstr ""
27765
27766 #. type: =head2
27767 #: ../src/guestfs-actions.pod:4351
27768 msgid "guestfs_lvuuid"
27769 msgstr "guestfs_lvuuid"
27770
27771 #. type: verbatim
27772 #: ../src/guestfs-actions.pod:4353
27773 #, no-wrap
27774 msgid ""
27775 " char *\n"
27776 " guestfs_lvuuid (guestfs_h *g,\n"
27777 "                 const char *device);\n"
27778 "\n"
27779 msgstr ""
27780 " char *\n"
27781 " guestfs_lvuuid (guestfs_h *g,\n"
27782 "                 const char *device);\n"
27783 "\n"
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:4364
27787 msgid "guestfs_lxattrlist"
27788 msgstr "guestfs_lxattrlist"
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:4366
27792 #, no-wrap
27793 msgid ""
27794 " struct guestfs_xattr_list *\n"
27795 " guestfs_lxattrlist (guestfs_h *g,\n"
27796 "                     const char *path,\n"
27797 "                     char *const *names);\n"
27798 "\n"
27799 msgstr ""
27800 " struct guestfs_xattr_list *\n"
27801 " guestfs_lxattrlist (guestfs_h *g,\n"
27802 "                     const char *path,\n"
27803 "                     char *const *names);\n"
27804 "\n"
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:4385
27808 msgid ""
27809 "This call is intended for programs that want to efficiently list a directory "
27810 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27811 "a similarly efficient call for getting standard stats.  Very long directory "
27812 "listings might cause the protocol message size to be exceeded, causing this "
27813 "call to fail.  The caller must split up such requests into smaller groups of "
27814 "names."
27815 msgstr ""
27816
27817 #. type: =head2
27818 #: ../src/guestfs-actions.pod:4399
27819 msgid "guestfs_mkdir"
27820 msgstr "guestfs_mkdir"
27821
27822 #. type: verbatim
27823 #: ../src/guestfs-actions.pod:4401
27824 #, no-wrap
27825 msgid ""
27826 " int\n"
27827 " guestfs_mkdir (guestfs_h *g,\n"
27828 "                const char *path);\n"
27829 "\n"
27830 msgstr ""
27831 " int\n"
27832 " guestfs_mkdir (guestfs_h *g,\n"
27833 "                const char *path);\n"
27834 "\n"
27835
27836 #. type: =head2
27837 #: ../src/guestfs-actions.pod:4411
27838 msgid "guestfs_mkdir_mode"
27839 msgstr "guestfs_mkdir_mode"
27840
27841 #. type: verbatim
27842 #: ../src/guestfs-actions.pod:4413
27843 #, no-wrap
27844 msgid ""
27845 " int\n"
27846 " guestfs_mkdir_mode (guestfs_h *g,\n"
27847 "                     const char *path,\n"
27848 "                     int mode);\n"
27849 "\n"
27850 msgstr ""
27851 " int\n"
27852 " guestfs_mkdir_mode (guestfs_h *g,\n"
27853 "                     const char *path,\n"
27854 "                     int mode);\n"
27855 "\n"
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:4425
27859 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27860 msgstr ""
27861
27862 #. type: =head2
27863 #: ../src/guestfs-actions.pod:4431
27864 msgid "guestfs_mkdir_p"
27865 msgstr "guestfs_mkdir_p"
27866
27867 #. type: verbatim
27868 #: ../src/guestfs-actions.pod:4433
27869 #, no-wrap
27870 msgid ""
27871 " int\n"
27872 " guestfs_mkdir_p (guestfs_h *g,\n"
27873 "                  const char *path);\n"
27874 "\n"
27875 msgstr ""
27876 " int\n"
27877 " guestfs_mkdir_p (guestfs_h *g,\n"
27878 "                  const char *path);\n"
27879 "\n"
27880
27881 #. type: =head2
27882 #: ../src/guestfs-actions.pod:4444
27883 msgid "guestfs_mkdtemp"
27884 msgstr "guestfs_mkdtemp"
27885
27886 #. type: verbatim
27887 #: ../src/guestfs-actions.pod:4446
27888 #, no-wrap
27889 msgid ""
27890 " char *\n"
27891 " guestfs_mkdtemp (guestfs_h *g,\n"
27892 "                  const char *template);\n"
27893 "\n"
27894 msgstr ""
27895 " char *\n"
27896 " guestfs_mkdtemp (guestfs_h *g,\n"
27897 "                  const char *template);\n"
27898 "\n"
27899
27900 #. type: =head2
27901 #: ../src/guestfs-actions.pod:4474
27902 msgid "guestfs_mke2fs_J"
27903 msgstr "guestfs_mke2fs_J"
27904
27905 #. type: verbatim
27906 #: ../src/guestfs-actions.pod:4476
27907 #, no-wrap
27908 msgid ""
27909 " int\n"
27910 " guestfs_mke2fs_J (guestfs_h *g,\n"
27911 "                   const char *fstype,\n"
27912 "                   int blocksize,\n"
27913 "                   const char *device,\n"
27914 "                   const char *journal);\n"
27915 "\n"
27916 msgstr ""
27917 " int\n"
27918 " guestfs_mke2fs_J (guestfs_h *g,\n"
27919 "                   const char *fstype,\n"
27920 "                   int blocksize,\n"
27921 "                   const char *device,\n"
27922 "                   const char *journal);\n"
27923 "\n"
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:4489
27927 msgid "See also C<guestfs_mke2journal>."
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
27932 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
27933 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
27934 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
27935 msgid "(Added in 1.0.68)"
27936 msgstr "(Додано у 1.0.68)"
27937
27938 #. type: =head2
27939 #: ../src/guestfs-actions.pod:4495
27940 msgid "guestfs_mke2fs_JL"
27941 msgstr "guestfs_mke2fs_JL"
27942
27943 #. type: verbatim
27944 #: ../src/guestfs-actions.pod:4497
27945 #, no-wrap
27946 msgid ""
27947 " int\n"
27948 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27949 "                    const char *fstype,\n"
27950 "                    int blocksize,\n"
27951 "                    const char *device,\n"
27952 "                    const char *label);\n"
27953 "\n"
27954 msgstr ""
27955 " int\n"
27956 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27957 "                    const char *fstype,\n"
27958 "                    int blocksize,\n"
27959 "                    const char *device,\n"
27960 "                    const char *label);\n"
27961 "\n"
27962
27963 #. type: textblock
27964 #: ../src/guestfs-actions.pod:4507
27965 msgid "See also C<guestfs_mke2journal_L>."
27966 msgstr ""
27967
27968 #. type: =head2
27969 #: ../src/guestfs-actions.pod:4513
27970 msgid "guestfs_mke2fs_JU"
27971 msgstr "guestfs_mke2fs_JU"
27972
27973 #. type: verbatim
27974 #: ../src/guestfs-actions.pod:4515
27975 #, no-wrap
27976 msgid ""
27977 " int\n"
27978 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27979 "                    const char *fstype,\n"
27980 "                    int blocksize,\n"
27981 "                    const char *device,\n"
27982 "                    const char *uuid);\n"
27983 "\n"
27984 msgstr ""
27985 " int\n"
27986 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27987 "                    const char *fstype,\n"
27988 "                    int blocksize,\n"
27989 "                    const char *device,\n"
27990 "                    const char *uuid);\n"
27991 "\n"
27992
27993 #. type: textblock
27994 #: ../src/guestfs-actions.pod:4525
27995 msgid "See also C<guestfs_mke2journal_U>."
27996 msgstr ""
27997
27998 #. type: =head2
27999 #: ../src/guestfs-actions.pod:4531
28000 msgid "guestfs_mke2journal"
28001 msgstr "guestfs_mke2journal"
28002
28003 #. type: verbatim
28004 #: ../src/guestfs-actions.pod:4533
28005 #, no-wrap
28006 msgid ""
28007 " int\n"
28008 " guestfs_mke2journal (guestfs_h *g,\n"
28009 "                      int blocksize,\n"
28010 "                      const char *device);\n"
28011 "\n"
28012 msgstr ""
28013 " int\n"
28014 " guestfs_mke2journal (guestfs_h *g,\n"
28015 "                      int blocksize,\n"
28016 "                      const char *device);\n"
28017 "\n"
28018
28019 #. type: =head2
28020 #: ../src/guestfs-actions.pod:4547
28021 msgid "guestfs_mke2journal_L"
28022 msgstr "guestfs_mke2journal_L"
28023
28024 #. type: verbatim
28025 #: ../src/guestfs-actions.pod:4549
28026 #, no-wrap
28027 msgid ""
28028 " int\n"
28029 " guestfs_mke2journal_L (guestfs_h *g,\n"
28030 "                        int blocksize,\n"
28031 "                        const char *label,\n"
28032 "                        const char *device);\n"
28033 "\n"
28034 msgstr ""
28035 " int\n"
28036 " guestfs_mke2journal_L (guestfs_h *g,\n"
28037 "                        int blocksize,\n"
28038 "                        const char *label,\n"
28039 "                        const char *device);\n"
28040 "\n"
28041
28042 #. type: =head2
28043 #: ../src/guestfs-actions.pod:4561
28044 msgid "guestfs_mke2journal_U"
28045 msgstr "guestfs_mke2journal_U"
28046
28047 #. type: verbatim
28048 #: ../src/guestfs-actions.pod:4563
28049 #, no-wrap
28050 msgid ""
28051 " int\n"
28052 " guestfs_mke2journal_U (guestfs_h *g,\n"
28053 "                        int blocksize,\n"
28054 "                        const char *uuid,\n"
28055 "                        const char *device);\n"
28056 "\n"
28057 msgstr ""
28058 " int\n"
28059 " guestfs_mke2journal_U (guestfs_h *g,\n"
28060 "                        int blocksize,\n"
28061 "                        const char *uuid,\n"
28062 "                        const char *device);\n"
28063 "\n"
28064
28065 #. type: =head2
28066 #: ../src/guestfs-actions.pod:4575
28067 msgid "guestfs_mkfifo"
28068 msgstr "guestfs_mkfifo"
28069
28070 #. type: verbatim
28071 #: ../src/guestfs-actions.pod:4577
28072 #, no-wrap
28073 msgid ""
28074 " int\n"
28075 " guestfs_mkfifo (guestfs_h *g,\n"
28076 "                 int mode,\n"
28077 "                 const char *path);\n"
28078 "\n"
28079 msgstr ""
28080 " int\n"
28081 " guestfs_mkfifo (guestfs_h *g,\n"
28082 "                 int mode,\n"
28083 "                 const char *path);\n"
28084 "\n"
28085
28086 #. type: textblock
28087 #: ../src/guestfs-actions.pod:4582
28088 msgid ""
28089 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28090 "is just a convenient wrapper around C<guestfs_mknod>."
28091 msgstr ""
28092
28093 #. type: =head2
28094 #: ../src/guestfs-actions.pod:4592
28095 msgid "guestfs_mkfs"
28096 msgstr "guestfs_mkfs"
28097
28098 #. type: verbatim
28099 #: ../src/guestfs-actions.pod:4594
28100 #, no-wrap
28101 msgid ""
28102 " int\n"
28103 " guestfs_mkfs (guestfs_h *g,\n"
28104 "               const char *fstype,\n"
28105 "               const char *device);\n"
28106 "\n"
28107 msgstr ""
28108 " int\n"
28109 " guestfs_mkfs (guestfs_h *g,\n"
28110 "               const char *fstype,\n"
28111 "               const char *device);\n"
28112 "\n"
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:4607
28116 msgid "guestfs_mkfs_b"
28117 msgstr "guestfs_mkfs_b"
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:4609
28121 #, no-wrap
28122 msgid ""
28123 " int\n"
28124 " guestfs_mkfs_b (guestfs_h *g,\n"
28125 "                 const char *fstype,\n"
28126 "                 int blocksize,\n"
28127 "                 const char *device);\n"
28128 "\n"
28129 msgstr ""
28130 " int\n"
28131 " guestfs_mkfs_b (guestfs_h *g,\n"
28132 "                 const char *fstype,\n"
28133 "                 int blocksize,\n"
28134 "                 const char *device);\n"
28135 "\n"
28136
28137 #. type: textblock
28138 #: ../src/guestfs-actions.pod:4615
28139 msgid ""
28140 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28141 "call instead."
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:4622
28146 msgid ""
28147 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28148 "block size of the resulting filesystem.  Supported block sizes depend on the "
28149 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28150 msgstr ""
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:4634
28154 msgid "guestfs_mkfs_opts"
28155 msgstr "guestfs_mkfs_opts"
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:4636
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_mkfs_opts (guestfs_h *g,\n"
28163 "                    const char *fstype,\n"
28164 "                    const char *device,\n"
28165 "                    ...);\n"
28166 "\n"
28167 msgstr ""
28168 " int\n"
28169 " guestfs_mkfs_opts (guestfs_h *g,\n"
28170 "                    const char *fstype,\n"
28171 "                    const char *device,\n"
28172 "                    ...);\n"
28173 "\n"
28174
28175 #. type: verbatim
28176 #: ../src/guestfs-actions.pod:4647
28177 #, no-wrap
28178 msgid ""
28179 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28180 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28181 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28182 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: textblock
28187 #: ../src/guestfs-actions.pod:4695
28188 msgid "(Added in 1.7.19)"
28189 msgstr "(Додано у 1.7.19)"
28190
28191 #. type: =head2
28192 #: ../src/guestfs-actions.pod:4697
28193 msgid "guestfs_mkfs_opts_va"
28194 msgstr "guestfs_mkfs_opts_va"
28195
28196 #. type: verbatim
28197 #: ../src/guestfs-actions.pod:4699
28198 #, no-wrap
28199 msgid ""
28200 " int\n"
28201 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28202 "                       const char *fstype,\n"
28203 "                       const char *device,\n"
28204 "                       va_list args);\n"
28205 "\n"
28206 msgstr ""
28207 " int\n"
28208 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28209 "                       const char *fstype,\n"
28210 "                       const char *device,\n"
28211 "                       va_list args);\n"
28212 "\n"
28213
28214 #. type: textblock
28215 #: ../src/guestfs-actions.pod:4705
28216 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../src/guestfs-actions.pod:4709
28221 msgid "guestfs_mkfs_opts_argv"
28222 msgstr "guestfs_mkfs_opts_argv"
28223
28224 #. type: verbatim
28225 #: ../src/guestfs-actions.pod:4711
28226 #, no-wrap
28227 msgid ""
28228 " int\n"
28229 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28230 "                         const char *fstype,\n"
28231 "                         const char *device,\n"
28232 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28233 "\n"
28234 msgstr ""
28235 " int\n"
28236 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28237 "                         const char *fstype,\n"
28238 "                         const char *device,\n"
28239 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28240 "\n"
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:4717
28244 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28245 msgstr ""
28246
28247 #. type: =head2
28248 #: ../src/guestfs-actions.pod:4721
28249 msgid "guestfs_mkmountpoint"
28250 msgstr "guestfs_mkmountpoint"
28251
28252 #. type: verbatim
28253 #: ../src/guestfs-actions.pod:4723
28254 #, no-wrap
28255 msgid ""
28256 " int\n"
28257 " guestfs_mkmountpoint (guestfs_h *g,\n"
28258 "                       const char *exemptpath);\n"
28259 "\n"
28260 msgstr ""
28261 " int\n"
28262 " guestfs_mkmountpoint (guestfs_h *g,\n"
28263 "                       const char *exemptpath);\n"
28264 "\n"
28265
28266 #. type: textblock
28267 #: ../src/guestfs-actions.pod:4727
28268 msgid ""
28269 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28270 "that can be used to create extra mountpoints before mounting the first "
28271 "filesystem."
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:4751
28276 msgid ""
28277 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28278 "may get unexpected errors if you try to mix these calls.  It is safest to "
28279 "manually unmount filesystems and remove mountpoints after use."
28280 msgstr ""
28281
28282 #. type: textblock
28283 #: ../src/guestfs-actions.pod:4755
28284 msgid ""
28285 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28286 "first, so for this to work for manual mountpoints, you must ensure that the "
28287 "innermost mountpoints have the longest pathnames, as in the example code "
28288 "above."
28289 msgstr ""
28290
28291 #. type: textblock
28292 #: ../src/guestfs-actions.pod:4762
28293 msgid ""
28294 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28295 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28296 "can also trigger these issues."
28297 msgstr ""
28298
28299 #. type: textblock
28300 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
28301 #: ../src/guestfs-actions.pod:6094
28302 msgid "(Added in 1.0.62)"
28303 msgstr "(Додано у 1.0.62)"
28304
28305 #. type: =head2
28306 #: ../src/guestfs-actions.pod:4770
28307 msgid "guestfs_mknod"
28308 msgstr ""
28309
28310 #. type: verbatim
28311 #: ../src/guestfs-actions.pod:4772
28312 #, no-wrap
28313 msgid ""
28314 " int\n"
28315 " guestfs_mknod (guestfs_h *g,\n"
28316 "                int mode,\n"
28317 "                int devmajor,\n"
28318 "                int devminor,\n"
28319 "                const char *path);\n"
28320 "\n"
28321 msgstr ""
28322
28323 #. type: textblock
28324 #: ../src/guestfs-actions.pod:4787
28325 msgid ""
28326 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28327 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28328 "regular file).  These constants are available in the standard Linux header "
28329 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28330 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28331 "the appropriate constant for you."
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:4801
28336 msgid "guestfs_mknod_b"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:4803
28341 #, no-wrap
28342 msgid ""
28343 " int\n"
28344 " guestfs_mknod_b (guestfs_h *g,\n"
28345 "                  int mode,\n"
28346 "                  int devmajor,\n"
28347 "                  int devminor,\n"
28348 "                  const char *path);\n"
28349 "\n"
28350 msgstr ""
28351
28352 #. type: textblock
28353 #: ../src/guestfs-actions.pod:4810
28354 msgid ""
28355 "This call creates a block device node called C<path> with mode C<mode> and "
28356 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28357 "wrapper around C<guestfs_mknod>."
28358 msgstr ""
28359
28360 #. type: =head2
28361 #: ../src/guestfs-actions.pod:4820
28362 msgid "guestfs_mknod_c"
28363 msgstr ""
28364
28365 #. type: verbatim
28366 #: ../src/guestfs-actions.pod:4822
28367 #, no-wrap
28368 msgid ""
28369 " int\n"
28370 " guestfs_mknod_c (guestfs_h *g,\n"
28371 "                  int mode,\n"
28372 "                  int devmajor,\n"
28373 "                  int devminor,\n"
28374 "                  const char *path);\n"
28375 "\n"
28376 msgstr ""
28377
28378 #. type: textblock
28379 #: ../src/guestfs-actions.pod:4829
28380 msgid ""
28381 "This call creates a char device node called C<path> with mode C<mode> and "
28382 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28383 "wrapper around C<guestfs_mknod>."
28384 msgstr ""
28385
28386 #. type: =head2
28387 #: ../src/guestfs-actions.pod:4839
28388 msgid "guestfs_mkswap"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../src/guestfs-actions.pod:4841
28393 #, no-wrap
28394 msgid ""
28395 " int\n"
28396 " guestfs_mkswap (guestfs_h *g,\n"
28397 "                 const char *device);\n"
28398 "\n"
28399 msgstr ""
28400
28401 #. type: =head2
28402 #: ../src/guestfs-actions.pod:4851
28403 msgid "guestfs_mkswap_L"
28404 msgstr ""
28405
28406 #. type: verbatim
28407 #: ../src/guestfs-actions.pod:4853
28408 #, no-wrap
28409 msgid ""
28410 " int\n"
28411 " guestfs_mkswap_L (guestfs_h *g,\n"
28412 "                   const char *label,\n"
28413 "                   const char *device);\n"
28414 "\n"
28415 msgstr ""
28416
28417 #. type: =head2
28418 #: ../src/guestfs-actions.pod:4868
28419 msgid "guestfs_mkswap_U"
28420 msgstr ""
28421
28422 #. type: verbatim
28423 #: ../src/guestfs-actions.pod:4870
28424 #, no-wrap
28425 msgid ""
28426 " int\n"
28427 " guestfs_mkswap_U (guestfs_h *g,\n"
28428 "                   const char *uuid,\n"
28429 "                   const char *device);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:4881
28435 msgid "guestfs_mkswap_file"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:4883
28440 #, no-wrap
28441 msgid ""
28442 " int\n"
28443 " guestfs_mkswap_file (guestfs_h *g,\n"
28444 "                      const char *path);\n"
28445 "\n"
28446 msgstr ""
28447
28448 #. type: textblock
28449 #: ../src/guestfs-actions.pod:4889
28450 msgid ""
28451 "This command just writes a swap file signature to an existing file.  To "
28452 "create the file itself, use something like C<guestfs_fallocate>."
28453 msgstr ""
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:4896
28457 msgid "guestfs_modprobe"
28458 msgstr ""
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:4898
28462 #, no-wrap
28463 msgid ""
28464 " int\n"
28465 " guestfs_modprobe (guestfs_h *g,\n"
28466 "                   const char *modulename);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:4911
28472 msgid "guestfs_mount"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:4913
28477 #, no-wrap
28478 msgid ""
28479 " int\n"
28480 " guestfs_mount (guestfs_h *g,\n"
28481 "                const char *device,\n"
28482 "                const char *mountpoint);\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: textblock
28487 #: ../src/guestfs-actions.pod:4918
28488 msgid ""
28489 "I<This function is deprecated.> In new code, use the L</"
28490 "guestfs_mount_options> call instead."
28491 msgstr ""
28492
28493 #. type: textblock
28494 #: ../src/guestfs-actions.pod:4939
28495 msgid ""
28496 "B<Important note:> When you use this call, the filesystem options C<sync> "
28497 "and C<noatime> are set implicitly.  This was originally done because we "
28498 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28499 "very large negative performance impact and negligible effect on "
28500 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28501 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28502 "(use an empty string for the first parameter if you don't want any options)."
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:4953
28507 msgid "guestfs_mount_9p"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:4955
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_mount_9p (guestfs_h *g,\n"
28516 "                   const char *mounttag,\n"
28517 "                   const char *mountpoint,\n"
28518 "                   ...);\n"
28519 "\n"
28520 msgstr ""
28521
28522 #. type: verbatim
28523 #: ../src/guestfs-actions.pod:4966
28524 #, no-wrap
28525 msgid ""
28526 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28527 "\n"
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:4979
28532 msgid "guestfs_mount_9p_va"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:4981
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_mount_9p_va (guestfs_h *g,\n"
28541 "                      const char *mounttag,\n"
28542 "                      const char *mountpoint,\n"
28543 "                      va_list args);\n"
28544 "\n"
28545 msgstr ""
28546
28547 #. type: textblock
28548 #: ../src/guestfs-actions.pod:4987
28549 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:4991
28554 msgid "guestfs_mount_9p_argv"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:4993
28559 #, no-wrap
28560 msgid ""
28561 " int\n"
28562 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28563 "                        const char *mounttag,\n"
28564 "                        const char *mountpoint,\n"
28565 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: textblock
28570 #: ../src/guestfs-actions.pod:4999
28571 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28572 msgstr ""
28573
28574 #. type: =head2
28575 #: ../src/guestfs-actions.pod:5003
28576 msgid "guestfs_mount_loop"
28577 msgstr ""
28578
28579 #. type: verbatim
28580 #: ../src/guestfs-actions.pod:5005
28581 #, no-wrap
28582 msgid ""
28583 " int\n"
28584 " guestfs_mount_loop (guestfs_h *g,\n"
28585 "                     const char *file,\n"
28586 "                     const char *mountpoint);\n"
28587 "\n"
28588 msgstr ""
28589
28590 #. type: =head2
28591 #: ../src/guestfs-actions.pod:5018
28592 msgid "guestfs_mount_options"
28593 msgstr ""
28594
28595 #. type: verbatim
28596 #: ../src/guestfs-actions.pod:5020
28597 #, no-wrap
28598 msgid ""
28599 " int\n"
28600 " guestfs_mount_options (guestfs_h *g,\n"
28601 "                        const char *options,\n"
28602 "                        const char *device,\n"
28603 "                        const char *mountpoint);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: textblock
28608 #: ../src/guestfs-actions.pod:5026
28609 msgid ""
28610 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28611 "the mount options as for the L<mount(8)> I<-o> flag."
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
28616 #: ../src/guestfs-actions.pod:5067
28617 msgid "(Added in 1.0.10)"
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:5038
28622 msgid "guestfs_mount_ro"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:5040
28627 #, no-wrap
28628 msgid ""
28629 " int\n"
28630 " guestfs_mount_ro (guestfs_h *g,\n"
28631 "                   const char *device,\n"
28632 "                   const char *mountpoint);\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../src/guestfs-actions.pod:5045
28638 msgid ""
28639 "This is the same as the C<guestfs_mount> command, but it mounts the "
28640 "filesystem with the read-only (I<-o ro>) flag."
28641 msgstr ""
28642
28643 #. type: =head2
28644 #: ../src/guestfs-actions.pod:5052
28645 msgid "guestfs_mount_vfs"
28646 msgstr ""
28647
28648 #. type: verbatim
28649 #: ../src/guestfs-actions.pod:5054
28650 #, no-wrap
28651 msgid ""
28652 " int\n"
28653 " guestfs_mount_vfs (guestfs_h *g,\n"
28654 "                    const char *options,\n"
28655 "                    const char *vfstype,\n"
28656 "                    const char *device,\n"
28657 "                    const char *mountpoint);\n"
28658 "\n"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../src/guestfs-actions.pod:5061
28663 msgid ""
28664 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28665 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28666 "t> flags."
28667 msgstr ""
28668
28669 #. type: =head2
28670 #: ../src/guestfs-actions.pod:5069
28671 msgid "guestfs_mountpoints"
28672 msgstr ""
28673
28674 #. type: verbatim
28675 #: ../src/guestfs-actions.pod:5071
28676 #, no-wrap
28677 msgid ""
28678 " char **\n"
28679 " guestfs_mountpoints (guestfs_h *g);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:5074
28685 msgid ""
28686 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28687 "devices.  This one returns a hash table (map) of device name to directory "
28688 "where the device is mounted."
28689 msgstr ""
28690
28691 #. type: =head2
28692 #: ../src/guestfs-actions.pod:5086
28693 msgid "guestfs_mounts"
28694 msgstr ""
28695
28696 #. type: verbatim
28697 #: ../src/guestfs-actions.pod:5088
28698 #, no-wrap
28699 msgid ""
28700 " char **\n"
28701 " guestfs_mounts (guestfs_h *g);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:5096
28707 msgid "See also: C<guestfs_mountpoints>"
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../src/guestfs-actions.pod:5104
28712 msgid "guestfs_mv"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:5106
28717 #, no-wrap
28718 msgid ""
28719 " int\n"
28720 " guestfs_mv (guestfs_h *g,\n"
28721 "             const char *src,\n"
28722 "             const char *dest);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:5118
28728 msgid "guestfs_ntfs_3g_probe"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:5120
28733 #, no-wrap
28734 msgid ""
28735 " int\n"
28736 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28737 "                        int rw,\n"
28738 "                        const char *device);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:5139
28744 msgid "(Added in 1.0.43)"
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:5141
28749 msgid "guestfs_ntfsresize"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:5143
28754 #, no-wrap
28755 msgid ""
28756 " int\n"
28757 " guestfs_ntfsresize (guestfs_h *g,\n"
28758 "                     const char *device);\n"
28759 "\n"
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5247
28764 msgid ""
28765 "I<This function is deprecated.> In new code, use the L</"
28766 "guestfs_ntfsresize_opts> call instead."
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:5171
28771 msgid "guestfs_ntfsresize_opts"
28772 msgstr ""
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:5173
28776 #, no-wrap
28777 msgid ""
28778 " int\n"
28779 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28780 "                          const char *device,\n"
28781 "                          ...);\n"
28782 "\n"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:5183
28787 #, no-wrap
28788 msgid ""
28789 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28790 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28791 "\n"
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../src/guestfs-actions.pod:5203
28796 msgid ""
28797 "After the resize operation, the filesystem is always marked as requiring a "
28798 "consistency check (for safety).  You have to boot into Windows to perform "
28799 "this check and clear this condition.  If you I<don't> set the C<force> "
28800 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28801 "times on a single filesystem without booting into Windows between each "
28802 "resize."
28803 msgstr ""
28804
28805 #. type: =head2
28806 #: ../src/guestfs-actions.pod:5218
28807 msgid "guestfs_ntfsresize_opts_va"
28808 msgstr ""
28809
28810 #. type: verbatim
28811 #: ../src/guestfs-actions.pod:5220
28812 #, no-wrap
28813 msgid ""
28814 " int\n"
28815 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28816 "                             const char *device,\n"
28817 "                             va_list args);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:5225
28823 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28824 msgstr ""
28825
28826 #. type: =head2
28827 #: ../src/guestfs-actions.pod:5229
28828 msgid "guestfs_ntfsresize_opts_argv"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../src/guestfs-actions.pod:5231
28833 #, no-wrap
28834 msgid ""
28835 " int\n"
28836 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28837 "                               const char *device,\n"
28838 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: textblock
28843 #: ../src/guestfs-actions.pod:5236
28844 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28845 msgstr ""
28846
28847 #. type: =head2
28848 #: ../src/guestfs-actions.pod:5240
28849 msgid "guestfs_ntfsresize_size"
28850 msgstr ""
28851
28852 #. type: verbatim
28853 #: ../src/guestfs-actions.pod:5242
28854 #, no-wrap
28855 msgid ""
28856 " int\n"
28857 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28858 "                          const char *device,\n"
28859 "                          int64_t size);\n"
28860 "\n"
28861 msgstr ""
28862
28863 #. type: textblock
28864 #: ../src/guestfs-actions.pod:5254
28865 msgid ""
28866 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28867 "to specify the new size (in bytes) explicitly."
28868 msgstr ""
28869
28870 #. type: textblock
28871 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
28872 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
28873 #: ../src/guestfs-actions.pod:7665
28874 msgid "(Added in 1.3.14)"
28875 msgstr ""
28876
28877 #. type: =head2
28878 #: ../src/guestfs-actions.pod:5261
28879 msgid "guestfs_part_add"
28880 msgstr ""
28881
28882 #. type: verbatim
28883 #: ../src/guestfs-actions.pod:5263
28884 #, no-wrap
28885 msgid ""
28886 " int\n"
28887 " guestfs_part_add (guestfs_h *g,\n"
28888 "                   const char *device,\n"
28889 "                   const char *prlogex,\n"
28890 "                   int64_t startsect,\n"
28891 "                   int64_t endsect);\n"
28892 "\n"
28893 msgstr ""
28894
28895 #. type: textblock
28896 #: ../src/guestfs-actions.pod:5270
28897 msgid ""
28898 "This command adds a partition to C<device>.  If there is no partition table "
28899 "on the device, call C<guestfs_part_init> first."
28900 msgstr ""
28901
28902 #. type: textblock
28903 #: ../src/guestfs-actions.pod:5282
28904 msgid ""
28905 "Creating a partition which covers the whole disk is not so easy.  Use "
28906 "C<guestfs_part_disk> to do that."
28907 msgstr ""
28908
28909 #. type: textblock
28910 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
28911 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
28912 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
28913 #: ../src/guestfs-actions.pod:5559
28914 msgid "(Added in 1.0.78)"
28915 msgstr ""
28916
28917 #. type: =head2
28918 #: ../src/guestfs-actions.pod:5289
28919 msgid "guestfs_part_del"
28920 msgstr ""
28921
28922 #. type: verbatim
28923 #: ../src/guestfs-actions.pod:5291
28924 #, no-wrap
28925 msgid ""
28926 " int\n"
28927 " guestfs_part_del (guestfs_h *g,\n"
28928 "                   const char *device,\n"
28929 "                   int partnum);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: =head2
28934 #: ../src/guestfs-actions.pod:5306
28935 msgid "guestfs_part_disk"
28936 msgstr ""
28937
28938 #. type: verbatim
28939 #: ../src/guestfs-actions.pod:5308
28940 #, no-wrap
28941 msgid ""
28942 " int\n"
28943 " guestfs_part_disk (guestfs_h *g,\n"
28944 "                    const char *device,\n"
28945 "                    const char *parttype);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:5313
28951 msgid ""
28952 "This command is simply a combination of C<guestfs_part_init> followed by "
28953 "C<guestfs_part_add> to create a single primary partition covering the whole "
28954 "disk."
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../src/guestfs-actions.pod:5317
28959 msgid ""
28960 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28961 "possible values are described in C<guestfs_part_init>."
28962 msgstr ""
28963
28964 #. type: =head2
28965 #: ../src/guestfs-actions.pod:5327
28966 msgid "guestfs_part_get_bootable"
28967 msgstr ""
28968
28969 #. type: verbatim
28970 #: ../src/guestfs-actions.pod:5329
28971 #, no-wrap
28972 msgid ""
28973 " int\n"
28974 " guestfs_part_get_bootable (guestfs_h *g,\n"
28975 "                            const char *device,\n"
28976 "                            int partnum);\n"
28977 "\n"
28978 msgstr ""
28979
28980 #. type: textblock
28981 #: ../src/guestfs-actions.pod:5337
28982 msgid "See also C<guestfs_part_set_bootable>."
28983 msgstr ""
28984
28985 #. type: =head2
28986 #: ../src/guestfs-actions.pod:5343
28987 msgid "guestfs_part_get_mbr_id"
28988 msgstr ""
28989
28990 #. type: verbatim
28991 #: ../src/guestfs-actions.pod:5345
28992 #, no-wrap
28993 msgid ""
28994 " int\n"
28995 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28996 "                          const char *device,\n"
28997 "                          int partnum);\n"
28998 "\n"
28999 msgstr ""
29000
29001 #. type: textblock
29002 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
29003 msgid ""
29004 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29005 "undefined results for other partition table types (see "
29006 "C<guestfs_part_get_parttype>)."
29007 msgstr ""
29008
29009 #. type: =head2
29010 #: ../src/guestfs-actions.pod:5361
29011 msgid "guestfs_part_get_parttype"
29012 msgstr ""
29013
29014 #. type: verbatim
29015 #: ../src/guestfs-actions.pod:5363
29016 #, no-wrap
29017 msgid ""
29018 " char *\n"
29019 " guestfs_part_get_parttype (guestfs_h *g,\n"
29020 "                            const char *device);\n"
29021 "\n"
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../src/guestfs-actions.pod:5370
29026 msgid ""
29027 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29028 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29029 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:5380
29034 msgid "guestfs_part_init"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:5382
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_part_init (guestfs_h *g,\n"
29043 "                    const char *device,\n"
29044 "                    const char *parttype);\n"
29045 "\n"
29046 msgstr ""
29047
29048 #. type: textblock
29049 #: ../src/guestfs-actions.pod:5391
29050 msgid ""
29051 "Initially there are no partitions.  Following this, you should call "
29052 "C<guestfs_part_add> for each partition required."
29053 msgstr ""
29054
29055 #. type: =head2
29056 #: ../src/guestfs-actions.pod:5464
29057 msgid "guestfs_part_list"
29058 msgstr "guestfs_part_list"
29059
29060 #. type: verbatim
29061 #: ../src/guestfs-actions.pod:5466
29062 #, no-wrap
29063 msgid ""
29064 " struct guestfs_partition_list *\n"
29065 " guestfs_part_list (guestfs_h *g,\n"
29066 "                    const char *device);\n"
29067 "\n"
29068 msgstr ""
29069 " struct guestfs_partition_list *\n"
29070 " guestfs_part_list (guestfs_h *g,\n"
29071 "                    const char *device);\n"
29072 "\n"
29073
29074 #. type: textblock
29075 #: ../src/guestfs-actions.pod:5483
29076 msgid ""
29077 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29078 "the device's sector size, see C<guestfs_blockdev_getss>."
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:5496
29083 msgid ""
29084 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29085 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29086 "use>."
29087 msgstr ""
29088
29089 #. type: =head2
29090 #: ../src/guestfs-actions.pod:5502
29091 msgid "guestfs_part_set_bootable"
29092 msgstr ""
29093
29094 #. type: verbatim
29095 #: ../src/guestfs-actions.pod:5504
29096 #, no-wrap
29097 msgid ""
29098 " int\n"
29099 " guestfs_part_set_bootable (guestfs_h *g,\n"
29100 "                            const char *device,\n"
29101 "                            int partnum,\n"
29102 "                            int bootable);\n"
29103 "\n"
29104 msgstr ""
29105
29106 #. type: =head2
29107 #: ../src/guestfs-actions.pod:5521
29108 msgid "guestfs_part_set_mbr_id"
29109 msgstr ""
29110
29111 #. type: verbatim
29112 #: ../src/guestfs-actions.pod:5523
29113 #, no-wrap
29114 msgid ""
29115 " int\n"
29116 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29117 "                          const char *device,\n"
29118 "                          int partnum,\n"
29119 "                          int idbyte);\n"
29120 "\n"
29121 msgstr ""
29122
29123 #. type: =head2
29124 #: ../src/guestfs-actions.pod:5543
29125 msgid "guestfs_part_set_name"
29126 msgstr ""
29127
29128 #. type: verbatim
29129 #: ../src/guestfs-actions.pod:5545
29130 #, no-wrap
29131 msgid ""
29132 " int\n"
29133 " guestfs_part_set_name (guestfs_h *g,\n"
29134 "                        const char *device,\n"
29135 "                        int partnum,\n"
29136 "                        const char *name);\n"
29137 "\n"
29138 msgstr ""
29139
29140 #. type: =head2
29141 #: ../src/guestfs-actions.pod:5561
29142 msgid "guestfs_part_to_dev"
29143 msgstr ""
29144
29145 #. type: verbatim
29146 #: ../src/guestfs-actions.pod:5563
29147 #, no-wrap
29148 msgid ""
29149 " char *\n"
29150 " guestfs_part_to_dev (guestfs_h *g,\n"
29151 "                      const char *partition);\n"
29152 "\n"
29153 msgstr ""
29154
29155 #. type: textblock
29156 #: ../src/guestfs-actions.pod:5571
29157 msgid ""
29158 "The named partition must exist, for example as a string returned from "
29159 "C<guestfs_list_partitions>."
29160 msgstr ""
29161
29162 #. type: =head2
29163 #: ../src/guestfs-actions.pod:5579
29164 msgid "guestfs_ping_daemon"
29165 msgstr ""
29166
29167 #. type: verbatim
29168 #: ../src/guestfs-actions.pod:5581
29169 #, no-wrap
29170 msgid ""
29171 " int\n"
29172 " guestfs_ping_daemon (guestfs_h *g);\n"
29173 "\n"
29174 msgstr ""
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:5593
29178 msgid "guestfs_pread"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:5595
29183 #, no-wrap
29184 msgid ""
29185 " char *\n"
29186 " guestfs_pread (guestfs_h *g,\n"
29187 "                const char *path,\n"
29188 "                int count,\n"
29189 "                int64_t offset,\n"
29190 "                size_t *size_r);\n"
29191 "\n"
29192 msgstr ""
29193
29194 #. type: textblock
29195 #: ../src/guestfs-actions.pod:5608
29196 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29197 msgstr ""
29198
29199 #. type: =head2
29200 #: ../src/guestfs-actions.pod:5619
29201 msgid "guestfs_pread_device"
29202 msgstr ""
29203
29204 #. type: verbatim
29205 #: ../src/guestfs-actions.pod:5621
29206 #, no-wrap
29207 msgid ""
29208 " char *\n"
29209 " guestfs_pread_device (guestfs_h *g,\n"
29210 "                       const char *device,\n"
29211 "                       int count,\n"
29212 "                       int64_t offset,\n"
29213 "                       size_t *size_r);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: textblock
29218 #: ../src/guestfs-actions.pod:5634
29219 msgid "See also C<guestfs_pread>."
29220 msgstr ""
29221
29222 #. type: textblock
29223 #: ../src/guestfs-actions.pod:5643
29224 msgid "(Added in 1.5.21)"
29225 msgstr ""
29226
29227 #. type: =head2
29228 #: ../src/guestfs-actions.pod:5645
29229 msgid "guestfs_pvcreate"
29230 msgstr ""
29231
29232 #. type: verbatim
29233 #: ../src/guestfs-actions.pod:5647
29234 #, no-wrap
29235 msgid ""
29236 " int\n"
29237 " guestfs_pvcreate (guestfs_h *g,\n"
29238 "                   const char *device);\n"
29239 "\n"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:5659
29244 msgid "guestfs_pvremove"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:5661
29249 #, no-wrap
29250 msgid ""
29251 " int\n"
29252 " guestfs_pvremove (guestfs_h *g,\n"
29253 "                   const char *device);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:5676
29259 msgid "guestfs_pvresize"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:5678
29264 #, no-wrap
29265 msgid ""
29266 " int\n"
29267 " guestfs_pvresize (guestfs_h *g,\n"
29268 "                   const char *device);\n"
29269 "\n"
29270 msgstr ""
29271
29272 #. type: =head2
29273 #: ../src/guestfs-actions.pod:5689
29274 msgid "guestfs_pvresize_size"
29275 msgstr ""
29276
29277 #. type: verbatim
29278 #: ../src/guestfs-actions.pod:5691
29279 #, no-wrap
29280 msgid ""
29281 " int\n"
29282 " guestfs_pvresize_size (guestfs_h *g,\n"
29283 "                        const char *device,\n"
29284 "                        int64_t size);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:5696
29290 msgid ""
29291 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29292 "specify the new size (in bytes) explicitly."
29293 msgstr ""
29294
29295 #. type: =head2
29296 #: ../src/guestfs-actions.pod:5703
29297 msgid "guestfs_pvs"
29298 msgstr ""
29299
29300 #. type: verbatim
29301 #: ../src/guestfs-actions.pod:5705
29302 #, no-wrap
29303 msgid ""
29304 " char **\n"
29305 " guestfs_pvs (guestfs_h *g);\n"
29306 "\n"
29307 msgstr ""
29308
29309 #. type: textblock
29310 #: ../src/guestfs-actions.pod:5714
29311 msgid "See also C<guestfs_pvs_full>."
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:5722
29316 msgid "guestfs_pvs_full"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:5724
29321 #, no-wrap
29322 msgid ""
29323 " struct guestfs_lvm_pv_list *\n"
29324 " guestfs_pvs_full (guestfs_h *g);\n"
29325 "\n"
29326 msgstr ""
29327
29328 #. type: textblock
29329 #: ../src/guestfs-actions.pod:5730
29330 msgid ""
29331 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29332 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29333 msgstr ""
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:5736
29337 msgid "guestfs_pvuuid"
29338 msgstr ""
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:5738
29342 #, no-wrap
29343 msgid ""
29344 " char *\n"
29345 " guestfs_pvuuid (guestfs_h *g,\n"
29346 "                 const char *device);\n"
29347 "\n"
29348 msgstr ""
29349
29350 #. type: =head2
29351 #: ../src/guestfs-actions.pod:5749
29352 msgid "guestfs_pwrite"
29353 msgstr ""
29354
29355 #. type: verbatim
29356 #: ../src/guestfs-actions.pod:5751
29357 #, no-wrap
29358 msgid ""
29359 " int\n"
29360 " guestfs_pwrite (guestfs_h *g,\n"
29361 "                 const char *path,\n"
29362 "                 const char *content,\n"
29363 "                 size_t content_size,\n"
29364 "                 int64_t offset);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:5767
29370 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:5776
29375 msgid "guestfs_pwrite_device"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:5778
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_pwrite_device (guestfs_h *g,\n"
29384 "                        const char *device,\n"
29385 "                        const char *content,\n"
29386 "                        size_t content_size,\n"
29387 "                        int64_t offset);\n"
29388 "\n"
29389 msgstr ""
29390
29391 #. type: textblock
29392 #: ../src/guestfs-actions.pod:5793
29393 msgid "See also C<guestfs_pwrite>."
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:5800
29398 msgid "(Added in 1.5.20)"
29399 msgstr ""
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:5802
29403 msgid "guestfs_read_file"
29404 msgstr ""
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:5804
29408 #, no-wrap
29409 msgid ""
29410 " char *\n"
29411 " guestfs_read_file (guestfs_h *g,\n"
29412 "                    const char *path,\n"
29413 "                    size_t *size_r);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:5812
29419 msgid ""
29420 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29421 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29422 "function is limited in the total size of file that can be handled."
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:5824
29427 msgid "(Added in 1.0.63)"
29428 msgstr ""
29429
29430 #. type: =head2
29431 #: ../src/guestfs-actions.pod:5826
29432 msgid "guestfs_read_lines"
29433 msgstr ""
29434
29435 #. type: verbatim
29436 #: ../src/guestfs-actions.pod:5828
29437 #, no-wrap
29438 msgid ""
29439 " char **\n"
29440 " guestfs_read_lines (guestfs_h *g,\n"
29441 "                     const char *path);\n"
29442 "\n"
29443 msgstr ""
29444
29445 #. type: textblock
29446 #: ../src/guestfs-actions.pod:5837
29447 msgid ""
29448 "Note that this function cannot correctly handle binary files (specifically, "
29449 "files containing C<\\0> character which is treated as end of line).  For "
29450 "those you need to use the C<guestfs_read_file> function which has a more "
29451 "complex interface."
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:5848
29456 msgid "guestfs_readdir"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:5850
29461 #, no-wrap
29462 msgid ""
29463 " struct guestfs_dirent_list *\n"
29464 " guestfs_readdir (guestfs_h *g,\n"
29465 "                  const char *dir);\n"
29466 "\n"
29467 msgstr ""
29468
29469 #. type: textblock
29470 #: ../src/guestfs-actions.pod:5904
29471 msgid ""
29472 "This function is primarily intended for use by programs.  To get a simple "
29473 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29474 "consumption, use C<guestfs_ll>."
29475 msgstr ""
29476
29477 #. type: textblock
29478 #: ../src/guestfs-actions.pod:5908
29479 msgid ""
29480 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29481 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29482 msgstr ""
29483
29484 #. type: =head2
29485 #: ../src/guestfs-actions.pod:5914
29486 msgid "guestfs_readlink"
29487 msgstr ""
29488
29489 #. type: verbatim
29490 #: ../src/guestfs-actions.pod:5916
29491 #, no-wrap
29492 msgid ""
29493 " char *\n"
29494 " guestfs_readlink (guestfs_h *g,\n"
29495 "                   const char *path);\n"
29496 "\n"
29497 msgstr ""
29498
29499 #. type: =head2
29500 #: ../src/guestfs-actions.pod:5927
29501 msgid "guestfs_readlinklist"
29502 msgstr ""
29503
29504 #. type: verbatim
29505 #: ../src/guestfs-actions.pod:5929
29506 #, no-wrap
29507 msgid ""
29508 " char **\n"
29509 " guestfs_readlinklist (guestfs_h *g,\n"
29510 "                       const char *path,\n"
29511 "                       char *const *names);\n"
29512 "\n"
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:5962
29517 msgid "guestfs_realpath"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:5964
29522 #, no-wrap
29523 msgid ""
29524 " char *\n"
29525 " guestfs_realpath (guestfs_h *g,\n"
29526 "                   const char *path);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: =head2
29531 #: ../src/guestfs-actions.pod:5976
29532 msgid "guestfs_removexattr"
29533 msgstr ""
29534
29535 #. type: verbatim
29536 #: ../src/guestfs-actions.pod:5978
29537 #, no-wrap
29538 msgid ""
29539 " int\n"
29540 " guestfs_removexattr (guestfs_h *g,\n"
29541 "                      const char *xattr,\n"
29542 "                      const char *path);\n"
29543 "\n"
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../src/guestfs-actions.pod:5986
29548 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29549 msgstr ""
29550
29551 #. type: =head2
29552 #: ../src/guestfs-actions.pod:5992
29553 msgid "guestfs_resize2fs"
29554 msgstr ""
29555
29556 #. type: verbatim
29557 #: ../src/guestfs-actions.pod:5994
29558 #, no-wrap
29559 msgid ""
29560 " int\n"
29561 " guestfs_resize2fs (guestfs_h *g,\n"
29562 "                    const char *device);\n"
29563 "\n"
29564 msgstr ""
29565
29566 #. type: textblock
29567 #: ../src/guestfs-actions.pod:6001
29568 msgid ""
29569 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29570 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29571 "sometimes gives an error about this and sometimes not.  In any case, it is "
29572 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29573 msgstr ""
29574
29575 #. type: =head2
29576 #: ../src/guestfs-actions.pod:6011
29577 msgid "guestfs_resize2fs_M"
29578 msgstr ""
29579
29580 #. type: verbatim
29581 #: ../src/guestfs-actions.pod:6013
29582 #, no-wrap
29583 msgid ""
29584 " int\n"
29585 " guestfs_resize2fs_M (guestfs_h *g,\n"
29586 "                      const char *device);\n"
29587 "\n"
29588 msgstr ""
29589
29590 #. type: textblock
29591 #: ../src/guestfs-actions.pod:6017
29592 msgid ""
29593 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29594 "resized to its minimum size.  This works like the I<-M> option to the "
29595 "C<resize2fs> command."
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:6021
29600 msgid ""
29601 "To get the resulting size of the filesystem you should call "
29602 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29603 "These two numbers, multiplied together, give the resulting size of the "
29604 "minimal filesystem in bytes."
29605 msgstr ""
29606
29607 #. type: =head2
29608 #: ../src/guestfs-actions.pod:6030
29609 msgid "guestfs_resize2fs_size"
29610 msgstr ""
29611
29612 #. type: verbatim
29613 #: ../src/guestfs-actions.pod:6032
29614 #, no-wrap
29615 msgid ""
29616 " int\n"
29617 " guestfs_resize2fs_size (guestfs_h *g,\n"
29618 "                         const char *device,\n"
29619 "                         int64_t size);\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../src/guestfs-actions.pod:6037
29625 msgid ""
29626 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29627 "to specify the new size (in bytes) explicitly."
29628 msgstr ""
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:6044
29632 msgid "guestfs_rm"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:6046
29637 #, no-wrap
29638 msgid ""
29639 " int\n"
29640 " guestfs_rm (guestfs_h *g,\n"
29641 "             const char *path);\n"
29642 "\n"
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:6056
29647 msgid "guestfs_rm_rf"
29648 msgstr ""
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:6058
29652 #, no-wrap
29653 msgid ""
29654 " int\n"
29655 " guestfs_rm_rf (guestfs_h *g,\n"
29656 "                const char *path);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../src/guestfs-actions.pod:6070
29662 msgid "guestfs_rmdir"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-actions.pod:6072
29667 #, no-wrap
29668 msgid ""
29669 " int\n"
29670 " guestfs_rmdir (guestfs_h *g,\n"
29671 "                const char *path);\n"
29672 "\n"
29673 msgstr ""
29674
29675 #. type: =head2
29676 #: ../src/guestfs-actions.pod:6082
29677 msgid "guestfs_rmmountpoint"
29678 msgstr ""
29679
29680 #. type: verbatim
29681 #: ../src/guestfs-actions.pod:6084
29682 #, no-wrap
29683 msgid ""
29684 " int\n"
29685 " guestfs_rmmountpoint (guestfs_h *g,\n"
29686 "                       const char *exemptpath);\n"
29687 "\n"
29688 msgstr ""
29689
29690 #. type: textblock
29691 #: ../src/guestfs-actions.pod:6088
29692 msgid ""
29693 "This calls removes a mountpoint that was previously created with "
29694 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29695 msgstr ""
29696
29697 #. type: =head2
29698 #: ../src/guestfs-actions.pod:6096
29699 msgid "guestfs_scrub_device"
29700 msgstr ""
29701
29702 #. type: verbatim
29703 #: ../src/guestfs-actions.pod:6098
29704 #, no-wrap
29705 msgid ""
29706 " int\n"
29707 " guestfs_scrub_device (guestfs_h *g,\n"
29708 "                       const char *device);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
29714 #: ../src/guestfs-actions.pod:6150
29715 msgid "(Added in 1.0.52)"
29716 msgstr ""
29717
29718 #. type: =head2
29719 #: ../src/guestfs-actions.pod:6115
29720 msgid "guestfs_scrub_file"
29721 msgstr ""
29722
29723 #. type: verbatim
29724 #: ../src/guestfs-actions.pod:6117
29725 #, no-wrap
29726 msgid ""
29727 " int\n"
29728 " guestfs_scrub_file (guestfs_h *g,\n"
29729 "                     const char *file);\n"
29730 "\n"
29731 msgstr ""
29732
29733 #. type: =head2
29734 #: ../src/guestfs-actions.pod:6133
29735 msgid "guestfs_scrub_freespace"
29736 msgstr ""
29737
29738 #. type: verbatim
29739 #: ../src/guestfs-actions.pod:6135
29740 #, no-wrap
29741 msgid ""
29742 " int\n"
29743 " guestfs_scrub_freespace (guestfs_h *g,\n"
29744 "                          const char *dir);\n"
29745 "\n"
29746 msgstr ""
29747
29748 #. type: textblock
29749 #: ../src/guestfs-actions.pod:6139
29750 msgid ""
29751 "This command creates the directory C<dir> and then fills it with files until "
29752 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29753 "and deletes them.  The intention is to scrub any free space on the partition "
29754 "containing C<dir>."
29755 msgstr ""
29756
29757 #. type: =head2
29758 #: ../src/guestfs-actions.pod:6152
29759 msgid "guestfs_set_append"
29760 msgstr ""
29761
29762 #. type: verbatim
29763 #: ../src/guestfs-actions.pod:6154
29764 #, no-wrap
29765 msgid ""
29766 " int\n"
29767 " guestfs_set_append (guestfs_h *g,\n"
29768 "                     const char *append);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: =head2
29773 #: ../src/guestfs-actions.pod:6171
29774 msgid "guestfs_set_attach_method"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-actions.pod:6173
29779 #, no-wrap
29780 msgid ""
29781 " int\n"
29782 " guestfs_set_attach_method (guestfs_h *g,\n"
29783 "                            const char *attachmethod);\n"
29784 "\n"
29785 msgstr ""
29786
29787 #. type: =head2
29788 #: ../src/guestfs-actions.pod:6201
29789 msgid "guestfs_set_autosync"
29790 msgstr ""
29791
29792 #. type: verbatim
29793 #: ../src/guestfs-actions.pod:6203
29794 #, no-wrap
29795 msgid ""
29796 " int\n"
29797 " guestfs_set_autosync (guestfs_h *g,\n"
29798 "                       int autosync);\n"
29799 "\n"
29800 msgstr ""
29801
29802 #. type: =head2
29803 #: ../src/guestfs-actions.pod:6219
29804 msgid "guestfs_set_direct"
29805 msgstr ""
29806
29807 #. type: verbatim
29808 #: ../src/guestfs-actions.pod:6221
29809 #, no-wrap
29810 msgid ""
29811 " int\n"
29812 " guestfs_set_direct (guestfs_h *g,\n"
29813 "                     int direct);\n"
29814 "\n"
29815 msgstr ""
29816
29817 #. type: textblock
29818 #: ../src/guestfs-actions.pod:6229
29819 msgid ""
29820 "One consequence of this is that log messages aren't caught by the library "
29821 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29822 "stdout."
29823 msgstr ""
29824
29825 #. type: =head2
29826 #: ../src/guestfs-actions.pod:6242
29827 msgid "guestfs_set_e2label"
29828 msgstr ""
29829
29830 #. type: verbatim
29831 #: ../src/guestfs-actions.pod:6244
29832 #, no-wrap
29833 msgid ""
29834 " int\n"
29835 " guestfs_set_e2label (guestfs_h *g,\n"
29836 "                      const char *device,\n"
29837 "                      const char *label);\n"
29838 "\n"
29839 msgstr ""
29840
29841 #. type: textblock
29842 #: ../src/guestfs-actions.pod:6253
29843 msgid ""
29844 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29845 "the existing label on a filesystem."
29846 msgstr ""
29847
29848 #. type: =head2
29849 #: ../src/guestfs-actions.pod:6260
29850 msgid "guestfs_set_e2uuid"
29851 msgstr ""
29852
29853 #. type: verbatim
29854 #: ../src/guestfs-actions.pod:6262
29855 #, no-wrap
29856 msgid ""
29857 " int\n"
29858 " guestfs_set_e2uuid (guestfs_h *g,\n"
29859 "                     const char *device,\n"
29860 "                     const char *uuid);\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../src/guestfs-actions.pod:6272
29866 msgid ""
29867 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29868 "the existing UUID of a filesystem."
29869 msgstr ""
29870
29871 #. type: =head2
29872 #: ../src/guestfs-actions.pod:6279
29873 msgid "guestfs_set_memsize"
29874 msgstr ""
29875
29876 #. type: verbatim
29877 #: ../src/guestfs-actions.pod:6281
29878 #, no-wrap
29879 msgid ""
29880 " int\n"
29881 " guestfs_set_memsize (guestfs_h *g,\n"
29882 "                      int memsize);\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: textblock
29887 #: ../src/guestfs-actions.pod:6285
29888 msgid ""
29889 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29890 "This only has any effect if called before C<guestfs_launch>."
29891 msgstr ""
29892
29893 #. type: =head2
29894 #: ../src/guestfs-actions.pod:6300
29895 msgid "guestfs_set_network"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:6302
29900 #, no-wrap
29901 msgid ""
29902 " int\n"
29903 " guestfs_set_network (guestfs_h *g,\n"
29904 "                      int network);\n"
29905 "\n"
29906 msgstr ""
29907
29908 #. type: textblock
29909 #: ../src/guestfs-actions.pod:6312
29910 msgid ""
29911 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29912 "effect."
29913 msgstr ""
29914
29915 #. type: =head2
29916 #: ../src/guestfs-actions.pod:6319
29917 msgid "guestfs_set_path"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-actions.pod:6321
29922 #, no-wrap
29923 msgid ""
29924 " int\n"
29925 " guestfs_set_path (guestfs_h *g,\n"
29926 "                   const char *searchpath);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:6336
29932 msgid "guestfs_set_pgroup"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:6338
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_set_pgroup (guestfs_h *g,\n"
29941 "                     int pgroup);\n"
29942 "\n"
29943 msgstr ""
29944
29945 #. type: =head2
29946 #: ../src/guestfs-actions.pod:6355
29947 msgid "guestfs_set_qemu"
29948 msgstr ""
29949
29950 #. type: verbatim
29951 #: ../src/guestfs-actions.pod:6357
29952 #, no-wrap
29953 msgid ""
29954 " int\n"
29955 " guestfs_set_qemu (guestfs_h *g,\n"
29956 "                   const char *qemu);\n"
29957 "\n"
29958 msgstr ""
29959
29960 #. type: =head2
29961 #: ../src/guestfs-actions.pod:6383
29962 msgid "guestfs_set_recovery_proc"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-actions.pod:6385
29967 #, no-wrap
29968 msgid ""
29969 " int\n"
29970 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29971 "                            int recoveryproc);\n"
29972 "\n"
29973 msgstr ""
29974
29975 #. type: textblock
29976 #: ../src/guestfs-actions.pod:6389
29977 msgid ""
29978 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29979 "not create a recovery process.  The purpose of the recovery process is to "
29980 "stop runaway qemu processes in the case where the main program aborts "
29981 "abruptly."
29982 msgstr ""
29983
29984 #. type: textblock
29985 #: ../src/guestfs-actions.pod:6394
29986 msgid ""
29987 "This only has any effect if called before C<guestfs_launch>, and the default "
29988 "is true."
29989 msgstr ""
29990
29991 #. type: =head2
29992 #: ../src/guestfs-actions.pod:6407
29993 msgid "guestfs_set_selinux"
29994 msgstr ""
29995
29996 #. type: verbatim
29997 #: ../src/guestfs-actions.pod:6409
29998 #, no-wrap
29999 msgid ""
30000 " int\n"
30001 " guestfs_set_selinux (guestfs_h *g,\n"
30002 "                      int selinux);\n"
30003 "\n"
30004 msgstr ""
30005
30006 #. type: =head2
30007 #: ../src/guestfs-actions.pod:6426
30008 msgid "guestfs_set_trace"
30009 msgstr ""
30010
30011 #. type: verbatim
30012 #: ../src/guestfs-actions.pod:6428
30013 #, no-wrap
30014 msgid ""
30015 " int\n"
30016 " guestfs_set_trace (guestfs_h *g,\n"
30017 "                    int trace);\n"
30018 "\n"
30019 msgstr ""
30020
30021 #. type: textblock
30022 #: ../src/guestfs-actions.pod:6442
30023 msgid ""
30024 "Trace messages are normally sent to C<stderr>, unless you register a "
30025 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:6450
30030 msgid "guestfs_set_verbose"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:6452
30035 #, no-wrap
30036 msgid ""
30037 " int\n"
30038 " guestfs_set_verbose (guestfs_h *g,\n"
30039 "                      int verbose);\n"
30040 "\n"
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-actions.pod:6461
30045 msgid ""
30046 "Verbose messages are normally sent to C<stderr>, unless you register a "
30047 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:6469
30052 msgid "guestfs_setcon"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:6471
30057 #, no-wrap
30058 msgid ""
30059 " int\n"
30060 " guestfs_setcon (guestfs_h *g,\n"
30061 "                 const char *context);\n"
30062 "\n"
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:6484
30067 msgid "guestfs_setxattr"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:6486
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_setxattr (guestfs_h *g,\n"
30076 "                   const char *xattr,\n"
30077 "                   const char *val,\n"
30078 "                   int vallen,\n"
30079 "                   const char *path);\n"
30080 "\n"
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:6497
30085 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30086 msgstr ""
30087
30088 #. type: =head2
30089 #: ../src/guestfs-actions.pod:6503
30090 msgid "guestfs_sfdisk"
30091 msgstr ""
30092
30093 #. type: verbatim
30094 #: ../src/guestfs-actions.pod:6505
30095 #, no-wrap
30096 msgid ""
30097 " int\n"
30098 " guestfs_sfdisk (guestfs_h *g,\n"
30099 "                 const char *device,\n"
30100 "                 int cyls,\n"
30101 "                 int heads,\n"
30102 "                 int sectors,\n"
30103 "                 char *const *lines);\n"
30104 "\n"
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6557
30109 #: ../src/guestfs-actions.pod:6591
30110 msgid ""
30111 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30112 "call instead."
30113 msgstr ""
30114
30115 #. type: textblock
30116 #: ../src/guestfs-actions.pod:6540
30117 msgid ""
30118 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30119 msgstr ""
30120
30121 #. type: =head2
30122 #: ../src/guestfs-actions.pod:6550
30123 msgid "guestfs_sfdiskM"
30124 msgstr ""
30125
30126 #. type: verbatim
30127 #: ../src/guestfs-actions.pod:6552
30128 #, no-wrap
30129 msgid ""
30130 " int\n"
30131 " guestfs_sfdiskM (guestfs_h *g,\n"
30132 "                  const char *device,\n"
30133 "                  char *const *lines);\n"
30134 "\n"
30135 msgstr ""
30136
30137 #. type: textblock
30138 #: ../src/guestfs-actions.pod:6564
30139 msgid ""
30140 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30141 "partition sizes are specified in megabytes only (rounded to the nearest "
30142 "cylinder) and you don't need to specify the cyls, heads and sectors "
30143 "parameters which were rarely if ever used anyway."
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../src/guestfs-actions.pod:6570
30148 msgid ""
30149 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30150 "C<guestfs_part_disk>"
30151 msgstr ""
30152
30153 #. type: =head2
30154 #: ../src/guestfs-actions.pod:6580
30155 msgid "guestfs_sfdisk_N"
30156 msgstr ""
30157
30158 #. type: verbatim
30159 #: ../src/guestfs-actions.pod:6582
30160 #, no-wrap
30161 msgid ""
30162 " int\n"
30163 " guestfs_sfdisk_N (guestfs_h *g,\n"
30164 "                   const char *device,\n"
30165 "                   int partnum,\n"
30166 "                   int cyls,\n"
30167 "                   int heads,\n"
30168 "                   int sectors,\n"
30169 "                   const char *line);\n"
30170 "\n"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs-actions.pod:6601
30175 msgid ""
30176 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30177 "for the cyls/heads/sectors parameters."
30178 msgstr ""
30179
30180 #. type: textblock
30181 #: ../src/guestfs-actions.pod:6604
30182 msgid "See also: C<guestfs_part_add>"
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs-actions.pod:6613
30187 msgid "guestfs_sfdisk_disk_geometry"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs-actions.pod:6615
30192 #, no-wrap
30193 msgid ""
30194 " char *\n"
30195 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30196 "                               const char *device);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs-actions.pod:6619
30202 msgid ""
30203 "This displays the disk geometry of C<device> read from the partition table.  "
30204 "Especially in the case where the underlying block device has been resized, "
30205 "this can be different from the kernel's idea of the geometry (see "
30206 "C<guestfs_sfdisk_kernel_geometry>)."
30207 msgstr ""
30208
30209 #. type: =head2
30210 #: ../src/guestfs-actions.pod:6632
30211 msgid "guestfs_sfdisk_kernel_geometry"
30212 msgstr ""
30213
30214 #. type: verbatim
30215 #: ../src/guestfs-actions.pod:6634
30216 #, no-wrap
30217 msgid ""
30218 " char *\n"
30219 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30220 "                                 const char *device);\n"
30221 "\n"
30222 msgstr ""
30223
30224 #. type: =head2
30225 #: ../src/guestfs-actions.pod:6648
30226 msgid "guestfs_sfdisk_l"
30227 msgstr ""
30228
30229 #. type: verbatim
30230 #: ../src/guestfs-actions.pod:6650
30231 #, no-wrap
30232 msgid ""
30233 " char *\n"
30234 " guestfs_sfdisk_l (guestfs_h *g,\n"
30235 "                   const char *device);\n"
30236 "\n"
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-actions.pod:6654
30241 msgid ""
30242 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30243 "call instead."
30244 msgstr ""
30245
30246 #. type: textblock
30247 #: ../src/guestfs-actions.pod:6665
30248 msgid "See also: C<guestfs_part_list>"
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../src/guestfs-actions.pod:6672
30253 msgid "guestfs_sh"
30254 msgstr ""
30255
30256 #. type: verbatim
30257 #: ../src/guestfs-actions.pod:6674
30258 #, no-wrap
30259 msgid ""
30260 " char *\n"
30261 " guestfs_sh (guestfs_h *g,\n"
30262 "             const char *command);\n"
30263 "\n"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:6681
30268 msgid "This is like C<guestfs_command>, but passes the command to:"
30269 msgstr ""
30270
30271 #. type: textblock
30272 #: ../src/guestfs-actions.pod:6689
30273 msgid "All the provisos about C<guestfs_command> apply to this call."
30274 msgstr ""
30275
30276 #. type: =head2
30277 #: ../src/guestfs-actions.pod:6696
30278 msgid "guestfs_sh_lines"
30279 msgstr ""
30280
30281 #. type: verbatim
30282 #: ../src/guestfs-actions.pod:6698
30283 #, no-wrap
30284 msgid ""
30285 " char **\n"
30286 " guestfs_sh_lines (guestfs_h *g,\n"
30287 "                   const char *command);\n"
30288 "\n"
30289 msgstr ""
30290
30291 #. type: textblock
30292 #: ../src/guestfs-actions.pod:6702
30293 msgid ""
30294 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30295 "lines."
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:6705
30300 msgid "See also: C<guestfs_command_lines>"
30301 msgstr ""
30302
30303 #. type: =head2
30304 #: ../src/guestfs-actions.pod:6713
30305 msgid "guestfs_sleep"
30306 msgstr ""
30307
30308 #. type: verbatim
30309 #: ../src/guestfs-actions.pod:6715
30310 #, no-wrap
30311 msgid ""
30312 " int\n"
30313 " guestfs_sleep (guestfs_h *g,\n"
30314 "                int secs);\n"
30315 "\n"
30316 msgstr ""
30317
30318 #. type: textblock
30319 #: ../src/guestfs-actions.pod:6723
30320 msgid "(Added in 1.0.41)"
30321 msgstr ""
30322
30323 #. type: =head2
30324 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
30325 msgid "guestfs_stat"
30326 msgstr ""
30327
30328 #. type: verbatim
30329 #: ../src/guestfs-actions.pod:6727
30330 #, no-wrap
30331 msgid ""
30332 " struct guestfs_stat *\n"
30333 " guestfs_stat (guestfs_h *g,\n"
30334 "               const char *path);\n"
30335 "\n"
30336 msgstr ""
30337
30338 #. type: =head2
30339 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
30340 msgid "guestfs_statvfs"
30341 msgstr ""
30342
30343 #. type: verbatim
30344 #: ../src/guestfs-actions.pod:6743
30345 #, no-wrap
30346 msgid ""
30347 " struct guestfs_statvfs *\n"
30348 " guestfs_statvfs (guestfs_h *g,\n"
30349 "                  const char *path);\n"
30350 "\n"
30351 msgstr ""
30352
30353 #. type: textblock
30354 #: ../src/guestfs-actions.pod:6753
30355 msgid ""
30356 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30357 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30358 msgstr ""
30359
30360 #. type: =head2
30361 #: ../src/guestfs-actions.pod:6759
30362 msgid "guestfs_strings"
30363 msgstr ""
30364
30365 #. type: verbatim
30366 #: ../src/guestfs-actions.pod:6761
30367 #, no-wrap
30368 msgid ""
30369 " char **\n"
30370 " guestfs_strings (guestfs_h *g,\n"
30371 "                  const char *path);\n"
30372 "\n"
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs-actions.pod:6777
30377 msgid "guestfs_strings_e"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-actions.pod:6779
30382 #, no-wrap
30383 msgid ""
30384 " char **\n"
30385 " guestfs_strings_e (guestfs_h *g,\n"
30386 "                    const char *encoding,\n"
30387 "                    const char *path);\n"
30388 "\n"
30389 msgstr ""
30390
30391 #. type: textblock
30392 #: ../src/guestfs-actions.pod:6784
30393 msgid ""
30394 "This is like the C<guestfs_strings> command, but allows you to specify the "
30395 "encoding of strings that are looked for in the source file C<path>."
30396 msgstr ""
30397
30398 #. type: textblock
30399 #: ../src/guestfs-actions.pod:6794
30400 msgid ""
30401 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30402 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30403 msgstr ""
30404
30405 #. type: =head2
30406 #: ../src/guestfs-actions.pod:6832
30407 msgid "guestfs_swapoff_device"
30408 msgstr ""
30409
30410 #. type: verbatim
30411 #: ../src/guestfs-actions.pod:6834
30412 #, no-wrap
30413 msgid ""
30414 " int\n"
30415 " guestfs_swapoff_device (guestfs_h *g,\n"
30416 "                         const char *device);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../src/guestfs-actions.pod:6838
30422 msgid ""
30423 "This command disables the libguestfs appliance swap device or partition "
30424 "named C<device>.  See C<guestfs_swapon_device>."
30425 msgstr ""
30426
30427 #. type: =head2
30428 #: ../src/guestfs-actions.pod:6846
30429 msgid "guestfs_swapoff_file"
30430 msgstr ""
30431
30432 #. type: verbatim
30433 #: ../src/guestfs-actions.pod:6848
30434 #, no-wrap
30435 msgid ""
30436 " int\n"
30437 " guestfs_swapoff_file (guestfs_h *g,\n"
30438 "                       const char *file);\n"
30439 "\n"
30440 msgstr ""
30441
30442 #. type: =head2
30443 #: ../src/guestfs-actions.pod:6858
30444 msgid "guestfs_swapoff_label"
30445 msgstr ""
30446
30447 #. type: verbatim
30448 #: ../src/guestfs-actions.pod:6860
30449 #, no-wrap
30450 msgid ""
30451 " int\n"
30452 " guestfs_swapoff_label (guestfs_h *g,\n"
30453 "                        const char *label);\n"
30454 "\n"
30455 msgstr ""
30456
30457 #. type: =head2
30458 #: ../src/guestfs-actions.pod:6871
30459 msgid "guestfs_swapoff_uuid"
30460 msgstr ""
30461
30462 #. type: verbatim
30463 #: ../src/guestfs-actions.pod:6873
30464 #, no-wrap
30465 msgid ""
30466 " int\n"
30467 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30468 "                       const char *uuid);\n"
30469 "\n"
30470 msgstr ""
30471
30472 #. type: =head2
30473 #: ../src/guestfs-actions.pod:6884
30474 msgid "guestfs_swapon_device"
30475 msgstr ""
30476
30477 #. type: verbatim
30478 #: ../src/guestfs-actions.pod:6886
30479 #, no-wrap
30480 msgid ""
30481 " int\n"
30482 " guestfs_swapon_device (guestfs_h *g,\n"
30483 "                        const char *device);\n"
30484 "\n"
30485 msgstr ""
30486
30487 #. type: textblock
30488 #: ../src/guestfs-actions.pod:6890
30489 msgid ""
30490 "This command enables the libguestfs appliance to use the swap device or "
30491 "partition named C<device>.  The increased memory is made available for all "
30492 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:6906
30497 msgid "guestfs_swapon_file"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:6908
30502 #, no-wrap
30503 msgid ""
30504 " int\n"
30505 " guestfs_swapon_file (guestfs_h *g,\n"
30506 "                      const char *file);\n"
30507 "\n"
30508 msgstr ""
30509
30510 #. type: textblock
30511 #: ../src/guestfs-actions.pod:6912
30512 msgid ""
30513 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30514 "notes."
30515 msgstr ""
30516
30517 #. type: =head2
30518 #: ../src/guestfs-actions.pod:6919
30519 msgid "guestfs_swapon_label"
30520 msgstr ""
30521
30522 #. type: verbatim
30523 #: ../src/guestfs-actions.pod:6921
30524 #, no-wrap
30525 msgid ""
30526 " int\n"
30527 " guestfs_swapon_label (guestfs_h *g,\n"
30528 "                       const char *label);\n"
30529 "\n"
30530 msgstr ""
30531
30532 #. type: textblock
30533 #: ../src/guestfs-actions.pod:6925
30534 msgid ""
30535 "This command enables swap to a labeled swap partition.  See "
30536 "C<guestfs_swapon_device> for other notes."
30537 msgstr ""
30538
30539 #. type: =head2
30540 #: ../src/guestfs-actions.pod:6932
30541 msgid "guestfs_swapon_uuid"
30542 msgstr ""
30543
30544 #. type: verbatim
30545 #: ../src/guestfs-actions.pod:6934
30546 #, no-wrap
30547 msgid ""
30548 " int\n"
30549 " guestfs_swapon_uuid (guestfs_h *g,\n"
30550 "                      const char *uuid);\n"
30551 "\n"
30552 msgstr ""
30553
30554 #. type: textblock
30555 #: ../src/guestfs-actions.pod:6938
30556 msgid ""
30557 "This command enables swap to a swap partition with the given UUID.  See "
30558 "C<guestfs_swapon_device> for other notes."
30559 msgstr ""
30560
30561 #. type: =head2
30562 #: ../src/guestfs-actions.pod:6945
30563 msgid "guestfs_sync"
30564 msgstr ""
30565
30566 #. type: verbatim
30567 #: ../src/guestfs-actions.pod:6947
30568 #, no-wrap
30569 msgid ""
30570 " int\n"
30571 " guestfs_sync (guestfs_h *g);\n"
30572 "\n"
30573 msgstr ""
30574
30575 #. type: =head2
30576 #: ../src/guestfs-actions.pod:6960
30577 msgid "guestfs_tail"
30578 msgstr ""
30579
30580 #. type: verbatim
30581 #: ../src/guestfs-actions.pod:6962
30582 #, no-wrap
30583 msgid ""
30584 " char **\n"
30585 " guestfs_tail (guestfs_h *g,\n"
30586 "               const char *path);\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs-actions.pod:6978
30592 msgid "guestfs_tail_n"
30593 msgstr ""
30594
30595 #. type: verbatim
30596 #: ../src/guestfs-actions.pod:6980
30597 #, no-wrap
30598 msgid ""
30599 " char **\n"
30600 " guestfs_tail_n (guestfs_h *g,\n"
30601 "                 int nrlines,\n"
30602 "                 const char *path);\n"
30603 "\n"
30604 msgstr ""
30605
30606 #. type: =head2
30607 #: ../src/guestfs-actions.pod:7002
30608 msgid "guestfs_tar_in"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-actions.pod:7004
30613 #, no-wrap
30614 msgid ""
30615 " int\n"
30616 " guestfs_tar_in (guestfs_h *g,\n"
30617 "                 const char *tarfile,\n"
30618 "                 const char *directory);\n"
30619 "\n"
30620 msgstr ""
30621
30622 #. type: textblock
30623 #: ../src/guestfs-actions.pod:7012
30624 msgid ""
30625 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30626 msgstr ""
30627
30628 #. type: textblock
30629 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
30630 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
30631 msgid "(Added in 1.0.3)"
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-actions.pod:7019
30636 msgid "guestfs_tar_out"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-actions.pod:7021
30641 #, no-wrap
30642 msgid ""
30643 " int\n"
30644 " guestfs_tar_out (guestfs_h *g,\n"
30645 "                  const char *directory,\n"
30646 "                  const char *tarfile);\n"
30647 "\n"
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:7029
30652 msgid ""
30653 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30654 "C<guestfs_txz_out>."
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:7036
30659 msgid "guestfs_tgz_in"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:7038
30664 #, no-wrap
30665 msgid ""
30666 " int\n"
30667 " guestfs_tgz_in (guestfs_h *g,\n"
30668 "                 const char *tarball,\n"
30669 "                 const char *directory);\n"
30670 "\n"
30671 msgstr ""
30672
30673 #. type: textblock
30674 #: ../src/guestfs-actions.pod:7046
30675 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30676 msgstr ""
30677
30678 #. type: =head2
30679 #: ../src/guestfs-actions.pod:7052
30680 msgid "guestfs_tgz_out"
30681 msgstr ""
30682
30683 #. type: verbatim
30684 #: ../src/guestfs-actions.pod:7054
30685 #, no-wrap
30686 msgid ""
30687 " int\n"
30688 " guestfs_tgz_out (guestfs_h *g,\n"
30689 "                  const char *directory,\n"
30690 "                  const char *tarball);\n"
30691 "\n"
30692 msgstr ""
30693
30694 #. type: textblock
30695 #: ../src/guestfs-actions.pod:7062
30696 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30697 msgstr ""
30698
30699 #. type: =head2
30700 #: ../src/guestfs-actions.pod:7068
30701 msgid "guestfs_touch"
30702 msgstr ""
30703
30704 #. type: verbatim
30705 #: ../src/guestfs-actions.pod:7070
30706 #, no-wrap
30707 msgid ""
30708 " int\n"
30709 " guestfs_touch (guestfs_h *g,\n"
30710 "                const char *path);\n"
30711 "\n"
30712 msgstr ""
30713
30714 #. type: =head2
30715 #: ../src/guestfs-actions.pod:7085
30716 msgid "guestfs_truncate"
30717 msgstr ""
30718
30719 #. type: verbatim
30720 #: ../src/guestfs-actions.pod:7087
30721 #, no-wrap
30722 msgid ""
30723 " int\n"
30724 " guestfs_truncate (guestfs_h *g,\n"
30725 "                   const char *path);\n"
30726 "\n"
30727 msgstr ""
30728
30729 #. type: =head2
30730 #: ../src/guestfs-actions.pod:7098
30731 msgid "guestfs_truncate_size"
30732 msgstr ""
30733
30734 #. type: verbatim
30735 #: ../src/guestfs-actions.pod:7100
30736 #, no-wrap
30737 msgid ""
30738 " int\n"
30739 " guestfs_truncate_size (guestfs_h *g,\n"
30740 "                        const char *path,\n"
30741 "                        int64_t size);\n"
30742 "\n"
30743 msgstr ""
30744
30745 #. type: textblock
30746 #: ../src/guestfs-actions.pod:7108
30747 msgid ""
30748 "If the current file size is less than C<size> then the file is extended to "
30749 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30750 "blocks are not allocated for the file until you write to it).  To create a "
30751 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30752 msgstr ""
30753
30754 #. type: =head2
30755 #: ../src/guestfs-actions.pod:7118
30756 msgid "guestfs_tune2fs_l"
30757 msgstr ""
30758
30759 #. type: verbatim
30760 #: ../src/guestfs-actions.pod:7120
30761 #, no-wrap
30762 msgid ""
30763 " char **\n"
30764 " guestfs_tune2fs_l (guestfs_h *g,\n"
30765 "                    const char *device);\n"
30766 "\n"
30767 msgstr ""
30768
30769 #. type: =head2
30770 #: ../src/guestfs-actions.pod:7140
30771 msgid "guestfs_txz_in"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../src/guestfs-actions.pod:7142
30776 #, no-wrap
30777 msgid ""
30778 " int\n"
30779 " guestfs_txz_in (guestfs_h *g,\n"
30780 "                 const char *tarball,\n"
30781 "                 const char *directory);\n"
30782 "\n"
30783 msgstr ""
30784
30785 #. type: =head2
30786 #: ../src/guestfs-actions.pod:7154
30787 msgid "guestfs_txz_out"
30788 msgstr ""
30789
30790 #. type: verbatim
30791 #: ../src/guestfs-actions.pod:7156
30792 #, no-wrap
30793 msgid ""
30794 " int\n"
30795 " guestfs_txz_out (guestfs_h *g,\n"
30796 "                  const char *directory,\n"
30797 "                  const char *tarball);\n"
30798 "\n"
30799 msgstr ""
30800
30801 #. type: =head2
30802 #: ../src/guestfs-actions.pod:7168
30803 msgid "guestfs_umask"
30804 msgstr ""
30805
30806 #. type: verbatim
30807 #: ../src/guestfs-actions.pod:7170
30808 #, no-wrap
30809 msgid ""
30810 " int\n"
30811 " guestfs_umask (guestfs_h *g,\n"
30812 "                int mask);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs-actions.pod:7186
30818 msgid ""
30819 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30820 "C<guestfs_mkdir>."
30821 msgstr ""
30822
30823 #. type: =head2
30824 #: ../src/guestfs-actions.pod:7195
30825 msgid "guestfs_umount"
30826 msgstr ""
30827
30828 #. type: verbatim
30829 #: ../src/guestfs-actions.pod:7197
30830 #, no-wrap
30831 msgid ""
30832 " int\n"
30833 " guestfs_umount (guestfs_h *g,\n"
30834 "                 const char *pathordevice);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: =head2
30839 #: ../src/guestfs-actions.pod:7209
30840 msgid "guestfs_umount_all"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-actions.pod:7211
30845 #, no-wrap
30846 msgid ""
30847 " int\n"
30848 " guestfs_umount_all (guestfs_h *g);\n"
30849 "\n"
30850 msgstr ""
30851
30852 #. type: =head2
30853 #: ../src/guestfs-actions.pod:7222
30854 msgid "guestfs_upload"
30855 msgstr ""
30856
30857 #. type: verbatim
30858 #: ../src/guestfs-actions.pod:7224
30859 #, no-wrap
30860 msgid ""
30861 " int\n"
30862 " guestfs_upload (guestfs_h *g,\n"
30863 "                 const char *filename,\n"
30864 "                 const char *remotefilename);\n"
30865 "\n"
30866 msgstr ""
30867
30868 #. type: textblock
30869 #: ../src/guestfs-actions.pod:7234
30870 msgid "See also C<guestfs_download>."
30871 msgstr ""
30872
30873 #. type: =head2
30874 #: ../src/guestfs-actions.pod:7245
30875 msgid "guestfs_upload_offset"
30876 msgstr ""
30877
30878 #. type: verbatim
30879 #: ../src/guestfs-actions.pod:7247
30880 #, no-wrap
30881 msgid ""
30882 " int\n"
30883 " guestfs_upload_offset (guestfs_h *g,\n"
30884 "                        const char *filename,\n"
30885 "                        const char *remotefilename,\n"
30886 "                        int64_t offset);\n"
30887 "\n"
30888 msgstr ""
30889
30890 #. type: textblock
30891 #: ../src/guestfs-actions.pod:7263
30892 msgid ""
30893 "Note that there is no limit on the amount of data that can be uploaded with "
30894 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30895 "full amount unless an error occurs."
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs-actions.pod:7268
30900 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30901 msgstr ""
30902
30903 #. type: =head2
30904 #: ../src/guestfs-actions.pod:7279
30905 msgid "guestfs_utimens"
30906 msgstr ""
30907
30908 #. type: verbatim
30909 #: ../src/guestfs-actions.pod:7281
30910 #, no-wrap
30911 msgid ""
30912 " int\n"
30913 " guestfs_utimens (guestfs_h *g,\n"
30914 "                  const char *path,\n"
30915 "                  int64_t atsecs,\n"
30916 "                  int64_t atnsecs,\n"
30917 "                  int64_t mtsecs,\n"
30918 "                  int64_t mtnsecs);\n"
30919 "\n"
30920 msgstr ""
30921
30922 #. type: =head2
30923 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
30924 msgid "guestfs_version"
30925 msgstr ""
30926
30927 #. type: verbatim
30928 #: ../src/guestfs-actions.pod:7312
30929 #, no-wrap
30930 msgid ""
30931 " struct guestfs_version *\n"
30932 " guestfs_version (guestfs_h *g);\n"
30933 "\n"
30934 msgstr ""
30935
30936 #. type: textblock
30937 #: ../src/guestfs-actions.pod:7340
30938 msgid ""
30939 "I<Note:> Don't use this call to test for availability of features.  In "
30940 "enterprise distributions we backport features from later versions into "
30941 "earlier versions, making this an unreliable way to test for features.  Use "
30942 "C<guestfs_available> instead."
30943 msgstr ""
30944
30945 #. type: textblock
30946 #: ../src/guestfs-actions.pod:7346
30947 msgid ""
30948 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30949 "error.  I<The caller must call C<guestfs_free_version> after use>."
30950 msgstr ""
30951
30952 #. type: textblock
30953 #: ../src/guestfs-actions.pod:7350
30954 msgid "(Added in 1.0.58)"
30955 msgstr ""
30956
30957 #. type: =head2
30958 #: ../src/guestfs-actions.pod:7352
30959 msgid "guestfs_vfs_label"
30960 msgstr ""
30961
30962 #. type: verbatim
30963 #: ../src/guestfs-actions.pod:7354
30964 #, no-wrap
30965 msgid ""
30966 " char *\n"
30967 " guestfs_vfs_label (guestfs_h *g,\n"
30968 "                    const char *device);\n"
30969 "\n"
30970 msgstr ""
30971
30972 #. type: textblock
30973 #: ../src/guestfs-actions.pod:7363
30974 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30975 msgstr ""
30976
30977 #. type: textblock
30978 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
30979 msgid "(Added in 1.3.18)"
30980 msgstr ""
30981
30982 #. type: =head2
30983 #: ../src/guestfs-actions.pod:7370
30984 msgid "guestfs_vfs_type"
30985 msgstr ""
30986
30987 #. type: verbatim
30988 #: ../src/guestfs-actions.pod:7372
30989 #, no-wrap
30990 msgid ""
30991 " char *\n"
30992 " guestfs_vfs_type (guestfs_h *g,\n"
30993 "                   const char *device);\n"
30994 "\n"
30995 msgstr ""
30996
30997 #. type: =head2
30998 #: ../src/guestfs-actions.pod:7389
30999 msgid "guestfs_vfs_uuid"
31000 msgstr ""
31001
31002 #. type: verbatim
31003 #: ../src/guestfs-actions.pod:7391
31004 #, no-wrap
31005 msgid ""
31006 " char *\n"
31007 " guestfs_vfs_uuid (guestfs_h *g,\n"
31008 "                   const char *device);\n"
31009 "\n"
31010 msgstr ""
31011
31012 #. type: textblock
31013 #: ../src/guestfs-actions.pod:7400
31014 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31015 msgstr ""
31016
31017 #. type: =head2
31018 #: ../src/guestfs-actions.pod:7407
31019 msgid "guestfs_vg_activate"
31020 msgstr ""
31021
31022 #. type: verbatim
31023 #: ../src/guestfs-actions.pod:7409
31024 #, no-wrap
31025 msgid ""
31026 " int\n"
31027 " guestfs_vg_activate (guestfs_h *g,\n"
31028 "                      int activate,\n"
31029 "                      char *const *volgroups);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: =head2
31034 #: ../src/guestfs-actions.pod:7426
31035 msgid "guestfs_vg_activate_all"
31036 msgstr ""
31037
31038 #. type: verbatim
31039 #: ../src/guestfs-actions.pod:7428
31040 #, no-wrap
31041 msgid ""
31042 " int\n"
31043 " guestfs_vg_activate_all (guestfs_h *g,\n"
31044 "                          int activate);\n"
31045 "\n"
31046 msgstr ""
31047
31048 #. type: =head2
31049 #: ../src/guestfs-actions.pod:7441
31050 msgid "guestfs_vgcreate"
31051 msgstr ""
31052
31053 #. type: verbatim
31054 #: ../src/guestfs-actions.pod:7443
31055 #, no-wrap
31056 msgid ""
31057 " int\n"
31058 " guestfs_vgcreate (guestfs_h *g,\n"
31059 "                   const char *volgroup,\n"
31060 "                   char *const *physvols);\n"
31061 "\n"
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs-actions.pod:7455
31066 msgid "guestfs_vglvuuids"
31067 msgstr ""
31068
31069 #. type: verbatim
31070 #: ../src/guestfs-actions.pod:7457
31071 #, no-wrap
31072 msgid ""
31073 " char **\n"
31074 " guestfs_vglvuuids (guestfs_h *g,\n"
31075 "                    const char *vgname);\n"
31076 "\n"
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs-actions.pod:7464
31081 msgid ""
31082 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31083 "associate logical volumes and volume groups."
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs-actions.pod:7467
31088 msgid "See also C<guestfs_vgpvuuids>."
31089 msgstr ""
31090
31091 #. type: =head2
31092 #: ../src/guestfs-actions.pod:7475
31093 msgid "guestfs_vgpvuuids"
31094 msgstr ""
31095
31096 #. type: verbatim
31097 #: ../src/guestfs-actions.pod:7477
31098 #, no-wrap
31099 msgid ""
31100 " char **\n"
31101 " guestfs_vgpvuuids (guestfs_h *g,\n"
31102 "                    const char *vgname);\n"
31103 "\n"
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs-actions.pod:7484
31108 msgid ""
31109 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31110 "associate physical volumes and volume groups."
31111 msgstr ""
31112
31113 #. type: textblock
31114 #: ../src/guestfs-actions.pod:7487
31115 msgid "See also C<guestfs_vglvuuids>."
31116 msgstr ""
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:7495
31120 msgid "guestfs_vgremove"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:7497
31125 #, no-wrap
31126 msgid ""
31127 " int\n"
31128 " guestfs_vgremove (guestfs_h *g,\n"
31129 "                   const char *vgname);\n"
31130 "\n"
31131 msgstr ""
31132
31133 #. type: =head2
31134 #: ../src/guestfs-actions.pod:7510
31135 msgid "guestfs_vgrename"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-actions.pod:7512
31140 #, no-wrap
31141 msgid ""
31142 " int\n"
31143 " guestfs_vgrename (guestfs_h *g,\n"
31144 "                   const char *volgroup,\n"
31145 "                   const char *newvolgroup);\n"
31146 "\n"
31147 msgstr ""
31148
31149 #. type: =head2
31150 #: ../src/guestfs-actions.pod:7523
31151 msgid "guestfs_vgs"
31152 msgstr ""
31153
31154 #. type: verbatim
31155 #: ../src/guestfs-actions.pod:7525
31156 #, no-wrap
31157 msgid ""
31158 " char **\n"
31159 " guestfs_vgs (guestfs_h *g);\n"
31160 "\n"
31161 msgstr ""
31162
31163 #. type: textblock
31164 #: ../src/guestfs-actions.pod:7534
31165 msgid "See also C<guestfs_vgs_full>."
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:7542
31170 msgid "guestfs_vgs_full"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:7544
31175 #, no-wrap
31176 msgid ""
31177 " struct guestfs_lvm_vg_list *\n"
31178 " guestfs_vgs_full (guestfs_h *g);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: textblock
31183 #: ../src/guestfs-actions.pod:7550
31184 msgid ""
31185 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31186 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31187 msgstr ""
31188
31189 #. type: =head2
31190 #: ../src/guestfs-actions.pod:7556
31191 msgid "guestfs_vgscan"
31192 msgstr ""
31193
31194 #. type: verbatim
31195 #: ../src/guestfs-actions.pod:7558
31196 #, no-wrap
31197 msgid ""
31198 " int\n"
31199 " guestfs_vgscan (guestfs_h *g);\n"
31200 "\n"
31201 msgstr ""
31202
31203 #. type: =head2
31204 #: ../src/guestfs-actions.pod:7568
31205 msgid "guestfs_vguuid"
31206 msgstr ""
31207
31208 #. type: verbatim
31209 #: ../src/guestfs-actions.pod:7570
31210 #, no-wrap
31211 msgid ""
31212 " char *\n"
31213 " guestfs_vguuid (guestfs_h *g,\n"
31214 "                 const char *vgname);\n"
31215 "\n"
31216 msgstr ""
31217
31218 #. type: =head2
31219 #: ../src/guestfs-actions.pod:7581
31220 msgid "guestfs_wait_ready"
31221 msgstr ""
31222
31223 #. type: verbatim
31224 #: ../src/guestfs-actions.pod:7583
31225 #, no-wrap
31226 msgid ""
31227 " int\n"
31228 " guestfs_wait_ready (guestfs_h *g);\n"
31229 "\n"
31230 msgstr ""
31231
31232 #. type: textblock
31233 #: ../src/guestfs-actions.pod:7586
31234 msgid ""
31235 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31236 "instead."
31237 msgstr ""
31238
31239 #. type: textblock
31240 #: ../src/guestfs-actions.pod:7593
31241 msgid "This function is a no op."
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs-actions.pod:7595
31246 msgid ""
31247 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31248 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31249 "is no longer necessary because C<guestfs_launch> now does the waiting."
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs-actions.pod:7600
31254 msgid ""
31255 "If you see any calls to this function in code then you can just remove them, "
31256 "unless you want to retain compatibility with older versions of the API."
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs-actions.pod:7608
31261 msgid "guestfs_wc_c"
31262 msgstr ""
31263
31264 #. type: verbatim
31265 #: ../src/guestfs-actions.pod:7610
31266 #, no-wrap
31267 msgid ""
31268 " int\n"
31269 " guestfs_wc_c (guestfs_h *g,\n"
31270 "               const char *path);\n"
31271 "\n"
31272 msgstr ""
31273
31274 #. type: =head2
31275 #: ../src/guestfs-actions.pod:7621
31276 msgid "guestfs_wc_l"
31277 msgstr ""
31278
31279 #. type: verbatim
31280 #: ../src/guestfs-actions.pod:7623
31281 #, no-wrap
31282 msgid ""
31283 " int\n"
31284 " guestfs_wc_l (guestfs_h *g,\n"
31285 "               const char *path);\n"
31286 "\n"
31287 msgstr ""
31288
31289 #. type: =head2
31290 #: ../src/guestfs-actions.pod:7634
31291 msgid "guestfs_wc_w"
31292 msgstr ""
31293
31294 #. type: verbatim
31295 #: ../src/guestfs-actions.pod:7636
31296 #, no-wrap
31297 msgid ""
31298 " int\n"
31299 " guestfs_wc_w (guestfs_h *g,\n"
31300 "               const char *path);\n"
31301 "\n"
31302 msgstr ""
31303
31304 #. type: =head2
31305 #: ../src/guestfs-actions.pod:7647
31306 msgid "guestfs_write"
31307 msgstr ""
31308
31309 #. type: verbatim
31310 #: ../src/guestfs-actions.pod:7649
31311 #, no-wrap
31312 msgid ""
31313 " int\n"
31314 " guestfs_write (guestfs_h *g,\n"
31315 "                const char *path,\n"
31316 "                const char *content,\n"
31317 "                size_t content_size);\n"
31318 "\n"
31319 msgstr ""
31320
31321 #. type: textblock
31322 #: ../src/guestfs-actions.pod:7658
31323 msgid "See also C<guestfs_write_append>."
31324 msgstr ""
31325
31326 #. type: =head2
31327 #: ../src/guestfs-actions.pod:7667
31328 msgid "guestfs_write_append"
31329 msgstr ""
31330
31331 #. type: verbatim
31332 #: ../src/guestfs-actions.pod:7669
31333 #, no-wrap
31334 msgid ""
31335 " int\n"
31336 " guestfs_write_append (guestfs_h *g,\n"
31337 "                       const char *path,\n"
31338 "                       const char *content,\n"
31339 "                       size_t content_size);\n"
31340 "\n"
31341 msgstr ""
31342
31343 #. type: textblock
31344 #: ../src/guestfs-actions.pod:7678
31345 msgid "See also C<guestfs_write>."
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:7687
31350 msgid "guestfs_write_file"
31351 msgstr "guestfs_write_file"
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:7689
31355 #, no-wrap
31356 msgid ""
31357 " int\n"
31358 " guestfs_write_file (guestfs_h *g,\n"
31359 "                     const char *path,\n"
31360 "                     const char *content,\n"
31361 "                     int size);\n"
31362 "\n"
31363 msgstr ""
31364 " int\n"
31365 " guestfs_write_file (guestfs_h *g,\n"
31366 "                     const char *path,\n"
31367 "                     const char *content,\n"
31368 "                     int size);\n"
31369 "\n"
31370
31371 #. type: textblock
31372 #: ../src/guestfs-actions.pod:7695
31373 msgid ""
31374 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31375 "instead."
31376 msgstr ""
31377
31378 #. type: =head2
31379 #: ../src/guestfs-actions.pod:7720
31380 msgid "guestfs_zegrep"
31381 msgstr "guestfs_zegrep"
31382
31383 #. type: verbatim
31384 #: ../src/guestfs-actions.pod:7722
31385 #, no-wrap
31386 msgid ""
31387 " char **\n"
31388 " guestfs_zegrep (guestfs_h *g,\n"
31389 "                 const char *regex,\n"
31390 "                 const char *path);\n"
31391 "\n"
31392 msgstr ""
31393 " char **\n"
31394 " guestfs_zegrep (guestfs_h *g,\n"
31395 "                 const char *regex,\n"
31396 "                 const char *path);\n"
31397 "\n"
31398
31399 #. type: =head2
31400 #: ../src/guestfs-actions.pod:7739
31401 msgid "guestfs_zegrepi"
31402 msgstr "guestfs_zegrepi"
31403
31404 #. type: verbatim
31405 #: ../src/guestfs-actions.pod:7741
31406 #, no-wrap
31407 msgid ""
31408 " char **\n"
31409 " guestfs_zegrepi (guestfs_h *g,\n"
31410 "                  const char *regex,\n"
31411 "                  const char *path);\n"
31412 "\n"
31413 msgstr ""
31414 " char **\n"
31415 " guestfs_zegrepi (guestfs_h *g,\n"
31416 "                  const char *regex,\n"
31417 "                  const char *path);\n"
31418 "\n"
31419
31420 #. type: =head2
31421 #: ../src/guestfs-actions.pod:7758
31422 msgid "guestfs_zero"
31423 msgstr "guestfs_zero"
31424
31425 #. type: verbatim
31426 #: ../src/guestfs-actions.pod:7760
31427 #, no-wrap
31428 msgid ""
31429 " int\n"
31430 " guestfs_zero (guestfs_h *g,\n"
31431 "               const char *device);\n"
31432 "\n"
31433 msgstr ""
31434 " int\n"
31435 " guestfs_zero (guestfs_h *g,\n"
31436 "               const char *device);\n"
31437 "\n"
31438
31439 #. type: textblock
31440 #: ../src/guestfs-actions.pod:7770
31441 msgid ""
31442 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31443 "C<guestfs_is_zero_device>"
31444 msgstr ""
31445
31446 #. type: =head2
31447 #: ../src/guestfs-actions.pod:7782
31448 msgid "guestfs_zero_device"
31449 msgstr "guestfs_zero_device"
31450
31451 #. type: verbatim
31452 #: ../src/guestfs-actions.pod:7784
31453 #, no-wrap
31454 msgid ""
31455 " int\n"
31456 " guestfs_zero_device (guestfs_h *g,\n"
31457 "                      const char *device);\n"
31458 "\n"
31459 msgstr ""
31460 " int\n"
31461 " guestfs_zero_device (guestfs_h *g,\n"
31462 "                      const char *device);\n"
31463 "\n"
31464
31465 #. type: textblock
31466 #: ../src/guestfs-actions.pod:7788
31467 msgid ""
31468 "This command writes zeroes over the entire C<device>.  Compare with "
31469 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31470 msgstr ""
31471
31472 #. type: textblock
31473 #: ../src/guestfs-actions.pod:7802
31474 msgid "(Added in 1.3.1)"
31475 msgstr "(Додано у 1.3.1)"
31476
31477 #. type: =head2
31478 #: ../src/guestfs-actions.pod:7804
31479 msgid "guestfs_zerofree"
31480 msgstr "guestfs_zerofree"
31481
31482 #. type: verbatim
31483 #: ../src/guestfs-actions.pod:7806
31484 #, no-wrap
31485 msgid ""
31486 " int\n"
31487 " guestfs_zerofree (guestfs_h *g,\n"
31488 "                   const char *device);\n"
31489 "\n"
31490 msgstr ""
31491 " int\n"
31492 " guestfs_zerofree (guestfs_h *g,\n"
31493 "                   const char *device);\n"
31494 "\n"
31495
31496 #. type: =head2
31497 #: ../src/guestfs-actions.pod:7825
31498 msgid "guestfs_zfgrep"
31499 msgstr "guestfs_zfgrep"
31500
31501 #. type: verbatim
31502 #: ../src/guestfs-actions.pod:7827
31503 #, no-wrap
31504 msgid ""
31505 " char **\n"
31506 " guestfs_zfgrep (guestfs_h *g,\n"
31507 "                 const char *pattern,\n"
31508 "                 const char *path);\n"
31509 "\n"
31510 msgstr ""
31511 " char **\n"
31512 " guestfs_zfgrep (guestfs_h *g,\n"
31513 "                 const char *pattern,\n"
31514 "                 const char *path);\n"
31515 "\n"
31516
31517 #. type: =head2
31518 #: ../src/guestfs-actions.pod:7844
31519 msgid "guestfs_zfgrepi"
31520 msgstr "guestfs_zfgrepi"
31521
31522 #. type: verbatim
31523 #: ../src/guestfs-actions.pod:7846
31524 #, no-wrap
31525 msgid ""
31526 " char **\n"
31527 " guestfs_zfgrepi (guestfs_h *g,\n"
31528 "                  const char *pattern,\n"
31529 "                  const char *path);\n"
31530 "\n"
31531 msgstr ""
31532 " char **\n"
31533 " guestfs_zfgrepi (guestfs_h *g,\n"
31534 "                  const char *pattern,\n"
31535 "                  const char *path);\n"
31536 "\n"
31537
31538 #. type: =head2
31539 #: ../src/guestfs-actions.pod:7863
31540 msgid "guestfs_zfile"
31541 msgstr "guestfs_zfile"
31542
31543 #. type: verbatim
31544 #: ../src/guestfs-actions.pod:7865
31545 #, no-wrap
31546 msgid ""
31547 " char *\n"
31548 " guestfs_zfile (guestfs_h *g,\n"
31549 "                const char *meth,\n"
31550 "                const char *path);\n"
31551 "\n"
31552 msgstr ""
31553 " char *\n"
31554 " guestfs_zfile (guestfs_h *g,\n"
31555 "                const char *meth,\n"
31556 "                const char *path);\n"
31557 "\n"
31558
31559 #. type: textblock
31560 #: ../src/guestfs-actions.pod:7870
31561 msgid ""
31562 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31563 "instead."
31564 msgstr ""
31565
31566 #. type: textblock
31567 #: ../src/guestfs-actions.pod:7882
31568 msgid ""
31569 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31570 "files."
31571 msgstr ""
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:7890
31575 msgid "guestfs_zgrep"
31576 msgstr "guestfs_zgrep"
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:7892
31580 #, no-wrap
31581 msgid ""
31582 " char **\n"
31583 " guestfs_zgrep (guestfs_h *g,\n"
31584 "                const char *regex,\n"
31585 "                const char *path);\n"
31586 "\n"
31587 msgstr ""
31588 " char **\n"
31589 " guestfs_zgrep (guestfs_h *g,\n"
31590 "                const char *regex,\n"
31591 "                const char *path);\n"
31592 "\n"
31593
31594 #. type: =head2
31595 #: ../src/guestfs-actions.pod:7909
31596 msgid "guestfs_zgrepi"
31597 msgstr "guestfs_zgrepi"
31598
31599 #. type: verbatim
31600 #: ../src/guestfs-actions.pod:7911
31601 #, no-wrap
31602 msgid ""
31603 " char **\n"
31604 " guestfs_zgrepi (guestfs_h *g,\n"
31605 "                 const char *regex,\n"
31606 "                 const char *path);\n"
31607 "\n"
31608 msgstr ""
31609 " char **\n"
31610 " guestfs_zgrepi (guestfs_h *g,\n"
31611 "                 const char *regex,\n"
31612 "                 const char *path);\n"
31613 "\n"
31614
31615 #. type: =item
31616 #: ../src/guestfs-availability.pod:3
31617 msgid "B<augeas>"
31618 msgstr "B<augeas>"
31619
31620 #. type: textblock
31621 #: ../src/guestfs-availability.pod:5
31622 msgid ""
31623 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31624 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31625 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31626 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31627 "L</guestfs_aug_save> L</guestfs_aug_set>"
31628 msgstr ""
31629
31630 #. type: =item
31631 #: ../src/guestfs-availability.pod:21
31632 msgid "B<btrfs>"
31633 msgstr ""
31634
31635 #. type: textblock
31636 #: ../src/guestfs-availability.pod:23
31637 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31638 msgstr ""
31639
31640 #. type: =item
31641 #: ../src/guestfs-availability.pod:26
31642 msgid "B<inotify>"
31643 msgstr "B<inotify>"
31644
31645 #. type: textblock
31646 #: ../src/guestfs-availability.pod:28
31647 msgid ""
31648 "The following functions: L</guestfs_inotify_add_watch> L</"
31649 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31650 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31651 msgstr ""
31652
31653 #. type: =item
31654 #: ../src/guestfs-availability.pod:36
31655 msgid "B<linuxfsuuid>"
31656 msgstr "B<linuxfsuuid>"
31657
31658 #. type: textblock
31659 #: ../src/guestfs-availability.pod:38
31660 msgid ""
31661 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31662 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31663 msgstr ""
31664
31665 #. type: =item
31666 #: ../src/guestfs-availability.pod:45
31667 msgid "B<linuxmodules>"
31668 msgstr "B<linuxmodules>"
31669
31670 #. type: textblock
31671 #: ../src/guestfs-availability.pod:47
31672 msgid "The following functions: L</guestfs_modprobe>"
31673 msgstr ""
31674
31675 #. type: =item
31676 #: ../src/guestfs-availability.pod:50
31677 msgid "B<linuxxattrs>"
31678 msgstr "B<linuxxattrs>"
31679
31680 #. type: textblock
31681 #: ../src/guestfs-availability.pod:52
31682 msgid ""
31683 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31684 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31685 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31686 "guestfs_setxattr>"
31687 msgstr ""
31688
31689 #. type: =item
31690 #: ../src/guestfs-availability.pod:63
31691 msgid "B<luks>"
31692 msgstr "B<luks>"
31693
31694 #. type: textblock
31695 #: ../src/guestfs-availability.pod:65
31696 msgid ""
31697 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31698 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31699 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31700 msgstr ""
31701
31702 #. type: =item
31703 #: ../src/guestfs-availability.pod:74
31704 msgid "B<lvm2>"
31705 msgstr "B<lvm2>"
31706
31707 #. type: textblock
31708 #: ../src/guestfs-availability.pod:76
31709 msgid ""
31710 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31711 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31712 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31713 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31714 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31715 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31716 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31717 msgstr ""
31718
31719 #. type: =item
31720 #: ../src/guestfs-availability.pod:99
31721 msgid "B<mknod>"
31722 msgstr "B<mknod>"
31723
31724 #. type: textblock
31725 #: ../src/guestfs-availability.pod:101
31726 msgid ""
31727 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31728 "guestfs_mknod_b> L</guestfs_mknod_c>"
31729 msgstr ""
31730
31731 #. type: =item
31732 #: ../src/guestfs-availability.pod:107
31733 msgid "B<ntfs3g>"
31734 msgstr "B<ntfs3g>"
31735
31736 #. type: textblock
31737 #: ../src/guestfs-availability.pod:109
31738 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31739 msgstr ""
31740
31741 #. type: =item
31742 #: ../src/guestfs-availability.pod:112
31743 msgid "B<ntfsprogs>"
31744 msgstr "B<ntfsprogs>"
31745
31746 #. type: textblock
31747 #: ../src/guestfs-availability.pod:114
31748 msgid ""
31749 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31750 "L</guestfs_ntfsresize_size>"
31751 msgstr ""
31752
31753 #. type: =item
31754 #: ../src/guestfs-availability.pod:119
31755 msgid "B<realpath>"
31756 msgstr "B<realpath>"
31757
31758 #. type: textblock
31759 #: ../src/guestfs-availability.pod:121
31760 msgid "The following functions: L</guestfs_realpath>"
31761 msgstr ""
31762
31763 #. type: =item
31764 #: ../src/guestfs-availability.pod:124
31765 msgid "B<scrub>"
31766 msgstr "B<scrub>"
31767
31768 #. type: textblock
31769 #: ../src/guestfs-availability.pod:126
31770 msgid ""
31771 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31772 "guestfs_scrub_freespace>"
31773 msgstr ""
31774
31775 #. type: =item
31776 #: ../src/guestfs-availability.pod:131
31777 msgid "B<selinux>"
31778 msgstr "B<selinux>"
31779
31780 #. type: textblock
31781 #: ../src/guestfs-availability.pod:133
31782 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31783 msgstr ""
31784
31785 #. type: =item
31786 #: ../src/guestfs-availability.pod:137
31787 msgid "B<xz>"
31788 msgstr "B<xz>"
31789
31790 #. type: textblock
31791 #: ../src/guestfs-availability.pod:139
31792 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31793 msgstr ""
31794
31795 #. type: =item
31796 #: ../src/guestfs-availability.pod:143
31797 msgid "B<zerofree>"
31798 msgstr "B<zerofree>"
31799
31800 #. type: textblock
31801 #: ../src/guestfs-availability.pod:145
31802 msgid "The following functions: L</guestfs_zerofree>"
31803 msgstr ""
31804
31805 #. type: =head2
31806 #: ../src/guestfs-structs.pod:1
31807 msgid "guestfs_int_bool"
31808 msgstr ""
31809
31810 #. type: verbatim
31811 #: ../src/guestfs-structs.pod:3
31812 #, no-wrap
31813 msgid ""
31814 " struct guestfs_int_bool {\n"
31815 "   int32_t i;\n"
31816 "   int32_t b;\n"
31817 " };\n"
31818 " \n"
31819 msgstr ""
31820
31821 #. type: verbatim
31822 #: ../src/guestfs-structs.pod:8
31823 #, no-wrap
31824 msgid ""
31825 " struct guestfs_int_bool_list {\n"
31826 "   uint32_t len; /* Number of elements in list. */\n"
31827 "   struct guestfs_int_bool *val; /* Elements. */\n"
31828 " };\n"
31829 " \n"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs-structs.pod:13
31834 #, no-wrap
31835 msgid ""
31836 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31837 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31838 "\n"
31839 msgstr ""
31840
31841 #. type: =head2
31842 #: ../src/guestfs-structs.pod:16
31843 msgid "guestfs_lvm_pv"
31844 msgstr ""
31845
31846 #. type: verbatim
31847 #: ../src/guestfs-structs.pod:18
31848 #, no-wrap
31849 msgid ""
31850 " struct guestfs_lvm_pv {\n"
31851 "   char *pv_name;\n"
31852 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31853 "   char pv_uuid[32];\n"
31854 "   char *pv_fmt;\n"
31855 "   uint64_t pv_size;\n"
31856 "   uint64_t dev_size;\n"
31857 "   uint64_t pv_free;\n"
31858 "   uint64_t pv_used;\n"
31859 "   char *pv_attr;\n"
31860 "   int64_t pv_pe_count;\n"
31861 "   int64_t pv_pe_alloc_count;\n"
31862 "   char *pv_tags;\n"
31863 "   uint64_t pe_start;\n"
31864 "   int64_t pv_mda_count;\n"
31865 "   uint64_t pv_mda_free;\n"
31866 " };\n"
31867 " \n"
31868 msgstr ""
31869
31870 #. type: verbatim
31871 #: ../src/guestfs-structs.pod:36
31872 #, no-wrap
31873 msgid ""
31874 " struct guestfs_lvm_pv_list {\n"
31875 "   uint32_t len; /* Number of elements in list. */\n"
31876 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31877 " };\n"
31878 " \n"
31879 msgstr ""
31880
31881 #. type: verbatim
31882 #: ../src/guestfs-structs.pod:41
31883 #, no-wrap
31884 msgid ""
31885 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31886 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31887 "\n"
31888 msgstr ""
31889
31890 #. type: =head2
31891 #: ../src/guestfs-structs.pod:44
31892 msgid "guestfs_lvm_vg"
31893 msgstr ""
31894
31895 #. type: verbatim
31896 #: ../src/guestfs-structs.pod:46
31897 #, no-wrap
31898 msgid ""
31899 " struct guestfs_lvm_vg {\n"
31900 "   char *vg_name;\n"
31901 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31902 "   char vg_uuid[32];\n"
31903 "   char *vg_fmt;\n"
31904 "   char *vg_attr;\n"
31905 "   uint64_t vg_size;\n"
31906 "   uint64_t vg_free;\n"
31907 "   char *vg_sysid;\n"
31908 "   uint64_t vg_extent_size;\n"
31909 "   int64_t vg_extent_count;\n"
31910 "   int64_t vg_free_count;\n"
31911 "   int64_t max_lv;\n"
31912 "   int64_t max_pv;\n"
31913 "   int64_t pv_count;\n"
31914 "   int64_t lv_count;\n"
31915 "   int64_t snap_count;\n"
31916 "   int64_t vg_seqno;\n"
31917 "   char *vg_tags;\n"
31918 "   int64_t vg_mda_count;\n"
31919 "   uint64_t vg_mda_free;\n"
31920 " };\n"
31921 " \n"
31922 msgstr ""
31923
31924 #. type: verbatim
31925 #: ../src/guestfs-structs.pod:69
31926 #, no-wrap
31927 msgid ""
31928 " struct guestfs_lvm_vg_list {\n"
31929 "   uint32_t len; /* Number of elements in list. */\n"
31930 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31931 " };\n"
31932 " \n"
31933 msgstr ""
31934
31935 #. type: verbatim
31936 #: ../src/guestfs-structs.pod:74
31937 #, no-wrap
31938 msgid ""
31939 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31940 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31941 "\n"
31942 msgstr ""
31943
31944 #. type: =head2
31945 #: ../src/guestfs-structs.pod:77
31946 msgid "guestfs_lvm_lv"
31947 msgstr ""
31948
31949 #. type: verbatim
31950 #: ../src/guestfs-structs.pod:79
31951 #, no-wrap
31952 msgid ""
31953 " struct guestfs_lvm_lv {\n"
31954 "   char *lv_name;\n"
31955 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31956 "   char lv_uuid[32];\n"
31957 "   char *lv_attr;\n"
31958 "   int64_t lv_major;\n"
31959 "   int64_t lv_minor;\n"
31960 "   int64_t lv_kernel_major;\n"
31961 "   int64_t lv_kernel_minor;\n"
31962 "   uint64_t lv_size;\n"
31963 "   int64_t seg_count;\n"
31964 "   char *origin;\n"
31965 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31966 "   float snap_percent;\n"
31967 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31968 "   float copy_percent;\n"
31969 "   char *move_pv;\n"
31970 "   char *lv_tags;\n"
31971 "   char *mirror_log;\n"
31972 "   char *modules;\n"
31973 " };\n"
31974 " \n"
31975 msgstr ""
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-structs.pod:101
31979 #, no-wrap
31980 msgid ""
31981 " struct guestfs_lvm_lv_list {\n"
31982 "   uint32_t len; /* Number of elements in list. */\n"
31983 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31984 " };\n"
31985 " \n"
31986 msgstr ""
31987
31988 #. type: verbatim
31989 #: ../src/guestfs-structs.pod:106
31990 #, no-wrap
31991 msgid ""
31992 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31993 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31994 "\n"
31995 msgstr ""
31996
31997 #. type: verbatim
31998 #: ../src/guestfs-structs.pod:111
31999 #, no-wrap
32000 msgid ""
32001 " struct guestfs_stat {\n"
32002 "   int64_t dev;\n"
32003 "   int64_t ino;\n"
32004 "   int64_t mode;\n"
32005 "   int64_t nlink;\n"
32006 "   int64_t uid;\n"
32007 "   int64_t gid;\n"
32008 "   int64_t rdev;\n"
32009 "   int64_t size;\n"
32010 "   int64_t blksize;\n"
32011 "   int64_t blocks;\n"
32012 "   int64_t atime;\n"
32013 "   int64_t mtime;\n"
32014 "   int64_t ctime;\n"
32015 " };\n"
32016 " \n"
32017 msgstr ""
32018
32019 #. type: verbatim
32020 #: ../src/guestfs-structs.pod:127
32021 #, no-wrap
32022 msgid ""
32023 " struct guestfs_stat_list {\n"
32024 "   uint32_t len; /* Number of elements in list. */\n"
32025 "   struct guestfs_stat *val; /* Elements. */\n"
32026 " };\n"
32027 " \n"
32028 msgstr ""
32029
32030 #. type: verbatim
32031 #: ../src/guestfs-structs.pod:132
32032 #, no-wrap
32033 msgid ""
32034 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32035 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32036 "\n"
32037 msgstr ""
32038
32039 #. type: verbatim
32040 #: ../src/guestfs-structs.pod:137
32041 #, no-wrap
32042 msgid ""
32043 " struct guestfs_statvfs {\n"
32044 "   int64_t bsize;\n"
32045 "   int64_t frsize;\n"
32046 "   int64_t blocks;\n"
32047 "   int64_t bfree;\n"
32048 "   int64_t bavail;\n"
32049 "   int64_t files;\n"
32050 "   int64_t ffree;\n"
32051 "   int64_t favail;\n"
32052 "   int64_t fsid;\n"
32053 "   int64_t flag;\n"
32054 "   int64_t namemax;\n"
32055 " };\n"
32056 " \n"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs-structs.pod:151
32061 #, no-wrap
32062 msgid ""
32063 " struct guestfs_statvfs_list {\n"
32064 "   uint32_t len; /* Number of elements in list. */\n"
32065 "   struct guestfs_statvfs *val; /* Elements. */\n"
32066 " };\n"
32067 " \n"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../src/guestfs-structs.pod:156
32072 #, no-wrap
32073 msgid ""
32074 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32075 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32076 "\n"
32077 msgstr ""
32078
32079 #. type: =head2
32080 #: ../src/guestfs-structs.pod:159
32081 msgid "guestfs_dirent"
32082 msgstr ""
32083
32084 #. type: verbatim
32085 #: ../src/guestfs-structs.pod:161
32086 #, no-wrap
32087 msgid ""
32088 " struct guestfs_dirent {\n"
32089 "   int64_t ino;\n"
32090 "   char ftyp;\n"
32091 "   char *name;\n"
32092 " };\n"
32093 " \n"
32094 msgstr ""
32095
32096 #. type: verbatim
32097 #: ../src/guestfs-structs.pod:167
32098 #, no-wrap
32099 msgid ""
32100 " struct guestfs_dirent_list {\n"
32101 "   uint32_t len; /* Number of elements in list. */\n"
32102 "   struct guestfs_dirent *val; /* Elements. */\n"
32103 " };\n"
32104 " \n"
32105 msgstr ""
32106
32107 #. type: verbatim
32108 #: ../src/guestfs-structs.pod:172
32109 #, no-wrap
32110 msgid ""
32111 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32112 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32113 "\n"
32114 msgstr ""
32115
32116 #. type: verbatim
32117 #: ../src/guestfs-structs.pod:177
32118 #, no-wrap
32119 msgid ""
32120 " struct guestfs_version {\n"
32121 "   int64_t major;\n"
32122 "   int64_t minor;\n"
32123 "   int64_t release;\n"
32124 "   char *extra;\n"
32125 " };\n"
32126 " \n"
32127 msgstr ""
32128
32129 #. type: verbatim
32130 #: ../src/guestfs-structs.pod:184
32131 #, no-wrap
32132 msgid ""
32133 " struct guestfs_version_list {\n"
32134 "   uint32_t len; /* Number of elements in list. */\n"
32135 "   struct guestfs_version *val; /* Elements. */\n"
32136 " };\n"
32137 " \n"
32138 msgstr ""
32139
32140 #. type: verbatim
32141 #: ../src/guestfs-structs.pod:189
32142 #, no-wrap
32143 msgid ""
32144 " void guestfs_free_version (struct guestfs_free_version *);\n"
32145 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32146 "\n"
32147 msgstr ""
32148
32149 #. type: =head2
32150 #: ../src/guestfs-structs.pod:192
32151 msgid "guestfs_xattr"
32152 msgstr ""
32153
32154 #. type: verbatim
32155 #: ../src/guestfs-structs.pod:194
32156 #, no-wrap
32157 msgid ""
32158 " struct guestfs_xattr {\n"
32159 "   char *attrname;\n"
32160 "   /* The next two fields describe a byte array. */\n"
32161 "   uint32_t attrval_len;\n"
32162 "   char *attrval;\n"
32163 " };\n"
32164 " \n"
32165 msgstr ""
32166
32167 #. type: verbatim
32168 #: ../src/guestfs-structs.pod:201
32169 #, no-wrap
32170 msgid ""
32171 " struct guestfs_xattr_list {\n"
32172 "   uint32_t len; /* Number of elements in list. */\n"
32173 "   struct guestfs_xattr *val; /* Elements. */\n"
32174 " };\n"
32175 " \n"
32176 msgstr ""
32177
32178 #. type: verbatim
32179 #: ../src/guestfs-structs.pod:206
32180 #, no-wrap
32181 msgid ""
32182 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32183 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32184 "\n"
32185 msgstr ""
32186
32187 #. type: =head2
32188 #: ../src/guestfs-structs.pod:209
32189 msgid "guestfs_inotify_event"
32190 msgstr ""
32191
32192 #. type: verbatim
32193 #: ../src/guestfs-structs.pod:211
32194 #, no-wrap
32195 msgid ""
32196 " struct guestfs_inotify_event {\n"
32197 "   int64_t in_wd;\n"
32198 "   uint32_t in_mask;\n"
32199 "   uint32_t in_cookie;\n"
32200 "   char *in_name;\n"
32201 " };\n"
32202 " \n"
32203 msgstr ""
32204
32205 #. type: verbatim
32206 #: ../src/guestfs-structs.pod:218
32207 #, no-wrap
32208 msgid ""
32209 " struct guestfs_inotify_event_list {\n"
32210 "   uint32_t len; /* Number of elements in list. */\n"
32211 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32212 " };\n"
32213 " \n"
32214 msgstr ""
32215
32216 #. type: verbatim
32217 #: ../src/guestfs-structs.pod:223
32218 #, no-wrap
32219 msgid ""
32220 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32221 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-structs.pod:226
32227 msgid "guestfs_partition"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-structs.pod:228
32232 #, no-wrap
32233 msgid ""
32234 " struct guestfs_partition {\n"
32235 "   int32_t part_num;\n"
32236 "   uint64_t part_start;\n"
32237 "   uint64_t part_end;\n"
32238 "   uint64_t part_size;\n"
32239 " };\n"
32240 " \n"
32241 msgstr ""
32242
32243 #. type: verbatim
32244 #: ../src/guestfs-structs.pod:235
32245 #, no-wrap
32246 msgid ""
32247 " struct guestfs_partition_list {\n"
32248 "   uint32_t len; /* Number of elements in list. */\n"
32249 "   struct guestfs_partition *val; /* Elements. */\n"
32250 " };\n"
32251 " \n"
32252 msgstr ""
32253
32254 #. type: verbatim
32255 #: ../src/guestfs-structs.pod:240
32256 #, no-wrap
32257 msgid ""
32258 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32259 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32260 "\n"
32261 msgstr ""
32262
32263 #. type: =head2
32264 #: ../src/guestfs-structs.pod:243
32265 msgid "guestfs_application"
32266 msgstr ""
32267
32268 #. type: verbatim
32269 #: ../src/guestfs-structs.pod:245
32270 #, no-wrap
32271 msgid ""
32272 " struct guestfs_application {\n"
32273 "   char *app_name;\n"
32274 "   char *app_display_name;\n"
32275 "   int32_t app_epoch;\n"
32276 "   char *app_version;\n"
32277 "   char *app_release;\n"
32278 "   char *app_install_path;\n"
32279 "   char *app_trans_path;\n"
32280 "   char *app_publisher;\n"
32281 "   char *app_url;\n"
32282 "   char *app_source_package;\n"
32283 "   char *app_summary;\n"
32284 "   char *app_description;\n"
32285 " };\n"
32286 " \n"
32287 msgstr ""
32288
32289 #. type: verbatim
32290 #: ../src/guestfs-structs.pod:260
32291 #, no-wrap
32292 msgid ""
32293 " struct guestfs_application_list {\n"
32294 "   uint32_t len; /* Number of elements in list. */\n"
32295 "   struct guestfs_application *val; /* Elements. */\n"
32296 " };\n"
32297 " \n"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-structs.pod:265
32302 #, no-wrap
32303 msgid ""
32304 " void guestfs_free_application (struct guestfs_free_application *);\n"
32305 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32306 "\n"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs.pod:5
32311 msgid "guestfs - Library for accessing and modifying virtual machine images"
32312 msgstr ""
32313 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32314 "машин"
32315
32316 #. type: verbatim
32317 #: ../src/guestfs.pod:11
32318 #, no-wrap
32319 msgid ""
32320 " guestfs_h *g = guestfs_create ();\n"
32321 " guestfs_add_drive (g, \"guest.img\");\n"
32322 " guestfs_launch (g);\n"
32323 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32324 " guestfs_touch (g, \"/hello\");\n"
32325 " guestfs_umount (g, \"/\");\n"
32326 " guestfs_close (g);\n"
32327 "\n"
32328 msgstr ""
32329 " guestfs_h *g = guestfs_create ();\n"
32330 " guestfs_add_drive (g, \"guest.img\");\n"
32331 " guestfs_launch (g);\n"
32332 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32333 " guestfs_touch (g, \"/hello\");\n"
32334 " guestfs_umount (g, \"/\");\n"
32335 " guestfs_close (g);\n"
32336 "\n"
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:25
32340 msgid ""
32341 "Libguestfs is a library for accessing and modifying guest disk images.  "
32342 "Amongst the things this is good for: making batch configuration changes to "
32343 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32344 "between virtualization systems (see also: virt-p2v), performing partial "
32345 "backups, performing partial guest clones, cloning guests and changing "
32346 "registry/UUID/hostname info, and much else besides."
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs.pod:33
32351 msgid ""
32352 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32353 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32354 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32355 "qcow2, vmdk."
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs.pod:38
32360 msgid ""
32361 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32362 "what filesystem is in each LV, etc.).  It can also run commands in the "
32363 "context of the guest.  Also you can access filesystems over FUSE."
32364 msgstr ""
32365
32366 #. type: textblock
32367 #: ../src/guestfs.pod:43
32368 msgid ""
32369 "Libguestfs is a library that can be linked with C and C++ management "
32370 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32371 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32372 "line."
32373 msgstr ""
32374
32375 #. type: textblock
32376 #: ../src/guestfs.pod:48
32377 msgid ""
32378 "You don't need to be root to use libguestfs, although obviously you do need "
32379 "enough permissions to access the disk images."
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:51
32384 msgid ""
32385 "Libguestfs is a large API because it can do many things.  For a gentle "
32386 "introduction, please read the L</API OVERVIEW> section next."
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs.pod:54
32391 msgid ""
32392 "There are also some example programs in the L<guestfs-examples(3)> manual "
32393 "page."
32394 msgstr ""
32395
32396 #. type: =head1
32397 #: ../src/guestfs.pod:57
32398 msgid "API OVERVIEW"
32399 msgstr "ОГЛЯД API"
32400
32401 #. type: textblock
32402 #: ../src/guestfs.pod:59
32403 msgid ""
32404 "This section provides a gentler overview of the libguestfs API.  We also try "
32405 "to group API calls together, where that may not be obvious from reading "
32406 "about the individual calls in the main section of this manual."
32407 msgstr ""
32408
32409 #. type: =head2
32410 #: ../src/guestfs.pod:64
32411 msgid "HANDLES"
32412 msgstr "ОБРОБНИКИ"
32413
32414 #. type: textblock
32415 #: ../src/guestfs.pod:66
32416 msgid ""
32417 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32418 "must add at least one disk image to the handle, followed by launching the "
32419 "handle, then performing whatever operations you want, and finally closing "
32420 "the handle.  By convention we use the single letter C<g> for the name of the "
32421 "handle variable, although of course you can use any name you want."
32422 msgstr ""
32423
32424 #. type: textblock
32425 #: ../src/guestfs.pod:73
32426 msgid "The general structure of all libguestfs-using programs looks like this:"
32427 msgstr ""
32428
32429 #. type: verbatim
32430 #: ../src/guestfs.pod:76
32431 #, no-wrap
32432 msgid ""
32433 " guestfs_h *g = guestfs_create ();\n"
32434 " \n"
32435 msgstr ""
32436 " guestfs_h *g = guestfs_create ();\n"
32437 " \n"
32438
32439 #. type: verbatim
32440 #: ../src/guestfs.pod:78
32441 #, no-wrap
32442 msgid ""
32443 " /* Call guestfs_add_drive additional times if there are\n"
32444 "  * multiple disk images.\n"
32445 "  */\n"
32446 " guestfs_add_drive (g, \"guest.img\");\n"
32447 " \n"
32448 msgstr ""
32449
32450 #. type: verbatim
32451 #: ../src/guestfs.pod:83
32452 #, no-wrap
32453 msgid ""
32454 " /* Most manipulation calls won't work until you've launched\n"
32455 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32456 "  * and _before_ other commands.\n"
32457 "  */\n"
32458 " guestfs_launch (g);\n"
32459 " \n"
32460 msgstr ""
32461
32462 #. type: verbatim
32463 #: ../src/guestfs.pod:89
32464 #, no-wrap
32465 msgid ""
32466 " /* Now you can examine what partitions, LVs etc are available.\n"
32467 "  */\n"
32468 " char **partitions = guestfs_list_partitions (g);\n"
32469 " char **logvols = guestfs_lvs (g);\n"
32470 " \n"
32471 msgstr ""
32472 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32473 "  */\n"
32474 " char **partitions = guestfs_list_partitions (g);\n"
32475 " char **logvols = guestfs_lvs (g);\n"
32476 " \n"
32477
32478 #. type: verbatim
32479 #: ../src/guestfs.pod:94
32480 #, no-wrap
32481 msgid ""
32482 " /* To access a filesystem in the image, you must mount it.\n"
32483 "  */\n"
32484 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32485 " \n"
32486 msgstr ""
32487 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32488 "  */\n"
32489 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32490 " \n"
32491
32492 #. type: verbatim
32493 #: ../src/guestfs.pod:98
32494 #, no-wrap
32495 msgid ""
32496 " /* Now you can perform filesystem actions on the guest\n"
32497 "  * disk image.\n"
32498 "  */\n"
32499 " guestfs_touch (g, \"/hello\");\n"
32500 " \n"
32501 msgstr ""
32502
32503 #. type: verbatim
32504 #: ../src/guestfs.pod:103
32505 #, no-wrap
32506 msgid ""
32507 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32508 "  * it is done automatically when you close the handle.  See\n"
32509 "  * discussion of autosync in this page.\n"
32510 "  */\n"
32511 " guestfs_sync (g);\n"
32512 " \n"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs.pod:109
32517 #, no-wrap
32518 msgid ""
32519 " /* Close the handle 'g'. */\n"
32520 " guestfs_close (g);\n"
32521 "\n"
32522 msgstr ""
32523 " /* Закрити дескриптор 'g'. */\n"
32524 " guestfs_close (g);\n"
32525 "\n"
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:112
32529 msgid ""
32530 "The code above doesn't include any error checking.  In real code you should "
32531 "check return values carefully for errors.  In general all functions that "
32532 "return integers return C<-1> on error, and all functions that return "
32533 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32534 "how to handle errors, and consult the documentation for each function call "
32535 "below to see precisely how they return error indications.  See L<guestfs-"
32536 "examples(3)> for fully worked examples."
32537 msgstr ""
32538
32539 #. type: =head2
32540 #: ../src/guestfs.pod:121
32541 msgid "DISK IMAGES"
32542 msgstr "ОБРАЗИ ДИСКІВ"
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:123
32546 msgid ""
32547 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32548 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32549 "actual block device, or simply an empty file of zeroes that you have created "
32550 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32551 "of these."
32552 msgstr ""
32553
32554 #. type: textblock
32555 #: ../src/guestfs.pod:129
32556 msgid ""
32557 "The call you should use in modern code for adding drives is L</"
32558 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32559 "specifying that the format is raw, do:"
32560 msgstr ""
32561
32562 #. type: verbatim
32563 #: ../src/guestfs.pod:133
32564 #, no-wrap
32565 msgid ""
32566 " guestfs_add_drive_opts (g, filename,\n"
32567 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32568 "                         -1);\n"
32569 "\n"
32570 msgstr ""
32571 " guestfs_add_drive_opts (g, filename,\n"
32572 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32573 "                         -1);\n"
32574 "\n"
32575
32576 #. type: textblock
32577 #: ../src/guestfs.pod:137
32578 msgid "You can add a disk read-only using:"
32579 msgstr "Ви можете додати диск у режимі лише читання:"
32580
32581 #. type: verbatim
32582 #: ../src/guestfs.pod:139
32583 #, no-wrap
32584 msgid ""
32585 " guestfs_add_drive_opts (g, filename,\n"
32586 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32587 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32588 "                         -1);\n"
32589 "\n"
32590 msgstr ""
32591 " guestfs_add_drive_opts (g, filename,\n"
32592 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32593 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32594 "                         -1);\n"
32595 "\n"
32596
32597 #. type: textblock
32598 #: ../src/guestfs.pod:144
32599 msgid ""
32600 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32601 "libguestfs won't modify the file."
32602 msgstr ""
32603
32604 #. type: textblock
32605 #: ../src/guestfs.pod:147
32606 msgid ""
32607 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32608 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32609 "corruption, but adding it read-only is safe."
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs.pod:151
32614 msgid ""
32615 "You must add at least one disk image, and you may add multiple disk images.  "
32616 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32617 "first one you added), C</dev/sdb> (for the second one you added), etc."
32618 msgstr ""
32619
32620 #. type: textblock
32621 #: ../src/guestfs.pod:156
32622 msgid ""
32623 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32624 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32625 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32626 msgstr ""
32627
32628 #. type: =head2
32629 #: ../src/guestfs.pod:161
32630 msgid "MOUNTING"
32631 msgstr "МОНТУВАННЯ"
32632
32633 #. type: textblock
32634 #: ../src/guestfs.pod:163
32635 msgid ""
32636 "Before you can read or write files, create directories and so on in a disk "
32637 "image that contains filesystems, you have to mount those filesystems using "
32638 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32639 "a disk image contains (for example) one partition with a filesystem on that "
32640 "partition, then you can mount it directly:"
32641 msgstr ""
32642
32643 #. type: verbatim
32644 #: ../src/guestfs.pod:170
32645 #, no-wrap
32646 msgid ""
32647 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32648 "\n"
32649 msgstr ""
32650 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32651 "\n"
32652
32653 #. type: textblock
32654 #: ../src/guestfs.pod:172
32655 msgid ""
32656 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32657 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32658 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32659 "that these are libguestfs virtual devices, and are nothing to do with host "
32660 "devices."
32661 msgstr ""
32662
32663 #. type: textblock
32664 #: ../src/guestfs.pod:178
32665 msgid ""
32666 "If you are given a disk image and you don't know what it contains then you "
32667 "have to find out.  Libguestfs can do that too: use L</"
32668 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32669 "LVs, and either try mounting each to see what is mountable, or else examine "
32670 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32671 "filesystems, use L</guestfs_list_filesystems>."
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:186
32676 msgid ""
32677 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32678 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32679 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32680 msgstr ""
32681
32682 #. type: textblock
32683 #: ../src/guestfs.pod:191
32684 msgid ""
32685 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32686 "several other variations of the C<guestfs_mount_*> call."
32687 msgstr ""
32688
32689 #. type: =head2
32690 #: ../src/guestfs.pod:194
32691 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32692 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32693
32694 #. type: textblock
32695 #: ../src/guestfs.pod:196
32696 msgid ""
32697 "The majority of the libguestfs API consists of fairly low-level calls for "
32698 "accessing and modifying the files, directories, symlinks etc on mounted "
32699 "filesystems.  There are over a hundred such calls which you can find listed "
32700 "in detail below in this man page, and we don't even pretend to cover them "
32701 "all in this overview."
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs.pod:202
32706 msgid ""
32707 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32708 "mount point."
32709 msgstr ""
32710 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32711 "точкою монтування."
32712
32713 #. type: textblock
32714 #: ../src/guestfs.pod:205
32715 msgid ""
32716 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32717 "the file called C<\"etc/passwd\"> then you could do:"
32718 msgstr ""
32719 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32720 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32721 "таким кодом:"
32722
32723 #. type: verbatim
32724 #: ../src/guestfs.pod:208
32725 #, no-wrap
32726 msgid ""
32727 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32728 "\n"
32729 msgstr ""
32730 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32731 "\n"
32732
32733 #. type: textblock
32734 #: ../src/guestfs.pod:210
32735 msgid ""
32736 "This would return C<data> as a newly allocated buffer containing the full "
32737 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32738 "or C<NULL> if there was an error."
32739 msgstr ""
32740
32741 #. type: textblock
32742 #: ../src/guestfs.pod:214
32743 msgid ""
32744 "As another example, to create a top-level directory on that filesystem "
32745 "called C<\"var\"> you would do:"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs.pod:217
32750 #, no-wrap
32751 msgid ""
32752 " guestfs_mkdir (g, \"/var\");\n"
32753 "\n"
32754 msgstr ""
32755 " guestfs_mkdir (g, \"/var\");\n"
32756 "\n"
32757
32758 #. type: textblock
32759 #: ../src/guestfs.pod:219
32760 msgid "To create a symlink you could do:"
32761 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32762
32763 #. type: verbatim
32764 #: ../src/guestfs.pod:221
32765 #, no-wrap
32766 msgid ""
32767 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32768 "               \"/etc/rc3.d/S30portmap\");\n"
32769 "\n"
32770 msgstr ""
32771 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32772 "               \"/etc/rc3.d/S30portmap\");\n"
32773 "\n"
32774
32775 #. type: textblock
32776 #: ../src/guestfs.pod:224
32777 msgid ""
32778 "Libguestfs will reject attempts to use relative paths and there is no "
32779 "concept of a current working directory."
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs.pod:227
32784 msgid ""
32785 "Libguestfs can return errors in many situations: for example if the "
32786 "filesystem isn't writable, or if a file or directory that you requested "
32787 "doesn't exist.  If you are using the C API (documented here)  you have to "
32788 "check for those error conditions after each call.  (Other language bindings "
32789 "turn these errors into exceptions)."
32790 msgstr ""
32791
32792 #. type: textblock
32793 #: ../src/guestfs.pod:233
32794 msgid ""
32795 "File writes are affected by the per-handle umask, set by calling L</"
32796 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32797 msgstr ""
32798
32799 #. type: =head2
32800 #: ../src/guestfs.pod:236
32801 msgid "PARTITIONING"
32802 msgstr "ПОДІЛ НА РОЗДІЛИ"
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:238
32806 msgid ""
32807 "Libguestfs contains API calls to read, create and modify partition tables on "
32808 "disk images."
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:241
32813 msgid ""
32814 "In the common case where you want to create a single partition covering the "
32815 "whole disk, you should use the L</guestfs_part_disk> call:"
32816 msgstr ""
32817
32818 #. type: verbatim
32819 #: ../src/guestfs.pod:245
32820 #, no-wrap
32821 msgid ""
32822 " const char *parttype = \"mbr\";\n"
32823 " if (disk_is_larger_than_2TB)\n"
32824 "   parttype = \"gpt\";\n"
32825 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32826 "\n"
32827 msgstr ""
32828 " const char *parttype = \"mbr\";\n"
32829 " if (disk_is_larger_than_2TB)\n"
32830 "   parttype = \"gpt\";\n"
32831 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32832 "\n"
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:250
32836 msgid ""
32837 "Obviously this effectively wipes anything that was on that disk image before."
32838 msgstr ""
32839
32840 #. type: =head2
32841 #: ../src/guestfs.pod:253
32842 msgid "LVM2"
32843 msgstr "LVM2"
32844
32845 #. type: textblock
32846 #: ../src/guestfs.pod:255
32847 msgid ""
32848 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32849 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32850 "you familiarize yourself with the concepts of physical volumes, volume "
32851 "groups and logical volumes."
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs.pod:260
32856 msgid ""
32857 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32858 "tldp.org/HOWTO/LVM-HOWTO/>."
32859 msgstr ""
32860
32861 #. type: =head2
32862 #: ../src/guestfs.pod:263
32863 msgid "DOWNLOADING"
32864 msgstr "ОТРИМАННЯ ДАНИХ"
32865
32866 #. type: textblock
32867 #: ../src/guestfs.pod:265
32868 msgid ""
32869 "Use L</guestfs_cat> to download small, text only files.  This call is "
32870 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32871 "NUL (C<\\0>) characters.  However the API is very simple to use."
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:269
32876 msgid ""
32877 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32878 "bit data, since it returns a (pointer, size) pair.  However it is still "
32879 "limited to \"small\" files, less than 2 MB."
32880 msgstr ""
32881
32882 #. type: textblock
32883 #: ../src/guestfs.pod:273
32884 msgid ""
32885 "L</guestfs_download> can be used to download any file, with no limits on "
32886 "content or size (even files larger than 4 GB)."
32887 msgstr ""
32888
32889 #. type: textblock
32890 #: ../src/guestfs.pod:276
32891 msgid ""
32892 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32893 msgstr ""
32894
32895 #. type: =head2
32896 #: ../src/guestfs.pod:279
32897 msgid "UPLOADING"
32898 msgstr "ВИВАНТАЖЕННЯ"
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:281
32902 msgid ""
32903 "It's often the case that you want to write a file or files to the disk image."
32904 msgstr ""
32905
32906 #. type: textblock
32907 #: ../src/guestfs.pod:284
32908 msgid ""
32909 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32910 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32911 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32912 "of other functions for creating test files, for example L</guestfs_fill> and "
32913 "L</guestfs_fill_pattern>."
32914 msgstr ""
32915
32916 #. type: textblock
32917 #: ../src/guestfs.pod:290
32918 msgid ""
32919 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32920 "file content or size (even files larger than 4 GB)."
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs.pod:293
32925 msgid ""
32926 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs.pod:295
32931 msgid ""
32932 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32933 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32934 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32935 "in a predictable way (eg. adding it last after all other drives) then you "
32936 "can get the device name from L</guestfs_list_devices> and mount it directly "
32937 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32938 "portable between kernel versions, and they don't support labels or UUIDs.  "
32939 "If you want to pre-build an image or you need to mount it using a label or "
32940 "UUID, use an ISO image instead."
32941 msgstr ""
32942
32943 #. type: =head2
32944 #: ../src/guestfs.pod:306
32945 msgid "COPYING"
32946 msgstr "КОПІЮВАННЯ"
32947
32948 #. type: textblock
32949 #: ../src/guestfs.pod:308
32950 msgid ""
32951 "There are various different commands for copying between files and devices "
32952 "and in and out of the guest filesystem.  These are summarised in the table "
32953 "below."
32954 msgstr ""
32955
32956 #. type: =item
32957 #: ../src/guestfs.pod:314
32958 msgid "B<file> to B<file>"
32959 msgstr "B<файл> у B<файл>"
32960
32961 #. type: textblock
32962 #: ../src/guestfs.pod:316
32963 msgid ""
32964 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32965 "directories recursively."
32966 msgstr ""
32967
32968 #. type: =item
32969 #: ../src/guestfs.pod:319
32970 msgid "B<file or device> to B<file or device>"
32971 msgstr "B<файл або пристрій> у B<файл або пристрій>"
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:321
32975 msgid ""
32976 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32977 "devices in the guest."
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs.pod:324
32982 msgid "Example: duplicate the contents of an LV:"
32983 msgstr ""
32984
32985 #. type: verbatim
32986 #: ../src/guestfs.pod:326
32987 #, no-wrap
32988 msgid ""
32989 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32990 "\n"
32991 msgstr ""
32992 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32993 "\n"
32994
32995 #. type: textblock
32996 #: ../src/guestfs.pod:328
32997 msgid ""
32998 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32999 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33000 "guestfs_copy_size>."
33001 msgstr ""
33002
33003 #. type: =item
33004 #: ../src/guestfs.pod:332
33005 msgid "B<file on the host> to B<file or device>"
33006 msgstr ""
33007
33008 #. type: textblock
33009 #: ../src/guestfs.pod:334
33010 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33011 msgstr ""
33012
33013 #. type: =item
33014 #: ../src/guestfs.pod:336
33015 msgid "B<file or device> to B<file on the host>"
33016 msgstr ""
33017
33018 #. type: textblock
33019 #: ../src/guestfs.pod:338
33020 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33021 msgstr ""
33022
33023 #. type: =head2
33024 #: ../src/guestfs.pod:342
33025 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs.pod:344
33030 msgid ""
33031 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33032 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33033 "appears you can only upload and download to files.  However many Un*x-like "
33034 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33035 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33036 "and arbitrary file descriptor N."
33037 msgstr ""
33038
33039 #. type: textblock
33040 #: ../src/guestfs.pod:352
33041 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs.pod:355
33046 #, no-wrap
33047 msgid ""
33048 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33049 "\n"
33050 msgstr ""
33051 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33052 "\n"
33053
33054 #. type: textblock
33055 #: ../src/guestfs.pod:357
33056 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33057 msgstr ""
33058
33059 #. type: verbatim
33060 #: ../src/guestfs.pod:359
33061 #, no-wrap
33062 msgid ""
33063 " char devfd[64];\n"
33064 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33065 " guestfs_tar_out (g, \"/\", devfd);\n"
33066 "\n"
33067 msgstr ""
33068 " char devfd[64];\n"
33069 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33070 " guestfs_tar_out (g, \"/\", devfd);\n"
33071 "\n"
33072
33073 #. type: =head2
33074 #: ../src/guestfs.pod:363
33075 msgid "LISTING FILES"
33076 msgstr "СПИСКИ ФАЙЛІВ"
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:365
33080 msgid ""
33081 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33082 "L<guestfish(1)>-equivalent command C<ll>)."
33083 msgstr ""
33084
33085 #. type: textblock
33086 #: ../src/guestfs.pod:368
33087 msgid ""
33088 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33089 "programs, as a flat list of strings."
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs.pod:371
33094 msgid ""
33095 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33096 "directory, plus additional information about each one.  It is more "
33097 "equivalent to using the L<readdir(3)> call on a local filesystem."
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:375
33102 msgid ""
33103 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33104 msgstr ""
33105
33106 #. type: =head2
33107 #: ../src/guestfs.pod:378
33108 msgid "RUNNING COMMANDS"
33109 msgstr "ВИКОНАННЯ КОМАНД"
33110
33111 #. type: textblock
33112 #: ../src/guestfs.pod:380
33113 msgid ""
33114 "Although libguestfs is primarily an API for manipulating files inside guest "
33115 "images, we also provide some limited facilities for running commands inside "
33116 "guests."
33117 msgstr ""
33118
33119 #. type: textblock
33120 #: ../src/guestfs.pod:384
33121 msgid "There are many limitations to this:"
33122 msgstr ""
33123
33124 #. type: textblock
33125 #: ../src/guestfs.pod:390
33126 msgid ""
33127 "The kernel version that the command runs under will be different from what "
33128 "it expects."
33129 msgstr ""
33130
33131 #. type: textblock
33132 #: ../src/guestfs.pod:395
33133 msgid ""
33134 "If the command needs to communicate with daemons, then most likely they "
33135 "won't be running."
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:400
33140 msgid "The command will be running in limited memory."
33141 msgstr ""
33142
33143 #. type: textblock
33144 #: ../src/guestfs.pod:404
33145 msgid ""
33146 "The network may not be available unless you enable it (see L</"
33147 "guestfs_set_network>)."
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:409
33152 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33153 msgstr ""
33154
33155 #. type: textblock
33156 #: ../src/guestfs.pod:413
33157 msgid ""
33158 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:418
33163 msgid ""
33164 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33165 "See L</SELINUX> in this manpage."
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs.pod:423
33170 msgid ""
33171 "I<Security:> It is not safe to run commands from untrusted, possibly "
33172 "malicious guests.  These commands may attempt to exploit your program by "
33173 "sending unexpected output.  They could also try to exploit the Linux kernel "
33174 "or qemu provided by the libguestfs appliance.  They could use the network "
33175 "provided by the libguestfs appliance to bypass ordinary network partitions "
33176 "and firewalls.  They could use the elevated privileges or different SELinux "
33177 "context of your program to their advantage."
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs.pod:432
33182 msgid ""
33183 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33184 "(a script which runs when the guest next boots normally), and to have this "
33185 "script run the commands you want in the normal context of the running guest, "
33186 "network security and so on.  For information about other security issues, "
33187 "see L</SECURITY>."
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:440
33192 msgid ""
33193 "The two main API calls to run commands are L</guestfs_command> and L</"
33194 "guestfs_sh> (there are also variations)."
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:443
33199 msgid ""
33200 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33201 "shell globs, redirections, etc will work."
33202 msgstr ""
33203
33204 #. type: =head2
33205 #: ../src/guestfs.pod:446
33206 msgid "CONFIGURATION FILES"
33207 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:448
33211 msgid ""
33212 "To read and write configuration files in Linux guest filesystems, we "
33213 "strongly recommend using Augeas.  For example, Augeas understands how to "
33214 "read and write, say, a Linux shadow password file or X.org configuration "
33215 "file, and so avoids you having to write that code."
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:453
33220 msgid ""
33221 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33222 "document Augeas itself here because there is excellent documentation on the "
33223 "L<http://augeas.net/> website."
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:457
33228 msgid ""
33229 "If you don't want to use Augeas (you fool!) then try calling L</"
33230 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33231 "over."
33232 msgstr ""
33233
33234 #. type: =head2
33235 #: ../src/guestfs.pod:461
33236 msgid "SELINUX"
33237 msgstr "SELINUX"
33238
33239 #. type: textblock
33240 #: ../src/guestfs.pod:463
33241 msgid ""
33242 "We support SELinux guests.  To ensure that labeling happens correctly in "
33243 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs.pod:471
33248 msgid "Before launching, do:"
33249 msgstr ""
33250
33251 #. type: verbatim
33252 #: ../src/guestfs.pod:473
33253 #, no-wrap
33254 msgid ""
33255 " guestfs_set_selinux (g, 1);\n"
33256 "\n"
33257 msgstr ""
33258 " guestfs_set_selinux (g, 1);\n"
33259 "\n"
33260
33261 #. type: textblock
33262 #: ../src/guestfs.pod:477
33263 msgid ""
33264 "After mounting the guest's filesystem(s), load the policy.  This is best "
33265 "done by running the L<load_policy(8)> command in the guest itself:"
33266 msgstr ""
33267
33268 #. type: verbatim
33269 #: ../src/guestfs.pod:481
33270 #, no-wrap
33271 msgid ""
33272 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33273 "\n"
33274 msgstr ""
33275 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33276 "\n"
33277
33278 #. type: textblock
33279 #: ../src/guestfs.pod:483
33280 msgid ""
33281 "(Older versions of C<load_policy> require you to specify the name of the "
33282 "policy file)."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:488
33287 msgid ""
33288 "Optionally, set the security context for the API.  The correct security "
33289 "context to use can only be known by inspecting the guest.  As an example:"
33290 msgstr ""
33291
33292 #. type: verbatim
33293 #: ../src/guestfs.pod:492
33294 #, no-wrap
33295 msgid ""
33296 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33297 "\n"
33298 msgstr ""
33299 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33300 "\n"
33301
33302 #. type: textblock
33303 #: ../src/guestfs.pod:496
33304 msgid "This will work for running commands and editing existing files."
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs.pod:498
33309 msgid ""
33310 "When new files are created, you may need to label them explicitly, for "
33311 "example by running the external command C<restorecon pathname>."
33312 msgstr ""
33313
33314 #. type: =head2
33315 #: ../src/guestfs.pod:502
33316 msgid "UMASK"
33317 msgstr "UMASK"
33318
33319 #. type: textblock
33320 #: ../src/guestfs.pod:504
33321 msgid ""
33322 "Certain calls are affected by the current file mode creation mask (the "
33323 "\"umask\").  In particular ones which create files or directories, such as "
33324 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33325 "either the default mode that the file is created with or modifies the mode "
33326 "that you supply."
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs.pod:510
33331 msgid ""
33332 "The default umask is C<022>, so files are created with modes such as C<0644> "
33333 "and directories with C<0755>."
33334 msgstr ""
33335
33336 #. type: textblock
33337 #: ../src/guestfs.pod:513
33338 msgid ""
33339 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33340 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33341 "guestfs_chmod> after creating each file or directory."
33342 msgstr ""
33343
33344 #. type: textblock
33345 #: ../src/guestfs.pod:517
33346 msgid "For more information about umask, see L<umask(2)>."
33347 msgstr ""
33348
33349 #. type: textblock
33350 #: ../src/guestfs.pod:521
33351 msgid ""
33352 "Libguestfs allows you to access Linux guests which have been encrypted using "
33353 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33354 "standard.  This includes nearly all whole disk encryption systems used by "
33355 "modern Linux guests."
33356 msgstr ""
33357
33358 #. type: textblock
33359 #: ../src/guestfs.pod:527
33360 msgid ""
33361 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33362 "returns the string C<crypto_LUKS>)."
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:530
33367 msgid ""
33368 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33369 "will require the passphrase!"
33370 msgstr ""
33371
33372 #. type: textblock
33373 #: ../src/guestfs.pod:533
33374 msgid ""
33375 "Opening a LUKS device creates a new device mapper device called C</dev/"
33376 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33377 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33378 "from and encrypted to the underlying block device respectively."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs.pod:539
33383 msgid ""
33384 "LVM volume groups on the device can be made visible by calling L</"
33385 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33386 "(s) can now be mounted in the usual way."
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:543
33391 msgid ""
33392 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33393 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33394 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33395 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33396 "underlying encrypted block device)."
33397 msgstr ""
33398
33399 #. type: =head2
33400 #: ../src/guestfs.pod:550
33401 msgid "INSPECTION"
33402 msgstr "ПЕРЕВІРКА"
33403
33404 #. type: textblock
33405 #: ../src/guestfs.pod:552
33406 msgid ""
33407 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33408 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33409 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33410 "version 1.5.3 the most frequently used part of this library has been "
33411 "rewritten in C and moved into the core code)."
33412 msgstr ""
33413
33414 #. type: textblock
33415 #: ../src/guestfs.pod:559
33416 msgid ""
33417 "Add all disks belonging to the unknown virtual machine and call L</"
33418 "guestfs_launch> in the usual way."
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:562
33423 msgid ""
33424 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33425 "and certain heuristics, and returns a list of operating systems that were "
33426 "found.  An empty list means none were found.  A single element is the root "
33427 "filesystem of the operating system.  For dual- or multi-boot guests, "
33428 "multiple roots can be returned, each one corresponding to a separate "
33429 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33430 "world of virtualization, but since this scenario can happen, we have built "
33431 "libguestfs to deal with it.)"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:571
33436 msgid ""
33437 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33438 "to get additional details about that operating system.  For example, call L</"
33439 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33440 "Windows and Linux-based operating systems respectively."
33441 msgstr ""
33442
33443 #. type: textblock
33444 #: ../src/guestfs.pod:577
33445 msgid ""
33446 "Un*x-like and Linux-based operating systems usually consist of several "
33447 "filesystems which are mounted at boot time (for example, a separate boot "
33448 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33449 "filesystems correspond to mount points.  Call "
33450 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33451 "hash table like this example:"
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs.pod:584
33456 #, no-wrap
33457 msgid ""
33458 " /boot => /dev/sda1\n"
33459 " /     => /dev/vg_guest/lv_root\n"
33460 " /usr  => /dev/vg_guest/lv_usr\n"
33461 "\n"
33462 msgstr ""
33463 " /boot => /dev/sda1\n"
33464 " /     => /dev/vg_guest/lv_root\n"
33465 " /usr  => /dev/vg_guest/lv_usr\n"
33466 "\n"
33467
33468 #. type: textblock
33469 #: ../src/guestfs.pod:588
33470 msgid ""
33471 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33472 "filesystems as suggested."
33473 msgstr ""
33474
33475 #. type: textblock
33476 #: ../src/guestfs.pod:591
33477 msgid ""
33478 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33479 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33480 msgstr ""
33481
33482 #. type: textblock
33483 #: ../src/guestfs.pod:595
33484 msgid ""
33485 "Inspection currently only works for some common operating systems.  "
33486 "Contributors are welcome to send patches for other operating systems that we "
33487 "currently cannot detect."
33488 msgstr ""
33489
33490 #. type: textblock
33491 #: ../src/guestfs.pod:599
33492 msgid ""
33493 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33494 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33495 "encrypted devices."
33496 msgstr ""
33497
33498 #. type: textblock
33499 #: ../src/guestfs.pod:603
33500 msgid ""
33501 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33502 "inspection and caches the results in the guest handle.  Subsequent calls to "
33503 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33504 "read the disks.  If you change the content of the guest disks, you can redo "
33505 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33506 "guestfs_inspect_list_applications> works a little differently from the other "
33507 "calls and does read the disks.  See documentation for that function for "
33508 "details)."
33509 msgstr ""
33510
33511 #. type: =head3
33512 #: ../src/guestfs.pod:612
33513 msgid "INSPECTING INSTALL DISKS"
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs.pod:614
33518 msgid ""
33519 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33520 "CDs and more."
33521 msgstr ""
33522
33523 #. type: textblock
33524 #: ../src/guestfs.pod:617
33525 msgid ""
33526 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33527 "system, which currently can be C<installed> (a regular operating system) or "
33528 "C<installer> (some sort of install disk)."
33529 msgstr ""
33530
33531 #. type: textblock
33532 #: ../src/guestfs.pod:621
33533 msgid ""
33534 "Further information is available about the operating system that can be "
33535 "installed using the regular inspection APIs like L</"
33536 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33537 msgstr ""
33538
33539 #. type: textblock
33540 #: ../src/guestfs.pod:626
33541 msgid ""
33542 "Some additional information specific to installer disks is also available "
33543 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33544 "guestfs_inspect_is_multipart> calls."
33545 msgstr ""
33546
33547 #. type: =head2
33548 #: ../src/guestfs.pod:631
33549 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33550 msgstr ""
33551
33552 #. type: textblock
33553 #: ../src/guestfs.pod:633
33554 msgid ""
33555 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33556 "ntfs-3g.org/> driver."
33557 msgstr ""
33558
33559 #. type: =head3
33560 #: ../src/guestfs.pod:636
33561 msgid "DRIVE LETTERS AND PATHS"
33562 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33563
33564 #. type: textblock
33565 #: ../src/guestfs.pod:638
33566 msgid ""
33567 "DOS and Windows still use drive letters, and the filesystems are always "
33568 "treated as case insensitive by Windows itself, and therefore you might find "
33569 "a Windows configuration file referring to a path like C<c:\\windows"
33570 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33571 "might be referred to as C</WINDOWS/System32>."
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs.pod:644
33576 msgid ""
33577 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33578 "L</guestfs_inspect_get_drive_mappings>)"
33579 msgstr ""
33580
33581 #. type: textblock
33582 #: ../src/guestfs.pod:647
33583 msgid ""
33584 "Dealing with separator characters (backslash vs forward slash) is outside "
33585 "the scope of libguestfs, but usually a simple character replacement will "
33586 "work."
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:651
33591 msgid ""
33592 "To resolve the case insensitivity of paths, call L</"
33593 "guestfs_case_sensitive_path>."
33594 msgstr ""
33595
33596 #. type: =head3
33597 #: ../src/guestfs.pod:654
33598 msgid "ACCESSING THE WINDOWS REGISTRY"
33599 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33600
33601 #. type: textblock
33602 #: ../src/guestfs.pod:656
33603 msgid ""
33604 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33605 "files, through the library C<hivex> which is part of the libguestfs project "
33606 "although ships as a separate tarball.  You have to locate and download the "
33607 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33608 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33609 "reg(1)> for more help on this issue."
33610 msgstr ""
33611
33612 #. type: =head3
33613 #: ../src/guestfs.pod:664
33614 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33615 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33616
33617 #. type: textblock
33618 #: ../src/guestfs.pod:666
33619 msgid ""
33620 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33621 "provide something which looks like a Linux symlink.  The way it tries to do "
33622 "the rewriting is described here:"
33623 msgstr ""
33624
33625 #. type: textblock
33626 #: ../src/guestfs.pod:670
33627 msgid ""
33628 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33629 "symbolic-links/>"
33630 msgstr ""
33631 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33632 "symbolic-links/>"
33633
33634 #. type: textblock
33635 #: ../src/guestfs.pod:672
33636 msgid ""
33637 "The essential problem is that ntfs-3g simply does not have enough "
33638 "information to do a correct job.  NTFS links can contain drive letters and "
33639 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33640 "It is almost certainly the case that libguestfs callers should ignore what "
33641 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33642 msgstr ""
33643
33644 #. type: textblock
33645 #: ../src/guestfs.pod:679
33646 msgid ""
33647 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33648 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33649 "attribute, and read the raw reparse data from that (you can find the format "
33650 "documented in various places around the web)."
33651 msgstr ""
33652
33653 #. type: =head3
33654 #: ../src/guestfs.pod:684
33655 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs.pod:686
33660 msgid ""
33661 "There are other useful extended attributes that can be read from ntfs-3g "
33662 "filesystems (using L</guestfs_getxattr>).  See:"
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs.pod:689
33667 msgid ""
33668 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33669 msgstr ""
33670 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33671
33672 #. type: =head2
33673 #: ../src/guestfs.pod:691
33674 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33675 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33676
33677 #. type: textblock
33678 #: ../src/guestfs.pod:693
33679 msgid ""
33680 "Although we don't want to discourage you from using the C API, we will "
33681 "mention here that the same API is also available in other languages."
33682 msgstr ""
33683
33684 #. type: textblock
33685 #: ../src/guestfs.pod:696
33686 msgid ""
33687 "The API is broadly identical in all supported languages.  This means that "
33688 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33689 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33690 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33691 "each language."
33692 msgstr ""
33693
33694 #. type: textblock
33695 #: ../src/guestfs.pod:702
33696 msgid ""
33697 "Error messages are automatically transformed into exceptions if the language "
33698 "supports it."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:705
33703 msgid ""
33704 "We don't try to \"object orientify\" parts of the API in OO languages, "
33705 "although contributors are welcome to write higher level APIs above what we "
33706 "provide in their favourite languages if they wish."
33707 msgstr ""
33708
33709 #. type: =item
33710 #: ../src/guestfs.pod:711
33711 msgid "B<C++>"
33712 msgstr "B<C++>"
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:713
33716 msgid ""
33717 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33718 "identical to the C API.  C++ classes and exceptions are not used."
33719 msgstr ""
33720
33721 #. type: =item
33722 #: ../src/guestfs.pod:717
33723 msgid "B<C#>"
33724 msgstr "B<C#>"
33725
33726 #. type: textblock
33727 #: ../src/guestfs.pod:719
33728 msgid ""
33729 "The C# bindings are highly experimental.  Please read the warnings at the "
33730 "top of C<csharp/Libguestfs.cs>."
33731 msgstr ""
33732
33733 #. type: =item
33734 #: ../src/guestfs.pod:722
33735 msgid "B<Haskell>"
33736 msgstr "B<Haskell>"
33737
33738 #. type: textblock
33739 #: ../src/guestfs.pod:724
33740 msgid ""
33741 "This is the only language binding that is working but incomplete.  Only "
33742 "calls which return simple integers have been bound in Haskell, and we are "
33743 "looking for help to complete this binding."
33744 msgstr ""
33745
33746 #. type: =item
33747 #: ../src/guestfs.pod:728
33748 msgid "B<Java>"
33749 msgstr "B<Java>"
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:730
33753 msgid ""
33754 "Full documentation is contained in the Javadoc which is distributed with "
33755 "libguestfs.  For examples, see L<guestfs-java(3)>."
33756 msgstr ""
33757
33758 #. type: =item
33759 #: ../src/guestfs.pod:733
33760 msgid "B<OCaml>"
33761 msgstr "B<OCaml>"
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:735
33765 msgid "See L<guestfs-ocaml(3)>."
33766 msgstr "Див. L<guestfs-ocaml(3)>."
33767
33768 #. type: =item
33769 #: ../src/guestfs.pod:737
33770 msgid "B<Perl>"
33771 msgstr "B<Perl>"
33772
33773 #. type: textblock
33774 #: ../src/guestfs.pod:739
33775 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33776 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33777
33778 #. type: =item
33779 #: ../src/guestfs.pod:741
33780 msgid "B<PHP>"
33781 msgstr "B<PHP>"
33782
33783 #. type: textblock
33784 #: ../src/guestfs.pod:743
33785 msgid ""
33786 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33787 "the php-libguestfs package for your distribution."
33788 msgstr ""
33789
33790 #. type: textblock
33791 #: ../src/guestfs.pod:746
33792 msgid "The PHP binding only works correctly on 64 bit machines."
33793 msgstr ""
33794
33795 #. type: =item
33796 #: ../src/guestfs.pod:748
33797 msgid "B<Python>"
33798 msgstr "B<Python>"
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:750
33802 msgid "See L<guestfs-python(3)>."
33803 msgstr "Див. L<guestfs-python(3)>."
33804
33805 #. type: =item
33806 #: ../src/guestfs.pod:752
33807 msgid "B<Ruby>"
33808 msgstr "B<Ruby>"
33809
33810 #. type: textblock
33811 #: ../src/guestfs.pod:754
33812 msgid "See L<guestfs-ruby(3)>."
33813 msgstr "Див. L<guestfs-ruby(3)>."
33814
33815 #. type: =item
33816 #: ../src/guestfs.pod:756
33817 msgid "B<shell scripts>"
33818 msgstr "B<скрипти оболонки>"
33819
33820 #. type: textblock
33821 #: ../src/guestfs.pod:758
33822 msgid "See L<guestfish(1)>."
33823 msgstr "Див. L<guestfish(1)>."
33824
33825 #. type: =head2
33826 #: ../src/guestfs.pod:762
33827 msgid "LIBGUESTFS GOTCHAS"
33828 msgstr ""
33829
33830 #. type: textblock
33831 #: ../src/guestfs.pod:764
33832 msgid ""
33833 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33834 "system [...] that works in the way it is documented but is counterintuitive "
33835 "and almost invites mistakes.\""
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:768
33840 msgid ""
33841 "Since we developed libguestfs and the associated tools, there are several "
33842 "things we would have designed differently, but are now stuck with for "
33843 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33844 "release, you can expect these to change.  Beware of them."
33845 msgstr ""
33846
33847 #. type: =item
33848 #: ../src/guestfs.pod:776
33849 msgid "Autosync / forgetting to sync."
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:778
33854 msgid ""
33855 "I<Update:> Autosync is enabled by default for all API users starting from "
33856 "libguestfs 1.5.24.  This section only applies to older versions."
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:781
33861 msgid ""
33862 "When modifying a filesystem from C or another language, you B<must> unmount "
33863 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33864 "libguestfs handle.  You can also call:"
33865 msgstr ""
33866
33867 #. type: verbatim
33868 #: ../src/guestfs.pod:785
33869 #, no-wrap
33870 msgid ""
33871 " guestfs_set_autosync (g, 1);\n"
33872 "\n"
33873 msgstr ""
33874 " guestfs_set_autosync (g, 1);\n"
33875 "\n"
33876
33877 #. type: textblock
33878 #: ../src/guestfs.pod:787
33879 msgid ""
33880 "to have the unmount/sync done automatically for you when the handle 'g' is "
33881 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33882 msgstr ""
33883
33884 #. type: textblock
33885 #: ../src/guestfs.pod:791
33886 msgid ""
33887 "If you forget to do this, then it is entirely possible that your changes "
33888 "won't be written out, or will be partially written, or (very rarely) that "
33889 "you'll get disk corruption."
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs.pod:795
33894 msgid ""
33895 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33896 "guestfish scripts that forget to sync will work just fine, which can make "
33897 "this very puzzling if you are trying to debug a problem."
33898 msgstr ""
33899
33900 #. type: =item
33901 #: ../src/guestfs.pod:799
33902 msgid "Mount option C<-o sync> should not be the default."
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs.pod:801
33907 msgid ""
33908 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33909 "However C<-o sync> does not add any reliability benefit, but does have a "
33910 "very large performance impact."
33911 msgstr ""
33912
33913 #. type: textblock
33914 #: ../src/guestfs.pod:805
33915 msgid ""
33916 "The work around is to use L</guestfs_mount_options> and set the mount "
33917 "options that you actually want to use."
33918 msgstr ""
33919
33920 #. type: =item
33921 #: ../src/guestfs.pod:808
33922 msgid "Read-only should be the default."
33923 msgstr ""
33924
33925 #. type: textblock
33926 #: ../src/guestfs.pod:810
33927 msgid ""
33928 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33929 "specify I<--rw> if you want to make changes to the image."
33930 msgstr ""
33931
33932 #. type: textblock
33933 #: ../src/guestfs.pod:813
33934 msgid "This would reduce the potential to corrupt live VM images."
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs.pod:815
33939 msgid ""
33940 "Note that many filesystems change the disk when you just mount and unmount, "
33941 "even if you didn't perform any writes.  You need to use L</"
33942 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33943 msgstr ""
33944
33945 #. type: =item
33946 #: ../src/guestfs.pod:819
33947 msgid "guestfish command line is hard to use."
33948 msgstr ""
33949
33950 #. type: textblock
33951 #: ../src/guestfs.pod:821
33952 msgid ""
33953 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33954 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33955 "exist, so it fails.  In earlier versions of guestfish the error message was "
33956 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33957 "we should have used C<guestfish -c command> to run commands."
33958 msgstr ""
33959
33960 #. type: =item
33961 #: ../src/guestfs.pod:828
33962 msgid "guestfish megabyte modifiers don't work right on all commands"
33963 msgstr ""
33964
33965 #. type: textblock
33966 #: ../src/guestfs.pod:830
33967 msgid ""
33968 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33969 "other modifiers).  What guestfish actually does is to multiply the number "
33970 "part by the modifier part and pass the result to the C API.  However this "
33971 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33972 "expecting some other unit (eg. megabytes)."
33973 msgstr ""
33974
33975 #. type: textblock
33976 #: ../src/guestfs.pod:837
33977 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33978 msgstr ""
33979
33980 #. type: verbatim
33981 #: ../src/guestfs.pod:839
33982 #, no-wrap
33983 msgid ""
33984 " lvcreate LV VG 100M\n"
33985 "\n"
33986 msgstr ""
33987 " lvcreate LV VG 100M\n"
33988 "\n"
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:841
33992 msgid ""
33993 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33994 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33995 "megabytes * megabytes) logical volume.  The error message you get from this "
33996 "is also a little obscure."
33997 msgstr ""
33998
33999 #. type: textblock
34000 #: ../src/guestfs.pod:846
34001 msgid ""
34002 "This could be fixed in the generator by specially marking parameters and "
34003 "return values which take bytes or other units."
34004 msgstr ""
34005
34006 #. type: =item
34007 #: ../src/guestfs.pod:849
34008 msgid "Ambiguity between devices and paths"
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:851
34013 msgid ""
34014 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34015 "sdb2>) and a similar pathname.  A file might just happen to be called "
34016 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs.pod:856
34021 msgid ""
34022 "In the current API we usually resolve this ambiguity by having two separate "
34023 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34024 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34025 "detecting if the path supplied begins with C</dev/>."
34026 msgstr ""
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:862
34030 msgid ""
34031 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34032 "make paths/devices into structured names.  One way to do this would be to "
34033 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34034 "aspect of grub.  Another way would be to use a structured type, equivalent "
34035 "to this OCaml type:"
34036 msgstr ""
34037
34038 #. type: verbatim
34039 #: ../src/guestfs.pod:868
34040 #, no-wrap
34041 msgid ""
34042 " type path = Path of string | Device of int | Partition of int * int\n"
34043 "\n"
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs.pod:870
34048 msgid "which would allow you to pass arguments like:"
34049 msgstr ""
34050
34051 #. type: verbatim
34052 #: ../src/guestfs.pod:872
34053 #, no-wrap
34054 msgid ""
34055 " Path \"/foo/bar\"\n"
34056 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34057 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34058 " Path \"/dev/sdb2\"    (* not a device *)\n"
34059 "\n"
34060 msgstr ""
34061
34062 #. type: textblock
34063 #: ../src/guestfs.pod:877
34064 msgid ""
34065 "As you can see there are still problems to resolve even with this "
34066 "representation.  Also consider how it might work in guestfish."
34067 msgstr ""
34068
34069 #. type: =head2
34070 #: ../src/guestfs.pod:882
34071 msgid "KEYS AND PASSPHRASES"
34072 msgstr "КЛЮЧІ І ПАРОЛІ"
34073
34074 #. type: textblock
34075 #: ../src/guestfs.pod:884
34076 msgid ""
34077 "Certain libguestfs calls take a parameter that contains sensitive key "
34078 "material, passed in as a C string."
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs.pod:887
34083 msgid ""
34084 "In the future we would hope to change the libguestfs implementation so that "
34085 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34086 "swap.  However this is I<not> done at the moment, because of the complexity "
34087 "of such an implementation."
34088 msgstr ""
34089
34090 #. type: textblock
34091 #: ../src/guestfs.pod:892
34092 msgid ""
34093 "Therefore you should be aware that any key parameter you pass to libguestfs "
34094 "might end up being written out to the swap partition.  If this is a concern, "
34095 "scrub the swap partition or don't use libguestfs on encrypted devices."
34096 msgstr ""
34097
34098 #. type: =head2
34099 #: ../src/guestfs.pod:897
34100 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34101 msgstr ""
34102
34103 #. type: textblock
34104 #: ../src/guestfs.pod:899
34105 msgid ""
34106 "All high-level libguestfs actions are synchronous.  If you want to use "
34107 "libguestfs asynchronously then you must create a thread."
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:902
34112 msgid ""
34113 "Only use the handle from a single thread.  Either use the handle exclusively "
34114 "from one thread, or provide your own mutex so that two threads cannot issue "
34115 "calls on the same handle at the same time."
34116 msgstr ""
34117
34118 #. type: textblock
34119 #: ../src/guestfs.pod:906
34120 msgid ""
34121 "See the graphical program guestfs-browser for one possible architecture for "
34122 "multithreaded programs using libvirt and libguestfs."
34123 msgstr ""
34124
34125 #. type: =head2
34126 #: ../src/guestfs.pod:909
34127 msgid "PATH"
34128 msgstr "ШЛЯХ"
34129
34130 #. type: textblock
34131 #: ../src/guestfs.pod:911
34132 msgid ""
34133 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34134 "internal path."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:914
34139 msgid ""
34140 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34141 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs.pod:917
34146 msgid ""
34147 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34148 "to change the directories that libguestfs will search in.  The value is a "
34149 "colon-separated list of paths.  The current directory is I<not> searched "
34150 "unless the path contains an empty element or C<.>.  For example "
34151 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34152 "then C</usr/lib/guestfs>."
34153 msgstr ""
34154
34155 #. type: =head2
34156 #: ../src/guestfs.pod:924
34157 msgid "QEMU WRAPPERS"
34158 msgstr ""
34159
34160 #. type: textblock
34161 #: ../src/guestfs.pod:926
34162 msgid ""
34163 "If you want to compile your own qemu, run qemu from a non-standard location, "
34164 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34165 "around qemu."
34166 msgstr ""
34167
34168 #. type: textblock
34169 #: ../src/guestfs.pod:930
34170 msgid ""
34171 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34172 "last command in the shell script (so that qemu replaces the shell and "
34173 "becomes the direct child of the libguestfs-using program).  If you don't do "
34174 "this, then the qemu process won't be cleaned up correctly."
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:935
34179 msgid ""
34180 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34181 "source:"
34182 msgstr ""
34183
34184 #. type: verbatim
34185 #: ../src/guestfs.pod:938
34186 #, no-wrap
34187 msgid ""
34188 " #!/bin/sh -\n"
34189 " qemudir=/home/rjones/d/qemu\n"
34190 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34191 "\n"
34192 msgstr ""
34193 " #!/bin/sh -\n"
34194 " qemudir=/home/rjones/d/qemu\n"
34195 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34196 "\n"
34197
34198 #. type: textblock
34199 #: ../src/guestfs.pod:942
34200 msgid ""
34201 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34202 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34203 "example:"
34204 msgstr ""
34205
34206 #. type: verbatim
34207 #: ../src/guestfs.pod:946
34208 #, no-wrap
34209 msgid ""
34210 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34211 "\n"
34212 msgstr ""
34213 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34214 "\n"
34215
34216 #. type: textblock
34217 #: ../src/guestfs.pod:948
34218 msgid ""
34219 "Note that libguestfs also calls qemu with the -help and -version options in "
34220 "order to determine features."
34221 msgstr ""
34222
34223 #. type: =head2
34224 #: ../src/guestfs.pod:951
34225 msgid "ATTACHING TO RUNNING DAEMONS"
34226 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34227
34228 #. type: textblock
34229 #: ../src/guestfs.pod:953
34230 msgid ""
34231 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34232 "babies.  Use with caution."
34233 msgstr ""
34234
34235 #. type: textblock
34236 #: ../src/guestfs.pod:956
34237 msgid ""
34238 "I<Note (2):> This section explains how to attach to a running daemon from a "
34239 "low level perspective.  For most users, simply using virt tools such as "
34240 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34241 msgstr ""
34242
34243 #. type: =head3
34244 #: ../src/guestfs.pod:960
34245 msgid "Using guestfs_set_attach_method"
34246 msgstr "За допомогою guestfs_set_attach_method"
34247
34248 #. type: textblock
34249 #: ../src/guestfs.pod:962
34250 msgid ""
34251 "By calling L</guestfs_set_attach_method> you can change how the library "
34252 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34253 "ARCHITECTURE> for some background)."
34254 msgstr ""
34255
34256 #. type: textblock
34257 #: ../src/guestfs.pod:966
34258 msgid ""
34259 "The normal attach method is C<appliance>, where a small appliance is created "
34260 "containing the daemon, and then the library connects to this."
34261 msgstr ""
34262
34263 #. type: textblock
34264 #: ../src/guestfs.pod:969
34265 msgid ""
34266 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34267 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34268 "daemon over the Unix domain socket."
34269 msgstr ""
34270
34271 #. type: textblock
34272 #: ../src/guestfs.pod:973
34273 msgid ""
34274 "The normal use for this is to connect to a running virtual machine that "
34275 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34276 "files inside the live virtual machine."
34277 msgstr ""
34278
34279 #. type: =head3
34280 #: ../src/guestfs.pod:977
34281 msgid "Using guestfs_add_domain with live flag"
34282 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34283
34284 #. type: textblock
34285 #: ../src/guestfs.pod:979
34286 msgid ""
34287 "L</guestfs_add_domain> provides some help for getting the correct attach "
34288 "method.  If you pass the C<live> option to this function, then (if the "
34289 "virtual machine is running) it will examine the libvirt XML looking for a "
34290 "virtio-serial channel to connect to:"
34291 msgstr ""
34292
34293 #. type: verbatim
34294 #: ../src/guestfs.pod:985
34295 #, no-wrap
34296 msgid ""
34297 " <domain>\n"
34298 "   ...\n"
34299 "   <devices>\n"
34300 "     ...\n"
34301 "     <channel type='unix'>\n"
34302 "       <source mode='bind' path='/path/to/socket'/>\n"
34303 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34304 "     </channel>\n"
34305 "     ...\n"
34306 "   </devices>\n"
34307 " </domain>\n"
34308 "\n"
34309 msgstr ""
34310 " <domain>\n"
34311 "   ...\n"
34312 "   <devices>\n"
34313 "     ...\n"
34314 "     <channel type='unix'>\n"
34315 "       <source mode='bind' path='/path/to/socket'/>\n"
34316 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34317 "     </channel>\n"
34318 "     ...\n"
34319 "   </devices>\n"
34320 " </domain>\n"
34321 "\n"
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:997
34325 msgid ""
34326 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34327 "method to C<unix:/path/to/socket>."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:1000
34332 msgid ""
34333 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34334 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34335 "to attach to and modify live virtual machines."
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:1004
34340 msgid ""
34341 "The virtual machine needs to have been set up beforehand so that it has the "
34342 "virtio-serial channel and so that guestfsd is running inside it."
34343 msgstr ""
34344
34345 #. type: =head2
34346 #: ../src/guestfs.pod:1008
34347 msgid "ABI GUARANTEE"
34348 msgstr "ГАРАНТІЯ ЩОДО ABI"
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:1010
34352 msgid ""
34353 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34354 "actions as outlined in this section.  Although we will deprecate some "
34355 "actions, for example if they get replaced by newer calls, we will keep the "
34356 "old actions forever.  This allows you the developer to program in confidence "
34357 "against the libguestfs API."
34358 msgstr ""
34359
34360 #. type: =head2
34361 #: ../src/guestfs.pod:1016
34362 msgid "BLOCK DEVICE NAMING"
34363 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34364
34365 #. type: textblock
34366 #: ../src/guestfs.pod:1018
34367 msgid ""
34368 "In the kernel there is now quite a profusion of schemata for naming block "
34369 "devices (in this context, by I<block device> I mean a physical or virtual "
34370 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34371 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34372 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34373 "for the old IDE driver (particularly for SATA devices) those devices also "
34374 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34375 "paravirtualized drivers.  This has created several different naming systems, "
34376 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:1030
34381 msgid ""
34382 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34383 "Linux kernel to access block devices.  We can run a variety of appliances "
34384 "based on a variety of Linux kernels."
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:1034
34389 msgid ""
34390 "This causes a problem for libguestfs because many API calls use device or "
34391 "partition names.  Working scripts and the recipe (example) scripts that we "
34392 "make available over the internet could fail if the naming scheme changes."
34393 msgstr ""
34394
34395 #. type: textblock
34396 #: ../src/guestfs.pod:1039
34397 msgid ""
34398 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34399 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34400 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34401 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:1045
34406 msgid ""
34407 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34408 "L</guestfs_list_partitions> and similar calls return the true names of the "
34409 "devices and partitions as known to the appliance."
34410 msgstr ""
34411
34412 #. type: =head3
34413 #: ../src/guestfs.pod:1050
34414 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:1052
34419 msgid ""
34420 "Usually this translation is transparent.  However in some (very rare)  cases "
34421 "you may need to know the exact algorithm.  Such cases include where you use "
34422 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34423 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:1058
34428 msgid ""
34429 "The algorithm is applied only to I<parameters> which are known to be either "
34430 "device or partition names.  Return values from functions such as L</"
34431 "guestfs_list_devices> are never changed."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:1066
34436 msgid "Is the string a parameter which is a device or partition name?"
34437 msgstr ""
34438
34439 #. type: textblock
34440 #: ../src/guestfs.pod:1070
34441 msgid "Does the string begin with C</dev/sd>?"
34442 msgstr "Чи починається рядок з C</dev/sd>?"
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:1074
34446 msgid ""
34447 "Does the named device exist? If so, we use that device.  However if I<not> "
34448 "then we continue with this algorithm."
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs.pod:1079
34453 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:1081
34458 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34459 msgstr ""
34460
34461 #. type: textblock
34462 #: ../src/guestfs.pod:1083
34463 msgid "If that named device exists, use it.  If not, continue."
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:1087
34468 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:1089
34473 msgid "If that named device exists, use it.  If not, return an error."
34474 msgstr ""
34475
34476 #. type: =head3
34477 #: ../src/guestfs.pod:1093
34478 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:1095
34483 msgid ""
34484 "Although the standard naming scheme and automatic translation is useful for "
34485 "simple programs and guestfish scripts, for larger programs it is best not to "
34486 "rely on this mechanism."
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:1099
34491 msgid ""
34492 "Where possible for maximum future portability programs using libguestfs "
34493 "should use these future-proof techniques:"
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs.pod:1106
34498 msgid ""
34499 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34500 "device names, and then use those names directly."
34501 msgstr ""
34502
34503 #. type: textblock
34504 #: ../src/guestfs.pod:1109
34505 msgid ""
34506 "Since those device names exist by definition, they will never be translated."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:1114
34511 msgid ""
34512 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34513 "filesystem labels."
34514 msgstr ""
34515
34516 #. type: =head1
34517 #: ../src/guestfs.pod:1119
34518 msgid "SECURITY"
34519 msgstr "БЕЗПЕКА"
34520
34521 #. type: textblock
34522 #: ../src/guestfs.pod:1121
34523 msgid ""
34524 "This section discusses security implications of using libguestfs, "
34525 "particularly with untrusted or malicious guests or disk images."
34526 msgstr ""
34527
34528 #. type: =head2
34529 #: ../src/guestfs.pod:1124
34530 msgid "GENERAL SECURITY CONSIDERATIONS"
34531 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34532
34533 #. type: textblock
34534 #: ../src/guestfs.pod:1126
34535 msgid ""
34536 "Be careful with any files or data that you download from a guest (by "
34537 "\"download\" we mean not just the L</guestfs_download> command but any "
34538 "command that reads files, filenames, directories or anything else from a "
34539 "disk image).  An attacker could manipulate the data to fool your program "
34540 "into doing the wrong thing.  Consider cases such as:"
34541 msgstr ""
34542
34543 #. type: textblock
34544 #: ../src/guestfs.pod:1136
34545 msgid "the data (file etc) not being present"
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:1140
34550 msgid "being present but empty"
34551 msgstr ""
34552
34553 #. type: textblock
34554 #: ../src/guestfs.pod:1144
34555 msgid "being much larger than normal"
34556 msgstr ""
34557
34558 #. type: textblock
34559 #: ../src/guestfs.pod:1148
34560 msgid "containing arbitrary 8 bit data"
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:1152
34565 msgid "being in an unexpected character encoding"
34566 msgstr ""
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:1156
34570 msgid "containing homoglyphs."
34571 msgstr ""
34572
34573 #. type: =head2
34574 #: ../src/guestfs.pod:1160
34575 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34576 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34577
34578 #. type: textblock
34579 #: ../src/guestfs.pod:1162
34580 msgid ""
34581 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34582 "(VFS) module can sometimes be escalated into exploits by deliberately "
34583 "creating a malicious, malformed filesystem.  These exploits are very severe "
34584 "for two reasons.  Firstly there are very many filesystem drivers in the "
34585 "kernel, and many of them are infrequently used and not much developer "
34586 "attention has been paid to the code.  Linux userspace helps potential "
34587 "crackers by detecting the filesystem type and automatically choosing the "
34588 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34589 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34590 "exploit (worse in some ways), giving immediate and total access to the "
34591 "system right down to the hardware level."
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:1175
34596 msgid ""
34597 "That explains why you should never mount a filesystem from an untrusted "
34598 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34599 "inside a qemu virtual machine, usually running as a non-root user.  The "
34600 "attacker would need to write a filesystem which first exploited the kernel, "
34601 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34602 "the libguestfs protocol, and finally to be as serious as the host kernel "
34603 "exploit it would need to escalate its privileges to root.  This multi-step "
34604 "escalation, performed by a static piece of data, is thought to be extremely "
34605 "hard to do, although we never say 'never' about security issues."
34606 msgstr ""
34607
34608 #. type: textblock
34609 #: ../src/guestfs.pod:1186
34610 msgid ""
34611 "In any case callers can reduce the attack surface by forcing the filesystem "
34612 "type when mounting (use L</guestfs_mount_vfs>)."
34613 msgstr ""
34614
34615 #. type: =head2
34616 #: ../src/guestfs.pod:1189
34617 msgid "PROTOCOL SECURITY"
34618 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34619
34620 #. type: textblock
34621 #: ../src/guestfs.pod:1191
34622 msgid ""
34623 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34624 "defined upper message size.  However a program that uses libguestfs must "
34625 "also take care - for example you can write a program that downloads a binary "
34626 "from a disk image and executes it locally, and no amount of protocol "
34627 "security will save you from the consequences."
34628 msgstr ""
34629
34630 #. type: =head2
34631 #: ../src/guestfs.pod:1197
34632 msgid "INSPECTION SECURITY"
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:1199
34637 msgid ""
34638 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34639 "directly from the guest, and these could contain any 8 bit data.  Callers "
34640 "should be careful to escape these before printing them to a structured file "
34641 "(for example, use HTML escaping if creating a web page)."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:1205
34646 msgid ""
34647 "Guest configuration may be altered in unusual ways by the administrator of "
34648 "the virtual machine, and may not reflect reality (particularly for untrusted "
34649 "or actively malicious guests).  For example we parse the hostname from "
34650 "configuration files like C</etc/sysconfig/network> that we find in the "
34651 "guest, but the guest administrator can easily manipulate these files to "
34652 "provide the wrong hostname."
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:1213
34657 msgid ""
34658 "The inspection API parses guest configuration using two external libraries: "
34659 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34660 "designed to be robust in the face of malicious data, although denial of "
34661 "service attacks are still possible, for example with oversized configuration "
34662 "files."
34663 msgstr ""
34664
34665 #. type: =head2
34666 #: ../src/guestfs.pod:1219
34667 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34668 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:1221
34672 msgid ""
34673 "Be very cautious about running commands from the guest.  By running a "
34674 "command in the guest, you are giving CPU time to a binary that you do not "
34675 "control, under the same user account as the library, albeit wrapped in qemu "
34676 "virtualization.  More information and alternatives can be found in the "
34677 "section L</RUNNING COMMANDS>."
34678 msgstr ""
34679
34680 #. type: =head2
34681 #: ../src/guestfs.pod:1227
34682 msgid "CVE-2010-3851"
34683 msgstr "CVE-2010-3851"
34684
34685 #. type: textblock
34686 #: ../src/guestfs.pod:1229
34687 msgid "https://bugzilla.redhat.com/642934"
34688 msgstr "https://bugzilla.redhat.com/642934"
34689
34690 #. type: textblock
34691 #: ../src/guestfs.pod:1231
34692 msgid ""
34693 "This security bug concerns the automatic disk format detection that qemu "
34694 "does on disk images."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:1234
34699 msgid ""
34700 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34701 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34702 "for one of the known headers, and if none is found then assuming the disk "
34703 "image must be raw."
34704 msgstr ""
34705
34706 #. type: textblock
34707 #: ../src/guestfs.pod:1239
34708 msgid ""
34709 "This allows a guest which has been given a raw disk image to write some "
34710 "other header.  At next boot (or when the disk image is accessed by "
34711 "libguestfs) qemu would do autodetection and think the disk image format was, "
34712 "say, qcow2 based on the header written by the guest."
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:1244
34717 msgid ""
34718 "This in itself would not be a problem, but qcow2 offers many features, one "
34719 "of which is to allow a disk image to refer to another image (called the "
34720 "\"backing disk\").  It does this by placing the path to the backing disk "
34721 "into the qcow2 header.  This path is not validated and could point to any "
34722 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34723 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34724 "control of the attacker."
34725 msgstr ""
34726
34727 #. type: textblock
34728 #: ../src/guestfs.pod:1252
34729 msgid ""
34730 "In libguestfs this is rather hard to exploit except under two circumstances:"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:1259
34735 msgid "You have enabled the network or have opened the disk in write mode."
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:1263
34740 msgid ""
34741 "You are also running untrusted code from the guest (see L</RUNNING "
34742 "COMMANDS>)."
34743 msgstr ""
34744
34745 #. type: textblock
34746 #: ../src/guestfs.pod:1268
34747 msgid ""
34748 "The way to avoid this is to specify the expected disk format when adding "
34749 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34750 "should always do this if the disk is raw format, and it's a good idea for "
34751 "other cases too."
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:1273
34756 msgid ""
34757 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34758 "format is fetched from libvirt and passed through."
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:1276
34763 msgid ""
34764 "For libguestfs tools, use the I<--format> command line parameter as "
34765 "appropriate."
34766 msgstr ""
34767
34768 #. type: =head1
34769 #: ../src/guestfs.pod:1279
34770 msgid "CONNECTION MANAGEMENT"
34771 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34772
34773 #. type: =head2
34774 #: ../src/guestfs.pod:1281
34775 msgid "guestfs_h *"
34776 msgstr "guestfs_h *"
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:1283
34780 msgid ""
34781 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34782 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34783 "handle and release all resources used."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:1287
34788 msgid ""
34789 "For information on using multiple handles and threads, see the section L</"
34790 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34791 msgstr ""
34792
34793 #. type: =head2
34794 #: ../src/guestfs.pod:1290
34795 msgid "guestfs_create"
34796 msgstr "guestfs_create"
34797
34798 #. type: verbatim
34799 #: ../src/guestfs.pod:1292
34800 #, no-wrap
34801 msgid ""
34802 " guestfs_h *guestfs_create (void);\n"
34803 "\n"
34804 msgstr ""
34805 " guestfs_h *guestfs_create (void);\n"
34806 "\n"
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:1294
34810 msgid "Create a connection handle."
34811 msgstr "Створити дескриптор з’єднання."
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:1296
34815 msgid ""
34816 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34817 "NULL."
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1299
34822 msgid ""
34823 "You have to \"configure\" the handle after creating it.  This includes "
34824 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34825 "handle at least once."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:1303
34830 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34831 msgstr ""
34832
34833 #. type: textblock
34834 #: ../src/guestfs.pod:1305
34835 msgid ""
34836 "You may also want to configure error handling for the handle.  See the L</"
34837 "ERROR HANDLING> section below."
34838 msgstr ""
34839
34840 #. type: =head2
34841 #: ../src/guestfs.pod:1308
34842 msgid "guestfs_close"
34843 msgstr "guestfs_close"
34844
34845 #. type: verbatim
34846 #: ../src/guestfs.pod:1310
34847 #, no-wrap
34848 msgid ""
34849 " void guestfs_close (guestfs_h *g);\n"
34850 "\n"
34851 msgstr ""
34852 " void guestfs_close (guestfs_h *g);\n"
34853 "\n"
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:1312
34857 msgid "This closes the connection handle and frees up all resources used."
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:1314
34862 msgid ""
34863 "If autosync was set on the handle and the handle was launched, then this "
34864 "implicitly calls various functions to unmount filesystems and sync the "
34865 "disk.  See L</guestfs_set_autosync> for more details."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:1318
34870 msgid "If a close callback was set on the handle, then it is called."
34871 msgstr ""
34872
34873 #. type: =head1
34874 #: ../src/guestfs.pod:1320
34875 msgid "ERROR HANDLING"
34876 msgstr "ОБРОБКА ПОМИЛОК"
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:1322
34880 msgid ""
34881 "API functions can return errors.  For example, almost all functions that "
34882 "return C<int> will return C<-1> to indicate an error."
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1325
34887 msgid ""
34888 "Additional information is available for errors: an error message string and "
34889 "optionally an error number (errno) if the thing that failed was a system "
34890 "call."
34891 msgstr ""
34892
34893 #. type: textblock
34894 #: ../src/guestfs.pod:1329
34895 msgid ""
34896 "You can get at the additional information about the last error on the handle "
34897 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34898 "up an error handler with L</guestfs_set_error_handler>."
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:1334
34903 msgid ""
34904 "When the handle is created, a default error handler is installed which "
34905 "prints the error message string to C<stderr>.  For small short-running "
34906 "command line programs it is sufficient to do:"
34907 msgstr ""
34908
34909 #. type: verbatim
34910 #: ../src/guestfs.pod:1338
34911 #, no-wrap
34912 msgid ""
34913 " if (guestfs_launch (g) == -1)\n"
34914 "   exit (EXIT_FAILURE);\n"
34915 "\n"
34916 msgstr ""
34917 " if (guestfs_launch (g) == -1)\n"
34918 "   exit (EXIT_FAILURE);\n"
34919 "\n"
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:1341
34923 msgid ""
34924 "since the default error handler will ensure that an error message has been "
34925 "printed to C<stderr> before the program exits."
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs.pod:1344
34930 msgid ""
34931 "For other programs the caller will almost certainly want to install an "
34932 "alternate error handler or do error handling in-line like this:"
34933 msgstr ""
34934
34935 #. type: verbatim
34936 #: ../src/guestfs.pod:1347
34937 #, no-wrap
34938 msgid ""
34939 " /* This disables the default behaviour of printing errors\n"
34940 "    on stderr. */\n"
34941 " guestfs_set_error_handler (g, NULL, NULL);\n"
34942 " \n"
34943 msgstr ""
34944
34945 #. type: verbatim
34946 #: ../src/guestfs.pod:1351
34947 #, fuzzy, no-wrap
34948 #| msgid ""
34949 #| " if (guestfs_launch (g) == -1) {\n"
34950 #| "   /* Examine the error message and print it etc. */\n"
34951 #| "   char *msg = guestfs_last_error (g);\n"
34952 #| "   int errnum = guestfs_last_errno (g);\n"
34953 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
34954 #| "   /* ... */\n"
34955 #| "  }\n"
34956 #| "\n"
34957 msgid ""
34958 " if (guestfs_launch (g) == -1) {\n"
34959 "   /* Examine the error message and print it etc. */\n"
34960 "   char *msg = guestfs_last_error (g);\n"
34961 "   int errnum = guestfs_last_errno (g);\n"
34962 "   fprintf (stderr, \"%s\", msg);\n"
34963 "   if (errnum != 0)\n"
34964 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34965 "   fprintf (stderr, \"\\n\");\n"
34966 "   /* ... */\n"
34967 " }\n"
34968 "\n"
34969 msgstr ""
34970 " if (guestfs_launch (g) == -1) {\n"
34971 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
34972 "   char *msg = guestfs_last_error (g);\n"
34973 "   int errnum = guestfs_last_errno (g);\n"
34974 "   fprintf (stderr, \"%s\\n\", msg);\n"
34975 "   /* ... */\n"
34976 "  }\n"
34977 "\n"
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:1362
34981 msgid ""
34982 "Out of memory errors are handled differently.  The default action is to call "
34983 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34984 "guestfs_set_out_of_memory_handler>."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:1366
34989 msgid ""
34990 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34991 "because there is no handle if this happens there is no way to get additional "
34992 "error information.  However L</guestfs_create> is supposed to be a "
34993 "lightweight operation which can only fail because of insufficient memory (it "
34994 "returns NULL in this case)."
34995 msgstr ""
34996
34997 #. type: =head2
34998 #: ../src/guestfs.pod:1372
34999 msgid "guestfs_last_error"
35000 msgstr "guestfs_last_error"
35001
35002 #. type: verbatim
35003 #: ../src/guestfs.pod:1374
35004 #, no-wrap
35005 msgid ""
35006 " const char *guestfs_last_error (guestfs_h *g);\n"
35007 "\n"
35008 msgstr ""
35009 " const char *guestfs_last_error (guestfs_h *g);\n"
35010 "\n"
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:1376
35014 msgid ""
35015 "This returns the last error message that happened on C<g>.  If there has not "
35016 "been an error since the handle was created, then this returns C<NULL>."
35017 msgstr ""
35018
35019 #. type: textblock
35020 #: ../src/guestfs.pod:1380
35021 msgid ""
35022 "The lifetime of the returned string is until the next error occurs, or L</"
35023 "guestfs_close> is called."
35024 msgstr ""
35025
35026 #. type: =head2
35027 #: ../src/guestfs.pod:1383
35028 msgid "guestfs_last_errno"
35029 msgstr "guestfs_last_errno"
35030
35031 #. type: verbatim
35032 #: ../src/guestfs.pod:1385
35033 #, no-wrap
35034 msgid ""
35035 " int guestfs_last_errno (guestfs_h *g);\n"
35036 "\n"
35037 msgstr ""
35038 " int guestfs_last_errno (guestfs_h *g);\n"
35039 "\n"
35040
35041 #. type: textblock
35042 #: ../src/guestfs.pod:1387
35043 msgid "This returns the last error number (errno) that happened on C<g>."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:1389
35048 msgid "If successful, an errno integer not equal to zero is returned."
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:1391
35053 msgid ""
35054 "If no error, this returns 0.  This call can return 0 in three situations:"
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:1398
35059 msgid "There has not been any error on the handle."
35060 msgstr ""
35061
35062 #. type: textblock
35063 #: ../src/guestfs.pod:1402
35064 msgid ""
35065 "There has been an error but the errno was meaningless.  This corresponds to "
35066 "the case where the error did not come from a failed system call, but for "
35067 "some other reason."
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:1408
35072 msgid ""
35073 "There was an error from a failed system call, but for some reason the errno "
35074 "was not captured and returned.  This usually indicates a bug in libguestfs."
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:1414
35079 msgid ""
35080 "Libguestfs tries to convert the errno from inside the applicance into a "
35081 "corresponding errno for the caller (not entirely trivial: the appliance "
35082 "might be running a completely different operating system from the library "
35083 "and error numbers are not standardized across Un*xen).  If this could not be "
35084 "done, then the error is translated to C<EINVAL>.  In practice this should "
35085 "only happen in very rare circumstances."
35086 msgstr ""
35087
35088 #. type: =head2
35089 #: ../src/guestfs.pod:1422
35090 msgid "guestfs_set_error_handler"
35091 msgstr "guestfs_set_error_handler"
35092
35093 #. type: verbatim
35094 #: ../src/guestfs.pod:1424
35095 #, no-wrap
35096 msgid ""
35097 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35098 "                                           void *opaque,\n"
35099 "                                           const char *msg);\n"
35100 " void guestfs_set_error_handler (guestfs_h *g,\n"
35101 "                                 guestfs_error_handler_cb cb,\n"
35102 "                                 void *opaque);\n"
35103 "\n"
35104 msgstr ""
35105 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35106 "                                           void *opaque,\n"
35107 "                                           const char *msg);\n"
35108 " void guestfs_set_error_handler (guestfs_h *g,\n"
35109 "                                 guestfs_error_handler_cb cb,\n"
35110 "                                 void *opaque);\n"
35111 "\n"
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:1431
35115 msgid ""
35116 "The callback C<cb> will be called if there is an error.  The parameters "
35117 "passed to the callback are an opaque data pointer and the error message "
35118 "string."
35119 msgstr ""
35120
35121 #. type: textblock
35122 #: ../src/guestfs.pod:1435
35123 msgid ""
35124 "C<errno> is not passed to the callback.  To get that the callback must call "
35125 "L</guestfs_last_errno>."
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:1438
35130 msgid ""
35131 "Note that the message string C<msg> is freed as soon as the callback "
35132 "function returns, so if you want to stash it somewhere you must make your "
35133 "own copy."
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs.pod:1442
35138 msgid "The default handler prints messages on C<stderr>."
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:1444
35143 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35144 msgstr ""
35145
35146 #. type: =head2
35147 #: ../src/guestfs.pod:1446
35148 msgid "guestfs_get_error_handler"
35149 msgstr "guestfs_get_error_handler"
35150
35151 #. type: verbatim
35152 #: ../src/guestfs.pod:1448
35153 #, no-wrap
35154 msgid ""
35155 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35156 "                                                     void **opaque_rtn);\n"
35157 "\n"
35158 msgstr ""
35159 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35160 "                                                     void **opaque_rtn);\n"
35161 "\n"
35162
35163 #. type: textblock
35164 #: ../src/guestfs.pod:1451
35165 msgid "Returns the current error handler callback."
35166 msgstr ""
35167
35168 #. type: =head2
35169 #: ../src/guestfs.pod:1453
35170 msgid "guestfs_set_out_of_memory_handler"
35171 msgstr "guestfs_set_out_of_memory_handler"
35172
35173 #. type: verbatim
35174 #: ../src/guestfs.pod:1455
35175 #, fuzzy, no-wrap
35176 #| msgid ""
35177 #| " typedef void (*guestfs_abort_cb) (void);\n"
35178 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35179 #| "                                        guestfs_abort_cb);\n"
35180 #| "\n"
35181 msgid ""
35182 " typedef void (*guestfs_abort_cb) (void);\n"
35183 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35184 "                                         guestfs_abort_cb);\n"
35185 "\n"
35186 msgstr ""
35187 " typedef void (*guestfs_abort_cb) (void);\n"
35188 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35189 "                                        guestfs_abort_cb);\n"
35190 "\n"
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:1459
35194 msgid ""
35195 "The callback C<cb> will be called if there is an out of memory situation.  "
35196 "I<Note this callback must not return>."
35197 msgstr ""
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:1462
35201 msgid "The default is to call L<abort(3)>."
35202 msgstr ""
35203
35204 #. type: textblock
35205 #: ../src/guestfs.pod:1464
35206 msgid ""
35207 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35208 msgstr ""
35209
35210 #. type: =head2
35211 #: ../src/guestfs.pod:1467
35212 msgid "guestfs_get_out_of_memory_handler"
35213 msgstr "guestfs_get_out_of_memory_handler"
35214
35215 #. type: verbatim
35216 #: ../src/guestfs.pod:1469
35217 #, no-wrap
35218 msgid ""
35219 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35220 "\n"
35221 msgstr ""
35222 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35223 "\n"
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:1471
35227 msgid "This returns the current out of memory handler."
35228 msgstr ""
35229
35230 #. type: =head1
35231 #: ../src/guestfs.pod:1473
35232 msgid "API CALLS"
35233 msgstr "ВИКЛИКИ API"
35234
35235 #. type: =head1
35236 #: ../src/guestfs.pod:1477
35237 msgid "STRUCTURES"
35238 msgstr "СТРУКТУРИ"
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:1479
35242 msgid "@STRUCTS@"
35243 msgstr "@STRUCTS@"
35244
35245 #. type: =head1
35246 #: ../src/guestfs.pod:1481
35247 msgid "AVAILABILITY"
35248 msgstr "ДОСТУПНІСТЬ"
35249
35250 #. type: =head2
35251 #: ../src/guestfs.pod:1483
35252 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35253 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:1485
35257 msgid ""
35258 "Using L</guestfs_available> you can test availability of the following "
35259 "groups of functions.  This test queries the appliance to see if the "
35260 "appliance you are currently using supports the functionality."
35261 msgstr ""
35262
35263 #. type: textblock
35264 #: ../src/guestfs.pod:1490
35265 msgid "@AVAILABILITY@"
35266 msgstr "@AVAILABILITY@"
35267
35268 #. type: =head2
35269 #: ../src/guestfs.pod:1492
35270 msgid "GUESTFISH supported COMMAND"
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:1494
35275 msgid ""
35276 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35277 "prints out the available groups and whether they are supported by this build "
35278 "of libguestfs.  Note however that you have to do C<run> first."
35279 msgstr ""
35280
35281 #. type: =head2
35282 #: ../src/guestfs.pod:1499
35283 msgid "SINGLE CALLS AT COMPILE TIME"
35284 msgstr ""
35285
35286 #. type: textblock
35287 #: ../src/guestfs.pod:1501
35288 msgid ""
35289 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35290 "function, such as:"
35291 msgstr ""
35292
35293 #. type: verbatim
35294 #: ../src/guestfs.pod:1504
35295 #, no-wrap
35296 msgid ""
35297 " #define LIBGUESTFS_HAVE_DD 1\n"
35298 "\n"
35299 msgstr ""
35300 " #define LIBGUESTFS_HAVE_DD 1\n"
35301 "\n"
35302
35303 #. type: textblock
35304 #: ../src/guestfs.pod:1506
35305 msgid "if L</guestfs_dd> is available."
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:1508
35310 msgid ""
35311 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35312 "function is available at compile time, we recommended using build tools such "
35313 "as autoconf or cmake.  For example in autotools you could use:"
35314 msgstr ""
35315
35316 #. type: verbatim
35317 #: ../src/guestfs.pod:1513
35318 #, no-wrap
35319 msgid ""
35320 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35321 " AC_CHECK_FUNCS([guestfs_dd])\n"
35322 "\n"
35323 msgstr ""
35324 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35325 " AC_CHECK_FUNCS([guestfs_dd])\n"
35326 "\n"
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:1516
35330 msgid ""
35331 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35332 "in your program."
35333 msgstr ""
35334
35335 #. type: =head2
35336 #: ../src/guestfs.pod:1519
35337 msgid "SINGLE CALLS AT RUN TIME"
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:1521
35342 msgid ""
35343 "Testing at compile time doesn't guarantee that a function really exists in "
35344 "the library.  The reason is that you might be dynamically linked against a "
35345 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35346 "This situation unfortunately results in a segmentation fault, which is a "
35347 "shortcoming of the C dynamic linking system itself."
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:1528
35352 msgid ""
35353 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35354 "in this example program (note that you still need the compile time check as "
35355 "well):"
35356 msgstr ""
35357
35358 #. type: verbatim
35359 #: ../src/guestfs.pod:1532
35360 #, no-wrap
35361 msgid ""
35362 " #include <stdio.h>\n"
35363 " #include <stdlib.h>\n"
35364 " #include <unistd.h>\n"
35365 " #include <dlfcn.h>\n"
35366 " #include <guestfs.h>\n"
35367 " \n"
35368 msgstr ""
35369 " #include <stdio.h>\n"
35370 " #include <stdlib.h>\n"
35371 " #include <unistd.h>\n"
35372 " #include <dlfcn.h>\n"
35373 " #include <guestfs.h>\n"
35374 " \n"
35375
35376 #. type: verbatim
35377 #: ../src/guestfs.pod:1538
35378 #, no-wrap
35379 msgid ""
35380 " main ()\n"
35381 " {\n"
35382 " #ifdef LIBGUESTFS_HAVE_DD\n"
35383 "   void *dl;\n"
35384 "   int has_function;\n"
35385 " \n"
35386 msgstr ""
35387 " main ()\n"
35388 " {\n"
35389 " #ifdef LIBGUESTFS_HAVE_DD\n"
35390 "   void *dl;\n"
35391 "   int has_function;\n"
35392 " \n"
35393
35394 #. type: verbatim
35395 #: ../src/guestfs.pod:1544
35396 #, no-wrap
35397 msgid ""
35398 "   /* Test if the function guestfs_dd is really available. */\n"
35399 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35400 "   if (!dl) {\n"
35401 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35402 "     exit (EXIT_FAILURE);\n"
35403 "   }\n"
35404 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35405 "   dlclose (dl);\n"
35406 " \n"
35407 msgstr ""
35408
35409 #. type: verbatim
35410 #: ../src/guestfs.pod:1553
35411 #, no-wrap
35412 msgid ""
35413 "   if (!has_function)\n"
35414 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35415 "   else {\n"
35416 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35417 "     /* Now it's safe to call\n"
35418 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35419 "     */\n"
35420 "   }\n"
35421 " #else\n"
35422 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35423 " #endif\n"
35424 "  }\n"
35425 "\n"
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:1566
35430 msgid ""
35431 "You may think the above is an awful lot of hassle, and it is.  There are "
35432 "other ways outside of the C linking system to ensure that this kind of "
35433 "incompatibility never arises, such as using package versioning:"
35434 msgstr ""
35435
35436 #. type: verbatim
35437 #: ../src/guestfs.pod:1571
35438 #, no-wrap
35439 msgid ""
35440 " Requires: libguestfs >= 1.0.80\n"
35441 "\n"
35442 msgstr ""
35443
35444 #. type: =head1
35445 #: ../src/guestfs.pod:1573
35446 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:1575
35451 msgid ""
35452 "A recent feature of the API is the introduction of calls which take optional "
35453 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35454 "takes variable arguments (ie. C<...>), as in this example:"
35455 msgstr ""
35456
35457 #. type: verbatim
35458 #: ../src/guestfs.pod:1580
35459 #, no-wrap
35460 msgid ""
35461 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35462 "\n"
35463 msgstr ""
35464 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35465 "\n"
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:1582
35469 msgid ""
35470 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35471 "call with no optional arguments specified:"
35472 msgstr ""
35473
35474 #. type: verbatim
35475 #: ../src/guestfs.pod:1585
35476 #, no-wrap
35477 msgid ""
35478 " guestfs_add_drive_opts (g, filename, -1);\n"
35479 "\n"
35480 msgstr ""
35481 " guestfs_add_drive_opts (g, filename, -1);\n"
35482 "\n"
35483
35484 #. type: textblock
35485 #: ../src/guestfs.pod:1587
35486 msgid "With a single optional argument:"
35487 msgstr ""
35488
35489 #. type: verbatim
35490 #: ../src/guestfs.pod:1589
35491 #, no-wrap
35492 msgid ""
35493 " guestfs_add_drive_opts (g, filename,\n"
35494 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35495 "                         -1);\n"
35496 "\n"
35497 msgstr ""
35498 " guestfs_add_drive_opts (g, filename,\n"
35499 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35500 "                         -1);\n"
35501 "\n"
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:1593
35505 msgid "With two:"
35506 msgstr ""
35507
35508 #. type: verbatim
35509 #: ../src/guestfs.pod:1595
35510 #, no-wrap
35511 msgid ""
35512 " guestfs_add_drive_opts (g, filename,\n"
35513 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35514 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35515 "                         -1);\n"
35516 "\n"
35517 msgstr ""
35518 " guestfs_add_drive_opts (g, filename,\n"
35519 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35520 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35521 "                         -1);\n"
35522 "\n"
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:1600
35526 msgid ""
35527 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35528 "happen!"
35529 msgstr ""
35530
35531 #. type: =head2
35532 #: ../src/guestfs.pod:1603
35533 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:1605
35538 msgid ""
35539 "The second variant has the same name with the suffix C<_va>, which works the "
35540 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35541 "example function, this is declared:"
35542 msgstr ""
35543
35544 #. type: verbatim
35545 #: ../src/guestfs.pod:1609
35546 #, no-wrap
35547 msgid ""
35548 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35549 "                                va_list args);\n"
35550 "\n"
35551 msgstr ""
35552 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35553 "                                va_list args);\n"
35554 "\n"
35555
35556 #. type: =head2
35557 #: ../src/guestfs.pod:1612
35558 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:1614
35563 msgid ""
35564 "The third variant is useful where you need to construct these calls.  You "
35565 "pass in a structure where you fill in the optional fields.  The structure "
35566 "has a bitmask as the first element which you must set to indicate which "
35567 "fields you have filled in.  For our example function the structure and call "
35568 "are declared:"
35569 msgstr ""
35570
35571 #. type: verbatim
35572 #: ../src/guestfs.pod:1620
35573 #, no-wrap
35574 msgid ""
35575 " struct guestfs_add_drive_opts_argv {\n"
35576 "   uint64_t bitmask;\n"
35577 "   int readonly;\n"
35578 "   const char *format;\n"
35579 "   /* ... */\n"
35580 " };\n"
35581 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35582 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35583 "\n"
35584 msgstr ""
35585 " struct guestfs_add_drive_opts_argv {\n"
35586 "   uint64_t bitmask;\n"
35587 "   int readonly;\n"
35588 "   const char *format;\n"
35589 "   /* ... */\n"
35590 " };\n"
35591 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35592 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35593 "\n"
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:1629
35597 msgid "You could call it like this:"
35598 msgstr ""
35599
35600 #. type: verbatim
35601 #: ../src/guestfs.pod:1631
35602 #, no-wrap
35603 msgid ""
35604 " struct guestfs_add_drive_opts_argv optargs = {\n"
35605 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35606 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35607 "   .readonly = 1,\n"
35608 "   .format = \"qcow2\"\n"
35609 " };\n"
35610 " \n"
35611 msgstr ""
35612 " struct guestfs_add_drive_opts_argv optargs = {\n"
35613 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35614 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35615 "   .readonly = 1,\n"
35616 "   .format = \"qcow2\"\n"
35617 " };\n"
35618 " \n"
35619
35620 #. type: verbatim
35621 #: ../src/guestfs.pod:1638
35622 #, no-wrap
35623 msgid ""
35624 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35625 "\n"
35626 msgstr ""
35627 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35628 "\n"
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:1646
35632 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35633 msgstr ""
35634
35635 #. type: textblock
35636 #: ../src/guestfs.pod:1651
35637 msgid "You do not need to fill in all fields of the structure."
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:1655
35642 msgid ""
35643 "There must be a one-to-one correspondence between fields of the structure "
35644 "that are filled in, and bits set in the bitmask."
35645 msgstr ""
35646
35647 #. type: =head2
35648 #: ../src/guestfs.pod:1660
35649 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:1662
35654 msgid ""
35655 "In other languages, optional arguments are expressed in the way that is "
35656 "natural for that language.  We refer you to the language-specific "
35657 "documentation for more details on that."
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:1666
35662 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35663 msgstr ""
35664
35665 #. type: =head2
35666 #: ../src/guestfs.pod:1668
35667 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:1670
35672 msgid ""
35673 "B<Note:> This section documents the generic event mechanism introduced in "
35674 "libguestfs 1.10, which you should use in new code if possible.  The old "
35675 "functions C<guestfs_set_log_message_callback>, "
35676 "C<guestfs_set_subprocess_quit_callback>, "
35677 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35678 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35679 "page.  Because of the ABI guarantee, the old functions continue to work."
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:1679
35684 msgid ""
35685 "Handles generate events when certain things happen, such as log messages "
35686 "being generated, progress messages during long-running operations, or the "
35687 "handle being closed.  The API calls described below let you register a "
35688 "callback to be called when events happen.  You can register multiple "
35689 "callbacks (for the same, different or overlapping sets of events), and "
35690 "individually remove callbacks.  If callbacks are not removed, then they "
35691 "remain in force until the handle is closed."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:1687
35696 msgid ""
35697 "In the current implementation, events are only generated synchronously: that "
35698 "means that events (and hence callbacks) can only happen while you are in the "
35699 "middle of making another libguestfs call.  The callback is called in the "
35700 "same thread."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:1692
35705 msgid ""
35706 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35707 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35708 msgstr ""
35709
35710 #. type: =head3
35711 #: ../src/guestfs.pod:1696
35712 msgid "CLASSES OF EVENTS"
35713 msgstr ""
35714
35715 #. type: =item
35716 #: ../src/guestfs.pod:1700
35717 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35718 msgstr ""
35719
35720 #. type: textblock
35721 #: ../src/guestfs.pod:1703
35722 msgid ""
35723 "The callback function will be called while the handle is being closed "
35724 "(synchronously from L</guestfs_close>)."
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:1706
35729 msgid ""
35730 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35731 "handles that are open when the program exits.  This means that this callback "
35732 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35733 "problems in higher-level languages (eg. if your HLL interpreter has already "
35734 "been cleaned up by the time this is called, and if your callback then jumps "
35735 "into some HLL function)."
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:1713
35740 msgid ""
35741 "If no callback is registered: the handle is closed without any callback "
35742 "being invoked."
35743 msgstr ""
35744
35745 #. type: =item
35746 #: ../src/guestfs.pod:1716
35747 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35748 msgstr ""
35749
35750 #. type: textblock
35751 #: ../src/guestfs.pod:1719
35752 msgid ""
35753 "The callback function will be called when the child process quits, either "
35754 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35755 "corresponds to a transition from any state to the CONFIG state)."
35756 msgstr ""
35757
35758 #. type: textblock
35759 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
35760 msgid "If no callback is registered: the event is ignored."
35761 msgstr ""
35762
35763 #. type: =item
35764 #: ../src/guestfs.pod:1725
35765 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35766 msgstr ""
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:1728
35770 msgid ""
35771 "The callback function will be called when the child process becomes ready "
35772 "first time after it has been launched.  (This corresponds to a transition "
35773 "from LAUNCHING to the READY state)."
35774 msgstr ""
35775
35776 #. type: =item
35777 #: ../src/guestfs.pod:1734
35778 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:1737
35783 msgid ""
35784 "Some long-running operations can generate progress messages.  If this "
35785 "callback is registered, then it will be called each time a progress message "
35786 "is generated (usually two seconds after the operation started, and three "
35787 "times per second thereafter until it completes, although the frequency may "
35788 "change in future versions)."
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:1743
35793 msgid ""
35794 "The callback receives in the payload four unsigned 64 bit numbers which are "
35795 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:1746
35800 msgid ""
35801 "The units of C<total> are not defined, although for some operations C<total> "
35802 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35803 "or megabytes), and C<position> may be the portion which has been transferred."
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:1751
35808 msgid "The only defined and stable parts of the API are:"
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:1757
35813 msgid ""
35814 "The callback can display to the user some type of progress bar or indicator "
35815 "which shows the ratio of C<position>:C<total>."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:1762
35820 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35821 msgstr ""
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:1766
35825 msgid ""
35826 "If any progress notification is sent during a call, then a final progress "
35827 "notification is always sent when C<position> = C<total> (I<unless> the call "
35828 "fails with an error)."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:1770
35833 msgid ""
35834 "This is to simplify caller code, so callers can easily set the progress "
35835 "indicator to \"100%\" at the end of the operation, without requiring special "
35836 "code to detect this case."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:1776
35841 msgid ""
35842 "For some calls we are unable to estimate the progress of the call, but we "
35843 "can still generate progress messages to indicate activity.  This is known as "
35844 "\"pulse mode\", and is directly supported by certain progress bar "
35845 "implementations (eg. GtkProgressBar)."
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:1781
35850 msgid ""
35851 "For these calls, zero or more progress messages are generated with "
35852 "C<position = 0> and C<total = 1>, followed by a final message with "
35853 "C<position = total = 1>."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:1785
35858 msgid ""
35859 "As noted above, if the call fails with an error then the final message may "
35860 "not be generated."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:1790
35865 msgid ""
35866 "The callback also receives the procedure number (C<proc_nr>) and serial "
35867 "number (C<serial>) of the call.  These are only useful for debugging "
35868 "protocol issues, and the callback can normally ignore them.  The callback "
35869 "may want to print these numbers in error messages or debugging messages."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../src/guestfs.pod:1796
35874 msgid "If no callback is registered: progress messages are discarded."
35875 msgstr ""
35876
35877 #. type: =item
35878 #: ../src/guestfs.pod:1798
35879 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1801
35884 msgid ""
35885 "The callback function is called whenever a log message is generated by qemu, "
35886 "the appliance kernel, guestfsd (daemon), or utility programs."
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:1804
35891 msgid ""
35892 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35893 "guestfs_launch>) then additional debug messages are generated."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
35898 msgid ""
35899 "If no callback is registered: the messages are discarded unless the verbose "
35900 "flag is set in which case they are sent to stderr.  You can override the "
35901 "printing of verbose messages to stderr by setting up a callback."
35902 msgstr ""
35903
35904 #. type: =item
35905 #: ../src/guestfs.pod:1812
35906 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:1815
35911 msgid ""
35912 "The callback function is called whenever a log message is generated by the "
35913 "library part of libguestfs."
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:1818
35918 msgid ""
35919 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35920 "messages are generated."
35921 msgstr ""
35922
35923 #. type: =item
35924 #: ../src/guestfs.pod:1826
35925 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:1829
35930 msgid ""
35931 "The callback function is called whenever a trace message is generated.  This "
35932 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:1832
35937 msgid ""
35938 "If no callback is registered: the messages are sent to stderr.  You can "
35939 "override the printing of trace messages to stderr by setting up a callback."
35940 msgstr ""
35941
35942 #. type: =head3
35943 #: ../src/guestfs.pod:1838
35944 msgid "guestfs_set_event_callback"
35945 msgstr ""
35946
35947 #. type: verbatim
35948 #: ../src/guestfs.pod:1840
35949 #, no-wrap
35950 msgid ""
35951 " int guestfs_set_event_callback (guestfs_h *g,\n"
35952 "                                 guestfs_event_callback cb,\n"
35953 "                                 uint64_t event_bitmask,\n"
35954 "                                 int flags,\n"
35955 "                                 void *opaque);\n"
35956 "\n"
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:1846
35961 msgid ""
35962 "This function registers a callback (C<cb>) for all event classes in the "
35963 "C<event_bitmask>."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:1849
35968 msgid ""
35969 "For example, to register for all log message events, you could call this "
35970 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35971 "To register a single callback for all possible classes of events, use "
35972 "C<GUESTFS_EVENT_ALL>."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:1855
35977 msgid "C<flags> should always be passed as 0."
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:1857
35982 msgid ""
35983 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35984 "it for any purpose."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:1860
35989 msgid ""
35990 "The return value is the event handle (an integer) which you can use to "
35991 "delete the callback (see below)."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1863
35996 msgid ""
35997 "If there is an error, this function returns C<-1>, and sets the error in the "
35998 "handle in the usual way (see L</guestfs_last_error> etc.)"
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:1866
36003 msgid ""
36004 "Callbacks remain in effect until they are deleted, or until the handle is "
36005 "closed."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:1869
36010 msgid ""
36011 "In the case where multiple callbacks are registered for a particular event "
36012 "class, all of the callbacks are called.  The order in which multiple "
36013 "callbacks are called is not defined."
36014 msgstr ""
36015
36016 #. type: =head3
36017 #: ../src/guestfs.pod:1873
36018 msgid "guestfs_delete_event_callback"
36019 msgstr ""
36020
36021 #. type: verbatim
36022 #: ../src/guestfs.pod:1875
36023 #, no-wrap
36024 msgid ""
36025 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36026 "\n"
36027 msgstr ""
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:1877
36031 msgid ""
36032 "Delete a callback that was previously registered.  C<event_handle> should be "
36033 "the integer that was returned by a previous call to "
36034 "C<guestfs_set_event_callback> on the same handle."
36035 msgstr ""
36036
36037 #. type: =head3
36038 #: ../src/guestfs.pod:1881
36039 msgid "guestfs_event_callback"
36040 msgstr ""
36041
36042 #. type: verbatim
36043 #: ../src/guestfs.pod:1883
36044 #, no-wrap
36045 msgid ""
36046 " typedef void (*guestfs_event_callback) (\n"
36047 "                  guestfs_h *g,\n"
36048 "                  void *opaque,\n"
36049 "                  uint64_t event,\n"
36050 "                  int event_handle,\n"
36051 "                  int flags,\n"
36052 "                  const char *buf, size_t buf_len,\n"
36053 "                  const uint64_t *array, size_t array_len);\n"
36054 "\n"
36055 msgstr ""
36056
36057 #. type: textblock
36058 #: ../src/guestfs.pod:1892
36059 msgid ""
36060 "This is the type of the event callback function that you have to provide."
36061 msgstr ""
36062
36063 #. type: textblock
36064 #: ../src/guestfs.pod:1895
36065 msgid ""
36066 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36067 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36068 "handle, and C<flags> which in the current API you should ignore."
36069 msgstr ""
36070
36071 #. type: textblock
36072 #: ../src/guestfs.pod:1899
36073 msgid ""
36074 "The remaining parameters contain the event payload (if any).  Each event may "
36075 "contain a payload, which usually relates to the event class, but for future "
36076 "proofing your code should be written to handle any payload for any event "
36077 "class."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:1904
36082 msgid ""
36083 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36084 "there is no message buffer).  Note that this message buffer can contain "
36085 "arbitrary 8 bit data, including NUL bytes."
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:1908
36090 msgid ""
36091 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36092 "moment this is only used for progress messages."
36093 msgstr ""
36094
36095 #. type: =head3
36096 #: ../src/guestfs.pod:1911
36097 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:1913
36102 msgid ""
36103 "One motivation for the generic event API was to allow GUI programs to "
36104 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36105 "unconditionally to C<stderr>."
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:1917
36110 msgid ""
36111 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36112 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36113 "messages are not events; you must capture error messages separately)."
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:1922
36118 msgid ""
36119 "Programs have to set up a callback to capture the classes of events of "
36120 "interest:"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs.pod:1925
36125 #, no-wrap
36126 msgid ""
36127 " int eh =\n"
36128 "   guestfs_set_event_callback\n"
36129 "     (g, message_callback,\n"
36130 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36131 "      GUESTFS_EVENT_TRACE,\n"
36132 "      0, NULL) == -1)\n"
36133 " if (eh == -1) {\n"
36134 "   // handle error in the usual way\n"
36135 " }\n"
36136 "\n"
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:1935
36141 msgid ""
36142 "The callback can then direct messages to the appropriate place.  In this "
36143 "example, messages are directed to syslog:"
36144 msgstr ""
36145
36146 #. type: verbatim
36147 #: ../src/guestfs.pod:1938
36148 #, no-wrap
36149 msgid ""
36150 " static void\n"
36151 " message_callback (\n"
36152 "         guestfs_h *g,\n"
36153 "         void *opaque,\n"
36154 "         uint64_t event,\n"
36155 "         int event_handle,\n"
36156 "         int flags,\n"
36157 "         const char *buf, size_t buf_len,\n"
36158 "         const uint64_t *array, size_t array_len)\n"
36159 " {\n"
36160 "   const int priority = LOG_USER|LOG_INFO;\n"
36161 "   if (buf_len > 0)\n"
36162 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36163 " }\n"
36164 "\n"
36165 msgstr ""
36166
36167 #. type: =head1
36168 #: ../src/guestfs.pod:1953
36169 msgid "CANCELLING LONG TRANSFERS"
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:1955
36174 msgid ""
36175 "Some operations can be cancelled by the caller while they are in progress.  "
36176 "Currently only operations that involve uploading or downloading data can be "
36177 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36178 "parameters in the generator)."
36179 msgstr ""
36180
36181 #. type: =head2
36182 #: ../src/guestfs.pod:1960
36183 msgid "guestfs_user_cancel"
36184 msgstr ""
36185
36186 #. type: verbatim
36187 #: ../src/guestfs.pod:1962
36188 #, no-wrap
36189 msgid ""
36190 " void guestfs_user_cancel (guestfs_h *g);\n"
36191 "\n"
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:1964
36196 msgid ""
36197 "C<guestfs_user_cancel> cancels the current upload or download operation."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:1967
36202 msgid ""
36203 "Unlike most other libguestfs calls, this function is signal safe and thread "
36204 "safe.  You can call it from a signal handler or from another thread, without "
36205 "needing to do any locking."
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../src/guestfs.pod:1971
36210 msgid ""
36211 "The transfer that was in progress (if there is one) will stop shortly "
36212 "afterwards, and will return an error.  The errno (see L</"
36213 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36214 "out if the operation was cancelled or failed because of another error."
36215 msgstr ""
36216
36217 #. type: textblock
36218 #: ../src/guestfs.pod:1977
36219 msgid ""
36220 "No cleanup is performed: for example, if a file was being uploaded then "
36221 "after cancellation there may be a partially uploaded file.  It is the "
36222 "caller's responsibility to clean up if necessary."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1981
36227 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:1983
36232 msgid ""
36233 "In an interactive text-based program, you might call it from a C<SIGINT> "
36234 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36235 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36236 "receive the C<^C> signal)."
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:1988
36241 msgid ""
36242 "In a graphical program, when the main thread is displaying a progress bar "
36243 "with a cancel button, wire up the cancel button to call this function."
36244 msgstr ""
36245
36246 #. type: =head1
36247 #: ../src/guestfs.pod:1992
36248 msgid "PRIVATE DATA AREA"
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:1994
36253 msgid ""
36254 "You can attach named pieces of private data to the libguestfs handle, fetch "
36255 "them by name, and walk over them, for the lifetime of the handle.  This is "
36256 "called the private data area and is only available from the C API."
36257 msgstr ""
36258
36259 #. type: textblock
36260 #: ../src/guestfs.pod:1999
36261 msgid "To attach a named piece of data, use the following call:"
36262 msgstr ""
36263
36264 #. type: verbatim
36265 #: ../src/guestfs.pod:2001
36266 #, no-wrap
36267 msgid ""
36268 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36269 "\n"
36270 msgstr ""
36271 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36272 "\n"
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:2003
36276 msgid ""
36277 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36278 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36279 "overwritten."
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:2007
36284 msgid ""
36285 "You can use any C<key> you want, but your key should I<not> start with an "
36286 "underscore character.  Keys beginning with an underscore character are "
36287 "reserved for internal libguestfs purposes (eg. for implementing language "
36288 "bindings).  It is recommended that you prefix the key with some unique "
36289 "string to avoid collisions with other users."
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:2013
36294 msgid "To retrieve the pointer, use:"
36295 msgstr ""
36296
36297 #. type: verbatim
36298 #: ../src/guestfs.pod:2015
36299 #, no-wrap
36300 msgid ""
36301 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36302 "\n"
36303 msgstr ""
36304 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36305 "\n"
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:2017
36309 msgid ""
36310 "This function returns C<NULL> if either no data is found associated with "
36311 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36312 "C<NULL>."
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:2021
36317 msgid ""
36318 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36319 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36320 "all.  In particular, libguestfs does I<not> try to free the data when the "
36321 "handle is closed.  If the data must be freed, then the caller must either "
36322 "free it before calling L</guestfs_close> or must set up a close callback to "
36323 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:2028
36328 msgid "To walk over all entries, use these two functions:"
36329 msgstr ""
36330
36331 #. type: verbatim
36332 #: ../src/guestfs.pod:2030
36333 #, no-wrap
36334 msgid ""
36335 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36336 "\n"
36337 msgstr ""
36338
36339 #. type: verbatim
36340 #: ../src/guestfs.pod:2032
36341 #, no-wrap
36342 msgid ""
36343 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36344 "\n"
36345 msgstr ""
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:2034
36349 msgid ""
36350 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36351 "not have any particular meaning -- keys are not returned in any defined "
36352 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36353 "corresponding data pointer is returned from the function.  C<NULL> is "
36354 "returned if there are no keys stored in the handle."
36355 msgstr ""
36356
36357 #. type: textblock
36358 #: ../src/guestfs.pod:2040
36359 msgid ""
36360 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36361 "value of this function is also C<NULL> is there are no further entries to "
36362 "return."
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:2044
36367 msgid "Notes about walking over entries:"
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:2050
36372 msgid ""
36373 "You must not call C<guestfs_set_private> while walking over the entries."
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:2055
36378 msgid ""
36379 "The handle maintains an internal iterator which is reset when you call "
36380 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36381 "call C<guestfs_set_private>."
36382 msgstr ""
36383
36384 #. type: textblock
36385 #: ../src/guestfs.pod:2061
36386 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36387 msgstr ""
36388
36389 #. type: verbatim
36390 #: ../src/guestfs.pod:2063
36391 #, no-wrap
36392 msgid ""
36393 " guestfs_set_private (g, key, NULL);\n"
36394 "\n"
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:2065
36399 msgid "then that C<key> is not returned when walking."
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:2069
36404 msgid ""
36405 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36406 "C<guestfs_next_private> or C<guestfs_set_private>."
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:2075
36411 msgid ""
36412 "The following example code shows how to print all keys and data pointers "
36413 "that are associated with the handle C<g>:"
36414 msgstr ""
36415
36416 #. type: verbatim
36417 #: ../src/guestfs.pod:2078
36418 #, no-wrap
36419 msgid ""
36420 " const char *key;\n"
36421 " void *data = guestfs_first_private (g, &key);\n"
36422 " while (data != NULL)\n"
36423 "   {\n"
36424 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36425 "     data = guestfs_next_private (g, &key);\n"
36426 "   }\n"
36427 "\n"
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:2086
36432 msgid ""
36433 "More commonly you are only interested in keys that begin with an application-"
36434 "specific prefix C<foo_>.  Modify the loop like so:"
36435 msgstr ""
36436
36437 #. type: verbatim
36438 #: ../src/guestfs.pod:2089
36439 #, no-wrap
36440 msgid ""
36441 " const char *key;\n"
36442 " void *data = guestfs_first_private (g, &key);\n"
36443 " while (data != NULL)\n"
36444 "   {\n"
36445 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36446 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36447 "     data = guestfs_next_private (g, &key);\n"
36448 "   }\n"
36449 "\n"
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:2098
36454 msgid ""
36455 "If you need to modify keys while walking, then you have to jump back to the "
36456 "beginning of the loop.  For example, to delete all keys prefixed with "
36457 "C<foo_>:"
36458 msgstr ""
36459
36460 #. type: verbatim
36461 #: ../src/guestfs.pod:2102
36462 #, no-wrap
36463 msgid ""
36464 "  const char *key;\n"
36465 "  void *data;\n"
36466 " again:\n"
36467 "  data = guestfs_first_private (g, &key);\n"
36468 "  while (data != NULL)\n"
36469 "    {\n"
36470 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36471 "        {\n"
36472 "          guestfs_set_private (g, key, NULL);\n"
36473 "          /* note that 'key' pointer is now invalid, and so is\n"
36474 "             the internal iterator */\n"
36475 "          goto again;\n"
36476 "        }\n"
36477 "      data = guestfs_next_private (g, &key);\n"
36478 "    }\n"
36479 "\n"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:2118
36484 msgid ""
36485 "Note that the above loop is guaranteed to terminate because the keys are "
36486 "being deleted, but other manipulations of keys within the loop might not "
36487 "terminate unless you also maintain an indication of which keys have been "
36488 "visited."
36489 msgstr ""
36490
36491 #. type: =end
36492 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
36493 msgid "html"
36494 msgstr "html"
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:2125
36498 msgid ""
36499 "<!-- old anchor for the next section --> <a name="
36500 "\"state_machine_and_low_level_event_api\"/>"
36501 msgstr ""
36502 "<!-- old anchor for the next section --> <a name="
36503 "\"state_machine_and_low_level_event_api\"/>"
36504
36505 #. type: =head1
36506 #: ../src/guestfs.pod:2130
36507 msgid "ARCHITECTURE"
36508 msgstr "АРХІТЕКТУРА"
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:2132
36512 msgid ""
36513 "Internally, libguestfs is implemented by running an appliance (a special "
36514 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36515 "process of the main program."
36516 msgstr ""
36517
36518 #. type: verbatim
36519 #: ../src/guestfs.pod:2136
36520 #, no-wrap
36521 msgid ""
36522 "  ___________________\n"
36523 " /                   \\\n"
36524 " | main program      |\n"
36525 " |                   |\n"
36526 " |                   |           child process / appliance\n"
36527 " |                   |           __________________________\n"
36528 " |                   |          / qemu                     \\\n"
36529 " +-------------------+   RPC    |      +-----------------+ |\n"
36530 " | libguestfs     <--------------------> guestfsd        | |\n"
36531 " |                   |          |      +-----------------+ |\n"
36532 " \\___________________/          |      | Linux kernel    | |\n"
36533 "                                |      +--^--------------+ |\n"
36534 "                                \\_________|________________/\n"
36535 "                                          |\n"
36536 "                                   _______v______\n"
36537 "                                  /              \\\n"
36538 "                                  | Device or    |\n"
36539 "                                  | disk image   |\n"
36540 "                                  \\______________/\n"
36541 "\n"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:2156
36546 msgid ""
36547 "The library, linked to the main program, creates the child process and hence "
36548 "the appliance in the L</guestfs_launch> function."
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../src/guestfs.pod:2159
36553 msgid ""
36554 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36555 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36556 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36557 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36558 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36559 "attached to the qemu process which translates device access by the "
36560 "appliance's Linux kernel into accesses to the image."
36561 msgstr ""
36562
36563 #. type: textblock
36564 #: ../src/guestfs.pod:2168
36565 msgid ""
36566 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36567 "Although the disk image you are attached to might also be used by some "
36568 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36569 "care if both libguestfs's qemu process and your virtual machine are trying "
36570 "to update the disk image at the same time, since these usually results in "
36571 "massive disk corruption)."
36572 msgstr ""
36573
36574 #. type: =head1
36575 #: ../src/guestfs.pod:2175
36576 msgid "STATE MACHINE"
36577 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36578
36579 #. type: textblock
36580 #: ../src/guestfs.pod:2177
36581 msgid "libguestfs uses a state machine to model the child process:"
36582 msgstr ""
36583
36584 #. type: verbatim
36585 #: ../src/guestfs.pod:2179
36586 #, no-wrap
36587 msgid ""
36588 "                         |\n"
36589 "                    guestfs_create\n"
36590 "                         |\n"
36591 "                         |\n"
36592 "                     ____V_____\n"
36593 "                    /          \\\n"
36594 "                    |  CONFIG  |\n"
36595 "                    \\__________/\n"
36596 "                     ^ ^   ^  \\\n"
36597 "                    /  |    \\  \\ guestfs_launch\n"
36598 "                   /   |    _\\__V______\n"
36599 "                  /    |   /           \\\n"
36600 "                 /     |   | LAUNCHING |\n"
36601 "                /      |   \\___________/\n"
36602 "               /       |       /\n"
36603 "              /        |  guestfs_launch\n"
36604 "             /         |     /\n"
36605 "    ______  /        __|____V\n"
36606 "   /      \\ ------> /        \\\n"
36607 "   | BUSY |         | READY  |\n"
36608 "   \\______/ <------ \\________/\n"
36609 "\n"
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:2201
36614 msgid ""
36615 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36616 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36617 "(3) alternating between READY and BUSY as commands are issued to, and "
36618 "carried out by, the child process."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:2206
36623 msgid ""
36624 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36625 "asynchronously at any time (eg. due to some internal error), and that causes "
36626 "the state to transition back to CONFIG."
36627 msgstr ""
36628
36629 #. type: textblock
36630 #: ../src/guestfs.pod:2210
36631 msgid ""
36632 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36633 "issued when in the CONFIG state."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:2213
36638 msgid ""
36639 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36640 "L</guestfs_launch> blocks until the child process is READY to accept "
36641 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36642 "moves the state from CONFIG to LAUNCHING while it is running."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:2219
36647 msgid ""
36648 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36649 "state.  These API calls block waiting for the command to be carried out (ie. "
36650 "the state to transition to BUSY and then back to READY).  There are no non-"
36651 "blocking versions, and no way to issue more than one command per handle at "
36652 "the same time."
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:2225
36657 msgid ""
36658 "Finally, the child process sends asynchronous messages back to the main "
36659 "program, such as kernel log messages.  You can register a callback to "
36660 "receive these messages."
36661 msgstr ""
36662
36663 #. type: =head1
36664 #: ../src/guestfs.pod:2229
36665 msgid "INTERNALS"
36666 msgstr ""
36667
36668 #. type: =head2
36669 #: ../src/guestfs.pod:2231
36670 msgid "COMMUNICATION PROTOCOL"
36671 msgstr ""
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:2233
36675 msgid ""
36676 "Don't rely on using this protocol directly.  This section documents how it "
36677 "currently works, but it may change at any time."
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:2236
36682 msgid ""
36683 "The protocol used to talk between the library and the daemon running inside "
36684 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36685 "1014, RFC 1832, RFC 4506)."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:2240
36690 msgid ""
36691 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36692 "this file is automatically generated)."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:2243
36697 msgid ""
36698 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36699 "and C<FileOut> parameters, which are handled with very simple request/reply "
36700 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36701 "parameters, which use the same request and reply messages, but they may also "
36702 "be followed by files sent using a chunked encoding."
36703 msgstr ""
36704
36705 #. type: =head3
36706 #: ../src/guestfs.pod:2250
36707 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36708 msgstr ""
36709
36710 #. type: textblock
36711 #: ../src/guestfs.pod:2252
36712 msgid "For ordinary functions, the request message is:"
36713 msgstr ""
36714
36715 #. type: verbatim
36716 #: ../src/guestfs.pod:2254
36717 #, no-wrap
36718 msgid ""
36719 " total length (header + arguments,\n"
36720 "      but not including the length word itself)\n"
36721 " struct guestfs_message_header (encoded as XDR)\n"
36722 " struct guestfs_<foo>_args (encoded as XDR)\n"
36723 "\n"
36724 msgstr ""
36725
36726 #. type: textblock
36727 #: ../src/guestfs.pod:2259
36728 msgid ""
36729 "The total length field allows the daemon to allocate a fixed size buffer "
36730 "into which it slurps the rest of the message.  As a result, the total length "
36731 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36732 "effective size of any request is limited to somewhere under this size."
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:2265
36737 msgid ""
36738 "Note also that many functions don't take any arguments, in which case the "
36739 "C<guestfs_I<foo>_args> is completely omitted."
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:2268
36744 msgid ""
36745 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36746 "receiver knows what type of args structure to expect, or none at all."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:2272
36751 msgid ""
36752 "For functions that take optional arguments, the optional arguments are "
36753 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36754 "arguments.  A bitmask in the header indicates which optional arguments are "
36755 "meaningful.  The bitmask is also checked to see if it contains bits set "
36756 "which the daemon does not know about (eg. if more optional arguments were "
36757 "added in a later version of the library), and this causes the call to be "
36758 "rejected."
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:2280
36763 msgid "The reply message for ordinary functions is:"
36764 msgstr ""
36765
36766 #. type: verbatim
36767 #: ../src/guestfs.pod:2282
36768 #, no-wrap
36769 msgid ""
36770 " total length (header + ret,\n"
36771 "      but not including the length word itself)\n"
36772 " struct guestfs_message_header (encoded as XDR)\n"
36773 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36774 "\n"
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:2287
36779 msgid ""
36780 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36781 "functions that return no formal return values."
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../src/guestfs.pod:2290
36786 msgid ""
36787 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36788 msgstr ""
36789
36790 #. type: textblock
36791 #: ../src/guestfs.pod:2293
36792 msgid ""
36793 "In the case of an error, a flag is set in the header, and the reply message "
36794 "is slightly changed:"
36795 msgstr ""
36796
36797 #. type: verbatim
36798 #: ../src/guestfs.pod:2296
36799 #, no-wrap
36800 msgid ""
36801 " total length (header + error,\n"
36802 "      but not including the length word itself)\n"
36803 " struct guestfs_message_header (encoded as XDR)\n"
36804 " struct guestfs_message_error (encoded as XDR)\n"
36805 "\n"
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:2301
36810 msgid ""
36811 "The C<guestfs_message_error> structure contains the error message as a "
36812 "string."
36813 msgstr ""
36814
36815 #. type: =head3
36816 #: ../src/guestfs.pod:2304
36817 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:2306
36822 msgid ""
36823 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36824 "The normal request message is sent (see above).  However this is followed by "
36825 "a sequence of file chunks."
36826 msgstr ""
36827
36828 #. type: verbatim
36829 #: ../src/guestfs.pod:2310
36830 #, no-wrap
36831 msgid ""
36832 " total length (header + arguments,\n"
36833 "      but not including the length word itself,\n"
36834 "      and not including the chunks)\n"
36835 " struct guestfs_message_header (encoded as XDR)\n"
36836 " struct guestfs_<foo>_args (encoded as XDR)\n"
36837 " sequence of chunks for FileIn param #0\n"
36838 " sequence of chunks for FileIn param #1 etc.\n"
36839 "\n"
36840 msgstr ""
36841
36842 #. type: textblock
36843 #: ../src/guestfs.pod:2318
36844 msgid "The \"sequence of chunks\" is:"
36845 msgstr ""
36846
36847 #. type: verbatim
36848 #: ../src/guestfs.pod:2320
36849 #, no-wrap
36850 msgid ""
36851 " length of chunk (not including length word itself)\n"
36852 " struct guestfs_chunk (encoded as XDR)\n"
36853 " length of chunk\n"
36854 " struct guestfs_chunk (encoded as XDR)\n"
36855 "   ...\n"
36856 " length of chunk\n"
36857 " struct guestfs_chunk (with data.data_len == 0)\n"
36858 "\n"
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:2328
36863 msgid ""
36864 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36865 "is set in the final chunk to indicate either successful completion or early "
36866 "cancellation."
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:2332
36871 msgid ""
36872 "At time of writing there are no functions that have more than one FileIn "
36873 "parameter.  However this is (theoretically) supported, by sending the "
36874 "sequence of chunks for each FileIn parameter one after another (from left to "
36875 "right)."
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../src/guestfs.pod:2337
36880 msgid ""
36881 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36882 "transfer.  The library does this by sending a chunk with a special flag set "
36883 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36884 "RPC, does I<not> send any reply, and goes back to reading the next request."
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:2343
36889 msgid ""
36890 "The daemon may also cancel.  It does this by writing a special word "
36891 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36892 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36893 "cancel chunk).  The special word is chosen so that even if cancellation "
36894 "happens right at the end of the transfer (after the library has finished "
36895 "writing and has started listening for the reply), the \"spurious\" cancel "
36896 "flag will not be confused with the reply message."
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:2352
36901 msgid ""
36902 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36903 "limit), and also files where the size is not known in advance (eg. from "
36904 "pipes or sockets).  However the chunks are rather small "
36905 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36906 "to keep much in memory."
36907 msgstr ""
36908
36909 #. type: =head3
36910 #: ../src/guestfs.pod:2358
36911 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:2360
36916 msgid ""
36917 "The protocol for FileOut parameters is exactly the same as for FileIn "
36918 "parameters, but with the roles of daemon and library reversed."
36919 msgstr ""
36920
36921 #. type: verbatim
36922 #: ../src/guestfs.pod:2363
36923 #, no-wrap
36924 msgid ""
36925 " total length (header + ret,\n"
36926 "      but not including the length word itself,\n"
36927 "      and not including the chunks)\n"
36928 " struct guestfs_message_header (encoded as XDR)\n"
36929 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36930 " sequence of chunks for FileOut param #0\n"
36931 " sequence of chunks for FileOut param #1 etc.\n"
36932 "\n"
36933 msgstr ""
36934
36935 #. type: =head3
36936 #: ../src/guestfs.pod:2371
36937 msgid "INITIAL MESSAGE"
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:2373
36942 msgid ""
36943 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36944 "which indicates that the guest and daemon is alive.  This is what L</"
36945 "guestfs_launch> waits for."
36946 msgstr ""
36947
36948 #. type: =head3
36949 #: ../src/guestfs.pod:2377
36950 msgid "PROGRESS NOTIFICATION MESSAGES"
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:2379
36955 msgid ""
36956 "The daemon may send progress notification messages at any time.  These are "
36957 "distinguished by the normal length word being replaced by "
36958 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:2383
36963 msgid ""
36964 "The library turns them into progress callbacks (see L</"
36965 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36966 "if not."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:2387
36971 msgid ""
36972 "The daemon self-limits the frequency of progress messages it sends (see "
36973 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36974 "messages."
36975 msgstr ""
36976
36977 #. type: =head1
36978 #: ../src/guestfs.pod:2391
36979 msgid "LIBGUESTFS VERSION NUMBERS"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../src/guestfs.pod:2393
36984 msgid ""
36985 "Since April 2010, libguestfs has started to make separate development and "
36986 "stable releases, along with corresponding branches in our git repository.  "
36987 "These separate releases can be identified by version number:"
36988 msgstr ""
36989
36990 #. type: verbatim
36991 #: ../src/guestfs.pod:2398
36992 #, no-wrap
36993 msgid ""
36994 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36995 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36996 "       |\n"
36997 "       v\n"
36998 " 1  .  3  .  5\n"
36999 " ^           ^\n"
37000 " |           |\n"
37001 " |           `-------- sub-version\n"
37002 " |\n"
37003 " `------ always '1' because we don't change the ABI\n"
37004 "\n"
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:2409
37009 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:2411
37014 msgid ""
37015 "As time passes we cherry pick fixes from the development branch and backport "
37016 "those into the stable branch, the effect being that the stable branch should "
37017 "get more stable and less buggy over time.  So the stable releases are ideal "
37018 "for people who don't need new features but would just like the software to "
37019 "work."
37020 msgstr ""
37021
37022 #. type: textblock
37023 #: ../src/guestfs.pod:2417
37024 msgid "Our criteria for backporting changes are:"
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:2423
37029 msgid ""
37030 "Documentation changes which don't affect any code are backported unless the "
37031 "documentation refers to a future feature which is not in stable."
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:2429
37036 msgid ""
37037 "Bug fixes which are not controversial, fix obvious problems, and have been "
37038 "well tested are backported."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:2434
37043 msgid ""
37044 "Simple rearrangements of code which shouldn't affect how it works get "
37045 "backported.  This is so that the code in the two branches doesn't get too "
37046 "far out of step, allowing us to backport future fixes more easily."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:2440
37051 msgid ""
37052 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37053 "exceptional case: the new feature is required in order to implement an "
37054 "important bug fix."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:2446
37059 msgid ""
37060 "A new stable branch starts when we think the new features in development are "
37061 "substantial and compelling enough over the current stable branch to warrant "
37062 "it.  When that happens we create new stable and development versions 1.N.0 "
37063 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37064 "stable at this point, but by backporting fixes from development, that branch "
37065 "will stabilize over time."
37066 msgstr ""
37067
37068 #. type: =head1
37069 #: ../src/guestfs.pod:2454
37070 msgid "EXTENDING LIBGUESTFS"
37071 msgstr ""
37072
37073 #. type: =head2
37074 #: ../src/guestfs.pod:2456
37075 msgid "ADDING A NEW API ACTION"
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:2458
37080 msgid ""
37081 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37082 "documentation) are generated, and this makes it easy to extend the "
37083 "libguestfs API."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:2462
37088 msgid "To add a new API action there are two changes:"
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../src/guestfs.pod:2468
37093 msgid ""
37094 "You need to add a description of the call (name, parameters, return type, "
37095 "tests, documentation) to C<generator/generator_actions.ml>."
37096 msgstr ""
37097
37098 #. type: textblock
37099 #: ../src/guestfs.pod:2471
37100 msgid ""
37101 "There are two sorts of API action, depending on whether the call goes "
37102 "through to the daemon in the appliance, or is serviced entirely by the "
37103 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37104 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37105 "an example of the latter, since a trace flag is maintained in the handle and "
37106 "all tracing is done on the library side."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../src/guestfs.pod:2479
37111 msgid ""
37112 "Most new actions are of the first type, and get added to the "
37113 "C<daemon_functions> list.  Each function has a unique procedure number used "
37114 "in the RPC protocol which is assigned to that action when we publish "
37115 "libguestfs and cannot be reused.  Take the latest procedure number and "
37116 "increment it."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:2485
37121 msgid ""
37122 "For library-only actions of the second type, add to the "
37123 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37124 "library and do not travel over the RPC mechanism to the daemon, these "
37125 "functions do not need a procedure number, and so the procedure number is set "
37126 "to C<-1>."
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:2493
37131 msgid "Implement the action (in C):"
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:2495
37136 msgid ""
37137 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37138 "C<daemon/> directory."
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../src/guestfs.pod:2498
37143 msgid ""
37144 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37145 "(note: double underscore) in the C<src/> directory."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:2501
37150 msgid "In either case, use another function as an example of what to do."
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../src/guestfs.pod:2505
37155 msgid "After making these changes, use C<make> to compile."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:2507
37160 msgid ""
37161 "Note that you don't need to implement the RPC, language bindings, manual "
37162 "pages or anything else.  It's all automatically generated from the OCaml "
37163 "description."
37164 msgstr ""
37165
37166 #. type: =head2
37167 #: ../src/guestfs.pod:2511
37168 msgid "ADDING TESTS FOR AN API ACTION"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:2513
37173 msgid ""
37174 "You can supply zero or as many tests as you want per API call.  The tests "
37175 "can either be added as part of the API description (C<generator/"
37176 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37177 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37178 "slower, so if possible use the first method."
37179 msgstr ""
37180
37181 #. type: textblock
37182 #: ../src/guestfs.pod:2519
37183 msgid ""
37184 "The following describes the test environment used when you add an API test "
37185 "in C<generator_actions.ml>."
37186 msgstr ""
37187
37188 #. type: textblock
37189 #: ../src/guestfs.pod:2522
37190 msgid "The test environment has 4 block devices:"
37191 msgstr ""
37192
37193 #. type: =item
37194 #: ../src/guestfs.pod:2526
37195 msgid "C</dev/sda> 500MB"
37196 msgstr "C</dev/sda> 500 МБ"
37197
37198 #. type: textblock
37199 #: ../src/guestfs.pod:2528
37200 msgid "General block device for testing."
37201 msgstr ""
37202
37203 #. type: =item
37204 #: ../src/guestfs.pod:2530
37205 msgid "C</dev/sdb> 50MB"
37206 msgstr "C</dev/sdb> 50 МБ"
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:2532
37210 msgid ""
37211 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37212 "operations."
37213 msgstr ""
37214
37215 #. type: =item
37216 #: ../src/guestfs.pod:2535
37217 msgid "C</dev/sdc> 10MB"
37218 msgstr "C</dev/sdc> 10 МБ"
37219
37220 #. type: textblock
37221 #: ../src/guestfs.pod:2537
37222 msgid "Used in a few tests where two block devices are needed."
37223 msgstr ""
37224
37225 #. type: =item
37226 #: ../src/guestfs.pod:2539
37227 msgid "C</dev/sdd>"
37228 msgstr "C</dev/sdd>"
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:2541
37232 msgid "ISO with fixed content (see C<images/test.iso>)."
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../src/guestfs.pod:2545
37237 msgid ""
37238 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37239 "appliance and block devices are reused between tests.  So don't try testing "
37240 "L</guestfs_kill_subprocess> :-x"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:2549
37245 msgid ""
37246 "Each test starts with an initial scenario, selected using one of the "
37247 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37248 "initialize the disks mentioned above in a particular way as documented in "
37249 "C<generator_types.ml>.  You should not assume anything about the previous "
37250 "contents of other disks that are not initialized."
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:2555
37255 msgid ""
37256 "You can add a prerequisite clause to any individual test.  This is a run-"
37257 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37258 "testing a command which might not work on all variations of libguestfs "
37259 "builds.  A test that has prerequisite of C<Always> means to run "
37260 "unconditionally."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:2561
37265 msgid ""
37266 "In addition, packagers can skip individual tests by setting environment "
37267 "variables before running C<make check>."
37268 msgstr ""
37269
37270 #. type: verbatim
37271 #: ../src/guestfs.pod:2564
37272 #, no-wrap
37273 msgid ""
37274 " SKIP_TEST_<CMD>_<NUM>=1\n"
37275 "\n"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../src/guestfs.pod:2566
37280 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:2568
37285 msgid "or:"
37286 msgstr "або:"
37287
37288 #. type: verbatim
37289 #: ../src/guestfs.pod:2570
37290 #, no-wrap
37291 msgid ""
37292 " SKIP_TEST_<CMD>=1\n"
37293 "\n"
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../src/guestfs.pod:2572
37298 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:2574
37303 msgid "Packagers can run only certain tests by setting for example:"
37304 msgstr ""
37305
37306 #. type: verbatim
37307 #: ../src/guestfs.pod:2576
37308 #, no-wrap
37309 msgid ""
37310 " TEST_ONLY=\"vfs_type zerofree\"\n"
37311 "\n"
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:2578
37316 msgid ""
37317 "See C<capitests/tests.c> for more details of how these environment variables "
37318 "work."
37319 msgstr ""
37320
37321 #. type: =head2
37322 #: ../src/guestfs.pod:2581
37323 msgid "DEBUGGING NEW API ACTIONS"
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../src/guestfs.pod:2583
37328 msgid "Test new actions work before submitting them."
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:2585
37333 msgid "You can use guestfish to try out new commands."
37334 msgstr ""
37335
37336 #. type: textblock
37337 #: ../src/guestfs.pod:2587
37338 msgid ""
37339 "Debugging the daemon is a problem because it runs inside a minimal "
37340 "environment.  However you can fprintf messages in the daemon to stderr, and "
37341 "they will show up if you use C<guestfish -v>."
37342 msgstr ""
37343
37344 #. type: =head2
37345 #: ../src/guestfs.pod:2591
37346 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:2593
37351 msgid ""
37352 "Our C source code generally adheres to some basic code-formatting "
37353 "conventions.  The existing code base is not totally consistent on this "
37354 "front, but we do prefer that contributed code be formatted similarly.  In "
37355 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37356 "indentation level, and other than that, follow the K&R style."
37357 msgstr ""
37358
37359 #. type: textblock
37360 #: ../src/guestfs.pod:2599
37361 msgid ""
37362 "If you use Emacs, add the following to one of one of your start-up files (e."
37363 "g., ~/.emacs), to help ensure that you get indentation right:"
37364 msgstr ""
37365
37366 #. type: verbatim
37367 #: ../src/guestfs.pod:2602
37368 #, no-wrap
37369 msgid ""
37370 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37371 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37372 " (add-hook 'find-file-hook\n"
37373 "     '(lambda () (if (and buffer-file-name\n"
37374 "                          (string-match \"/libguestfs\\\\>\"\n"
37375 "                              (buffer-file-name))\n"
37376 "                          (not (string-equal mode-name \"Change Log\"))\n"
37377 "                          (not (string-equal mode-name \"Makefile\")))\n"
37378 "                     (setq indent-tabs-mode nil))))\n"
37379 " \n"
37380 msgstr ""
37381
37382 #. type: verbatim
37383 #: ../src/guestfs.pod:2612
37384 #, no-wrap
37385 msgid ""
37386 " ;;; When editing C sources in libguestfs, use this style.\n"
37387 " (defun libguestfs-c-mode ()\n"
37388 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37389 "   (interactive)\n"
37390 "   (c-set-style \"K&R\")\n"
37391 "   (setq c-indent-level 2)\n"
37392 "   (setq c-basic-offset 2))\n"
37393 " (add-hook 'c-mode-hook\n"
37394 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37395 "                               (buffer-file-name))\n"
37396 "                           (libguestfs-c-mode))))\n"
37397 "\n"
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:2624
37402 msgid "Enable warnings when compiling (and fix any problems this finds):"
37403 msgstr ""
37404
37405 #. type: verbatim
37406 #: ../src/guestfs.pod:2627
37407 #, no-wrap
37408 msgid ""
37409 " ./configure --enable-gcc-warnings\n"
37410 "\n"
37411 msgstr ""
37412 " ./configure --enable-gcc-warnings\n"
37413 "\n"
37414
37415 #. type: textblock
37416 #: ../src/guestfs.pod:2629
37417 msgid "Useful targets are:"
37418 msgstr ""
37419
37420 #. type: verbatim
37421 #: ../src/guestfs.pod:2631
37422 #, no-wrap
37423 msgid ""
37424 " make syntax-check  # checks the syntax of the C code\n"
37425 " make check         # runs the test suite\n"
37426 "\n"
37427 msgstr ""
37428
37429 #. type: =head2
37430 #: ../src/guestfs.pod:2634
37431 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:2636
37436 msgid ""
37437 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37438 "which are used to do shell quoting."
37439 msgstr ""
37440
37441 #. type: =item
37442 #: ../src/guestfs.pod:2641
37443 msgid "%Q"
37444 msgstr "%Q"
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:2643
37448 msgid ""
37449 "Simple shell quoted string.  Any spaces or other shell characters are "
37450 "escaped for you."
37451 msgstr ""
37452
37453 #. type: =item
37454 #: ../src/guestfs.pod:2646
37455 msgid "%R"
37456 msgstr "%R"
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:2648
37460 msgid ""
37461 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37462 "the sysroot."
37463 msgstr ""
37464
37465 #. type: verbatim
37466 #: ../src/guestfs.pod:2655
37467 #, no-wrap
37468 msgid ""
37469 " asprintf (&cmd, \"cat %R\", path);\n"
37470 "\n"
37471 msgstr ""
37472
37473 #. type: textblock
37474 #: ../src/guestfs.pod:2657
37475 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37476 msgstr ""
37477
37478 #. type: textblock
37479 #: ../src/guestfs.pod:2659
37480 msgid ""
37481 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37482 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37483 "they are not passed via the shell (instead, straight to exec).  You probably "
37484 "want to use the C<sysroot_path()> function however."
37485 msgstr ""
37486
37487 #. type: =head2
37488 #: ../src/guestfs.pod:2665
37489 msgid "SUBMITTING YOUR NEW API ACTIONS"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:2667
37494 msgid ""
37495 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37496 "libguestfs> and CC to L<rjones@redhat.com>."
37497 msgstr ""
37498
37499 #. type: =head2
37500 #: ../src/guestfs.pod:2671
37501 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:2673
37506 msgid "We support i18n (gettext anyhow) in the library."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:2675
37511 msgid ""
37512 "However many messages come from the daemon, and we don't translate those at "
37513 "the moment.  One reason is that the appliance generally has all locale files "
37514 "removed from it, because they take up a lot of space.  So we'd have to readd "
37515 "some of those, as well as copying our PO files into the appliance."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:2681
37520 msgid ""
37521 "Debugging messages are never translated, since they are intended for the "
37522 "programmers."
37523 msgstr ""
37524
37525 #. type: =head2
37526 #: ../src/guestfs.pod:2684
37527 msgid "SOURCE CODE SUBDIRECTORIES"
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:2690
37532 msgid "The libguestfs appliance, build scripts and so on."
37533 msgstr ""
37534
37535 #. type: =item
37536 #: ../src/guestfs.pod:2692
37537 msgid "C<capitests>"
37538 msgstr "C<capitests>"
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:2694
37542 msgid "Automated tests of the C API."
37543 msgstr ""
37544
37545 #. type: =item
37546 #: ../src/guestfs.pod:2696
37547 msgid "C<cat>"
37548 msgstr "C<cat>"
37549
37550 #. type: textblock
37551 #: ../src/guestfs.pod:2698
37552 msgid ""
37553 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37554 "documentation."
37555 msgstr ""
37556
37557 #. type: =item
37558 #: ../src/guestfs.pod:2701
37559 msgid "C<caution>"
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:2703
37564 msgid ""
37565 "Safety and liveness tests of components that libguestfs depends upon (not of "
37566 "libguestfs itself).  Mainly this is for qemu and the kernel."
37567 msgstr ""
37568
37569 #. type: =item
37570 #: ../src/guestfs.pod:2706
37571 msgid "C<contrib>"
37572 msgstr "C<contrib>"
37573
37574 #. type: textblock
37575 #: ../src/guestfs.pod:2708
37576 msgid "Outside contributions, experimental parts."
37577 msgstr ""
37578
37579 #. type: =item
37580 #: ../src/guestfs.pod:2710
37581 msgid "C<daemon>"
37582 msgstr "C<daemon>"
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:2712
37586 msgid ""
37587 "The daemon that runs inside the libguestfs appliance and carries out actions."
37588 msgstr ""
37589
37590 #. type: =item
37591 #: ../src/guestfs.pod:2715
37592 msgid "C<df>"
37593 msgstr "C<df>"
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2717
37597 msgid "L<virt-df(1)> command and documentation."
37598 msgstr ""
37599
37600 #. type: =item
37601 #: ../src/guestfs.pod:2719
37602 msgid "C<edit>"
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:2721
37607 msgid "L<virt-edit(1)> command and documentation."
37608 msgstr ""
37609
37610 #. type: =item
37611 #: ../src/guestfs.pod:2723
37612 msgid "C<examples>"
37613 msgstr "C<examples>"
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:2725
37617 msgid "C API example code."
37618 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37619
37620 #. type: =item
37621 #: ../src/guestfs.pod:2727
37622 msgid "C<fish>"
37623 msgstr "C<fish>"
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:2729
37627 msgid ""
37628 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37629 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37630 "L<virt-tar-out(1)>."
37631 msgstr ""
37632
37633 #. type: =item
37634 #: ../src/guestfs.pod:2733
37635 msgid "C<fuse>"
37636 msgstr "C<fuse>"
37637
37638 #. type: textblock
37639 #: ../src/guestfs.pod:2735
37640 msgid ""
37641 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37642 msgstr ""
37643
37644 #. type: =item
37645 #: ../src/guestfs.pod:2737
37646 msgid "C<generator>"
37647 msgstr "C<generator>"
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:2739
37651 msgid ""
37652 "The crucially important generator, used to automatically generate large "
37653 "amounts of boilerplate C code for things like RPC and bindings."
37654 msgstr ""
37655
37656 #. type: =item
37657 #: ../src/guestfs.pod:2742
37658 msgid "C<images>"
37659 msgstr "C<images>"
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:2744
37663 msgid "Files used by the test suite."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:2746
37668 msgid "Some \"phony\" guest images which we test against."
37669 msgstr ""
37670
37671 #. type: =item
37672 #: ../src/guestfs.pod:2748
37673 msgid "C<inspector>"
37674 msgstr "C<inspector>"
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:2750
37678 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37679 msgstr ""
37680
37681 #. type: =item
37682 #: ../src/guestfs.pod:2752
37683 msgid "C<logo>"
37684 msgstr "C<logo>"
37685
37686 #. type: textblock
37687 #: ../src/guestfs.pod:2754
37688 msgid "Logo used on the website.  The fish is called Arthur by the way."
37689 msgstr ""
37690
37691 #. type: =item
37692 #: ../src/guestfs.pod:2756
37693 msgid "C<m4>"
37694 msgstr "C<m4>"
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:2758
37698 msgid "M4 macros used by autoconf."
37699 msgstr ""
37700
37701 #. type: =item
37702 #: ../src/guestfs.pod:2760
37703 msgid "C<po>"
37704 msgstr "C<po>"
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:2762
37708 msgid "Translations of simple gettext strings."
37709 msgstr "Переклади простих рядків gettext."
37710
37711 #. type: =item
37712 #: ../src/guestfs.pod:2764
37713 msgid "C<po-docs>"
37714 msgstr "C<po-docs>"
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:2766
37718 msgid ""
37719 "The build infrastructure and PO files for translations of manpages and POD "
37720 "files.  Eventually this will be combined with the C<po> directory, but that "
37721 "is rather complicated."
37722 msgstr ""
37723
37724 #. type: =item
37725 #: ../src/guestfs.pod:2770
37726 msgid "C<regressions>"
37727 msgstr "C<regressions>"
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:2772
37731 msgid "Regression tests."
37732 msgstr "Тести на регресії."
37733
37734 #. type: =item
37735 #: ../src/guestfs.pod:2774
37736 msgid "C<rescue>"
37737 msgstr "C<rescue>"
37738
37739 #. type: textblock
37740 #: ../src/guestfs.pod:2776
37741 msgid "L<virt-rescue(1)> command and documentation."
37742 msgstr ""
37743
37744 #. type: =item
37745 #: ../src/guestfs.pod:2778
37746 msgid "C<src>"
37747 msgstr "C<src>"
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:2780
37751 msgid "Source code to the C library."
37752 msgstr ""
37753
37754 #. type: =item
37755 #: ../src/guestfs.pod:2782
37756 msgid "C<tools>"
37757 msgstr "C<tools>"
37758
37759 #. type: textblock
37760 #: ../src/guestfs.pod:2784
37761 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37762 msgstr ""
37763
37764 #. type: =item
37765 #: ../src/guestfs.pod:2786
37766 msgid "C<test-tool>"
37767 msgstr "C<test-tool>"
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:2788
37771 msgid ""
37772 "Test tool for end users to test if their qemu/kernel combination will work "
37773 "with libguestfs."
37774 msgstr ""
37775
37776 #. type: =item
37777 #: ../src/guestfs.pod:2791
37778 msgid "C<csharp>"
37779 msgstr "C<csharp>"
37780
37781 #. type: =item
37782 #: ../src/guestfs.pod:2793
37783 msgid "C<haskell>"
37784 msgstr "C<haskell>"
37785
37786 #. type: =item
37787 #: ../src/guestfs.pod:2795
37788 msgid "C<java>"
37789 msgstr "C<java>"
37790
37791 #. type: =item
37792 #: ../src/guestfs.pod:2797
37793 msgid "C<ocaml>"
37794 msgstr "C<ocaml>"
37795
37796 #. type: =item
37797 #: ../src/guestfs.pod:2799
37798 msgid "C<php>"
37799 msgstr "C<php>"
37800
37801 #. type: =item
37802 #: ../src/guestfs.pod:2801
37803 msgid "C<perl>"
37804 msgstr "C<perl>"
37805
37806 #. type: =item
37807 #: ../src/guestfs.pod:2803
37808 msgid "C<python>"
37809 msgstr "C<python>"
37810
37811 #. type: =item
37812 #: ../src/guestfs.pod:2805
37813 msgid "C<ruby>"
37814 msgstr "C<ruby>"
37815
37816 #. type: textblock
37817 #: ../src/guestfs.pod:2807
37818 msgid "Language bindings."
37819 msgstr "Прив’язки до мов програмування."
37820
37821 #. type: =head2
37822 #: ../src/guestfs.pod:2811
37823 msgid "MAKING A STABLE RELEASE"
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:2813
37828 msgid ""
37829 "When we make a stable release, there are several steps documented here.  See "
37830 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37831 "branch policy."
37832 msgstr ""
37833
37834 #. type: textblock
37835 #: ../src/guestfs.pod:2821
37836 msgid ""
37837 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:2826
37842 msgid "Finalize RELEASE-NOTES."
37843 msgstr ""
37844
37845 #. type: textblock
37846 #: ../src/guestfs.pod:2830
37847 msgid "Update ROADMAP."
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:2834
37852 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:2838
37857 msgid "Push and pull from Transifex."
37858 msgstr ""
37859
37860 #. type: textblock
37861 #: ../src/guestfs.pod:2840
37862 msgid "Run:"
37863 msgstr ""
37864
37865 #. type: verbatim
37866 #: ../src/guestfs.pod:2842
37867 #, no-wrap
37868 msgid ""
37869 " tx push -s\n"
37870 "\n"
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2844
37875 msgid "to push the latest POT files to Transifex.  Then run:"
37876 msgstr ""
37877
37878 #. type: verbatim
37879 #: ../src/guestfs.pod:2846
37880 #, no-wrap
37881 msgid ""
37882 " ./tx-pull.sh\n"
37883 "\n"
37884 msgstr ""
37885
37886 #. type: textblock
37887 #: ../src/guestfs.pod:2848
37888 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:2852
37893 msgid ""
37894 "Create new stable and development directories under L<http://libguestfs.org/"
37895 "download>."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:2857
37900 msgid "Create the branch in git:"
37901 msgstr ""
37902
37903 #. type: verbatim
37904 #: ../src/guestfs.pod:2859
37905 #, no-wrap
37906 msgid ""
37907 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37908 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37909 " git branch stable-1.XX\n"
37910 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37911 "\n"
37912 msgstr ""
37913
37914 #. type: =head1
37915 #: ../src/guestfs.pod:2866
37916 msgid "LIMITS"
37917 msgstr ""
37918
37919 #. type: =head2
37920 #: ../src/guestfs.pod:2868
37921 msgid "PROTOCOL LIMITS"
37922 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:2870
37926 msgid ""
37927 "Internally libguestfs uses a message-based protocol to pass API calls and "
37928 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37929 "plenty more detail about this).  The maximum message size used by the "
37930 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37931 "aware of this limit.  The API calls which may be affected are individually "
37932 "documented, with a link back to this section of the documentation."
37933 msgstr ""
37934
37935 #. type: textblock
37936 #: ../src/guestfs.pod:2878
37937 msgid ""
37938 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37939 "a simple string.  Because this string is at some point internally encoded as "
37940 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37941 "the requested file is larger than this then you will get an error."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:2884
37946 msgid ""
37947 "In order to transfer large files into and out of the guest filesystem, you "
37948 "need to use particular calls that support this.  The sections L</UPLOADING> "
37949 "and L</DOWNLOADING> document how to do this."
37950 msgstr ""
37951
37952 #. type: textblock
37953 #: ../src/guestfs.pod:2888
37954 msgid ""
37955 "You might also consider mounting the disk image using our FUSE filesystem "
37956 "support (L<guestmount(1)>)."
37957 msgstr ""
37958
37959 #. type: =head2
37960 #: ../src/guestfs.pod:2891
37961 msgid "MAXIMUM NUMBER OF DISKS"
37962 msgstr ""
37963
37964 #. type: textblock
37965 #: ../src/guestfs.pod:2893
37966 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37967 msgstr ""
37968
37969 #. type: textblock
37970 #: ../src/guestfs.pod:2896
37971 msgid ""
37972 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37973 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37974 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37975 "purposes."
37976 msgstr ""
37977
37978 #. type: textblock
37979 #: ../src/guestfs.pod:2901
37980 msgid ""
37981 "We are working to substantially raise this limit in future versions but it "
37982 "requires complex changes to qemu."
37983 msgstr ""
37984
37985 #. type: textblock
37986 #: ../src/guestfs.pod:2904
37987 msgid ""
37988 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37989 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37990 "requires changes to qemu."
37991 msgstr ""
37992
37993 #. type: =head2
37994 #: ../src/guestfs.pod:2908
37995 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37996 msgstr ""
37997
37998 #. type: textblock
37999 #: ../src/guestfs.pod:2910
38000 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:2912
38005 msgid ""
38006 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38007 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:2915
38012 msgid ""
38013 "If you attach a disk with more than 15 partitions, the extra partitions are "
38014 "ignored by libguestfs."
38015 msgstr ""
38016
38017 #. type: =head2
38018 #: ../src/guestfs.pod:2918
38019 msgid "MAXIMUM SIZE OF A DISK"
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:2920
38024 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38025 msgstr ""
38026
38027 #. type: textblock
38028 #: ../src/guestfs.pod:2922
38029 msgid ""
38030 "We have tested block devices up to 1 exabyte (2**60 or "
38031 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38032 "filesystem."
38033 msgstr ""
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:2926
38037 msgid ""
38038 "Although libguestfs probably does not impose any limit, the underlying host "
38039 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38040 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38041 "TB).  If you store disk images as host logical volumes then you are limited "
38042 "by the maximum size of an LV."
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:2932
38047 msgid ""
38048 "For the hugest disk image files, we recommend using XFS on the host for "
38049 "storage."
38050 msgstr ""
38051
38052 #. type: =head2
38053 #: ../src/guestfs.pod:2935
38054 msgid "MAXIMUM SIZE OF A PARTITION"
38055 msgstr ""
38056
38057 #. type: textblock
38058 #: ../src/guestfs.pod:2937
38059 msgid ""
38060 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38061 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38062 "address a partition located beyond 2 TB on the disk."
38063 msgstr ""
38064
38065 #. type: textblock
38066 #: ../src/guestfs.pod:2941
38067 msgid ""
38068 "It is recommended that you use GPT partitions on disks which are larger than "
38069 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38070 "which are theoretically larger than the largest disk we could support."
38071 msgstr ""
38072
38073 #. type: =head2
38074 #: ../src/guestfs.pod:2946
38075 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38076 msgstr ""
38077
38078 #. type: textblock
38079 #: ../src/guestfs.pod:2948
38080 msgid ""
38081 "This depends on the filesystem type.  libguestfs itself does not impose any "
38082 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38083 "what these limits are."
38084 msgstr ""
38085
38086 #. type: =head2
38087 #: ../src/guestfs.pod:2952
38088 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../src/guestfs.pod:2954
38093 msgid ""
38094 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38095 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38096 "uploads and downloads."
38097 msgstr ""
38098
38099 #. type: =head2
38100 #: ../src/guestfs.pod:2958
38101 msgid "INSPECTION LIMITS"
38102 msgstr ""
38103
38104 #. type: textblock
38105 #: ../src/guestfs.pod:2960
38106 msgid ""
38107 "The inspection code has several arbitrary limits on things like the size of "
38108 "Windows Registry hive it will read, and the length of product name.  These "
38109 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38110 "memory and disk space on the host, and should not be reached in practice.  "
38111 "See the source code for more information."
38112 msgstr ""
38113
38114 #. type: textblock
38115 #: ../src/guestfs.pod:2986
38116 msgid ""
38117 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38118 "effect as calling C<guestfs_set_verbose (g, 1)>."
38119 msgstr ""
38120
38121 #. type: textblock
38122 #: ../src/guestfs.pod:2998
38123 msgid ""
38124 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38125 "the discussion of paths in section L</PATH> above."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:3007
38130 msgid "See also L</QEMU WRAPPERS> above."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:3011
38135 msgid ""
38136 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38137 "effect as calling C<guestfs_set_trace (g, 1)>."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:3029
38142 msgid ""
38143 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38144 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38145 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38146 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38147 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38148 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38149 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38150 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:3059
38155 msgid ""
38156 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38157 "(8)>, L<disktype(1)>."
38158 msgstr ""
38159
38160 #. type: =head1
38161 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553
38162 #: ../tools/virt-win-reg.pl:761
38163 msgid "BUGS"
38164 msgstr "ВАДИ"
38165
38166 #. type: textblock
38167 #: ../src/guestfs.pod:3068
38168 msgid "To get a list of bugs against libguestfs use this link:"
38169 msgstr ""
38170 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38171 "посиланням:"
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:3070
38175 msgid ""
38176 "L<https://bugzilla.redhat.com/buglist.cgi?"
38177 "component=libguestfs&product=Virtualization+Tools>"
38178 msgstr ""
38179 "L<https://bugzilla.redhat.com/buglist.cgi?"
38180 "component=libguestfs&product=Virtualization+Tools>"
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:3072
38184 msgid "To report a new bug against libguestfs use this link:"
38185 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:3074
38189 msgid ""
38190 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38191 "component=libguestfs&product=Virtualization+Tools>"
38192 msgstr ""
38193 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38194 "component=libguestfs&product=Virtualization+Tools>"
38195
38196 #. type: textblock
38197 #: ../src/guestfs.pod:3076
38198 msgid "When reporting a bug, please check:"
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../src/guestfs.pod:3082
38203 msgid "That the bug hasn't been reported already."
38204 msgstr ""
38205
38206 #. type: textblock
38207 #: ../src/guestfs.pod:3086
38208 msgid "That you are testing a recent version."
38209 msgstr ""
38210
38211 #. type: textblock
38212 #: ../src/guestfs.pod:3090
38213 msgid "Describe the bug accurately, and give a way to reproduce it."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../src/guestfs.pod:3094
38218 msgid ""
38219 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38220 "bug report."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../test-tool/libguestfs-test-tool.pod:5
38225 msgid "libguestfs-test-tool - End user tests for libguestfs"
38226 msgstr ""
38227
38228 #. type: verbatim
38229 #: ../test-tool/libguestfs-test-tool.pod:9
38230 #, no-wrap
38231 msgid ""
38232 " libguestfs-test-tool [--options]\n"
38233 "\n"
38234 msgstr ""
38235
38236 #. type: textblock
38237 #: ../test-tool/libguestfs-test-tool.pod:13
38238 msgid ""
38239 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38240 "and developers, to allow them to check basic libguestfs functionality is "
38241 "working.  This is needed because libguestfs occasionally breaks for reasons "
38242 "beyond our control: usually because of changes in the underlying qemu or "
38243 "kernel packages, or the host environment."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../test-tool/libguestfs-test-tool.pod:20
38248 msgid "If you suspect a problem in libguestfs, then just run:"
38249 msgstr ""
38250
38251 #. type: verbatim
38252 #: ../test-tool/libguestfs-test-tool.pod:22
38253 #, no-wrap
38254 msgid ""
38255 " libguestfs-test-tool\n"
38256 "\n"
38257 msgstr ""
38258
38259 #. type: textblock
38260 #: ../test-tool/libguestfs-test-tool.pod:24
38261 msgid "It will print lots of diagnostic messages."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../test-tool/libguestfs-test-tool.pod:26
38266 msgid "If it runs to completion successfully, you will see this near the end:"
38267 msgstr ""
38268
38269 #. type: verbatim
38270 #: ../test-tool/libguestfs-test-tool.pod:28
38271 #, no-wrap
38272 msgid ""
38273 " ===== TEST FINISHED OK =====\n"
38274 "\n"
38275 msgstr ""
38276
38277 #. type: textblock
38278 #: ../test-tool/libguestfs-test-tool.pod:30
38279 msgid "and the test tool will exit with code 0."
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../test-tool/libguestfs-test-tool.pod:32
38284 msgid ""
38285 "If it fails (and/or exits with non-zero error code), please paste the "
38286 "B<complete, unedited> output of the test tool into a bug report.  More "
38287 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38288 "> website."
38289 msgstr ""
38290
38291 #. type: =item
38292 #: ../test-tool/libguestfs-test-tool.pod:41
38293 msgid "I<--help>"
38294 msgstr "I<--help>"
38295
38296 #. type: textblock
38297 #: ../test-tool/libguestfs-test-tool.pod:43
38298 msgid "Display short usage information and exit."
38299 msgstr ""
38300
38301 #. type: =item
38302 #: ../test-tool/libguestfs-test-tool.pod:45
38303 msgid "I<--qemu qemu_binary>"
38304 msgstr "I<--qemu виконуваний_файл_qemu>"
38305
38306 #. type: textblock
38307 #: ../test-tool/libguestfs-test-tool.pod:47
38308 msgid ""
38309 "If you have downloaded another qemu binary, point this option at the full "
38310 "path of the binary to try it."
38311 msgstr ""
38312
38313 #. type: =item
38314 #: ../test-tool/libguestfs-test-tool.pod:50
38315 msgid "I<--qemudir qemu_source_dir>"
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../test-tool/libguestfs-test-tool.pod:52
38320 msgid ""
38321 "If you have compiled qemu from source, point this option at the source "
38322 "directory to try it."
38323 msgstr ""
38324
38325 #. type: =item
38326 #: ../test-tool/libguestfs-test-tool.pod:55
38327 msgid "I<--timeout N>"
38328 msgstr "I<--timeout N>"
38329
38330 #. type: textblock
38331 #: ../test-tool/libguestfs-test-tool.pod:57
38332 msgid ""
38333 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38334 "does not usually need to be adjusted unless your machine is very slow."
38335 msgstr ""
38336
38337 #. type: =head1
38338 #: ../test-tool/libguestfs-test-tool.pod:63
38339 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38340 msgstr ""
38341
38342 #. type: textblock
38343 #: ../test-tool/libguestfs-test-tool.pod:65
38344 msgid ""
38345 "If you have compiled another version of qemu from source and would like to "
38346 "try that, then you can use the I<--qemudir> option to point to the qemu "
38347 "source directory."
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../test-tool/libguestfs-test-tool.pod:69
38352 msgid ""
38353 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38354 "option to point to the binary."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../test-tool/libguestfs-test-tool.pod:72
38359 msgid ""
38360 "When using an alternate qemu with libguestfs, usually you would need to "
38361 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38362 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38363 "use either of the I<--qemudir> or I<--qemu> options."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../test-tool/libguestfs-test-tool.pod:79
38368 msgid ""
38369 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38370 "I<1> if there was an error."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../test-tool/libguestfs-test-tool.pod:84
38375 msgid ""
38376 "For the full list of environment variables which may affect libguestfs, "
38377 "please see the L<guestfs(3)> manual page."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../test-tool/libguestfs-test-tool.pod:89
38382 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38383 msgstr ""
38384
38385 #. type: textblock
38386 #: ../tools/virt-list-filesystems.pl:32
38387 msgid ""
38388 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38389 msgstr ""
38390
38391 #. type: verbatim
38392 #: ../tools/virt-list-filesystems.pl:36
38393 #, no-wrap
38394 msgid ""
38395 " virt-list-filesystems [--options] domname\n"
38396 "\n"
38397 msgstr ""
38398
38399 #. type: verbatim
38400 #: ../tools/virt-list-filesystems.pl:38
38401 #, no-wrap
38402 msgid ""
38403 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38404 "\n"
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38409 msgid ""
38410 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38411 "replacement."
38412 msgstr ""
38413
38414 #. type: textblock
38415 #: ../tools/virt-list-filesystems.pl:45
38416 msgid ""
38417 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38418 "are contained in a virtual machine or disk image."
38419 msgstr ""
38420
38421 #. type: textblock
38422 #: ../tools/virt-list-filesystems.pl:49
38423 msgid ""
38424 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38425 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38426 "> tool."
38427 msgstr ""
38428
38429 #. type: textblock
38430 #: ../tools/virt-list-filesystems.pl:112
38431 msgid ""
38432 "With this option, C<virt-list-filesystems> displays the type of each "
38433 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38434 msgstr ""
38435
38436 #. type: =item
38437 #: ../tools/virt-list-filesystems.pl:119
38438 #, fuzzy
38439 #| msgid "B<-a image>"
38440 msgid "B<-a>"
38441 msgstr "B<-a образ>"
38442
38443 #. type: textblock
38444 #: ../tools/virt-list-filesystems.pl:123
38445 msgid ""
38446 "Normally we only show mountable filesystems.  If this option is given then "
38447 "swap devices are shown too."
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../tools/virt-list-filesystems.pl:197
38452 msgid ""
38453 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38454 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38455 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38456 msgstr ""
38457 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38458 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38459 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38460
38461 #. type: textblock
38462 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38463 msgid "Copyright (C) 2009 Red Hat Inc."
38464 msgstr "© Red Hat Inc., 2009"
38465
38466 #. type: textblock
38467 #: ../tools/virt-list-partitions.pl:32
38468 msgid ""
38469 "virt-list-partitions - List partitions in a virtual machine or disk image"
38470 msgstr ""
38471
38472 #. type: verbatim
38473 #: ../tools/virt-list-partitions.pl:36
38474 #, no-wrap
38475 msgid ""
38476 " virt-list-partitions [--options] domname\n"
38477 "\n"
38478 msgstr ""
38479 " virt-list-partitions [--параметри] назва_домену\n"
38480 "\n"
38481
38482 #. type: verbatim
38483 #: ../tools/virt-list-partitions.pl:38
38484 #, no-wrap
38485 msgid ""
38486 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38487 "\n"
38488 msgstr ""
38489 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38490 "\n"
38491
38492 #. type: textblock
38493 #: ../tools/virt-list-partitions.pl:45
38494 msgid ""
38495 "C<virt-list-partitions> is a command line tool to list the partitions that "
38496 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38497 "first step to using L<virt-resize(1)>."
38498 msgstr ""
38499
38500 #. type: textblock
38501 #: ../tools/virt-list-partitions.pl:50
38502 msgid ""
38503 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38504 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38505 "> tool."
38506 msgstr ""
38507
38508 #. type: textblock
38509 #: ../tools/virt-list-partitions.pl:113
38510 msgid "Show sizes in human-readable form (eg. \"1G\")."
38511 msgstr ""
38512
38513 #. type: textblock
38514 #: ../tools/virt-list-partitions.pl:123
38515 msgid ""
38516 "With this option, C<virt-list-partitions> displays the type and size of each "
38517 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38518 msgstr ""
38519
38520 #. type: =item
38521 #: ../tools/virt-list-partitions.pl:130
38522 msgid "B<-t>"
38523 msgstr ""
38524
38525 #. type: =item
38526 #: ../tools/virt-list-partitions.pl:132
38527 #, fuzzy
38528 #| msgid "B<-t> | B<--total>"
38529 msgid "B<--total>"
38530 msgstr "B<-t> | B<--total>"
38531
38532 #. type: textblock
38533 #: ../tools/virt-list-partitions.pl:134
38534 msgid ""
38535 "Display the total size of each block device (as a separate row or rows)."
38536 msgstr ""
38537
38538 #. type: textblock
38539 #: ../tools/virt-list-partitions.pl:267
38540 msgid ""
38541 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38542 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38543 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38544 msgstr ""
38545 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38546 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38547 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38548
38549 #. type: textblock
38550 #: ../tools/virt-list-partitions.pl:283
38551 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38552 msgstr "© Red Hat Inc., 2009–2010"
38553
38554 #. type: textblock
38555 #: ../tools/virt-make-fs.pl:37
38556 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38557 msgstr ""
38558
38559 #. type: verbatim
38560 #: ../tools/virt-make-fs.pl:41
38561 #, no-wrap
38562 msgid ""
38563 " virt-make-fs [--options] input.tar output.img\n"
38564 "\n"
38565 msgstr ""
38566
38567 #. type: verbatim
38568 #: ../tools/virt-make-fs.pl:43
38569 #, no-wrap
38570 msgid ""
38571 " virt-make-fs [--options] input.tar.gz output.img\n"
38572 "\n"
38573 msgstr ""
38574
38575 #. type: verbatim
38576 #: ../tools/virt-make-fs.pl:45
38577 #, no-wrap
38578 msgid ""
38579 " virt-make-fs [--options] directory output.img\n"
38580 "\n"
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../tools/virt-make-fs.pl:49
38585 msgid ""
38586 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38587 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38588 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38589 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38590 "you want to attach these filesystems to existing virtual machines (eg. to "
38591 "import large amounts of read-only data to a VM)."
38592 msgstr ""
38593
38594 #. type: textblock
38595 #: ../tools/virt-make-fs.pl:57
38596 msgid "Basic usage is:"
38597 msgstr ""
38598
38599 #. type: verbatim
38600 #: ../tools/virt-make-fs.pl:59
38601 #, no-wrap
38602 msgid ""
38603 " virt-make-fs input output\n"
38604 "\n"
38605 msgstr ""
38606
38607 #. type: textblock
38608 #: ../tools/virt-make-fs.pl:61
38609 msgid ""
38610 "where C<input> is either a directory containing files that you want to add, "
38611 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38612 "C<output> is a disk image.  The input type is detected automatically.  The "
38613 "output disk image defaults to a raw ext2 image unless you specify extra "
38614 "flags (see L</OPTIONS> below)."
38615 msgstr ""
38616
38617 #. type: =head2
38618 #: ../tools/virt-make-fs.pl:67
38619 msgid "EXTRA SPACE"
38620 msgstr ""
38621
38622 #. type: textblock
38623 #: ../tools/virt-make-fs.pl:69
38624 msgid ""
38625 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38626 "the files that it contains, but might have extra space.  Depending on how "
38627 "you are going to use the output, you might think this extra space is wasted "
38628 "and want to minimize it, or you might want to leave space so that more files "
38629 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38630 "but you can use the I<--size> flag to leave space in the filesystem if you "
38631 "want it."
38632 msgstr ""
38633
38634 #. type: textblock
38635 #: ../tools/virt-make-fs.pl:77
38636 msgid ""
38637 "An alternative way to leave extra space but not make the output image any "
38638 "bigger is to use an alternative disk image format (instead of the default "
38639 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38640 "image format (check your hypervisor supports this before using it).  This "
38641 "allows you to choose a large I<--size> but the extra space won't actually be "
38642 "allocated in the image until you try to store something in it."
38643 msgstr ""
38644
38645 #. type: textblock
38646 #: ../tools/virt-make-fs.pl:85
38647 msgid ""
38648 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38649 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38650 "to build another image from scratch."
38651 msgstr ""
38652
38653 #. type: =head3
38654 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38655 #: ../tools/virt-make-fs.pl:142
38656 msgid "EXAMPLE"
38657 msgstr "ПРИКЛАД"
38658
38659 #. type: verbatim
38660 #: ../tools/virt-make-fs.pl:91
38661 #, no-wrap
38662 msgid ""
38663 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38664 "\n"
38665 msgstr ""
38666 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38667 "\n"
38668
38669 #. type: =head2
38670 #: ../tools/virt-make-fs.pl:93
38671 msgid "FILESYSTEM TYPE"
38672 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38673
38674 #. type: textblock
38675 #: ../tools/virt-make-fs.pl:95
38676 msgid ""
38677 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38678 "libguestfs supports can be used (but I<not> read-only formats like "
38679 "ISO9660).  Here are some of the more common choices:"
38680 msgstr ""
38681
38682 #. type: =item
38683 #: ../tools/virt-make-fs.pl:101
38684 msgid "I<ext3>"
38685 msgstr "I<ext3>"
38686
38687 #. type: textblock
38688 #: ../tools/virt-make-fs.pl:103
38689 msgid ""
38690 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38691 "you are not going to use the filesystem in a way that requires the journal, "
38692 "then this is just wasted overhead."
38693 msgstr ""
38694
38695 #. type: =item
38696 #: ../tools/virt-make-fs.pl:107
38697 msgid "I<ntfs> or I<vfat>"
38698 msgstr "I<ntfs> або I<vfat>"
38699
38700 #. type: textblock
38701 #: ../tools/virt-make-fs.pl:109
38702 msgid "Useful if exporting data to a Windows guest."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../tools/virt-make-fs.pl:111
38707 msgid ""
38708 "I<Note for vfat>: The tar archive or local directory must only contain files "
38709 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38710 "program running within libguestfs is unable to change the ownership of non-"
38711 "root files, since vfat itself does not support this."
38712 msgstr ""
38713
38714 #. type: =item
38715 #: ../tools/virt-make-fs.pl:116
38716 msgid "I<minix>"
38717 msgstr "I<minix>"
38718
38719 #. type: textblock
38720 #: ../tools/virt-make-fs.pl:118
38721 msgid ""
38722 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38723 "total filesystem size."
38724 msgstr ""
38725
38726 #. type: verbatim
38727 #: ../tools/virt-make-fs.pl:125
38728 #, no-wrap
38729 msgid ""
38730 " virt-make-fs --type=minix input minixfs.img\n"
38731 "\n"
38732 msgstr ""
38733
38734 #. type: =head2
38735 #: ../tools/virt-make-fs.pl:127
38736 msgid "TO PARTITION OR NOT TO PARTITION"
38737 msgstr ""
38738
38739 #. type: textblock
38740 #: ../tools/virt-make-fs.pl:129
38741 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38742 msgstr ""
38743
38744 #. type: textblock
38745 #: ../tools/virt-make-fs.pl:131
38746 msgid ""
38747 "Adding a partition can make the disk image more compatible with certain "
38748 "virtualized operating systems which don't expect to see a filesystem "
38749 "directly located on a block device (Linux doesn't care and will happily "
38750 "handle both types)."
38751 msgstr ""
38752
38753 #. type: textblock
38754 #: ../tools/virt-make-fs.pl:136
38755 msgid ""
38756 "On the other hand, if you have a partition table then the output image is no "
38757 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38758 "directly on a partitioned disk image.  (However libguestfs tools such as "
38759 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../tools/virt-make-fs.pl:144
38764 msgid "Add an MBR partition:"
38765 msgstr ""
38766
38767 #. type: verbatim
38768 #: ../tools/virt-make-fs.pl:146
38769 #, no-wrap
38770 msgid ""
38771 " virt-make-fs --partition -- input disk.img\n"
38772 "\n"
38773 msgstr ""
38774
38775 #. type: textblock
38776 #: ../tools/virt-make-fs.pl:148
38777 msgid ""
38778 "If the output disk image could be terabyte-sized or larger, it's better to "
38779 "use an EFI/GPT-compatible partition table:"
38780 msgstr ""
38781
38782 #. type: verbatim
38783 #: ../tools/virt-make-fs.pl:151
38784 #, no-wrap
38785 msgid ""
38786 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38787 "\n"
38788 msgstr ""
38789
38790 #. type: textblock
38791 #: ../tools/virt-make-fs.pl:179
38792 msgid "Enable debugging information."
38793 msgstr "Увімкнути виведення діагностичних даних."
38794
38795 #. type: =item
38796 #: ../tools/virt-make-fs.pl:185
38797 msgid "B<--size=E<lt>NE<gt>>"
38798 msgstr "B<--size=E<lt>NE<gt>>"
38799
38800 #. type: =item
38801 #: ../tools/virt-make-fs.pl:187
38802 msgid "B<--size=+E<lt>NE<gt>>"
38803 msgstr "B<--size=+E<lt>NE<gt>>"
38804
38805 #. type: =item
38806 #: ../tools/virt-make-fs.pl:189
38807 msgid "B<-s E<lt>NE<gt>>"
38808 msgstr "B<-s E<lt>NE<gt>>"
38809
38810 #. type: =item
38811 #: ../tools/virt-make-fs.pl:191
38812 msgid "B<-s +E<lt>NE<gt>>"
38813 msgstr "B<-s +E<lt>NE<gt>>"
38814
38815 #. type: textblock
38816 #: ../tools/virt-make-fs.pl:193
38817 msgid ""
38818 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../tools/virt-make-fs.pl:196
38823 msgid ""
38824 "If this option is I<not> given, then the output image will be just large "
38825 "enough to contain all the files, with not much wasted space."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../tools/virt-make-fs.pl:199
38830 msgid ""
38831 "To choose a fixed size output disk, specify an absolute number followed by b/"
38832 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38833 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38834 "files, else you will get an error."
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../tools/virt-make-fs.pl:204
38839 msgid ""
38840 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38841 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38842 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38843 "the input files, and (approximately) an extra 200 MB free space."
38844 msgstr ""
38845
38846 #. type: textblock
38847 #: ../tools/virt-make-fs.pl:210
38848 msgid ""
38849 "Note that virt-make-fs estimates free space, and therefore will not produce "
38850 "filesystems containing precisely the free space requested.  (It is much more "
38851 "expensive and time-consuming to produce a filesystem which has precisely the "
38852 "desired free space)."
38853 msgstr ""
38854
38855 #. type: =item
38856 #: ../tools/virt-make-fs.pl:219
38857 msgid "B<--format=E<lt>fmtE<gt>>"
38858 msgstr ""
38859
38860 #. type: =item
38861 #: ../tools/virt-make-fs.pl:221
38862 msgid "B<-F E<lt>fmtE<gt>>"
38863 msgstr ""
38864
38865 #. type: textblock
38866 #: ../tools/virt-make-fs.pl:223
38867 msgid "Choose the output disk image format."
38868 msgstr ""
38869
38870 #. type: textblock
38871 #: ../tools/virt-make-fs.pl:225
38872 msgid "The default is C<raw> (raw disk image)."
38873 msgstr ""
38874
38875 #. type: textblock
38876 #: ../tools/virt-make-fs.pl:227
38877 msgid ""
38878 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38879 "that would really make sense here is C<qcow2>."
38880 msgstr ""
38881
38882 #. type: =item
38883 #: ../tools/virt-make-fs.pl:234
38884 msgid "B<--type=E<lt>fsE<gt>>"
38885 msgstr ""
38886
38887 #. type: =item
38888 #: ../tools/virt-make-fs.pl:236
38889 msgid "B<-t E<lt>fsE<gt>>"
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../tools/virt-make-fs.pl:238
38894 msgid "Choose the output filesystem type."
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../tools/virt-make-fs.pl:240
38899 msgid "The default is C<ext2>."
38900 msgstr "Типовим значенням є C<ext2>."
38901
38902 #. type: textblock
38903 #: ../tools/virt-make-fs.pl:242
38904 msgid ""
38905 "Any filesystem which is supported read-write by libguestfs can be used here."
38906 msgstr ""
38907
38908 #. type: =item
38909 #: ../tools/virt-make-fs.pl:249
38910 msgid "B<--partition>"
38911 msgstr "B<--partition>"
38912
38913 #. type: =item
38914 #: ../tools/virt-make-fs.pl:251
38915 msgid "B<--partition=E<lt>parttypeE<gt>>"
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../tools/virt-make-fs.pl:253
38920 msgid ""
38921 "If specified, this flag adds an MBR partition table to the output disk image."
38922 msgstr ""
38923
38924 #. type: textblock
38925 #: ../tools/virt-make-fs.pl:256
38926 msgid ""
38927 "You can change the partition table type, eg. I<--partition=gpt> for large "
38928 "disks."
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../tools/virt-make-fs.pl:259
38933 msgid ""
38934 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38935 "might consider the next parameter to be the partition type.  For example:"
38936 msgstr ""
38937
38938 #. type: verbatim
38939 #: ../tools/virt-make-fs.pl:263
38940 #, no-wrap
38941 msgid ""
38942 " virt-make-fs --partition input.tar ...\n"
38943 "\n"
38944 msgstr ""
38945
38946 #. type: textblock
38947 #: ../tools/virt-make-fs.pl:265
38948 msgid ""
38949 "would cause virt-make-fs to think you wanted to use a partition type of "
38950 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38951 "dash) between options and the input file argument:"
38952 msgstr ""
38953
38954 #. type: verbatim
38955 #: ../tools/virt-make-fs.pl:269
38956 #, no-wrap
38957 msgid ""
38958 " virt-make-fs --partition -- input.tar ...\n"
38959 "\n"
38960 msgstr ""
38961 " virt-make-fs --partition -- input.tar ...\n"
38962 "\n"
38963
38964 #. type: textblock
38965 #: ../tools/virt-make-fs.pl:541
38966 msgid ""
38967 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38968 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38969 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38970 msgstr ""
38971 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38972 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38973 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38974
38975 #. type: textblock
38976 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38977 msgid ""
38978 "When reporting bugs, please enable debugging and capture the I<complete> "
38979 "output:"
38980 msgstr ""
38981
38982 #. type: verbatim
38983 #: ../tools/virt-make-fs.pl:558
38984 #, no-wrap
38985 msgid ""
38986 " export LIBGUESTFS_DEBUG=1\n"
38987 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38988 "\n"
38989 msgstr ""
38990 " export LIBGUESTFS_DEBUG=1\n"
38991 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38992 "\n"
38993
38994 #. type: textblock
38995 #: ../tools/virt-make-fs.pl:561
38996 msgid ""
38997 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38998 "redhat.com/>"
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../tools/virt-tar.pl:33
39003 msgid "virt-tar - Extract or upload files to a virtual machine"
39004 msgstr ""
39005
39006 #. type: verbatim
39007 #: ../tools/virt-tar.pl:37
39008 #, no-wrap
39009 msgid ""
39010 " virt-tar [--options] -x domname directory tarball\n"
39011 "\n"
39012 msgstr ""
39013
39014 #. type: verbatim
39015 #: ../tools/virt-tar.pl:39
39016 #, no-wrap
39017 msgid ""
39018 " virt-tar [--options] -u domname tarball directory\n"
39019 "\n"
39020 msgstr ""
39021
39022 #. type: verbatim
39023 #: ../tools/virt-tar.pl:41
39024 #, no-wrap
39025 msgid ""
39026 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39027 "\n"
39028 msgstr ""
39029
39030 #. type: verbatim
39031 #: ../tools/virt-tar.pl:43
39032 #, no-wrap
39033 msgid ""
39034 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39035 "\n"
39036 msgstr ""
39037
39038 #. type: =head2
39039 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39040 msgid "NOTE"
39041 msgstr "ПРИМІТКА"
39042
39043 #. type: textblock
39044 #: ../tools/virt-tar.pl:47
39045 msgid ""
39046 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39047 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../tools/virt-tar.pl:52
39052 msgid "Download C</home> from the VM into a local tarball:"
39053 msgstr ""
39054
39055 #. type: verbatim
39056 #: ../tools/virt-tar.pl:54
39057 #, no-wrap
39058 msgid ""
39059 " virt-tar -x domname /home home.tar\n"
39060 "\n"
39061 msgstr ""
39062
39063 #. type: verbatim
39064 #: ../tools/virt-tar.pl:56
39065 #, no-wrap
39066 msgid ""
39067 " virt-tar -zx domname /home home.tar.gz\n"
39068 "\n"
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../tools/virt-tar.pl:58
39073 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39074 msgstr ""
39075
39076 #. type: verbatim
39077 #: ../tools/virt-tar.pl:60
39078 #, no-wrap
39079 msgid ""
39080 " virt-tar -u domname uploadstuff.tar /tmp\n"
39081 "\n"
39082 msgstr ""
39083
39084 #. type: verbatim
39085 #: ../tools/virt-tar.pl:62
39086 #, no-wrap
39087 msgid ""
39088 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39089 "\n"
39090 msgstr ""
39091
39092 #. type: textblock
39093 #: ../tools/virt-tar.pl:66
39094 msgid ""
39095 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39096 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39097 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../tools/virt-tar.pl:71
39102 msgid ""
39103 "You can use I<-x> (extract) on live virtual machines, but you might get "
39104 "inconsistent results or errors if there is filesystem activity inside the "
39105 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39106 "work, but the only way to guarantee consistent results is if the virtual "
39107 "machine is shut down."
39108 msgstr ""
39109
39110 #. type: textblock
39111 #: ../tools/virt-tar.pl:79
39112 msgid ""
39113 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39114 "parts of a guest filesystem.  There are many possibilities: making backups, "
39115 "uploading data files, snooping on guest activity, fixing or customizing "
39116 "guests, etc."
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../tools/virt-tar.pl:84
39121 msgid ""
39122 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39123 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39124 "should look at the L<guestfish(1)> tool."
39125 msgstr ""
39126
39127 #. type: textblock
39128 #: ../tools/virt-tar.pl:88
39129 msgid ""
39130 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39131 "its contents (recursively) from the virtual machine into a local tarball.  "
39132 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39133 "virtual machine.  You cannot use these two options together."
39134 msgstr ""
39135
39136 #. type: textblock
39137 #: ../tools/virt-tar.pl:94
39138 msgid ""
39139 "In addition, you may need to use the I<-z> (gZip) option to enable "
39140 "compression.  When uploading, you have to specify I<-z> if the upload file "
39141 "is compressed because virt-tar won't detect this on its own."
39142 msgstr ""
39143
39144 #. type: textblock
39145 #: ../tools/virt-tar.pl:98
39146 msgid ""
39147 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39148 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39149 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39150 "the L<libguestfs(3)> API)."
39151 msgstr ""
39152
39153 #. type: =item
39154 #: ../tools/virt-tar.pl:160
39155 #, fuzzy
39156 #| msgid "B<--format>"
39157 msgid "B<--extract>"
39158 msgstr "B<--format>"
39159
39160 #. type: =item
39161 #: ../tools/virt-tar.pl:162
39162 #, fuzzy
39163 #| msgid "download"
39164 msgid "B<--download>"
39165 msgstr "download"
39166
39167 #. type: =item
39168 #: ../tools/virt-tar.pl:164
39169 msgid "B<-u>"
39170 msgstr ""
39171
39172 #. type: =item
39173 #: ../tools/virt-tar.pl:166
39174 #, fuzzy
39175 #| msgid "B<-u> | B<--upload>"
39176 msgid "B<--upload>"
39177 msgstr "B<-u> | B<--upload>"
39178
39179 #. type: textblock
39180 #: ../tools/virt-tar.pl:168
39181 msgid ""
39182 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39183 "local tarball."
39184 msgstr ""
39185
39186 #. type: textblock
39187 #: ../tools/virt-tar.pl:171
39188 msgid ""
39189 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39190 "Please read the L</WARNING> section above before using this option."
39191 msgstr ""
39192
39193 #. type: textblock
39194 #: ../tools/virt-tar.pl:175
39195 msgid "You must specify exactly one of these options."
39196 msgstr ""
39197
39198 #. type: =item
39199 #: ../tools/virt-tar.pl:181
39200 msgid "B<-z>"
39201 msgstr ""
39202
39203 #. type: =item
39204 #: ../tools/virt-tar.pl:183
39205 #, fuzzy
39206 #| msgid "B<-z> | B<--gzip>"
39207 msgid "B<--gzip>"
39208 msgstr "B<-z> | B<--gzip>"
39209
39210 #. type: textblock
39211 #: ../tools/virt-tar.pl:185
39212 msgid "Specify that the input or output tarball is gzip-compressed."
39213 msgstr ""
39214
39215 #. type: textblock
39216 #: ../tools/virt-tar.pl:298
39217 msgid ""
39218 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39219 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39220 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39221 "org/>."
39222 msgstr ""
39223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39224 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39225 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39226 "org/>."
39227
39228 #. type: textblock
39229 #: ../tools/virt-win-reg.pl:37
39230 msgid ""
39231 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39232 msgstr ""
39233
39234 #. type: verbatim
39235 #: ../tools/virt-win-reg.pl:41
39236 #, no-wrap
39237 msgid ""
39238 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39239 "\n"
39240 msgstr ""
39241
39242 #. type: verbatim
39243 #: ../tools/virt-win-reg.pl:43
39244 #, no-wrap
39245 msgid ""
39246 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39247 "\n"
39248 msgstr ""
39249
39250 #. type: verbatim
39251 #: ../tools/virt-win-reg.pl:45
39252 #, no-wrap
39253 msgid ""
39254 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39255 "\n"
39256 msgstr ""
39257
39258 #. type: verbatim
39259 #: ../tools/virt-win-reg.pl:47
39260 #, no-wrap
39261 msgid ""
39262 " virt-win-reg --merge domname [input.reg ...]\n"
39263 "\n"
39264 msgstr ""
39265
39266 #. type: verbatim
39267 #: ../tools/virt-win-reg.pl:49
39268 #, no-wrap
39269 msgid ""
39270 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39271 "\n"
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../tools/virt-win-reg.pl:53
39276 msgid ""
39277 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39278 "virtual machines.  If you do this, you I<will> get irreversible disk "
39279 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39280 "but doesn't catch all cases."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../tools/virt-win-reg.pl:58
39285 msgid ""
39286 "Modifying the Windows Registry is an inherently risky operation.  The format "
39287 "is deliberately obscure and undocumented, and Registry changes can leave the "
39288 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39289 "you have a reliable backup first."
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../tools/virt-win-reg.pl:65
39294 msgid ""
39295 "This program can export and merge Windows Registry entries from a Windows "
39296 "guest."
39297 msgstr ""
39298
39299 #. type: textblock
39300 #: ../tools/virt-win-reg.pl:68
39301 msgid ""
39302 "The first parameter is the libvirt guest name or the raw disk image of a "
39303 "Windows guest."
39304 msgstr ""
39305
39306 #. type: textblock
39307 #: ../tools/virt-win-reg.pl:71
39308 msgid ""
39309 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39310 "exported (recursively).  For example:"
39311 msgstr ""
39312
39313 #. type: verbatim
39314 #: ../tools/virt-win-reg.pl:74
39315 #, no-wrap
39316 msgid ""
39317 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39318 "\n"
39319 msgstr ""
39320
39321 #. type: textblock
39322 #: ../tools/virt-win-reg.pl:76
39323 msgid ""
39324 "You can also display single values from within registry keys, for example:"
39325 msgstr ""
39326
39327 #. type: verbatim
39328 #: ../tools/virt-win-reg.pl:79
39329 #, no-wrap
39330 msgid ""
39331 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39332 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39333 " Windows 7 Enterprise\n"
39334 "\n"
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../tools/virt-win-reg.pl:83
39339 msgid ""
39340 "With I<--merge>, you can merge a textual regedit file into the Windows "
39341 "Registry:"
39342 msgstr ""
39343
39344 #. type: verbatim
39345 #: ../tools/virt-win-reg.pl:86
39346 #, no-wrap
39347 msgid ""
39348 " $ virt-win-reg --merge Windows7 changes.reg\n"
39349 "\n"
39350 msgstr ""
39351
39352 #. type: textblock
39353 #: ../tools/virt-win-reg.pl:90
39354 msgid ""
39355 "This program is only meant for simple access to the registry.  If you want "
39356 "to do complicated things with the registry, we suggest you download the "
39357 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39358 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39359 "L<hivexregedit(1)>."
39360 msgstr ""
39361
39362 #. type: =item
39363 #: ../tools/virt-win-reg.pl:159
39364 msgid "B<--merge>"
39365 msgstr "B<--merge>"
39366
39367 #. type: textblock
39368 #: ../tools/virt-win-reg.pl:161
39369 msgid ""
39370 "In merge mode, this merges a textual regedit file into the Windows Registry "
39371 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39372 "displays or exports Registry entries instead."
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../tools/virt-win-reg.pl:165
39377 msgid ""
39378 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39379 "result in disk corruption.  However exporting (without this flag)  is always "
39380 "safe."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../tools/virt-win-reg.pl:173
39385 msgid "B<--encoding> UTF-16LE|ASCII"
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../tools/virt-win-reg.pl:175
39390 msgid ""
39391 "When merging (only), you may need to specify the encoding for strings to be "
39392 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39393 "(3)/ENCODING STRINGS>."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../tools/virt-win-reg.pl:179
39398 msgid ""
39399 "The default is to use UTF-16LE, which should work with recent versions of "
39400 "Windows."
39401 msgstr ""
39402
39403 #. type: =item
39404 #: ../tools/virt-win-reg.pl:186
39405 msgid "B<--unsafe-printable-strings>"
39406 msgstr ""
39407
39408 #. type: textblock
39409 #: ../tools/virt-win-reg.pl:188
39410 msgid ""
39411 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39412 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39413 "present."
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../tools/virt-win-reg.pl:192
39418 msgid ""
39419 "This is unsafe and does not preserve the fidelity of strings in the original "
39420 "Registry for various reasons:"
39421 msgstr ""
39422
39423 #. type: textblock
39424 #: ../tools/virt-win-reg.pl:199
39425 msgid ""
39426 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39427 "other encodings will be corrupted by this transformation."
39428 msgstr ""
39429
39430 #. type: textblock
39431 #: ../tools/virt-win-reg.pl:204
39432 msgid ""
39433 "Assumes that everything which has type 1 or 2 is really a string and that "
39434 "everything else is not a string, but the type field in real Registries is "
39435 "not reliable."
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../tools/virt-win-reg.pl:210
39440 msgid ""
39441 "Loses information about whether a zero codepoint followed the string in the "
39442 "Registry or not."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../tools/virt-win-reg.pl:215
39447 msgid ""
39448 "This all happens because the Registry itself contains no information about "
39449 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../tools/virt-win-reg.pl:219
39454 msgid ""
39455 "You should only use this option for quick hacking and debugging of the "
39456 "Registry contents, and I<never> use it if the output is going to be passed "
39457 "into another program or stored in another Registry."
39458 msgstr ""
39459
39460 #. type: =head1
39461 #: ../tools/virt-win-reg.pl:556
39462 msgid "SUPPORTED SYSTEMS"
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../tools/virt-win-reg.pl:558
39467 msgid ""
39468 "The program currently supports Windows NT-derived guests starting with "
39469 "Windows XP through to at least Windows 7."
39470 msgstr ""
39471
39472 #. type: textblock
39473 #: ../tools/virt-win-reg.pl:561
39474 msgid "The following Registry keys are supported:"
39475 msgstr ""
39476
39477 #. type: =item
39478 #: ../tools/virt-win-reg.pl:565
39479 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39480 msgstr ""
39481
39482 #. type: =item
39483 #: ../tools/virt-win-reg.pl:567
39484 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39485 msgstr ""
39486
39487 #. type: =item
39488 #: ../tools/virt-win-reg.pl:569
39489 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39490 msgstr ""
39491
39492 #. type: =item
39493 #: ../tools/virt-win-reg.pl:571
39494 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39495 msgstr ""
39496
39497 #. type: =item
39498 #: ../tools/virt-win-reg.pl:573
39499 msgid "C<HKEY_USERS\\.DEFAULT>"
39500 msgstr ""
39501
39502 #. type: =item
39503 #: ../tools/virt-win-reg.pl:575
39504 msgid "C<HKEY_USERS\\I<SID>>"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../tools/virt-win-reg.pl:577
39509 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39510 msgstr ""
39511
39512 #. type: =item
39513 #: ../tools/virt-win-reg.pl:579
39514 msgid "C<HKEY_USERS\\I<username>>"
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../tools/virt-win-reg.pl:581
39519 msgid ""
39520 "where I<username> is a local user name (this is a libguestfs extension)."
39521 msgstr ""
39522
39523 #. type: textblock
39524 #: ../tools/virt-win-reg.pl:585
39525 msgid ""
39526 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39527 "C<HKEY_USERS>."
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../tools/virt-win-reg.pl:588
39532 msgid ""
39533 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39534 "supported (there is no \"current user\")."
39535 msgstr ""
39536
39537 #. type: =head1
39538 #: ../tools/virt-win-reg.pl:591
39539 msgid "ENCODING"
39540 msgstr "КОДУВАННЯ"
39541
39542 #. type: textblock
39543 #: ../tools/virt-win-reg.pl:593
39544 msgid ""
39545 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39546 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39547 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39548 "Windows-style line endings, you may need to reencode the whole file before "
39549 "or after processing."
39550 msgstr ""
39551
39552 #. type: textblock
39553 #: ../tools/virt-win-reg.pl:599
39554 msgid ""
39555 "To reencode a file from Windows format to Linux (before processing it with "
39556 "the I<--merge> option), you would do something like this:"
39557 msgstr ""
39558
39559 #. type: verbatim
39560 #: ../tools/virt-win-reg.pl:602
39561 #, no-wrap
39562 msgid ""
39563 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39564 "\n"
39565 msgstr ""
39566
39567 #. type: textblock
39568 #: ../tools/virt-win-reg.pl:604
39569 msgid ""
39570 "To go in the opposite direction, after exporting and before sending the file "
39571 "to a Windows user, do something like this:"
39572 msgstr ""
39573
39574 #. type: verbatim
39575 #: ../tools/virt-win-reg.pl:607
39576 #, no-wrap
39577 msgid ""
39578 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39579 "\n"
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../tools/virt-win-reg.pl:609
39584 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39585 msgstr ""
39586
39587 #. type: textblock
39588 #: ../tools/virt-win-reg.pl:611
39589 msgid ""
39590 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39591 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39592 "style (CRLF) line endings, like this:"
39593 msgstr ""
39594
39595 #. type: verbatim
39596 #: ../tools/virt-win-reg.pl:615
39597 #, no-wrap
39598 msgid ""
39599 " $ file software.reg\n"
39600 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39601 " with CRLF line terminators\n"
39602 "\n"
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../tools/virt-win-reg.pl:619
39607 msgid "This file would need conversion before you could I<--merge> it."
39608 msgstr ""
39609
39610 #. type: =head1
39611 #: ../tools/virt-win-reg.pl:621
39612 msgid "CurrentControlSet etc."
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../tools/virt-win-reg.pl:623
39617 msgid ""
39618 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39619 "Registry at the level of the hive file, and therefore you cannot modify "
39620 "these."
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../tools/virt-win-reg.pl:627
39625 msgid ""
39626 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39627 "circumstances it might refer to another control set.  The way to find out is "
39628 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39629 msgstr ""
39630
39631 #. type: verbatim
39632 #: ../tools/virt-win-reg.pl:631
39633 #, no-wrap
39634 msgid ""
39635 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39636 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39637 " \"Current\"=dword:00000001\n"
39638 " \"Default\"=dword:00000001\n"
39639 " \"Failed\"=dword:00000000\n"
39640 " \"LastKnownGood\"=dword:00000002\n"
39641 "\n"
39642 msgstr ""
39643
39644 #. type: textblock
39645 #: ../tools/virt-win-reg.pl:638
39646 msgid "\"Current\" is the one which Windows will choose when it boots."
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../tools/virt-win-reg.pl:640
39651 msgid ""
39652 "Similarly, other C<Current...> keys in the path may need to be replaced."
39653 msgstr ""
39654
39655 #. type: =head1
39656 #: ../tools/virt-win-reg.pl:643
39657 msgid "WINDOWS TIPS"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../tools/virt-win-reg.pl:645
39662 msgid ""
39663 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39664 "be shut off, else you will get disk corruption."
39665 msgstr ""
39666
39667 #. type: =head2
39668 #: ../tools/virt-win-reg.pl:648
39669 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39670 msgstr ""
39671
39672 #. type: textblock
39673 #: ../tools/virt-win-reg.pl:650
39674 msgid ""
39675 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39676 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39677 "is uploaded into C<C:\\>:"
39678 msgstr ""
39679
39680 #. type: verbatim
39681 #: ../tools/virt-win-reg.pl:654
39682 #, no-wrap
39683 msgid ""
39684 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39685 "\n"
39686 msgstr ""
39687
39688 #. type: textblock
39689 #: ../tools/virt-win-reg.pl:656
39690 msgid "Prepare a regedit file containing the registry change:"
39691 msgstr ""
39692
39693 #. type: verbatim
39694 #: ../tools/virt-win-reg.pl:658
39695 #, no-wrap
39696 msgid ""
39697 " cat > test.reg <<'EOF'\n"
39698 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39699 " \"Test\"=\"c:\\\\test.bat\"\n"
39700 " EOF\n"
39701 "\n"
39702 msgstr ""
39703
39704 #. type: textblock
39705 #: ../tools/virt-win-reg.pl:663
39706 msgid ""
39707 "In this example we use the key C<RunOnce> which means that the script will "
39708 "run precisely once when the first user logs in.  If you want it to run every "
39709 "time a user logs in, replace C<RunOnce> with C<Run>."
39710 msgstr ""
39711
39712 #. type: textblock
39713 #: ../tools/virt-win-reg.pl:667
39714 msgid "Now update the registry:"
39715 msgstr ""
39716
39717 #. type: verbatim
39718 #: ../tools/virt-win-reg.pl:669
39719 #, no-wrap
39720 msgid ""
39721 " virt-win-reg --merge WindowsGuest test.reg\n"
39722 "\n"
39723 msgstr ""
39724
39725 #. type: =head2
39726 #: ../tools/virt-win-reg.pl:671
39727 msgid "INSTALLING A SERVICE"
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../tools/virt-win-reg.pl:673
39732 msgid ""
39733 "This section assumes you are familiar with Windows services, and you either "
39734 "have a program which handles the Windows Service Control Protocol directly "
39735 "or you want to run any program using a service wrapper like SrvAny or the "
39736 "free RHSrvAny."
39737 msgstr ""
39738
39739 #. type: textblock
39740 #: ../tools/virt-win-reg.pl:678
39741 msgid ""
39742 "First upload the program and optionally the service wrapper.  In this case "
39743 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39744 msgstr ""
39745
39746 #. type: verbatim
39747 #: ../tools/virt-win-reg.pl:682
39748 #, no-wrap
39749 msgid ""
39750 " guestfish -i -d WindowsGuest <<EOF\n"
39751 "   upload rhsrvany.exe /rhsrvany.exe\n"
39752 "   upload test.exe /test.exe\n"
39753 " EOF\n"
39754 "\n"
39755 msgstr ""
39756
39757 #. type: textblock
39758 #: ../tools/virt-win-reg.pl:687
39759 msgid ""
39760 "Prepare a regedit file containing the registry changes.  In this example, "
39761 "the first registry change is needed for the service itself or the service "
39762 "wrapper (if used).  The second registry change is only needed because I am "
39763 "using the RHSrvAny service wrapper."
39764 msgstr ""
39765
39766 #. type: verbatim
39767 #: ../tools/virt-win-reg.pl:692
39768 #, no-wrap
39769 msgid ""
39770 " cat > service.reg <<'EOF'\n"
39771 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39772 " \"Type\"=dword:00000010\n"
39773 " \"Start\"=dword:00000002\n"
39774 " \"ErrorControl\"=dword:00000001\n"
39775 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39776 " \"DisplayName\"=\"RHSrvAny\"\n"
39777 " \"ObjectName\"=\"NetworkService\"\n"
39778 " \n"
39779 msgstr ""
39780
39781 #. type: verbatim
39782 #: ../tools/virt-win-reg.pl:701
39783 #, no-wrap
39784 msgid ""
39785 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39786 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39787 " \"PWD\"=\"c:\\\\Temp\"\n"
39788 " EOF\n"
39789 "\n"
39790 msgstr ""
39791
39792 #. type: textblock
39793 #: ../tools/virt-win-reg.pl:712
39794 msgid ""
39795 "For use of C<ControlSet001> see the section above in this manual page.  You "
39796 "may need to adjust this according to the control set that is in use by the "
39797 "guest."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../tools/virt-win-reg.pl:718
39802 msgid ""
39803 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39804 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39805 "privileged account."
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../tools/virt-win-reg.pl:724
39810 msgid ""
39811 "For the meaning of the magic numbers, see this Microsoft KB article: "
39812 "L<http://support.microsoft.com/kb/103000>."
39813 msgstr ""
39814
39815 #. type: textblock
39816 #: ../tools/virt-win-reg.pl:729
39817 msgid "Update the registry:"
39818 msgstr ""
39819
39820 #. type: verbatim
39821 #: ../tools/virt-win-reg.pl:731
39822 #, no-wrap
39823 msgid ""
39824 " virt-win-reg --merge WindowsGuest service.reg\n"
39825 "\n"
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../tools/virt-win-reg.pl:735
39830 msgid ""
39831 "Be careful when passing parameters containing C<\\> (backslash) in the "
39832 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39833 "(but not both) to protect them from the shell."
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../tools/virt-win-reg.pl:739
39838 msgid "Paths and value names are case-insensitive."
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../tools/virt-win-reg.pl:748
39843 msgid ""
39844 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39845 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39846 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39847 msgstr ""
39848
39849 #. type: verbatim
39850 #: ../tools/virt-win-reg.pl:766
39851 #, no-wrap
39852 msgid ""
39853 " export LIBGUESTFS_DEBUG=1\n"
39854 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39855 "\n"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../tools/virt-win-reg.pl:769
39860 msgid ""
39861 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39862 "redhat.com/>"
39863 msgstr ""
39864
39865 #~ msgid ""
39866 #~ " g = guestfs_create ();\n"
39867 #~ " \n"
39868 #~ msgstr ""
39869 #~ " g = guestfs_create ();\n"
39870 #~ " \n"
39871
39872 #~ msgid "B<-a> | B<--all>"
39873 #~ msgstr "B<-a> | B<--all>"
39874
39875 #~ msgid "B<-x> | B<--extract> | B<--download>"
39876 #~ msgstr "B<-x> | B<--extract> | B<--download>"