Version 1.12.4.
[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-17 13:52+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:1018 ../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:2652
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:1235 ../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:3026 ../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:1264 ../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:3102 ../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:1269 ../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:1274 ../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:1279 ../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:4188
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:390 ../fish/guestfish-actions.pod:398
2647 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2648 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2649 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2650 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2651 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2652 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2653 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2654 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2655 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2656 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2657 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2658 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
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:15 ../src/guestfs-actions.pod:22
2665 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2666 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2667 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2668 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2669 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2670 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2671 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2672 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2673 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2674 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2675 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2676 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2677 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
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:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2686 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2687 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2688 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
2689 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
2690 #: ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827
2691 #: ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849
2692 #: ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083
2693 #: ../src/guestfs.pod:3087 ../src/guestfs.pod:3091
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:1086
3343 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2965
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:1260 ../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:3098
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:1262 ../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:3100
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:3107
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:3112
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:3117
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:1292 ../fish/guestfish-actions.pod:1934
3862 #: ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1922
3863 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1639
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:7
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:9
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 "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:991
4520 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4521 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4522 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4523 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4524 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4525 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5190
4526 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4527 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4528 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4529 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4952
4530 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5260
4531 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6579
4532 #: ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6671
4533 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7719
4534 #: ../src/guestfs-actions.pod:7889
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:573 ../fish/guestfish-actions.pod:1973
4628 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4629 #: ../fish/guestfish-actions.pod:3447
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:3101
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
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."
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../fish/guestfish-actions.pod:266
5020 msgid ""
5021 "This option is only useful when debugging Augeas lenses.  Use of this option "
5022 "may require additional memory for the libguestfs appliance.  You may need to "
5023 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5024 msgstr ""
5025
5026 #. type: =item
5027 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5028 msgid "C<AUG_NO_STDINC> = 8"
5029 msgstr "C<AUG_NO_STDINC> = 8"
5030
5031 #. type: textblock
5032 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5033 msgid "Do not use standard load path for modules."
5034 msgstr ""
5035
5036 #. type: =item
5037 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5038 msgid "C<AUG_SAVE_NOOP> = 16"
5039 msgstr "C<AUG_SAVE_NOOP> = 16"
5040
5041 #. type: textblock
5042 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5043 msgid "Make save a no-op, just record what would have been changed."
5044 msgstr ""
5045
5046 #. type: =item
5047 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5048 msgid "C<AUG_NO_LOAD> = 32"
5049 msgstr "C<AUG_NO_LOAD> = 32"
5050
5051 #. type: textblock
5052 #: ../fish/guestfish-actions.pod:281
5053 msgid "Do not load the tree in L</aug-init>."
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../fish/guestfish-actions.pod:285
5058 msgid "To close the handle, you can call L</aug-close>."
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5063 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5064 msgstr ""
5065
5066 #. type: =head2
5067 #: ../fish/guestfish-actions.pod:289
5068 msgid "aug-insert"
5069 msgstr ""
5070
5071 #. type: verbatim
5072 #: ../fish/guestfish-actions.pod:291
5073 #, no-wrap
5074 msgid ""
5075 " aug-insert augpath label true|false\n"
5076 "\n"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5081 msgid ""
5082 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5083 "or after C<path> (depending on the boolean flag C<before>)."
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5088 msgid ""
5089 "C<path> must match exactly one existing node in the tree, and C<label> must "
5090 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5091 msgstr ""
5092
5093 #. type: =head2
5094 #: ../fish/guestfish-actions.pod:301
5095 msgid "aug-load"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../fish/guestfish-actions.pod:303
5100 #, no-wrap
5101 msgid ""
5102 " aug-load\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5108 msgid "Load files into the tree."
5109 msgstr "Завантажити файли до ієрархії."
5110
5111 #. type: textblock
5112 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5113 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:310
5118 msgid "aug-ls"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:312
5123 #, no-wrap
5124 msgid ""
5125 " aug-ls augpath\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:314
5131 msgid ""
5132 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5133 "resulting nodes into alphabetical order."
5134 msgstr ""
5135
5136 #. type: =head2
5137 #: ../fish/guestfish-actions.pod:317
5138 msgid "aug-match"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../fish/guestfish-actions.pod:319
5143 #, no-wrap
5144 msgid ""
5145 " aug-match augpath\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5151 msgid ""
5152 "Returns a list of paths which match the path expression C<path>.  The "
5153 "returned paths are sufficiently qualified so that they match exactly one "
5154 "node in the current tree."
5155 msgstr ""
5156
5157 #. type: =head2
5158 #: ../fish/guestfish-actions.pod:325
5159 msgid "aug-mv"
5160 msgstr ""
5161
5162 #. type: verbatim
5163 #: ../fish/guestfish-actions.pod:327
5164 #, no-wrap
5165 msgid ""
5166 " aug-mv src dest\n"
5167 "\n"
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5172 msgid ""
5173 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5174 "C<dest> is overwritten if it exists."
5175 msgstr ""
5176
5177 #. type: =head2
5178 #: ../fish/guestfish-actions.pod:332
5179 msgid "aug-rm"
5180 msgstr ""
5181
5182 #. type: verbatim
5183 #: ../fish/guestfish-actions.pod:334
5184 #, no-wrap
5185 msgid ""
5186 " aug-rm augpath\n"
5187 "\n"
5188 msgstr ""
5189
5190 #. type: textblock
5191 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5192 msgid "Remove C<path> and all of its children."
5193 msgstr ""
5194
5195 #. type: textblock
5196 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5197 msgid "On success this returns the number of entries which were removed."
5198 msgstr ""
5199
5200 #. type: =head2
5201 #: ../fish/guestfish-actions.pod:340
5202 msgid "aug-save"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../fish/guestfish-actions.pod:342
5207 #, no-wrap
5208 msgid ""
5209 " aug-save\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5215 msgid "This writes all pending changes to disk."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:346
5220 msgid ""
5221 "The flags which were passed to L</aug-init> affect exactly how files are "
5222 "saved."
5223 msgstr ""
5224
5225 #. type: =head2
5226 #: ../fish/guestfish-actions.pod:349
5227 msgid "aug-set"
5228 msgstr ""
5229
5230 #. type: verbatim
5231 #: ../fish/guestfish-actions.pod:351
5232 #, no-wrap
5233 msgid ""
5234 " aug-set augpath val\n"
5235 "\n"
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5240 msgid "Set the value associated with C<path> to C<val>."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:355
5245 msgid ""
5246 "In the Augeas API, it is possible to clear a node by setting the value to "
5247 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5248 "this call.  Instead you must use the L</aug-clear> call."
5249 msgstr ""
5250
5251 #. type: =head2
5252 #: ../fish/guestfish-actions.pod:360
5253 msgid "available"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../fish/guestfish-actions.pod:362
5258 #, no-wrap
5259 msgid ""
5260 " available 'groups ...'\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5266 msgid ""
5267 "This command is used to check the availability of some groups of "
5268 "functionality in the appliance, which not all builds of the libguestfs "
5269 "appliance will be able to provide."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:368
5274 msgid ""
5275 "The libguestfs groups, and the functions that those groups correspond to, "
5276 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5277 "runtime by calling L</available-all-groups>."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5282 msgid ""
5283 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5284 "\"]> would check for the availability of the Linux inotify functions and "
5285 "Augeas (configuration file editing) functions."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5290 msgid "The command returns no error if I<all> requested groups are available."
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5295 msgid ""
5296 "It fails with an error if one or more of the requested groups is unavailable "
5297 "in the appliance."
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5302 msgid ""
5303 "If an unknown group name is included in the list of groups then an error is "
5304 "always returned."
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5309 msgid "I<Notes:>"
5310 msgstr "I<Нотатки:>"
5311
5312 #. type: textblock
5313 #: ../fish/guestfish-actions.pod:392
5314 msgid "You must call L</launch> before calling this function."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5319 msgid ""
5320 "The reason is because we don't know what groups are supported by the "
5321 "appliance/daemon until it is running and can be queried."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5326 msgid ""
5327 "If a group of functions is available, this does not necessarily mean that "
5328 "they will work.  You still have to check for errors when calling individual "
5329 "API functions even if they are available."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5334 msgid ""
5335 "It is usually the job of distro packagers to build complete functionality "
5336 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5337 "with all requirements satisfied, will support everything."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../fish/guestfish-actions.pod:414
5342 msgid ""
5343 "This call was added in version C<1.0.80>.  In previous versions of "
5344 "libguestfs all you could do would be to speculatively execute a command to "
5345 "find out if the daemon implemented it.  See also L</version>."
5346 msgstr ""
5347
5348 #. type: =head2
5349 #: ../fish/guestfish-actions.pod:421
5350 msgid "available-all-groups"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../fish/guestfish-actions.pod:423
5355 #, no-wrap
5356 msgid ""
5357 " available-all-groups\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../fish/guestfish-actions.pod:425
5363 msgid ""
5364 "This command returns a list of all optional groups that this daemon knows "
5365 "about.  Note this returns both supported and unsupported groups.  To find "
5366 "out which ones the daemon can actually support you have to call L</"
5367 "available> on each member of the returned list."
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../fish/guestfish-actions.pod:431
5372 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5373 msgstr ""
5374
5375 #. type: =head2
5376 #: ../fish/guestfish-actions.pod:433
5377 msgid "base64-in"
5378 msgstr ""
5379
5380 #. type: verbatim
5381 #: ../fish/guestfish-actions.pod:435
5382 #, no-wrap
5383 msgid ""
5384 " base64-in (base64file|-) filename\n"
5385 "\n"
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5390 msgid ""
5391 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5396 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5397 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5398 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5399 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5400 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5401 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5402 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../fish/guestfish-actions.pod:442
5407 msgid "base64-out"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../fish/guestfish-actions.pod:444
5412 #, no-wrap
5413 msgid ""
5414 " base64-out filename (base64file|-)\n"
5415 "\n"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5420 msgid ""
5421 "This command downloads the contents of C<filename>, writing it out to local "
5422 "file C<base64file> encoded as base64."
5423 msgstr ""
5424
5425 #. type: =head2
5426 #: ../fish/guestfish-actions.pod:451
5427 msgid "blockdev-flushbufs"
5428 msgstr ""
5429
5430 #. type: verbatim
5431 #: ../fish/guestfish-actions.pod:453
5432 #, no-wrap
5433 msgid ""
5434 " blockdev-flushbufs device\n"
5435 "\n"
5436 msgstr ""
5437
5438 #. type: textblock
5439 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5440 msgid ""
5441 "This tells the kernel to flush internal buffers associated with C<device>."
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5446 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5447 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5448 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5449 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5450 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5451 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5452 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5453 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5454 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5455 msgid "This uses the L<blockdev(8)> command."
5456 msgstr ""
5457
5458 #. type: =head2
5459 #: ../fish/guestfish-actions.pod:460
5460 msgid "blockdev-getbsz"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../fish/guestfish-actions.pod:462
5465 #, no-wrap
5466 msgid ""
5467 " blockdev-getbsz device\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5473 msgid "This returns the block size of a device."
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5478 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5479 msgid ""
5480 "(Note this is different from both I<size in blocks> and I<filesystem block "
5481 "size>)."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../fish/guestfish-actions.pod:471
5486 msgid "blockdev-getro"
5487 msgstr ""
5488
5489 #. type: verbatim
5490 #: ../fish/guestfish-actions.pod:473
5491 #, no-wrap
5492 msgid ""
5493 " blockdev-getro device\n"
5494 "\n"
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5499 msgid ""
5500 "Returns a boolean indicating if the block device is read-only (true if read-"
5501 "only, false if not)."
5502 msgstr ""
5503
5504 #. type: =head2
5505 #: ../fish/guestfish-actions.pod:480
5506 msgid "blockdev-getsize64"
5507 msgstr ""
5508
5509 #. type: verbatim
5510 #: ../fish/guestfish-actions.pod:482
5511 #, no-wrap
5512 msgid ""
5513 " blockdev-getsize64 device\n"
5514 "\n"
5515 msgstr ""
5516
5517 #. type: textblock
5518 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5519 msgid "This returns the size of the device in bytes."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:486
5524 msgid "See also L</blockdev-getsz>."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../fish/guestfish-actions.pod:490
5529 msgid "blockdev-getss"
5530 msgstr ""
5531
5532 #. type: verbatim
5533 #: ../fish/guestfish-actions.pod:492
5534 #, no-wrap
5535 msgid ""
5536 " blockdev-getss device\n"
5537 "\n"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5542 msgid ""
5543 "This returns the size of sectors on a block device.  Usually 512, but can be "
5544 "larger for modern devices."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:497
5549 msgid ""
5550 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5551 msgstr ""
5552
5553 #. type: =head2
5554 #: ../fish/guestfish-actions.pod:502
5555 msgid "blockdev-getsz"
5556 msgstr ""
5557
5558 #. type: verbatim
5559 #: ../fish/guestfish-actions.pod:504
5560 #, no-wrap
5561 msgid ""
5562 " blockdev-getsz device\n"
5563 "\n"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5568 msgid ""
5569 "This returns the size of the device in units of 512-byte sectors (even if "
5570 "the sectorsize isn't 512 bytes ... weird)."
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../fish/guestfish-actions.pod:509
5575 msgid ""
5576 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5577 "blockdev-getsize64> for the more useful I<size in bytes>."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:515
5582 msgid "blockdev-rereadpt"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:517
5587 #, no-wrap
5588 msgid ""
5589 " blockdev-rereadpt device\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5595 msgid "Reread the partition table on C<device>."
5596 msgstr ""
5597
5598 #. type: =head2
5599 #: ../fish/guestfish-actions.pod:523
5600 msgid "blockdev-setbsz"
5601 msgstr ""
5602
5603 #. type: verbatim
5604 #: ../fish/guestfish-actions.pod:525
5605 #, no-wrap
5606 msgid ""
5607 " blockdev-setbsz device blocksize\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5613 msgid "This sets the block size of a device."
5614 msgstr ""
5615
5616 #. type: =head2
5617 #: ../fish/guestfish-actions.pod:534
5618 msgid "blockdev-setro"
5619 msgstr ""
5620
5621 #. type: verbatim
5622 #: ../fish/guestfish-actions.pod:536
5623 #, no-wrap
5624 msgid ""
5625 " blockdev-setro device\n"
5626 "\n"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5631 msgid "Sets the block device named C<device> to read-only."
5632 msgstr ""
5633
5634 #. type: =head2
5635 #: ../fish/guestfish-actions.pod:542
5636 msgid "blockdev-setrw"
5637 msgstr ""
5638
5639 #. type: verbatim
5640 #: ../fish/guestfish-actions.pod:544
5641 #, no-wrap
5642 msgid ""
5643 " blockdev-setrw device\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5649 msgid "Sets the block device named C<device> to read-write."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:550
5654 msgid "btrfs-filesystem-resize"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:552
5659 #, no-wrap
5660 msgid ""
5661 " btrfs-filesystem-resize mountpoint [size:..]\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5667 msgid "This command resizes a btrfs filesystem."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5672 msgid ""
5673 "Note that unlike other resize calls, the filesystem has to be mounted and "
5674 "the parameter is the mountpoint not the device (this is a requirement of "
5675 "btrfs itself)."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5680 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5681 msgid "The optional parameters are:"
5682 msgstr ""
5683
5684 #. type: =item
5685 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5686 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5687 msgid "C<size>"
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5692 msgid ""
5693 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5694 "resized to the maximum size."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5699 msgid "See also L<btrfs(8)>."
5700 msgstr ""
5701
5702 #. type: =head2
5703 #: ../fish/guestfish-actions.pod:575
5704 msgid "case-sensitive-path"
5705 msgstr ""
5706
5707 #. type: verbatim
5708 #: ../fish/guestfish-actions.pod:577
5709 #, no-wrap
5710 msgid ""
5711 " case-sensitive-path path\n"
5712 "\n"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5717 msgid ""
5718 "This can be used to resolve case insensitive paths on a filesystem which is "
5719 "case sensitive.  The use case is to resolve paths which you have read from "
5720 "Windows configuration files or the Windows Registry, to the true path."
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5725 msgid ""
5726 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5727 "(and probably others), which is that although the underlying filesystem is "
5728 "case-insensitive, the driver exports the filesystem to Linux as case-"
5729 "sensitive."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5734 msgid ""
5735 "One consequence of this is that special directories such as C<c:\\windows> "
5736 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5737 "precise details of how they were created.  In Windows itself this would not "
5738 "be a problem."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5743 msgid ""
5744 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5745 "#posixfilenames1>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5750 msgid ""
5751 "This function resolves the true case of each element in the path and returns "
5752 "the case-sensitive path."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:601
5757 msgid ""
5758 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5759 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5760 "the directories were originally created under Windows)."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5765 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:609
5770 msgid "See also L</realpath>."
5771 msgstr ""
5772
5773 #. type: =head2
5774 #: ../fish/guestfish-actions.pod:611
5775 msgid "cat"
5776 msgstr "cat"
5777
5778 #. type: verbatim
5779 #: ../fish/guestfish-actions.pod:613
5780 #, no-wrap
5781 msgid ""
5782 " cat path\n"
5783 "\n"
5784 msgstr ""
5785 " cat шлях\n"
5786 "\n"
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5790 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5791 msgid "Return the contents of the file named C<path>."
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../fish/guestfish-actions.pod:617
5796 msgid ""
5797 "Note that this function cannot correctly handle binary files (specifically, "
5798 "files containing C<\\0> character which is treated as end of string).  For "
5799 "those you need to use the L</read-file> or L</download> functions which have "
5800 "a more complex interface."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5805 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5806 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5807 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5808 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5809 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5810 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5811 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5812 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5813 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5814 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5815 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5816 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5817 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5818 #: ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5172
5819 #: ../fish/guestfish-actions.pod:5201 ../fish/guestfish-actions.pod:5211
5820 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5821 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5822 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5823 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5824 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5825 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5826 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5827 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5828 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5829 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5830 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5831 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5832 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7713
5833 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5834 #: ../src/guestfs-actions.pod:7844 ../src/guestfs-actions.pod:7863
5835 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928
5836 msgid ""
5837 "Because of the message protocol, there is a transfer limit of somewhere "
5838 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:625
5843 msgid "checksum"
5844 msgstr "checksum"
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:627
5848 #, no-wrap
5849 msgid ""
5850 " checksum csumtype path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5856 msgid ""
5857 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5862 msgid ""
5863 "The type of checksum to compute is given by the C<csumtype> parameter which "
5864 "must have one of the following values:"
5865 msgstr ""
5866
5867 #. type: =item
5868 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5869 msgid "C<crc>"
5870 msgstr "C<crc>"
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5874 msgid ""
5875 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5876 "C<cksum> command."
5877 msgstr ""
5878
5879 #. type: =item
5880 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5881 msgid "C<md5>"
5882 msgstr "C<md5>"
5883
5884 #. type: textblock
5885 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5886 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5887 msgstr ""
5888
5889 #. type: =item
5890 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5891 msgid "C<sha1>"
5892 msgstr "C<sha1>"
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5896 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5897 msgstr ""
5898
5899 #. type: =item
5900 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5901 msgid "C<sha224>"
5902 msgstr "C<sha224>"
5903
5904 #. type: textblock
5905 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5906 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5907 msgstr ""
5908
5909 #. type: =item
5910 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5911 msgid "C<sha256>"
5912 msgstr "C<sha256>"
5913
5914 #. type: textblock
5915 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5916 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5917 msgstr ""
5918
5919 #. type: =item
5920 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5921 msgid "C<sha384>"
5922 msgstr "C<sha384>"
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5926 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5927 msgstr ""
5928
5929 #. type: =item
5930 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5931 msgid "C<sha512>"
5932 msgstr "C<sha512>"
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5936 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5941 msgid "The checksum is returned as a printable string."
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:670
5946 msgid "To get the checksum for a device, use L</checksum-device>."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:672
5951 msgid "To get the checksums for many files, use L</checksums-out>."
5952 msgstr ""
5953
5954 #. type: =head2
5955 #: ../fish/guestfish-actions.pod:674
5956 msgid "checksum-device"
5957 msgstr "checksum-device"
5958
5959 #. type: verbatim
5960 #: ../fish/guestfish-actions.pod:676
5961 #, no-wrap
5962 msgid ""
5963 " checksum-device csumtype device\n"
5964 "\n"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:678
5969 msgid ""
5970 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5971 "device named C<device>.  For the types of checksums supported see the L</"
5972 "checksum> command."
5973 msgstr ""
5974
5975 #. type: =head2
5976 #: ../fish/guestfish-actions.pod:682
5977 msgid "checksums-out"
5978 msgstr ""
5979
5980 #. type: verbatim
5981 #: ../fish/guestfish-actions.pod:684
5982 #, no-wrap
5983 msgid ""
5984 " checksums-out csumtype directory (sumsfile|-)\n"
5985 "\n"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5990 msgid ""
5991 "This command computes the checksums of all regular files in C<directory> and "
5992 "then emits a list of those checksums to the local output file C<sumsfile>."
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5997 msgid ""
5998 "This can be used for verifying the integrity of a virtual machine.  However "
5999 "to be properly secure you should pay attention to the output of the checksum "
6000 "command (it uses the ones from GNU coreutils).  In particular when the "
6001 "filename is not printable, coreutils uses a special backslash syntax.  For "
6002 "more information, see the GNU coreutils info file."
6003 msgstr ""
6004
6005 #. type: =head2
6006 #: ../fish/guestfish-actions.pod:700
6007 msgid "chmod"
6008 msgstr "chmod"
6009
6010 #. type: verbatim
6011 #: ../fish/guestfish-actions.pod:702
6012 #, no-wrap
6013 msgid ""
6014 " chmod mode path\n"
6015 "\n"
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6020 msgid ""
6021 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6022 "supported."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6027 msgid ""
6028 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6029 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6030 "C<700>."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6035 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6036 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6037 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6038 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6039 msgid "The mode actually set is affected by the umask."
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../fish/guestfish-actions.pod:713
6044 msgid "chown"
6045 msgstr "chown"
6046
6047 #. type: verbatim
6048 #: ../fish/guestfish-actions.pod:715
6049 #, no-wrap
6050 msgid ""
6051 " chown owner group path\n"
6052 "\n"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6057 msgid "Change the file owner to C<owner> and group to C<group>."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6062 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6063 msgid ""
6064 "Only numeric uid and gid are supported.  If you want to use names, you will "
6065 "need to locate and parse the password file yourself (Augeas support makes "
6066 "this relatively easy)."
6067 msgstr ""
6068
6069 #. type: =head2
6070 #: ../fish/guestfish-actions.pod:723
6071 msgid "command"
6072 msgstr ""
6073
6074 #. type: verbatim
6075 #: ../fish/guestfish-actions.pod:725
6076 #, no-wrap
6077 msgid ""
6078 " command 'arguments ...'\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6084 msgid ""
6085 "This call runs a command from the guest filesystem.  The filesystem must be "
6086 "mounted, and must contain a compatible operating system (ie. something "
6087 "Linux, with the same or compatible processor architecture)."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:732
6092 msgid ""
6093 "The single parameter is an argv-style list of arguments.  The first element "
6094 "is the name of the program to run.  Subsequent elements are parameters.  The "
6095 "list must be non-empty (ie. must contain a program name).  Note that the "
6096 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6101 msgid "The return value is anything printed to I<stdout> by the command."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6106 msgid ""
6107 "If the command returns a non-zero exit status, then this function returns an "
6108 "error message.  The error message string is the content of I<stderr> from "
6109 "the command."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6114 msgid ""
6115 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6116 "bin>.  If you require a program from another location, you should provide "
6117 "the full path in the first parameter."
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6122 msgid ""
6123 "Shared libraries and data files required by the program must be available on "
6124 "filesystems which are mounted in the correct places.  It is the caller's "
6125 "responsibility to ensure all filesystems that are needed are mounted at the "
6126 "right locations."
6127 msgstr ""
6128
6129 #. type: =head2
6130 #: ../fish/guestfish-actions.pod:760
6131 msgid "command-lines"
6132 msgstr ""
6133
6134 #. type: verbatim
6135 #: ../fish/guestfish-actions.pod:762
6136 #, no-wrap
6137 msgid ""
6138 " command-lines 'arguments ...'\n"
6139 "\n"
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:764
6144 msgid ""
6145 "This is the same as L</command>, but splits the result into a list of lines."
6146 msgstr ""
6147
6148 #. type: textblock
6149 #: ../fish/guestfish-actions.pod:767
6150 msgid "See also: L</sh-lines>"
6151 msgstr ""
6152
6153 #. type: =head2
6154 #: ../fish/guestfish-actions.pod:772
6155 msgid "config"
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../fish/guestfish-actions.pod:774
6160 #, no-wrap
6161 msgid ""
6162 " config qemuparam qemuvalue\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6168 msgid ""
6169 "This can be used to add arbitrary qemu command line parameters of the form "
6170 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6171 "setting some parameters which would interfere with parameters that we use."
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6176 msgid "The first character of C<param> string must be a C<-> (dash)."
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6181 msgid "C<value> can be NULL."
6182 msgstr ""
6183
6184 #. type: =head2
6185 #: ../fish/guestfish-actions.pod:785
6186 msgid "copy-size"
6187 msgstr ""
6188
6189 #. type: verbatim
6190 #: ../fish/guestfish-actions.pod:787
6191 #, no-wrap
6192 msgid ""
6193 " copy-size src dest size\n"
6194 "\n"
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6199 msgid ""
6200 "This command copies exactly C<size> bytes from one source device or file "
6201 "C<src> to another destination device or file C<dest>."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6206 msgid ""
6207 "Note this will fail if the source is too short or if the destination is not "
6208 "large enough."
6209 msgstr ""
6210
6211 #. type: =head2
6212 #: ../fish/guestfish-actions.pod:795
6213 msgid "cp"
6214 msgstr "cp"
6215
6216 #. type: verbatim
6217 #: ../fish/guestfish-actions.pod:797
6218 #, no-wrap
6219 msgid ""
6220 " cp src dest\n"
6221 "\n"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6226 msgid ""
6227 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6228 "destination filename or destination directory."
6229 msgstr ""
6230
6231 #. type: =head2
6232 #: ../fish/guestfish-actions.pod:802
6233 msgid "cp-a"
6234 msgstr "cp-a"
6235
6236 #. type: verbatim
6237 #: ../fish/guestfish-actions.pod:804
6238 #, no-wrap
6239 msgid ""
6240 " cp-a src dest\n"
6241 "\n"
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6246 msgid ""
6247 "This copies a file or directory from C<src> to C<dest> recursively using the "
6248 "C<cp -a> command."
6249 msgstr ""
6250
6251 #. type: =head2
6252 #: ../fish/guestfish-actions.pod:809
6253 msgid "dd"
6254 msgstr "dd"
6255
6256 #. type: verbatim
6257 #: ../fish/guestfish-actions.pod:811
6258 #, no-wrap
6259 msgid ""
6260 " dd src dest\n"
6261 "\n"
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6266 msgid ""
6267 "This command copies from one source device or file C<src> to another "
6268 "destination device or file C<dest>.  Normally you would use this to copy to "
6269 "or from a device or partition, for example to duplicate a filesystem."
6270 msgstr ""
6271
6272 #. type: textblock
6273 #: ../fish/guestfish-actions.pod:818
6274 msgid ""
6275 "If the destination is a device, it must be as large or larger than the "
6276 "source file or device, otherwise the copy will fail.  This command cannot do "
6277 "partial copies (see L</copy-size>)."
6278 msgstr ""
6279
6280 #. type: =head2
6281 #: ../fish/guestfish-actions.pod:822
6282 msgid "df"
6283 msgstr "df"
6284
6285 #. type: verbatim
6286 #: ../fish/guestfish-actions.pod:824
6287 #, no-wrap
6288 msgid ""
6289 " df\n"
6290 "\n"
6291 msgstr ""
6292 " df\n"
6293 "\n"
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6297 msgid "This command runs the C<df> command to report disk space used."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6302 msgid ""
6303 "This command is mostly useful for interactive sessions.  It is I<not> "
6304 "intended that you try to parse the output string.  Use L</statvfs> from "
6305 "programs."
6306 msgstr ""
6307
6308 #. type: =head2
6309 #: ../fish/guestfish-actions.pod:832
6310 msgid "df-h"
6311 msgstr "df-h"
6312
6313 #. type: verbatim
6314 #: ../fish/guestfish-actions.pod:834
6315 #, no-wrap
6316 msgid ""
6317 " df-h\n"
6318 "\n"
6319 msgstr ""
6320 " df-h\n"
6321 "\n"
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6325 msgid ""
6326 "This command runs the C<df -h> command to report disk space used in human-"
6327 "readable format."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:843
6332 msgid "dmesg"
6333 msgstr "dmesg"
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:845
6337 #, no-wrap
6338 msgid ""
6339 " dmesg\n"
6340 "\n"
6341 msgstr ""
6342 " dmesg\n"
6343 "\n"
6344
6345 #. type: textblock
6346 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6347 msgid ""
6348 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6349 "This is sometimes useful for extended debugging of problems."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:851
6354 msgid ""
6355 "Another way to get the same information is to enable verbose messages with "
6356 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6357 "before running the program."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:856
6362 msgid "download"
6363 msgstr "download"
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:858
6367 #, no-wrap
6368 msgid ""
6369 " download remotefilename (filename|-)\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6375 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6376 msgid ""
6377 "Download file C<remotefilename> and save it as C<filename> on the local "
6378 "machine."
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6383 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6384 msgid "C<filename> can also be a named pipe."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:865
6389 msgid "See also L</upload>, L</cat>."
6390 msgstr ""
6391
6392 #. type: =head2
6393 #: ../fish/guestfish-actions.pod:869
6394 msgid "download-offset"
6395 msgstr "download-offset"
6396
6397 #. type: verbatim
6398 #: ../fish/guestfish-actions.pod:871
6399 #, no-wrap
6400 msgid ""
6401 " download-offset remotefilename (filename|-) offset size\n"
6402 "\n"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6407 msgid ""
6408 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6409 "region must be within the file or device)."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:879
6414 msgid ""
6415 "Note that there is no limit on the amount of data that can be downloaded "
6416 "with this call, unlike with L</pread>, and this call always reads the full "
6417 "amount unless an error occurs."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:884
6422 msgid "See also L</download>, L</pread>."
6423 msgstr ""
6424
6425 #. type: =head2
6426 #: ../fish/guestfish-actions.pod:888
6427 msgid "drop-caches"
6428 msgstr ""
6429
6430 #. type: verbatim
6431 #: ../fish/guestfish-actions.pod:890
6432 #, no-wrap
6433 msgid ""
6434 " drop-caches whattodrop\n"
6435 "\n"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6440 msgid ""
6441 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6442 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6443 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6448 msgid "Setting C<whattodrop> to 3 should drop everything."
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6453 msgid ""
6454 "This automatically calls L<sync(2)> before the operation, so that the "
6455 "maximum guest memory is freed."
6456 msgstr ""
6457
6458 #. type: =head2
6459 #: ../fish/guestfish-actions.pod:902
6460 msgid "du"
6461 msgstr "du"
6462
6463 #. type: verbatim
6464 #: ../fish/guestfish-actions.pod:904
6465 #, no-wrap
6466 msgid ""
6467 " du path\n"
6468 "\n"
6469 msgstr ""
6470 " du шлях\n"
6471 "\n"
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6475 msgid ""
6476 "This command runs the C<du -s> command to estimate file space usage for "
6477 "C<path>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6482 msgid ""
6483 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6484 "estimate includes the contents of the directory and all subdirectories "
6485 "(recursively)."
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6490 msgid ""
6491 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:916
6496 msgid "e2fsck-f"
6497 msgstr "e2fsck-f"
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:918
6501 #, no-wrap
6502 msgid ""
6503 " e2fsck-f device\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6509 msgid ""
6510 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6511 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6512 "clean (I<-f>)."
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:924
6517 msgid ""
6518 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6519 "should use L</fsck>."
6520 msgstr ""
6521
6522 #. type: =head2
6523 #: ../fish/guestfish-actions.pod:927
6524 msgid "echo-daemon"
6525 msgstr ""
6526
6527 #. type: verbatim
6528 #: ../fish/guestfish-actions.pod:929
6529 #, no-wrap
6530 msgid ""
6531 " echo-daemon 'words ...'\n"
6532 "\n"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6537 msgid ""
6538 "This command concatenates the list of C<words> passed with single spaces "
6539 "between them and returns the resulting string."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6544 msgid "You can use this command to test the connection through to the daemon."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../fish/guestfish-actions.pod:936
6549 msgid "See also L</ping-daemon>."
6550 msgstr ""
6551
6552 #. type: =head2
6553 #: ../fish/guestfish-actions.pod:938
6554 msgid "egrep"
6555 msgstr "egrep"
6556
6557 #. type: verbatim
6558 #: ../fish/guestfish-actions.pod:940
6559 #, no-wrap
6560 msgid ""
6561 " egrep regex path\n"
6562 "\n"
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6567 msgid ""
6568 "This calls the external C<egrep> program and returns the matching lines."
6569 msgstr ""
6570
6571 #. type: =head2
6572 #: ../fish/guestfish-actions.pod:948
6573 msgid "egrepi"
6574 msgstr "egrepi"
6575
6576 #. type: verbatim
6577 #: ../fish/guestfish-actions.pod:950
6578 #, no-wrap
6579 msgid ""
6580 " egrepi regex path\n"
6581 "\n"
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6586 msgid ""
6587 "This calls the external C<egrep -i> program and returns the matching lines."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../fish/guestfish-actions.pod:958
6592 msgid "equal"
6593 msgstr "equal"
6594
6595 #. type: verbatim
6596 #: ../fish/guestfish-actions.pod:960
6597 #, no-wrap
6598 msgid ""
6599 " equal file1 file2\n"
6600 "\n"
6601 msgstr ""
6602 " equal файл1 файл2\n"
6603 "\n"
6604
6605 #. type: textblock
6606 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6607 msgid ""
6608 "This compares the two files C<file1> and C<file2> and returns true if their "
6609 "content is exactly equal, or false otherwise."
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6614 msgid "The external L<cmp(1)> program is used for the comparison."
6615 msgstr ""
6616
6617 #. type: =head2
6618 #: ../fish/guestfish-actions.pod:967
6619 msgid "exists"
6620 msgstr "exists"
6621
6622 #. type: verbatim
6623 #: ../fish/guestfish-actions.pod:969
6624 #, no-wrap
6625 msgid ""
6626 " exists path\n"
6627 "\n"
6628 msgstr ""
6629 " exists шлях\n"
6630 "\n"
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6634 msgid ""
6635 "This returns C<true> if and only if there is a file, directory (or anything) "
6636 "with the given C<path> name."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:974
6641 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6642 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6643
6644 #. type: =head2
6645 #: ../fish/guestfish-actions.pod:976
6646 msgid "fallocate"
6647 msgstr "fallocate"
6648
6649 #. type: verbatim
6650 #: ../fish/guestfish-actions.pod:978
6651 #, no-wrap
6652 msgid ""
6653 " fallocate path len\n"
6654 "\n"
6655 msgstr ""
6656 " fallocate шлях довжина\n"
6657 "\n"
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6661 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6662 msgid ""
6663 "This command preallocates a file (containing zero bytes) named C<path> of "
6664 "size C<len> bytes.  If the file exists already, it is overwritten."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6669 msgid ""
6670 "Do not confuse this with the guestfish-specific C<alloc> command which "
6671 "allocates a file in the host and attaches it as a device."
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:988
6676 msgid ""
6677 "This function is deprecated.  In new code, use the L</fallocate64> call "
6678 "instead."
6679 msgstr ""
6680
6681 #. type: =head2
6682 #: ../fish/guestfish-actions.pod:995
6683 msgid "fallocate64"
6684 msgstr "fallocate64"
6685
6686 #. type: verbatim
6687 #: ../fish/guestfish-actions.pod:997
6688 #, no-wrap
6689 msgid ""
6690 " fallocate64 path len\n"
6691 "\n"
6692 msgstr ""
6693 " fallocate64 шлях довжина\n"
6694 "\n"
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:1003
6698 msgid ""
6699 "Note that this call allocates disk blocks for the file.  To create a sparse "
6700 "file use L</truncate-size> instead."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:1006
6705 msgid ""
6706 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6707 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6708 "maximum size of files created through that call to 1GB."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6713 msgid ""
6714 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6715 "commands which create a file in the host and attach it as a device."
6716 msgstr ""
6717
6718 #. type: =head2
6719 #: ../fish/guestfish-actions.pod:1015
6720 msgid "fgrep"
6721 msgstr "fgrep"
6722
6723 #. type: verbatim
6724 #: ../fish/guestfish-actions.pod:1017
6725 #, no-wrap
6726 msgid ""
6727 " fgrep pattern path\n"
6728 "\n"
6729 msgstr ""
6730 " fgrep шаблон шлях\n"
6731 "\n"
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6735 msgid ""
6736 "This calls the external C<fgrep> program and returns the matching lines."
6737 msgstr ""
6738
6739 #. type: =head2
6740 #: ../fish/guestfish-actions.pod:1025
6741 msgid "fgrepi"
6742 msgstr "fgrepi"
6743
6744 #. type: verbatim
6745 #: ../fish/guestfish-actions.pod:1027
6746 #, no-wrap
6747 msgid ""
6748 " fgrepi pattern path\n"
6749 "\n"
6750 msgstr ""
6751 " fgrepi шаблон шлях\n"
6752 "\n"
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6756 msgid ""
6757 "This calls the external C<fgrep -i> program and returns the matching lines."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1035
6762 msgid "file"
6763 msgstr "file"
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1037
6767 #, no-wrap
6768 msgid ""
6769 " file path\n"
6770 "\n"
6771 msgstr ""
6772 " file шлях\n"
6773 "\n"
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6777 msgid ""
6778 "This call uses the standard L<file(1)> command to determine the type or "
6779 "contents of the file."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6784 msgid ""
6785 "This call will also transparently look inside various types of compressed "
6786 "file."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6791 msgid ""
6792 "The exact command which runs is C<file -zb path>.  Note in particular that "
6793 "the filename is not prepended to the output (the I<-b> option)."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6798 msgid ""
6799 "The output depends on the output of the underlying L<file(1)> command and it "
6800 "can change in future in ways beyond our control.  In other words, the output "
6801 "is not guaranteed by the ABI."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1053
6806 msgid ""
6807 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6808 "(etc), L</is-zero>."
6809 msgstr ""
6810
6811 #. type: =head2
6812 #: ../fish/guestfish-actions.pod:1056
6813 msgid "file-architecture"
6814 msgstr "file-architecture"
6815
6816 #. type: verbatim
6817 #: ../fish/guestfish-actions.pod:1058
6818 #, no-wrap
6819 msgid ""
6820 " file-architecture filename\n"
6821 "\n"
6822 msgstr ""
6823 " file-architecture назва_файла\n"
6824 "\n"
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6828 msgid ""
6829 "This detects the architecture of the binary C<filename>, and returns it if "
6830 "known."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6835 msgid "Currently defined architectures are:"
6836 msgstr ""
6837
6838 #. type: =item
6839 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6840 msgid "\"i386\""
6841 msgstr "\"i386\""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6845 msgid ""
6846 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6847 "irrespective of the precise processor requirements of the binary."
6848 msgstr ""
6849
6850 #. type: =item
6851 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6852 msgid "\"x86_64\""
6853 msgstr "\"x86_64\""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6857 msgid "64 bit x86-64."
6858 msgstr ""
6859
6860 #. type: =item
6861 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6862 msgid "\"sparc\""
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6867 msgid "32 bit SPARC."
6868 msgstr ""
6869
6870 #. type: =item
6871 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6872 msgid "\"sparc64\""
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6877 msgid "64 bit SPARC V9 and above."
6878 msgstr ""
6879
6880 #. type: =item
6881 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6882 msgid "\"ia64\""
6883 msgstr "\"ia64\""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6887 msgid "Intel Itanium."
6888 msgstr "Intel Itanium."
6889
6890 #. type: =item
6891 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6892 msgid "\"ppc\""
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6897 msgid "32 bit Power PC."
6898 msgstr ""
6899
6900 #. type: =item
6901 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6902 msgid "\"ppc64\""
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6907 msgid "64 bit Power PC."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6912 msgid "Libguestfs may return other architecture strings in future."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6917 msgid "The function works on at least the following types of files:"
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6922 msgid "many types of Un*x and Linux binary"
6923 msgstr ""
6924
6925 #. type: textblock
6926 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6927 msgid "many types of Un*x and Linux shared library"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6932 msgid "Windows Win32 and Win64 binaries"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6937 msgid "Windows Win32 and Win64 DLLs"
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6942 msgid "Win32 binaries and DLLs return C<i386>."
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6947 msgid "Win64 binaries and DLLs return C<x86_64>."
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6952 msgid "Linux kernel modules"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6957 msgid "Linux new-style initrd images"
6958 msgstr ""
6959
6960 #. type: textblock
6961 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6962 msgid "some non-x86 Linux vmlinuz kernels"
6963 msgstr ""
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6967 msgid "What it can't do currently:"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6972 msgid "static libraries (libfoo.a)"
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6977 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6982 msgid "x86 Linux vmlinuz kernels"
6983 msgstr ""
6984
6985 #. type: textblock
6986 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6987 msgid ""
6988 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6989 "compressed code, and are horribly hard to unpack.  If you want to find the "
6990 "architecture of a kernel, use the architecture of the associated initrd or "
6991 "kernel module(s) instead."
6992 msgstr ""
6993
6994 #. type: =head2
6995 #: ../fish/guestfish-actions.pod:1161
6996 msgid "filesize"
6997 msgstr "filesize"
6998
6999 #. type: verbatim
7000 #: ../fish/guestfish-actions.pod:1163
7001 #, no-wrap
7002 msgid ""
7003 " filesize file\n"
7004 "\n"
7005 msgstr ""
7006 " filesize файл\n"
7007 "\n"
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7011 msgid "This command returns the size of C<file> in bytes."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1167
7016 msgid ""
7017 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7018 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7019 msgstr ""
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:1171
7023 msgid "fill"
7024 msgstr "fill"
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:1173
7028 #, no-wrap
7029 msgid ""
7030 " fill c len path\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7036 msgid ""
7037 "This command creates a new file called C<path>.  The initial content of the "
7038 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7039 "[0..255]>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1179
7044 msgid ""
7045 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7046 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7047 "L</fill-pattern>."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:1184
7052 msgid "fill-pattern"
7053 msgstr "fill-pattern"
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:1186
7057 #, no-wrap
7058 msgid ""
7059 " fill-pattern pattern len path\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:1188
7065 msgid ""
7066 "This function is like L</fill> except that it creates a new file of length "
7067 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7068 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7069 "bytes."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1193
7074 msgid "find"
7075 msgstr "find"
7076
7077 #. type: verbatim
7078 #: ../fish/guestfish-actions.pod:1195
7079 #, no-wrap
7080 msgid ""
7081 " find directory\n"
7082 "\n"
7083 msgstr ""
7084 " find каталог\n"
7085 "\n"
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7089 msgid ""
7090 "This command lists out all files and directories, recursively, starting at "
7091 "C<directory>.  It is essentially equivalent to running the shell command "
7092 "C<find directory -print> but some post-processing happens on the output, "
7093 "described below."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7098 msgid ""
7099 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7100 "structure was:"
7101 msgstr ""
7102
7103 #. type: verbatim
7104 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7105 #, no-wrap
7106 msgid ""
7107 " /tmp/a\n"
7108 " /tmp/b\n"
7109 " /tmp/c/d\n"
7110 "\n"
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:1209
7115 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7116 msgstr ""
7117
7118 #. type: verbatim
7119 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7120 #, no-wrap
7121 msgid ""
7122 " a\n"
7123 " b\n"
7124 " c\n"
7125 " c/d\n"
7126 "\n"
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7131 msgid "If C<directory> is not a directory, then this command returns an error."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7136 msgid "The returned list is sorted."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:1222
7141 msgid "See also L</find0>."
7142 msgstr "Див. також L</find0>."
7143
7144 #. type: =head2
7145 #: ../fish/guestfish-actions.pod:1227
7146 msgid "find0"
7147 msgstr "find0"
7148
7149 #. type: verbatim
7150 #: ../fish/guestfish-actions.pod:1229
7151 #, no-wrap
7152 msgid ""
7153 " find0 directory (files|-)\n"
7154 "\n"
7155 msgstr ""
7156 " find0 каталог (файли|-)\n"
7157 "\n"
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7161 msgid ""
7162 "This command lists out all files and directories, recursively, starting at "
7163 "C<directory>, placing the resulting list in the external file called "
7164 "C<files>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:1235
7169 msgid ""
7170 "This command works the same way as L</find> with the following exceptions:"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7175 msgid "The resulting list is written to an external file."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7180 msgid ""
7181 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7182 "L<find(1)> option I<-print0>."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7187 msgid "This command is not limited in the number of names that it can return."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7192 msgid "The result list is not sorted."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:1262
7197 msgid "findfs-label"
7198 msgstr "findfs-label"
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:1264
7202 #, no-wrap
7203 msgid ""
7204 " findfs-label label\n"
7205 "\n"
7206 msgstr ""
7207 " findfs-label мітка\n"
7208 "\n"
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7212 msgid ""
7213 "This command searches the filesystems and returns the one which has the "
7214 "given label.  An error is returned if no such filesystem can be found."
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:1270
7219 msgid "To find the label of a filesystem, use L</vfs-label>."
7220 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7221
7222 #. type: =head2
7223 #: ../fish/guestfish-actions.pod:1272
7224 msgid "findfs-uuid"
7225 msgstr "findfs-uuid"
7226
7227 #. type: verbatim
7228 #: ../fish/guestfish-actions.pod:1274
7229 #, no-wrap
7230 msgid ""
7231 " findfs-uuid uuid\n"
7232 "\n"
7233 msgstr ""
7234 " findfs-uuid uuid\n"
7235 "\n"
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7239 msgid ""
7240 "This command searches the filesystems and returns the one which has the "
7241 "given UUID.  An error is returned if no such filesystem can be found."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1280
7246 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7247 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7248
7249 #. type: =head2
7250 #: ../fish/guestfish-actions.pod:1282
7251 msgid "fsck"
7252 msgstr "fsck"
7253
7254 #. type: verbatim
7255 #: ../fish/guestfish-actions.pod:1284
7256 #, no-wrap
7257 msgid ""
7258 " fsck fstype device\n"
7259 "\n"
7260 msgstr ""
7261 " fsck тип_файлової_системи пристрій\n"
7262 "\n"
7263
7264 #. type: textblock
7265 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7266 msgid ""
7267 "This runs the filesystem checker (fsck) on C<device> which should have "
7268 "filesystem type C<fstype>."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7273 msgid ""
7274 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7275 "codes from C<fsck>."
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7280 msgid "Multiple status codes can be summed together."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7285 msgid ""
7286 "A non-zero return code can mean \"success\", for example if errors have been "
7287 "corrected on the filesystem."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7292 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7297 msgid ""
7298 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7299 msgstr ""
7300
7301 #. type: =head2
7302 #: ../fish/guestfish-actions.pod:1314
7303 msgid "get-append"
7304 msgstr "get-append"
7305
7306 #. type: verbatim
7307 #: ../fish/guestfish-actions.pod:1316
7308 #, no-wrap
7309 msgid ""
7310 " get-append\n"
7311 "\n"
7312 msgstr ""
7313 " get-append\n"
7314 "\n"
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7318 msgid ""
7319 "Return the additional kernel options which are added to the guest kernel "
7320 "command line."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7325 msgid "If C<NULL> then no options are added."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:1323
7330 msgid "get-attach-method"
7331 msgstr "get-attach-method"
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:1325
7335 #, no-wrap
7336 msgid ""
7337 " get-attach-method\n"
7338 "\n"
7339 msgstr ""
7340 " get-attach-method\n"
7341 "\n"
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1327
7345 msgid "Return the current attach method.  See L</set-attach-method>."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1329
7350 msgid "get-autosync"
7351 msgstr "get-autosync"
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1331
7355 #, no-wrap
7356 msgid ""
7357 " get-autosync\n"
7358 "\n"
7359 msgstr ""
7360 " get-autosync\n"
7361 "\n"
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7365 msgid "Get the autosync flag."
7366 msgstr ""
7367
7368 #. type: =head2
7369 #: ../fish/guestfish-actions.pod:1335
7370 msgid "get-direct"
7371 msgstr "get-direct"
7372
7373 #. type: verbatim
7374 #: ../fish/guestfish-actions.pod:1337
7375 #, no-wrap
7376 msgid ""
7377 " get-direct\n"
7378 "\n"
7379 msgstr ""
7380 " get-direct\n"
7381 "\n"
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7385 msgid "Return the direct appliance mode flag."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1341
7390 msgid "get-e2label"
7391 msgstr "get-e2label"
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1343
7395 #, no-wrap
7396 msgid ""
7397 " get-e2label device\n"
7398 "\n"
7399 msgstr ""
7400 " get-e2label пристрій\n"
7401 "\n"
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
7405 msgid ""
7406 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1348
7411 msgid ""
7412 "This function is deprecated.  In new code, use the L</vfs_label> call "
7413 "instead."
7414 msgstr ""
7415
7416 #. type: =head2
7417 #: ../fish/guestfish-actions.pod:1355
7418 msgid "get-e2uuid"
7419 msgstr "get-e2uuid"
7420
7421 #. type: verbatim
7422 #: ../fish/guestfish-actions.pod:1357
7423 #, no-wrap
7424 msgid ""
7425 " get-e2uuid device\n"
7426 "\n"
7427 msgstr ""
7428 " get-e2uuid пристрій\n"
7429 "\n"
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
7433 msgid ""
7434 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:1362
7439 msgid ""
7440 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7441 msgstr ""
7442
7443 #. type: =head2
7444 #: ../fish/guestfish-actions.pod:1369
7445 msgid "get-memsize"
7446 msgstr "get-memsize"
7447
7448 #. type: verbatim
7449 #: ../fish/guestfish-actions.pod:1371
7450 #, no-wrap
7451 msgid ""
7452 " get-memsize\n"
7453 "\n"
7454 msgstr ""
7455 " get-memsize\n"
7456 "\n"
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7460 msgid ""
7461 "This gets the memory size in megabytes allocated to the qemu subprocess."
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1376
7466 msgid ""
7467 "If L</set-memsize> was not called on this handle, and if "
7468 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7469 "value for memsize."
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7474 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7475 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7476 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7477 msgid ""
7478 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7479 msgstr ""
7480
7481 #. type: =head2
7482 #: ../fish/guestfish-actions.pod:1383
7483 msgid "get-network"
7484 msgstr "get-network"
7485
7486 #. type: verbatim
7487 #: ../fish/guestfish-actions.pod:1385
7488 #, no-wrap
7489 msgid ""
7490 " get-network\n"
7491 "\n"
7492 msgstr ""
7493 " get-network\n"
7494 "\n"
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7498 msgid "This returns the enable network flag."
7499 msgstr ""
7500
7501 #. type: =head2
7502 #: ../fish/guestfish-actions.pod:1389
7503 msgid "get-path"
7504 msgstr "get-path"
7505
7506 #. type: verbatim
7507 #: ../fish/guestfish-actions.pod:1391
7508 #, no-wrap
7509 msgid ""
7510 " get-path\n"
7511 "\n"
7512 msgstr ""
7513 " get-path\n"
7514 "\n"
7515
7516 #. type: textblock
7517 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7518 msgid "Return the current search path."
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7523 msgid ""
7524 "This is always non-NULL.  If it wasn't set already, then this will return "
7525 "the default path."
7526 msgstr ""
7527
7528 #. type: =head2
7529 #: ../fish/guestfish-actions.pod:1398
7530 msgid "get-pgroup"
7531 msgstr ""
7532
7533 #. type: verbatim
7534 #: ../fish/guestfish-actions.pod:1400
7535 #, no-wrap
7536 msgid ""
7537 " get-pgroup\n"
7538 "\n"
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7543 msgid "This returns the process group flag."
7544 msgstr ""
7545
7546 #. type: =head2
7547 #: ../fish/guestfish-actions.pod:1404
7548 msgid "get-pid"
7549 msgstr "get-pid"
7550
7551 #. type: =head2
7552 #: ../fish/guestfish-actions.pod:1406
7553 msgid "pid"
7554 msgstr ""
7555
7556 #. type: verbatim
7557 #: ../fish/guestfish-actions.pod:1408
7558 #, no-wrap
7559 msgid ""
7560 " get-pid\n"
7561 "\n"
7562 msgstr ""
7563 " get-pid\n"
7564 "\n"
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7568 msgid ""
7569 "Return the process ID of the qemu subprocess.  If there is no qemu "
7570 "subprocess, then this will return an error."
7571 msgstr ""
7572
7573 #. type: textblock
7574 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7575 msgid "This is an internal call used for debugging and testing."
7576 msgstr ""
7577
7578 #. type: =head2
7579 #: ../fish/guestfish-actions.pod:1415
7580 msgid "get-qemu"
7581 msgstr "get-qemu"
7582
7583 #. type: verbatim
7584 #: ../fish/guestfish-actions.pod:1417
7585 #, no-wrap
7586 msgid ""
7587 " get-qemu\n"
7588 "\n"
7589 msgstr ""
7590 " get-qemu\n"
7591 "\n"
7592
7593 #. type: textblock
7594 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7595 msgid "Return the current qemu binary."
7596 msgstr ""
7597
7598 #. type: textblock
7599 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7600 msgid ""
7601 "This is always non-NULL.  If it wasn't set already, then this will return "
7602 "the default qemu binary name."
7603 msgstr ""
7604
7605 #. type: =head2
7606 #: ../fish/guestfish-actions.pod:1424
7607 msgid "get-recovery-proc"
7608 msgstr "get-recovery-proc"
7609
7610 #. type: verbatim
7611 #: ../fish/guestfish-actions.pod:1426
7612 #, no-wrap
7613 msgid ""
7614 " get-recovery-proc\n"
7615 "\n"
7616 msgstr ""
7617 " get-recovery-proc\n"
7618 "\n"
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7622 msgid "Return the recovery process enabled flag."
7623 msgstr ""
7624
7625 #. type: =head2
7626 #: ../fish/guestfish-actions.pod:1430
7627 msgid "get-selinux"
7628 msgstr "get-selinux"
7629
7630 #. type: verbatim
7631 #: ../fish/guestfish-actions.pod:1432
7632 #, no-wrap
7633 msgid ""
7634 " get-selinux\n"
7635 "\n"
7636 msgstr ""
7637 " get-selinux\n"
7638 "\n"
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:1434
7642 msgid ""
7643 "This returns the current setting of the selinux flag which is passed to the "
7644 "appliance at boot time.  See L</set-selinux>."
7645 msgstr ""
7646
7647 #. type: =head2
7648 #: ../fish/guestfish-actions.pod:1440
7649 msgid "get-state"
7650 msgstr "get-state"
7651
7652 #. type: verbatim
7653 #: ../fish/guestfish-actions.pod:1442
7654 #, no-wrap
7655 msgid ""
7656 " get-state\n"
7657 "\n"
7658 msgstr ""
7659 " get-state\n"
7660 "\n"
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7664 msgid ""
7665 "This returns the current state as an opaque integer.  This is only useful "
7666 "for printing debug and internal error messages."
7667 msgstr ""
7668
7669 #. type: textblock
7670 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7671 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7672 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7673 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7674 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7675 msgid "For more information on states, see L<guestfs(3)>."
7676 msgstr ""
7677
7678 #. type: =head2
7679 #: ../fish/guestfish-actions.pod:1449
7680 msgid "get-trace"
7681 msgstr "get-trace"
7682
7683 #. type: verbatim
7684 #: ../fish/guestfish-actions.pod:1451
7685 #, no-wrap
7686 msgid ""
7687 " get-trace\n"
7688 "\n"
7689 msgstr ""
7690 " get-trace\n"
7691 "\n"
7692
7693 #. type: textblock
7694 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7695 msgid "Return the command trace flag."
7696 msgstr ""
7697
7698 #. type: =head2
7699 #: ../fish/guestfish-actions.pod:1455
7700 msgid "get-umask"
7701 msgstr "get-umask"
7702
7703 #. type: verbatim
7704 #: ../fish/guestfish-actions.pod:1457
7705 #, no-wrap
7706 msgid ""
7707 " get-umask\n"
7708 "\n"
7709 msgstr ""
7710 " get-umask\n"
7711 "\n"
7712
7713 #. type: textblock
7714 #: ../fish/guestfish-actions.pod:1459
7715 msgid ""
7716 "Return the current umask.  By default the umask is C<022> unless it has been "
7717 "set by calling L</umask>."
7718 msgstr ""
7719
7720 #. type: =head2
7721 #: ../fish/guestfish-actions.pod:1462
7722 msgid "get-verbose"
7723 msgstr "get-verbose"
7724
7725 #. type: verbatim
7726 #: ../fish/guestfish-actions.pod:1464
7727 #, no-wrap
7728 msgid ""
7729 " get-verbose\n"
7730 "\n"
7731 msgstr ""
7732 " get-verbose\n"
7733 "\n"
7734
7735 #. type: textblock
7736 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7737 msgid "This returns the verbose messages flag."
7738 msgstr ""
7739
7740 #. type: =head2
7741 #: ../fish/guestfish-actions.pod:1468
7742 msgid "getcon"
7743 msgstr "getcon"
7744
7745 #. type: verbatim
7746 #: ../fish/guestfish-actions.pod:1470
7747 #, no-wrap
7748 msgid ""
7749 " getcon\n"
7750 "\n"
7751 msgstr ""
7752 " getcon\n"
7753 "\n"
7754
7755 #. type: textblock
7756 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7757 msgid "This gets the SELinux security context of the daemon."
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../fish/guestfish-actions.pod:1474
7762 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../fish/guestfish-actions.pod:1477
7767 msgid "getxattr"
7768 msgstr "getxattr"
7769
7770 #. type: verbatim
7771 #: ../fish/guestfish-actions.pod:1479
7772 #, no-wrap
7773 msgid ""
7774 " getxattr path name\n"
7775 "\n"
7776 msgstr ""
7777 " getxattr шлях назва\n"
7778 "\n"
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:1481
7782 msgid ""
7783 "Get a single extended attribute from file C<path> named C<name>.  This call "
7784 "follows symlinks.  If you want to lookup an extended attribute for the "
7785 "symlink itself, use L</lgetxattr>."
7786 msgstr ""
7787
7788 #. type: textblock
7789 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7790 msgid ""
7791 "Normally it is better to get all extended attributes from a file in one go "
7792 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7793 "buggy and do not provide a way to list out attributes.  For these "
7794 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7795 "attributes you want in advance and call this function."
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7800 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7801 msgid ""
7802 "Extended attribute values are blobs of binary data.  If there is no extended "
7803 "attribute named C<name>, this returns an error."
7804 msgstr ""
7805
7806 #. type: textblock
7807 #: ../fish/guestfish-actions.pod:1495
7808 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7809 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7810
7811 #. type: =head2
7812 #: ../fish/guestfish-actions.pod:1497
7813 msgid "getxattrs"
7814 msgstr "getxattrs"
7815
7816 #. type: verbatim
7817 #: ../fish/guestfish-actions.pod:1499
7818 #, no-wrap
7819 msgid ""
7820 " getxattrs path\n"
7821 "\n"
7822 msgstr ""
7823 " getxattrs шлях\n"
7824 "\n"
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7828 msgid ""
7829 "This call lists the extended attributes of the file or directory C<path>."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7834 msgid ""
7835 "At the system call level, this is a combination of the L<listxattr(2)> and "
7836 "L<getxattr(2)> calls."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1507
7841 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7842 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7843
7844 #. type: =head2
7845 #: ../fish/guestfish-actions.pod:1509
7846 msgid "glob-expand"
7847 msgstr "glob-expand"
7848
7849 #. type: verbatim
7850 #: ../fish/guestfish-actions.pod:1511
7851 #, no-wrap
7852 msgid ""
7853 " glob-expand pattern\n"
7854 "\n"
7855 msgstr ""
7856 " glob-expand шаблон\n"
7857 "\n"
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7861 msgid ""
7862 "This command searches for all the pathnames matching C<pattern> according to "
7863 "the wildcard expansion rules used by the shell."
7864 msgstr ""
7865
7866 #. type: textblock
7867 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7868 msgid ""
7869 "If no paths match, then this returns an empty list (note: not an error)."
7870 msgstr ""
7871
7872 #. type: textblock
7873 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7874 msgid ""
7875 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7876 "GLOB_BRACE>.  See that manual page for more details."
7877 msgstr ""
7878
7879 #. type: =head2
7880 #: ../fish/guestfish-actions.pod:1524
7881 msgid "grep"
7882 msgstr "grep"
7883
7884 #. type: verbatim
7885 #: ../fish/guestfish-actions.pod:1526
7886 #, no-wrap
7887 msgid ""
7888 " grep regex path\n"
7889 "\n"
7890 msgstr ""
7891 " grepi формальний_вираз шлях\n"
7892 "\n"
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7896 msgid "This calls the external C<grep> program and returns the matching lines."
7897 msgstr ""
7898
7899 #. type: =head2
7900 #: ../fish/guestfish-actions.pod:1534
7901 msgid "grepi"
7902 msgstr "grepi"
7903
7904 #. type: verbatim
7905 #: ../fish/guestfish-actions.pod:1536
7906 #, no-wrap
7907 msgid ""
7908 " grepi regex path\n"
7909 "\n"
7910 msgstr ""
7911 " grepi формальний_вираз шлях\n"
7912 "\n"
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7916 msgid ""
7917 "This calls the external C<grep -i> program and returns the matching lines."
7918 msgstr ""
7919
7920 #. type: =head2
7921 #: ../fish/guestfish-actions.pod:1544
7922 msgid "grub-install"
7923 msgstr "grub-install"
7924
7925 #. type: verbatim
7926 #: ../fish/guestfish-actions.pod:1546
7927 #, no-wrap
7928 msgid ""
7929 " grub-install root device\n"
7930 "\n"
7931 msgstr ""
7932 " grub-install кореневий пристрій\n"
7933 "\n"
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7937 msgid ""
7938 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7939 "the root directory being C<root>."
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7944 msgid ""
7945 "Note: If grub-install reports the error \"No suitable drive was found in the "
7946 "generated device map.\" it may be that you need to create a C</boot/grub/"
7947 "device.map> file first that contains the mapping between grub device names "
7948 "and Linux device names.  It is usually sufficient to create a file "
7949 "containing:"
7950 msgstr ""
7951
7952 #. type: verbatim
7953 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7954 #, no-wrap
7955 msgid ""
7956 " (hd0) /dev/vda\n"
7957 "\n"
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7962 msgid "replacing C</dev/vda> with the name of the installation device."
7963 msgstr ""
7964
7965 #. type: =head2
7966 #: ../fish/guestfish-actions.pod:1562
7967 msgid "head"
7968 msgstr "head"
7969
7970 #. type: verbatim
7971 #: ../fish/guestfish-actions.pod:1564
7972 #, no-wrap
7973 msgid ""
7974 " head path\n"
7975 "\n"
7976 msgstr ""
7977 " head шлях\n"
7978 "\n"
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7982 msgid ""
7983 "This command returns up to the first 10 lines of a file as a list of strings."
7984 msgstr ""
7985
7986 #. type: =head2
7987 #: ../fish/guestfish-actions.pod:1572
7988 msgid "head-n"
7989 msgstr "head-n"
7990
7991 #. type: verbatim
7992 #: ../fish/guestfish-actions.pod:1574
7993 #, no-wrap
7994 msgid ""
7995 " head-n nrlines path\n"
7996 "\n"
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8001 msgid ""
8002 "If the parameter C<nrlines> is a positive number, this returns the first "
8003 "C<nrlines> lines of the file C<path>."
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8008 msgid ""
8009 "If the parameter C<nrlines> is a negative number, this returns lines from "
8010 "the file C<path>, excluding the last C<nrlines> lines."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8015 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8016 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8017 msgstr ""
8018
8019 #. type: =head2
8020 #: ../fish/guestfish-actions.pod:1587
8021 msgid "hexdump"
8022 msgstr "hexdump"
8023
8024 #. type: verbatim
8025 #: ../fish/guestfish-actions.pod:1589
8026 #, no-wrap
8027 msgid ""
8028 " hexdump path\n"
8029 "\n"
8030 msgstr ""
8031 " hexdump шлях\n"
8032 "\n"
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8036 msgid ""
8037 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8038 "readable, canonical hex dump of the file."
8039 msgstr ""
8040
8041 #. type: =head2
8042 #: ../fish/guestfish-actions.pod:1597
8043 msgid "initrd-cat"
8044 msgstr "initrd-cat"
8045
8046 #. type: verbatim
8047 #: ../fish/guestfish-actions.pod:1599
8048 #, no-wrap
8049 msgid ""
8050 " initrd-cat initrdpath filename\n"
8051 "\n"
8052 msgstr ""
8053 " initrd-cat шлях_initrd назва_файла\n"
8054 "\n"
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8058 msgid ""
8059 "This command unpacks the file C<filename> from the initrd file called "
8060 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8061 "character."
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8066 msgid ""
8067 "For example, in guestfish you could use the following command to examine the "
8068 "boot script (usually called C</init>)  contained in a Linux initrd or "
8069 "initramfs image:"
8070 msgstr ""
8071
8072 #. type: verbatim
8073 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8074 #, no-wrap
8075 msgid ""
8076 " initrd-cat /boot/initrd-<version>.img init\n"
8077 "\n"
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../fish/guestfish-actions.pod:1611
8082 msgid "See also L</initrd-list>."
8083 msgstr "Див. також L</initrd-list>."
8084
8085 #. type: =head2
8086 #: ../fish/guestfish-actions.pod:1616
8087 msgid "initrd-list"
8088 msgstr "initrd-list"
8089
8090 #. type: verbatim
8091 #: ../fish/guestfish-actions.pod:1618
8092 #, no-wrap
8093 msgid ""
8094 " initrd-list path\n"
8095 "\n"
8096 msgstr ""
8097 " initrd-list шлях\n"
8098 "\n"
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8102 msgid "This command lists out files contained in an initrd."
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8107 msgid ""
8108 "The files are listed without any initial C</> character.  The files are "
8109 "listed in the order they appear (not necessarily alphabetical).  Directory "
8110 "names are listed as separate items."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8115 msgid ""
8116 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8117 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8118 "files)."
8119 msgstr ""
8120
8121 #. type: =head2
8122 #: ../fish/guestfish-actions.pod:1630
8123 msgid "inotify-add-watch"
8124 msgstr "inotify-add-watch"
8125
8126 #. type: verbatim
8127 #: ../fish/guestfish-actions.pod:1632
8128 #, no-wrap
8129 msgid ""
8130 " inotify-add-watch path mask\n"
8131 "\n"
8132 msgstr ""
8133 " inotify-add-watch шлях маска\n"
8134 "\n"
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8138 msgid "Watch C<path> for the events listed in C<mask>."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8143 msgid ""
8144 "Note that if C<path> is a directory then events within that directory are "
8145 "watched, but this does I<not> happen recursively (in subdirectories)."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8150 msgid ""
8151 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8152 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1644
8157 msgid "inotify-close"
8158 msgstr "inotify-close"
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1646
8162 #, no-wrap
8163 msgid ""
8164 " inotify-close\n"
8165 "\n"
8166 msgstr ""
8167 " inotify-close\n"
8168 "\n"
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8172 msgid ""
8173 "This closes the inotify handle which was previously opened by inotify_init.  "
8174 "It removes all watches, throws away any pending events, and deallocates all "
8175 "resources."
8176 msgstr ""
8177
8178 #. type: =head2
8179 #: ../fish/guestfish-actions.pod:1652
8180 msgid "inotify-files"
8181 msgstr "inotify-files"
8182
8183 #. type: verbatim
8184 #: ../fish/guestfish-actions.pod:1654
8185 #, no-wrap
8186 msgid ""
8187 " inotify-files\n"
8188 "\n"
8189 msgstr ""
8190 " inotify-files\n"
8191 "\n"
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:1656
8195 msgid ""
8196 "This function is a helpful wrapper around L</inotify-read> which just "
8197 "returns a list of pathnames of objects that were touched.  The returned "
8198 "pathnames are sorted and deduplicated."
8199 msgstr ""
8200
8201 #. type: =head2
8202 #: ../fish/guestfish-actions.pod:1660
8203 msgid "inotify-init"
8204 msgstr "inotify-init"
8205
8206 #. type: verbatim
8207 #: ../fish/guestfish-actions.pod:1662
8208 #, no-wrap
8209 msgid ""
8210 " inotify-init maxevents\n"
8211 "\n"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8216 msgid ""
8217 "This command creates a new inotify handle.  The inotify subsystem can be "
8218 "used to notify events which happen to objects in the guest filesystem."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1668
8223 msgid ""
8224 "C<maxevents> is the maximum number of events which will be queued up between "
8225 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8226 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8227 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8228 "but records the fact that it threw them away by setting a flag "
8229 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8230 msgstr ""
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1678
8234 msgid ""
8235 "Before any events are generated, you have to add some watches to the "
8236 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8237 "L</inotify-watch-all>."
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:1684
8242 msgid ""
8243 "Queued up events should be read periodically by calling L</inotify-read> (or "
8244 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8245 "If you don't read the events out often enough then you risk the internal "
8246 "queue overflowing."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1691
8251 msgid ""
8252 "The handle should be closed after use by calling L</inotify-close>.  This "
8253 "also removes any watches automatically."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8258 msgid ""
8259 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8260 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8261 "that there is one global inotify handle per libguestfs instance."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:1700
8266 msgid "inotify-read"
8267 msgstr "inotify-read"
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:1702
8271 #, no-wrap
8272 msgid ""
8273 " inotify-read\n"
8274 "\n"
8275 msgstr ""
8276 " inotify-read\n"
8277 "\n"
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8281 msgid ""
8282 "Return the complete queue of events that have happened since the previous "
8283 "read call."
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8288 msgid "If no events have happened, this returns an empty list."
8289 msgstr ""
8290
8291 #. type: textblock
8292 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8293 msgid ""
8294 "I<Note>: In order to make sure that all events have been read, you must call "
8295 "this function repeatedly until it returns an empty list.  The reason is that "
8296 "the call will read events up to the maximum appliance-to-host message size "
8297 "and leave remaining events in the queue."
8298 msgstr ""
8299
8300 #. type: =head2
8301 #: ../fish/guestfish-actions.pod:1715
8302 msgid "inotify-rm-watch"
8303 msgstr "inotify-rm-watch"
8304
8305 #. type: verbatim
8306 #: ../fish/guestfish-actions.pod:1717
8307 #, no-wrap
8308 msgid ""
8309 " inotify-rm-watch wd\n"
8310 "\n"
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:1719
8315 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8316 msgstr ""
8317
8318 #. type: =head2
8319 #: ../fish/guestfish-actions.pod:1722
8320 msgid "inspect-get-arch"
8321 msgstr "inspect-get-arch"
8322
8323 #. type: verbatim
8324 #: ../fish/guestfish-actions.pod:1724
8325 #, no-wrap
8326 msgid ""
8327 " inspect-get-arch root\n"
8328 "\n"
8329 msgstr ""
8330 " inspect-get-arch корінь\n"
8331 "\n"
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:1726
8335 msgid ""
8336 "This returns the architecture of the inspected operating system.  The "
8337 "possible return values are listed under L</file-architecture>."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8342 msgid ""
8343 "If the architecture could not be determined, then the string C<unknown> is "
8344 "returned."
8345 msgstr ""
8346
8347 #. type: textblock
8348 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8349 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8350 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8351 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8352 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8353 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8354 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8355 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8356 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8357 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8358 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8359 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8360 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8361 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8362 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8363 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8364 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8365 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8366 msgstr ""
8367
8368 #. type: =head2
8369 #: ../fish/guestfish-actions.pod:1735
8370 msgid "inspect-get-distro"
8371 msgstr "inspect-get-distro"
8372
8373 #. type: verbatim
8374 #: ../fish/guestfish-actions.pod:1737
8375 #, no-wrap
8376 msgid ""
8377 " inspect-get-distro root\n"
8378 "\n"
8379 msgstr ""
8380 " inspect-get-distro корінь\n"
8381 "\n"
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8385 msgid ""
8386 "This returns the distro (distribution) of the inspected operating system."
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8391 msgid "Currently defined distros are:"
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8396 msgid "\"archlinux\""
8397 msgstr "\"archlinux\""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8401 msgid "Arch Linux."
8402 msgstr "Arch Linux."
8403
8404 #. type: =item
8405 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8406 msgid "\"centos\""
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8411 msgid "CentOS."
8412 msgstr ""
8413
8414 #. type: =item
8415 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8416 msgid "\"debian\""
8417 msgstr "\"debian\""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8421 msgid "Debian."
8422 msgstr "Debian."
8423
8424 #. type: =item
8425 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8426 msgid "\"fedora\""
8427 msgstr "\"fedora\""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8431 msgid "Fedora."
8432 msgstr "Fedora."
8433
8434 #. type: =item
8435 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8436 msgid "\"gentoo\""
8437 msgstr "\"gentoo\""
8438
8439 #. type: textblock
8440 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8441 msgid "Gentoo."
8442 msgstr "Gentoo."
8443
8444 #. type: =item
8445 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8446 msgid "\"linuxmint\""
8447 msgstr "\"linuxmint\""
8448
8449 #. type: textblock
8450 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8451 msgid "Linux Mint."
8452 msgstr "Linux Mint."
8453
8454 #. type: =item
8455 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8456 msgid "\"mandriva\""
8457 msgstr "\"mandriva\""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8461 msgid "Mandriva."
8462 msgstr "Mandriva."
8463
8464 #. type: =item
8465 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8466 msgid "\"meego\""
8467 msgstr "\"meego\""
8468
8469 #. type: textblock
8470 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8471 msgid "MeeGo."
8472 msgstr "MeeGo."
8473
8474 #. type: =item
8475 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8476 msgid "\"pardus\""
8477 msgstr "\"pardus\""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8481 msgid "Pardus."
8482 msgstr "Pardus."
8483
8484 #. type: =item
8485 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8486 msgid "\"redhat-based\""
8487 msgstr "\"redhat-based\""
8488
8489 #. type: textblock
8490 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8491 msgid "Some Red Hat-derived distro."
8492 msgstr "Дистрибутив, що походить від Red Hat."
8493
8494 #. type: =item
8495 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8496 msgid "\"rhel\""
8497 msgstr "\"rhel\""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8501 msgid "Red Hat Enterprise Linux."
8502 msgstr ""
8503
8504 #. type: =item
8505 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8506 msgid "\"scientificlinux\""
8507 msgstr ""
8508
8509 #. type: textblock
8510 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8511 msgid "Scientific Linux."
8512 msgstr ""
8513
8514 #. type: =item
8515 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8516 msgid "\"slackware\""
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8521 msgid "Slackware."
8522 msgstr ""
8523
8524 #. type: =item
8525 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8526 msgid "\"ubuntu\""
8527 msgstr "\"ubuntu\""
8528
8529 #. type: textblock
8530 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8531 msgid "Ubuntu."
8532 msgstr "Ubuntu."
8533
8534 #. type: =item
8535 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8536 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8537 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8538 msgid "\"unknown\""
8539 msgstr "\"unknown\""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8543 msgid "The distro could not be determined."
8544 msgstr "Дистрибутив, тип якого не вдалося визначити."
8545
8546 #. type: =item
8547 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8548 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8549 msgid "\"windows\""
8550 msgstr "\"windows\""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8554 msgid ""
8555 "Windows does not have distributions.  This string is returned if the OS type "
8556 "is Windows."
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8561 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8562 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8563 msgid ""
8564 "Future versions of libguestfs may return other strings here.  The caller "
8565 "should be prepared to handle any string."
8566 msgstr ""
8567
8568 #. type: =head2
8569 #: ../fish/guestfish-actions.pod:1818
8570 msgid "inspect-get-drive-mappings"
8571 msgstr ""
8572
8573 #. type: verbatim
8574 #: ../fish/guestfish-actions.pod:1820
8575 #, no-wrap
8576 msgid ""
8577 " inspect-get-drive-mappings root\n"
8578 "\n"
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8583 msgid ""
8584 "This call is useful for Windows which uses a primitive system of assigning "
8585 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8586 "Windows Registry to find out how disks/partitions are mapped to drive "
8587 "letters, and returns a hash table as in the example below:"
8588 msgstr ""
8589
8590 #. type: verbatim
8591 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8592 #, no-wrap
8593 msgid ""
8594 " C      =>     /dev/vda2\n"
8595 " E      =>     /dev/vdb1\n"
8596 " F      =>     /dev/vdc1\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8602 msgid ""
8603 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8604 "and just contains the drive letter, without the customary colon separator "
8605 "character."
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8610 msgid ""
8611 "In future we may support other operating systems that also used drive "
8612 "letters, but the keys for those might not be case insensitive and might be "
8613 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8614 "C<h1> etc."
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8619 msgid ""
8620 "For Windows guests, currently only hard drive mappings are returned.  "
8621 "Removable disks (eg. DVD-ROMs) are ignored."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8626 msgid ""
8627 "For guests that do not use drive mappings, or if the drive mappings could "
8628 "not be determined, this returns an empty hash table."
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:1847
8633 msgid ""
8634 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8635 "get-mountpoints>, L</inspect-get-filesystems>."
8636 msgstr ""
8637
8638 #. type: =head2
8639 #: ../fish/guestfish-actions.pod:1851
8640 msgid "inspect-get-filesystems"
8641 msgstr "inspect-get-filesystems"
8642
8643 #. type: verbatim
8644 #: ../fish/guestfish-actions.pod:1853
8645 #, no-wrap
8646 msgid ""
8647 " inspect-get-filesystems root\n"
8648 "\n"
8649 msgstr ""
8650 " inspect-get-filesystems корінь\n"
8651 "\n"
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8655 msgid ""
8656 "This returns a list of all the filesystems that we think are associated with "
8657 "this operating system.  This includes the root filesystem, other ordinary "
8658 "filesystems, and non-mounted devices like swap partitions."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8663 msgid ""
8664 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8665 "to be shared between operating systems."
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../fish/guestfish-actions.pod:1863
8670 msgid ""
8671 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8672 "get-mountpoints>."
8673 msgstr ""
8674
8675 #. type: =head2
8676 #: ../fish/guestfish-actions.pod:1866
8677 msgid "inspect-get-format"
8678 msgstr "inspect-get-format"
8679
8680 #. type: verbatim
8681 #: ../fish/guestfish-actions.pod:1868
8682 #, no-wrap
8683 msgid ""
8684 " inspect-get-format root\n"
8685 "\n"
8686 msgstr ""
8687 " inspect-get-format корінь\n"
8688 "\n"
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8692 msgid ""
8693 "This returns the format of the inspected operating system.  You can use it "
8694 "to detect install images, live CDs and similar."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8699 msgid "Currently defined formats are:"
8700 msgstr ""
8701
8702 #. type: =item
8703 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8704 msgid "\"installed\""
8705 msgstr "\"installed\""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8709 msgid "This is an installed operating system."
8710 msgstr "Це встановлена операційна система."
8711
8712 #. type: =item
8713 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8714 msgid "\"installer\""
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8719 msgid ""
8720 "The disk image being inspected is not an installed operating system, but a "
8721 "I<bootable> install disk, live CD, or similar."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8726 msgid "The format of this disk image is not known."
8727 msgstr ""
8728
8729 #. type: =head2
8730 #: ../fish/guestfish-actions.pod:1897
8731 msgid "inspect-get-hostname"
8732 msgstr "inspect-get-hostname"
8733
8734 #. type: verbatim
8735 #: ../fish/guestfish-actions.pod:1899
8736 #, no-wrap
8737 msgid ""
8738 " inspect-get-hostname root\n"
8739 "\n"
8740 msgstr ""
8741 " inspect-get-hostname корінь\n"
8742 "\n"
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8746 msgid ""
8747 "This function returns the hostname of the operating system as found by "
8748 "inspection of the guest's configuration files."
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8753 msgid ""
8754 "If the hostname could not be determined, then the string C<unknown> is "
8755 "returned."
8756 msgstr ""
8757
8758 #. type: =head2
8759 #: ../fish/guestfish-actions.pod:1909
8760 msgid "inspect-get-icon"
8761 msgstr ""
8762
8763 #. type: verbatim
8764 #: ../fish/guestfish-actions.pod:1911
8765 #, no-wrap
8766 msgid ""
8767 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8768 "\n"
8769 msgstr ""
8770
8771 #. type: textblock
8772 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8773 msgid ""
8774 "This function returns an icon corresponding to the inspected operating "
8775 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8776 "to PNG if necessary)."
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8781 msgid ""
8782 "If it was not possible to get an icon this function returns a zero-length "
8783 "(non-NULL) buffer.  I<Callers must check for this case>."
8784 msgstr ""
8785
8786 #. type: textblock
8787 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8788 msgid ""
8789 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8790 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8791 "this file will be returned.  You can disable favicons by passing the "
8792 "optional C<favicon> boolean as false (default is true)."
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8797 msgid ""
8798 "If finding the favicon fails, then we look in other places in the guest for "
8799 "a suitable icon."
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8804 msgid ""
8805 "If the optional C<highquality> boolean is true then only high quality icons "
8806 "are returned, which means only icons of high resolution with an alpha "
8807 "channel.  The default (false) is to return any icon we can, even if it is of "
8808 "substandard quality."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8813 msgid ""
8814 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8815 "before you call this, since it needs to read information from the guest "
8816 "filesystem during the call."
8817 msgstr ""
8818
8819 #. type: textblock
8820 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8821 msgid ""
8822 "B<Security:> The icon data comes from the untrusted guest, and should be "
8823 "treated with caution.  PNG files have been known to contain exploits.  "
8824 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8825 "trying to process or display the icon."
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8830 msgid ""
8831 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8832 "tries to return the largest, highest quality icon available.  The "
8833 "application must scale the icon to the required size."
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8838 msgid ""
8839 "Extracting icons from Windows guests requires the external C<wrestool> "
8840 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8841 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8842 "installed separately."
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8847 msgid ""
8848 "Operating system icons are usually trademarks.  Seek legal advice before "
8849 "using trademarks in applications."
8850 msgstr ""
8851
8852 #. type: =head2
8853 #: ../fish/guestfish-actions.pod:1975
8854 msgid "inspect-get-major-version"
8855 msgstr "inspect-get-major-version"
8856
8857 #. type: verbatim
8858 #: ../fish/guestfish-actions.pod:1977
8859 #, no-wrap
8860 msgid ""
8861 " inspect-get-major-version root\n"
8862 "\n"
8863 msgstr ""
8864 " inspect-get-major-version корінь\n"
8865 "\n"
8866
8867 #. type: textblock
8868 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8869 msgid ""
8870 "This returns the major version number of the inspected operating system."
8871 msgstr ""
8872
8873 #. type: textblock
8874 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8875 msgid ""
8876 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8877 "popular public names used by the operating system.  Notably the operating "
8878 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8879 "1).  You can find out the real versions corresponding to releases of Windows "
8880 "by consulting Wikipedia or MSDN."
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8885 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8886 msgid "If the version could not be determined, then C<0> is returned."
8887 msgstr ""
8888
8889 #. type: =head2
8890 #: ../fish/guestfish-actions.pod:1993
8891 msgid "inspect-get-minor-version"
8892 msgstr "inspect-get-minor-version"
8893
8894 #. type: verbatim
8895 #: ../fish/guestfish-actions.pod:1995
8896 #, no-wrap
8897 msgid ""
8898 " inspect-get-minor-version root\n"
8899 "\n"
8900 msgstr ""
8901 " inspect-get-minor-version корінь\n"
8902 "\n"
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8906 msgid ""
8907 "This returns the minor version number of the inspected operating system."
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../fish/guestfish-actions.pod:2002
8912 msgid ""
8913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8914 "get-major-version>."
8915 msgstr ""
8916
8917 #. type: =head2
8918 #: ../fish/guestfish-actions.pod:2005
8919 msgid "inspect-get-mountpoints"
8920 msgstr "inspect-get-mountpoints"
8921
8922 #. type: verbatim
8923 #: ../fish/guestfish-actions.pod:2007
8924 #, no-wrap
8925 msgid ""
8926 " inspect-get-mountpoints root\n"
8927 "\n"
8928 msgstr ""
8929 " inspect-get-mountpoints корінь\n"
8930 "\n"
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8934 msgid ""
8935 "This returns a hash of where we think the filesystems associated with this "
8936 "operating system should be mounted.  Callers should note that this is at "
8937 "best an educated guess made by reading configuration files such as C</etc/"
8938 "fstab>.  I<In particular note> that this may return filesystems which are "
8939 "non-existent or not mountable and callers should be prepared to handle or "
8940 "ignore failures if they try to mount them."
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8945 msgid ""
8946 "Each element in the returned hashtable has a key which is the path of the "
8947 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8948 "mounted there (eg. C</dev/sda1>)."
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8953 msgid ""
8954 "Non-mounted devices such as swap devices are I<not> returned in this list."
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:2026
8959 msgid ""
8960 "For operating systems like Windows which still use drive letters, this call "
8961 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8962 "information about the mapping of drive letters to partitions, see L</inspect-"
8963 "get-drive-mappings>."
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:2032
8968 msgid ""
8969 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8970 "get-filesystems>."
8971 msgstr ""
8972
8973 #. type: =head2
8974 #: ../fish/guestfish-actions.pod:2035
8975 msgid "inspect-get-package-format"
8976 msgstr "inspect-get-package-format"
8977
8978 #. type: verbatim
8979 #: ../fish/guestfish-actions.pod:2037
8980 #, no-wrap
8981 msgid ""
8982 " inspect-get-package-format root\n"
8983 "\n"
8984 msgstr ""
8985 " inspect-get-package-format корінь\n"
8986 "\n"
8987
8988 #. type: textblock
8989 #: ../fish/guestfish-actions.pod:2039
8990 msgid ""
8991 "This function and L</inspect-get-package-management> return the package "
8992 "format and package management tool used by the inspected operating system.  "
8993 "For example for Fedora these functions would return C<rpm> (package format) "
8994 "and C<yum> (package management)."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
8999 msgid ""
9000 "This returns the string C<unknown> if we could not determine the package "
9001 "format I<or> if the operating system does not have a real packaging system "
9002 "(eg. Windows)."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9007 msgid ""
9008 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9009 "Future versions of libguestfs may return other strings."
9010 msgstr ""
9011
9012 #. type: =head2
9013 #: ../fish/guestfish-actions.pod:2054
9014 msgid "inspect-get-package-management"
9015 msgstr "inspect-get-package-management"
9016
9017 #. type: verbatim
9018 #: ../fish/guestfish-actions.pod:2056
9019 #, no-wrap
9020 msgid ""
9021 " inspect-get-package-management root\n"
9022 "\n"
9023 msgstr ""
9024 " inspect-get-package-management корінь\n"
9025 "\n"
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:2058
9029 msgid ""
9030 "L</inspect-get-package-format> and this function return the package format "
9031 "and package management tool used by the inspected operating system.  For "
9032 "example for Fedora these functions would return C<rpm> (package format) and "
9033 "C<yum> (package management)."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9038 msgid ""
9039 "This returns the string C<unknown> if we could not determine the package "
9040 "management tool I<or> if the operating system does not have a real packaging "
9041 "system (eg. Windows)."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9046 msgid ""
9047 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9048 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9049 "libguestfs may return other strings."
9050 msgstr ""
9051
9052 #. type: =head2
9053 #: ../fish/guestfish-actions.pod:2075
9054 msgid "inspect-get-product-name"
9055 msgstr "inspect-get-product-name"
9056
9057 #. type: verbatim
9058 #: ../fish/guestfish-actions.pod:2077
9059 #, no-wrap
9060 msgid ""
9061 " inspect-get-product-name root\n"
9062 "\n"
9063 msgstr ""
9064 " inspect-get-product-name корінь\n"
9065 "\n"
9066
9067 #. type: textblock
9068 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9069 msgid ""
9070 "This returns the product name of the inspected operating system.  The "
9071 "product name is generally some freeform string which can be displayed to the "
9072 "user, but should not be parsed by programs."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9077 msgid ""
9078 "If the product name could not be determined, then the string C<unknown> is "
9079 "returned."
9080 msgstr ""
9081
9082 #. type: =head2
9083 #: ../fish/guestfish-actions.pod:2089
9084 msgid "inspect-get-product-variant"
9085 msgstr ""
9086
9087 #. type: verbatim
9088 #: ../fish/guestfish-actions.pod:2091
9089 #, no-wrap
9090 msgid ""
9091 " inspect-get-product-variant root\n"
9092 "\n"
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9097 msgid "This returns the product variant of the inspected operating system."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9102 msgid ""
9103 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9104 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9105 "is usually a string such as C<Client> or C<Server> (other values are "
9106 "possible).  This can be used to distinguish consumer and enterprise versions "
9107 "of Windows that have the same version number (for example, Windows 7 and "
9108 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9109 "the latter is C<Server>)."
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9114 msgid ""
9115 "For enterprise Linux guests, in future we intend this to return the product "
9116 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9117 "implemented at present."
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9122 msgid ""
9123 "If the product variant could not be determined, then the string C<unknown> "
9124 "is returned."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:2112
9129 msgid ""
9130 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9131 "get-product-name>, L</inspect-get-major-version>."
9132 msgstr ""
9133
9134 #. type: =head2
9135 #: ../fish/guestfish-actions.pod:2116
9136 msgid "inspect-get-roots"
9137 msgstr "inspect-get-roots"
9138
9139 #. type: verbatim
9140 #: ../fish/guestfish-actions.pod:2118
9141 #, no-wrap
9142 msgid ""
9143 " inspect-get-roots\n"
9144 "\n"
9145 msgstr ""
9146 " inspect-get-roots\n"
9147 "\n"
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:2120
9151 msgid ""
9152 "This function is a convenient way to get the list of root devices, as "
9153 "returned from a previous call to L</inspect-os>, but without redoing the "
9154 "whole inspection process."
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:2124
9159 msgid ""
9160 "This returns an empty list if either no root devices were found or the "
9161 "caller has not called L</inspect-os>."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:2129
9166 msgid "inspect-get-type"
9167 msgstr "inspect-get-type"
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:2131
9171 #, no-wrap
9172 msgid ""
9173 " inspect-get-type root\n"
9174 "\n"
9175 msgstr ""
9176 " inspect-get-type корінь\n"
9177 "\n"
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9181 msgid ""
9182 "This returns the type of the inspected operating system.  Currently defined "
9183 "types are:"
9184 msgstr ""
9185
9186 #. type: =item
9187 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9188 msgid "\"linux\""
9189 msgstr "\"linux\""
9190
9191 #. type: textblock
9192 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9193 msgid "Any Linux-based operating system."
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9198 msgid "Any Microsoft Windows operating system."
9199 msgstr ""
9200
9201 #. type: =item
9202 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9203 msgid "\"freebsd\""
9204 msgstr "\"freebsd\""
9205
9206 #. type: textblock
9207 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9208 msgid "FreeBSD."
9209 msgstr "FreeBSD."
9210
9211 #. type: textblock
9212 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9213 msgid "The operating system type could not be determined."
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../fish/guestfish-actions.pod:2161
9218 msgid "inspect-get-windows-current-control-set"
9219 msgstr ""
9220
9221 #. type: verbatim
9222 #: ../fish/guestfish-actions.pod:2163
9223 #, no-wrap
9224 msgid ""
9225 " inspect-get-windows-current-control-set root\n"
9226 "\n"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9231 msgid ""
9232 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9233 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9238 msgid ""
9239 "This call assumes that the guest is Windows and that the Registry could be "
9240 "examined by inspection.  If this is not the case then an error is returned."
9241 msgstr ""
9242
9243 #. type: =head2
9244 #: ../fish/guestfish-actions.pod:2174
9245 msgid "inspect-get-windows-systemroot"
9246 msgstr "inspect-get-windows-systemroot"
9247
9248 #. type: verbatim
9249 #: ../fish/guestfish-actions.pod:2176
9250 #, no-wrap
9251 msgid ""
9252 " inspect-get-windows-systemroot root\n"
9253 "\n"
9254 msgstr ""
9255 " inspect-get-windows-systemroot корінь\n"
9256 "\n"
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9260 msgid ""
9261 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9262 "is a directory path such as C</WINDOWS>."
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9267 msgid ""
9268 "This call assumes that the guest is Windows and that the systemroot could be "
9269 "determined by inspection.  If this is not the case then an error is returned."
9270 msgstr ""
9271
9272 #. type: =head2
9273 #: ../fish/guestfish-actions.pod:2187
9274 msgid "inspect-is-live"
9275 msgstr "inspect-is-live"
9276
9277 #. type: verbatim
9278 #: ../fish/guestfish-actions.pod:2189
9279 #, no-wrap
9280 msgid ""
9281 " inspect-is-live root\n"
9282 "\n"
9283 msgstr ""
9284 " inspect-is-live корінь\n"
9285 "\n"
9286
9287 #. type: textblock
9288 #: ../fish/guestfish-actions.pod:2191
9289 msgid ""
9290 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9291 "then this returns true if a live image was detected on the disk."
9292 msgstr ""
9293
9294 #. type: =head2
9295 #: ../fish/guestfish-actions.pod:2197
9296 msgid "inspect-is-multipart"
9297 msgstr "inspect-is-multipart"
9298
9299 #. type: verbatim
9300 #: ../fish/guestfish-actions.pod:2199
9301 #, no-wrap
9302 msgid ""
9303 " inspect-is-multipart root\n"
9304 "\n"
9305 msgstr ""
9306 " inspect-is-multipart корінь\n"
9307 "\n"
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:2201
9311 msgid ""
9312 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9313 "then this returns true if the disk is part of a set."
9314 msgstr ""
9315
9316 #. type: =head2
9317 #: ../fish/guestfish-actions.pod:2207
9318 msgid "inspect-is-netinst"
9319 msgstr "inspect-is-netinst"
9320
9321 #. type: verbatim
9322 #: ../fish/guestfish-actions.pod:2209
9323 #, no-wrap
9324 msgid ""
9325 " inspect-is-netinst root\n"
9326 "\n"
9327 msgstr ""
9328 " inspect-is-netinst корінь\n"
9329 "\n"
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:2211
9333 msgid ""
9334 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9335 "then this returns true if the disk is a network installer, ie. not a self-"
9336 "contained install CD but one which is likely to require network access to "
9337 "complete the install."
9338 msgstr ""
9339
9340 #. type: =head2
9341 #: ../fish/guestfish-actions.pod:2219
9342 msgid "inspect-list-applications"
9343 msgstr "inspect-list-applications"
9344
9345 #. type: verbatim
9346 #: ../fish/guestfish-actions.pod:2221
9347 #, no-wrap
9348 msgid ""
9349 " inspect-list-applications root\n"
9350 "\n"
9351 msgstr ""
9352 " inspect-list-applications кореневий_каталог\n"
9353 "\n"
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9357 msgid "Return the list of applications installed in the operating system."
9358 msgstr ""
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:2225
9362 msgid ""
9363 "I<Note:> This call works differently from other parts of the inspection "
9364 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9365 "then mount up the disks, before calling this.  Listing applications is a "
9366 "significantly more difficult operation which requires access to the full "
9367 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9368 "are just returning data cached in the libguestfs handle, this call actually "
9369 "reads parts of the mounted filesystems during the call."
9370 msgstr ""
9371
9372 #. type: textblock
9373 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9374 msgid ""
9375 "This returns an empty list if the inspection code was not able to determine "
9376 "the list of applications."
9377 msgstr ""
9378
9379 #. type: textblock
9380 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9381 msgid "The application structure contains the following fields:"
9382 msgstr ""
9383
9384 #. type: =item
9385 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9386 msgid "C<app_name>"
9387 msgstr "C<app_name>"
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9391 msgid ""
9392 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9393 "guests, this is the package name."
9394 msgstr ""
9395
9396 #. type: =item
9397 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9398 msgid "C<app_display_name>"
9399 msgstr "C<app_display_name>"
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9403 msgid ""
9404 "The display name of the application, sometimes localized to the install "
9405 "language of the guest operating system."
9406 msgstr ""
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9410 msgid ""
9411 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9412 "to display something can use C<app_name> instead."
9413 msgstr ""
9414
9415 #. type: =item
9416 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9417 msgid "C<app_epoch>"
9418 msgstr "C<app_epoch>"
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9422 msgid ""
9423 "For package managers which use epochs, this contains the epoch of the "
9424 "package (an integer).  If unavailable, this is returned as C<0>."
9425 msgstr ""
9426
9427 #. type: =item
9428 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9429 msgid "C<app_version>"
9430 msgstr "C<app_version>"
9431
9432 #. type: textblock
9433 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9434 msgid ""
9435 "The version string of the application or package.  If unavailable this is "
9436 "returned as an empty string C<\"\">."
9437 msgstr ""
9438
9439 #. type: =item
9440 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9441 msgid "C<app_release>"
9442 msgstr "C<app_release>"
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9446 msgid ""
9447 "The release string of the application or package, for package managers that "
9448 "use this.  If unavailable this is returned as an empty string C<\"\">."
9449 msgstr ""
9450
9451 #. type: =item
9452 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9453 msgid "C<app_install_path>"
9454 msgstr "C<app_install_path>"
9455
9456 #. type: textblock
9457 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9458 msgid ""
9459 "The installation path of the application (on operating systems such as "
9460 "Windows which use installation paths).  This path is in the format used by "
9461 "the guest operating system, it is not a libguestfs path."
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9466 msgid "If unavailable this is returned as an empty string C<\"\">."
9467 msgstr ""
9468
9469 #. type: =item
9470 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9471 msgid "C<app_trans_path>"
9472 msgstr "C<app_trans_path>"
9473
9474 #. type: textblock
9475 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9476 msgid ""
9477 "The install path translated into a libguestfs path.  If unavailable this is "
9478 "returned as an empty string C<\"\">."
9479 msgstr ""
9480
9481 #. type: =item
9482 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9483 msgid "C<app_publisher>"
9484 msgstr "C<app_publisher>"
9485
9486 #. type: textblock
9487 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9488 msgid ""
9489 "The name of the publisher of the application, for package managers that use "
9490 "this.  If unavailable this is returned as an empty string C<\"\">."
9491 msgstr ""
9492
9493 #. type: =item
9494 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9495 msgid "C<app_url>"
9496 msgstr "C<app_url>"
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9500 msgid ""
9501 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9502 "returned as an empty string C<\"\">."
9503 msgstr ""
9504
9505 #. type: =item
9506 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9507 msgid "C<app_source_package>"
9508 msgstr "C<app_source_package>"
9509
9510 #. type: textblock
9511 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9512 msgid ""
9513 "For packaging systems which support this, the name of the source package.  "
9514 "If unavailable this is returned as an empty string C<\"\">."
9515 msgstr ""
9516
9517 #. type: =item
9518 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9519 msgid "C<app_summary>"
9520 msgstr "C<app_summary>"
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9524 msgid ""
9525 "A short (usually one line) description of the application or package.  If "
9526 "unavailable this is returned as an empty string C<\"\">."
9527 msgstr ""
9528
9529 #. type: =item
9530 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9531 msgid "C<app_description>"
9532 msgstr "C<app_description>"
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9536 msgid ""
9537 "A longer description of the application or package.  If unavailable this is "
9538 "returned as an empty string C<\"\">."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:2315
9543 msgid "inspect-os"
9544 msgstr "inspect-os"
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:2317
9548 #, no-wrap
9549 msgid ""
9550 " inspect-os\n"
9551 "\n"
9552 msgstr ""
9553 " inspect-os\n"
9554 "\n"
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9558 msgid ""
9559 "This function uses other libguestfs functions and certain heuristics to "
9560 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9561 "for operating systems."
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9566 msgid "The list returned is empty if no operating systems were found."
9567 msgstr ""
9568
9569 #. type: textblock
9570 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9571 msgid ""
9572 "If one operating system was found, then this returns a list with a single "
9573 "element, which is the name of the root filesystem of this operating system.  "
9574 "It is also possible for this function to return a list containing more than "
9575 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9576 "element being the root filesystem of one of the operating systems."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2332
9581 msgid ""
9582 "You can pass the root string(s) returned to other L</inspect-get-*> "
9583 "functions in order to query further information about each operating system, "
9584 "such as the name and version."
9585 msgstr ""
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:2337
9589 msgid ""
9590 "This function uses other libguestfs features such as L</mount-ro> and L</"
9591 "umount-all> in order to mount and unmount filesystems and look at the "
9592 "contents.  This should be called with no disks currently mounted.  The "
9593 "function may also use Augeas, so any existing Augeas handle will be closed."
9594 msgstr ""
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9598 msgid ""
9599 "This function cannot decrypt encrypted disks.  The caller must do that first "
9600 "(supplying the necessary keys) if the disk is encrypted."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9605 #: ../fish/guestfish-actions.pod:2606
9606 msgid "See also L</list-filesystems>."
9607 msgstr "Див. також L</list-filesystems>."
9608
9609 #. type: =head2
9610 #: ../fish/guestfish-actions.pod:2351
9611 msgid "is-blockdev"
9612 msgstr "is-blockdev"
9613
9614 #. type: verbatim
9615 #: ../fish/guestfish-actions.pod:2353
9616 #, no-wrap
9617 msgid ""
9618 " is-blockdev path\n"
9619 "\n"
9620 msgstr ""
9621 " is-blockdev шлях\n"
9622 "\n"
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9626 msgid ""
9627 "This returns C<true> if and only if there is a block device with the given "
9628 "C<path> name."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9633 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9634 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9635 #: ../fish/guestfish-actions.pod:2457
9636 msgid "See also L</stat>."
9637 msgstr "Див. також L</stat>."
9638
9639 #. type: =head2
9640 #: ../fish/guestfish-actions.pod:2360
9641 msgid "is-busy"
9642 msgstr "is-busy"
9643
9644 #. type: verbatim
9645 #: ../fish/guestfish-actions.pod:2362
9646 #, no-wrap
9647 msgid ""
9648 " is-busy\n"
9649 "\n"
9650 msgstr ""
9651 " is-busy\n"
9652 "\n"
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9656 msgid ""
9657 "This returns true iff this handle is busy processing a command (in the "
9658 "C<BUSY> state)."
9659 msgstr ""
9660
9661 #. type: =head2
9662 #: ../fish/guestfish-actions.pod:2369
9663 msgid "is-chardev"
9664 msgstr "is-chardev"
9665
9666 #. type: verbatim
9667 #: ../fish/guestfish-actions.pod:2371
9668 #, no-wrap
9669 msgid ""
9670 " is-chardev path\n"
9671 "\n"
9672 msgstr ""
9673 " is-chardev шлях\n"
9674 "\n"
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9678 msgid ""
9679 "This returns C<true> if and only if there is a character device with the "
9680 "given C<path> name."
9681 msgstr ""
9682
9683 #. type: =head2
9684 #: ../fish/guestfish-actions.pod:2378
9685 msgid "is-config"
9686 msgstr "is-config"
9687
9688 #. type: verbatim
9689 #: ../fish/guestfish-actions.pod:2380
9690 #, no-wrap
9691 msgid ""
9692 " is-config\n"
9693 "\n"
9694 msgstr ""
9695 " is-config\n"
9696 "\n"
9697
9698 #. type: textblock
9699 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9700 msgid ""
9701 "This returns true iff this handle is being configured (in the C<CONFIG> "
9702 "state)."
9703 msgstr ""
9704
9705 #. type: =head2
9706 #: ../fish/guestfish-actions.pod:2387
9707 msgid "is-dir"
9708 msgstr "is-dir"
9709
9710 #. type: verbatim
9711 #: ../fish/guestfish-actions.pod:2389
9712 #, no-wrap
9713 msgid ""
9714 " is-dir path\n"
9715 "\n"
9716 msgstr ""
9717 " is-dir шлях\n"
9718 "\n"
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9722 msgid ""
9723 "This returns C<true> if and only if there is a directory with the given "
9724 "C<path> name.  Note that it returns false for other objects like files."
9725 msgstr ""
9726
9727 #. type: =head2
9728 #: ../fish/guestfish-actions.pod:2397
9729 msgid "is-fifo"
9730 msgstr "is-fifo"
9731
9732 #. type: verbatim
9733 #: ../fish/guestfish-actions.pod:2399
9734 #, no-wrap
9735 msgid ""
9736 " is-fifo path\n"
9737 "\n"
9738 msgstr ""
9739 " is-fifo шлях\n"
9740 "\n"
9741
9742 #. type: textblock
9743 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9744 msgid ""
9745 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9746 "given C<path> name."
9747 msgstr ""
9748
9749 #. type: =head2
9750 #: ../fish/guestfish-actions.pod:2406
9751 msgid "is-file"
9752 msgstr "is-file"
9753
9754 #. type: verbatim
9755 #: ../fish/guestfish-actions.pod:2408
9756 #, no-wrap
9757 msgid ""
9758 " is-file path\n"
9759 "\n"
9760 msgstr ""
9761 " is-file шлях\n"
9762 "\n"
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9766 msgid ""
9767 "This returns C<true> if and only if there is a regular file with the given "
9768 "C<path> name.  Note that it returns false for other objects like directories."
9769 msgstr ""
9770
9771 #. type: =head2
9772 #: ../fish/guestfish-actions.pod:2416
9773 msgid "is-launching"
9774 msgstr "is-launching"
9775
9776 #. type: verbatim
9777 #: ../fish/guestfish-actions.pod:2418
9778 #, no-wrap
9779 msgid ""
9780 " is-launching\n"
9781 "\n"
9782 msgstr ""
9783 " is-launching\n"
9784 "\n"
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9788 msgid ""
9789 "This returns true iff this handle is launching the subprocess (in the "
9790 "C<LAUNCHING> state)."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../fish/guestfish-actions.pod:2425
9795 msgid "is-lv"
9796 msgstr "is-lv"
9797
9798 #. type: verbatim
9799 #: ../fish/guestfish-actions.pod:2427
9800 #, no-wrap
9801 msgid ""
9802 " is-lv device\n"
9803 "\n"
9804 msgstr ""
9805 " is-lv пристрій\n"
9806 "\n"
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9810 msgid ""
9811 "This command tests whether C<device> is a logical volume, and returns true "
9812 "iff this is the case."
9813 msgstr ""
9814
9815 #. type: =head2
9816 #: ../fish/guestfish-actions.pod:2432
9817 msgid "is-ready"
9818 msgstr "is-ready"
9819
9820 #. type: verbatim
9821 #: ../fish/guestfish-actions.pod:2434
9822 #, no-wrap
9823 msgid ""
9824 " is-ready\n"
9825 "\n"
9826 msgstr ""
9827 " is-ready\n"
9828 "\n"
9829
9830 #. type: textblock
9831 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9832 msgid ""
9833 "This returns true iff this handle is ready to accept commands (in the "
9834 "C<READY> state)."
9835 msgstr ""
9836
9837 #. type: =head2
9838 #: ../fish/guestfish-actions.pod:2441
9839 msgid "is-socket"
9840 msgstr "is-socket"
9841
9842 #. type: verbatim
9843 #: ../fish/guestfish-actions.pod:2443
9844 #, no-wrap
9845 msgid ""
9846 " is-socket path\n"
9847 "\n"
9848 msgstr ""
9849 " is-socket шлях\n"
9850 "\n"
9851
9852 #. type: textblock
9853 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9854 msgid ""
9855 "This returns C<true> if and only if there is a Unix domain socket with the "
9856 "given C<path> name."
9857 msgstr ""
9858
9859 #. type: =head2
9860 #: ../fish/guestfish-actions.pod:2450
9861 msgid "is-symlink"
9862 msgstr "is-symlink"
9863
9864 #. type: verbatim
9865 #: ../fish/guestfish-actions.pod:2452
9866 #, no-wrap
9867 msgid ""
9868 " is-symlink path\n"
9869 "\n"
9870 msgstr ""
9871 " is-symlink шлях\n"
9872 "\n"
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9876 msgid ""
9877 "This returns C<true> if and only if there is a symbolic link with the given "
9878 "C<path> name."
9879 msgstr ""
9880
9881 #. type: =head2
9882 #: ../fish/guestfish-actions.pod:2459
9883 msgid "is-zero"
9884 msgstr ""
9885
9886 #. type: verbatim
9887 #: ../fish/guestfish-actions.pod:2461
9888 #, no-wrap
9889 msgid ""
9890 " is-zero path\n"
9891 "\n"
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9896 msgid ""
9897 "This returns true iff the file exists and the file is empty or it contains "
9898 "all zero bytes."
9899 msgstr ""
9900
9901 #. type: =head2
9902 #: ../fish/guestfish-actions.pod:2466
9903 msgid "is-zero-device"
9904 msgstr ""
9905
9906 #. type: verbatim
9907 #: ../fish/guestfish-actions.pod:2468
9908 #, no-wrap
9909 msgid ""
9910 " is-zero-device device\n"
9911 "\n"
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9916 msgid "This returns true iff the device exists and contains all zero bytes."
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9921 msgid "Note that for large devices this can take a long time to run."
9922 msgstr ""
9923
9924 #. type: =head2
9925 #: ../fish/guestfish-actions.pod:2474
9926 msgid "kill-subprocess"
9927 msgstr "kill-subprocess"
9928
9929 #. type: verbatim
9930 #: ../fish/guestfish-actions.pod:2476
9931 #, no-wrap
9932 msgid ""
9933 " kill-subprocess\n"
9934 "\n"
9935 msgstr ""
9936 " kill-subprocess\n"
9937 "\n"
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9941 msgid "This kills the qemu subprocess.  You should never need to call this."
9942 msgstr ""
9943
9944 #. type: =head2
9945 #: ../fish/guestfish-actions.pod:2480
9946 msgid "launch"
9947 msgstr "launch"
9948
9949 #. type: =head2
9950 #: ../fish/guestfish-actions.pod:2482
9951 msgid "run"
9952 msgstr ""
9953
9954 #. type: verbatim
9955 #: ../fish/guestfish-actions.pod:2484
9956 #, no-wrap
9957 msgid ""
9958 " launch\n"
9959 "\n"
9960 msgstr ""
9961 " launch\n"
9962 "\n"
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9966 msgid ""
9967 "Internally libguestfs is implemented by running a virtual machine using "
9968 "L<qemu(1)>."
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9973 msgid ""
9974 "You should call this after configuring the handle (eg. adding drives) but "
9975 "before performing any actions."
9976 msgstr ""
9977
9978 #. type: =head2
9979 #: ../fish/guestfish-actions.pod:2492
9980 msgid "lchown"
9981 msgstr "lchown"
9982
9983 #. type: verbatim
9984 #: ../fish/guestfish-actions.pod:2494
9985 #, no-wrap
9986 msgid ""
9987 " lchown owner group path\n"
9988 "\n"
9989 msgstr ""
9990 " lchown власник група шлях\n"
9991 "\n"
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:2496
9995 msgid ""
9996 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9997 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9998 "target."
9999 msgstr ""
10000
10001 #. type: =head2
10002 #: ../fish/guestfish-actions.pod:2504
10003 msgid "lgetxattr"
10004 msgstr "lgetxattr"
10005
10006 #. type: verbatim
10007 #: ../fish/guestfish-actions.pod:2506
10008 #, no-wrap
10009 msgid ""
10010 " lgetxattr path name\n"
10011 "\n"
10012 msgstr ""
10013 " lgetxattr шлях назва\n"
10014 "\n"
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10018 msgid ""
10019 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10020 "is a symlink, then this call returns an extended attribute from the symlink."
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:2522
10025 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10026 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10027
10028 #. type: =head2
10029 #: ../fish/guestfish-actions.pod:2524
10030 msgid "lgetxattrs"
10031 msgstr "lgetxattrs"
10032
10033 #. type: verbatim
10034 #: ../fish/guestfish-actions.pod:2526
10035 #, no-wrap
10036 msgid ""
10037 " lgetxattrs path\n"
10038 "\n"
10039 msgstr ""
10040 " lgetxattrs шлях\n"
10041 "\n"
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2528
10045 msgid ""
10046 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10047 "it returns the extended attributes of the link itself."
10048 msgstr ""
10049
10050 #. type: =head2
10051 #: ../fish/guestfish-actions.pod:2532
10052 msgid "list-9p"
10053 msgstr ""
10054
10055 #. type: verbatim
10056 #: ../fish/guestfish-actions.pod:2534
10057 #, no-wrap
10058 msgid ""
10059 " list-9p\n"
10060 "\n"
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10065 msgid ""
10066 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10067 "returned."
10068 msgstr ""
10069
10070 #. type: =head2
10071 #: ../fish/guestfish-actions.pod:2539
10072 msgid "list-devices"
10073 msgstr "list-devices"
10074
10075 #. type: verbatim
10076 #: ../fish/guestfish-actions.pod:2541
10077 #, no-wrap
10078 msgid ""
10079 " list-devices\n"
10080 "\n"
10081 msgstr ""
10082 " list-devices\n"
10083 "\n"
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10087 msgid "List all the block devices."
10088 msgstr ""
10089
10090 #. type: textblock
10091 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10092 msgid "The full block device names are returned, eg. C</dev/sda>."
10093 msgstr ""
10094
10095 #. type: =head2
10096 #: ../fish/guestfish-actions.pod:2549
10097 msgid "list-dm-devices"
10098 msgstr ""
10099
10100 #. type: verbatim
10101 #: ../fish/guestfish-actions.pod:2551
10102 #, no-wrap
10103 msgid ""
10104 " list-dm-devices\n"
10105 "\n"
10106 msgstr ""
10107
10108 #. type: textblock
10109 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10110 msgid "List all device mapper devices."
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2555
10115 msgid ""
10116 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10117 "previous call to L</luks-open>."
10118 msgstr ""
10119
10120 #. type: textblock
10121 #: ../fish/guestfish-actions.pod:2558
10122 msgid ""
10123 "Device mapper devices which correspond to logical volumes are I<not> "
10124 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10125 msgstr ""
10126
10127 #. type: =head2
10128 #: ../fish/guestfish-actions.pod:2562
10129 msgid "list-filesystems"
10130 msgstr "list-filesystems"
10131
10132 #. type: verbatim
10133 #: ../fish/guestfish-actions.pod:2564
10134 #, no-wrap
10135 msgid ""
10136 " list-filesystems\n"
10137 "\n"
10138 msgstr ""
10139 " list-filesystems\n"
10140 "\n"
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10144 msgid ""
10145 "This inspection command looks for filesystems on partitions, block devices "
10146 "and logical volumes, returning a list of devices containing filesystems and "
10147 "their type."
10148 msgstr ""
10149
10150 #. type: textblock
10151 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10152 msgid ""
10153 "The return value is a hash, where the keys are the devices containing "
10154 "filesystems, and the values are the filesystem types.  For example:"
10155 msgstr ""
10156
10157 #. type: verbatim
10158 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10159 #, no-wrap
10160 msgid ""
10161 " \"/dev/sda1\" => \"ntfs\"\n"
10162 " \"/dev/sda2\" => \"ext2\"\n"
10163 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10164 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10165 "\n"
10166 msgstr ""
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10170 msgid ""
10171 "The value can have the special value \"unknown\", meaning the content of the "
10172 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2583
10177 msgid ""
10178 "This command runs other libguestfs commands, which might include L</mount> "
10179 "and L</umount>, and therefore you should use this soon after launch and only "
10180 "when nothing is mounted."
10181 msgstr ""
10182
10183 #. type: textblock
10184 #: ../fish/guestfish-actions.pod:2587
10185 msgid ""
10186 "Not all of the filesystems returned will be mountable.  In particular, swap "
10187 "partitions are returned in the list.  Also this command does not check that "
10188 "each filesystem found is valid and mountable, and some filesystems might be "
10189 "mountable but require special options.  Filesystems may not all belong to a "
10190 "single logical operating system (use L</inspect-os> to look for OSes)."
10191 msgstr ""
10192
10193 #. type: =head2
10194 #: ../fish/guestfish-actions.pod:2595
10195 msgid "list-partitions"
10196 msgstr "list-partitions"
10197
10198 #. type: verbatim
10199 #: ../fish/guestfish-actions.pod:2597
10200 #, no-wrap
10201 msgid ""
10202 " list-partitions\n"
10203 "\n"
10204 msgstr ""
10205 " list-partitions\n"
10206 "\n"
10207
10208 #. type: textblock
10209 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10210 msgid "List all the partitions detected on all block devices."
10211 msgstr ""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10215 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2603
10220 msgid ""
10221 "This does not return logical volumes.  For that you will need to call L</"
10222 "lvs>."
10223 msgstr ""
10224
10225 #. type: =head2
10226 #: ../fish/guestfish-actions.pod:2608
10227 msgid "ll"
10228 msgstr "ll"
10229
10230 #. type: verbatim
10231 #: ../fish/guestfish-actions.pod:2610
10232 #, no-wrap
10233 msgid ""
10234 " ll directory\n"
10235 "\n"
10236 msgstr ""
10237 " ll каталог\n"
10238 "\n"
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10242 msgid ""
10243 "List the files in C<directory> (relative to the root directory, there is no "
10244 "cwd) in the format of 'ls -la'."
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10249 msgid ""
10250 "This command is mostly useful for interactive sessions.  It is I<not> "
10251 "intended that you try to parse the output string."
10252 msgstr ""
10253
10254 #. type: =head2
10255 #: ../fish/guestfish-actions.pod:2618
10256 msgid "ln"
10257 msgstr "ln"
10258
10259 #. type: verbatim
10260 #: ../fish/guestfish-actions.pod:2620
10261 #, no-wrap
10262 msgid ""
10263 " ln target linkname\n"
10264 "\n"
10265 msgstr ""
10266 " ln призначення назва_посилання\n"
10267 "\n"
10268
10269 #. type: textblock
10270 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10271 msgid "This command creates a hard link using the C<ln> command."
10272 msgstr ""
10273
10274 #. type: =head2
10275 #: ../fish/guestfish-actions.pod:2624
10276 msgid "ln-f"
10277 msgstr "ln-f"
10278
10279 #. type: verbatim
10280 #: ../fish/guestfish-actions.pod:2626
10281 #, no-wrap
10282 msgid ""
10283 " ln-f target linkname\n"
10284 "\n"
10285 msgstr ""
10286 " ln-f призначення назва_посилання\n"
10287 "\n"
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10291 msgid ""
10292 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10293 "option removes the link (C<linkname>) if it exists already."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../fish/guestfish-actions.pod:2631
10298 msgid "ln-s"
10299 msgstr "ln-s"
10300
10301 #. type: verbatim
10302 #: ../fish/guestfish-actions.pod:2633
10303 #, no-wrap
10304 msgid ""
10305 " ln-s target linkname\n"
10306 "\n"
10307 msgstr ""
10308 " ln-s призначення назва_посилання\n"
10309 "\n"
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10313 msgid "This command creates a symbolic link using the C<ln -s> command."
10314 msgstr ""
10315
10316 #. type: =head2
10317 #: ../fish/guestfish-actions.pod:2637
10318 msgid "ln-sf"
10319 msgstr "ln-sf"
10320
10321 #. type: verbatim
10322 #: ../fish/guestfish-actions.pod:2639
10323 #, no-wrap
10324 msgid ""
10325 " ln-sf target linkname\n"
10326 "\n"
10327 msgstr ""
10328 " ln-sf призначення назва_посилання\n"
10329 "\n"
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10333 msgid ""
10334 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10335 "option removes the link (C<linkname>) if it exists already."
10336 msgstr ""
10337
10338 #. type: =head2
10339 #: ../fish/guestfish-actions.pod:2644
10340 msgid "lremovexattr"
10341 msgstr "lremovexattr"
10342
10343 #. type: verbatim
10344 #: ../fish/guestfish-actions.pod:2646
10345 #, no-wrap
10346 msgid ""
10347 " lremovexattr xattr path\n"
10348 "\n"
10349 msgstr ""
10350
10351 #. type: textblock
10352 #: ../fish/guestfish-actions.pod:2648
10353 msgid ""
10354 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10355 "it removes an extended attribute of the link itself."
10356 msgstr ""
10357
10358 #. type: =head2
10359 #: ../fish/guestfish-actions.pod:2652
10360 msgid "ls"
10361 msgstr "ls"
10362
10363 #. type: verbatim
10364 #: ../fish/guestfish-actions.pod:2654
10365 #, no-wrap
10366 msgid ""
10367 " ls directory\n"
10368 "\n"
10369 msgstr ""
10370 " ls каталог\n"
10371 "\n"
10372
10373 #. type: textblock
10374 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10375 msgid ""
10376 "List the files in C<directory> (relative to the root directory, there is no "
10377 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2660
10382 msgid ""
10383 "This command is mostly useful for interactive sessions.  Programs should "
10384 "probably use L</readdir> instead."
10385 msgstr ""
10386
10387 #. type: =head2
10388 #: ../fish/guestfish-actions.pod:2663
10389 msgid "lsetxattr"
10390 msgstr "lsetxattr"
10391
10392 #. type: verbatim
10393 #: ../fish/guestfish-actions.pod:2665
10394 #, no-wrap
10395 msgid ""
10396 " lsetxattr xattr val vallen path\n"
10397 "\n"
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2667
10402 msgid ""
10403 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10404 "sets an extended attribute of the link itself."
10405 msgstr ""
10406
10407 #. type: =head2
10408 #: ../fish/guestfish-actions.pod:2671
10409 msgid "lstat"
10410 msgstr "lstat"
10411
10412 #. type: verbatim
10413 #: ../fish/guestfish-actions.pod:2673
10414 #, no-wrap
10415 msgid ""
10416 " lstat path\n"
10417 "\n"
10418 msgstr ""
10419 " lstat шлях\n"
10420 "\n"
10421
10422 #. type: textblock
10423 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10424 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10425 msgid "Returns file information for the given C<path>."
10426 msgstr ""
10427
10428 #. type: textblock
10429 #: ../fish/guestfish-actions.pod:2677
10430 msgid ""
10431 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10432 "the link is stat-ed, not the file it refers to."
10433 msgstr ""
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10437 msgid "This is the same as the C<lstat(2)> system call."
10438 msgstr ""
10439
10440 #. type: =head2
10441 #: ../fish/guestfish-actions.pod:2683
10442 msgid "lstatlist"
10443 msgstr "lstatlist"
10444
10445 #. type: verbatim
10446 #: ../fish/guestfish-actions.pod:2685
10447 #, no-wrap
10448 msgid ""
10449 " lstatlist path 'names ...'\n"
10450 "\n"
10451 msgstr ""
10452
10453 #. type: textblock
10454 #: ../fish/guestfish-actions.pod:2687
10455 msgid ""
10456 "This call allows you to perform the L</lstat> operation on multiple files, "
10457 "where all files are in the directory C<path>.  C<names> is the list of files "
10458 "from this directory."
10459 msgstr ""
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10463 msgid ""
10464 "On return you get a list of stat structs, with a one-to-one correspondence "
10465 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10466 "then the C<ino> field of that structure is set to C<-1>."
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:2696
10471 msgid ""
10472 "This call is intended for programs that want to efficiently list a directory "
10473 "contents without making many round-trips.  See also L</lxattrlist> for a "
10474 "similarly efficient call for getting extended attributes.  Very long "
10475 "directory listings might cause the protocol message size to be exceeded, "
10476 "causing this call to fail.  The caller must split up such requests into "
10477 "smaller groups of names."
10478 msgstr ""
10479
10480 #. type: =head2
10481 #: ../fish/guestfish-actions.pod:2704
10482 msgid "luks-add-key"
10483 msgstr "luks-add-key"
10484
10485 #. type: verbatim
10486 #: ../fish/guestfish-actions.pod:2706
10487 #, no-wrap
10488 msgid ""
10489 " luks-add-key device keyslot\n"
10490 "\n"
10491 msgstr ""
10492
10493 #. type: textblock
10494 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10495 msgid ""
10496 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10497 "existing key, and is used to access the device.  C<newkey> is the new key to "
10498 "add.  C<keyslot> is the key slot that will be replaced."
10499 msgstr ""
10500
10501 #. type: textblock
10502 #: ../fish/guestfish-actions.pod:2713
10503 msgid ""
10504 "Note that if C<keyslot> already contains a key, then this command will "
10505 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10510 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10511 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10512 msgid ""
10513 "This command has one or more key or passphrase parameters.  Guestfish will "
10514 "prompt for these separately."
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:2720
10519 msgid "luks-close"
10520 msgstr "luks-close"
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:2722
10524 #, no-wrap
10525 msgid ""
10526 " luks-close device\n"
10527 "\n"
10528 msgstr ""
10529 " luks-close пристрій\n"
10530 "\n"
10531
10532 #. type: textblock
10533 #: ../fish/guestfish-actions.pod:2724
10534 msgid ""
10535 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10536 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10537 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10538 "block device."
10539 msgstr ""
10540
10541 #. type: =head2
10542 #: ../fish/guestfish-actions.pod:2730
10543 msgid "luks-format"
10544 msgstr "luks-format"
10545
10546 #. type: verbatim
10547 #: ../fish/guestfish-actions.pod:2732
10548 #, no-wrap
10549 msgid ""
10550 " luks-format device keyslot\n"
10551 "\n"
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10556 msgid ""
10557 "This command erases existing data on C<device> and formats the device as a "
10558 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10559 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10564 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10565 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10566 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10567 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:4058
10568 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10569 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10570 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
10571 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:7804
10572 msgid ""
10573 "B<This command is dangerous.  Without careful use you can easily destroy all "
10574 "your data>."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2745
10579 msgid "luks-format-cipher"
10580 msgstr "luks-format-cipher"
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2747
10584 #, no-wrap
10585 msgid ""
10586 " luks-format-cipher device keyslot cipher\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2749
10592 msgid ""
10593 "This command is the same as L</luks-format> but it also allows you to set "
10594 "the C<cipher> used."
10595 msgstr ""
10596
10597 #. type: =head2
10598 #: ../fish/guestfish-actions.pod:2758
10599 msgid "luks-kill-slot"
10600 msgstr "luks-kill-slot"
10601
10602 #. type: verbatim
10603 #: ../fish/guestfish-actions.pod:2760
10604 #, no-wrap
10605 msgid ""
10606 " luks-kill-slot device keyslot\n"
10607 "\n"
10608 msgstr ""
10609
10610 #. type: textblock
10611 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10612 msgid ""
10613 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10614 "device C<device>.  C<key> must be one of the I<other> keys."
10615 msgstr ""
10616
10617 #. type: =head2
10618 #: ../fish/guestfish-actions.pod:2769
10619 msgid "luks-open"
10620 msgstr "luks-open"
10621
10622 #. type: verbatim
10623 #: ../fish/guestfish-actions.pod:2771
10624 #, no-wrap
10625 msgid ""
10626 " luks-open device mapname\n"
10627 "\n"
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10632 msgid ""
10633 "This command opens a block device which has been encrypted according to the "
10634 "Linux Unified Key Setup (LUKS) standard."
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10639 msgid "C<device> is the encrypted block device or partition."
10640 msgstr ""
10641
10642 #. type: textblock
10643 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10644 msgid ""
10645 "The caller must supply one of the keys associated with the LUKS block "
10646 "device, in the C<key> parameter."
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10651 msgid ""
10652 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10653 "writes to this block device are decrypted from and encrypted to the "
10654 "underlying C<device> respectively."
10655 msgstr ""
10656
10657 #. type: textblock
10658 #: ../fish/guestfish-actions.pod:2785
10659 msgid ""
10660 "If this block device contains LVM volume groups, then calling L</vgscan> "
10661 "followed by L</vg-activate-all> will make them visible."
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:2789
10666 msgid "Use L</list-dm-devices> to list all device mapper devices."
10667 msgstr ""
10668
10669 #. type: =head2
10670 #: ../fish/guestfish-actions.pod:2795
10671 msgid "luks-open-ro"
10672 msgstr "luks-open-ro"
10673
10674 #. type: verbatim
10675 #: ../fish/guestfish-actions.pod:2797
10676 #, no-wrap
10677 msgid ""
10678 " luks-open-ro device mapname\n"
10679 "\n"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2799
10684 msgid ""
10685 "This is the same as L</luks-open> except that a read-only mapping is created."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../fish/guestfish-actions.pod:2805
10690 msgid "lvcreate"
10691 msgstr "lvcreate"
10692
10693 #. type: verbatim
10694 #: ../fish/guestfish-actions.pod:2807
10695 #, no-wrap
10696 msgid ""
10697 " lvcreate logvol volgroup mbytes\n"
10698 "\n"
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10703 msgid ""
10704 "This creates an LVM logical volume called C<logvol> on the volume group "
10705 "C<volgroup>, with C<size> megabytes."
10706 msgstr ""
10707
10708 #. type: =head2
10709 #: ../fish/guestfish-actions.pod:2812
10710 msgid "lvm-canonical-lv-name"
10711 msgstr "lvm-canonical-lv-name"
10712
10713 #. type: verbatim
10714 #: ../fish/guestfish-actions.pod:2814
10715 #, no-wrap
10716 msgid ""
10717 " lvm-canonical-lv-name lvname\n"
10718 "\n"
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10723 msgid ""
10724 "This converts alternative naming schemes for LVs that you might find to the "
10725 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10726 "LV>."
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10731 msgid ""
10732 "This command returns an error if the C<lvname> parameter does not refer to a "
10733 "logical volume."
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2823
10738 msgid "See also L</is-lv>."
10739 msgstr "Див. також L</is-lv>."
10740
10741 #. type: =head2
10742 #: ../fish/guestfish-actions.pod:2825
10743 msgid "lvm-clear-filter"
10744 msgstr "lvm-clear-filter"
10745
10746 #. type: verbatim
10747 #: ../fish/guestfish-actions.pod:2827
10748 #, no-wrap
10749 msgid ""
10750 " lvm-clear-filter\n"
10751 "\n"
10752 msgstr ""
10753 " lvm-clear-filter\n"
10754 "\n"
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:2829
10758 msgid ""
10759 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10760 "block device."
10761 msgstr ""
10762
10763 #. type: textblock
10764 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10765 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10766 msgid ""
10767 "This command also clears the LVM cache and performs a volume group scan."
10768 msgstr ""
10769
10770 #. type: =head2
10771 #: ../fish/guestfish-actions.pod:2835
10772 msgid "lvm-remove-all"
10773 msgstr "lvm-remove-all"
10774
10775 #. type: verbatim
10776 #: ../fish/guestfish-actions.pod:2837
10777 #, no-wrap
10778 msgid ""
10779 " lvm-remove-all\n"
10780 "\n"
10781 msgstr ""
10782 " lvm-remove-all\n"
10783 "\n"
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10787 msgid ""
10788 "This command removes all LVM logical volumes, volume groups and physical "
10789 "volumes."
10790 msgstr ""
10791
10792 #. type: =head2
10793 #: ../fish/guestfish-actions.pod:2845
10794 msgid "lvm-set-filter"
10795 msgstr "lvm-set-filter"
10796
10797 #. type: verbatim
10798 #: ../fish/guestfish-actions.pod:2847
10799 #, no-wrap
10800 msgid ""
10801 " lvm-set-filter 'devices ...'\n"
10802 "\n"
10803 msgstr ""
10804 " lvm-set-filter 'пристрої...'\n"
10805 "\n"
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10809 msgid ""
10810 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10811 "block devices in the list C<devices>, and will ignore all other attached "
10812 "block devices."
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10817 msgid ""
10818 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10819 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10820 "there are two types of duplication possible: either cloned PVs/VGs which "
10821 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10822 "same name.  In normal operation you cannot create this situation, but you "
10823 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10824 "inside the LVM metadata."
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10829 msgid "You can filter whole block devices or individual partitions."
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10834 msgid ""
10835 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10836 "filesystem), even if you are not filtering out that VG."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:2872
10841 msgid "lvremove"
10842 msgstr "lvremove"
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:2874
10846 #, no-wrap
10847 msgid ""
10848 " lvremove device\n"
10849 "\n"
10850 msgstr ""
10851 " lvremove пристрій\n"
10852 "\n"
10853
10854 #. type: textblock
10855 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10856 msgid ""
10857 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10858 "LV, such as C</dev/VG/LV>."
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10863 msgid ""
10864 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10865 "dev/VG>."
10866 msgstr ""
10867
10868 #. type: =head2
10869 #: ../fish/guestfish-actions.pod:2882
10870 msgid "lvrename"
10871 msgstr "lvrename"
10872
10873 #. type: verbatim
10874 #: ../fish/guestfish-actions.pod:2884
10875 #, no-wrap
10876 msgid ""
10877 " lvrename logvol newlogvol\n"
10878 "\n"
10879 msgstr ""
10880
10881 #. type: textblock
10882 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10883 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10884 msgstr ""
10885
10886 #. type: =head2
10887 #: ../fish/guestfish-actions.pod:2888
10888 msgid "lvresize"
10889 msgstr "lvresize"
10890
10891 #. type: verbatim
10892 #: ../fish/guestfish-actions.pod:2890
10893 #, no-wrap
10894 msgid ""
10895 " lvresize device mbytes\n"
10896 "\n"
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10901 msgid ""
10902 "This resizes (expands or shrinks) an existing LVM logical volume to "
10903 "C<mbytes>.  When reducing, data in the reduced part is lost."
10904 msgstr ""
10905
10906 #. type: =head2
10907 #: ../fish/guestfish-actions.pod:2896
10908 msgid "lvresize-free"
10909 msgstr "lvresize-free"
10910
10911 #. type: verbatim
10912 #: ../fish/guestfish-actions.pod:2898
10913 #, no-wrap
10914 msgid ""
10915 " lvresize-free lv percent\n"
10916 "\n"
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10921 msgid ""
10922 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10923 "remaining free space in the volume group.  Commonly you would call this with "
10924 "pc = 100 which expands the logical volume as much as possible, using all "
10925 "remaining free space in the volume group."
10926 msgstr ""
10927
10928 #. type: =head2
10929 #: ../fish/guestfish-actions.pod:2906
10930 msgid "lvs"
10931 msgstr "lvs"
10932
10933 #. type: verbatim
10934 #: ../fish/guestfish-actions.pod:2908
10935 #, no-wrap
10936 msgid ""
10937 " lvs\n"
10938 "\n"
10939 msgstr ""
10940 " lvs\n"
10941 "\n"
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10945 msgid ""
10946 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10947 "(8)> command."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10952 msgid ""
10953 "This returns a list of the logical volume device names (eg. C</dev/"
10954 "VolGroup00/LogVol00>)."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2916
10959 msgid "See also L</lvs-full>, L</list-filesystems>."
10960 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10961
10962 #. type: =head2
10963 #: ../fish/guestfish-actions.pod:2918
10964 msgid "lvs-full"
10965 msgstr "lvs-full"
10966
10967 #. type: verbatim
10968 #: ../fish/guestfish-actions.pod:2920
10969 #, no-wrap
10970 msgid ""
10971 " lvs-full\n"
10972 "\n"
10973 msgstr ""
10974 " lvs-full\n"
10975 "\n"
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10979 msgid ""
10980 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10981 "(8)> command.  The \"full\" version includes all fields."
10982 msgstr ""
10983
10984 #. type: =head2
10985 #: ../fish/guestfish-actions.pod:2925
10986 msgid "lvuuid"
10987 msgstr "lvuuid"
10988
10989 #. type: verbatim
10990 #: ../fish/guestfish-actions.pod:2927
10991 #, no-wrap
10992 msgid ""
10993 " lvuuid device\n"
10994 "\n"
10995 msgstr ""
10996 " lvuuid пристрій\n"
10997 "\n"
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11001 msgid "This command returns the UUID of the LVM LV C<device>."
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../fish/guestfish-actions.pod:2931
11006 msgid "lxattrlist"
11007 msgstr "lxattrlist"
11008
11009 #. type: verbatim
11010 #: ../fish/guestfish-actions.pod:2933
11011 #, no-wrap
11012 msgid ""
11013 " lxattrlist path 'names ...'\n"
11014 "\n"
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11019 msgid ""
11020 "This call allows you to get the extended attributes of multiple files, where "
11021 "all files are in the directory C<path>.  C<names> is the list of files from "
11022 "this directory."
11023 msgstr ""
11024
11025 #. type: textblock
11026 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11027 msgid ""
11028 "On return you get a flat list of xattr structs which must be interpreted "
11029 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11030 "C<attrval> in this struct is zero-length to indicate there was an error "
11031 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11032 "number (the number of following attributes for this file, which could be C<"
11033 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11034 "for the first named file.  This repeats for the second and subsequent files."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2949
11039 msgid ""
11040 "This call is intended for programs that want to efficiently list a directory "
11041 "contents without making many round-trips.  See also L</lstatlist> for a "
11042 "similarly efficient call for getting standard stats.  Very long directory "
11043 "listings might cause the protocol message size to be exceeded, causing this "
11044 "call to fail.  The caller must split up such requests into smaller groups of "
11045 "names."
11046 msgstr ""
11047
11048 #. type: =head2
11049 #: ../fish/guestfish-actions.pod:2957
11050 msgid "mkdir"
11051 msgstr "mkdir"
11052
11053 #. type: verbatim
11054 #: ../fish/guestfish-actions.pod:2959
11055 #, no-wrap
11056 msgid ""
11057 " mkdir path\n"
11058 "\n"
11059 msgstr ""
11060 " mkdir шлях\n"
11061 "\n"
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11065 msgid "Create a directory named C<path>."
11066 msgstr ""
11067
11068 #. type: =head2
11069 #: ../fish/guestfish-actions.pod:2963
11070 msgid "mkdir-mode"
11071 msgstr "mkdir-mode"
11072
11073 #. type: verbatim
11074 #: ../fish/guestfish-actions.pod:2965
11075 #, no-wrap
11076 msgid ""
11077 " mkdir-mode path mode\n"
11078 "\n"
11079 msgstr ""
11080 " mkdir-mode шлях режим\n"
11081 "\n"
11082
11083 #. type: textblock
11084 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11085 msgid ""
11086 "This command creates a directory, setting the initial permissions of the "
11087 "directory to C<mode>."
11088 msgstr ""
11089
11090 #. type: textblock
11091 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11092 msgid ""
11093 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11094 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11095 "other ways."
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:2974
11100 msgid "See also L</mkdir>, L</umask>"
11101 msgstr "Див. також L</mkdir>, L</umask>"
11102
11103 #. type: =head2
11104 #: ../fish/guestfish-actions.pod:2976
11105 msgid "mkdir-p"
11106 msgstr "mkdir-p"
11107
11108 #. type: verbatim
11109 #: ../fish/guestfish-actions.pod:2978
11110 #, no-wrap
11111 msgid ""
11112 " mkdir-p path\n"
11113 "\n"
11114 msgstr ""
11115 " mkdir-p шлях\n"
11116 "\n"
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11120 msgid ""
11121 "Create a directory named C<path>, creating any parent directories as "
11122 "necessary.  This is like the C<mkdir -p> shell command."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2983
11127 msgid "mkdtemp"
11128 msgstr "mkdtemp"
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2985
11132 #, no-wrap
11133 msgid ""
11134 " mkdtemp template\n"
11135 "\n"
11136 msgstr ""
11137 " mkdtemp шаблон\n"
11138 "\n"
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11142 msgid ""
11143 "This command creates a temporary directory.  The C<template> parameter "
11144 "should be a full pathname for the temporary directory name with the final "
11145 "six characters being \"XXXXXX\"."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11150 msgid ""
11151 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11152 "being suitable for Windows filesystems."
11153 msgstr ""
11154
11155 #. type: textblock
11156 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11157 msgid "The name of the temporary directory that was created is returned."
11158 msgstr ""
11159
11160 #. type: textblock
11161 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11162 msgid "The temporary directory is created with mode 0700 and is owned by root."
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11167 msgid ""
11168 "The caller is responsible for deleting the temporary directory and its "
11169 "contents after use."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11174 msgid "See also: L<mkdtemp(3)>"
11175 msgstr ""
11176
11177 #. type: =head2
11178 #: ../fish/guestfish-actions.pod:3006
11179 msgid "mke2fs-J"
11180 msgstr "mke2fs-J"
11181
11182 #. type: verbatim
11183 #: ../fish/guestfish-actions.pod:3008
11184 #, no-wrap
11185 msgid ""
11186 " mke2fs-J fstype blocksize device journal\n"
11187 "\n"
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11192 msgid ""
11193 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11194 "C<journal>.  It is equivalent to the command:"
11195 msgstr ""
11196
11197 #. type: verbatim
11198 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11199 #, no-wrap
11200 msgid ""
11201 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11202 "\n"
11203 msgstr ""
11204 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11205 "\n"
11206
11207 #. type: textblock
11208 #: ../fish/guestfish-actions.pod:3016
11209 msgid "See also L</mke2journal>."
11210 msgstr "Див. також L</mke2journal>."
11211
11212 #. type: =head2
11213 #: ../fish/guestfish-actions.pod:3018
11214 msgid "mke2fs-JL"
11215 msgstr "mke2fs-JL"
11216
11217 #. type: verbatim
11218 #: ../fish/guestfish-actions.pod:3020
11219 #, no-wrap
11220 msgid ""
11221 " mke2fs-JL fstype blocksize device label\n"
11222 "\n"
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11227 msgid ""
11228 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11229 "the journal labeled C<label>."
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:3025
11234 msgid "See also L</mke2journal-L>."
11235 msgstr "Див. також L</mke2journal-L>."
11236
11237 #. type: =head2
11238 #: ../fish/guestfish-actions.pod:3027
11239 msgid "mke2fs-JU"
11240 msgstr "mke2fs-JU"
11241
11242 #. type: verbatim
11243 #: ../fish/guestfish-actions.pod:3029
11244 #, no-wrap
11245 msgid ""
11246 " mke2fs-JU fstype blocksize device uuid\n"
11247 "\n"
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11252 msgid ""
11253 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11254 "the journal with UUID C<uuid>."
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:3034
11259 msgid "See also L</mke2journal-U>."
11260 msgstr "Див. також L</mke2journal-U>."
11261
11262 #. type: =head2
11263 #: ../fish/guestfish-actions.pod:3036
11264 msgid "mke2journal"
11265 msgstr "mke2journal"
11266
11267 #. type: verbatim
11268 #: ../fish/guestfish-actions.pod:3038
11269 #, no-wrap
11270 msgid ""
11271 " mke2journal blocksize device\n"
11272 "\n"
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11277 msgid ""
11278 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11279 "command:"
11280 msgstr ""
11281
11282 #. type: verbatim
11283 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11284 #, no-wrap
11285 msgid ""
11286 " mke2fs -O journal_dev -b blocksize device\n"
11287 "\n"
11288 msgstr ""
11289
11290 #. type: =head2
11291 #: ../fish/guestfish-actions.pod:3045
11292 msgid "mke2journal-L"
11293 msgstr "mke2journal-L"
11294
11295 #. type: verbatim
11296 #: ../fish/guestfish-actions.pod:3047
11297 #, no-wrap
11298 msgid ""
11299 " mke2journal-L blocksize label device\n"
11300 "\n"
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11305 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:3051
11310 msgid "mke2journal-U"
11311 msgstr "mke2journal-U"
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:3053
11315 #, no-wrap
11316 msgid ""
11317 " mke2journal-U blocksize uuid device\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11323 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:3057
11328 msgid "mkfifo"
11329 msgstr "mkfifo"
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:3059
11333 #, no-wrap
11334 msgid ""
11335 " mkfifo mode path\n"
11336 "\n"
11337 msgstr ""
11338 " mkfifo режим шлях\n"
11339 "\n"
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:3061
11343 msgid ""
11344 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11345 "is just a convenient wrapper around L</mknod>."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:3067
11350 msgid "mkfs"
11351 msgstr "mkfs"
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:3069
11355 #, no-wrap
11356 msgid ""
11357 " mkfs fstype device\n"
11358 "\n"
11359 msgstr ""
11360 " mkfs тип_файлової_системи пристрій\n"
11361 "\n"
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11365 msgid ""
11366 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11367 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11368 msgstr ""
11369
11370 #. type: =head2
11371 #: ../fish/guestfish-actions.pod:3075
11372 msgid "mkfs-b"
11373 msgstr "mkfs-b"
11374
11375 #. type: verbatim
11376 #: ../fish/guestfish-actions.pod:3077
11377 #, no-wrap
11378 msgid ""
11379 " mkfs-b fstype blocksize device\n"
11380 "\n"
11381 msgstr ""
11382
11383 #. type: textblock
11384 #: ../fish/guestfish-actions.pod:3079
11385 msgid ""
11386 "This call is similar to L</mkfs>, but it allows you to control the block "
11387 "size of the resulting filesystem.  Supported block sizes depend on the "
11388 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11393 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4670
11394 msgid ""
11395 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11396 "cluster size."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:3087
11401 msgid ""
11402 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
11403 "instead."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:3094
11408 msgid "mkfs-opts"
11409 msgstr "mkfs-opts"
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:3096
11413 #, no-wrap
11414 msgid ""
11415 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11421 msgid ""
11422 "This function creates a filesystem on C<device>.  The filesystem type is "
11423 "C<fstype>, for example C<ext3>."
11424 msgstr ""
11425
11426 #. type: =item
11427 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11428 msgid "C<blocksize>"
11429 msgstr "C<blocksize>"
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11433 msgid ""
11434 "The filesystem block size.  Supported block sizes depend on the filesystem "
11435 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11436 "filesystems."
11437 msgstr ""
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11441 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11442 msgstr ""
11443
11444 #. type: =item
11445 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11446 msgid "C<features>"
11447 msgstr "C<features>"
11448
11449 #. type: textblock
11450 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11451 msgid "This passes the I<-O> parameter to the external mkfs program."
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11456 msgid ""
11457 "For certain filesystem types, this allows extra filesystem features to be "
11458 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11459 msgstr ""
11460
11461 #. type: textblock
11462 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11463 msgid ""
11464 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11465 "type."
11466 msgstr ""
11467
11468 #. type: =item
11469 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11470 msgid "C<inode>"
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11475 msgid ""
11476 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11477 "sets the inode size (only for ext2/3/4 filesystems at present)."
11478 msgstr ""
11479
11480 #. type: =item
11481 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11482 msgid "C<sectorsize>"
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11487 msgid ""
11488 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11489 "sets sector size for ufs filesystem."
11490 msgstr ""
11491
11492 #. type: =head2
11493 #: ../fish/guestfish-actions.pod:3141
11494 msgid "mkmountpoint"
11495 msgstr "mkmountpoint"
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:3143
11499 #, no-wrap
11500 msgid ""
11501 " mkmountpoint exemptpath\n"
11502 "\n"
11503 msgstr ""
11504
11505 #. type: textblock
11506 #: ../fish/guestfish-actions.pod:3145
11507 msgid ""
11508 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11509 "to create extra mountpoints before mounting the first filesystem."
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11514 msgid ""
11515 "These calls are I<only> necessary in some very limited circumstances, mainly "
11516 "the case where you want to mount a mix of unrelated and/or read-only "
11517 "filesystems together."
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11522 msgid ""
11523 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11524 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11525 "inside that.  You can unpack this as follows in guestfish:"
11526 msgstr ""
11527
11528 #. type: verbatim
11529 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11530 #, no-wrap
11531 msgid ""
11532 " add-ro Fedora-11-i686-Live.iso\n"
11533 " run\n"
11534 " mkmountpoint /cd\n"
11535 " mkmountpoint /sqsh\n"
11536 " mkmountpoint /ext3fs\n"
11537 " mount /dev/sda /cd\n"
11538 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11539 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11540 "\n"
11541 msgstr ""
11542 " add-ro Fedora-11-i686-Live.iso\n"
11543 " run\n"
11544 " mkmountpoint /cd\n"
11545 " mkmountpoint /sqsh\n"
11546 " mkmountpoint /ext3fs\n"
11547 " mount /dev/sda /cd\n"
11548 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11549 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11550 "\n"
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11554 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11555 msgstr ""
11556
11557 #. type: textblock
11558 #: ../fish/guestfish-actions.pod:3169
11559 msgid ""
11560 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11561 "unexpected errors if you try to mix these calls.  It is safest to manually "
11562 "unmount filesystems and remove mountpoints after use."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3173
11567 msgid ""
11568 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11569 "for this to work for manual mountpoints, you must ensure that the innermost "
11570 "mountpoints have the longest pathnames, as in the example code above."
11571 msgstr ""
11572
11573 #. type: textblock
11574 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11575 msgid ""
11576 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:3180
11581 msgid ""
11582 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11583 "L</umount-all> to be called when the handle is closed which can also trigger "
11584 "these issues."
11585 msgstr ""
11586
11587 #. type: =head2
11588 #: ../fish/guestfish-actions.pod:3184
11589 msgid "mknod"
11590 msgstr "mknod"
11591
11592 #. type: verbatim
11593 #: ../fish/guestfish-actions.pod:3186
11594 #, no-wrap
11595 msgid ""
11596 " mknod mode devmajor devminor path\n"
11597 "\n"
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11602 msgid ""
11603 "This call creates block or character special devices, or named pipes (FIFOs)."
11604 msgstr ""
11605
11606 #. type: textblock
11607 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11608 msgid ""
11609 "The C<mode> parameter should be the mode, using the standard constants.  "
11610 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11611 "used when creating block and character special devices."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:3196
11616 msgid ""
11617 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11618 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11619 "regular file).  These constants are available in the standard Linux header "
11620 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11621 "wrappers around this command which bitwise OR in the appropriate constant "
11622 "for you."
11623 msgstr ""
11624
11625 #. type: =head2
11626 #: ../fish/guestfish-actions.pod:3206
11627 msgid "mknod-b"
11628 msgstr "mknod-b"
11629
11630 #. type: verbatim
11631 #: ../fish/guestfish-actions.pod:3208
11632 #, no-wrap
11633 msgid ""
11634 " mknod-b mode devmajor devminor path\n"
11635 "\n"
11636 msgstr ""
11637
11638 #. type: textblock
11639 #: ../fish/guestfish-actions.pod:3210
11640 msgid ""
11641 "This call creates a block device node called C<path> with mode C<mode> and "
11642 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11643 "wrapper around L</mknod>."
11644 msgstr ""
11645
11646 #. type: =head2
11647 #: ../fish/guestfish-actions.pod:3216
11648 msgid "mknod-c"
11649 msgstr "mknod-c"
11650
11651 #. type: verbatim
11652 #: ../fish/guestfish-actions.pod:3218
11653 #, no-wrap
11654 msgid ""
11655 " mknod-c mode devmajor devminor path\n"
11656 "\n"
11657 msgstr ""
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:3220
11661 msgid ""
11662 "This call creates a char device node called C<path> with mode C<mode> and "
11663 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11664 "wrapper around L</mknod>."
11665 msgstr ""
11666
11667 #. type: =head2
11668 #: ../fish/guestfish-actions.pod:3226
11669 msgid "mkswap"
11670 msgstr "mkswap"
11671
11672 #. type: verbatim
11673 #: ../fish/guestfish-actions.pod:3228
11674 #, no-wrap
11675 msgid ""
11676 " mkswap device\n"
11677 "\n"
11678 msgstr ""
11679 " mkswap пристрій\n"
11680 "\n"
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11684 msgid "Create a swap partition on C<device>."
11685 msgstr ""
11686
11687 #. type: =head2
11688 #: ../fish/guestfish-actions.pod:3232
11689 msgid "mkswap-L"
11690 msgstr "mkswap-L"
11691
11692 #. type: verbatim
11693 #: ../fish/guestfish-actions.pod:3234
11694 #, no-wrap
11695 msgid ""
11696 " mkswap-L label device\n"
11697 "\n"
11698 msgstr ""
11699 " mkswap-L мітка пристрій\n"
11700 "\n"
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11704 msgid "Create a swap partition on C<device> with label C<label>."
11705 msgstr ""
11706
11707 #. type: textblock
11708 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11709 msgid ""
11710 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11711 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11712 "or swap tools."
11713 msgstr ""
11714
11715 #. type: =head2
11716 #: ../fish/guestfish-actions.pod:3242
11717 msgid "mkswap-U"
11718 msgstr "mkswap-U"
11719
11720 #. type: verbatim
11721 #: ../fish/guestfish-actions.pod:3244
11722 #, no-wrap
11723 msgid ""
11724 " mkswap-U uuid device\n"
11725 "\n"
11726 msgstr ""
11727 " mkswap-U uuid пристрій\n"
11728 "\n"
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11732 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11733 msgstr ""
11734
11735 #. type: =head2
11736 #: ../fish/guestfish-actions.pod:3248
11737 msgid "mkswap-file"
11738 msgstr "mkswap-file"
11739
11740 #. type: verbatim
11741 #: ../fish/guestfish-actions.pod:3250
11742 #, no-wrap
11743 msgid ""
11744 " mkswap-file path\n"
11745 "\n"
11746 msgstr ""
11747 " mkswap-file шлях\n"
11748 "\n"
11749
11750 #. type: textblock
11751 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11752 msgid "Create a swap file."
11753 msgstr "Створити файл резервної пам’яті."
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:3254
11757 msgid ""
11758 "This command just writes a swap file signature to an existing file.  To "
11759 "create the file itself, use something like L</fallocate>."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:3257
11764 msgid "modprobe"
11765 msgstr "modprobe"
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:3259
11769 #, no-wrap
11770 msgid ""
11771 " modprobe modulename\n"
11772 "\n"
11773 msgstr ""
11774 " modprobe назва_модуля\n"
11775 "\n"
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11779 msgid "This loads a kernel module in the appliance."
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11784 msgid ""
11785 "The kernel module must have been whitelisted when libguestfs was built (see "
11786 "C<appliance/kmod.whitelist.in> in the source)."
11787 msgstr ""
11788
11789 #. type: =head2
11790 #: ../fish/guestfish-actions.pod:3266
11791 msgid "mount"
11792 msgstr "mount"
11793
11794 #. type: verbatim
11795 #: ../fish/guestfish-actions.pod:3268
11796 #, no-wrap
11797 msgid ""
11798 " mount device mountpoint\n"
11799 "\n"
11800 msgstr ""
11801 " mount пристрій точка_монтування\n"
11802 "\n"
11803
11804 #. type: textblock
11805 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4923
11806 msgid ""
11807 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11808 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11809 "those block devices contain partitions, they will have the usual names (eg. "
11810 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11815 msgid ""
11816 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11817 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11818 "mounted on directories which already exist."
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4934
11823 msgid ""
11824 "The mounted filesystem is writable, if we have sufficient permissions on the "
11825 "underlying device."
11826 msgstr ""
11827
11828 #. type: textblock
11829 #: ../fish/guestfish-actions.pod:3284
11830 msgid ""
11831 "B<Important note:> When you use this call, the filesystem options C<sync> "
11832 "and C<noatime> are set implicitly.  This was originally done because we "
11833 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11834 "very large negative performance impact and negligible effect on "
11835 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11836 "code that needs performance, and instead use L</mount-options> (use an empty "
11837 "string for the first parameter if you don't want any options)."
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:3294
11842 msgid ""
11843 "This function is deprecated.  In new code, use the L</mount_options> call "
11844 "instead."
11845 msgstr ""
11846
11847 #. type: =head2
11848 #: ../fish/guestfish-actions.pod:3301
11849 msgid "mount-9p"
11850 msgstr ""
11851
11852 #. type: verbatim
11853 #: ../fish/guestfish-actions.pod:3303
11854 #, no-wrap
11855 msgid ""
11856 " mount-9p mounttag mountpoint [options:..]\n"
11857 "\n"
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11862 msgid ""
11863 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11864 "C<mountpoint>."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11869 msgid ""
11870 "If required, C<trans=virtio> will be automatically added to the options.  "
11871 "Any other options required can be passed in the optional C<options> "
11872 "parameter."
11873 msgstr ""
11874
11875 #. type: =head2
11876 #: ../fish/guestfish-actions.pod:3314
11877 msgid "mount-loop"
11878 msgstr "mount-loop"
11879
11880 #. type: verbatim
11881 #: ../fish/guestfish-actions.pod:3316
11882 #, no-wrap
11883 msgid ""
11884 " mount-loop file mountpoint\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11890 msgid ""
11891 "This command lets you mount C<file> (a filesystem image in a file) on a "
11892 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11893 "mountpoint>."
11894 msgstr ""
11895
11896 #. type: =head2
11897 #: ../fish/guestfish-actions.pod:3322
11898 msgid "mount-options"
11899 msgstr "mount-options"
11900
11901 #. type: verbatim
11902 #: ../fish/guestfish-actions.pod:3324
11903 #, no-wrap
11904 msgid ""
11905 " mount-options options device mountpoint\n"
11906 "\n"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:3326
11911 msgid ""
11912 "This is the same as the L</mount> command, but it allows you to set the "
11913 "mount options as for the L<mount(8)> I<-o> flag."
11914 msgstr ""
11915
11916 #. type: textblock
11917 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11918 msgid ""
11919 "If the C<options> parameter is an empty string, then no options are passed "
11920 "(all options default to whatever the filesystem uses)."
11921 msgstr ""
11922
11923 #. type: =head2
11924 #: ../fish/guestfish-actions.pod:3334
11925 msgid "mount-ro"
11926 msgstr "mount-ro"
11927
11928 #. type: verbatim
11929 #: ../fish/guestfish-actions.pod:3336
11930 #, no-wrap
11931 msgid ""
11932 " mount-ro device mountpoint\n"
11933 "\n"
11934 msgstr ""
11935 " mount-ro пристрій точка_монтування\n"
11936 "\n"
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:3338
11940 msgid ""
11941 "This is the same as the L</mount> command, but it mounts the filesystem with "
11942 "the read-only (I<-o ro>) flag."
11943 msgstr ""
11944
11945 #. type: =head2
11946 #: ../fish/guestfish-actions.pod:3341
11947 msgid "mount-vfs"
11948 msgstr "mount-vfs"
11949
11950 #. type: verbatim
11951 #: ../fish/guestfish-actions.pod:3343
11952 #, no-wrap
11953 msgid ""
11954 " mount-vfs options vfstype device mountpoint\n"
11955 "\n"
11956 msgstr ""
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:3345
11960 msgid ""
11961 "This is the same as the L</mount> command, but it allows you to set both the "
11962 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11963 msgstr ""
11964
11965 #. type: =head2
11966 #: ../fish/guestfish-actions.pod:3349
11967 msgid "mountpoints"
11968 msgstr "mountpoints"
11969
11970 #. type: verbatim
11971 #: ../fish/guestfish-actions.pod:3351
11972 #, no-wrap
11973 msgid ""
11974 " mountpoints\n"
11975 "\n"
11976 msgstr ""
11977 " mountpoints\n"
11978 "\n"
11979
11980 #. type: textblock
11981 #: ../fish/guestfish-actions.pod:3353
11982 msgid ""
11983 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11984 "This one returns a hash table (map) of device name to directory where the "
11985 "device is mounted."
11986 msgstr ""
11987
11988 #. type: =head2
11989 #: ../fish/guestfish-actions.pod:3357
11990 msgid "mounts"
11991 msgstr "mounts"
11992
11993 #. type: verbatim
11994 #: ../fish/guestfish-actions.pod:3359
11995 #, no-wrap
11996 msgid ""
11997 " mounts\n"
11998 "\n"
11999 msgstr ""
12000 " mounts\n"
12001 "\n"
12002
12003 #. type: textblock
12004 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12005 msgid ""
12006 "This returns the list of currently mounted filesystems.  It returns the list "
12007 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12012 msgid "Some internal mounts are not shown."
12013 msgstr ""
12014
12015 #. type: textblock
12016 #: ../fish/guestfish-actions.pod:3366
12017 msgid "See also: L</mountpoints>"
12018 msgstr "Див. також L</mountpoints>"
12019
12020 #. type: =head2
12021 #: ../fish/guestfish-actions.pod:3368
12022 msgid "mv"
12023 msgstr "mv"
12024
12025 #. type: verbatim
12026 #: ../fish/guestfish-actions.pod:3370
12027 #, no-wrap
12028 msgid ""
12029 " mv src dest\n"
12030 "\n"
12031 msgstr ""
12032 " mv джерело призначення\n"
12033 "\n"
12034
12035 #. type: textblock
12036 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12037 msgid ""
12038 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12039 "destination filename or destination directory."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../fish/guestfish-actions.pod:3375
12044 msgid "ntfs-3g-probe"
12045 msgstr "ntfs-3g-probe"
12046
12047 #. type: verbatim
12048 #: ../fish/guestfish-actions.pod:3377
12049 #, no-wrap
12050 msgid ""
12051 " ntfs-3g-probe true|false device\n"
12052 "\n"
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12057 msgid ""
12058 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12059 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12060 "write, and some cannot be mounted at all)."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12065 msgid ""
12066 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12067 "can be mounted read-write.  Set it to false if you want to test if the "
12068 "volume can be mounted read-only."
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12073 msgid ""
12074 "The return value is an integer which C<0> if the operation would succeed, or "
12075 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12076 msgstr ""
12077
12078 #. type: =head2
12079 #: ../fish/guestfish-actions.pod:3391
12080 msgid "ntfsresize"
12081 msgstr "ntfsresize"
12082
12083 #. type: verbatim
12084 #: ../fish/guestfish-actions.pod:3393
12085 #, no-wrap
12086 msgid ""
12087 " ntfsresize device\n"
12088 "\n"
12089 msgstr ""
12090 " ntfsresize пристрій\n"
12091 "\n"
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12095 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5191
12096 msgid ""
12097 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12098 "size of the underlying device."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5155
12103 msgid ""
12104 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12105 "consistency check (for safety).  You have to boot into Windows to perform "
12106 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12107 "resize filesystems which have been marked in this way.  So in effect it is "
12108 "not possible to call ntfsresize multiple times on a single filesystem "
12109 "without booting into Windows between each resize."
12110 msgstr ""
12111
12112 #. type: textblock
12113 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12114 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5217
12115 msgid "See also L<ntfsresize(8)>."
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12120 msgid ""
12121 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
12122 "instead."
12123 msgstr ""
12124
12125 #. type: =head2
12126 #: ../fish/guestfish-actions.pod:3415
12127 msgid "ntfsresize-opts"
12128 msgstr ""
12129
12130 #. type: verbatim
12131 #: ../fish/guestfish-actions.pod:3417
12132 #, no-wrap
12133 msgid ""
12134 " ntfsresize-opts device [size:..] [force:..]\n"
12135 "\n"
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12140 msgid ""
12141 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12142 "resized to fit the container (eg. partition)."
12143 msgstr ""
12144
12145 #. type: =item
12146 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12147 msgid "C<force>"
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12152 msgid ""
12153 "If this option is true, then force the resize of the filesystem even if the "
12154 "filesystem is marked as requiring a consistency check."
12155 msgstr ""
12156
12157 #. type: textblock
12158 #: ../fish/guestfish-actions.pod:3436
12159 msgid ""
12160 "After the resize operation, the filesystem is always marked as requiring a "
12161 "consistency check (for safety).  You have to boot into Windows to perform "
12162 "this check and clear this condition.  If you I<don't> set the C<force> "
12163 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12164 "a single filesystem without booting into Windows between each resize."
12165 msgstr ""
12166
12167 #. type: =head2
12168 #: ../fish/guestfish-actions.pod:3449
12169 msgid "ntfsresize-size"
12170 msgstr "ntfsresize-size"
12171
12172 #. type: verbatim
12173 #: ../fish/guestfish-actions.pod:3451
12174 #, no-wrap
12175 msgid ""
12176 " ntfsresize-size device size\n"
12177 "\n"
12178 msgstr ""
12179
12180 #. type: textblock
12181 #: ../fish/guestfish-actions.pod:3453
12182 msgid ""
12183 "This command is the same as L</ntfsresize> except that it allows you to "
12184 "specify the new size (in bytes) explicitly."
12185 msgstr ""
12186
12187 #. type: =head2
12188 #: ../fish/guestfish-actions.pod:3463
12189 msgid "part-add"
12190 msgstr "part-add"
12191
12192 #. type: verbatim
12193 #: ../fish/guestfish-actions.pod:3465
12194 #, no-wrap
12195 msgid ""
12196 " part-add device prlogex startsect endsect\n"
12197 "\n"
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3467
12202 msgid ""
12203 "This command adds a partition to C<device>.  If there is no partition table "
12204 "on the device, call L</part-init> first."
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12209 msgid ""
12210 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12211 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12212 "C<logical>) and C<e> (or C<extended>) partition types."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12217 msgid ""
12218 "C<startsect> and C<endsect> are the start and end of the partition in "
12219 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12220 "from the end of the disk (C<-1> is the last sector)."
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:3479
12225 msgid ""
12226 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12227 "part-disk> to do that."
12228 msgstr ""
12229
12230 #. type: =head2
12231 #: ../fish/guestfish-actions.pod:3482
12232 msgid "part-del"
12233 msgstr "part-del"
12234
12235 #. type: verbatim
12236 #: ../fish/guestfish-actions.pod:3484
12237 #, no-wrap
12238 msgid ""
12239 " part-del device partnum\n"
12240 "\n"
12241 msgstr ""
12242
12243 #. type: textblock
12244 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12245 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12250 msgid ""
12251 "Note that in the case of MBR partitioning, deleting an extended partition "
12252 "also deletes any logical partitions it contains."
12253 msgstr ""
12254
12255 #. type: =head2
12256 #: ../fish/guestfish-actions.pod:3492
12257 msgid "part-disk"
12258 msgstr "part-disk"
12259
12260 #. type: verbatim
12261 #: ../fish/guestfish-actions.pod:3494
12262 #, no-wrap
12263 msgid ""
12264 " part-disk device parttype\n"
12265 "\n"
12266 msgstr ""
12267 " part-disk пристрій тип_розділу\n"
12268 "\n"
12269
12270 #. type: textblock
12271 #: ../fish/guestfish-actions.pod:3496
12272 msgid ""
12273 "This command is simply a combination of L</part-init> followed by L</part-"
12274 "add> to create a single primary partition covering the whole disk."
12275 msgstr ""
12276
12277 #. type: textblock
12278 #: ../fish/guestfish-actions.pod:3500
12279 msgid ""
12280 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12281 "possible values are described in L</part-init>."
12282 msgstr ""
12283
12284 #. type: =head2
12285 #: ../fish/guestfish-actions.pod:3506
12286 msgid "part-get-bootable"
12287 msgstr "part-get-bootable"
12288
12289 #. type: verbatim
12290 #: ../fish/guestfish-actions.pod:3508
12291 #, no-wrap
12292 msgid ""
12293 " part-get-bootable device partnum\n"
12294 "\n"
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12299 msgid ""
12300 "This command returns true if the partition C<partnum> on C<device> has the "
12301 "bootable flag set."
12302 msgstr ""
12303
12304 #. type: textblock
12305 #: ../fish/guestfish-actions.pod:3513
12306 msgid "See also L</part-set-bootable>."
12307 msgstr "Див. також L</part-set-bootable>."
12308
12309 #. type: =head2
12310 #: ../fish/guestfish-actions.pod:3515
12311 msgid "part-get-mbr-id"
12312 msgstr "part-get-mbr-id"
12313
12314 #. type: verbatim
12315 #: ../fish/guestfish-actions.pod:3517
12316 #, no-wrap
12317 msgid ""
12318 " part-get-mbr-id device partnum\n"
12319 "\n"
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12324 msgid ""
12325 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12326 "partition C<partnum>."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12331 msgid ""
12332 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12333 "undefined results for other partition table types (see L</part-get-"
12334 "parttype>)."
12335 msgstr ""
12336
12337 #. type: =head2
12338 #: ../fish/guestfish-actions.pod:3526
12339 msgid "part-get-parttype"
12340 msgstr "part-get-parttype"
12341
12342 #. type: verbatim
12343 #: ../fish/guestfish-actions.pod:3528
12344 #, no-wrap
12345 msgid ""
12346 " part-get-parttype device\n"
12347 "\n"
12348 msgstr ""
12349 " part-get-parttype пристрій\n"
12350 "\n"
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12354 msgid ""
12355 "This command examines the partition table on C<device> and returns the "
12356 "partition table type (format) being used."
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:3533
12361 msgid ""
12362 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12363 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12364 "possible, although unusual.  See L</part-init> for a full list."
12365 msgstr ""
12366
12367 #. type: =head2
12368 #: ../fish/guestfish-actions.pod:3538
12369 msgid "part-init"
12370 msgstr "part-init"
12371
12372 #. type: verbatim
12373 #: ../fish/guestfish-actions.pod:3540
12374 #, no-wrap
12375 msgid ""
12376 " part-init device parttype\n"
12377 "\n"
12378 msgstr ""
12379
12380 #. type: textblock
12381 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12382 msgid ""
12383 "This creates an empty partition table on C<device> of one of the partition "
12384 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12385 "(for large disks)."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:3546
12390 msgid ""
12391 "Initially there are no partitions.  Following this, you should call L</part-"
12392 "add> for each partition required."
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12397 msgid "Possible values for C<parttype> are:"
12398 msgstr ""
12399
12400 #. type: =item
12401 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12402 msgid "B<efi>"
12403 msgstr ""
12404
12405 #. type: =item
12406 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12407 msgid "B<gpt>"
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12412 msgid "Intel EFI / GPT partition table."
12413 msgstr ""
12414
12415 #. type: textblock
12416 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12417 msgid ""
12418 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12419 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12420 "the C<mbr> format."
12421 msgstr ""
12422
12423 #. type: =item
12424 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12425 msgid "B<mbr>"
12426 msgstr ""
12427
12428 #. type: =item
12429 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12430 msgid "B<msdos>"
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12435 msgid ""
12436 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12437 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12438 "TB.  For large disks we recommend using C<gpt>."
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12443 msgid ""
12444 "Other partition table types that may work but are not supported include:"
12445 msgstr ""
12446
12447 #. type: =item
12448 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12449 msgid "B<aix>"
12450 msgstr "B<aix>"
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12454 msgid "AIX disk labels."
12455 msgstr "Мітки дисків AIX."
12456
12457 #. type: =item
12458 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12459 #, fuzzy
12460 #| msgid "B<amiga> | B<rdb>"
12461 msgid "B<amiga>"
12462 msgstr "B<amiga> | B<rdb>"
12463
12464 #. type: =item
12465 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12466 msgid "B<rdb>"
12467 msgstr ""
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12471 msgid "Amiga \"Rigid Disk Block\" format."
12472 msgstr "Формат \"Rigid Disk Block\" Amiga."
12473
12474 #. type: =item
12475 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12476 msgid "B<bsd>"
12477 msgstr "B<bsd>"
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12481 msgid "BSD disk labels."
12482 msgstr "Мітки дисків BSD."
12483
12484 #. type: =item
12485 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12486 msgid "B<dasd>"
12487 msgstr "B<dasd>"
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12491 msgid "DASD, used on IBM mainframes."
12492 msgstr "DASD, використовувалися у мейнфреймах IBM."
12493
12494 #. type: =item
12495 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12496 msgid "B<dvh>"
12497 msgstr "B<dvh>"
12498
12499 #. type: textblock
12500 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12501 msgid "MIPS/SGI volumes."
12502 msgstr "Томи MIPS/SGI."
12503
12504 #. type: =item
12505 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12506 msgid "B<mac>"
12507 msgstr "B<mac>"
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12511 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12512 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12513
12514 #. type: =item
12515 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12516 msgid "B<pc98>"
12517 msgstr "B<pc98>"
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12521 msgid "NEC PC-98 format, common in Japan apparently."
12522 msgstr "Формат NEC PC-98, поширений у Японії."
12523
12524 #. type: =item
12525 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12526 msgid "B<sun>"
12527 msgstr "B<sun>"
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12531 msgid "Sun disk labels."
12532 msgstr "Мітки дисків Sun."
12533
12534 #. type: =head2
12535 #: ../fish/guestfish-actions.pod:3615
12536 msgid "part-list"
12537 msgstr "part-list"
12538
12539 #. type: verbatim
12540 #: ../fish/guestfish-actions.pod:3617
12541 #, no-wrap
12542 msgid ""
12543 " part-list device\n"
12544 "\n"
12545 msgstr ""
12546 " part-list device\n"
12547 "\n"
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12551 msgid ""
12552 "This command parses the partition table on C<device> and returns the list of "
12553 "partitions found."
12554 msgstr ""
12555
12556 #. type: textblock
12557 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12558 msgid "The fields in the returned structure are:"
12559 msgstr ""
12560
12561 #. type: =item
12562 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12563 msgid "B<part_num>"
12564 msgstr "B<part_num>"
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12568 msgid "Partition number, counting from 1."
12569 msgstr ""
12570
12571 #. type: =item
12572 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12573 msgid "B<part_start>"
12574 msgstr "B<part_start>"
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:3632
12578 msgid ""
12579 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12580 "the device's sector size, see L</blockdev-getss>."
12581 msgstr ""
12582
12583 #. type: =item
12584 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12585 msgid "B<part_end>"
12586 msgstr "B<part_end>"
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12590 msgid "End of the partition in bytes."
12591 msgstr ""
12592
12593 #. type: =item
12594 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12595 msgid "B<part_size>"
12596 msgstr "B<part_size>"
12597
12598 #. type: textblock
12599 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12600 msgid "Size of the partition in bytes."
12601 msgstr ""
12602
12603 #. type: =head2
12604 #: ../fish/guestfish-actions.pod:3645
12605 msgid "part-set-bootable"
12606 msgstr "part-set-bootable"
12607
12608 #. type: verbatim
12609 #: ../fish/guestfish-actions.pod:3647
12610 #, no-wrap
12611 msgid ""
12612 " part-set-bootable device partnum true|false\n"
12613 "\n"
12614 msgstr ""
12615
12616 #. type: textblock
12617 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12618 msgid ""
12619 "This sets the bootable flag on partition numbered C<partnum> on device "
12620 "C<device>.  Note that partitions are numbered from 1."
12621 msgstr ""
12622
12623 #. type: textblock
12624 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12625 msgid ""
12626 "The bootable flag is used by some operating systems (notably Windows) to "
12627 "determine which partition to boot from.  It is by no means universally "
12628 "recognized."
12629 msgstr ""
12630
12631 #. type: =head2
12632 #: ../fish/guestfish-actions.pod:3656
12633 msgid "part-set-mbr-id"
12634 msgstr "part-set-mbr-id"
12635
12636 #. type: verbatim
12637 #: ../fish/guestfish-actions.pod:3658
12638 #, no-wrap
12639 msgid ""
12640 " part-set-mbr-id device partnum idbyte\n"
12641 "\n"
12642 msgstr ""
12643
12644 #. type: textblock
12645 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12646 msgid ""
12647 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12648 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12649 "documentation are in fact hexadecimal numbers, but usually documented "
12650 "without any leading \"0x\" which might be confusing."
12651 msgstr ""
12652
12653 #. type: =head2
12654 #: ../fish/guestfish-actions.pod:3670
12655 msgid "part-set-name"
12656 msgstr "part-set-name"
12657
12658 #. type: verbatim
12659 #: ../fish/guestfish-actions.pod:3672
12660 #, no-wrap
12661 msgid ""
12662 " part-set-name device partnum name\n"
12663 "\n"
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12668 msgid ""
12669 "This sets the partition name on partition numbered C<partnum> on device "
12670 "C<device>.  Note that partitions are numbered from 1."
12671 msgstr ""
12672
12673 #. type: textblock
12674 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12675 msgid ""
12676 "The partition name can only be set on certain types of partition table.  "
12677 "This works on C<gpt> but not on C<mbr> partitions."
12678 msgstr ""
12679
12680 #. type: =head2
12681 #: ../fish/guestfish-actions.pod:3680
12682 msgid "part-to-dev"
12683 msgstr "part-to-dev"
12684
12685 #. type: verbatim
12686 #: ../fish/guestfish-actions.pod:3682
12687 #, no-wrap
12688 msgid ""
12689 " part-to-dev partition\n"
12690 "\n"
12691 msgstr ""
12692 " part-to-dev розділ\n"
12693 "\n"
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12697 msgid ""
12698 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12699 "partition number, returning the device name (eg. \"/dev/sdb\")."
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3688
12704 msgid ""
12705 "The named partition must exist, for example as a string returned from L</"
12706 "list-partitions>."
12707 msgstr ""
12708
12709 #. type: =head2
12710 #: ../fish/guestfish-actions.pod:3691
12711 msgid "ping-daemon"
12712 msgstr "ping-daemon"
12713
12714 #. type: verbatim
12715 #: ../fish/guestfish-actions.pod:3693
12716 #, no-wrap
12717 msgid ""
12718 " ping-daemon\n"
12719 "\n"
12720 msgstr ""
12721 " ping-daemon\n"
12722 "\n"
12723
12724 #. type: textblock
12725 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12726 msgid ""
12727 "This is a test probe into the guestfs daemon running inside the qemu "
12728 "subprocess.  Calling this function checks that the daemon responds to the "
12729 "ping message, without affecting the daemon or attached block device(s) in "
12730 "any other way."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3700
12735 msgid "pread"
12736 msgstr "pread"
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3702
12740 #, no-wrap
12741 msgid ""
12742 " pread path count offset\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12748 msgid ""
12749 "This command lets you read part of a file.  It reads C<count> bytes of the "
12750 "file, starting at C<offset>, from file C<path>."
12751 msgstr ""
12752
12753 #. type: textblock
12754 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12755 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12756 msgid ""
12757 "This may read fewer bytes than requested.  For further details see the "
12758 "L<pread(2)> system call."
12759 msgstr ""
12760
12761 #. type: textblock
12762 #: ../fish/guestfish-actions.pod:3710
12763 msgid "See also L</pwrite>, L</pread-device>."
12764 msgstr "Див. також L</pwrite>, L</pread-device>."
12765
12766 #. type: =head2
12767 #: ../fish/guestfish-actions.pod:3715
12768 msgid "pread-device"
12769 msgstr "pread-device"
12770
12771 #. type: verbatim
12772 #: ../fish/guestfish-actions.pod:3717
12773 #, no-wrap
12774 msgid ""
12775 " pread-device device count offset\n"
12776 "\n"
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12781 msgid ""
12782 "This command lets you read part of a file.  It reads C<count> bytes of "
12783 "C<device>, starting at C<offset>."
12784 msgstr ""
12785
12786 #. type: textblock
12787 #: ../fish/guestfish-actions.pod:3725
12788 msgid "See also L</pread>."
12789 msgstr "Див. також L</pread>."
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:3730
12793 msgid "pvcreate"
12794 msgstr "pvcreate"
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:3732
12798 #, no-wrap
12799 msgid ""
12800 " pvcreate device\n"
12801 "\n"
12802 msgstr ""
12803 " pvcreate пристрій\n"
12804 "\n"
12805
12806 #. type: textblock
12807 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12808 msgid ""
12809 "This creates an LVM physical volume on the named C<device>, where C<device> "
12810 "should usually be a partition name such as C</dev/sda1>."
12811 msgstr ""
12812
12813 #. type: =head2
12814 #: ../fish/guestfish-actions.pod:3738
12815 msgid "pvremove"
12816 msgstr "pvremove"
12817
12818 #. type: verbatim
12819 #: ../fish/guestfish-actions.pod:3740
12820 #, no-wrap
12821 msgid ""
12822 " pvremove device\n"
12823 "\n"
12824 msgstr ""
12825 " pvremove пристрій\n"
12826 "\n"
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12830 msgid ""
12831 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12832 "it."
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12837 msgid ""
12838 "The implementation uses the C<pvremove> command which refuses to wipe "
12839 "physical volumes that contain any volume groups, so you have to remove those "
12840 "first."
12841 msgstr ""
12842
12843 #. type: =head2
12844 #: ../fish/guestfish-actions.pod:3749
12845 msgid "pvresize"
12846 msgstr "pvresize"
12847
12848 #. type: verbatim
12849 #: ../fish/guestfish-actions.pod:3751
12850 #, no-wrap
12851 msgid ""
12852 " pvresize device\n"
12853 "\n"
12854 msgstr ""
12855 " pvresize пристрій\n"
12856 "\n"
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12860 msgid ""
12861 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12862 "the new size of the underlying device."
12863 msgstr ""
12864
12865 #. type: =head2
12866 #: ../fish/guestfish-actions.pod:3756
12867 msgid "pvresize-size"
12868 msgstr "pvresize-size"
12869
12870 #. type: verbatim
12871 #: ../fish/guestfish-actions.pod:3758
12872 #, no-wrap
12873 msgid ""
12874 " pvresize-size device size\n"
12875 "\n"
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:3760
12880 msgid ""
12881 "This command is the same as L</pvresize> except that it allows you to "
12882 "specify the new size (in bytes) explicitly."
12883 msgstr ""
12884
12885 #. type: =head2
12886 #: ../fish/guestfish-actions.pod:3763
12887 msgid "pvs"
12888 msgstr "pvs"
12889
12890 #. type: verbatim
12891 #: ../fish/guestfish-actions.pod:3765
12892 #, no-wrap
12893 msgid ""
12894 " pvs\n"
12895 "\n"
12896 msgstr ""
12897 " pvs\n"
12898 "\n"
12899
12900 #. type: textblock
12901 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12902 msgid ""
12903 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12904 "(8)> command."
12905 msgstr ""
12906
12907 #. type: textblock
12908 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12909 msgid ""
12910 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12911 "sda2>)."
12912 msgstr ""
12913
12914 #. type: textblock
12915 #: ../fish/guestfish-actions.pod:3773
12916 msgid "See also L</pvs-full>."
12917 msgstr "Див. також L</pvs-full>."
12918
12919 #. type: =head2
12920 #: ../fish/guestfish-actions.pod:3775
12921 msgid "pvs-full"
12922 msgstr "pvs-full"
12923
12924 #. type: verbatim
12925 #: ../fish/guestfish-actions.pod:3777
12926 #, no-wrap
12927 msgid ""
12928 " pvs-full\n"
12929 "\n"
12930 msgstr ""
12931 " pvs-full\n"
12932 "\n"
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12936 msgid ""
12937 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12938 "(8)> command.  The \"full\" version includes all fields."
12939 msgstr ""
12940
12941 #. type: =head2
12942 #: ../fish/guestfish-actions.pod:3782
12943 msgid "pvuuid"
12944 msgstr "pvuuid"
12945
12946 #. type: verbatim
12947 #: ../fish/guestfish-actions.pod:3784
12948 #, no-wrap
12949 msgid ""
12950 " pvuuid device\n"
12951 "\n"
12952 msgstr ""
12953 " pvuuid пристрій\n"
12954 "\n"
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12958 msgid "This command returns the UUID of the LVM PV C<device>."
12959 msgstr ""
12960
12961 #. type: =head2
12962 #: ../fish/guestfish-actions.pod:3788
12963 msgid "pwrite"
12964 msgstr "pwrite"
12965
12966 #. type: verbatim
12967 #: ../fish/guestfish-actions.pod:3790
12968 #, no-wrap
12969 msgid ""
12970 " pwrite path content offset\n"
12971 "\n"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12976 msgid ""
12977 "This command writes to part of a file.  It writes the data buffer C<content> "
12978 "to the file C<path> starting at offset C<offset>."
12979 msgstr ""
12980
12981 #. type: textblock
12982 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12983 msgid ""
12984 "This command implements the L<pwrite(2)> system call, and like that system "
12985 "call it may not write the full data requested.  The return value is the "
12986 "number of bytes that were actually written to the file.  This could even be "
12987 "0, although short writes are unlikely for regular files in ordinary "
12988 "circumstances."
12989 msgstr ""
12990
12991 #. type: textblock
12992 #: ../fish/guestfish-actions.pod:3801
12993 msgid "See also L</pread>, L</pwrite-device>."
12994 msgstr "Див. також L</pread>, L</pwrite-device>."
12995
12996 #. type: =head2
12997 #: ../fish/guestfish-actions.pod:3806
12998 msgid "pwrite-device"
12999 msgstr "pwrite-device"
13000
13001 #. type: verbatim
13002 #: ../fish/guestfish-actions.pod:3808
13003 #, no-wrap
13004 msgid ""
13005 " pwrite-device device content offset\n"
13006 "\n"
13007 msgstr ""
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13011 msgid ""
13012 "This command writes to part of a device.  It writes the data buffer "
13013 "C<content> to C<device> starting at offset C<offset>."
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13018 msgid ""
13019 "This command implements the L<pwrite(2)> system call, and like that system "
13020 "call it may not write the full data requested (although short writes to disk "
13021 "devices and partitions are probably impossible with standard Linux kernels)."
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:3818
13026 msgid "See also L</pwrite>."
13027 msgstr "Див. також L</pwrite>."
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:3823
13031 msgid "read-file"
13032 msgstr "read-file"
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:3825
13036 #, no-wrap
13037 msgid ""
13038 " read-file path\n"
13039 "\n"
13040 msgstr ""
13041 " read-file шлях\n"
13042 "\n"
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13046 msgid "This calls returns the contents of the file C<path> as a buffer."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:3830
13051 msgid ""
13052 "Unlike L</cat>, this function can correctly handle files that contain "
13053 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13054 "is limited in the total size of file that can be handled."
13055 msgstr ""
13056
13057 #. type: =head2
13058 #: ../fish/guestfish-actions.pod:3838
13059 msgid "read-lines"
13060 msgstr "read-lines"
13061
13062 #. type: verbatim
13063 #: ../fish/guestfish-actions.pod:3840
13064 #, no-wrap
13065 msgid ""
13066 " read-lines path\n"
13067 "\n"
13068 msgstr ""
13069 " read-lines шлях\n"
13070 "\n"
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13074 msgid ""
13075 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13076 "C<CRLF> character sequences are I<not> returned."
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3847
13081 msgid ""
13082 "Note that this function cannot correctly handle binary files (specifically, "
13083 "files containing C<\\0> character which is treated as end of line).  For "
13084 "those you need to use the L</read-file> function which has a more complex "
13085 "interface."
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:3852
13090 msgid "readdir"
13091 msgstr "readdir"
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:3854
13095 #, no-wrap
13096 msgid ""
13097 " readdir dir\n"
13098 "\n"
13099 msgstr ""
13100 " readdir каталог\n"
13101 "\n"
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13105 msgid "This returns the list of directory entries in directory C<dir>."
13106 msgstr ""
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13110 msgid ""
13111 "All entries in the directory are returned, including C<.> and C<..>.  The "
13112 "entries are I<not> sorted, but returned in the same order as the underlying "
13113 "filesystem."
13114 msgstr ""
13115
13116 #. type: textblock
13117 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13118 msgid ""
13119 "Also this call returns basic file type information about each file.  The "
13120 "C<ftyp> field will contain one of the following characters:"
13121 msgstr ""
13122
13123 #. type: =item
13124 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13125 msgid "'b'"
13126 msgstr "'b'"
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13130 msgid "Block special"
13131 msgstr "Блоковий особливий"
13132
13133 #. type: =item
13134 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13135 msgid "'c'"
13136 msgstr "'c'"
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13140 msgid "Char special"
13141 msgstr "Символьний особливий"
13142
13143 #. type: =item
13144 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13145 msgid "'d'"
13146 msgstr "'d'"
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13150 msgid "Directory"
13151 msgstr "Каталог"
13152
13153 #. type: =item
13154 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13155 msgid "'f'"
13156 msgstr "'f'"
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13160 msgid "FIFO (named pipe)"
13161 msgstr "FIFO (іменований канал)"
13162
13163 #. type: =item
13164 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13165 msgid "'l'"
13166 msgstr "'l'"
13167
13168 #. type: textblock
13169 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13170 msgid "Symbolic link"
13171 msgstr "Символічне посилання"
13172
13173 #. type: =item
13174 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13175 msgid "'r'"
13176 msgstr "'r'"
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13180 msgid "Regular file"
13181 msgstr "Звичайний файл"
13182
13183 #. type: =item
13184 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13185 msgid "'s'"
13186 msgstr "'s'"
13187
13188 #. type: textblock
13189 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13190 msgid "Socket"
13191 msgstr "Сокет"
13192
13193 #. type: =item
13194 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13195 msgid "'u'"
13196 msgstr "'u'"
13197
13198 #. type: textblock
13199 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13200 msgid "Unknown file type"
13201 msgstr "Невідомий тип файла"
13202
13203 #. type: =item
13204 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13205 msgid "'?'"
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13210 msgid ""
13211 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../fish/guestfish-actions.pod:3906
13216 msgid ""
13217 "This function is primarily intended for use by programs.  To get a simple "
13218 "list of names, use L</ls>.  To get a printable directory for human "
13219 "consumption, use L</ll>."
13220 msgstr ""
13221
13222 #. type: =head2
13223 #: ../fish/guestfish-actions.pod:3910
13224 msgid "readlink"
13225 msgstr "readlink"
13226
13227 #. type: verbatim
13228 #: ../fish/guestfish-actions.pod:3912
13229 #, no-wrap
13230 msgid ""
13231 " readlink path\n"
13232 "\n"
13233 msgstr ""
13234 " readlink шлях\n"
13235 "\n"
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13239 msgid "This command reads the target of a symbolic link."
13240 msgstr ""
13241
13242 #. type: =head2
13243 #: ../fish/guestfish-actions.pod:3916
13244 msgid "readlinklist"
13245 msgstr "readlinklist"
13246
13247 #. type: verbatim
13248 #: ../fish/guestfish-actions.pod:3918
13249 #, no-wrap
13250 msgid ""
13251 " readlinklist path 'names ...'\n"
13252 "\n"
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13257 msgid ""
13258 "This call allows you to do a C<readlink> operation on multiple files, where "
13259 "all files are in the directory C<path>.  C<names> is the list of files from "
13260 "this directory."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13265 msgid ""
13266 "On return you get a list of strings, with a one-to-one correspondence to the "
13267 "C<names> list.  Each string is the value of the symbolic link."
13268 msgstr ""
13269
13270 #. type: textblock
13271 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13272 msgid ""
13273 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13274 "result string is the empty string C<\"\">.  However the whole operation is "
13275 "completed even if there were C<readlink(2)> errors, and so you can call this "
13276 "function with names where you don't know if they are symbolic links already "
13277 "(albeit slightly less efficient)."
13278 msgstr ""
13279
13280 #. type: textblock
13281 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13282 msgid ""
13283 "This call is intended for programs that want to efficiently list a directory "
13284 "contents without making many round-trips.  Very long directory listings "
13285 "might cause the protocol message size to be exceeded, causing this call to "
13286 "fail.  The caller must split up such requests into smaller groups of names."
13287 msgstr ""
13288
13289 #. type: =head2
13290 #: ../fish/guestfish-actions.pod:3942
13291 msgid "realpath"
13292 msgstr "realpath"
13293
13294 #. type: verbatim
13295 #: ../fish/guestfish-actions.pod:3944
13296 #, no-wrap
13297 msgid ""
13298 " realpath path\n"
13299 "\n"
13300 msgstr ""
13301 " realpath шлях\n"
13302 "\n"
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13306 msgid ""
13307 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13308 "has no C<.>, C<..> or symbolic link path elements."
13309 msgstr ""
13310
13311 #. type: =head2
13312 #: ../fish/guestfish-actions.pod:3949
13313 msgid "removexattr"
13314 msgstr "removexattr"
13315
13316 #. type: verbatim
13317 #: ../fish/guestfish-actions.pod:3951
13318 #, no-wrap
13319 msgid ""
13320 " removexattr xattr path\n"
13321 "\n"
13322 msgstr ""
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13326 msgid ""
13327 "This call removes the extended attribute named C<xattr> of the file C<path>."
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:3956
13332 msgid "See also: L</lremovexattr>, L<attr(5)>."
13333 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13334
13335 #. type: =head2
13336 #: ../fish/guestfish-actions.pod:3958
13337 msgid "resize2fs"
13338 msgstr "resize2fs"
13339
13340 #. type: verbatim
13341 #: ../fish/guestfish-actions.pod:3960
13342 #, no-wrap
13343 msgid ""
13344 " resize2fs device\n"
13345 "\n"
13346 msgstr ""
13347 " resize2fs пристрій\n"
13348 "\n"
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13352 msgid ""
13353 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13354 "underlying device."
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3965
13359 msgid ""
13360 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13361 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13362 "gives an error about this and sometimes not.  In any case, it is always safe "
13363 "to call L</e2fsck-f> before calling this function."
13364 msgstr ""
13365
13366 #. type: =head2
13367 #: ../fish/guestfish-actions.pod:3971
13368 msgid "resize2fs-M"
13369 msgstr "resize2fs-M"
13370
13371 #. type: verbatim
13372 #: ../fish/guestfish-actions.pod:3973
13373 #, no-wrap
13374 msgid ""
13375 " resize2fs-M device\n"
13376 "\n"
13377 msgstr ""
13378 " resize2fs-M пристрій\n"
13379 "\n"
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:3975
13383 msgid ""
13384 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13385 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13386 "command."
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:3979
13391 msgid ""
13392 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13393 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13394 "multiplied together, give the resulting size of the minimal filesystem in "
13395 "bytes."
13396 msgstr ""
13397
13398 #. type: =head2
13399 #: ../fish/guestfish-actions.pod:3984
13400 msgid "resize2fs-size"
13401 msgstr "resize2fs-size"
13402
13403 #. type: verbatim
13404 #: ../fish/guestfish-actions.pod:3986
13405 #, no-wrap
13406 msgid ""
13407 " resize2fs-size device size\n"
13408 "\n"
13409 msgstr ""
13410
13411 #. type: textblock
13412 #: ../fish/guestfish-actions.pod:3988
13413 msgid ""
13414 "This command is the same as L</resize2fs> except that it allows you to "
13415 "specify the new size (in bytes) explicitly."
13416 msgstr ""
13417
13418 #. type: =head2
13419 #: ../fish/guestfish-actions.pod:3991
13420 msgid "rm"
13421 msgstr "rm"
13422
13423 #. type: verbatim
13424 #: ../fish/guestfish-actions.pod:3993
13425 #, no-wrap
13426 msgid ""
13427 " rm path\n"
13428 "\n"
13429 msgstr ""
13430 " rm шлях\n"
13431 "\n"
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13435 msgid "Remove the single file C<path>."
13436 msgstr ""
13437
13438 #. type: =head2
13439 #: ../fish/guestfish-actions.pod:3997
13440 msgid "rm-rf"
13441 msgstr "rm-rf"
13442
13443 #. type: verbatim
13444 #: ../fish/guestfish-actions.pod:3999
13445 #, no-wrap
13446 msgid ""
13447 " rm-rf path\n"
13448 "\n"
13449 msgstr ""
13450 " rm-rf шлях\n"
13451 "\n"
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13455 msgid ""
13456 "Remove the file or directory C<path>, recursively removing the contents if "
13457 "its a directory.  This is like the C<rm -rf> shell command."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:4005
13462 msgid "rmdir"
13463 msgstr "rmdir"
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:4007
13467 #, no-wrap
13468 msgid ""
13469 " rmdir path\n"
13470 "\n"
13471 msgstr ""
13472 " rmdir шлях\n"
13473 "\n"
13474
13475 #. type: textblock
13476 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13477 msgid "Remove the single directory C<path>."
13478 msgstr ""
13479
13480 #. type: =head2
13481 #: ../fish/guestfish-actions.pod:4011
13482 msgid "rmmountpoint"
13483 msgstr "rmmountpoint"
13484
13485 #. type: verbatim
13486 #: ../fish/guestfish-actions.pod:4013
13487 #, no-wrap
13488 msgid ""
13489 " rmmountpoint exemptpath\n"
13490 "\n"
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:4015
13495 msgid ""
13496 "This calls removes a mountpoint that was previously created with L</"
13497 "mkmountpoint>.  See L</mkmountpoint> for full details."
13498 msgstr ""
13499
13500 #. type: =head2
13501 #: ../fish/guestfish-actions.pod:4019
13502 msgid "scrub-device"
13503 msgstr "scrub-device"
13504
13505 #. type: verbatim
13506 #: ../fish/guestfish-actions.pod:4021
13507 #, no-wrap
13508 msgid ""
13509 " scrub-device device\n"
13510 "\n"
13511 msgstr ""
13512 " scrub-device пристрій\n"
13513 "\n"
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13517 msgid ""
13518 "This command writes patterns over C<device> to make data retrieval more "
13519 "difficult."
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13524 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13525 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13526 msgid ""
13527 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13528 "more details."
13529 msgstr ""
13530
13531 #. type: =head2
13532 #: ../fish/guestfish-actions.pod:4032
13533 msgid "scrub-file"
13534 msgstr "scrub-file"
13535
13536 #. type: verbatim
13537 #: ../fish/guestfish-actions.pod:4034
13538 #, no-wrap
13539 msgid ""
13540 " scrub-file file\n"
13541 "\n"
13542 msgstr ""
13543 " scrub-file файл\n"
13544 "\n"
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13548 msgid ""
13549 "This command writes patterns over a file to make data retrieval more "
13550 "difficult."
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13555 msgid "The file is I<removed> after scrubbing."
13556 msgstr ""
13557
13558 #. type: =head2
13559 #: ../fish/guestfish-actions.pod:4044
13560 msgid "scrub-freespace"
13561 msgstr "scrub-freespace"
13562
13563 #. type: verbatim
13564 #: ../fish/guestfish-actions.pod:4046
13565 #, no-wrap
13566 msgid ""
13567 " scrub-freespace dir\n"
13568 "\n"
13569 msgstr ""
13570 " scrub-freespace каталог\n"
13571 "\n"
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:4048
13575 msgid ""
13576 "This command creates the directory C<dir> and then fills it with files until "
13577 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13578 "deletes them.  The intention is to scrub any free space on the partition "
13579 "containing C<dir>."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:4057
13584 msgid "set-append"
13585 msgstr "set-append"
13586
13587 #. type: =head2
13588 #: ../fish/guestfish-actions.pod:4059
13589 msgid "append"
13590 msgstr ""
13591
13592 #. type: verbatim
13593 #: ../fish/guestfish-actions.pod:4061
13594 #, no-wrap
13595 msgid ""
13596 " set-append append\n"
13597 "\n"
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13602 msgid ""
13603 "This function is used to add additional options to the guest kernel command "
13604 "line."
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13609 msgid ""
13610 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13611 "environment variable."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13616 msgid ""
13617 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13618 "(libguestfs always adds a few of its own)."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:4072
13623 msgid "set-attach-method"
13624 msgstr "set-attach-method"
13625
13626 #. type: =head2
13627 #: ../fish/guestfish-actions.pod:4074
13628 msgid "attach-method"
13629 msgstr ""
13630
13631 #. type: verbatim
13632 #: ../fish/guestfish-actions.pod:4076
13633 #, no-wrap
13634 msgid ""
13635 " set-attach-method attachmethod\n"
13636 "\n"
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13641 msgid ""
13642 "Set the method that libguestfs uses to connect to the back end guestfsd "
13643 "daemon.  Possible methods are:"
13644 msgstr ""
13645
13646 #. type: =item
13647 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13648 #: ../src/guestfs.pod:2687
13649 msgid "C<appliance>"
13650 msgstr "C<appliance>"
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13654 msgid ""
13655 "Launch an appliance and connect to it.  This is the ordinary method and the "
13656 "default."
13657 msgstr ""
13658
13659 #. type: =item
13660 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13661 msgid "C<unix:I<path>>"
13662 msgstr "C<unix:I<шлях>>"
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13666 msgid "Connect to the Unix domain socket I<path>."
13667 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13671 msgid ""
13672 "This method lets you connect to an existing daemon or (using virtio-serial) "
13673 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13674 "RUNNING DAEMONS>."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:4098
13679 msgid "set-autosync"
13680 msgstr "set-autosync"
13681
13682 #. type: =head2
13683 #: ../fish/guestfish-actions.pod:4100
13684 msgid "autosync"
13685 msgstr "autosync"
13686
13687 #. type: verbatim
13688 #: ../fish/guestfish-actions.pod:4102
13689 #, no-wrap
13690 msgid ""
13691 " set-autosync true|false\n"
13692 "\n"
13693 msgstr ""
13694 " set-autosync true|false\n"
13695 "\n"
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13699 msgid ""
13700 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13701 "effort attempt to make filesystems consistent and synchronized when the "
13702 "handle is closed (also if the program exits without closing handles)."
13703 msgstr ""
13704
13705 #. type: textblock
13706 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13707 msgid ""
13708 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13709 "disabled by default)."
13710 msgstr ""
13711
13712 #. type: =head2
13713 #: ../fish/guestfish-actions.pod:4112
13714 msgid "set-direct"
13715 msgstr "set-direct"
13716
13717 #. type: =head2
13718 #: ../fish/guestfish-actions.pod:4114
13719 msgid "direct"
13720 msgstr "direct"
13721
13722 #. type: verbatim
13723 #: ../fish/guestfish-actions.pod:4116
13724 #, no-wrap
13725 msgid ""
13726 " set-direct true|false\n"
13727 "\n"
13728 msgstr ""
13729 " set-direct true|false\n"
13730 "\n"
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13734 msgid ""
13735 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13736 "passed directly through to the appliance once it is launched."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:4122
13741 msgid ""
13742 "One consequence of this is that log messages aren't caught by the library "
13743 "and handled by L</set-log-message-callback>, but go straight to stdout."
13744 msgstr ""
13745
13746 #. type: textblock
13747 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13748 msgid "You probably don't want to use this unless you know what you are doing."
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13753 msgid "The default is disabled."
13754 msgstr ""
13755
13756 #. type: =head2
13757 #: ../fish/guestfish-actions.pod:4131
13758 msgid "set-e2label"
13759 msgstr "set-e2label"
13760
13761 #. type: verbatim
13762 #: ../fish/guestfish-actions.pod:4133
13763 #, no-wrap
13764 msgid ""
13765 " set-e2label device label\n"
13766 "\n"
13767 msgstr ""
13768
13769 #. type: textblock
13770 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13771 msgid ""
13772 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13773 "C<label>.  Filesystem labels are limited to 16 characters."
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:4139
13778 msgid ""
13779 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13780 "label on a filesystem."
13781 msgstr ""
13782
13783 #. type: =head2
13784 #: ../fish/guestfish-actions.pod:4142
13785 msgid "set-e2uuid"
13786 msgstr "set-e2uuid"
13787
13788 #. type: verbatim
13789 #: ../fish/guestfish-actions.pod:4144
13790 #, no-wrap
13791 msgid ""
13792 " set-e2uuid device uuid\n"
13793 "\n"
13794 msgstr ""
13795
13796 #. type: textblock
13797 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13798 msgid ""
13799 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13800 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13801 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:4151
13806 msgid ""
13807 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13808 "UUID of a filesystem."
13809 msgstr ""
13810
13811 #. type: =head2
13812 #: ../fish/guestfish-actions.pod:4154
13813 msgid "set-memsize"
13814 msgstr "set-memsize"
13815
13816 #. type: =head2
13817 #: ../fish/guestfish-actions.pod:4156
13818 msgid "memsize"
13819 msgstr ""
13820
13821 #. type: verbatim
13822 #: ../fish/guestfish-actions.pod:4158
13823 #, no-wrap
13824 msgid ""
13825 " set-memsize memsize\n"
13826 "\n"
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:4160
13831 msgid ""
13832 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13833 "This only has any effect if called before L</launch>."
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13838 msgid ""
13839 "You can also change this by setting the environment variable "
13840 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13841 msgstr ""
13842
13843 #. type: =head2
13844 #: ../fish/guestfish-actions.pod:4171
13845 msgid "set-network"
13846 msgstr "set-network"
13847
13848 #. type: =head2
13849 #: ../fish/guestfish-actions.pod:4173
13850 msgid "network"
13851 msgstr "network"
13852
13853 #. type: verbatim
13854 #: ../fish/guestfish-actions.pod:4175
13855 #, no-wrap
13856 msgid ""
13857 " set-network true|false\n"
13858 "\n"
13859 msgstr ""
13860 " set-network true|false\n"
13861 "\n"
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13865 msgid ""
13866 "If C<network> is true, then the network is enabled in the libguestfs "
13867 "appliance.  The default is false."
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13872 msgid ""
13873 "This affects whether commands are able to access the network (see L<guestfs"
13874 "(3)/RUNNING COMMANDS>)."
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../fish/guestfish-actions.pod:4183
13879 msgid ""
13880 "You must call this before calling L</launch>, otherwise it has no effect."
13881 msgstr ""
13882
13883 #. type: =head2
13884 #: ../fish/guestfish-actions.pod:4186
13885 msgid "set-path"
13886 msgstr "set-path"
13887
13888 #. type: verbatim
13889 #: ../fish/guestfish-actions.pod:4190
13890 #, no-wrap
13891 msgid ""
13892 " set-path searchpath\n"
13893 "\n"
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13898 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13903 msgid ""
13904 "The default is C<$libdir/guestfs> unless overridden by setting "
13905 "C<LIBGUESTFS_PATH> environment variable."
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13910 msgid "Setting C<path> to C<NULL> restores the default path."
13911 msgstr ""
13912
13913 #. type: =head2
13914 #: ../fish/guestfish-actions.pod:4199
13915 msgid "set-pgroup"
13916 msgstr ""
13917
13918 #. type: =head2
13919 #: ../fish/guestfish-actions.pod:4201
13920 msgid "pgroup"
13921 msgstr ""
13922
13923 #. type: verbatim
13924 #: ../fish/guestfish-actions.pod:4203
13925 #, no-wrap
13926 msgid ""
13927 " set-pgroup true|false\n"
13928 "\n"
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13933 msgid ""
13934 "If C<pgroup> is true, child processes are placed into their own process "
13935 "group."
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13940 msgid ""
13941 "The practical upshot of this is that signals like C<SIGINT> (from users "
13942 "pressing C<^C>) won't be received by the child process."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13947 msgid ""
13948 "The default for this flag is false, because usually you want C<^C> to kill "
13949 "the subprocess."
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:4214
13954 msgid "set-qemu"
13955 msgstr "set-qemu"
13956
13957 #. type: =head2
13958 #: ../fish/guestfish-actions.pod:4216
13959 msgid "qemu"
13960 msgstr "qemu"
13961
13962 #. type: verbatim
13963 #: ../fish/guestfish-actions.pod:4218
13964 #, no-wrap
13965 msgid ""
13966 " set-qemu qemu\n"
13967 "\n"
13968 msgstr ""
13969 " set-qemu qemu\n"
13970 "\n"
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13974 msgid "Set the qemu binary that we will use."
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13979 msgid ""
13980 "The default is chosen when the library was compiled by the configure script."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13985 msgid ""
13986 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13987 "variable."
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13992 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13997 msgid ""
13998 "Note that you should call this function as early as possible after creating "
13999 "the handle.  This is because some pre-launch operations depend on testing "
14000 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14001 "don't retest features, and so you might see inconsistent results.  Using the "
14002 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14003 "the qemu binary at the same time as the handle is created."
14004 msgstr ""
14005
14006 #. type: =head2
14007 #: ../fish/guestfish-actions.pod:4238
14008 msgid "set-recovery-proc"
14009 msgstr "set-recovery-proc"
14010
14011 #. type: =head2
14012 #: ../fish/guestfish-actions.pod:4240
14013 msgid "recovery-proc"
14014 msgstr "recovery-proc"
14015
14016 #. type: verbatim
14017 #: ../fish/guestfish-actions.pod:4242
14018 #, no-wrap
14019 msgid ""
14020 " set-recovery-proc true|false\n"
14021 "\n"
14022 msgstr ""
14023 " set-recovery-proc true|false\n"
14024 "\n"
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:4244
14028 msgid ""
14029 "If this is called with the parameter C<false> then L</launch> does not "
14030 "create a recovery process.  The purpose of the recovery process is to stop "
14031 "runaway qemu processes in the case where the main program aborts abruptly."
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:4249
14036 msgid ""
14037 "This only has any effect if called before L</launch>, and the default is "
14038 "true."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14043 msgid ""
14044 "About the only time when you would want to disable this is if the main "
14045 "process will fork itself into the background (\"daemonize\" itself).  In "
14046 "this case the recovery process thinks that the main program has disappeared "
14047 "and so kills qemu, which is not very helpful."
14048 msgstr ""
14049
14050 #. type: =head2
14051 #: ../fish/guestfish-actions.pod:4258
14052 msgid "set-selinux"
14053 msgstr "set-selinux"
14054
14055 #. type: =head2
14056 #: ../fish/guestfish-actions.pod:4260
14057 msgid "selinux"
14058 msgstr "selinux"
14059
14060 #. type: verbatim
14061 #: ../fish/guestfish-actions.pod:4262
14062 #, no-wrap
14063 msgid ""
14064 " set-selinux true|false\n"
14065 "\n"
14066 msgstr ""
14067 " set-selinux true|false\n"
14068 "\n"
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14072 msgid ""
14073 "This sets the selinux flag that is passed to the appliance at boot time.  "
14074 "The default is C<selinux=0> (disabled)."
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14079 msgid ""
14080 "Note that if SELinux is enabled, it is always in Permissive mode "
14081 "(C<enforcing=0>)."
14082 msgstr ""
14083
14084 #. type: =head2
14085 #: ../fish/guestfish-actions.pod:4273
14086 msgid "set-trace"
14087 msgstr "set-trace"
14088
14089 #. type: =head2
14090 #: ../fish/guestfish-actions.pod:4275
14091 msgid "trace"
14092 msgstr "trace"
14093
14094 #. type: verbatim
14095 #: ../fish/guestfish-actions.pod:4277
14096 #, no-wrap
14097 msgid ""
14098 " set-trace true|false\n"
14099 "\n"
14100 msgstr ""
14101 " set-trace true|false\n"
14102 "\n"
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14106 msgid ""
14107 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14108 "return values are traced."
14109 msgstr ""
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14113 msgid ""
14114 "If you want to trace C API calls into libguestfs (and other libraries) then "
14115 "possibly a better way is to use the external ltrace(1) command."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14120 msgid ""
14121 "Command traces are disabled unless the environment variable "
14122 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:4289
14127 msgid ""
14128 "Trace messages are normally sent to C<stderr>, unless you register a "
14129 "callback to send them somewhere else (see L</set-event-callback>)."
14130 msgstr ""
14131
14132 #. type: =head2
14133 #: ../fish/guestfish-actions.pod:4293
14134 msgid "set-verbose"
14135 msgstr "set-verbose"
14136
14137 #. type: =head2
14138 #: ../fish/guestfish-actions.pod:4295
14139 msgid "verbose"
14140 msgstr ""
14141
14142 #. type: verbatim
14143 #: ../fish/guestfish-actions.pod:4297
14144 #, no-wrap
14145 msgid ""
14146 " set-verbose true|false\n"
14147 "\n"
14148 msgstr ""
14149 " set-verbose true|false\n"
14150 "\n"
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14154 msgid "If C<verbose> is true, this turns on verbose messages."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14159 msgid ""
14160 "Verbose messages are disabled unless the environment variable "
14161 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14162 msgstr ""
14163
14164 #. type: textblock
14165 #: ../fish/guestfish-actions.pod:4304
14166 msgid ""
14167 "Verbose messages are normally sent to C<stderr>, unless you register a "
14168 "callback to send them somewhere else (see L</set-event-callback>)."
14169 msgstr ""
14170
14171 #. type: =head2
14172 #: ../fish/guestfish-actions.pod:4308
14173 msgid "setcon"
14174 msgstr "setcon"
14175
14176 #. type: verbatim
14177 #: ../fish/guestfish-actions.pod:4310
14178 #, no-wrap
14179 msgid ""
14180 " setcon context\n"
14181 "\n"
14182 msgstr ""
14183 " setcon контекст\n"
14184 "\n"
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14188 msgid ""
14189 "This sets the SELinux security context of the daemon to the string "
14190 "C<context>."
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14195 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14196 msgstr ""
14197
14198 #. type: =head2
14199 #: ../fish/guestfish-actions.pod:4317
14200 msgid "setxattr"
14201 msgstr "setxattr"
14202
14203 #. type: verbatim
14204 #: ../fish/guestfish-actions.pod:4319
14205 #, no-wrap
14206 msgid ""
14207 " setxattr xattr val vallen path\n"
14208 "\n"
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14213 msgid ""
14214 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14215 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14216 msgstr ""
14217
14218 #. type: textblock
14219 #: ../fish/guestfish-actions.pod:4325
14220 msgid "See also: L</lsetxattr>, L<attr(5)>."
14221 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14222
14223 #. type: =head2
14224 #: ../fish/guestfish-actions.pod:4327
14225 msgid "sfdisk"
14226 msgstr "sfdisk"
14227
14228 #. type: verbatim
14229 #: ../fish/guestfish-actions.pod:4329
14230 #, no-wrap
14231 msgid ""
14232 " sfdisk device cyls heads sectors 'lines ...'\n"
14233 "\n"
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
14238 msgid ""
14239 "This is a direct interface to the L<sfdisk(8)> program for creating "
14240 "partitions on block devices."
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6521
14245 msgid "C<device> should be a block device, for example C</dev/sda>."
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6523
14250 msgid ""
14251 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14252 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14253 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14254 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14255 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14256 "the kernel) cannot work out the right geometry and you will need to tell it."
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6531
14261 msgid ""
14262 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14263 "refer to the L<sfdisk(8)> manpage."
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6534
14268 msgid ""
14269 "To create a single partition occupying the whole disk, you would pass "
14270 "C<lines> as a single element list, when the single element being the string "
14271 "C<,> (comma)."
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:4351
14276 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14277 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14278
14279 #. type: textblock
14280 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14281 #: ../fish/guestfish-actions.pod:4402
14282 msgid ""
14283 "This function is deprecated.  In new code, use the L</part_add> call instead."
14284 msgstr ""
14285
14286 #. type: =head2
14287 #: ../fish/guestfish-actions.pod:4364
14288 msgid "sfdiskM"
14289 msgstr "sfdiskM"
14290
14291 #. type: verbatim
14292 #: ../fish/guestfish-actions.pod:4366
14293 #, no-wrap
14294 msgid ""
14295 " sfdiskM device 'lines ...'\n"
14296 "\n"
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:4368
14301 msgid ""
14302 "This is a simplified interface to the L</sfdisk> command, where partition "
14303 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14304 "you don't need to specify the cyls, heads and sectors parameters which were "
14305 "rarely if ever used anyway."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:4374
14310 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14311 msgstr ""
14312 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14313
14314 #. type: =head2
14315 #: ../fish/guestfish-actions.pod:4387
14316 msgid "sfdisk-N"
14317 msgstr "sfdisk-N"
14318
14319 #. type: verbatim
14320 #: ../fish/guestfish-actions.pod:4389
14321 #, no-wrap
14322 msgid ""
14323 " sfdisk-N device partnum cyls heads sectors line\n"
14324 "\n"
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6596
14329 msgid ""
14330 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14331 "(note: C<n> counts from 1)."
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4394
14336 msgid ""
14337 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14338 "cyls/heads/sectors parameters."
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:4397
14343 msgid "See also: L</part-add>"
14344 msgstr "Див. також L</part-add>"
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:4409
14348 msgid "sfdisk-disk-geometry"
14349 msgstr "sfdisk-disk-geometry"
14350
14351 #. type: verbatim
14352 #: ../fish/guestfish-actions.pod:4411
14353 #, no-wrap
14354 msgid ""
14355 " sfdisk-disk-geometry device\n"
14356 "\n"
14357 msgstr ""
14358 " sfdisk-disk-geometry пристрій\n"
14359 "\n"
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4413
14363 msgid ""
14364 "This displays the disk geometry of C<device> read from the partition table.  "
14365 "Especially in the case where the underlying block device has been resized, "
14366 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14367 "kernel-geometry>)."
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14372 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14373 msgid "The result is in human-readable format, and not designed to be parsed."
14374 msgstr ""
14375
14376 #. type: =head2
14377 #: ../fish/guestfish-actions.pod:4421
14378 msgid "sfdisk-kernel-geometry"
14379 msgstr "sfdisk-kernel-geometry"
14380
14381 #. type: verbatim
14382 #: ../fish/guestfish-actions.pod:4423
14383 #, no-wrap
14384 msgid ""
14385 " sfdisk-kernel-geometry device\n"
14386 "\n"
14387 msgstr ""
14388 " sfdisk-kernel-geometry пристрій\n"
14389 "\n"
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14393 msgid "This displays the kernel's idea of the geometry of C<device>."
14394 msgstr ""
14395
14396 #. type: =head2
14397 #: ../fish/guestfish-actions.pod:4430
14398 msgid "sfdisk-l"
14399 msgstr "sfdisk-l"
14400
14401 #. type: verbatim
14402 #: ../fish/guestfish-actions.pod:4432
14403 #, no-wrap
14404 msgid ""
14405 " sfdisk-l device\n"
14406 "\n"
14407 msgstr ""
14408 " sfdisk-l пристрій\n"
14409 "\n"
14410
14411 #. type: textblock
14412 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6659
14413 msgid ""
14414 "This displays the partition table on C<device>, in the human-readable output "
14415 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14416 msgstr ""
14417
14418 #. type: textblock
14419 #: ../fish/guestfish-actions.pod:4438
14420 msgid "See also: L</part-list>"
14421 msgstr "Див. також L</part-list>"
14422
14423 #. type: textblock
14424 #: ../fish/guestfish-actions.pod:4440
14425 msgid ""
14426 "This function is deprecated.  In new code, use the L</part_list> call "
14427 "instead."
14428 msgstr ""
14429
14430 #. type: =head2
14431 #: ../fish/guestfish-actions.pod:4447
14432 msgid "sh"
14433 msgstr "sh"
14434
14435 #. type: verbatim
14436 #: ../fish/guestfish-actions.pod:4449
14437 #, no-wrap
14438 msgid ""
14439 " sh command\n"
14440 "\n"
14441 msgstr ""
14442 " sh команда\n"
14443 "\n"
14444
14445 #. type: textblock
14446 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14447 msgid ""
14448 "This call runs a command from the guest filesystem via the guest's C</bin/"
14449 "sh>."
14450 msgstr ""
14451
14452 #. type: textblock
14453 #: ../fish/guestfish-actions.pod:4454
14454 msgid "This is like L</command>, but passes the command to:"
14455 msgstr ""
14456
14457 #. type: verbatim
14458 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14459 #, no-wrap
14460 msgid ""
14461 " /bin/sh -c \"command\"\n"
14462 "\n"
14463 msgstr ""
14464
14465 #. type: textblock
14466 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14467 msgid ""
14468 "Depending on the guest's shell, this usually results in wildcards being "
14469 "expanded, shell expressions being interpolated and so on."
14470 msgstr ""
14471
14472 #. type: textblock
14473 #: ../fish/guestfish-actions.pod:4462
14474 msgid "All the provisos about L</command> apply to this call."
14475 msgstr ""
14476
14477 #. type: =head2
14478 #: ../fish/guestfish-actions.pod:4464
14479 msgid "sh-lines"
14480 msgstr "sh-lines"
14481
14482 #. type: verbatim
14483 #: ../fish/guestfish-actions.pod:4466
14484 #, no-wrap
14485 msgid ""
14486 " sh-lines command\n"
14487 "\n"
14488 msgstr ""
14489 " sh-lines команда\n"
14490 "\n"
14491
14492 #. type: textblock
14493 #: ../fish/guestfish-actions.pod:4468
14494 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../fish/guestfish-actions.pod:4471
14499 msgid "See also: L</command-lines>"
14500 msgstr "Див. також L</command-lines>"
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4473
14504 msgid "sleep"
14505 msgstr "sleep"
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4475
14509 #, no-wrap
14510 msgid ""
14511 " sleep secs\n"
14512 "\n"
14513 msgstr ""
14514 " sleep час_у_секундах\n"
14515 "\n"
14516
14517 #. type: textblock
14518 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14519 msgid "Sleep for C<secs> seconds."
14520 msgstr ""
14521
14522 #. type: =head2
14523 #: ../fish/guestfish-actions.pod:4479
14524 msgid "stat"
14525 msgstr "stat"
14526
14527 #. type: verbatim
14528 #: ../fish/guestfish-actions.pod:4481
14529 #, no-wrap
14530 msgid ""
14531 " stat path\n"
14532 "\n"
14533 msgstr ""
14534 " stat шлях\n"
14535 "\n"
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14539 msgid "This is the same as the C<stat(2)> system call."
14540 msgstr ""
14541
14542 #. type: =head2
14543 #: ../fish/guestfish-actions.pod:4487
14544 msgid "statvfs"
14545 msgstr "statvfs"
14546
14547 #. type: verbatim
14548 #: ../fish/guestfish-actions.pod:4489
14549 #, no-wrap
14550 msgid ""
14551 " statvfs path\n"
14552 "\n"
14553 msgstr ""
14554 " statvfs шлях\n"
14555 "\n"
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14559 msgid ""
14560 "Returns file system statistics for any mounted file system.  C<path> should "
14561 "be a file or directory in the mounted file system (typically it is the mount "
14562 "point itself, but it doesn't need to be)."
14563 msgstr ""
14564
14565 #. type: textblock
14566 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14567 msgid "This is the same as the C<statvfs(2)> system call."
14568 msgstr ""
14569
14570 #. type: =head2
14571 #: ../fish/guestfish-actions.pod:4497
14572 msgid "strings"
14573 msgstr "strings"
14574
14575 #. type: verbatim
14576 #: ../fish/guestfish-actions.pod:4499
14577 #, no-wrap
14578 msgid ""
14579 " strings path\n"
14580 "\n"
14581 msgstr ""
14582 " strings шлях\n"
14583 "\n"
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14587 msgid ""
14588 "This runs the L<strings(1)> command on a file and returns the list of "
14589 "printable strings found."
14590 msgstr ""
14591
14592 #. type: =head2
14593 #: ../fish/guestfish-actions.pod:4507
14594 msgid "strings-e"
14595 msgstr "strings-e"
14596
14597 #. type: verbatim
14598 #: ../fish/guestfish-actions.pod:4509
14599 #, no-wrap
14600 msgid ""
14601 " strings-e encoding path\n"
14602 "\n"
14603 msgstr ""
14604 " strings-e кодування шлях\n"
14605 "\n"
14606
14607 #. type: textblock
14608 #: ../fish/guestfish-actions.pod:4511
14609 msgid ""
14610 "This is like the L</strings> command, but allows you to specify the encoding "
14611 "of strings that are looked for in the source file C<path>."
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14616 msgid "Allowed encodings are:"
14617 msgstr "Можливими кодуваннями є:"
14618
14619 #. type: =item
14620 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14621 msgid "s"
14622 msgstr "s"
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:4521
14626 msgid ""
14627 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14628 "ISO-8859-X (this is what L</strings> uses)."
14629 msgstr ""
14630
14631 #. type: =item
14632 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14633 msgid "S"
14634 msgstr "S"
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14638 msgid "Single 8-bit-byte characters."
14639 msgstr "Окремі 8-бітові-байтові символи."
14640
14641 #. type: =item
14642 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14643 msgid "b"
14644 msgstr "b"
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14648 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14649 msgstr ""
14650
14651 #. type: =item
14652 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14653 msgid "l (lower case letter L)"
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14658 msgid ""
14659 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14660 "examining binaries in Windows guests."
14661 msgstr ""
14662
14663 #. type: =item
14664 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14665 msgid "B"
14666 msgstr "B"
14667
14668 #. type: textblock
14669 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14670 msgid "32-bit big endian such as UCS-4BE."
14671 msgstr ""
14672
14673 #. type: =item
14674 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14675 msgid "L"
14676 msgstr "L"
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14680 msgid "32-bit little endian such as UCS-4LE."
14681 msgstr ""
14682
14683 #. type: textblock
14684 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14685 msgid "The returned strings are transcoded to UTF-8."
14686 msgstr ""
14687
14688 #. type: =head2
14689 #: ../fish/guestfish-actions.pod:4553
14690 msgid "swapoff-device"
14691 msgstr "swapoff-device"
14692
14693 #. type: verbatim
14694 #: ../fish/guestfish-actions.pod:4555
14695 #, no-wrap
14696 msgid ""
14697 " swapoff-device device\n"
14698 "\n"
14699 msgstr ""
14700 " swapoff-device пристрій\n"
14701 "\n"
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4557
14705 msgid ""
14706 "This command disables the libguestfs appliance swap device or partition "
14707 "named C<device>.  See L</swapon-device>."
14708 msgstr ""
14709
14710 #. type: =head2
14711 #: ../fish/guestfish-actions.pod:4561
14712 msgid "swapoff-file"
14713 msgstr "swapoff-file"
14714
14715 #. type: verbatim
14716 #: ../fish/guestfish-actions.pod:4563
14717 #, no-wrap
14718 msgid ""
14719 " swapoff-file file\n"
14720 "\n"
14721 msgstr ""
14722 " swapoff-file файл\n"
14723 "\n"
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14727 msgid "This command disables the libguestfs appliance swap on file."
14728 msgstr ""
14729
14730 #. type: =head2
14731 #: ../fish/guestfish-actions.pod:4567
14732 msgid "swapoff-label"
14733 msgstr "swapoff-label"
14734
14735 #. type: verbatim
14736 #: ../fish/guestfish-actions.pod:4569
14737 #, no-wrap
14738 msgid ""
14739 " swapoff-label label\n"
14740 "\n"
14741 msgstr ""
14742 " swapoff-label мітка\n"
14743 "\n"
14744
14745 #. type: textblock
14746 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14747 msgid ""
14748 "This command disables the libguestfs appliance swap on labeled swap "
14749 "partition."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:4574
14754 msgid "swapoff-uuid"
14755 msgstr "swapoff-uuid"
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:4576
14759 #, no-wrap
14760 msgid ""
14761 " swapoff-uuid uuid\n"
14762 "\n"
14763 msgstr ""
14764 " swapoff-uuid uuid\n"
14765 "\n"
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14769 msgid ""
14770 "This command disables the libguestfs appliance swap partition with the given "
14771 "UUID."
14772 msgstr ""
14773
14774 #. type: =head2
14775 #: ../fish/guestfish-actions.pod:4581
14776 msgid "swapon-device"
14777 msgstr "swapon-device"
14778
14779 #. type: verbatim
14780 #: ../fish/guestfish-actions.pod:4583
14781 #, no-wrap
14782 msgid ""
14783 " swapon-device device\n"
14784 "\n"
14785 msgstr ""
14786 " swapon-device пристрій\n"
14787 "\n"
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:4585
14791 msgid ""
14792 "This command enables the libguestfs appliance to use the swap device or "
14793 "partition named C<device>.  The increased memory is made available for all "
14794 "commands, for example those run using L</command> or L</sh>."
14795 msgstr ""
14796
14797 #. type: textblock
14798 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14799 msgid ""
14800 "Note that you should not swap to existing guest swap partitions unless you "
14801 "know what you are doing.  They may contain hibernation information, or other "
14802 "information that the guest doesn't want you to trash.  You also risk leaking "
14803 "information about the host to the guest this way.  Instead, attach a new "
14804 "host device to the guest and swap on that."
14805 msgstr ""
14806
14807 #. type: =head2
14808 #: ../fish/guestfish-actions.pod:4597
14809 msgid "swapon-file"
14810 msgstr "swapon-file"
14811
14812 #. type: verbatim
14813 #: ../fish/guestfish-actions.pod:4599
14814 #, no-wrap
14815 msgid ""
14816 " swapon-file file\n"
14817 "\n"
14818 msgstr ""
14819 " swapon-file файл\n"
14820 "\n"
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4601
14824 msgid ""
14825 "This command enables swap to a file.  See L</swapon-device> for other notes."
14826 msgstr ""
14827
14828 #. type: =head2
14829 #: ../fish/guestfish-actions.pod:4604
14830 msgid "swapon-label"
14831 msgstr "swapon-label"
14832
14833 #. type: verbatim
14834 #: ../fish/guestfish-actions.pod:4606
14835 #, no-wrap
14836 msgid ""
14837 " swapon-label label\n"
14838 "\n"
14839 msgstr ""
14840 " swapon-label мітка\n"
14841 "\n"
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4608
14845 msgid ""
14846 "This command enables swap to a labeled swap partition.  See L</swapon-"
14847 "device> for other notes."
14848 msgstr ""
14849
14850 #. type: =head2
14851 #: ../fish/guestfish-actions.pod:4611
14852 msgid "swapon-uuid"
14853 msgstr "swapon-uuid"
14854
14855 #. type: verbatim
14856 #: ../fish/guestfish-actions.pod:4613
14857 #, no-wrap
14858 msgid ""
14859 " swapon-uuid uuid\n"
14860 "\n"
14861 msgstr ""
14862 " swapon-uuid uuid\n"
14863 "\n"
14864
14865 #. type: textblock
14866 #: ../fish/guestfish-actions.pod:4615
14867 msgid ""
14868 "This command enables swap to a swap partition with the given UUID.  See L</"
14869 "swapon-device> for other notes."
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-actions.pod:4618
14874 msgid "sync"
14875 msgstr "sync"
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-actions.pod:4620
14879 #, no-wrap
14880 msgid ""
14881 " sync\n"
14882 "\n"
14883 msgstr ""
14884 " sync\n"
14885 "\n"
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14889 msgid ""
14890 "This syncs the disk, so that any writes are flushed through to the "
14891 "underlying disk image."
14892 msgstr ""
14893
14894 #. type: textblock
14895 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14896 msgid ""
14897 "You should always call this if you have modified a disk image, before "
14898 "closing the handle."
14899 msgstr ""
14900
14901 #. type: =head2
14902 #: ../fish/guestfish-actions.pod:4628
14903 msgid "tail"
14904 msgstr "tail"
14905
14906 #. type: verbatim
14907 #: ../fish/guestfish-actions.pod:4630
14908 #, no-wrap
14909 msgid ""
14910 " tail path\n"
14911 "\n"
14912 msgstr ""
14913 " tail шлях\n"
14914 "\n"
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14918 msgid ""
14919 "This command returns up to the last 10 lines of a file as a list of strings."
14920 msgstr ""
14921
14922 #. type: =head2
14923 #: ../fish/guestfish-actions.pod:4638
14924 msgid "tail-n"
14925 msgstr "tail-n"
14926
14927 #. type: verbatim
14928 #: ../fish/guestfish-actions.pod:4640
14929 #, no-wrap
14930 msgid ""
14931 " tail-n nrlines path\n"
14932 "\n"
14933 msgstr ""
14934
14935 #. type: textblock
14936 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14937 msgid ""
14938 "If the parameter C<nrlines> is a positive number, this returns the last "
14939 "C<nrlines> lines of the file C<path>."
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14944 msgid ""
14945 "If the parameter C<nrlines> is a negative number, this returns lines from "
14946 "the file C<path>, starting with the C<-nrlines>th line."
14947 msgstr ""
14948
14949 #. type: =head2
14950 #: ../fish/guestfish-actions.pod:4653
14951 msgid "tar-in"
14952 msgstr "tar-in"
14953
14954 #. type: verbatim
14955 #: ../fish/guestfish-actions.pod:4655
14956 #, no-wrap
14957 msgid ""
14958 " tar-in (tarfile|-) directory\n"
14959 "\n"
14960 msgstr ""
14961 " tar-in (файл_tar|-) каталог\n"
14962 "\n"
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14966 msgid ""
14967 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14968 "tar file) into C<directory>."
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:4660
14973 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14974 msgstr ""
14975
14976 #. type: =head2
14977 #: ../fish/guestfish-actions.pod:4665
14978 msgid "tar-out"
14979 msgstr "tar-out"
14980
14981 #. type: verbatim
14982 #: ../fish/guestfish-actions.pod:4667
14983 #, no-wrap
14984 msgid ""
14985 " tar-out directory (tarfile|-)\n"
14986 "\n"
14987 msgstr ""
14988 " tar-out каталог (файл tar|-)\n"
14989 "\n"
14990
14991 #. type: textblock
14992 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14993 msgid ""
14994 "This command packs the contents of C<directory> and downloads it to local "
14995 "file C<tarfile>."
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:4672
15000 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15001 msgstr ""
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4677
15005 msgid "tgz-in"
15006 msgstr "tgz-in"
15007
15008 #. type: verbatim
15009 #: ../fish/guestfish-actions.pod:4679
15010 #, no-wrap
15011 msgid ""
15012 " tgz-in (tarball|-) directory\n"
15013 "\n"
15014 msgstr ""
15015 " tgz-in (архів tar|-) каталог\n"
15016 "\n"
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15020 msgid ""
15021 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15022 "tar file) into C<directory>."
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:4684
15027 msgid "To upload an uncompressed tarball, use L</tar-in>."
15028 msgstr ""
15029
15030 #. type: =head2
15031 #: ../fish/guestfish-actions.pod:4688
15032 msgid "tgz-out"
15033 msgstr "tgz-out"
15034
15035 #. type: verbatim
15036 #: ../fish/guestfish-actions.pod:4690
15037 #, no-wrap
15038 msgid ""
15039 " tgz-out directory (tarball|-)\n"
15040 "\n"
15041 msgstr ""
15042 " tgz-out каталог (архів tar|-)\n"
15043 "\n"
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15047 msgid ""
15048 "This command packs the contents of C<directory> and downloads it to local "
15049 "file C<tarball>."
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4695
15054 msgid "To download an uncompressed tarball, use L</tar-out>."
15055 msgstr ""
15056
15057 #. type: =head2
15058 #: ../fish/guestfish-actions.pod:4699
15059 msgid "touch"
15060 msgstr "touch"
15061
15062 #. type: verbatim
15063 #: ../fish/guestfish-actions.pod:4701
15064 #, no-wrap
15065 msgid ""
15066 " touch path\n"
15067 "\n"
15068 msgstr ""
15069 " touch шлях\n"
15070 "\n"
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15074 msgid ""
15075 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15076 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15077 "length file."
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15082 msgid ""
15083 "This command only works on regular files, and will fail on other file types "
15084 "such as directories, symbolic links, block special etc."
15085 msgstr ""
15086
15087 #. type: =head2
15088 #: ../fish/guestfish-actions.pod:4710
15089 msgid "truncate"
15090 msgstr "truncate"
15091
15092 #. type: verbatim
15093 #: ../fish/guestfish-actions.pod:4712
15094 #, no-wrap
15095 msgid ""
15096 " truncate path\n"
15097 "\n"
15098 msgstr ""
15099 " truncate шлях\n"
15100 "\n"
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15104 msgid ""
15105 "This command truncates C<path> to a zero-length file.  The file must exist "
15106 "already."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:4717
15111 msgid "truncate-size"
15112 msgstr "truncate-size"
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:4719
15116 #, no-wrap
15117 msgid ""
15118 " truncate-size path size\n"
15119 "\n"
15120 msgstr ""
15121 " truncate-size шлях розмір\n"
15122 "\n"
15123
15124 #. type: textblock
15125 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15126 msgid ""
15127 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15128 "already."
15129 msgstr ""
15130
15131 #. type: textblock
15132 #: ../fish/guestfish-actions.pod:4724
15133 msgid ""
15134 "If the current file size is less than C<size> then the file is extended to "
15135 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15136 "blocks are not allocated for the file until you write to it).  To create a "
15137 "non-sparse file of zeroes, use L</fallocate64> instead."
15138 msgstr ""
15139
15140 #. type: =head2
15141 #: ../fish/guestfish-actions.pod:4730
15142 msgid "tune2fs-l"
15143 msgstr "tune2fs-l"
15144
15145 #. type: verbatim
15146 #: ../fish/guestfish-actions.pod:4732
15147 #, no-wrap
15148 msgid ""
15149 " tune2fs-l device\n"
15150 "\n"
15151 msgstr ""
15152 " tune2fs-l пристрій\n"
15153 "\n"
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15157 msgid ""
15158 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15159 "C<device>."
15160 msgstr ""
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15164 msgid ""
15165 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15166 "for more details.  The list of fields returned isn't clearly defined, and "
15167 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15168 "and the filesystem itself."
15169 msgstr ""
15170
15171 #. type: =head2
15172 #: ../fish/guestfish-actions.pod:4742
15173 msgid "txz-in"
15174 msgstr "txz-in"
15175
15176 #. type: verbatim
15177 #: ../fish/guestfish-actions.pod:4744
15178 #, no-wrap
15179 msgid ""
15180 " txz-in (tarball|-) directory\n"
15181 "\n"
15182 msgstr ""
15183 " txz-in (архів tar|-) каталог\n"
15184 "\n"
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15188 msgid ""
15189 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15190 "tar file) into C<directory>."
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-actions.pod:4751
15195 msgid "txz-out"
15196 msgstr "txz-out"
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-actions.pod:4753
15200 #, no-wrap
15201 msgid ""
15202 " txz-out directory (tarball|-)\n"
15203 "\n"
15204 msgstr ""
15205 " txz-out каталог (архів tar|-)\n"
15206 "\n"
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15210 msgid ""
15211 "This command packs the contents of C<directory> and downloads it to local "
15212 "file C<tarball> (as an xz compressed tar archive)."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4760
15217 msgid "umask"
15218 msgstr "umask"
15219
15220 #. type: verbatim
15221 #: ../fish/guestfish-actions.pod:4762
15222 #, no-wrap
15223 msgid ""
15224 " umask mask\n"
15225 "\n"
15226 msgstr ""
15227 " umask маска\n"
15228 "\n"
15229
15230 #. type: textblock
15231 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15232 msgid ""
15233 "This function sets the mask used for creating new files and device nodes to "
15234 "C<mask & 0777>."
15235 msgstr ""
15236
15237 #. type: textblock
15238 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15239 msgid ""
15240 "Typical umask values would be C<022> which creates new files with "
15241 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15242 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15247 msgid ""
15248 "The default umask is C<022>.  This is important because it means that "
15249 "directories and device nodes will be created with C<0644> or C<0755> mode "
15250 "even if you specify C<0777>."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-actions.pod:4776
15255 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15256 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15257
15258 #. type: textblock
15259 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15260 msgid "This call returns the previous umask."
15261 msgstr ""
15262
15263 #. type: =head2
15264 #: ../fish/guestfish-actions.pod:4781
15265 msgid "umount"
15266 msgstr "umount"
15267
15268 #. type: =head2
15269 #: ../fish/guestfish-actions.pod:4783
15270 msgid "unmount"
15271 msgstr "unmount"
15272
15273 #. type: verbatim
15274 #: ../fish/guestfish-actions.pod:4785
15275 #, no-wrap
15276 msgid ""
15277 " umount pathordevice\n"
15278 "\n"
15279 msgstr ""
15280 " umount шлях_або_пристрій\n"
15281 "\n"
15282
15283 #. type: textblock
15284 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15285 msgid ""
15286 "This unmounts the given filesystem.  The filesystem may be specified either "
15287 "by its mountpoint (path) or the device which contains the filesystem."
15288 msgstr ""
15289
15290 #. type: =head2
15291 #: ../fish/guestfish-actions.pod:4791
15292 msgid "umount-all"
15293 msgstr "umount-all"
15294
15295 #. type: =head2
15296 #: ../fish/guestfish-actions.pod:4793
15297 msgid "unmount-all"
15298 msgstr "unmount-all"
15299
15300 #. type: verbatim
15301 #: ../fish/guestfish-actions.pod:4795
15302 #, no-wrap
15303 msgid ""
15304 " umount-all\n"
15305 "\n"
15306 msgstr ""
15307 " umount-all\n"
15308 "\n"
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15312 msgid "This unmounts all mounted filesystems."
15313 msgstr ""
15314
15315 #. type: textblock
15316 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15317 msgid "Some internal mounts are not unmounted by this call."
15318 msgstr ""
15319
15320 #. type: =head2
15321 #: ../fish/guestfish-actions.pod:4801
15322 msgid "upload"
15323 msgstr "upload"
15324
15325 #. type: verbatim
15326 #: ../fish/guestfish-actions.pod:4803
15327 #, no-wrap
15328 msgid ""
15329 " upload (filename|-) remotefilename\n"
15330 "\n"
15331 msgstr ""
15332 " upload (назва_файла|-) назва_віддаленого_файла\n"
15333 "\n"
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15337 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15338 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:4810
15343 msgid "See also L</download>."
15344 msgstr "Див. також L</download>."
15345
15346 #. type: =head2
15347 #: ../fish/guestfish-actions.pod:4814
15348 msgid "upload-offset"
15349 msgstr "upload-offset"
15350
15351 #. type: verbatim
15352 #: ../fish/guestfish-actions.pod:4816
15353 #, no-wrap
15354 msgid ""
15355 " upload-offset (filename|-) remotefilename offset\n"
15356 "\n"
15357 msgstr ""
15358 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15359 "\n"
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15363 msgid ""
15364 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15365 "The intention is to overwrite parts of existing files or devices, although "
15366 "if a non-existant file is specified then it is created with a \"hole\" "
15367 "before C<offset>.  The size of the data written is implicit in the size of "
15368 "the source C<filename>."
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:4828
15373 msgid ""
15374 "Note that there is no limit on the amount of data that can be uploaded with "
15375 "this call, unlike with L</pwrite>, and this call always writes the full "
15376 "amount unless an error occurs."
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:4833
15381 msgid "See also L</upload>, L</pwrite>."
15382 msgstr "Див. також L</upload>, L</pwrite>."
15383
15384 #. type: =head2
15385 #: ../fish/guestfish-actions.pod:4837
15386 msgid "utimens"
15387 msgstr "utimens"
15388
15389 #. type: verbatim
15390 #: ../fish/guestfish-actions.pod:4839
15391 #, no-wrap
15392 msgid ""
15393 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15394 "\n"
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15399 msgid "This command sets the timestamps of a file with nanosecond precision."
15400 msgstr ""
15401
15402 #. type: textblock
15403 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15404 msgid ""
15405 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15406 "from the epoch."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15411 msgid ""
15412 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15413 "nanoseconds from the epoch."
15414 msgstr ""
15415
15416 #. type: textblock
15417 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15418 msgid ""
15419 "If the C<*nsecs> field contains the special value C<-1> then the "
15420 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15421 "ignored in this case)."
15422 msgstr ""
15423
15424 #. type: textblock
15425 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15426 msgid ""
15427 "If the C<*nsecs> field contains the special value C<-2> then the "
15428 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15429 "in this case)."
15430 msgstr ""
15431
15432 #. type: =head2
15433 #: ../fish/guestfish-actions.pod:4858
15434 msgid "version"
15435 msgstr "version"
15436
15437 #. type: verbatim
15438 #: ../fish/guestfish-actions.pod:4860
15439 #, no-wrap
15440 msgid ""
15441 " version\n"
15442 "\n"
15443 msgstr ""
15444 " version\n"
15445 "\n"
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15449 msgid ""
15450 "Return the libguestfs version number that the program is linked against."
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15455 msgid ""
15456 "Note that because of dynamic linking this is not necessarily the version of "
15457 "libguestfs that you compiled against.  You can compile the program, and then "
15458 "at runtime dynamically link against a completely different C<libguestfs.so> "
15459 "library."
15460 msgstr ""
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15464 msgid ""
15465 "This call was added in version C<1.0.58>.  In previous versions of "
15466 "libguestfs there was no way to get the version number.  From C code you can "
15467 "use dynamic linker functions to find out if this symbol exists (if it "
15468 "doesn't, then it's an earlier version)."
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15473 msgid ""
15474 "The call returns a structure with four elements.  The first three (C<major>, "
15475 "C<minor> and C<release>) are numbers and correspond to the usual version "
15476 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15477 "but may be used for distro-specific information."
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15482 msgid ""
15483 "To construct the original version string: C<$major.$minor.$release$extra>"
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15488 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-actions.pod:4887
15493 msgid ""
15494 "I<Note:> Don't use this call to test for availability of features.  In "
15495 "enterprise distributions we backport features from later versions into "
15496 "earlier versions, making this an unreliable way to test for features.  Use "
15497 "L</available> instead."
15498 msgstr ""
15499
15500 #. type: =head2
15501 #: ../fish/guestfish-actions.pod:4893
15502 msgid "vfs-label"
15503 msgstr "vfs-label"
15504
15505 #. type: verbatim
15506 #: ../fish/guestfish-actions.pod:4895
15507 #, no-wrap
15508 msgid ""
15509 " vfs-label device\n"
15510 "\n"
15511 msgstr ""
15512 " vfs-label пристрій\n"
15513 "\n"
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15517 msgid "This returns the filesystem label of the filesystem on C<device>."
15518 msgstr ""
15519
15520 #. type: textblock
15521 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15522 msgid "If the filesystem is unlabeled, this returns the empty string."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4902
15527 msgid "To find a filesystem from the label, use L</findfs-label>."
15528 msgstr ""
15529
15530 #. type: =head2
15531 #: ../fish/guestfish-actions.pod:4904
15532 msgid "vfs-type"
15533 msgstr "vfs-type"
15534
15535 #. type: verbatim
15536 #: ../fish/guestfish-actions.pod:4906
15537 #, no-wrap
15538 msgid ""
15539 " vfs-type device\n"
15540 "\n"
15541 msgstr ""
15542 " vfs-type пристрій\n"
15543 "\n"
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15547 msgid ""
15548 "This command gets the filesystem type corresponding to the filesystem on "
15549 "C<device>."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15554 msgid ""
15555 "For most filesystems, the result is the name of the Linux VFS module which "
15556 "would be used to mount this filesystem if you mounted it without specifying "
15557 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15558 msgstr ""
15559
15560 #. type: =head2
15561 #: ../fish/guestfish-actions.pod:4916
15562 msgid "vfs-uuid"
15563 msgstr "vfs-uuid"
15564
15565 #. type: verbatim
15566 #: ../fish/guestfish-actions.pod:4918
15567 #, no-wrap
15568 msgid ""
15569 " vfs-uuid device\n"
15570 "\n"
15571 msgstr ""
15572 " vfs-uuid пристрій\n"
15573 "\n"
15574
15575 #. type: textblock
15576 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15577 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15582 msgid "If the filesystem does not have a UUID, this returns the empty string."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4925
15587 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-actions.pod:4927
15592 msgid "vg-activate"
15593 msgstr "vg-activate"
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-actions.pod:4929
15597 #, no-wrap
15598 msgid ""
15599 " vg-activate true|false 'volgroups ...'\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15605 msgid ""
15606 "This command activates or (if C<activate> is false) deactivates all logical "
15607 "volumes in the listed volume groups C<volgroups>."
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15612 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15613 msgstr ""
15614
15615 #. type: textblock
15616 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15617 msgid ""
15618 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15619 "activated or deactivated."
15620 msgstr ""
15621
15622 #. type: =head2
15623 #: ../fish/guestfish-actions.pod:4939
15624 msgid "vg-activate-all"
15625 msgstr "vg-activate-all"
15626
15627 #. type: verbatim
15628 #: ../fish/guestfish-actions.pod:4941
15629 #, no-wrap
15630 msgid ""
15631 " vg-activate-all true|false\n"
15632 "\n"
15633 msgstr ""
15634 " vg-activate-all true|false\n"
15635 "\n"
15636
15637 #. type: textblock
15638 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15639 msgid ""
15640 "This command activates or (if C<activate> is false) deactivates all logical "
15641 "volumes in all volume groups."
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15646 msgid "This command is the same as running C<vgchange -a y|n>"
15647 msgstr ""
15648
15649 #. type: =head2
15650 #: ../fish/guestfish-actions.pod:4948
15651 msgid "vgcreate"
15652 msgstr "vgcreate"
15653
15654 #. type: verbatim
15655 #: ../fish/guestfish-actions.pod:4950
15656 #, no-wrap
15657 msgid ""
15658 " vgcreate volgroup 'physvols ...'\n"
15659 "\n"
15660 msgstr ""
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15664 msgid ""
15665 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15666 "of physical volumes C<physvols>."
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../fish/guestfish-actions.pod:4955
15671 msgid "vglvuuids"
15672 msgstr "vglvuuids"
15673
15674 #. type: verbatim
15675 #: ../fish/guestfish-actions.pod:4957
15676 #, no-wrap
15677 msgid ""
15678 " vglvuuids vgname\n"
15679 "\n"
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15684 msgid ""
15685 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15686 "volumes created in this volume group."
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4962
15691 msgid ""
15692 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15693 "logical volumes and volume groups."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4965
15698 msgid "See also L</vgpvuuids>."
15699 msgstr "Див. також L</vgpvuuids>."
15700
15701 #. type: =head2
15702 #: ../fish/guestfish-actions.pod:4967
15703 msgid "vgpvuuids"
15704 msgstr "vgpvuuids"
15705
15706 #. type: verbatim
15707 #: ../fish/guestfish-actions.pod:4969
15708 #, no-wrap
15709 msgid ""
15710 " vgpvuuids vgname\n"
15711 "\n"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15716 msgid ""
15717 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15718 "volumes that this volume group resides on."
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-actions.pod:4974
15723 msgid ""
15724 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15725 "physical volumes and volume groups."
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish-actions.pod:4977
15730 msgid "See also L</vglvuuids>."
15731 msgstr "Див. також L</vglvuuids>."
15732
15733 #. type: =head2
15734 #: ../fish/guestfish-actions.pod:4979
15735 msgid "vgremove"
15736 msgstr "vgremove"
15737
15738 #. type: verbatim
15739 #: ../fish/guestfish-actions.pod:4981
15740 #, no-wrap
15741 msgid ""
15742 " vgremove vgname\n"
15743 "\n"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15748 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15753 msgid ""
15754 "This also forcibly removes all logical volumes in the volume group (if any)."
15755 msgstr ""
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-actions.pod:4988
15759 msgid "vgrename"
15760 msgstr "vgrename"
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-actions.pod:4990
15764 #, no-wrap
15765 msgid ""
15766 " vgrename volgroup newvolgroup\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15772 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15773 msgstr ""
15774
15775 #. type: =head2
15776 #: ../fish/guestfish-actions.pod:4994
15777 msgid "vgs"
15778 msgstr "vgs"
15779
15780 #. type: verbatim
15781 #: ../fish/guestfish-actions.pod:4996
15782 #, no-wrap
15783 msgid ""
15784 " vgs\n"
15785 "\n"
15786 msgstr ""
15787 " vgs\n"
15788 "\n"
15789
15790 #. type: textblock
15791 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15792 msgid ""
15793 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15794 "> command."
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15799 msgid ""
15800 "This returns a list of just the volume group names that were detected (eg. "
15801 "C<VolGroup00>)."
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish-actions.pod:5004
15806 msgid "See also L</vgs-full>."
15807 msgstr "Див. також L</vgs-full>."
15808
15809 #. type: =head2
15810 #: ../fish/guestfish-actions.pod:5006
15811 msgid "vgs-full"
15812 msgstr "vgs-full"
15813
15814 #. type: verbatim
15815 #: ../fish/guestfish-actions.pod:5008
15816 #, no-wrap
15817 msgid ""
15818 " vgs-full\n"
15819 "\n"
15820 msgstr ""
15821 " vgs-full\n"
15822 "\n"
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15826 msgid ""
15827 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15828 "> command.  The \"full\" version includes all fields."
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:5013
15833 msgid "vgscan"
15834 msgstr "vgscan"
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:5015
15838 #, no-wrap
15839 msgid ""
15840 " vgscan\n"
15841 "\n"
15842 msgstr ""
15843 " vgscan\n"
15844 "\n"
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15848 msgid ""
15849 "This rescans all block devices and rebuilds the list of LVM physical "
15850 "volumes, volume groups and logical volumes."
15851 msgstr ""
15852
15853 #. type: =head2
15854 #: ../fish/guestfish-actions.pod:5020
15855 msgid "vguuid"
15856 msgstr "vguuid"
15857
15858 #. type: verbatim
15859 #: ../fish/guestfish-actions.pod:5022
15860 #, no-wrap
15861 msgid ""
15862 " vguuid vgname\n"
15863 "\n"
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15868 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../fish/guestfish-actions.pod:5026
15873 msgid "wc-c"
15874 msgstr "wc-c"
15875
15876 #. type: verbatim
15877 #: ../fish/guestfish-actions.pod:5028
15878 #, no-wrap
15879 msgid ""
15880 " wc-c path\n"
15881 "\n"
15882 msgstr ""
15883 " wc-c шлях\n"
15884 "\n"
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15888 msgid ""
15889 "This command counts the characters in a file, using the C<wc -c> external "
15890 "command."
15891 msgstr ""
15892
15893 #. type: =head2
15894 #: ../fish/guestfish-actions.pod:5033
15895 msgid "wc-l"
15896 msgstr "wc-l"
15897
15898 #. type: verbatim
15899 #: ../fish/guestfish-actions.pod:5035
15900 #, no-wrap
15901 msgid ""
15902 " wc-l path\n"
15903 "\n"
15904 msgstr ""
15905 " wc-l шлях\n"
15906 "\n"
15907
15908 #. type: textblock
15909 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15910 msgid ""
15911 "This command counts the lines in a file, using the C<wc -l> external command."
15912 msgstr ""
15913
15914 #. type: =head2
15915 #: ../fish/guestfish-actions.pod:5040
15916 msgid "wc-w"
15917 msgstr "wc-w"
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish-actions.pod:5042
15921 #, no-wrap
15922 msgid ""
15923 " wc-w path\n"
15924 "\n"
15925 msgstr ""
15926 " wc-w шлях\n"
15927 "\n"
15928
15929 #. type: textblock
15930 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15931 msgid ""
15932 "This command counts the words in a file, using the C<wc -w> external command."
15933 msgstr ""
15934
15935 #. type: =head2
15936 #: ../fish/guestfish-actions.pod:5047
15937 msgid "write"
15938 msgstr "write"
15939
15940 #. type: verbatim
15941 #: ../fish/guestfish-actions.pod:5049
15942 #, no-wrap
15943 msgid ""
15944 " write path content\n"
15945 "\n"
15946 msgstr ""
15947 " write шлях дані\n"
15948 "\n"
15949
15950 #. type: textblock
15951 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15952 msgid ""
15953 "This call creates a file called C<path>.  The content of the file is the "
15954 "string C<content> (which can contain any 8 bit data)."
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:5054
15959 msgid "See also L</write-append>."
15960 msgstr ""
15961
15962 #. type: =head2
15963 #: ../fish/guestfish-actions.pod:5059
15964 msgid "write-append"
15965 msgstr ""
15966
15967 #. type: verbatim
15968 #: ../fish/guestfish-actions.pod:5061
15969 #, no-wrap
15970 msgid ""
15971 " write-append path content\n"
15972 "\n"
15973 msgstr ""
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15977 msgid ""
15978 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15979 "not exist, then a new file is created."
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish-actions.pod:5066
15984 msgid "See also L</write>."
15985 msgstr ""
15986
15987 #. type: =head2
15988 #: ../fish/guestfish-actions.pod:5071
15989 msgid "write-file"
15990 msgstr "write-file"
15991
15992 #. type: verbatim
15993 #: ../fish/guestfish-actions.pod:5073
15994 #, no-wrap
15995 msgid ""
15996 " write-file path content size\n"
15997 "\n"
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7700
16002 msgid ""
16003 "This call creates a file called C<path>.  The contents of the file is the "
16004 "string C<content> (which can contain any 8 bit data), with length C<size>."
16005 msgstr ""
16006
16007 #. type: textblock
16008 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7704
16009 msgid ""
16010 "As a special case, if C<size> is C<0> then the length is calculated using "
16011 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16012 msgstr ""
16013
16014 #. type: textblock
16015 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7708
16016 msgid ""
16017 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16018 "I<not> work, even if the length is specified."
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-actions.pod:5089
16023 msgid ""
16024 "This function is deprecated.  In new code, use the L</write> call instead."
16025 msgstr ""
16026
16027 #. type: =head2
16028 #: ../fish/guestfish-actions.pod:5096
16029 msgid "zegrep"
16030 msgstr "zegrep"
16031
16032 #. type: verbatim
16033 #: ../fish/guestfish-actions.pod:5098
16034 #, no-wrap
16035 msgid ""
16036 " zegrep regex path\n"
16037 "\n"
16038 msgstr ""
16039 " zegrep формальний_вираз шлях\n"
16040 "\n"
16041
16042 #. type: textblock
16043 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16044 msgid ""
16045 "This calls the external C<zegrep> program and returns the matching lines."
16046 msgstr ""
16047
16048 #. type: =head2
16049 #: ../fish/guestfish-actions.pod:5106
16050 msgid "zegrepi"
16051 msgstr "zegrepi"
16052
16053 #. type: verbatim
16054 #: ../fish/guestfish-actions.pod:5108
16055 #, no-wrap
16056 msgid ""
16057 " zegrepi regex path\n"
16058 "\n"
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16063 msgid ""
16064 "This calls the external C<zegrep -i> program and returns the matching lines."
16065 msgstr ""
16066
16067 #. type: =head2
16068 #: ../fish/guestfish-actions.pod:5116
16069 msgid "zero"
16070 msgstr "zero"
16071
16072 #. type: verbatim
16073 #: ../fish/guestfish-actions.pod:5118
16074 #, no-wrap
16075 msgid ""
16076 " zero device\n"
16077 "\n"
16078 msgstr ""
16079 " zero пристрій\n"
16080 "\n"
16081
16082 #. type: textblock
16083 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16084 msgid "This command writes zeroes over the first few blocks of C<device>."
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16089 msgid ""
16090 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16091 "securely wipe the device).  It should be sufficient to remove any partition "
16092 "tables, filesystem superblocks and so on."
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:5126
16097 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16098 msgstr ""
16099
16100 #. type: =head2
16101 #: ../fish/guestfish-actions.pod:5129
16102 msgid "zero-device"
16103 msgstr "zero-device"
16104
16105 #. type: verbatim
16106 #: ../fish/guestfish-actions.pod:5131
16107 #, no-wrap
16108 msgid ""
16109 " zero-device device\n"
16110 "\n"
16111 msgstr ""
16112 " zero-device пристрій\n"
16113 "\n"
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:5133
16117 msgid ""
16118 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16119 "which just zeroes the first few blocks of a device."
16120 msgstr ""
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:5140
16124 msgid "zerofree"
16125 msgstr "zerofree"
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:5142
16129 #, no-wrap
16130 msgid ""
16131 " zerofree device\n"
16132 "\n"
16133 msgstr ""
16134 " zerofree пристрій\n"
16135 "\n"
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
16139 msgid ""
16140 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16141 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16142 "possible to compress the filesystem more effectively."
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7820
16147 msgid "You should B<not> run this program if the filesystem is mounted."
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16152 msgid ""
16153 "It is possible that using this program can damage the filesystem or data on "
16154 "the filesystem."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../fish/guestfish-actions.pod:5155
16159 msgid "zfgrep"
16160 msgstr "zfgrep"
16161
16162 #. type: verbatim
16163 #: ../fish/guestfish-actions.pod:5157
16164 #, no-wrap
16165 msgid ""
16166 " zfgrep pattern path\n"
16167 "\n"
16168 msgstr ""
16169 " zfgrep шаблон шлях\n"
16170 "\n"
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7837
16174 msgid ""
16175 "This calls the external C<zfgrep> program and returns the matching lines."
16176 msgstr ""
16177
16178 #. type: =head2
16179 #: ../fish/guestfish-actions.pod:5165
16180 msgid "zfgrepi"
16181 msgstr "zfgrepi"
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish-actions.pod:5167
16185 #, no-wrap
16186 msgid ""
16187 " zfgrepi pattern path\n"
16188 "\n"
16189 msgstr ""
16190 " zfgrepi шаблон шлях\n"
16191 "\n"
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7856
16195 msgid ""
16196 "This calls the external C<zfgrep -i> program and returns the matching lines."
16197 msgstr ""
16198
16199 #. type: =head2
16200 #: ../fish/guestfish-actions.pod:5175
16201 msgid "zfile"
16202 msgstr "zfile"
16203
16204 #. type: verbatim
16205 #: ../fish/guestfish-actions.pod:5177
16206 #, no-wrap
16207 msgid ""
16208 " zfile meth path\n"
16209 "\n"
16210 msgstr ""
16211 " zfile метод шлях\n"
16212 "\n"
16213
16214 #. type: textblock
16215 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7875
16216 msgid ""
16217 "This command runs C<file> after first decompressing C<path> using C<method>."
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7878
16222 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16223 msgstr ""
16224
16225 #. type: textblock
16226 #: ../fish/guestfish-actions.pod:5184
16227 msgid ""
16228 "Since 1.0.63, use L</file> instead which can now process compressed files."
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:5187
16233 msgid ""
16234 "This function is deprecated.  In new code, use the L</file> call instead."
16235 msgstr ""
16236
16237 #. type: =head2
16238 #: ../fish/guestfish-actions.pod:5194
16239 msgid "zgrep"
16240 msgstr "zgrep"
16241
16242 #. type: verbatim
16243 #: ../fish/guestfish-actions.pod:5196
16244 #, no-wrap
16245 msgid ""
16246 " zgrep regex path\n"
16247 "\n"
16248 msgstr ""
16249 " zgrep формальний_вираз шлях\n"
16250 "\n"
16251
16252 #. type: textblock
16253 #: ../fish/guestfish-actions.pod:5198 ../src/guestfs-actions.pod:7902
16254 msgid ""
16255 "This calls the external C<zgrep> program and returns the matching lines."
16256 msgstr ""
16257
16258 #. type: =head2
16259 #: ../fish/guestfish-actions.pod:5204
16260 msgid "zgrepi"
16261 msgstr "zgrepi"
16262
16263 #. type: verbatim
16264 #: ../fish/guestfish-actions.pod:5206
16265 #, no-wrap
16266 msgid ""
16267 " zgrepi regex path\n"
16268 "\n"
16269 msgstr ""
16270 " zgrepi формальний_вираз шлях\n"
16271 "\n"
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:5208 ../src/guestfs-actions.pod:7921
16275 msgid ""
16276 "This calls the external C<zgrep -i> program and returns the matching lines."
16277 msgstr ""
16278
16279 #. type: =head2
16280 #: ../fish/guestfish-commands.pod:1
16281 msgid "alloc"
16282 msgstr "alloc"
16283
16284 #. type: =head2
16285 #: ../fish/guestfish-commands.pod:3
16286 msgid "allocate"
16287 msgstr ""
16288
16289 #. type: verbatim
16290 #: ../fish/guestfish-commands.pod:5
16291 #, no-wrap
16292 msgid ""
16293 " alloc filename size\n"
16294 "\n"
16295 msgstr ""
16296
16297 #. type: textblock
16298 #: ../fish/guestfish-commands.pod:7
16299 msgid ""
16300 "This creates an empty (zeroed) file of the given size, and then adds so it "
16301 "can be further examined."
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16306 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16311 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../fish/guestfish-commands.pod:14
16316 msgid ""
16317 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16318 "image, see L</PREPARED DISK IMAGES>."
16319 msgstr ""
16320
16321 #. type: =head2
16322 #: ../fish/guestfish-commands.pod:17
16323 msgid "copy-in"
16324 msgstr "copy-in"
16325
16326 #. type: verbatim
16327 #: ../fish/guestfish-commands.pod:19
16328 #, no-wrap
16329 msgid ""
16330 " copy-in local [local ...] /remotedir\n"
16331 "\n"
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../fish/guestfish-commands.pod:21
16336 msgid ""
16337 "C<copy-in> copies local files or directories recursively into the disk "
16338 "image, placing them in the directory called C</remotedir> (which must "
16339 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16340 "other commands as necessary."
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../fish/guestfish-commands.pod:26
16345 msgid ""
16346 "Multiple local files and directories can be specified, but the last "
16347 "parameter must always be a remote directory.  Wildcards cannot be used."
16348 msgstr ""
16349
16350 #. type: =head2
16351 #: ../fish/guestfish-commands.pod:30
16352 msgid "copy-out"
16353 msgstr "copy-out"
16354
16355 #. type: verbatim
16356 #: ../fish/guestfish-commands.pod:32
16357 #, no-wrap
16358 msgid ""
16359 " copy-out remote [remote ...] localdir\n"
16360 "\n"
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-commands.pod:34
16365 msgid ""
16366 "C<copy-out> copies remote files or directories recursively out of the disk "
16367 "image, placing them on the host disk in a local directory called C<localdir> "
16368 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16369 "download>, L</tar-out> and other commands as necessary."
16370 msgstr ""
16371
16372 #. type: textblock
16373 #: ../fish/guestfish-commands.pod:40
16374 msgid ""
16375 "Multiple remote files and directories can be specified, but the last "
16376 "parameter must always be a local directory.  To download to the current "
16377 "directory, use C<.> as in:"
16378 msgstr ""
16379
16380 #. type: verbatim
16381 #: ../fish/guestfish-commands.pod:44
16382 #, no-wrap
16383 msgid ""
16384 " copy-out /home .\n"
16385 "\n"
16386 msgstr ""
16387 " copy-out /home .\n"
16388 "\n"
16389
16390 #. type: textblock
16391 #: ../fish/guestfish-commands.pod:46
16392 msgid ""
16393 "Wildcards cannot be used in the ordinary command, but you can use them with "
16394 "the help of L</glob> like this:"
16395 msgstr ""
16396
16397 #. type: verbatim
16398 #: ../fish/guestfish-commands.pod:49
16399 #, no-wrap
16400 msgid ""
16401 " glob copy-out /home/* .\n"
16402 "\n"
16403 msgstr ""
16404 " glob copy-out /home/* .\n"
16405 "\n"
16406
16407 #. type: =head2
16408 #: ../fish/guestfish-commands.pod:51
16409 msgid "display"
16410 msgstr ""
16411
16412 #. type: verbatim
16413 #: ../fish/guestfish-commands.pod:53
16414 #, no-wrap
16415 msgid ""
16416 " display filename\n"
16417 "\n"
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../fish/guestfish-commands.pod:55
16422 msgid ""
16423 "Use C<display> (a graphical display program) to display an image file.  It "
16424 "downloads the file, and runs C<display> on it."
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish-commands.pod:58
16429 msgid ""
16430 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16431 "environment variable.  For example to use the GNOME display program:"
16432 msgstr ""
16433
16434 #. type: verbatim
16435 #: ../fish/guestfish-commands.pod:61
16436 #, no-wrap
16437 msgid ""
16438 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16439 "\n"
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-commands.pod:63
16444 msgid "See also L<display(1)>."
16445 msgstr ""
16446
16447 #. type: =head2
16448 #: ../fish/guestfish-commands.pod:65
16449 msgid "echo"
16450 msgstr "echo"
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish-commands.pod:67
16454 #, no-wrap
16455 msgid ""
16456 " echo [params ...]\n"
16457 "\n"
16458 msgstr ""
16459 " echo [параметри...]\n"
16460 "\n"
16461
16462 #. type: textblock
16463 #: ../fish/guestfish-commands.pod:69
16464 msgid "This echos the parameters to the terminal."
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../fish/guestfish-commands.pod:71
16469 msgid "edit"
16470 msgstr "edit"
16471
16472 #. type: =head2
16473 #: ../fish/guestfish-commands.pod:73
16474 msgid "vi"
16475 msgstr "vi"
16476
16477 #. type: =head2
16478 #: ../fish/guestfish-commands.pod:75
16479 msgid "emacs"
16480 msgstr "emacs"
16481
16482 #. type: verbatim
16483 #: ../fish/guestfish-commands.pod:77
16484 #, no-wrap
16485 msgid ""
16486 " edit filename\n"
16487 "\n"
16488 msgstr ""
16489 " edit назва_файла\n"
16490 "\n"
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-commands.pod:79
16494 msgid ""
16495 "This is used to edit a file.  It downloads the file, edits it locally using "
16496 "your editor, then uploads the result."
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish-commands.pod:82
16501 msgid ""
16502 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16503 "or C<emacs> you will get those corresponding editors."
16504 msgstr ""
16505
16506 #. type: =head2
16507 #: ../fish/guestfish-commands.pod:86
16508 msgid "glob"
16509 msgstr "glob"
16510
16511 #. type: verbatim
16512 #: ../fish/guestfish-commands.pod:88
16513 #, no-wrap
16514 msgid ""
16515 " glob command args...\n"
16516 "\n"
16517 msgstr ""
16518 " glob команда параметри...\n"
16519 "\n"
16520
16521 #. type: textblock
16522 #: ../fish/guestfish-commands.pod:90
16523 msgid ""
16524 "Expand wildcards in any paths in the args list, and run C<command> "
16525 "repeatedly on each matching path."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-commands.pod:93
16530 msgid "See L</WILDCARDS AND GLOBBING>."
16531 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16532
16533 #. type: =head2
16534 #: ../fish/guestfish-commands.pod:95
16535 msgid "hexedit"
16536 msgstr "hexedit"
16537
16538 #. type: verbatim
16539 #: ../fish/guestfish-commands.pod:97
16540 #, no-wrap
16541 msgid ""
16542 " hexedit <filename|device>\n"
16543 " hexedit <filename|device> <max>\n"
16544 " hexedit <filename|device> <start> <max>\n"
16545 "\n"
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish-commands.pod:101
16550 msgid ""
16551 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16552 "device."
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-commands.pod:104
16557 msgid ""
16558 "This command works by downloading potentially the whole file or device, "
16559 "editing it locally, then uploading it.  If the file or device is large, you "
16560 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16561 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16562 "usual modifiers allowed such as C<1M> (1 megabyte)."
16563 msgstr ""
16564
16565 #. type: textblock
16566 #: ../fish/guestfish-commands.pod:111
16567 msgid "For example to edit the first few sectors of a disk you might do:"
16568 msgstr ""
16569
16570 #. type: verbatim
16571 #: ../fish/guestfish-commands.pod:114
16572 #, no-wrap
16573 msgid ""
16574 " hexedit /dev/sda 1M\n"
16575 "\n"
16576 msgstr ""
16577 " hexedit /dev/sda 1M\n"
16578 "\n"
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-commands.pod:116
16582 msgid ""
16583 "which would allow you to edit anywhere within the first megabyte of the disk."
16584 msgstr ""
16585
16586 #. type: textblock
16587 #: ../fish/guestfish-commands.pod:119
16588 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16589 msgstr ""
16590
16591 #. type: verbatim
16592 #: ../fish/guestfish-commands.pod:121
16593 #, no-wrap
16594 msgid ""
16595 " hexedit /dev/sda1 0x400 0x400\n"
16596 "\n"
16597 msgstr ""
16598 " hexedit /dev/sda1 0x400 0x400\n"
16599 "\n"
16600
16601 #. type: textblock
16602 #: ../fish/guestfish-commands.pod:123
16603 msgid "(assuming the superblock is in the standard location)."
16604 msgstr ""
16605
16606 #. type: textblock
16607 #: ../fish/guestfish-commands.pod:125
16608 msgid ""
16609 "This command requires the external L<hexedit(1)> program.  You can specify "
16610 "another program to use by setting the C<HEXEDITOR> environment variable."
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-commands.pod:129
16615 msgid "See also L</hexdump>."
16616 msgstr "Див. також L</hexdump>."
16617
16618 #. type: =head2
16619 #: ../fish/guestfish-commands.pod:131
16620 msgid "lcd"
16621 msgstr "lcd"
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish-commands.pod:133
16625 #, no-wrap
16626 msgid ""
16627 " lcd directory\n"
16628 "\n"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-commands.pod:135
16633 msgid ""
16634 "Change the local directory, ie. the current directory of guestfish itself."
16635 msgstr ""
16636
16637 #. type: textblock
16638 #: ../fish/guestfish-commands.pod:138
16639 msgid "Note that C<!cd> won't do what you might expect."
16640 msgstr ""
16641
16642 #. type: =head2
16643 #: ../fish/guestfish-commands.pod:140
16644 msgid "man"
16645 msgstr "man"
16646
16647 #. type: =head2
16648 #: ../fish/guestfish-commands.pod:142
16649 msgid "manual"
16650 msgstr ""
16651
16652 #. type: verbatim
16653 #: ../fish/guestfish-commands.pod:144
16654 #, no-wrap
16655 msgid ""
16656 "  man\n"
16657 "\n"
16658 msgstr ""
16659 "  man\n"
16660 "\n"
16661
16662 #. type: textblock
16663 #: ../fish/guestfish-commands.pod:146
16664 msgid "Opens the manual page for guestfish."
16665 msgstr ""
16666
16667 #. type: =head2
16668 #: ../fish/guestfish-commands.pod:148
16669 msgid "more"
16670 msgstr "more"
16671
16672 #. type: =head2
16673 #: ../fish/guestfish-commands.pod:150
16674 msgid "less"
16675 msgstr "less"
16676
16677 #. type: verbatim
16678 #: ../fish/guestfish-commands.pod:152
16679 #, no-wrap
16680 msgid ""
16681 " more filename\n"
16682 "\n"
16683 msgstr ""
16684
16685 #. type: verbatim
16686 #: ../fish/guestfish-commands.pod:154
16687 #, no-wrap
16688 msgid ""
16689 " less filename\n"
16690 "\n"
16691 msgstr ""
16692
16693 #. type: textblock
16694 #: ../fish/guestfish-commands.pod:156
16695 msgid "This is used to view a file."
16696 msgstr ""
16697
16698 #. type: textblock
16699 #: ../fish/guestfish-commands.pod:158
16700 msgid ""
16701 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16702 "C<less> you will get the C<less> command specifically."
16703 msgstr ""
16704
16705 #. type: =head2
16706 #: ../fish/guestfish-commands.pod:161
16707 msgid "reopen"
16708 msgstr "reopen"
16709
16710 #. type: verbatim
16711 #: ../fish/guestfish-commands.pod:163
16712 #, no-wrap
16713 msgid ""
16714 "  reopen\n"
16715 "\n"
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish-commands.pod:165
16720 msgid ""
16721 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16722 "normally, because the handle is closed properly when guestfish exits.  "
16723 "However this is occasionally useful for testing."
16724 msgstr ""
16725
16726 #. type: =head2
16727 #: ../fish/guestfish-commands.pod:169
16728 msgid "sparse"
16729 msgstr "sparse"
16730
16731 #. type: verbatim
16732 #: ../fish/guestfish-commands.pod:171
16733 #, no-wrap
16734 msgid ""
16735 " sparse filename size\n"
16736 "\n"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish-commands.pod:173
16741 msgid ""
16742 "This creates an empty sparse file of the given size, and then adds so it can "
16743 "be further examined."
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-commands.pod:176
16748 msgid ""
16749 "In all respects it works the same as the L</alloc> command, except that the "
16750 "image file is allocated sparsely, which means that disk blocks are not "
16751 "assigned to the file until they are needed.  Sparse disk files only use "
16752 "space when written to, but they are slower and there is a danger you could "
16753 "run out of real disk space during a write operation."
16754 msgstr ""
16755
16756 #. type: =head2
16757 #: ../fish/guestfish-commands.pod:186
16758 msgid "supported"
16759 msgstr "supported"
16760
16761 #. type: verbatim
16762 #: ../fish/guestfish-commands.pod:188
16763 #, no-wrap
16764 msgid ""
16765 " supported\n"
16766 "\n"
16767 msgstr ""
16768 " supported\n"
16769 "\n"
16770
16771 #. type: textblock
16772 #: ../fish/guestfish-commands.pod:190
16773 msgid ""
16774 "This command returns a list of the optional groups known to the daemon, and "
16775 "indicates which ones are supported by this build of the libguestfs appliance."
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../fish/guestfish-commands.pod:194
16780 msgid "See also L<guestfs(3)/AVAILABILITY>."
16781 msgstr ""
16782
16783 #. type: =head2
16784 #: ../fish/guestfish-commands.pod:196
16785 msgid "time"
16786 msgstr "time"
16787
16788 #. type: verbatim
16789 #: ../fish/guestfish-commands.pod:198
16790 #, no-wrap
16791 msgid ""
16792 " time command args...\n"
16793 "\n"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-commands.pod:200
16798 msgid ""
16799 "Run the command as usual, but print the elapsed time afterwards.  This can "
16800 "be useful for benchmarking operations."
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish.pod:5
16805 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16806 msgstr ""
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish.pod:9
16810 #, no-wrap
16811 msgid ""
16812 " guestfish [--options] [commands]\n"
16813 "\n"
16814 msgstr ""
16815
16816 #. type: verbatim
16817 #: ../fish/guestfish.pod:11
16818 #, no-wrap
16819 msgid ""
16820 " guestfish\n"
16821 "\n"
16822 msgstr ""
16823
16824 #. type: verbatim
16825 #: ../fish/guestfish.pod:13
16826 #, no-wrap
16827 msgid ""
16828 " guestfish [--ro|--rw] -a disk.img\n"
16829 "\n"
16830 msgstr ""
16831
16832 #. type: verbatim
16833 #: ../fish/guestfish.pod:15
16834 #, no-wrap
16835 msgid ""
16836 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16837 "\n"
16838 msgstr ""
16839
16840 #. type: verbatim
16841 #: ../fish/guestfish.pod:17
16842 #, no-wrap
16843 msgid ""
16844 " guestfish -d libvirt-domain\n"
16845 "\n"
16846 msgstr ""
16847
16848 #. type: verbatim
16849 #: ../fish/guestfish.pod:19
16850 #, no-wrap
16851 msgid ""
16852 " guestfish [--ro|--rw] -a disk.img -i\n"
16853 "\n"
16854 msgstr ""
16855
16856 #. type: verbatim
16857 #: ../fish/guestfish.pod:21
16858 #, no-wrap
16859 msgid ""
16860 " guestfish -d libvirt-domain -i\n"
16861 "\n"
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish.pod:25
16866 msgid ""
16867 "Using guestfish in read/write mode on live virtual machines can be "
16868 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16869 "option to use guestfish safely if the disk image or virtual machine might be "
16870 "live."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:32
16875 msgid ""
16876 "Guestfish is a shell and command-line tool for examining and modifying "
16877 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16878 "functionality of the guestfs API, see L<guestfs(3)>."
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish.pod:36
16883 msgid ""
16884 "Guestfish gives you structured access to the libguestfs API, from shell "
16885 "scripts or the command line or interactively.  If you want to rescue a "
16886 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16887 "command."
16888 msgstr ""
16889
16890 #. type: =head2
16891 #: ../fish/guestfish.pod:43
16892 msgid "As an interactive shell"
16893 msgstr ""
16894
16895 #. type: verbatim
16896 #: ../fish/guestfish.pod:45
16897 #, no-wrap
16898 msgid ""
16899 " $ guestfish\n"
16900 " \n"
16901 msgstr ""
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish.pod:47
16905 #, no-wrap
16906 msgid ""
16907 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16908 " editing virtual machine filesystems.\n"
16909 " \n"
16910 msgstr ""
16911
16912 #. type: verbatim
16913 #: ../fish/guestfish.pod:50
16914 #, no-wrap
16915 msgid ""
16916 " Type: 'help' for a list of commands\n"
16917 "       'man' to read the manual\n"
16918 "       'quit' to quit the shell\n"
16919 " \n"
16920 msgstr ""
16921
16922 #. type: verbatim
16923 #: ../fish/guestfish.pod:54
16924 #, no-wrap
16925 msgid ""
16926 " ><fs> add-ro disk.img\n"
16927 " ><fs> run\n"
16928 " ><fs> list-filesystems\n"
16929 " /dev/sda1: ext4\n"
16930 " /dev/vg_guest/lv_root: ext4\n"
16931 " /dev/vg_guest/lv_swap: swap\n"
16932 " ><fs> mount /dev/vg_guest/lv_root /\n"
16933 " ><fs> cat /etc/fstab\n"
16934 " # /etc/fstab\n"
16935 " # Created by anaconda\n"
16936 " [...]\n"
16937 " ><fs> exit\n"
16938 "\n"
16939 msgstr ""
16940
16941 #. type: =head2
16942 #: ../fish/guestfish.pod:67
16943 msgid "From shell scripts"
16944 msgstr ""
16945
16946 #. type: textblock
16947 #: ../fish/guestfish.pod:69
16948 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16949 msgstr ""
16950
16951 #. type: verbatim
16952 #: ../fish/guestfish.pod:71
16953 #, no-wrap
16954 msgid ""
16955 " guestfish <<_EOF_\n"
16956 " add disk.img\n"
16957 " run\n"
16958 " mount /dev/vg_guest/lv_root /\n"
16959 " write /etc/motd \"Welcome, new users\"\n"
16960 " _EOF_\n"
16961 "\n"
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish.pod:78
16966 msgid "List the LVM logical volumes in a disk image:"
16967 msgstr ""
16968
16969 #. type: verbatim
16970 #: ../fish/guestfish.pod:80
16971 #, no-wrap
16972 msgid ""
16973 " guestfish -a disk.img --ro <<_EOF_\n"
16974 " run\n"
16975 " lvs\n"
16976 " _EOF_\n"
16977 "\n"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish.pod:85
16982 msgid "List all the filesystems in a disk image:"
16983 msgstr ""
16984
16985 #. type: verbatim
16986 #: ../fish/guestfish.pod:87
16987 #, no-wrap
16988 msgid ""
16989 " guestfish -a disk.img --ro <<_EOF_\n"
16990 " run\n"
16991 " list-filesystems\n"
16992 " _EOF_\n"
16993 "\n"
16994 msgstr ""
16995
16996 #. type: =head2
16997 #: ../fish/guestfish.pod:92
16998 msgid "On one command line"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17003 msgid "Update C</etc/resolv.conf> in a guest:"
17004 msgstr ""
17005
17006 #. type: verbatim
17007 #: ../fish/guestfish.pod:96
17008 #, no-wrap
17009 msgid ""
17010 " guestfish \\\n"
17011 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17012 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17013 "\n"
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish.pod:100
17018 msgid "Edit C</boot/grub/grub.conf> interactively:"
17019 msgstr ""
17020
17021 #. type: verbatim
17022 #: ../fish/guestfish.pod:102
17023 #, no-wrap
17024 msgid ""
17025 " guestfish --rw --add disk.img \\\n"
17026 "   --mount /dev/vg_guest/lv_root \\\n"
17027 "   --mount /dev/sda1:/boot \\\n"
17028 "   edit /boot/grub/grub.conf\n"
17029 "\n"
17030 msgstr ""
17031
17032 #. type: =head2
17033 #: ../fish/guestfish.pod:107
17034 msgid "Mount disks automatically"
17035 msgstr ""
17036
17037 #. type: textblock
17038 #: ../fish/guestfish.pod:109
17039 msgid ""
17040 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17041 msgstr ""
17042
17043 #. type: verbatim
17044 #: ../fish/guestfish.pod:112
17045 #, no-wrap
17046 msgid ""
17047 " guestfish --ro -a disk.img -i cat /etc/group\n"
17048 "\n"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish.pod:114
17053 #, no-wrap
17054 msgid ""
17055 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish.pod:116
17061 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17062 msgstr ""
17063
17064 #. type: verbatim
17065 #: ../fish/guestfish.pod:118
17066 #, no-wrap
17067 msgid ""
17068 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17069 "\n"
17070 msgstr ""
17071
17072 #. type: =head2
17073 #: ../fish/guestfish.pod:120
17074 msgid "As a script interpreter"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish.pod:122
17079 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish.pod:124
17084 #, no-wrap
17085 msgid ""
17086 " #!/usr/bin/guestfish -f\n"
17087 " sparse test1.img 100M\n"
17088 " run\n"
17089 " part-disk /dev/sda mbr\n"
17090 " mkfs ext2 /dev/sda1\n"
17091 "\n"
17092 msgstr ""
17093
17094 #. type: =head2
17095 #: ../fish/guestfish.pod:130
17096 msgid "Start with a prepared disk"
17097 msgstr ""
17098
17099 #. type: textblock
17100 #: ../fish/guestfish.pod:132
17101 msgid ""
17102 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17103 "single ext2-formatted partition:"
17104 msgstr ""
17105
17106 #. type: verbatim
17107 #: ../fish/guestfish.pod:135
17108 #, no-wrap
17109 msgid ""
17110 " guestfish -N fs\n"
17111 "\n"
17112 msgstr ""
17113
17114 #. type: textblock
17115 #: ../fish/guestfish.pod:137
17116 msgid "To list what is available do:"
17117 msgstr ""
17118
17119 #. type: verbatim
17120 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17121 #, no-wrap
17122 msgid ""
17123 " guestfish -N help | less\n"
17124 "\n"
17125 msgstr ""
17126
17127 #. type: =head2
17128 #: ../fish/guestfish.pod:141
17129 msgid "Remote control"
17130 msgstr "Дистанційне керування"
17131
17132 #. type: verbatim
17133 #: ../fish/guestfish.pod:143
17134 #, no-wrap
17135 msgid ""
17136 " eval \"`guestfish --listen`\"\n"
17137 " guestfish --remote add-ro disk.img\n"
17138 " guestfish --remote run\n"
17139 " guestfish --remote lvs\n"
17140 "\n"
17141 msgstr ""
17142 " eval \"`guestfish --listen`\"\n"
17143 " guestfish --remote add-ro disk.img\n"
17144 " guestfish --remote run\n"
17145 " guestfish --remote lvs\n"
17146 "\n"
17147
17148 #. type: textblock
17149 #: ../fish/guestfish.pod:154
17150 msgid "Displays general help on options."
17151 msgstr ""
17152
17153 #. type: =item
17154 #: ../fish/guestfish.pod:158
17155 msgid "B<--cmd-help>"
17156 msgstr "B<--cmd-help>"
17157
17158 #. type: textblock
17159 #: ../fish/guestfish.pod:160
17160 msgid "Lists all available guestfish commands."
17161 msgstr ""
17162
17163 #. type: =item
17164 #: ../fish/guestfish.pod:162
17165 msgid "B<-h cmd>"
17166 msgstr "B<-h команда>"
17167
17168 #. type: =item
17169 #: ../fish/guestfish.pod:164
17170 msgid "B<--cmd-help cmd>"
17171 msgstr "B<--cmd-help команда>"
17172
17173 #. type: textblock
17174 #: ../fish/guestfish.pod:166
17175 msgid "Displays detailed help on a single command C<cmd>."
17176 msgstr ""
17177
17178 #. type: =item
17179 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17180 msgid "B<-a image>"
17181 msgstr "B<-a образ>"
17182
17183 #. type: =item
17184 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17185 msgid "B<--add image>"
17186 msgstr "B<--add образ>"
17187
17188 #. type: textblock
17189 #: ../fish/guestfish.pod:172
17190 msgid "Add a block device or virtual machine image to the shell."
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish.pod:177
17195 msgid ""
17196 "Using this flag is mostly equivalent to using the C<add> command, with "
17197 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17198 "the I<--format=...> flag was given."
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17203 msgid ""
17204 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17205 "URI to use.  The default is to use the default libvirt connection."
17206 msgstr ""
17207
17208 #. type: =item
17209 #: ../fish/guestfish.pod:189
17210 msgid "B<--csh>"
17211 msgstr "B<--csh>"
17212
17213 #. type: textblock
17214 #: ../fish/guestfish.pod:191
17215 msgid ""
17216 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17217 "section L</REMOTE CONTROL AND CSH> below."
17218 msgstr ""
17219
17220 #. type: =item
17221 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17222 msgid "B<-d libvirt-domain>"
17223 msgstr "B<-d домен-libvirt>"
17224
17225 #. type: =item
17226 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17227 msgid "B<--domain libvirt-domain>"
17228 msgstr "B<--domain домен-libvirt>"
17229
17230 #. type: textblock
17231 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17232 msgid ""
17233 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17234 "used, then any libvirt domain can be used.  However in write mode, only "
17235 "libvirt domains which are shut down can be named here."
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17240 msgid "Domain UUIDs can be used instead of names."
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish.pod:204
17245 msgid ""
17246 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17247 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17248 "if the I<--format:...> flag was given."
17249 msgstr ""
17250
17251 #. type: =item
17252 #: ../fish/guestfish.pod:208
17253 msgid "B<-D>"
17254 msgstr "B<-D>"
17255
17256 #. type: =item
17257 #: ../fish/guestfish.pod:210
17258 msgid "B<--no-dest-paths>"
17259 msgstr "B<--no-dest-paths>"
17260
17261 #. type: textblock
17262 #: ../fish/guestfish.pod:212
17263 msgid ""
17264 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17265 "to hit the tab key to complete paths on the guest filesystem, but this "
17266 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17267 "allow this feature to be disabled."
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17272 msgid ""
17273 "When prompting for keys and passphrases, guestfish normally turns echoing "
17274 "off so you cannot see what you are typing.  If you are not worried about "
17275 "Tempest attacks and there is no one else in the room you can specify this "
17276 "flag to see what you are typing."
17277 msgstr ""
17278
17279 #. type: =item
17280 #: ../fish/guestfish.pod:224
17281 msgid "B<-f file>"
17282 msgstr "B<-f файл>"
17283
17284 #. type: =item
17285 #: ../fish/guestfish.pod:226
17286 msgid "B<--file file>"
17287 msgstr "B<--file файл>"
17288
17289 #. type: textblock
17290 #: ../fish/guestfish.pod:228
17291 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17292 msgstr ""
17293
17294 #. type: verbatim
17295 #: ../fish/guestfish.pod:231
17296 #, no-wrap
17297 msgid ""
17298 " #!/usr/bin/guestfish -f\n"
17299 "\n"
17300 msgstr ""
17301 " #!/usr/bin/guestfish -f\n"
17302 "\n"
17303
17304 #. type: verbatim
17305 #: ../fish/guestfish.pod:244
17306 #, no-wrap
17307 msgid ""
17308 " guestfish --format=raw -a disk.img\n"
17309 "\n"
17310 msgstr ""
17311 " guestfish --format=raw -a disk.img\n"
17312 "\n"
17313
17314 #. type: verbatim
17315 #: ../fish/guestfish.pod:248
17316 #, no-wrap
17317 msgid ""
17318 " guestfish --format=raw -a disk.img --format -a another.img\n"
17319 "\n"
17320 msgstr ""
17321 " guestfish --format=raw -a disk.img --format -a another.img\n"
17322 "\n"
17323
17324 #. type: textblock
17325 #: ../fish/guestfish.pod:253
17326 msgid ""
17327 "If you have untrusted raw-format guest disk images, you should use this "
17328 "option to specify the disk format.  This avoids a possible security problem "
17329 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17330 msgstr ""
17331
17332 #. type: =item
17333 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17334 msgid "B<--inspector>"
17335 msgstr "B<--inspector>"
17336
17337 #. type: textblock
17338 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17339 msgid ""
17340 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17341 "system and mount filesystems as they would be mounted on the real virtual "
17342 "machine."
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish.pod:266
17347 msgid "Typical usage is either:"
17348 msgstr ""
17349
17350 #. type: verbatim
17351 #: ../fish/guestfish.pod:268
17352 #, no-wrap
17353 msgid ""
17354 " guestfish -d myguest -i\n"
17355 "\n"
17356 msgstr ""
17357 " guestfish -d myguest -i\n"
17358 "\n"
17359
17360 #. type: textblock
17361 #: ../fish/guestfish.pod:270
17362 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17363 msgstr ""
17364
17365 #. type: verbatim
17366 #: ../fish/guestfish.pod:272
17367 #, no-wrap
17368 msgid ""
17369 " guestfish --ro -d myguest -i\n"
17370 "\n"
17371 msgstr ""
17372 " guestfish --ro -d myguest -i\n"
17373 "\n"
17374
17375 #. type: textblock
17376 #: ../fish/guestfish.pod:274
17377 msgid "(for active domains, readonly), or specify the block device directly:"
17378 msgstr ""
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish.pod:276
17382 #, no-wrap
17383 msgid ""
17384 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17385 "\n"
17386 msgstr ""
17387 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17388 "\n"
17389
17390 #. type: textblock
17391 #: ../fish/guestfish.pod:278
17392 msgid ""
17393 "Note that the command line syntax changed slightly over older versions of "
17394 "guestfish.  You can still use the old syntax:"
17395 msgstr ""
17396
17397 #. type: verbatim
17398 #: ../fish/guestfish.pod:281
17399 #, no-wrap
17400 msgid ""
17401 " guestfish [--ro] -i disk.img\n"
17402 "\n"
17403 msgstr ""
17404 " guestfish [--ro] -i disk.img\n"
17405 "\n"
17406
17407 #. type: verbatim
17408 #: ../fish/guestfish.pod:283
17409 #, no-wrap
17410 msgid ""
17411 " guestfish [--ro] -i libvirt-domain\n"
17412 "\n"
17413 msgstr ""
17414
17415 #. type: textblock
17416 #: ../fish/guestfish.pod:285
17417 msgid ""
17418 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17419 "then using other commands to mount the filesystems that were found."
17420 msgstr ""
17421
17422 #. type: =item
17423 #: ../fish/guestfish.pod:294
17424 msgid "B<--listen>"
17425 msgstr "B<--listen>"
17426
17427 #. type: textblock
17428 #: ../fish/guestfish.pod:296
17429 msgid ""
17430 "Fork into the background and listen for remote commands.  See section L</"
17431 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17432 msgstr ""
17433
17434 #. type: =item
17435 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17436 msgid "B<--live>"
17437 msgstr "B<--live>"
17438
17439 #. type: textblock
17440 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17441 msgid ""
17442 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17443 "ATTACHING TO RUNNING DAEMONS>)."
17444 msgstr ""
17445
17446 #. type: =item
17447 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17448 msgid "B<-m dev[:mountpoint[:options]]>"
17449 msgstr ""
17450
17451 #. type: =item
17452 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17453 msgid "B<--mount dev[:mountpoint[:options]]>"
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../fish/guestfish.pod:308
17458 msgid "Mount the named partition or logical volume on the given mountpoint."
17459 msgstr ""
17460
17461 #. type: textblock
17462 #: ../fish/guestfish.pod:310
17463 msgid "If the mountpoint is omitted, it defaults to C</>."
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish.pod:312
17468 msgid "You have to mount something on C</> before most commands will work."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish.pod:314
17473 msgid ""
17474 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17475 "launched."
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish.pod:317
17480 msgid ""
17481 "If you don't know what filesystems a disk image contains, you can either run "
17482 "guestfish without this option, then list the partitions, filesystems and LVs "
17483 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17484 "commands), or you can use the L<virt-filesystems(1)> program."
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17489 msgid ""
17490 "The third (and rarely used) part of the mount parameter is the list of mount "
17491 "options used to mount the underlying filesystem.  If this is not given, then "
17492 "the mount options are either the empty string or C<ro> (the latter if the "
17493 "I<--ro> flag is used).  By specifying the mount options, you override this "
17494 "default choice.  Probably the only time you would use this is to enable ACLs "
17495 "and/or extended attributes if the filesystem can support them:"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17500 #, no-wrap
17501 msgid ""
17502 " -m /dev/sda1:/:acl,user_xattr\n"
17503 "\n"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish.pod:333
17508 msgid "Using this flag is equivalent to using the C<mount-options> command."
17509 msgstr ""
17510
17511 #. type: =item
17512 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17513 #: ../resize/virt-resize.pod:352
17514 msgid "B<-n>"
17515 msgstr "B<-n>"
17516
17517 #. type: =item
17518 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17519 msgid "B<--no-sync>"
17520 msgstr "B<--no-sync>"
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:339
17524 msgid ""
17525 "Disable autosync.  This is enabled by default.  See the discussion of "
17526 "autosync in the L<guestfs(3)> manpage."
17527 msgstr ""
17528
17529 #. type: =item
17530 #: ../fish/guestfish.pod:342
17531 msgid "B<-N type>"
17532 msgstr "B<-N тип>"
17533
17534 #. type: =item
17535 #: ../fish/guestfish.pod:344
17536 msgid "B<--new type>"
17537 msgstr "B<--new тип>"
17538
17539 #. type: =item
17540 #: ../fish/guestfish.pod:346
17541 msgid "B<-N help>"
17542 msgstr "B<-N help>"
17543
17544 #. type: textblock
17545 #: ../fish/guestfish.pod:348
17546 msgid ""
17547 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17548 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17549 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17550 "IMAGES> below."
17551 msgstr ""
17552
17553 #. type: =item
17554 #: ../fish/guestfish.pod:353
17555 msgid "B<--progress-bars>"
17556 msgstr "B<--progress-bars>"
17557
17558 #. type: textblock
17559 #: ../fish/guestfish.pod:355
17560 msgid "Enable progress bars, even when guestfish is used non-interactively."
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish.pod:357
17565 msgid ""
17566 "Progress bars are enabled by default when guestfish is used as an "
17567 "interactive shell."
17568 msgstr ""
17569
17570 #. type: =item
17571 #: ../fish/guestfish.pod:360
17572 msgid "B<--no-progress-bars>"
17573 msgstr "B<--no-progress-bars>"
17574
17575 #. type: textblock
17576 #: ../fish/guestfish.pod:362
17577 msgid "Disable progress bars."
17578 msgstr ""
17579
17580 #. type: =item
17581 #: ../fish/guestfish.pod:364
17582 msgid "B<--remote[=pid]>"
17583 msgstr "B<--remote[=pid]>"
17584
17585 #. type: textblock
17586 #: ../fish/guestfish.pod:366
17587 msgid ""
17588 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17589 "CONTROL GUESTFISH OVER A SOCKET> below."
17590 msgstr ""
17591
17592 #. type: =item
17593 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17594 #: ../rescue/virt-rescue.pod:161
17595 msgid "B<-r>"
17596 msgstr "B<-r>"
17597
17598 #. type: =item
17599 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17600 #: ../rescue/virt-rescue.pod:163
17601 msgid "B<--ro>"
17602 msgstr "B<--ro>"
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:373
17606 msgid ""
17607 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17608 "mounts are done read-only."
17609 msgstr ""
17610
17611 #. type: textblock
17612 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17613 msgid ""
17614 "The option must always be used if the disk image or virtual machine might be "
17615 "running, and is generally recommended in cases where you don't need write "
17616 "access to the disk."
17617 msgstr ""
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:380
17621 msgid ""
17622 "Note that prepared disk images created with I<-N> are not affected by this "
17623 "option.  Also commands like C<add> are not affected - you have to specify "
17624 "the C<readonly:true> option explicitly if you need it."
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../fish/guestfish.pod:384
17629 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17630 msgstr ""
17631
17632 #. type: =item
17633 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17634 #: ../rescue/virt-rescue.pod:173
17635 msgid "B<--selinux>"
17636 msgstr "B<--selinux>"
17637
17638 #. type: textblock
17639 #: ../fish/guestfish.pod:388
17640 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish.pod:394
17645 msgid ""
17646 "Enable very verbose messages.  This is particularly useful if you find a bug."
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish.pod:401
17651 msgid "Display the guestfish / libguestfs version number and exit."
17652 msgstr ""
17653
17654 #. type: =item
17655 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17656 #: ../rescue/virt-rescue.pod:190
17657 msgid "B<-w>"
17658 msgstr "B<-w>"
17659
17660 #. type: =item
17661 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17662 #: ../rescue/virt-rescue.pod:192
17663 msgid "B<--rw>"
17664 msgstr "B<--rw>"
17665
17666 #. type: textblock
17667 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17668 msgid ""
17669 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17670 "mounts are done read-write."
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../fish/guestfish.pod:410
17675 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../fish/guestfish.pod:414
17680 msgid "Echo each command before executing it."
17681 msgstr ""
17682
17683 #. type: =head1
17684 #: ../fish/guestfish.pod:418
17685 msgid "COMMANDS ON COMMAND LINE"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:420
17690 msgid ""
17691 "Any additional (non-option) arguments are treated as commands to execute."
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish.pod:423
17696 msgid ""
17697 "Commands to execute should be separated by a colon (C<:>), where the colon "
17698 "is a separate parameter.  Thus:"
17699 msgstr ""
17700
17701 #. type: verbatim
17702 #: ../fish/guestfish.pod:426
17703 #, no-wrap
17704 msgid ""
17705 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17706 "\n"
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish.pod:428
17711 msgid ""
17712 "If there are no additional arguments, then we enter a shell, either an "
17713 "interactive shell with a prompt (if the input is a terminal) or a non-"
17714 "interactive shell."
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:432
17719 msgid ""
17720 "In either command line mode or non-interactive shell, the first command that "
17721 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17722 "prompt) if a command fails, you can continue to enter commands."
17723 msgstr ""
17724
17725 #. type: =head1
17726 #: ../fish/guestfish.pod:437
17727 msgid "USING launch (OR run)"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish.pod:439
17732 msgid ""
17733 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17734 "then launch it, then mount any disks you need, and finally issue actions/"
17735 "commands.  So the general order of the day is:"
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish.pod:447
17740 msgid "add or -a/--add"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish.pod:451
17745 msgid "launch (aka run)"
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish.pod:455
17750 msgid "mount or -m/--mount"
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../fish/guestfish.pod:459
17755 msgid "any other commands"
17756 msgstr ""
17757
17758 #. type: textblock
17759 #: ../fish/guestfish.pod:463
17760 msgid ""
17761 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17762 "guest before mounting or performing any other commands."
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish.pod:466
17767 msgid ""
17768 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17769 "I<--new> options were given then C<run> is done automatically, simply "
17770 "because guestfish can't perform the action you asked for without doing this."
17771 msgstr ""
17772
17773 #. type: =head1
17774 #: ../fish/guestfish.pod:471
17775 msgid "OPENING DISKS FOR READ AND WRITE"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:473
17780 msgid ""
17781 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17782 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17783 "I<-i> and I<-m> open disk images read-only or for writing."
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:478
17788 msgid ""
17789 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17790 "opening disk images supplied on the command line for write.  To open a disk "
17791 "image read-only you have to do I<-a image --ro>."
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish.pod:482
17796 msgid ""
17797 "This matters: If you accidentally open a live VM disk image writable then "
17798 "you will cause irreversible disk corruption."
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish.pod:485
17803 msgid ""
17804 "In a future libguestfs we intend to change the default the other way.  Disk "
17805 "images will be opened read-only.  You will have to either specify "
17806 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17807 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17808 "access for disk images specified by those other command line options."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish.pod:492
17813 msgid ""
17814 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17815 "which does nothing (it is already the default).  However it is highly "
17816 "recommended that you use this option to indicate that you need write access, "
17817 "and prepare your scripts for the day when this option will be required for "
17818 "write access."
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../fish/guestfish.pod:498
17823 msgid ""
17824 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17825 "other libguestfs program apart from guestfish and guestmount."
17826 msgstr ""
17827
17828 #. type: =head1
17829 #: ../fish/guestfish.pod:501
17830 msgid "QUOTING"
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish.pod:503
17835 msgid ""
17836 "You can quote ordinary parameters using either single or double quotes.  For "
17837 "example:"
17838 msgstr ""
17839
17840 #. type: verbatim
17841 #: ../fish/guestfish.pod:506
17842 #, no-wrap
17843 msgid ""
17844 " add \"file with a space.img\"\n"
17845 "\n"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish.pod:508
17850 #, no-wrap
17851 msgid ""
17852 " rm '/file name'\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: verbatim
17857 #: ../fish/guestfish.pod:510
17858 #, no-wrap
17859 msgid ""
17860 " rm '/\"'\n"
17861 "\n"
17862 msgstr ""
17863
17864 #. type: textblock
17865 #: ../fish/guestfish.pod:512
17866 msgid ""
17867 "A few commands require a list of strings to be passed.  For these, use a "
17868 "whitespace-separated list, enclosed in quotes.  Strings containing "
17869 "whitespace to be passed through must be enclosed in single quotes.  A "
17870 "literal single quote must be escaped with a backslash."
17871 msgstr ""
17872
17873 #. type: verbatim
17874 #: ../fish/guestfish.pod:517
17875 #, no-wrap
17876 msgid ""
17877 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17878 " command \"/bin/echo 'foo      bar'\"\n"
17879 " command \"/bin/echo \\'foo\\'\"\n"
17880 "\n"
17881 msgstr ""
17882
17883 #. type: =head2
17884 #: ../fish/guestfish.pod:521
17885 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:523
17890 msgid ""
17891 "In double-quoted arguments (only) use backslash to insert special characters:"
17892 msgstr ""
17893
17894 #. type: =item
17895 #: ../fish/guestfish.pod:528
17896 msgid "C<\\a>"
17897 msgstr ""
17898
17899 #. type: textblock
17900 #: ../fish/guestfish.pod:530
17901 msgid "Alert (bell) character."
17902 msgstr ""
17903
17904 #. type: =item
17905 #: ../fish/guestfish.pod:532
17906 msgid "C<\\b>"
17907 msgstr ""
17908
17909 #. type: textblock
17910 #: ../fish/guestfish.pod:534
17911 msgid "Backspace character."
17912 msgstr ""
17913
17914 #. type: =item
17915 #: ../fish/guestfish.pod:536
17916 msgid "C<\\f>"
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish.pod:538
17921 msgid "Form feed character."
17922 msgstr ""
17923
17924 #. type: =item
17925 #: ../fish/guestfish.pod:540
17926 msgid "C<\\n>"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish.pod:542
17931 msgid "Newline character."
17932 msgstr ""
17933
17934 #. type: =item
17935 #: ../fish/guestfish.pod:544
17936 msgid "C<\\r>"
17937 msgstr ""
17938
17939 #. type: textblock
17940 #: ../fish/guestfish.pod:546
17941 msgid "Carriage return character."
17942 msgstr ""
17943
17944 #. type: =item
17945 #: ../fish/guestfish.pod:548
17946 msgid "C<\\t>"
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish.pod:550
17951 msgid "Horizontal tab character."
17952 msgstr ""
17953
17954 #. type: =item
17955 #: ../fish/guestfish.pod:552
17956 msgid "C<\\v>"
17957 msgstr ""
17958
17959 #. type: textblock
17960 #: ../fish/guestfish.pod:554
17961 msgid "Vertical tab character."
17962 msgstr ""
17963
17964 #. type: =item
17965 #: ../fish/guestfish.pod:556
17966 msgid "C<\\\">"
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:558
17971 msgid "A literal double quote character."
17972 msgstr ""
17973
17974 #. type: =item
17975 #: ../fish/guestfish.pod:560
17976 msgid "C<\\ooo>"
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../fish/guestfish.pod:562
17981 msgid ""
17982 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17983 "(unlike C)."
17984 msgstr ""
17985
17986 #. type: =item
17987 #: ../fish/guestfish.pod:565
17988 msgid "C<\\xhh>"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish.pod:567
17993 msgid ""
17994 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish.pod:570
17999 msgid ""
18000 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18001 "strings."
18002 msgstr ""
18003
18004 #. type: =item
18005 #: ../fish/guestfish.pod:573
18006 msgid "C<\\\\>"
18007 msgstr ""
18008
18009 #. type: textblock
18010 #: ../fish/guestfish.pod:575
18011 msgid "A literal backslash character."
18012 msgstr ""
18013
18014 #. type: =head1
18015 #: ../fish/guestfish.pod:579
18016 msgid "OPTIONAL ARGUMENTS"
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../fish/guestfish.pod:581
18021 msgid ""
18022 "Some commands take optional arguments.  These arguments appear in this "
18023 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18024 msgstr ""
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish.pod:585
18028 #, no-wrap
18029 msgid ""
18030 " add-drive-opts filename\n"
18031 "\n"
18032 msgstr ""
18033
18034 #. type: verbatim
18035 #: ../fish/guestfish.pod:587
18036 #, no-wrap
18037 msgid ""
18038 " add-drive-opts filename readonly:true\n"
18039 "\n"
18040 msgstr ""
18041
18042 #. type: verbatim
18043 #: ../fish/guestfish.pod:589
18044 #, no-wrap
18045 msgid ""
18046 " add-drive-opts filename format:qcow2 readonly:false\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish.pod:591
18052 msgid ""
18053 "Each optional argument can appear at most once.  All optional arguments must "
18054 "appear after the required ones."
18055 msgstr ""
18056
18057 #. type: =head1
18058 #: ../fish/guestfish.pod:594
18059 msgid "NUMBERS"
18060 msgstr "ЧИСЛА"
18061
18062 #. type: textblock
18063 #: ../fish/guestfish.pod:596
18064 msgid ""
18065 "This section applies to all commands which can take integers as parameters."
18066 msgstr ""
18067
18068 #. type: =head2
18069 #: ../fish/guestfish.pod:599
18070 msgid "SIZE SUFFIX"
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../fish/guestfish.pod:601
18075 msgid ""
18076 "When the command takes a parameter measured in bytes, you can use one of the "
18077 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18078 msgstr ""
18079
18080 #. type: =item
18081 #: ../fish/guestfish.pod:607
18082 msgid "B<k> or B<K> or B<KiB>"
18083 msgstr "B<k>, B<K> або B<KiB>"
18084
18085 #. type: textblock
18086 #: ../fish/guestfish.pod:609
18087 msgid "The size in kilobytes (multiplied by 1024)."
18088 msgstr ""
18089
18090 #. type: =item
18091 #: ../fish/guestfish.pod:611
18092 msgid "B<KB>"
18093 msgstr "B<KB>"
18094
18095 #. type: textblock
18096 #: ../fish/guestfish.pod:613
18097 msgid "The size in SI 1000 byte units."
18098 msgstr ""
18099
18100 #. type: =item
18101 #: ../fish/guestfish.pod:615
18102 msgid "B<M> or B<MiB>"
18103 msgstr "B<M> або B<MiB>"
18104
18105 #. type: textblock
18106 #: ../fish/guestfish.pod:617
18107 msgid "The size in megabytes (multiplied by 1048576)."
18108 msgstr ""
18109
18110 #. type: =item
18111 #: ../fish/guestfish.pod:619
18112 msgid "B<MB>"
18113 msgstr "B<MB>"
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:621
18117 msgid "The size in SI 1000000 byte units."
18118 msgstr ""
18119
18120 #. type: =item
18121 #: ../fish/guestfish.pod:623
18122 msgid "B<G> or B<GiB>"
18123 msgstr "B<G> або B<GiB>"
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:625
18127 msgid "The size in gigabytes (multiplied by 2**30)."
18128 msgstr "Розмір у гігабайтах (з множником 2**30)."
18129
18130 #. type: =item
18131 #: ../fish/guestfish.pod:627
18132 msgid "B<GB>"
18133 msgstr "B<GB>"
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:629
18137 msgid "The size in SI 10**9 byte units."
18138 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18139
18140 #. type: =item
18141 #: ../fish/guestfish.pod:631
18142 msgid "B<T> or B<TiB>"
18143 msgstr "B<T> або B<TiB>"
18144
18145 #. type: textblock
18146 #: ../fish/guestfish.pod:633
18147 msgid "The size in terabytes (multiplied by 2**40)."
18148 msgstr "Розмір у терабайтах (з множником 2**40)."
18149
18150 #. type: =item
18151 #: ../fish/guestfish.pod:635
18152 msgid "B<TB>"
18153 msgstr "B<TB>"
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:637
18157 msgid "The size in SI 10**12 byte units."
18158 msgstr ""
18159
18160 #. type: =item
18161 #: ../fish/guestfish.pod:639
18162 msgid "B<P> or B<PiB>"
18163 msgstr "B<P> або B<PiB>"
18164
18165 #. type: textblock
18166 #: ../fish/guestfish.pod:641
18167 msgid "The size in petabytes (multiplied by 2**50)."
18168 msgstr ""
18169
18170 #. type: =item
18171 #: ../fish/guestfish.pod:643
18172 msgid "B<PB>"
18173 msgstr "B<PB>"
18174
18175 #. type: textblock
18176 #: ../fish/guestfish.pod:645
18177 msgid "The size in SI 10**15 byte units."
18178 msgstr ""
18179
18180 #. type: =item
18181 #: ../fish/guestfish.pod:647
18182 msgid "B<E> or B<EiB>"
18183 msgstr "B<E> або B<EiB>"
18184
18185 #. type: textblock
18186 #: ../fish/guestfish.pod:649
18187 msgid "The size in exabytes (multiplied by 2**60)."
18188 msgstr ""
18189
18190 #. type: =item
18191 #: ../fish/guestfish.pod:651
18192 msgid "B<EB>"
18193 msgstr "B<EB>"
18194
18195 #. type: textblock
18196 #: ../fish/guestfish.pod:653
18197 msgid "The size in SI 10**18 byte units."
18198 msgstr ""
18199
18200 #. type: =item
18201 #: ../fish/guestfish.pod:655
18202 msgid "B<Z> or B<ZiB>"
18203 msgstr "B<Z> або B<ZiB>"
18204
18205 #. type: textblock
18206 #: ../fish/guestfish.pod:657
18207 msgid "The size in zettabytes (multiplied by 2**70)."
18208 msgstr ""
18209
18210 #. type: =item
18211 #: ../fish/guestfish.pod:659
18212 msgid "B<ZB>"
18213 msgstr "B<ZB>"
18214
18215 #. type: textblock
18216 #: ../fish/guestfish.pod:661
18217 msgid "The size in SI 10**21 byte units."
18218 msgstr ""
18219
18220 #. type: =item
18221 #: ../fish/guestfish.pod:663
18222 msgid "B<Y> or B<YiB>"
18223 msgstr "B<Y> або B<YiB>"
18224
18225 #. type: textblock
18226 #: ../fish/guestfish.pod:665
18227 msgid "The size in yottabytes (multiplied by 2**80)."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:667
18232 msgid "B<YB>"
18233 msgstr "B<YB>"
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:669
18237 msgid "The size in SI 10**24 byte units."
18238 msgstr ""
18239
18240 #. type: verbatim
18241 #: ../fish/guestfish.pod:675
18242 #, no-wrap
18243 msgid ""
18244 " truncate-size /file 1G\n"
18245 "\n"
18246 msgstr ""
18247
18248 #. type: textblock
18249 #: ../fish/guestfish.pod:677
18250 msgid "would truncate the file to 1 gigabyte."
18251 msgstr ""
18252
18253 #. type: textblock
18254 #: ../fish/guestfish.pod:679
18255 msgid ""
18256 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18257 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18258 "suffix will probably not do what you expect."
18259 msgstr ""
18260
18261 #. type: =head2
18262 #: ../fish/guestfish.pod:683
18263 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:685
18268 msgid ""
18269 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18270 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18271 msgstr ""
18272
18273 #. type: verbatim
18274 #: ../fish/guestfish.pod:688
18275 #, no-wrap
18276 msgid ""
18277 " 1234      decimal number 1234\n"
18278 " 02322     octal number, equivalent to decimal 1234\n"
18279 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18280 "\n"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:692
18285 msgid ""
18286 "When using the C<chmod> command, you almost always want to specify an octal "
18287 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18288 "L<chmod(1)> program):"
18289 msgstr ""
18290
18291 #. type: verbatim
18292 #: ../fish/guestfish.pod:696
18293 #, no-wrap
18294 msgid ""
18295 " chmod 0777 /public  # OK\n"
18296 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18297 "\n"
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish.pod:699
18302 msgid ""
18303 "Commands that return numbers usually print them in decimal, but some "
18304 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18305 "octal, preceeded by C<0>)."
18306 msgstr ""
18307
18308 #. type: =head1
18309 #: ../fish/guestfish.pod:703
18310 msgid "WILDCARDS AND GLOBBING"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:705
18315 msgid ""
18316 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18317 "(globbing) by default.  So for example the following will not do what you "
18318 "expect:"
18319 msgstr ""
18320
18321 #. type: verbatim
18322 #: ../fish/guestfish.pod:709
18323 #, no-wrap
18324 msgid ""
18325 " rm-rf /home/*\n"
18326 "\n"
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../fish/guestfish.pod:711
18331 msgid ""
18332 "Assuming you don't have a directory called literally C</home/*> then the "
18333 "above command will return an error."
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish.pod:714
18338 msgid "To perform wildcard expansion, use the C<glob> command."
18339 msgstr ""
18340
18341 #. type: verbatim
18342 #: ../fish/guestfish.pod:716
18343 #, no-wrap
18344 msgid ""
18345 " glob rm-rf /home/*\n"
18346 "\n"
18347 msgstr ""
18348
18349 #. type: textblock
18350 #: ../fish/guestfish.pod:718
18351 msgid ""
18352 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18353 "many times), equivalent to:"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../fish/guestfish.pod:721
18358 #, no-wrap
18359 msgid ""
18360 " rm-rf /home/jim\n"
18361 " rm-rf /home/joe\n"
18362 " rm-rf /home/mary\n"
18363 "\n"
18364 msgstr ""
18365
18366 #. type: textblock
18367 #: ../fish/guestfish.pod:725
18368 msgid "C<glob> only works on simple guest paths and not on device names."
18369 msgstr ""
18370
18371 #. type: textblock
18372 #: ../fish/guestfish.pod:727
18373 msgid ""
18374 "If you have several parameters, each containing a wildcard, then glob will "
18375 "perform a Cartesian product."
18376 msgstr ""
18377
18378 #. type: =head1
18379 #: ../fish/guestfish.pod:730
18380 msgid "COMMENTS"
18381 msgstr "КОМЕНТАРІ"
18382
18383 #. type: textblock
18384 #: ../fish/guestfish.pod:732
18385 msgid ""
18386 "Any line which starts with a I<#> character is treated as a comment and "
18387 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18388 "a command.  For example:"
18389 msgstr ""
18390
18391 #. type: verbatim
18392 #: ../fish/guestfish.pod:736
18393 #, no-wrap
18394 msgid ""
18395 " # this is a comment\n"
18396 "         # this is a comment\n"
18397 " foo # NOT a comment\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:740
18403 msgid "Blank lines are also ignored."
18404 msgstr ""
18405
18406 #. type: =head1
18407 #: ../fish/guestfish.pod:742
18408 msgid "RUNNING COMMANDS LOCALLY"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish.pod:744
18413 msgid ""
18414 "Any line which starts with a I<!> character is treated as a command sent to "
18415 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18416 msgstr ""
18417
18418 #. type: verbatim
18419 #: ../fish/guestfish.pod:748
18420 #, no-wrap
18421 msgid ""
18422 " !mkdir local\n"
18423 " tgz-out /remote local/remote-data.tar.gz\n"
18424 "\n"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:751
18429 msgid ""
18430 "will create a directory C<local> on the host, and then export the contents "
18431 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18432 "(See C<tgz-out>)."
18433 msgstr ""
18434
18435 #. type: textblock
18436 #: ../fish/guestfish.pod:755
18437 msgid ""
18438 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18439 "effect, due to the way that subprocesses work in Unix."
18440 msgstr ""
18441
18442 #. type: =head2
18443 #: ../fish/guestfish.pod:758
18444 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:760
18449 msgid ""
18450 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18451 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18452 "and executed as guestfish commands."
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:764
18457 msgid ""
18458 "Thus you can use shell script to construct arbitrary guestfish commands "
18459 "which are then parsed by guestfish."
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:767
18464 msgid ""
18465 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18466 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18467 "if we use a shell script to create the guestfish commands for us:"
18468 msgstr ""
18469
18470 #. type: verbatim
18471 #: ../fish/guestfish.pod:772
18472 #, no-wrap
18473 msgid ""
18474 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18475 "\n"
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish.pod:774
18480 msgid "or with names like C</foo.001>:"
18481 msgstr ""
18482
18483 #. type: verbatim
18484 #: ../fish/guestfish.pod:776
18485 #, no-wrap
18486 msgid ""
18487 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18488 "\n"
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish.pod:778
18493 msgid ""
18494 "When using guestfish interactively it can be helpful to just run the shell "
18495 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18496 "ordinary I<!> local command), see what guestfish commands it would run, and "
18497 "when you are happy with those prepend the C<E<lt>> character to run the "
18498 "guestfish commands for real."
18499 msgstr ""
18500
18501 #. type: =head1
18502 #: ../fish/guestfish.pod:784
18503 msgid "PIPES"
18504 msgstr "КАНАЛИ"
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:786
18508 msgid ""
18509 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18510 "command (a guestfish command) to the second command (any host command).  For "
18511 "example:"
18512 msgstr ""
18513
18514 #. type: verbatim
18515 #: ../fish/guestfish.pod:790
18516 #, no-wrap
18517 msgid ""
18518 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18519 "\n"
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:792
18524 msgid ""
18525 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18526 "program).  The above command would list all accounts in the guest filesystem "
18527 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish.pod:797
18532 #, no-wrap
18533 msgid ""
18534 " hexdump /bin/ls | head\n"
18535 " list-devices | tail -1\n"
18536 " tgz-out / - | tar ztf -\n"
18537 "\n"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:801
18542 msgid ""
18543 "The space before the pipe symbol is required, any space after the pipe "
18544 "symbol is optional.  Everything after the pipe symbol is just passed "
18545 "straight to the host shell, so it can contain redirections, globs and "
18546 "anything else that makes sense on the host side."
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:806
18551 msgid ""
18552 "To use a literal argument which begins with a pipe symbol, you have to quote "
18553 "it, eg:"
18554 msgstr ""
18555
18556 #. type: verbatim
18557 #: ../fish/guestfish.pod:809
18558 #, no-wrap
18559 msgid ""
18560 " echo \"|\"\n"
18561 "\n"
18562 msgstr ""
18563
18564 #. type: =head1
18565 #: ../fish/guestfish.pod:811
18566 msgid "HOME DIRECTORIES"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:813
18571 msgid ""
18572 "If a parameter starts with the character C<~> then the tilde may be expanded "
18573 "as a home directory path (either C<~> for the current user's home directory, "
18574 "or C<~user> for another user)."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:817
18579 msgid ""
18580 "Note that home directory expansion happens for users known I<on the host>, "
18581 "not in the guest filesystem."
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish.pod:820
18586 msgid ""
18587 "To use a literal argument which begins with a tilde, you have to quote it, "
18588 "eg:"
18589 msgstr ""
18590
18591 #. type: verbatim
18592 #: ../fish/guestfish.pod:823
18593 #, no-wrap
18594 msgid ""
18595 " echo \"~\"\n"
18596 "\n"
18597 msgstr ""
18598
18599 #. type: =head2
18600 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18601 msgid "ENCRYPTED DISKS"
18602 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:827
18606 msgid ""
18607 "Libguestfs has some support for Linux guests encrypted according to the "
18608 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18609 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18610 "LUKS is supported."
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish.pod:832
18615 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18616 msgstr ""
18617
18618 #. type: verbatim
18619 #: ../fish/guestfish.pod:834
18620 #, no-wrap
18621 msgid ""
18622 " ><fs> vfs-type /dev/sda2\n"
18623 " crypto_LUKS\n"
18624 "\n"
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish.pod:837
18629 msgid ""
18630 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18631 "device called C</dev/mapper/luksdev>."
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:840
18636 #, no-wrap
18637 msgid ""
18638 " ><fs> luks-open /dev/sda2 luksdev\n"
18639 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: textblock
18644 #: ../fish/guestfish.pod:843
18645 msgid ""
18646 "Finally you have to tell LVM to scan for volume groups on the newly created "
18647 "mapper device:"
18648 msgstr ""
18649
18650 #. type: verbatim
18651 #: ../fish/guestfish.pod:846
18652 #, no-wrap
18653 msgid ""
18654 " vgscan\n"
18655 " vg-activate-all true\n"
18656 "\n"
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/guestfish.pod:849
18661 msgid "The logical volume(s) can now be mounted in the usual way."
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish.pod:851
18666 msgid ""
18667 "Before closing a LUKS device you must unmount any logical volumes on it and "
18668 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18669 "one.  Then you can close the mapper device:"
18670 msgstr ""
18671
18672 #. type: verbatim
18673 #: ../fish/guestfish.pod:855
18674 #, no-wrap
18675 msgid ""
18676 " vg-activate false /dev/VG\n"
18677 " luks-close /dev/mapper/luksdev\n"
18678 "\n"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fish/guestfish.pod:860
18683 msgid ""
18684 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18685 "letters and paths (with some limitations).  The following commands are "
18686 "equivalent:"
18687 msgstr ""
18688
18689 #. type: verbatim
18690 #: ../fish/guestfish.pod:864
18691 #, no-wrap
18692 msgid ""
18693 " file /WINDOWS/system32/config/system.LOG\n"
18694 "\n"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:866
18699 #, no-wrap
18700 msgid ""
18701 " file win:\\windows\\system32\\config\\system.log\n"
18702 "\n"
18703 msgstr ""
18704
18705 #. type: verbatim
18706 #: ../fish/guestfish.pod:868
18707 #, no-wrap
18708 msgid ""
18709 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18710 "\n"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../fish/guestfish.pod:870
18715 msgid ""
18716 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18717 "where the drive is mounted, prepending that to the path, changing all "
18718 "backslash characters to forward slash, then resolving the result using L</"
18719 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18720 "the parameter might be rewritten like this:"
18721 msgstr ""
18722
18723 #. type: verbatim
18724 #: ../fish/guestfish.pod:876
18725 #, no-wrap
18726 msgid ""
18727 " win:e:\\foo\\bar => /e/FOO/bar\n"
18728 "\n"
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../fish/guestfish.pod:878
18733 msgid "This only works in argument positions that expect a path."
18734 msgstr ""
18735
18736 #. type: =head1
18737 #: ../fish/guestfish.pod:880
18738 msgid "UPLOADING AND DOWNLOADING FILES"
18739 msgstr ""
18740
18741 #. type: textblock
18742 #: ../fish/guestfish.pod:882
18743 msgid ""
18744 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18745 "others which upload from or download to a local file, you can use the "
18746 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18747 msgstr ""
18748
18749 #. type: verbatim
18750 #: ../fish/guestfish.pod:886
18751 #, no-wrap
18752 msgid ""
18753 " upload - /foo\n"
18754 "\n"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish.pod:888
18759 msgid ""
18760 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18761 msgstr ""
18762
18763 #. type: verbatim
18764 #: ../fish/guestfish.pod:891
18765 #, no-wrap
18766 msgid ""
18767 " tar-out /etc - | tar tf -\n"
18768 "\n"
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fish/guestfish.pod:893
18773 msgid ""
18774 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18775 "command (see L</PIPES>)."
18776 msgstr ""
18777
18778 #. type: textblock
18779 #: ../fish/guestfish.pod:896
18780 msgid ""
18781 "When using C<-> to read from stdin, the input is read up to the end of "
18782 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18783 "some arbitrary end marker:"
18784 msgstr ""
18785
18786 #. type: verbatim
18787 #: ../fish/guestfish.pod:900
18788 #, no-wrap
18789 msgid ""
18790 " upload -<<END /foo\n"
18791 " input line 1\n"
18792 " input line 2\n"
18793 " input line 3\n"
18794 " END\n"
18795 "\n"
18796 msgstr ""
18797
18798 #. type: textblock
18799 #: ../fish/guestfish.pod:906
18800 msgid ""
18801 "Any string of characters can be used instead of C<END>.  The end marker must "
18802 "appear on a line of its own, without any preceeding or following characters "
18803 "(not even spaces)."
18804 msgstr ""
18805
18806 #. type: textblock
18807 #: ../fish/guestfish.pod:910
18808 msgid ""
18809 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18810 "upload local files (so-called \"FileIn\" parameters in the generator)."
18811 msgstr ""
18812
18813 #. type: =head1
18814 #: ../fish/guestfish.pod:913
18815 msgid "EXIT ON ERROR BEHAVIOUR"
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:915
18820 msgid ""
18821 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18822 "taking commands from a human over a tty), and will exit on the first error "
18823 "in non-interactive mode (scripts, commands given on the command line)."
18824 msgstr ""
18825
18826 #. type: textblock
18827 #: ../fish/guestfish.pod:920
18828 msgid ""
18829 "If you prefix a command with a I<-> character, then that command will not "
18830 "cause guestfish to exit, even if that (one) command returns an error."
18831 msgstr ""
18832
18833 #. type: =head1
18834 #: ../fish/guestfish.pod:924
18835 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fish/guestfish.pod:926
18840 msgid ""
18841 "Guestfish can be remote-controlled over a socket.  This is useful "
18842 "particularly in shell scripts where you want to make several different "
18843 "changes to a filesystem, but you don't want the overhead of starting up a "
18844 "guestfish process each time."
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:931
18849 msgid "Start a guestfish server process using:"
18850 msgstr ""
18851
18852 #. type: verbatim
18853 #: ../fish/guestfish.pod:933
18854 #, no-wrap
18855 msgid ""
18856 " eval \"`guestfish --listen`\"\n"
18857 "\n"
18858 msgstr ""
18859
18860 #. type: textblock
18861 #: ../fish/guestfish.pod:935
18862 msgid "and then send it commands by doing:"
18863 msgstr ""
18864
18865 #. type: verbatim
18866 #: ../fish/guestfish.pod:937
18867 #, no-wrap
18868 msgid ""
18869 " guestfish --remote cmd [...]\n"
18870 "\n"
18871 msgstr ""
18872
18873 #. type: textblock
18874 #: ../fish/guestfish.pod:939
18875 msgid "To cause the server to exit, send it the exit command:"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish.pod:943
18880 msgid ""
18881 "Note that the server will normally exit if there is an error in a command.  "
18882 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18883 "BEHAVIOUR>."
18884 msgstr ""
18885
18886 #. type: =head2
18887 #: ../fish/guestfish.pod:947
18888 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../fish/guestfish.pod:949
18893 msgid ""
18894 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18895 "is how the I<--remote> option knows where to send the commands.  You can "
18896 "have several guestfish listener processes running using:"
18897 msgstr ""
18898
18899 #. type: verbatim
18900 #: ../fish/guestfish.pod:953
18901 #, no-wrap
18902 msgid ""
18903 " eval \"`guestfish --listen`\"\n"
18904 " pid1=$GUESTFISH_PID\n"
18905 " eval \"`guestfish --listen`\"\n"
18906 " pid2=$GUESTFISH_PID\n"
18907 " ...\n"
18908 " guestfish --remote=$pid1 cmd\n"
18909 " guestfish --remote=$pid2 cmd\n"
18910 "\n"
18911 msgstr ""
18912
18913 #. type: =head2
18914 #: ../fish/guestfish.pod:961
18915 msgid "REMOTE CONTROL AND CSH"
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../fish/guestfish.pod:963
18920 msgid ""
18921 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18922 "option:"
18923 msgstr ""
18924
18925 #. type: verbatim
18926 #: ../fish/guestfish.pod:966
18927 #, no-wrap
18928 msgid ""
18929 " eval \"`guestfish --listen --csh`\"\n"
18930 "\n"
18931 msgstr ""
18932
18933 #. type: =head2
18934 #: ../fish/guestfish.pod:968
18935 msgid "REMOTE CONTROL DETAILS"
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:970
18940 msgid ""
18941 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18942 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18943 "and C<$PID> is the process ID of the server."
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:974
18948 msgid "Guestfish client and server versions must match exactly."
18949 msgstr ""
18950
18951 #. type: =head2
18952 #: ../fish/guestfish.pod:976
18953 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18954 msgstr ""
18955
18956 #. type: textblock
18957 #: ../fish/guestfish.pod:978
18958 msgid ""
18959 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18960 "context hangs, ie. don't do (note the backquotes):"
18961 msgstr ""
18962
18963 #. type: verbatim
18964 #: ../fish/guestfish.pod:981
18965 #, fuzzy, no-wrap
18966 #| msgid ""
18967 #| " guestfish --ro -d myguest -i\n"
18968 #| "\n"
18969 msgid ""
18970 " a=`guestfish --remote run`\n"
18971 "\n"
18972 msgstr ""
18973 " guestfish --ro -d myguest -i\n"
18974 "\n"
18975
18976 #. type: textblock
18977 #: ../fish/guestfish.pod:983
18978 msgid ""
18979 "Since the C<run> command produces no output on stdout, this is not useful "
18980 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18981 "cgi?id=592910>."
18982 msgstr ""
18983
18984 #. type: =head1
18985 #: ../fish/guestfish.pod:987
18986 msgid "PREPARED DISK IMAGES"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:989
18991 msgid ""
18992 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18993 "preformatted disk images that guestfish can make for you to save typing.  "
18994 "This is particularly useful for testing purposes.  This option is used "
18995 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18996 "can be mixed with I<-a>)."
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:995
19001 msgid ""
19002 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19003 "the second and so on.  Existing files in the current directory are "
19004 "I<overwritten>."
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish.pod:999
19009 msgid ""
19010 "The type briefly describes how the disk should be sized, partitioned, how "
19011 "filesystem(s) should be created, and how content should be added.  "
19012 "Optionally the type can be followed by extra parameters, separated by C<:> "
19013 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19014 "allocated disk, containing a single partition, with the partition formatted "
19015 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19016 "disk instead."
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fish/guestfish.pod:1007
19021 msgid "To list the available types and any extra parameters they take, run:"
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/guestfish.pod:1011
19026 msgid ""
19027 "Note that the prepared filesystem is not mounted.  You would usually have to "
19028 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:1015
19033 msgid ""
19034 "If any I<-N> or I<--new> options are given, the guest is automatically "
19035 "launched."
19036 msgstr ""
19037
19038 #. type: textblock
19039 #: ../fish/guestfish.pod:1020
19040 msgid "Create a 100MB disk with an ext4-formatted partition:"
19041 msgstr ""
19042
19043 #. type: verbatim
19044 #: ../fish/guestfish.pod:1022
19045 #, no-wrap
19046 msgid ""
19047 " guestfish -N fs:ext4\n"
19048 "\n"
19049 msgstr ""
19050
19051 #. type: textblock
19052 #: ../fish/guestfish.pod:1024
19053 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19054 msgstr ""
19055
19056 #. type: verbatim
19057 #: ../fish/guestfish.pod:1026
19058 #, no-wrap
19059 msgid ""
19060 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19061 "\n"
19062 msgstr ""
19063
19064 #. type: textblock
19065 #: ../fish/guestfish.pod:1028
19066 msgid "Create a blank 200MB disk:"
19067 msgstr ""
19068
19069 #. type: verbatim
19070 #: ../fish/guestfish.pod:1030
19071 #, no-wrap
19072 msgid ""
19073 " guestfish -N disk:200M\n"
19074 "\n"
19075 msgstr ""
19076
19077 #. type: =head1
19078 #: ../fish/guestfish.pod:1032
19079 msgid "PROGRESS BARS"
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish.pod:1034
19084 msgid ""
19085 "Some (not all) long-running commands send progress notification messages as "
19086 "they are running.  Guestfish turns these messages into progress bars."
19087 msgstr ""
19088
19089 #. type: textblock
19090 #: ../fish/guestfish.pod:1038
19091 msgid ""
19092 "When a command that supports progress bars takes longer than two seconds to "
19093 "run, and if progress bars are enabled, then you will see one appearing below "
19094 "the command:"
19095 msgstr ""
19096
19097 #. type: verbatim
19098 #: ../fish/guestfish.pod:1042
19099 #, no-wrap
19100 msgid ""
19101 " ><fs> copy-size /large-file /another-file 2048M\n"
19102 " / 10% [#####-----------------------------------------] 00:30\n"
19103 "\n"
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../fish/guestfish.pod:1045
19108 msgid ""
19109 "The spinner on the left hand side moves round once for every progress "
19110 "notification received from the backend.  This is a (reasonably) golden "
19111 "assurance that the command is \"doing something\" even if the progress bar "
19112 "is not moving, because the command is able to send the progress "
19113 "notifications.  When the bar reaches 100% and the command finishes, the "
19114 "spinner disappears."
19115 msgstr ""
19116
19117 #. type: textblock
19118 #: ../fish/guestfish.pod:1052
19119 msgid ""
19120 "Progress bars are enabled by default when guestfish is used interactively.  "
19121 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19122 "and you can disable them completely using I<--no-progress-bars>."
19123 msgstr ""
19124
19125 #. type: =head1
19126 #: ../fish/guestfish.pod:1057
19127 msgid "GUESTFISH COMMANDS"
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:1059
19132 msgid ""
19133 "The commands in this section are guestfish convenience commands, in other "
19134 "words, they are not part of the L<guestfs(3)> API."
19135 msgstr ""
19136
19137 #. type: =head2
19138 #: ../fish/guestfish.pod:1062
19139 msgid "help"
19140 msgstr "help"
19141
19142 #. type: verbatim
19143 #: ../fish/guestfish.pod:1064
19144 #, no-wrap
19145 msgid ""
19146 " help\n"
19147 " help cmd\n"
19148 "\n"
19149 msgstr ""
19150 " help\n"
19151 " help команда\n"
19152 "\n"
19153
19154 #. type: textblock
19155 #: ../fish/guestfish.pod:1067
19156 msgid "Without any parameter, this provides general help."
19157 msgstr "Без параметра показує загальну довідкову інформацію."
19158
19159 #. type: textblock
19160 #: ../fish/guestfish.pod:1069
19161 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19162 msgstr ""
19163
19164 #. type: =head2
19165 #: ../fish/guestfish.pod:1071
19166 msgid "quit | exit"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:1073
19171 msgid "This exits guestfish.  You can also use C<^D> key."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:1075
19176 msgid "@FISH_COMMANDS@"
19177 msgstr ""
19178
19179 #. type: =head1
19180 #: ../fish/guestfish.pod:1077
19181 msgid "COMMANDS"
19182 msgstr "КОМАНДИ"
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
19186 msgid "@ACTIONS@"
19187 msgstr "@ACTIONS@"
19188
19189 #. type: =head1
19190 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
19191 msgid "EXIT CODE"
19192 msgstr "КОД ВИХОДУ"
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:1083
19196 msgid ""
19197 "guestfish returns 0 if the commands completed without error, or 1 if there "
19198 "was an error."
19199 msgstr ""
19200
19201 #. type: =item
19202 #: ../fish/guestfish.pod:1090
19203 msgid "EDITOR"
19204 msgstr "РЕДАКТОР"
19205
19206 #. type: textblock
19207 #: ../fish/guestfish.pod:1092
19208 msgid ""
19209 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19210 "C<vi>."
19211 msgstr ""
19212
19213 #. type: =item
19214 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2969
19215 msgid "FEBOOTSTRAP_KERNEL"
19216 msgstr ""
19217
19218 #. type: =item
19219 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2971
19220 msgid "FEBOOTSTRAP_MODULES"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2973
19225 msgid ""
19226 "These two environment variables allow the kernel that libguestfs uses in the "
19227 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19228 "most recent host kernel is chosen.  For more information about kernel "
19229 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19230 "available in febootstrap E<ge> 3.8."
19231 msgstr ""
19232
19233 #. type: =item
19234 #: ../fish/guestfish.pod:1105
19235 msgid "GUESTFISH_DISPLAY_IMAGE"
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../fish/guestfish.pod:1107
19240 msgid ""
19241 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19242 "If not set, it uses L<display(1)>."
19243 msgstr ""
19244
19245 #. type: =item
19246 #: ../fish/guestfish.pod:1110
19247 msgid "GUESTFISH_PID"
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:1112
19252 msgid ""
19253 "Used with the I<--remote> option to specify the remote guestfish process to "
19254 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19255 msgstr ""
19256
19257 #. type: =item
19258 #: ../fish/guestfish.pod:1116
19259 msgid "HEXEDITOR"
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:1118
19264 msgid ""
19265 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19266 "not specified, the external L<hexedit(1)> program is used."
19267 msgstr ""
19268
19269 #. type: =item
19270 #: ../fish/guestfish.pod:1122
19271 msgid "HOME"
19272 msgstr "ДОМІВКА"
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:1124
19276 msgid ""
19277 "If compiled with GNU readline support, various files in the home directory "
19278 "can be used.  See L</FILES>."
19279 msgstr ""
19280
19281 #. type: =item
19282 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2979
19283 msgid "LIBGUESTFS_APPEND"
19284 msgstr ""
19285
19286 #. type: textblock
19287 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2981
19288 msgid "Pass additional options to the guest kernel."
19289 msgstr ""
19290
19291 #. type: =item
19292 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2983
19293 msgid "LIBGUESTFS_DEBUG"
19294 msgstr "LIBGUESTFS_DEBUG"
19295
19296 #. type: textblock
19297 #: ../fish/guestfish.pod:1133
19298 msgid ""
19299 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19300 "effect as using the B<-v> option."
19301 msgstr ""
19302
19303 #. type: =item
19304 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2988
19305 msgid "LIBGUESTFS_MEMSIZE"
19306 msgstr "LIBGUESTFS_MEMSIZE"
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2990
19310 msgid ""
19311 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19312 msgstr ""
19313
19314 #. type: verbatim
19315 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2993
19316 #, no-wrap
19317 msgid ""
19318 " LIBGUESTFS_MEMSIZE=700\n"
19319 "\n"
19320 msgstr ""
19321 " LIBGUESTFS_MEMSIZE=700\n"
19322 "\n"
19323
19324 #. type: =item
19325 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2995
19326 msgid "LIBGUESTFS_PATH"
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:1145
19331 msgid ""
19332 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19333 "the discussion of paths in L<guestfs(3)>."
19334 msgstr ""
19335
19336 #. type: =item
19337 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3000
19338 msgid "LIBGUESTFS_QEMU"
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3002
19343 msgid ""
19344 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19345 "which was found at compile time by the configure script is used."
19346 msgstr ""
19347
19348 #. type: =item
19349 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3008
19350 msgid "LIBGUESTFS_TRACE"
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../fish/guestfish.pod:1156
19355 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19356 msgstr ""
19357
19358 #. type: =item
19359 #: ../fish/guestfish.pod:1158
19360 msgid "PAGER"
19361 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19362
19363 #. type: textblock
19364 #: ../fish/guestfish.pod:1160
19365 msgid ""
19366 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19367 "C<more>."
19368 msgstr ""
19369
19370 #. type: =item
19371 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3013
19372 msgid "TMPDIR"
19373 msgstr ""
19374
19375 #. type: textblock
19376 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3015
19377 msgid ""
19378 "Location of temporary directory, defaults to C</tmp> except for the cached "
19379 "supermin appliance which defaults to C</var/tmp>."
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3018
19384 msgid ""
19385 "If libguestfs was compiled to use the supermin appliance then the real "
19386 "appliance is cached in this directory, shared between all handles belonging "
19387 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19388 "use in case C</var/tmp> is not large enough."
19389 msgstr ""
19390
19391 #. type: =head1
19392 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19393 #: ../rescue/virt-rescue.pod:269
19394 msgid "FILES"
19395 msgstr "ФАЙЛИ"
19396
19397 #. type: =item
19398 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19399 #: ../rescue/virt-rescue.pod:273
19400 msgid "$HOME/.libguestfs-tools.rc"
19401 msgstr ""
19402
19403 #. type: =item
19404 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19405 #: ../rescue/virt-rescue.pod:275
19406 msgid "/etc/libguestfs-tools.conf"
19407 msgstr ""
19408
19409 #. type: textblock
19410 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19411 #: ../rescue/virt-rescue.pod:277
19412 msgid ""
19413 "This configuration file controls the default read-only or read-write mode "
19414 "(I<--ro> or I<--rw>)."
19415 msgstr ""
19416
19417 #. type: textblock
19418 #: ../fish/guestfish.pod:1187
19419 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19420 msgstr ""
19421
19422 #. type: =item
19423 #: ../fish/guestfish.pod:1189
19424 msgid "$HOME/.guestfish"
19425 msgstr ""
19426
19427 #. type: textblock
19428 #: ../fish/guestfish.pod:1191
19429 msgid ""
19430 "If compiled with GNU readline support, then the command history is saved in "
19431 "this file."
19432 msgstr ""
19433
19434 #. type: =item
19435 #: ../fish/guestfish.pod:1194
19436 msgid "$HOME/.inputrc"
19437 msgstr ""
19438
19439 #. type: =item
19440 #: ../fish/guestfish.pod:1196
19441 msgid "/etc/inputrc"
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:1198
19446 msgid ""
19447 "If compiled with GNU readline support, then these files can be used to "
19448 "configure readline.  For further information, please see L<readline(3)/"
19449 "INITIALIZATION FILE>."
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:1202
19454 msgid "To write rules which only apply to guestfish, use:"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../fish/guestfish.pod:1204
19459 #, no-wrap
19460 msgid ""
19461 " $if guestfish\n"
19462 " ...\n"
19463 " $endif\n"
19464 "\n"
19465 msgstr ""
19466
19467 #. type: textblock
19468 #: ../fish/guestfish.pod:1208
19469 msgid ""
19470 "Variables that you can set in inputrc that change the behaviour of guestfish "
19471 "in useful ways include:"
19472 msgstr ""
19473
19474 #. type: =item
19475 #: ../fish/guestfish.pod:1213
19476 msgid "completion-ignore-case (default: on)"
19477 msgstr ""
19478
19479 #. type: textblock
19480 #: ../fish/guestfish.pod:1215
19481 msgid ""
19482 "By default, guestfish will ignore case when tab-completing paths on the "
19483 "disk.  Use:"
19484 msgstr ""
19485
19486 #. type: verbatim
19487 #: ../fish/guestfish.pod:1218
19488 #, no-wrap
19489 msgid ""
19490 " set completion-ignore-case off\n"
19491 "\n"
19492 msgstr ""
19493
19494 #. type: textblock
19495 #: ../fish/guestfish.pod:1220
19496 msgid "to make guestfish case sensitive."
19497 msgstr ""
19498
19499 #. type: =item
19500 #: ../fish/guestfish.pod:1224
19501 msgid "test1.img"
19502 msgstr ""
19503
19504 #. type: =item
19505 #: ../fish/guestfish.pod:1226
19506 msgid "test2.img (etc)"
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fish/guestfish.pod:1228
19511 msgid ""
19512 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19513 "will be created in the file C<test1.img> in the current directory.  The "
19514 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19515 "the same name will be overwritten."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:1237
19520 msgid ""
19521 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19522 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19523 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19524 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19525 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19526 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3104
19531 #: ../test-tool/libguestfs-test-tool.pod:99
19532 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19533 msgstr ""
19534
19535 #. type: textblock
19536 #: ../fish/virt-copy-in.pod:5
19537 msgid ""
19538 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19539 msgstr ""
19540
19541 #. type: verbatim
19542 #: ../fish/virt-copy-in.pod:9
19543 #, no-wrap
19544 msgid ""
19545 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19546 "\n"
19547 msgstr ""
19548
19549 #. type: verbatim
19550 #: ../fish/virt-copy-in.pod:11
19551 #, no-wrap
19552 msgid ""
19553 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19554 "\n"
19555 msgstr ""
19556
19557 #. type: textblock
19558 #: ../fish/virt-copy-in.pod:15
19559 msgid ""
19560 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19561 "causing disk corruption.  The virtual machine must be shut down before you "
19562 "use this command."
19563 msgstr ""
19564
19565 #. type: textblock
19566 #: ../fish/virt-copy-in.pod:21
19567 msgid ""
19568 "C<virt-copy-in> copies files and directories from the local disk into a "
19569 "virtual machine disk image or named libvirt domain."
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../fish/virt-copy-in.pod:24
19574 msgid ""
19575 "You can give one of more filenames and directories on the command line.  "
19576 "Directories are copied in recursively.  The final parameter must be the "
19577 "destination directory in the disk image which must be an absolute path "
19578 "starting with a C</> character."
19579 msgstr ""
19580
19581 #. type: verbatim
19582 #: ../fish/virt-copy-in.pod:33
19583 #, no-wrap
19584 msgid ""
19585 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19586 "\n"
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19591 msgid "Upload a home directory to a guest:"
19592 msgstr ""
19593
19594 #. type: verbatim
19595 #: ../fish/virt-copy-in.pod:37
19596 #, no-wrap
19597 msgid ""
19598 " virt-copy-in -d MyGuest skel /home\n"
19599 "\n"
19600 msgstr ""
19601
19602 #. type: =head1
19603 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19604 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19605 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19606 msgstr ""
19607
19608 #. type: textblock
19609 #: ../fish/virt-copy-in.pod:41
19610 msgid ""
19611 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19612 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19613 "are probably better off using guestfish directly."
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19618 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19619 msgid ""
19620 "Since the shell script just passes options straight to guestfish, read "
19621 "L<guestfish(1)> to see the full list of options."
19622 msgstr ""
19623
19624 #. type: textblock
19625 #: ../fish/virt-copy-in.pod:52
19626 #, fuzzy
19627 #| msgid ""
19628 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19629 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19630 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19631 #| "libguestfs.org/>."
19632 msgid ""
19633 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19634 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19635 msgstr ""
19636 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19637 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19638 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19639 "org/>."
19640
19641 #. type: textblock
19642 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19643 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19644 #, fuzzy
19645 #| msgid "Copyright (C) 2009 Red Hat Inc."
19646 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19647 msgstr "© Red Hat Inc., 2009"
19648
19649 #. type: textblock
19650 #: ../fish/virt-copy-out.pod:5
19651 msgid ""
19652 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19653 "image."
19654 msgstr ""
19655
19656 #. type: verbatim
19657 #: ../fish/virt-copy-out.pod:9
19658 #, no-wrap
19659 msgid ""
19660 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19661 "\n"
19662 msgstr ""
19663
19664 #. type: verbatim
19665 #: ../fish/virt-copy-out.pod:11
19666 #, no-wrap
19667 msgid ""
19668 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19669 "\n"
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/virt-copy-out.pod:15
19674 msgid ""
19675 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19676 "image or named libvirt domain."
19677 msgstr ""
19678
19679 #. type: textblock
19680 #: ../fish/virt-copy-out.pod:18
19681 msgid ""
19682 "You can give one of more filenames and directories on the command line.  "
19683 "Directories are copied out recursively."
19684 msgstr ""
19685
19686 #. type: textblock
19687 #: ../fish/virt-copy-out.pod:23
19688 msgid "Download the home directories from a virtual machine:"
19689 msgstr ""
19690
19691 #. type: verbatim
19692 #: ../fish/virt-copy-out.pod:25
19693 #, no-wrap
19694 msgid ""
19695 " mkdir homes\n"
19696 " virt-copy-out -d MyGuest /home homes\n"
19697 "\n"
19698 msgstr ""
19699
19700 #. type: textblock
19701 #: ../fish/virt-copy-out.pod:30
19702 msgid ""
19703 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19704 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19705 "are probably better off using guestfish directly."
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/virt-copy-out.pod:41
19710 #, fuzzy
19711 #| msgid ""
19712 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19713 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19714 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19715 #| "libguestfs.org/>."
19716 msgid ""
19717 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19718 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19719 msgstr ""
19720 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19721 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19722 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19723 "org/>."
19724
19725 #. type: textblock
19726 #: ../fish/virt-tar-in.pod:5
19727 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19728 msgstr ""
19729
19730 #. type: verbatim
19731 #: ../fish/virt-tar-in.pod:9
19732 #, no-wrap
19733 msgid ""
19734 " virt-tar-in -a disk.img data.tar /destination\n"
19735 "\n"
19736 msgstr ""
19737
19738 #. type: verbatim
19739 #: ../fish/virt-tar-in.pod:11
19740 #, no-wrap
19741 msgid ""
19742 " virt-tar-in -d domain data.tar /destination\n"
19743 "\n"
19744 msgstr ""
19745
19746 #. type: verbatim
19747 #: ../fish/virt-tar-in.pod:13
19748 #, no-wrap
19749 msgid ""
19750 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19751 "\n"
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/virt-tar-in.pod:17
19756 msgid ""
19757 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19758 "causing disk corruption.  The virtual machine must be shut down before you "
19759 "use this command."
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/virt-tar-in.pod:23
19764 msgid ""
19765 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19766 "image or named libvirt domain."
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/virt-tar-in.pod:26
19771 msgid ""
19772 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19773 "standard input.  The second parameter is the absolute target directory to "
19774 "unpack into."
19775 msgstr ""
19776
19777 #. type: verbatim
19778 #: ../fish/virt-tar-in.pod:34
19779 #, no-wrap
19780 msgid ""
19781 " virt-tar-in -d MyGuest homes.tar /home\n"
19782 "\n"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/virt-tar-in.pod:38
19787 msgid ""
19788 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19789 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19790 "probably better off using guestfish directly."
19791 msgstr ""
19792
19793 #. type: textblock
19794 #: ../fish/virt-tar-in.pod:49
19795 #, fuzzy
19796 #| msgid ""
19797 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19798 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19799 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19800 #| "libguestfs.org/>."
19801 msgid ""
19802 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19803 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19804 "org/>."
19805 msgstr ""
19806 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19807 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19808 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19809 "org/>."
19810
19811 #. type: textblock
19812 #: ../fish/virt-tar-out.pod:5
19813 msgid ""
19814 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../fish/virt-tar-out.pod:9
19819 #, no-wrap
19820 msgid ""
19821 " virt-tar-out -a disk.img /dir files.tar\n"
19822 "\n"
19823 msgstr ""
19824
19825 #. type: verbatim
19826 #: ../fish/virt-tar-out.pod:11
19827 #, no-wrap
19828 msgid ""
19829 " virt-tar-out -d domain /dir files.tar\n"
19830 "\n"
19831 msgstr ""
19832
19833 #. type: verbatim
19834 #: ../fish/virt-tar-out.pod:13
19835 #, no-wrap
19836 msgid ""
19837 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/virt-tar-out.pod:17
19843 msgid ""
19844 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../fish/virt-tar-out.pod:20
19849 msgid ""
19850 "The first parameter is the absolute path of the virtual machine directory.  "
19851 "The second parameter is the tar file to write.  Use C<-> to write to "
19852 "standard output."
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../fish/virt-tar-out.pod:26
19857 msgid "Download the home directories from a guest:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../fish/virt-tar-out.pod:28
19862 #, no-wrap
19863 msgid ""
19864 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19865 "\n"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/virt-tar-out.pod:32
19870 msgid ""
19871 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19872 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19873 "are probably better off using guestfish directly."
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/virt-tar-out.pod:43
19878 #, fuzzy
19879 #| msgid ""
19880 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19881 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19882 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19883 #| "libguestfs.org/>."
19884 msgid ""
19885 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19886 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19887 msgstr ""
19888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19889 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19890 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19891 "org/>."
19892
19893 #. type: textblock
19894 #: ../fuse/guestmount.pod:5
19895 msgid ""
19896 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../fuse/guestmount.pod:9
19901 #, no-wrap
19902 msgid ""
19903 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../fuse/guestmount.pod:11
19909 #, no-wrap
19910 msgid ""
19911 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../fuse/guestmount.pod:13
19917 #, no-wrap
19918 msgid ""
19919 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../fuse/guestmount.pod:17
19925 msgid ""
19926 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19927 "machines.  If you do this, you risk disk corruption in the VM."
19928 msgstr ""
19929
19930 #. type: textblock
19931 #: ../fuse/guestmount.pod:22
19932 msgid ""
19933 "The guestmount program can be used to mount virtual machine filesystems and "
19934 "other disk images on the host.  It uses libguestfs for access to the guest "
19935 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19936 "a mountable device."
19937 msgstr ""
19938
19939 #. type: textblock
19940 #: ../fuse/guestmount.pod:27
19941 msgid ""
19942 "Along with other options, you have to give at least one device (I<-a> "
19943 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19944 "option) or use the I<-i> inspection option.  How this works is better "
19945 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19946 "below."
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../fuse/guestmount.pod:33
19951 msgid ""
19952 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19953 "by you, and the filesystem will not be visible to any other users unless you "
19954 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19955 "the filesystem, use the C<fusermount -u> command."
19956 msgstr ""
19957
19958 #. type: textblock
19959 #: ../fuse/guestmount.pod:41
19960 msgid ""
19961 "For a typical Windows guest which has its main filesystem on the first "
19962 "partition:"
19963 msgstr ""
19964
19965 #. type: verbatim
19966 #: ../fuse/guestmount.pod:44
19967 #, no-wrap
19968 msgid ""
19969 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19970 "\n"
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fuse/guestmount.pod:46
19975 msgid ""
19976 "For a typical Linux guest which has a /boot filesystem on the first "
19977 "partition, and the root filesystem on a logical volume:"
19978 msgstr ""
19979
19980 #. type: verbatim
19981 #: ../fuse/guestmount.pod:49
19982 #, no-wrap
19983 msgid ""
19984 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19985 "\n"
19986 msgstr ""
19987
19988 #. type: textblock
19989 #: ../fuse/guestmount.pod:51
19990 msgid "To get libguestfs to detect guest mountpoints for you:"
19991 msgstr ""
19992
19993 #. type: verbatim
19994 #: ../fuse/guestmount.pod:53
19995 #, no-wrap
19996 msgid ""
19997 " guestmount -a guest.img -i --ro /mnt\n"
19998 "\n"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../fuse/guestmount.pod:55
20003 msgid "For a libvirt guest called \"Guest\" you could do:"
20004 msgstr ""
20005
20006 #. type: verbatim
20007 #: ../fuse/guestmount.pod:57
20008 #, no-wrap
20009 msgid ""
20010 " guestmount -d Guest -i --ro /mnt\n"
20011 "\n"
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fuse/guestmount.pod:59
20016 msgid ""
20017 "If you don't know what filesystems are contained in a guest or disk image, "
20018 "use L<virt-filesystems(1)> first:"
20019 msgstr ""
20020
20021 #. type: verbatim
20022 #: ../fuse/guestmount.pod:62
20023 #, no-wrap
20024 msgid ""
20025 " virt-filesystems MyGuest\n"
20026 "\n"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fuse/guestmount.pod:64
20031 msgid ""
20032 "If you want to trace the libguestfs calls but without excessive debugging "
20033 "information, we recommend:"
20034 msgstr ""
20035
20036 #. type: verbatim
20037 #: ../fuse/guestmount.pod:67
20038 #, no-wrap
20039 msgid ""
20040 " guestmount [...] --trace /mnt\n"
20041 "\n"
20042 msgstr ""
20043
20044 #. type: textblock
20045 #: ../fuse/guestmount.pod:69
20046 msgid "If you want to debug the program, we recommend:"
20047 msgstr ""
20048
20049 #. type: verbatim
20050 #: ../fuse/guestmount.pod:71
20051 #, no-wrap
20052 msgid ""
20053 " guestmount [...] --trace --verbose /mnt\n"
20054 "\n"
20055 msgstr ""
20056
20057 #. type: =head1
20058 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20059 #: ../resize/virt-resize.pod:486
20060 msgid "NOTES"
20061 msgstr "ПРИМІТКИ"
20062
20063 #. type: =head2
20064 #: ../fuse/guestmount.pod:75
20065 msgid "Other users cannot see the filesystem by default"
20066 msgstr ""
20067
20068 #. type: textblock
20069 #: ../fuse/guestmount.pod:77
20070 msgid ""
20071 "If you mount a filesystem as one user (eg. root), then other users will not "
20072 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20073 "option when mounting:"
20074 msgstr ""
20075
20076 #. type: verbatim
20077 #: ../fuse/guestmount.pod:81
20078 #, no-wrap
20079 msgid ""
20080 " sudo guestmount [...] -o allow_other /mnt\n"
20081 "\n"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fuse/guestmount.pod:91
20086 msgid "Add a block device or virtual machine image."
20087 msgstr ""
20088
20089 #. type: =item
20090 #: ../fuse/guestmount.pod:114
20091 msgid "B<--dir-cache-timeout N>"
20092 msgstr "B<--dir-cache-timeout N>"
20093
20094 #. type: textblock
20095 #: ../fuse/guestmount.pod:116
20096 msgid ""
20097 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20098 "seconds.  The readdir cache [actually, there are several semi-independent "
20099 "caches] is populated after a readdir(2) call with the stat and extended "
20100 "attributes of the files in the directory, in anticipation that they will be "
20101 "requested soon after."
20102 msgstr ""
20103
20104 #. type: textblock
20105 #: ../fuse/guestmount.pod:122
20106 msgid ""
20107 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20108 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20109 "requests, only cache existing ones."
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fuse/guestmount.pod:142
20114 msgid ""
20115 "If you have untrusted raw-format guest disk images, you should use this "
20116 "option to specify the disk format.  This avoids a possible security problem "
20117 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20118 "guestfs_add_drive_opts>."
20119 msgstr ""
20120
20121 #. type: =item
20122 #: ../fuse/guestmount.pod:147
20123 msgid "B<--fuse-help>"
20124 msgstr "B<--fuse-help>"
20125
20126 #. type: textblock
20127 #: ../fuse/guestmount.pod:149
20128 msgid "Display help on special FUSE options (see I<-o> below)."
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../fuse/guestmount.pod:153
20133 msgid "Display brief help and exit."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fuse/guestmount.pod:177
20138 msgid ""
20139 "Mount the named partition or logical volume on the given mountpoint B<in the "
20140 "guest> (this has nothing to do with mountpoints in the host)."
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fuse/guestmount.pod:180
20145 msgid ""
20146 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20147 "something on C</>."
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../fuse/guestmount.pod:197
20152 msgid ""
20153 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20154 "unmounted.  If you specify this option, then we don't attempt to sync the "
20155 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20156 msgstr ""
20157
20158 #. type: =item
20159 #: ../fuse/guestmount.pod:202
20160 #, fuzzy
20161 #| msgid "B<--partition>"
20162 msgid "B<-o option>"
20163 msgstr "B<--partition>"
20164
20165 #. type: =item
20166 #: ../fuse/guestmount.pod:204
20167 #, fuzzy
20168 #| msgid "B<--partition>"
20169 msgid "B<--option option>"
20170 msgstr "B<--partition>"
20171
20172 #. type: textblock
20173 #: ../fuse/guestmount.pod:206
20174 msgid "Pass extra options to FUSE."
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fuse/guestmount.pod:208
20179 msgid ""
20180 "To get a list of all the extra options supported by FUSE, use the command "
20181 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20182 "of them are a good idea."
20183 msgstr ""
20184
20185 #. type: verbatim
20186 #: ../fuse/guestmount.pod:212
20187 #, no-wrap
20188 msgid ""
20189 " guestmount --fuse-help\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fuse/guestmount.pod:214
20195 msgid "Some potentially useful FUSE options:"
20196 msgstr ""
20197
20198 #. type: =item
20199 #: ../fuse/guestmount.pod:218
20200 msgid "B<-o allow_other>"
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../fuse/guestmount.pod:220
20205 msgid "Allow other users to see the filesystem."
20206 msgstr ""
20207
20208 #. type: =item
20209 #: ../fuse/guestmount.pod:222
20210 msgid "B<-o attr_timeout=N>"
20211 msgstr "B<-o attr_timeout=N>"
20212
20213 #. type: textblock
20214 #: ../fuse/guestmount.pod:224
20215 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20216 msgstr ""
20217
20218 #. type: =item
20219 #: ../fuse/guestmount.pod:226
20220 msgid "B<-o kernel_cache>"
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fuse/guestmount.pod:228
20225 msgid ""
20226 "Allow the kernel to cache files (reduces the number of reads that have to go "
20227 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20228 "afford the extra memory usage."
20229 msgstr ""
20230
20231 #. type: =item
20232 #: ../fuse/guestmount.pod:232
20233 msgid "B<-o uid=N> B<-o gid=N>"
20234 msgstr ""
20235
20236 #. type: textblock
20237 #: ../fuse/guestmount.pod:234
20238 msgid ""
20239 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20240 "the chosen values."
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../fuse/guestmount.pod:243
20245 msgid ""
20246 "Add devices and mount everything read-only.  Also disallow writes and make "
20247 "the disk appear read-only to FUSE."
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fuse/guestmount.pod:246
20252 msgid ""
20253 "This is highly recommended if you are not going to edit the guest disk.  If "
20254 "the guest is running and this option is I<not> supplied, then there is a "
20255 "strong risk of disk corruption in the guest.  We try to prevent this from "
20256 "happening, but it is not always possible."
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20261 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fuse/guestmount.pod:255
20266 msgid "Enable SELinux support for the guest."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fuse/guestmount.pod:261
20271 msgid "Enable verbose messages from underlying libguestfs."
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../fuse/guestmount.pod:267
20276 msgid "Display the program version and exit."
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20281 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20282 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20283 msgstr ""
20284
20285 #. type: =item
20286 #: ../fuse/guestmount.pod:280
20287 #, fuzzy
20288 #| msgid "B<--ro>"
20289 msgid "B<--trace>"
20290 msgstr "B<--ro>"
20291
20292 #. type: textblock
20293 #: ../fuse/guestmount.pod:282
20294 msgid "Trace libguestfs calls and entry into each FUSE function."
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fuse/guestmount.pod:284
20299 msgid "This also stops the daemon from forking into the background."
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fuse/guestmount.pod:305
20304 msgid ""
20305 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20306 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20307 "net/>."
20308 msgstr ""
20309
20310 #. type: textblock
20311 #: ../fuse/guestmount.pod:320
20312 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20313 msgstr ""
20314
20315 #. type: textblock
20316 #: ../inspector/virt-inspector.pod:5
20317 msgid ""
20318 "virt-inspector - Display operating system version and other information "
20319 "about a virtual machine"
20320 msgstr ""
20321
20322 #. type: verbatim
20323 #: ../inspector/virt-inspector.pod:9
20324 #, fuzzy, no-wrap
20325 #| msgid ""
20326 #| " virt-list-partitions [--options] domname\n"
20327 #| "\n"
20328 msgid ""
20329 " virt-inspector [--options] -d domname\n"
20330 "\n"
20331 msgstr ""
20332 " virt-list-partitions [--параметри] назва_домену\n"
20333 "\n"
20334
20335 #. type: verbatim
20336 #: ../inspector/virt-inspector.pod:11
20337 #, fuzzy, no-wrap
20338 #| msgid ""
20339 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20340 #| "\n"
20341 msgid ""
20342 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20343 "\n"
20344 msgstr ""
20345 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20346 "\n"
20347
20348 #. type: verbatim
20349 #: ../inspector/virt-inspector.pod:15
20350 #, fuzzy, no-wrap
20351 #| msgid ""
20352 #| " virt-list-partitions [--options] domname\n"
20353 #| "\n"
20354 msgid ""
20355 " virt-inspector domname\n"
20356 "\n"
20357 msgstr ""
20358 " virt-list-partitions [--параметри] назва_домену\n"
20359 "\n"
20360
20361 #. type: verbatim
20362 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20363 #, fuzzy, no-wrap
20364 #| msgid ""
20365 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20366 #| "\n"
20367 msgid ""
20368 " virt-inspector disk.img [disk.img ...]\n"
20369 "\n"
20370 msgstr ""
20371 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20372 "\n"
20373
20374 #. type: textblock
20375 #: ../inspector/virt-inspector.pod:21
20376 msgid ""
20377 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20378 "determine the version of the operating system and other information about "
20379 "the virtual machine."
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../inspector/virt-inspector.pod:25
20384 msgid "Virt-inspector produces XML output for feeding into other programs."
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../inspector/virt-inspector.pod:27
20389 msgid ""
20390 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20391 "the libvirt domain (see: C<virsh list --all>)."
20392 msgstr ""
20393
20394 #. type: textblock
20395 #: ../inspector/virt-inspector.pod:30
20396 msgid ""
20397 "You can also run virt-inspector directly on disk images from a single "
20398 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20399 "has several block devices, in which case you should list several I<-a> "
20400 "options one after another, with the first corresponding to the guest's C</"
20401 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../inspector/virt-inspector.pod:37
20406 msgid ""
20407 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20408 "keys and similar."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../inspector/virt-inspector.pod:40
20413 msgid ""
20414 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20415 "inspect several virtual machines, you have to run virt-inspector several "
20416 "times (for example, from a shell script for-loop)."
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../inspector/virt-inspector.pod:45
20421 msgid ""
20422 "Because virt-inspector needs direct access to guest images, it won't "
20423 "normally work over remote libvirt connections."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../inspector/virt-inspector.pod:48
20428 msgid ""
20429 "All of the information available from virt-inspector is also available "
20430 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20431 "The same information can also be fetched using guestfish or via libguestfs "
20432 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20433 "WITH OTHER PROGRAMMING LANGUAGES>)."
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../inspector/virt-inspector.pod:81
20438 msgid ""
20439 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20440 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20441 "at all."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../inspector/virt-inspector.pod:94
20446 msgid ""
20447 "When prompting for keys and passphrases, virt-inspector normally turns "
20448 "echoing off so you cannot see what you are typing.  If you are not worried "
20449 "about Tempest attacks and there is no one else in the room you can specify "
20450 "this flag to see what you are typing."
20451 msgstr ""
20452
20453 #. type: textblock
20454 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20455 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20456 #: ../tools/virt-win-reg.pl:144
20457 msgid ""
20458 "Specify the format of disk images given on the command line.  If this is "
20459 "omitted then the format is autodetected from the content of the disk image."
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20464 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20465 #: ../tools/virt-win-reg.pl:148
20466 msgid ""
20467 "If disk images are requested from libvirt, then this program asks libvirt "
20468 "for this information.  In this case, the value of the format parameter is "
20469 "ignored."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20474 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20475 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20476 #: ../tools/virt-win-reg.pl:152
20477 msgid ""
20478 "If working with untrusted raw-format guest disk images, you should ensure "
20479 "the format is always specified."
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../inspector/virt-inspector.pod:139
20484 msgid "Previous versions of virt-inspector allowed you to write either:"
20485 msgstr ""
20486
20487 #. type: verbatim
20488 #: ../inspector/virt-inspector.pod:145
20489 #, fuzzy, no-wrap
20490 #| msgid ""
20491 #| " inspect-get-hostname root\n"
20492 #| "\n"
20493 msgid ""
20494 " virt-inspector guestname\n"
20495 "\n"
20496 msgstr ""
20497 " inspect-get-hostname корінь\n"
20498 "\n"
20499
20500 #. type: =head1
20501 #: ../inspector/virt-inspector.pod:153
20502 msgid "XML FORMAT"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../inspector/virt-inspector.pod:155
20507 msgid ""
20508 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20509 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20510 "just an overview."
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../inspector/virt-inspector.pod:159
20515 msgid ""
20516 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20517 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20518 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20519 "which is vanishingly rare in real world VMs."
20520 msgstr ""
20521
20522 #. type: =head2
20523 #: ../inspector/virt-inspector.pod:164
20524 msgid "E<lt>operatingsystemE<gt>"
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../inspector/virt-inspector.pod:166
20529 msgid ""
20530 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20531 "describe the operating system, its architecture, the descriptive \"product "
20532 "name\" string, the type of OS and so on, as in this example:"
20533 msgstr ""
20534
20535 #. type: verbatim
20536 #: ../inspector/virt-inspector.pod:170
20537 #, no-wrap
20538 msgid ""
20539 " <operatingsystems>\n"
20540 "   <operatingsystem>\n"
20541 "     <root>/dev/sda2</root>\n"
20542 "     <name>windows</name>\n"
20543 "     <arch>i386</arch>\n"
20544 "     <distro>windows</distro>\n"
20545 "     <product_name>Windows 7 Enterprise</product_name>\n"
20546 "     <product_variant>Client</product_variant>\n"
20547 "     <major_version>6</major_version>\n"
20548 "     <minor_version>1</minor_version>\n"
20549 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20550 "     <format>installed</format>\n"
20551 "\n"
20552 msgstr ""
20553
20554 #. type: textblock
20555 #: ../inspector/virt-inspector.pod:183
20556 msgid ""
20557 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20558 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20559 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20560 "architecture.  The other fields are fairly self-explanatory, but because "
20561 "these fields are taken directly from the libguestfs inspection API you can "
20562 "find precise information from L<guestfs(3)/INSPECTION>."
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../inspector/virt-inspector.pod:191
20567 msgid ""
20568 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20569 "of view of libguestfs (block devices may have completely different names "
20570 "inside the VM itself)."
20571 msgstr ""
20572
20573 #. type: =head2
20574 #: ../inspector/virt-inspector.pod:195
20575 #, fuzzy
20576 #| msgid "mountpoints"
20577 msgid "E<lt>mountpointsE<gt>"
20578 msgstr "mountpoints"
20579
20580 #. type: textblock
20581 #: ../inspector/virt-inspector.pod:197
20582 msgid ""
20583 "Un*x-like guests typically have multiple filesystems which are mounted at "
20584 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20585 "element which looks like this:"
20586 msgstr ""
20587
20588 #. type: verbatim
20589 #: ../inspector/virt-inspector.pod:201
20590 #, no-wrap
20591 msgid ""
20592 " <operatingsystems>\n"
20593 "   <operatingsystem>\n"
20594 "     ...\n"
20595 "     <mountpoints>\n"
20596 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20597 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20598 "     </mountpoints>\n"
20599 "\n"
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../inspector/virt-inspector.pod:209
20604 msgid ""
20605 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20606 "and may have completely different names inside the guest.  Only mountable "
20607 "filesystems appear in this list, not things like swap devices."
20608 msgstr ""
20609
20610 #. type: =head2
20611 #: ../inspector/virt-inspector.pod:214
20612 #, fuzzy
20613 #| msgid "list-filesystems"
20614 msgid "E<lt>filesystemsE<gt>"
20615 msgstr "list-filesystems"
20616
20617 #. type: textblock
20618 #: ../inspector/virt-inspector.pod:216
20619 msgid ""
20620 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20621 "filesystems belonging to the guest, including swap and empty partitions.  "
20622 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20623 "this OS or shared with this OS and other OSes)."
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../inspector/virt-inspector.pod:222
20628 msgid "You might see something like this:"
20629 msgstr ""
20630
20631 #. type: verbatim
20632 #: ../inspector/virt-inspector.pod:224
20633 #, no-wrap
20634 msgid ""
20635 " <operatingsystems>\n"
20636 "   <operatingsystem>\n"
20637 "     ...\n"
20638 "     <filesystems>\n"
20639 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20640 "         <type>ext4</type>\n"
20641 "         <label>Fedora-13-x86_64</label>\n"
20642 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20643 "       </filesystem>\n"
20644 "\n"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../inspector/virt-inspector.pod:234
20649 msgid ""
20650 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20651 "the label, and the UUID."
20652 msgstr ""
20653
20654 #. type: =head2
20655 #: ../inspector/virt-inspector.pod:237
20656 msgid "E<lt>applicationsE<gt>"
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../inspector/virt-inspector.pod:239
20661 msgid ""
20662 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20663 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20664 "machine."
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../inspector/virt-inspector.pod:243
20669 msgid ""
20670 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20671 "Typical values would be C<rpm> and C<deb>."
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../inspector/virt-inspector.pod:246
20676 msgid ""
20677 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20678 "Typical values include C<yum>, C<up2date> and C<apt>"
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../inspector/virt-inspector.pod:249
20683 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20684 msgstr ""
20685
20686 #. type: verbatim
20687 #: ../inspector/virt-inspector.pod:252
20688 #, no-wrap
20689 msgid ""
20690 " <operatingsystems>\n"
20691 "   <operatingsystem>\n"
20692 "     ...\n"
20693 "     <applications>\n"
20694 "       <application>\n"
20695 "         <name>coreutils</name>\n"
20696 "         <version>8.5</version>\n"
20697 "         <release>1</release>\n"
20698 "       </application>\n"
20699 "\n"
20700 msgstr ""
20701
20702 #. type: textblock
20703 #: ../inspector/virt-inspector.pod:262
20704 msgid ""
20705 "The version and release fields may not be available for some types guests.  "
20706 "Other fields are possible, see L<guestfs(3)/"
20707 "guestfs_inspect_list_applications>."
20708 msgstr ""
20709
20710 #. type: =head2
20711 #: ../inspector/virt-inspector.pod:266
20712 msgid "E<lt>drive_mappingsE<gt>"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../inspector/virt-inspector.pod:268
20717 msgid ""
20718 "For operating systems like Windows which use drive letters, virt-inspector "
20719 "is able to find out how drive letters map to filesystems."
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../inspector/virt-inspector.pod:272
20724 #, no-wrap
20725 msgid ""
20726 " <operatingsystems>\n"
20727 "   <operatingsystem>\n"
20728 "     ...\n"
20729 "     <drive_mappings>\n"
20730 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20731 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20732 "     </drive_mappings>\n"
20733 "\n"
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../inspector/virt-inspector.pod:280
20738 msgid ""
20739 "In the example above, drive C maps to the filesystem on the second partition "
20740 "on the first disk, and drive E maps to the filesystem on the first partition "
20741 "on the second disk."
20742 msgstr ""
20743
20744 #. type: textblock
20745 #: ../inspector/virt-inspector.pod:284
20746 msgid ""
20747 "Note that this only covers permanent local filesystem mappings, not things "
20748 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20749 "here."
20750 msgstr ""
20751
20752 #. type: =head2
20753 #: ../inspector/virt-inspector.pod:288
20754 #, fuzzy
20755 #| msgid "B<-s E<lt>NE<gt>>"
20756 msgid "E<lt>iconE<gt>"
20757 msgstr "B<-s E<lt>NE<gt>>"
20758
20759 #. type: textblock
20760 #: ../inspector/virt-inspector.pod:290
20761 msgid ""
20762 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20763 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20764 "very large and high quality."
20765 msgstr ""
20766
20767 #. type: verbatim
20768 #: ../inspector/virt-inspector.pod:294
20769 #, no-wrap
20770 msgid ""
20771 " <operatingsystems>\n"
20772 "   <operatingsystem>\n"
20773 "     ...\n"
20774 "     <icon>\n"
20775 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20776 "       [... many lines of base64 data ...]\n"
20777 "     </icon>\n"
20778 "\n"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../inspector/virt-inspector.pod:302
20783 msgid ""
20784 "To display the icon, you have to extract it and convert the base64 data back "
20785 "to a binary file.  Use an XPath query or simply an editor to extract the "
20786 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20787 "to a PNG file:"
20788 msgstr ""
20789
20790 #. type: verbatim
20791 #: ../inspector/virt-inspector.pod:307
20792 #, no-wrap
20793 msgid ""
20794 " base64 -i -d < icon.data > icon.png\n"
20795 "\n"
20796 msgstr ""
20797
20798 #. type: =head2
20799 #: ../inspector/virt-inspector.pod:309
20800 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../inspector/virt-inspector.pod:311
20805 msgid ""
20806 "Virt-inspector can detect some operating system installers on install disks, "
20807 "live CDs, bootable USB keys and more."
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../inspector/virt-inspector.pod:314
20812 msgid ""
20813 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20814 "fields may be present to indicate a live CD, network installer, or one part "
20815 "of a multipart CD.  For example:"
20816 msgstr ""
20817
20818 #. type: verbatim
20819 #: ../inspector/virt-inspector.pod:318
20820 #, no-wrap
20821 msgid ""
20822 " <operatingsystems>\n"
20823 "   <operatingsystem>\n"
20824 "     <root>/dev/sda</root>\n"
20825 "     <name>linux</name>\n"
20826 "     <arch>i386</arch>\n"
20827 "     <distro>ubuntu</distro>\n"
20828 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20829 "     <major_version>10</major_version>\n"
20830 "     <minor_version>10</minor_version>\n"
20831 "     <format>installer</format>\n"
20832 "     <live/>\n"
20833 "\n"
20834 msgstr ""
20835
20836 #. type: =head1
20837 #: ../inspector/virt-inspector.pod:330
20838 msgid "USING XPATH"
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../inspector/virt-inspector.pod:332
20843 msgid ""
20844 "You can use the XPath query language, and/or the xpath tool, in order to "
20845 "select parts of the XML."
20846 msgstr ""
20847
20848 #. type: verbatim
20849 #: ../inspector/virt-inspector.pod:337
20850 #, no-wrap
20851 msgid ""
20852 " $ virt-inspector -d Guest | xpath //filesystems\n"
20853 " Found 1 nodes:\n"
20854 " -- NODE --\n"
20855 " <filesystems>\n"
20856 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20857 "        <type>ext4</type>\n"
20858 " [etc]\n"
20859 "\n"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../inspector/virt-inspector.pod:345
20864 #, no-wrap
20865 msgid ""
20866 " $ virt-inspector -d Guest | \\\n"
20867 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20868 " Query didn't return a nodeset. Value: ext4\n"
20869 "\n"
20870 msgstr ""
20871
20872 #. type: =head1
20873 #: ../inspector/virt-inspector.pod:356
20874 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20875 msgstr ""
20876
20877 #. type: textblock
20878 #: ../inspector/virt-inspector.pod:358
20879 msgid ""
20880 "Early versions of libguestfs shipped with a different virt-inspector program "
20881 "written in Perl (the current version is written in C).  The XML output of "
20882 "the Perl virt-inspector was different and it could also output in other "
20883 "formats like text."
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../inspector/virt-inspector.pod:363
20888 msgid ""
20889 "The old virt-inspector is no longer supported or shipped with libguestfs."
20890 msgstr ""
20891
20892 #. type: textblock
20893 #: ../inspector/virt-inspector.pod:366
20894 msgid ""
20895 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20896 "versions of virt-inspector with different names:"
20897 msgstr ""
20898
20899 #. type: verbatim
20900 #: ../inspector/virt-inspector.pod:369
20901 #, no-wrap
20902 msgid ""
20903 " virt-inspector     Old Perl version.\n"
20904 " virt-inspector2    New C version.\n"
20905 "\n"
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../inspector/virt-inspector.pod:374
20910 msgid ""
20911 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20912 ">, L<http://libguestfs.org/>."
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../inspector/virt-inspector.pod:390
20917 msgid "Matthew Booth L<mbooth@redhat.com>"
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../java/examples/guestfs-java.pod:5
20922 msgid "guestfs-java - How to use libguestfs from Java"
20923 msgstr ""
20924
20925 #. type: verbatim
20926 #: ../java/examples/guestfs-java.pod:9
20927 #, no-wrap
20928 msgid ""
20929 " import com.redhat.et.libguestfs.*;\n"
20930 " \n"
20931 msgstr ""
20932
20933 #. type: verbatim
20934 #: ../java/examples/guestfs-java.pod:11
20935 #, no-wrap
20936 msgid ""
20937 " GuestFS g = new GuestFS ();\n"
20938 " g.add_drive_opts (\"disk.img\", null);\n"
20939 " g.launch ();\n"
20940 "\n"
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../java/examples/guestfs-java.pod:17
20945 msgid ""
20946 "This manual page documents how to call libguestfs from the Java programming "
20947 "language.  This page just documents the differences from the C API and gives "
20948 "some examples.  If you are not familiar with using libguestfs, you also need "
20949 "to read L<guestfs(3)>."
20950 msgstr ""
20951
20952 #. type: =head2
20953 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20954 msgid "CLOSING THE HANDLE"
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../java/examples/guestfs-java.pod:24
20959 msgid ""
20960 "The handle is closed when it is reaped by the garbage collector.  Because "
20961 "libguestfs handles include a lot of state, it is also possible to close (and "
20962 "hence free) them explicitly by calling the C<close> method."
20963 msgstr ""
20964
20965 #. type: =head2
20966 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20967 #: ../python/examples/guestfs-python.pod:21
20968 #: ../ruby/examples/guestfs-ruby.pod:22
20969 #, fuzzy
20970 #| msgid "OPTIONS"
20971 msgid "EXCEPTIONS"
20972 msgstr "ПАРАМЕТРИ"
20973
20974 #. type: textblock
20975 #: ../java/examples/guestfs-java.pod:31
20976 msgid ""
20977 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20978 "exception.  This has a single parameter which is the error message (a "
20979 "C<String>)."
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../java/examples/guestfs-java.pod:35
20984 msgid "Calling any method on a closed handle raises the same exception."
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../java/examples/guestfs-java.pod:47
20989 #, fuzzy
20990 #| msgid ""
20991 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20992 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20993 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20994 msgid ""
20995 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20996 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20997 "libguestfs.org/>, L<http://caml.inria.fr/>."
20998 msgstr ""
20999 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21000 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21001 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21002
21003 #. type: textblock
21004 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21005 #, fuzzy
21006 #| msgid "Copyright (C) 2009 Red Hat Inc."
21007 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21008 msgstr "© Red Hat Inc., 2009"
21009
21010 #. type: textblock
21011 #: ../ocaml/examples/guestfs-ocaml.pod:5
21012 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../ocaml/examples/guestfs-ocaml.pod:9
21017 msgid "Module style:"
21018 msgstr ""
21019
21020 #. type: verbatim
21021 #: ../ocaml/examples/guestfs-ocaml.pod:11
21022 #, no-wrap
21023 msgid ""
21024 " let g = Guestfs.create () in\n"
21025 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21026 " Guestfs.launch g;\n"
21027 "\n"
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../ocaml/examples/guestfs-ocaml.pod:15
21032 msgid "Object-oriented style:"
21033 msgstr ""
21034
21035 #. type: verbatim
21036 #: ../ocaml/examples/guestfs-ocaml.pod:17
21037 #, no-wrap
21038 msgid ""
21039 " let g = new Guestfs.guestfs () in\n"
21040 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21041 " g#launch ();\n"
21042 "\n"
21043 msgstr ""
21044
21045 #. type: verbatim
21046 #: ../ocaml/examples/guestfs-ocaml.pod:21
21047 #, no-wrap
21048 msgid ""
21049 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21050 "or:\n"
21051 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21052 "\n"
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../ocaml/examples/guestfs-ocaml.pod:27
21057 msgid ""
21058 "This manual page documents how to call libguestfs from the OCaml programming "
21059 "language.  This page just documents the differences from the C API and gives "
21060 "some examples.  If you are not familiar with using libguestfs, you also need "
21061 "to read L<guestfs(3)>."
21062 msgstr ""
21063
21064 #. type: =head2
21065 #: ../ocaml/examples/guestfs-ocaml.pod:32
21066 msgid "PROGRAMMING STYLES"
21067 msgstr ""
21068
21069 #. type: textblock
21070 #: ../ocaml/examples/guestfs-ocaml.pod:34
21071 msgid ""
21072 "There are two different programming styles supported by the OCaml bindings.  "
21073 "You can use a module style, with each C function mapped to an OCaml function:"
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../ocaml/examples/guestfs-ocaml.pod:38
21078 #, fuzzy, no-wrap
21079 #| msgid ""
21080 #| " int guestfs_last_errno (guestfs_h *g);\n"
21081 #| "\n"
21082 msgid ""
21083 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21084 "\n"
21085 msgstr ""
21086 " int guestfs_last_errno (guestfs_h *g);\n"
21087 "\n"
21088
21089 #. type: textblock
21090 #: ../ocaml/examples/guestfs-ocaml.pod:40
21091 msgid "becomes:"
21092 msgstr ""
21093
21094 #. type: verbatim
21095 #: ../ocaml/examples/guestfs-ocaml.pod:42
21096 #, no-wrap
21097 msgid ""
21098 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21099 "\n"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../ocaml/examples/guestfs-ocaml.pod:44
21104 msgid ""
21105 "Alternately you can use an object-oriented style, calling methods on the "
21106 "class C<Guestfs.guestfs>:"
21107 msgstr ""
21108
21109 #. type: verbatim
21110 #: ../ocaml/examples/guestfs-ocaml.pod:47
21111 #, no-wrap
21112 msgid ""
21113 " method set_verbose : bool -> unit\n"
21114 "\n"
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../ocaml/examples/guestfs-ocaml.pod:49
21119 msgid ""
21120 "The object-oriented style is usually briefer, and the minor performance "
21121 "penalty isn't noticable in the general overhead of performing libguestfs "
21122 "functions."
21123 msgstr ""
21124
21125 #. type: textblock
21126 #: ../ocaml/examples/guestfs-ocaml.pod:55
21127 msgid ""
21128 "The handle is closed when it is reaped by the garbage collector.  Because "
21129 "libguestfs handles include a lot of state, it is also possible to close (and "
21130 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21131 "method."
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../ocaml/examples/guestfs-ocaml.pod:62
21136 msgid ""
21137 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21138 "exception.  This has a single parameter which is the error message (a "
21139 "string)."
21140 msgstr ""
21141
21142 #. type: textblock
21143 #: ../ocaml/examples/guestfs-ocaml.pod:66
21144 msgid ""
21145 "Calling any function/method on a closed handle raises C<Guestfs."
21146 "Handle_closed>.  The single parameter is the name of the function that you "
21147 "called."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../ocaml/examples/guestfs-ocaml.pod:80
21152 #, fuzzy
21153 #| msgid ""
21154 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21155 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21156 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21157 msgid ""
21158 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21159 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21160 "libguestfs.org/>, L<http://caml.inria.fr/>."
21161 msgstr ""
21162 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21163 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21164 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21165
21166 #. type: textblock
21167 #: ../perl/examples/guestfs-perl.pod:5
21168 msgid "guestfs-perl - How to use libguestfs from Perl"
21169 msgstr ""
21170
21171 #. type: verbatim
21172 #: ../perl/examples/guestfs-perl.pod:9
21173 #, no-wrap
21174 msgid ""
21175 " use Sys::Guestfs;\n"
21176 " \n"
21177 msgstr ""
21178
21179 #. type: verbatim
21180 #: ../perl/examples/guestfs-perl.pod:11
21181 #, no-wrap
21182 msgid ""
21183 " my $h = Sys::Guestfs->new ();\n"
21184 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21185 " $h->launch ();\n"
21186 " $h->mount_options ('', '/dev/sda1', '/');\n"
21187 " $h->touch ('/hello');\n"
21188 " $h->sync ();\n"
21189 "\n"
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../perl/examples/guestfs-perl.pod:20
21194 msgid ""
21195 "This manual page documents how to call libguestfs from the Perl programming "
21196 "language.  This page just documents the differences from the C API and gives "
21197 "some examples.  If you are not familiar with using libguestfs, you also need "
21198 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21199 msgstr ""
21200
21201 #. type: =head2
21202 #: ../perl/examples/guestfs-perl.pod:26
21203 msgid "ERRORS"
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../perl/examples/guestfs-perl.pod:28
21208 msgid ""
21209 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21210 ">)."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../perl/examples/guestfs-perl.pod:41
21215 #, fuzzy
21216 #| msgid ""
21217 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21218 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21219 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21220 msgid ""
21221 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21222 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21223 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21224 msgstr ""
21225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21228
21229 #. type: textblock
21230 #: ../python/examples/guestfs-python.pod:5
21231 msgid "guestfs-python - How to use libguestfs from Python"
21232 msgstr ""
21233
21234 #. type: verbatim
21235 #: ../python/examples/guestfs-python.pod:9
21236 #, no-wrap
21237 msgid ""
21238 " import guestfs\n"
21239 " g = guestfs.GuestFS ()\n"
21240 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21241 " g.launch\n"
21242 "\n"
21243 msgstr ""
21244
21245 #. type: textblock
21246 #: ../python/examples/guestfs-python.pod:16
21247 msgid ""
21248 "This manual page documents how to call libguestfs from the Python "
21249 "programming language.  This page just documents the differences from the C "
21250 "API and gives some examples.  If you are not familiar with using libguestfs, "
21251 "you also need to read L<guestfs(3)>."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../python/examples/guestfs-python.pod:23
21256 msgid ""
21257 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21258 "single string argument which is the error message."
21259 msgstr ""
21260
21261 #. type: =head2
21262 #: ../python/examples/guestfs-python.pod:26
21263 msgid "MORE DOCUMENTATION"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../python/examples/guestfs-python.pod:28
21268 msgid "Type:"
21269 msgstr ""
21270
21271 #. type: verbatim
21272 #: ../python/examples/guestfs-python.pod:30
21273 #, no-wrap
21274 msgid ""
21275 " $ python\n"
21276 " >>> import guestfs\n"
21277 " >>> help (guestfs)\n"
21278 "\n"
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../python/examples/guestfs-python.pod:44
21283 #, fuzzy
21284 #| msgid ""
21285 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21286 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21287 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21288 msgid ""
21289 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21290 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21291 "libguestfs.org/>."
21292 msgstr ""
21293 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21294 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21295 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21296
21297 #. type: textblock
21298 #: ../rescue/virt-rescue.pod:5
21299 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21300 msgstr ""
21301
21302 #. type: verbatim
21303 #: ../rescue/virt-rescue.pod:9
21304 #, fuzzy, no-wrap
21305 #| msgid ""
21306 #| " virt-list-partitions [--options] domname\n"
21307 #| "\n"
21308 msgid ""
21309 " virt-rescue [--options] -d domname\n"
21310 "\n"
21311 msgstr ""
21312 " virt-list-partitions [--параметри] назва_домену\n"
21313 "\n"
21314
21315 #. type: verbatim
21316 #: ../rescue/virt-rescue.pod:11
21317 #, fuzzy, no-wrap
21318 #| msgid ""
21319 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21320 #| "\n"
21321 msgid ""
21322 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21323 "\n"
21324 msgstr ""
21325 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21326 "\n"
21327
21328 #. type: verbatim
21329 #: ../rescue/virt-rescue.pod:15
21330 #, fuzzy, no-wrap
21331 #| msgid ""
21332 #| " virt-list-partitions [--options] domname\n"
21333 #| "\n"
21334 msgid ""
21335 " virt-rescue [--options] domname\n"
21336 "\n"
21337 msgstr ""
21338 " virt-list-partitions [--параметри] назва_домену\n"
21339 "\n"
21340
21341 #. type: verbatim
21342 #: ../rescue/virt-rescue.pod:17
21343 #, fuzzy, no-wrap
21344 #| msgid ""
21345 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21346 #| "\n"
21347 msgid ""
21348 " virt-rescue [--options] disk.img [disk.img ...]\n"
21349 "\n"
21350 msgstr ""
21351 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21352 "\n"
21353
21354 #. type: textblock
21355 #: ../rescue/virt-rescue.pod:21
21356 msgid ""
21357 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21358 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21359 "you from doing this, but doesn't catch all cases."
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../rescue/virt-rescue.pod:25
21364 msgid ""
21365 "However if you use the I<--ro> (read only) option, then you can attach a "
21366 "shell to a live virtual machine.  The results might be strange or "
21367 "inconsistent at times but you won't get disk corruption."
21368 msgstr ""
21369
21370 #. type: textblock
21371 #: ../rescue/virt-rescue.pod:31
21372 msgid ""
21373 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21374 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21375 "recovery tools which you can use to examine or rescue a virtual machine or "
21376 "disk image."
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../rescue/virt-rescue.pod:36
21381 msgid ""
21382 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21383 "on disk image(s):"
21384 msgstr ""
21385
21386 #. type: verbatim
21387 #: ../rescue/virt-rescue.pod:39
21388 #, no-wrap
21389 msgid ""
21390 " virt-rescue -d GuestName\n"
21391 "\n"
21392 msgstr ""
21393
21394 #. type: verbatim
21395 #: ../rescue/virt-rescue.pod:41
21396 #, no-wrap
21397 msgid ""
21398 " virt-rescue --ro -a /path/to/disk.img\n"
21399 "\n"
21400 msgstr ""
21401
21402 #. type: verbatim
21403 #: ../rescue/virt-rescue.pod:43
21404 #, no-wrap
21405 msgid ""
21406 " virt-rescue -a /dev/sdc\n"
21407 "\n"
21408 msgstr ""
21409
21410 #. type: textblock
21411 #: ../rescue/virt-rescue.pod:45
21412 msgid "For live VMs you I<must> use the --ro option."
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../rescue/virt-rescue.pod:47
21417 msgid ""
21418 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21419 "in an interactive bash shell where you can use many ordinary Linux "
21420 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21421 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21422 "is an empty directory called C</sysroot> where you can mount filesystems."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../rescue/virt-rescue.pod:54
21427 msgid ""
21428 "In the example below, we list logical volumes, then choose one to mount "
21429 "under C</sysroot>:"
21430 msgstr ""
21431
21432 #. type: verbatim
21433 #: ../rescue/virt-rescue.pod:57
21434 #, no-wrap
21435 msgid ""
21436 " ><rescue> lvs\n"
21437 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21438 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21439 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21440 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21441 " ><rescue> ls /sysroot\n"
21442 "\n"
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../rescue/virt-rescue.pod:64
21447 msgid ""
21448 "If you don't know what filesystems are available on the virtual machine then "
21449 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../rescue/virt-rescue.pod:70
21454 msgid ""
21455 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21456 "virtual machine.  For example you can use it on a blank file if you want to "
21457 "partition that file (although we would recommend using L<guestfish(1)> "
21458 "instead as it is more suitable for this purpose).  You can even use virt-"
21459 "rescue on things like SD cards."
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../rescue/virt-rescue.pod:76
21464 msgid ""
21465 "Virt-rescue does not require root.  You only need to run it as root if you "
21466 "need root to open the disk image."
21467 msgstr ""
21468
21469 #. type: textblock
21470 #: ../rescue/virt-rescue.pod:79
21471 msgid ""
21472 "This tool is just designed for quick interactive hacking on a virtual "
21473 "machine.  For more structured access to a virtual machine disk image, you "
21474 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21475 "make scripted changes to guests, use L<guestfish(1)>."
21476 msgstr ""
21477
21478 #. type: =item
21479 #: ../rescue/virt-rescue.pod:103
21480 msgid "B<--append kernelopts>"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../rescue/virt-rescue.pod:105
21485 msgid "Pass additional options to the rescue kernel."
21486 msgstr ""
21487
21488 #. type: verbatim
21489 #: ../rescue/virt-rescue.pod:135
21490 #, fuzzy, no-wrap
21491 #| msgid ""
21492 #| " guestfish --format=raw -a disk.img\n"
21493 #| "\n"
21494 msgid ""
21495 " virt-rescue --format=raw -a disk.img\n"
21496 "\n"
21497 msgstr ""
21498 " guestfish --format=raw -a disk.img\n"
21499 "\n"
21500
21501 #. type: verbatim
21502 #: ../rescue/virt-rescue.pod:139
21503 #, fuzzy, no-wrap
21504 #| msgid ""
21505 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21506 #| "\n"
21507 msgid ""
21508 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21509 "\n"
21510 msgstr ""
21511 " guestfish --format=raw -a disk.img --format -a another.img\n"
21512 "\n"
21513
21514 #. type: =item
21515 #: ../rescue/virt-rescue.pod:148
21516 msgid "B<-m MB>"
21517 msgstr ""
21518
21519 #. type: =item
21520 #: ../rescue/virt-rescue.pod:150
21521 #, fuzzy
21522 #| msgid "B<--merge>"
21523 msgid "B<--memsize MB>"
21524 msgstr "B<--merge>"
21525
21526 #. type: textblock
21527 #: ../rescue/virt-rescue.pod:152
21528 msgid ""
21529 "Change the amount of memory allocated to the rescue system.  The default is "
21530 "set by libguestfs and is small but adequate for running system tools.  The "
21531 "occasional program might need more memory.  The parameter is specified in "
21532 "megabytes."
21533 msgstr ""
21534
21535 #. type: =item
21536 #: ../rescue/virt-rescue.pod:157
21537 #, fuzzy
21538 #| msgid "B<--inspector>"
21539 msgid "B<--network>"
21540 msgstr "B<--inspector>"
21541
21542 #. type: textblock
21543 #: ../rescue/virt-rescue.pod:159
21544 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21545 msgstr ""
21546
21547 #. type: textblock
21548 #: ../rescue/virt-rescue.pod:165
21549 msgid "Open the image read-only."
21550 msgstr ""
21551
21552 #. type: textblock
21553 #: ../rescue/virt-rescue.pod:175
21554 msgid ""
21555 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21556 "SELINUX> before using this option."
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../rescue/virt-rescue.pod:194
21561 msgid ""
21562 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21563 "are done read-write."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../rescue/virt-rescue.pod:207
21568 msgid "Previous versions of virt-rescue allowed you to write either:"
21569 msgstr ""
21570
21571 #. type: verbatim
21572 #: ../rescue/virt-rescue.pod:209
21573 #, fuzzy, no-wrap
21574 #| msgid ""
21575 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21576 #| "\n"
21577 msgid ""
21578 " virt-rescue disk.img [disk.img ...]\n"
21579 "\n"
21580 msgstr ""
21581 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21582 "\n"
21583
21584 #. type: verbatim
21585 #: ../rescue/virt-rescue.pod:213
21586 #, fuzzy, no-wrap
21587 #| msgid ""
21588 #| " file-architecture filename\n"
21589 #| "\n"
21590 msgid ""
21591 " virt-rescue guestname\n"
21592 "\n"
21593 msgstr ""
21594 " file-architecture назва_файла\n"
21595 "\n"
21596
21597 #. type: =head1
21598 #: ../rescue/virt-rescue.pod:221
21599 msgid "NETWORK"
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../rescue/virt-rescue.pod:223
21604 msgid ""
21605 "Adding the I<--network> option enables QEMU user networking in the rescue "
21606 "appliance.  There are some differences between user networking and ordinary "
21607 "networking:"
21608 msgstr ""
21609
21610 #. type: =item
21611 #: ../rescue/virt-rescue.pod:229
21612 msgid "ping does not work"
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../rescue/virt-rescue.pod:231
21617 msgid ""
21618 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21619 "send the ping packets, and because virt-rescue must be able to run as non-"
21620 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21621 "The ping command will appear to resolve addresses but will not be able to "
21622 "send or receive any packets.  This does not mean that the network is not "
21623 "working."
21624 msgstr ""
21625
21626 #. type: =item
21627 #: ../rescue/virt-rescue.pod:238
21628 msgid "cannot receive connections"
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../rescue/virt-rescue.pod:240
21633 msgid "QEMU user networking cannot receive incoming connections."
21634 msgstr ""
21635
21636 #. type: =item
21637 #: ../rescue/virt-rescue.pod:242
21638 msgid "making TCP connections"
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../rescue/virt-rescue.pod:244
21643 msgid ""
21644 "The virt-rescue appliance needs to be small and so does not include many "
21645 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21646 "make TCP connections from the shell using the magical C</dev/tcp/"
21647 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21648 msgstr ""
21649
21650 #. type: verbatim
21651 #: ../rescue/virt-rescue.pod:249
21652 #, no-wrap
21653 msgid ""
21654 " exec 3<>/dev/tcp/redhat.com/80\n"
21655 " echo \"GET /\" >&3\n"
21656 " cat <&3\n"
21657 "\n"
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../rescue/virt-rescue.pod:253
21662 msgid "See L<bash(1)> for more details."
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../rescue/virt-rescue.pod:259
21667 msgid ""
21668 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21669 "ENVIRONMENT VARIABLES> for the complete list."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../rescue/virt-rescue.pod:286
21674 #, fuzzy
21675 #| msgid ""
21676 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21677 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21678 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21679 msgid ""
21680 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21681 "libguestfs.org/>."
21682 msgstr ""
21683 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21684 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21685 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21686
21687 #. type: textblock
21688 #: ../resize/virt-resize.pod:5
21689 msgid "virt-resize - Resize a virtual machine disk"
21690 msgstr ""
21691
21692 #. type: verbatim
21693 #: ../resize/virt-resize.pod:9
21694 #, no-wrap
21695 msgid ""
21696 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21697 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21698 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21699 "\n"
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../resize/virt-resize.pod:15
21704 msgid ""
21705 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21706 "larger or smaller overall, and resizing or deleting any partitions contained "
21707 "within."
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../resize/virt-resize.pod:19
21712 msgid ""
21713 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21714 "not> be used on live virtual machines - for consistent results, shut the "
21715 "virtual machine down before resizing it."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../resize/virt-resize.pod:23
21720 msgid ""
21721 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21722 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21723 msgstr ""
21724
21725 #. type: =item
21726 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21727 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
21728 msgid "1."
21729 msgstr "1."
21730
21731 #. type: textblock
21732 #: ../resize/virt-resize.pod:33
21733 msgid ""
21734 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21735 "fill the extra 5GB of space."
21736 msgstr ""
21737
21738 #. type: verbatim
21739 #: ../resize/virt-resize.pod:36
21740 #, no-wrap
21741 msgid ""
21742 " virt-filesystems --long -h --all -a olddisk\n"
21743 " \n"
21744 msgstr ""
21745
21746 #. type: verbatim
21747 #: ../resize/virt-resize.pod:38
21748 #, no-wrap
21749 msgid ""
21750 " truncate -r olddisk newdisk\n"
21751 " truncate -s +5G newdisk\n"
21752 " \n"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../resize/virt-resize.pod:41
21757 #, no-wrap
21758 msgid ""
21759 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21760 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: =item
21765 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21766 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
21767 msgid "2."
21768 msgstr "2."
21769
21770 #. type: textblock
21771 #: ../resize/virt-resize.pod:46
21772 msgid ""
21773 "As above, but make the /boot partition 200MB bigger, while giving the "
21774 "remaining space to /dev/sda2:"
21775 msgstr ""
21776
21777 #. type: verbatim
21778 #: ../resize/virt-resize.pod:49
21779 #, no-wrap
21780 msgid ""
21781 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21782 "   olddisk newdisk\n"
21783 "\n"
21784 msgstr ""
21785
21786 #. type: =item
21787 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
21788 msgid "3."
21789 msgstr "3."
21790
21791 #. type: textblock
21792 #: ../resize/virt-resize.pod:54
21793 msgid ""
21794 "As in the first example, but expand a logical volume as the final step.  "
21795 "This is what you would typically use for Linux guests that use LVM:"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../resize/virt-resize.pod:58
21800 #, no-wrap
21801 msgid ""
21802 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21803 "   olddisk newdisk\n"
21804 "\n"
21805 msgstr ""
21806
21807 #. type: =item
21808 #: ../resize/virt-resize.pod:61
21809 msgid "4."
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../resize/virt-resize.pod:63
21814 msgid ""
21815 "As in the first example, but the output format will be qcow2 instead of a "
21816 "raw disk:"
21817 msgstr ""
21818
21819 #. type: verbatim
21820 #: ../resize/virt-resize.pod:66
21821 #, no-wrap
21822 msgid ""
21823 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21824 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21825 "\n"
21826 msgstr ""
21827
21828 #. type: =head1
21829 #: ../resize/virt-resize.pod:71
21830 msgid "DETAILED USAGE"
21831 msgstr ""
21832
21833 #. type: =head2
21834 #: ../resize/virt-resize.pod:73
21835 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21836 msgstr ""
21837
21838 #. type: =item
21839 #: ../resize/virt-resize.pod:77
21840 msgid "1. Shut down the virtual machine"
21841 msgstr ""
21842
21843 #. type: =item
21844 #: ../resize/virt-resize.pod:79
21845 msgid "2. Locate input disk image"
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../resize/virt-resize.pod:81
21850 msgid ""
21851 "Locate the input disk image (ie. the file or device on the host containing "
21852 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21853 "dumpxml> like this to find the disk image name:"
21854 msgstr ""
21855
21856 #. type: verbatim
21857 #: ../resize/virt-resize.pod:85
21858 #, no-wrap
21859 msgid ""
21860 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21861 " Found 1 nodes:\n"
21862 " -- NODE --\n"
21863 " <source dev=\"/dev/vg/lv_guest\" />\n"
21864 "\n"
21865 msgstr ""
21866
21867 #. type: =item
21868 #: ../resize/virt-resize.pod:90
21869 msgid "3. Look at current sizing"
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../resize/virt-resize.pod:92
21874 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21875 msgstr ""
21876
21877 #. type: verbatim
21878 #: ../resize/virt-resize.pod:95
21879 #, no-wrap
21880 msgid ""
21881 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21882 " Name       Type       Size  Parent\n"
21883 " /dev/sda1  partition  101M  /dev/sda\n"
21884 " /dev/sda2  partition  7.9G  /dev/sda\n"
21885 " /dev/sda   device     8.0G  -\n"
21886 "\n"
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../resize/virt-resize.pod:101
21891 msgid ""
21892 "(This example is a virtual machine with an 8 GB disk which we would like to "
21893 "expand up to 10 GB)."
21894 msgstr ""
21895
21896 #. type: =item
21897 #: ../resize/virt-resize.pod:104
21898 msgid "4. Create output disk"
21899 msgstr ""
21900
21901 #. type: textblock
21902 #: ../resize/virt-resize.pod:106
21903 msgid ""
21904 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21905 "to store the resized output disk."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../resize/virt-resize.pod:109
21910 msgid ""
21911 "To store the resized disk image in a file, create a file of a suitable size:"
21912 msgstr ""
21913
21914 #. type: verbatim
21915 #: ../resize/virt-resize.pod:112
21916 #, no-wrap
21917 msgid ""
21918 " # rm -f outdisk\n"
21919 " # truncate -s 10G outdisk\n"
21920 "\n"
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../resize/virt-resize.pod:115
21925 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21926 msgstr ""
21927
21928 #. type: verbatim
21929 #: ../resize/virt-resize.pod:117
21930 #, no-wrap
21931 msgid ""
21932 " # lvcreate -L 10G -n lv_name vg_name\n"
21933 "\n"
21934 msgstr ""
21935
21936 #. type: textblock
21937 #: ../resize/virt-resize.pod:119
21938 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../resize/virt-resize.pod:121
21943 #, no-wrap
21944 msgid ""
21945 " # virsh pool-list\n"
21946 " # virsh vol-create-as poolname newvol 10G\n"
21947 "\n"
21948 msgstr ""
21949
21950 #. type: =item
21951 #: ../resize/virt-resize.pod:124
21952 msgid "5. Resize"
21953 msgstr ""
21954
21955 #. type: textblock
21956 #: ../resize/virt-resize.pod:126
21957 msgid ""
21958 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21959 "file) and the output disk.  The output disk is the one created in the "
21960 "previous step."
21961 msgstr ""
21962
21963 #. type: verbatim
21964 #: ../resize/virt-resize.pod:130
21965 #, no-wrap
21966 msgid ""
21967 " # virt-resize indisk outdisk\n"
21968 "\n"
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../resize/virt-resize.pod:132
21973 msgid ""
21974 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21975 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21976 "larger, then an extra, empty partition is created at the end of the disk "
21977 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21978 "error."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../resize/virt-resize.pod:138
21983 msgid ""
21984 "More realistically you'd want to expand existing partitions in the disk "
21985 "image by passing extra options (for the full list see the L</OPTIONS> "
21986 "section below)."
21987 msgstr ""
21988
21989 #. type: textblock
21990 #: ../resize/virt-resize.pod:142
21991 msgid ""
21992 "L</--expand> is the most useful option.  It expands the named partition "
21993 "within the disk to fill any extra space:"
21994 msgstr ""
21995
21996 #. type: verbatim
21997 #: ../resize/virt-resize.pod:145
21998 #, no-wrap
21999 msgid ""
22000 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22001 "\n"
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../resize/virt-resize.pod:147
22006 msgid ""
22007 "(In this case, an extra partition is I<not> created at the end of the disk, "
22008 "because there will be no unused space)."
22009 msgstr ""
22010
22011 #. type: textblock
22012 #: ../resize/virt-resize.pod:150
22013 msgid ""
22014 "L</--resize> is the other commonly used option.  The following would "
22015 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22016 "rest of the available space:"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../resize/virt-resize.pod:154
22021 #, no-wrap
22022 msgid ""
22023 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22024 "     indisk outdisk\n"
22025 "\n"
22026 msgstr ""
22027
22028 #. type: textblock
22029 #: ../resize/virt-resize.pod:157
22030 msgid ""
22031 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22032 "if virt-resize knows how, it will resize the contents, the equivalent of "
22033 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22034 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22035 "filesystems, so you would have to online resize them after booting the guest."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../resize/virt-resize.pod:164
22040 msgid "Other options are covered below."
22041 msgstr ""
22042
22043 #. type: =item
22044 #: ../resize/virt-resize.pod:166
22045 msgid "6. Test"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../resize/virt-resize.pod:168
22050 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../resize/virt-resize.pod:170
22055 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22056 msgstr ""
22057
22058 #. type: verbatim
22059 #: ../resize/virt-resize.pod:172
22060 #, fuzzy, no-wrap
22061 #| msgid ""
22062 #| " edit filename\n"
22063 #| "\n"
22064 msgid ""
22065 " # virsh edit guestname\n"
22066 "\n"
22067 msgstr ""
22068 " edit назва_файла\n"
22069 "\n"
22070
22071 #. type: textblock
22072 #: ../resize/virt-resize.pod:174
22073 msgid ""
22074 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22075 "html#elementsDisks>"
22076 msgstr ""
22077
22078 #. type: textblock
22079 #: ../resize/virt-resize.pod:177
22080 msgid "Then start up the domain with the new, resized disk:"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../resize/virt-resize.pod:179
22085 #, fuzzy, no-wrap
22086 #| msgid ""
22087 #| " ln-s target linkname\n"
22088 #| "\n"
22089 msgid ""
22090 " # virsh start guestname\n"
22091 "\n"
22092 msgstr ""
22093 " ln-s призначення назва_посилання\n"
22094 "\n"
22095
22096 #. type: textblock
22097 #: ../resize/virt-resize.pod:181
22098 msgid ""
22099 "and check that it still works.  See also the L</NOTES> section below for "
22100 "additional information."
22101 msgstr ""
22102
22103 #. type: =item
22104 #: ../resize/virt-resize.pod:184
22105 msgid "7. Resize LVs etc inside the guest"
22106 msgstr ""
22107
22108 #. type: textblock
22109 #: ../resize/virt-resize.pod:186
22110 msgid "(This can also be done offline using L<guestfish(1)>)"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../resize/virt-resize.pod:188
22115 msgid ""
22116 "Once the guest has booted you should see the new space available, at least "
22117 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22118 "may need to resize LVs inside PVs, and also resize filesystem types that "
22119 "virt-resize does not know how to expand."
22120 msgstr ""
22121
22122 #. type: =head2
22123 #: ../resize/virt-resize.pod:195
22124 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22125 msgstr ""
22126
22127 #. type: textblock
22128 #: ../resize/virt-resize.pod:197
22129 msgid ""
22130 "Shrinking is somewhat more complex than expanding, and only an overview is "
22131 "given here."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../resize/virt-resize.pod:200
22136 msgid ""
22137 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22138 "filesystems).  The user has to shrink content before passing the disk image "
22139 "to virt-resize, and virt-resize will check that the content has been shrunk "
22140 "properly."
22141 msgstr ""
22142
22143 #. type: textblock
22144 #: ../resize/virt-resize.pod:205
22145 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../resize/virt-resize.pod:207
22150 msgid ""
22151 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22152 "steps 3 and 4 above to allocate a new disk image."
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../resize/virt-resize.pod:210
22157 msgid ""
22158 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22159 msgstr ""
22160
22161 #. type: =head2
22162 #: ../resize/virt-resize.pod:213
22163 msgid "IGNORING OR DELETING PARTITIONS"
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../resize/virt-resize.pod:215
22168 msgid ""
22169 "virt-resize also gives a convenient way to ignore or delete partitions when "
22170 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22171 "up the copy where you don't care about the existing contents of a "
22172 "partition.  Deleting a partition removes it completely, but note that it "
22173 "also renumbers any partitions after the one which is deleted, which can "
22174 "leave some guests unbootable."
22175 msgstr ""
22176
22177 #. type: =head2
22178 #: ../resize/virt-resize.pod:222
22179 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22180 msgstr ""
22181
22182 #. type: textblock
22183 #: ../resize/virt-resize.pod:224
22184 msgid ""
22185 "If the input disk is in qcow2 format, then you may prefer that the output is "
22186 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22187 "the fly.  The output format is simply determined by the format of the empty "
22188 "output container that you provide.  Thus to create qcow2 output, use:"
22189 msgstr ""
22190
22191 #. type: verbatim
22192 #: ../resize/virt-resize.pod:230
22193 #, no-wrap
22194 msgid ""
22195 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22196 "\n"
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../resize/virt-resize.pod:232
22201 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22202 msgstr ""
22203
22204 #. type: textblock
22205 #: ../resize/virt-resize.pod:234
22206 msgid "Similarly, to get non-sparse raw output use:"
22207 msgstr ""
22208
22209 #. type: verbatim
22210 #: ../resize/virt-resize.pod:236
22211 #, fuzzy, no-wrap
22212 #| msgid ""
22213 #| " fallocate path len\n"
22214 #| "\n"
22215 msgid ""
22216 " fallocate -l size outdisk\n"
22217 "\n"
22218 msgstr ""
22219 " fallocate шлях довжина\n"
22220 "\n"
22221
22222 #. type: textblock
22223 #: ../resize/virt-resize.pod:238
22224 msgid ""
22225 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22226 "dev/zero of=outdisk bs=1M count=..>)"
22227 msgstr ""
22228
22229 #. type: textblock
22230 #: ../resize/virt-resize.pod:247
22231 msgid "Display help."
22232 msgstr ""
22233
22234 #. type: =item
22235 #: ../resize/virt-resize.pod:249
22236 msgid "B<-d>"
22237 msgstr ""
22238
22239 #. type: =item
22240 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22241 #: ../tools/virt-win-reg.pl:120
22242 msgid "B<--debug>"
22243 msgstr "B<--debug>"
22244
22245 #. type: textblock
22246 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22247 msgid "Enable debugging messages."
22248 msgstr ""
22249
22250 #. type: =item
22251 #: ../resize/virt-resize.pod:255
22252 #, fuzzy
22253 #| msgid "B<--no-dest-paths>"
22254 msgid "B<--delete part>"
22255 msgstr "B<--no-dest-paths>"
22256
22257 #. type: textblock
22258 #: ../resize/virt-resize.pod:257
22259 msgid ""
22260 "Delete the named partition.  It would be more accurate to describe this as "
22261 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22262 "the original disk image is left intact."
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../resize/virt-resize.pod:261
22267 msgid ""
22268 "Note that when you delete a partition, then anything contained in the "
22269 "partition is also deleted.  Furthermore, this causes any partitions that "
22270 "come after to be I<renumbered>, which can easily make your guest unbootable."
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22275 #: ../resize/virt-resize.pod:448
22276 msgid "You can give this option multiple times."
22277 msgstr ""
22278
22279 #. type: =item
22280 #: ../resize/virt-resize.pod:268
22281 #, fuzzy
22282 #| msgid "B<--partition>"
22283 msgid "B<--expand part>"
22284 msgstr "B<--partition>"
22285
22286 #. type: textblock
22287 #: ../resize/virt-resize.pod:270
22288 msgid ""
22289 "Expand the named partition so it uses up all extra space (space left over "
22290 "after any other resize changes that you request have been done)."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../resize/virt-resize.pod:273
22295 msgid ""
22296 "If virt-resize knows how, it will expand the direct content of the "
22297 "partition.  For example, if the partition is an LVM PV, it will expand the "
22298 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22299 "content it doesn't know about alone."
22300 msgstr ""
22301
22302 #. type: textblock
22303 #: ../resize/virt-resize.pod:278
22304 msgid "Currently virt-resize can resize:"
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../resize/virt-resize.pod:284
22309 msgid "ext2, ext3 and ext4 filesystems."
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../resize/virt-resize.pod:288
22314 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../resize/virt-resize.pod:290
22319 msgid ""
22320 "The filesystem must have been shut down consistently last time it was used.  "
22321 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22322 "consistency check, so at the first boot after resizing Windows will check "
22323 "the disk."
22324 msgstr ""
22325
22326 #. type: textblock
22327 #: ../resize/virt-resize.pod:297
22328 msgid ""
22329 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22330 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22331 "resize LVs as desired after boot."
22332 msgstr ""
22333
22334 #. type: textblock
22335 #: ../resize/virt-resize.pod:303
22336 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22337 msgstr ""
22338
22339 #. type: textblock
22340 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22341 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22342 msgstr ""
22343
22344 #. type: =item
22345 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22346 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22347 #: ../tools/virt-win-reg.pl:142
22348 msgid "B<--format> raw"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../resize/virt-resize.pod:311
22353 msgid ""
22354 "Specify the format of the input disk image.  If this flag is not given then "
22355 "it is auto-detected from the image itself."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../resize/virt-resize.pod:317
22360 msgid ""
22361 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22362 "AND NON-SPARSE RAW FORMATS>."
22363 msgstr ""
22364
22365 #. type: =item
22366 #: ../resize/virt-resize.pod:320
22367 #, fuzzy
22368 #| msgid "B<--format>"
22369 msgid "B<--ignore part>"
22370 msgstr "B<--format>"
22371
22372 #. type: textblock
22373 #: ../resize/virt-resize.pod:322
22374 msgid ""
22375 "Ignore the named partition.  Effectively this means the partition is "
22376 "allocated on the destination disk, but the content is not copied across from "
22377 "the source disk.  The content of the partition will be blank (all zero "
22378 "bytes)."
22379 msgstr ""
22380
22381 #. type: =item
22382 #: ../resize/virt-resize.pod:329
22383 msgid "B<--LV-expand logvol>"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../resize/virt-resize.pod:331
22388 msgid ""
22389 "This takes the logical volume and, as a final step, expands it to fill all "
22390 "the space available in its volume group.  A typical usage, assuming a Linux "
22391 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22392 "lv_root> would be:"
22393 msgstr ""
22394
22395 #. type: verbatim
22396 #: ../resize/virt-resize.pod:336
22397 #, no-wrap
22398 msgid ""
22399 " virt-resize indisk outdisk \\\n"
22400 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22401 "\n"
22402 msgstr ""
22403
22404 #. type: textblock
22405 #: ../resize/virt-resize.pod:339
22406 msgid ""
22407 "This would first expand the partition (and PV), and then expand the root "
22408 "device to fill the extra space in the PV."
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../resize/virt-resize.pod:342
22413 msgid ""
22414 "The contents of the LV are also resized if virt-resize knows how to do "
22415 "that.  You can stop virt-resize from trying to expand the content by using "
22416 "the option I<--no-expand-content>."
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:346
22421 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../resize/virt-resize.pod:348
22426 msgid ""
22427 "You can give this option multiple times, I<but> it doesn't make sense to do "
22428 "this unless the logical volumes you specify are all in different volume "
22429 "groups."
22430 msgstr ""
22431
22432 #. type: =item
22433 #: ../resize/virt-resize.pod:354
22434 #, fuzzy
22435 #| msgid "B<--debug>"
22436 msgid "B<--dryrun>"
22437 msgstr "B<--debug>"
22438
22439 #. type: textblock
22440 #: ../resize/virt-resize.pod:356
22441 msgid "Print a summary of what would be done, but don't do anything."
22442 msgstr ""
22443
22444 #. type: =item
22445 #: ../resize/virt-resize.pod:358
22446 msgid "B<--no-copy-boot-loader>"
22447 msgstr ""
22448
22449 #. type: textblock
22450 #: ../resize/virt-resize.pod:360
22451 msgid ""
22452 "By default, virt-resize copies over some sectors at the start of the disk "
22453 "(up to the beginning of the first partition).  Commonly these sectors "
22454 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22455 "in order for the guest to boot correctly."
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../resize/virt-resize.pod:365
22460 msgid ""
22461 "If you specify this flag, then this initial copy is not done.  You may need "
22462 "to reinstall the boot loader in this case."
22463 msgstr ""
22464
22465 #. type: =item
22466 #: ../resize/virt-resize.pod:368
22467 #, fuzzy
22468 #| msgid "B<--partition>"
22469 msgid "B<--no-extra-partition>"
22470 msgstr "B<--partition>"
22471
22472 #. type: textblock
22473 #: ../resize/virt-resize.pod:370
22474 msgid ""
22475 "By default, virt-resize creates an extra partition if there is any extra, "
22476 "unused space after all resizing has happened.  Use this option to prevent "
22477 "the extra partition from being created.  If you do this then the extra space "
22478 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22479 "tool in the guest."
22480 msgstr ""
22481
22482 #. type: textblock
22483 #: ../resize/virt-resize.pod:376
22484 msgid ""
22485 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22486 "will be created."
22487 msgstr ""
22488
22489 #. type: =item
22490 #: ../resize/virt-resize.pod:379
22491 #, fuzzy
22492 #| msgid "B<--no-dest-paths>"
22493 msgid "B<--no-expand-content>"
22494 msgstr "B<--no-dest-paths>"
22495
22496 #. type: textblock
22497 #: ../resize/virt-resize.pod:381
22498 msgid ""
22499 "By default, virt-resize will try to expand the direct contents of "
22500 "partitions, if it knows how (see I<--expand> option above)."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../resize/virt-resize.pod:384
22505 msgid ""
22506 "If you give the I<--no-expand-content> option then virt-resize will not "
22507 "attempt this."
22508 msgstr ""
22509
22510 #. type: =item
22511 #: ../resize/virt-resize.pod:387
22512 #, fuzzy
22513 #| msgid "ntfsresize-size"
22514 msgid "B<--ntfsresize-force>"
22515 msgstr "ntfsresize-size"
22516
22517 #. type: textblock
22518 #: ../resize/virt-resize.pod:389
22519 msgid ""
22520 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22521 "the NTFS disk is marked as needing a consistency check.  You have to use "
22522 "this option if you want to resize a Windows guest multiple times without "
22523 "booting into Windows between each resize."
22524 msgstr ""
22525
22526 #. type: =item
22527 #: ../resize/virt-resize.pod:395
22528 #, fuzzy
22529 #| msgid "B<--format>"
22530 msgid "B<--output-format> raw"
22531 msgstr "B<--format>"
22532
22533 #. type: textblock
22534 #: ../resize/virt-resize.pod:397
22535 msgid ""
22536 "Specify the format of the output disk image.  If this flag is not given then "
22537 "it is auto-detected from the image itself."
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../resize/virt-resize.pod:403
22542 msgid ""
22543 "Note that this option I<does not create> the output format.  This option "
22544 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22545 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22546 "SPARSE RAW FORMATS>."
22547 msgstr ""
22548
22549 #. type: =item
22550 #: ../resize/virt-resize.pod:408
22551 msgid "B<-q>"
22552 msgstr ""
22553
22554 #. type: =item
22555 #: ../resize/virt-resize.pod:410
22556 #, fuzzy
22557 #| msgid "B<--live>"
22558 msgid "B<--quiet>"
22559 msgstr "B<--live>"
22560
22561 #. type: textblock
22562 #: ../resize/virt-resize.pod:412
22563 msgid "Don't print the summary."
22564 msgstr ""
22565
22566 #. type: =item
22567 #: ../resize/virt-resize.pod:414
22568 #, fuzzy
22569 #| msgid "B<part_size>"
22570 msgid "B<--resize part=size>"
22571 msgstr "B<part_size>"
22572
22573 #. type: textblock
22574 #: ../resize/virt-resize.pod:416
22575 msgid ""
22576 "Resize the named partition (expanding or shrinking it) so that it has the "
22577 "given size."
22578 msgstr ""
22579
22580 #. type: textblock
22581 #: ../resize/virt-resize.pod:419
22582 msgid ""
22583 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22584 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22585 "size; or as a relative number or percentage.  For example:"
22586 msgstr ""
22587
22588 #. type: verbatim
22589 #: ../resize/virt-resize.pod:425
22590 #, fuzzy, no-wrap
22591 #| msgid ""
22592 #| " hexedit /dev/sda 1M\n"
22593 #| "\n"
22594 msgid ""
22595 " --resize /dev/sda2=10G\n"
22596 "\n"
22597 msgstr ""
22598 " hexedit /dev/sda 1M\n"
22599 "\n"
22600
22601 #. type: verbatim
22602 #: ../resize/virt-resize.pod:427
22603 #, fuzzy, no-wrap
22604 #| msgid ""
22605 #| " pvresize device\n"
22606 #| "\n"
22607 msgid ""
22608 " --resize /dev/sda4=90%\n"
22609 "\n"
22610 msgstr ""
22611 " pvresize пристрій\n"
22612 "\n"
22613
22614 #. type: verbatim
22615 #: ../resize/virt-resize.pod:429
22616 #, fuzzy, no-wrap
22617 #| msgid ""
22618 #| " hexedit /dev/sda 1M\n"
22619 #| "\n"
22620 msgid ""
22621 " --resize /dev/sda2=+1G\n"
22622 "\n"
22623 msgstr ""
22624 " hexedit /dev/sda 1M\n"
22625 "\n"
22626
22627 #. type: verbatim
22628 #: ../resize/virt-resize.pod:431
22629 #, fuzzy, no-wrap
22630 #| msgid ""
22631 #| " hexedit /dev/sda 1M\n"
22632 #| "\n"
22633 msgid ""
22634 " --resize /dev/sda2=-200M\n"
22635 "\n"
22636 msgstr ""
22637 " hexedit /dev/sda 1M\n"
22638 "\n"
22639
22640 #. type: verbatim
22641 #: ../resize/virt-resize.pod:433
22642 #, fuzzy, no-wrap
22643 #| msgid ""
22644 #| " hexedit /dev/sda 1M\n"
22645 #| "\n"
22646 msgid ""
22647 " --resize /dev/sda1=+128K\n"
22648 "\n"
22649 msgstr ""
22650 " hexedit /dev/sda 1M\n"
22651 "\n"
22652
22653 #. type: verbatim
22654 #: ../resize/virt-resize.pod:435
22655 #, fuzzy, no-wrap
22656 #| msgid ""
22657 #| " hexedit /dev/sda 1M\n"
22658 #| "\n"
22659 msgid ""
22660 " --resize /dev/sda1=+10%\n"
22661 "\n"
22662 msgstr ""
22663 " hexedit /dev/sda 1M\n"
22664 "\n"
22665
22666 #. type: verbatim
22667 #: ../resize/virt-resize.pod:437
22668 #, fuzzy, no-wrap
22669 #| msgid ""
22670 #| " hexedit /dev/sda 1M\n"
22671 #| "\n"
22672 msgid ""
22673 " --resize /dev/sda1=-10%\n"
22674 "\n"
22675 msgstr ""
22676 " hexedit /dev/sda 1M\n"
22677 "\n"
22678
22679 #. type: textblock
22680 #: ../resize/virt-resize.pod:439
22681 msgid ""
22682 "You can increase the size of any partition.  Virt-resize will expand the "
22683 "direct content of the partition if it knows how (see I<--expand> below)."
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../resize/virt-resize.pod:443
22688 msgid ""
22689 "You can only I<decrease> the size of partitions that contain filesystems or "
22690 "PVs which have already been shrunk.  Virt-resize will check this has been "
22691 "done before proceeding, or else will print an error (see also I<--resize-"
22692 "force>)."
22693 msgstr ""
22694
22695 #. type: =item
22696 #: ../resize/virt-resize.pod:450
22697 msgid "B<--resize-force part=size>"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../resize/virt-resize.pod:452
22702 msgid ""
22703 "This is the same as I<--resize> except that it will let you decrease the "
22704 "size of any partition.  Generally this means you will lose any data which "
22705 "was at the end of the partition you shrink, but you may not care about that "
22706 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22707 "as a swap partition)."
22708 msgstr ""
22709
22710 #. type: textblock
22711 #: ../resize/virt-resize.pod:458
22712 msgid "See also the I<--ignore> option."
22713 msgstr ""
22714
22715 #. type: =item
22716 #: ../resize/virt-resize.pod:460
22717 #, fuzzy
22718 #| msgid "B<--partition>"
22719 msgid "B<--shrink part>"
22720 msgstr "B<--partition>"
22721
22722 #. type: textblock
22723 #: ../resize/virt-resize.pod:462
22724 msgid ""
22725 "Shrink the named partition until the overall disk image fits in the "
22726 "destination.  The named partition B<must> contain a filesystem or PV which "
22727 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22728 "online tools).  Virt-resize will check this and give an error if it has not "
22729 "been done."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../resize/virt-resize.pod:468
22734 msgid ""
22735 "The amount by which the overall disk must be shrunk (after carrying out all "
22736 "other operations requested by the user) is called the \"deficit\".  For "
22737 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22738 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22739 "would give an error unless the user specified a partition to shrink and that "
22740 "partition had more than a gigabyte of free space."
22741 msgstr ""
22742
22743 #. type: =head2
22744 #: ../resize/virt-resize.pod:488
22745 msgid "\"Partition 1 does not end on cylinder boundary.\""
22746 msgstr ""
22747
22748 #. type: textblock
22749 #: ../resize/virt-resize.pod:490
22750 msgid ""
22751 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22752 "means the partitions will not be aligned to the ancient CHS geometry.  "
22753 "However CHS geometry is meaningless for disks manufactured since the early "
22754 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22755 "cylinders is not required by any modern operating system."
22756 msgstr ""
22757
22758 #. type: =head2
22759 #: ../resize/virt-resize.pod:497
22760 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22761 msgstr ""
22762
22763 #. type: textblock
22764 #: ../resize/virt-resize.pod:499
22765 msgid ""
22766 "In Windows Vista and later versions, Microsoft switched to using a separate "
22767 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22768 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22769 "the boot partition.  Doing so seems to break the guest completely.  However "
22770 "expanding the second partition (ie. C: drive) should work."
22771 msgstr ""
22772
22773 #. type: textblock
22774 #: ../resize/virt-resize.pod:506
22775 msgid ""
22776 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22777 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22778 "it find errors) is nothing to worry about."
22779 msgstr ""
22780
22781 #. type: =head2
22782 #: ../resize/virt-resize.pod:510
22783 msgid "GUEST BOOT STUCK AT \"GRUB\""
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../resize/virt-resize.pod:512
22788 msgid ""
22789 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22790 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22791 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22792 "although we think is to do with partition alignment."
22793 msgstr ""
22794
22795 #. type: verbatim
22796 #: ../resize/virt-resize.pod:517
22797 #, no-wrap
22798 msgid ""
22799 " guestfish -i -a newdisk\n"
22800 " ><fs> cat /boot/grub/device.map\n"
22801 " # check the contents of this file are sensible or\n"
22802 " # edit the file if necessary\n"
22803 " ><fs> grub-install / /dev/vda\n"
22804 " ><fs> exit\n"
22805 "\n"
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../resize/virt-resize.pod:524
22810 msgid ""
22811 "For more flexible guest reconfiguration, including if you need to specify "
22812 "other parameters to grub-install, use L<virt-rescue(1)>."
22813 msgstr ""
22814
22815 #. type: =head1
22816 #: ../resize/virt-resize.pod:527
22817 msgid "ALTERNATIVE TOOLS"
22818 msgstr ""
22819
22820 #. type: textblock
22821 #: ../resize/virt-resize.pod:529
22822 msgid ""
22823 "There are several proprietary tools for resizing partitions.  We won't "
22824 "mention any here."
22825 msgstr ""
22826
22827 #. type: textblock
22828 #: ../resize/virt-resize.pod:532
22829 msgid ""
22830 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22831 "operations on disk images.  They can resize and move partitions, but I don't "
22832 "think they can do anything with the contents, and they certainly don't "
22833 "understand LVM."
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../resize/virt-resize.pod:537
22838 msgid ""
22839 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22840 "but at a much lower level.  You will probably end up hand-calculating sector "
22841 "offsets, which is something that virt-resize was designed to avoid.  If you "
22842 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22843 "I<--debug> flag."
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../resize/virt-resize.pod:552
22848 msgid ""
22849 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22850 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22851 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22852 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../ruby/examples/guestfs-ruby.pod:5
22857 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../ruby/examples/guestfs-ruby.pod:9
22862 #, no-wrap
22863 msgid ""
22864 " require 'guestfs'\n"
22865 " g = Guestfs::Guestfs.new()\n"
22866 " g.add_drive_opts(\"disk.img\",\n"
22867 "                  :readonly => 1, :format => \"raw\")\n"
22868 " g.launch()\n"
22869 "\n"
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../ruby/examples/guestfs-ruby.pod:17
22874 msgid ""
22875 "This manual page documents how to call libguestfs from the Ruby programming "
22876 "language.  This page just documents the differences from the C API and gives "
22877 "some examples.  If you are not familiar with using libguestfs, you also need "
22878 "to read L<guestfs(3)>."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../ruby/examples/guestfs-ruby.pod:24
22883 msgid ""
22884 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22885 "This has a single parameter which is the error message (a string)."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../ruby/examples/guestfs-ruby.pod:38
22890 #, fuzzy
22891 #| msgid ""
22892 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22893 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22894 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22895 msgid ""
22896 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22897 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22898 "libguestfs.org/>."
22899 msgstr ""
22900 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22901 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22902 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22903
22904 #. type: =head2
22905 #: ../src/guestfs-actions.pod:1
22906 msgid "guestfs_add_cdrom"
22907 msgstr ""
22908
22909 #. type: verbatim
22910 #: ../src/guestfs-actions.pod:3
22911 #, no-wrap
22912 msgid ""
22913 " int\n"
22914 " guestfs_add_cdrom (guestfs_h *g,\n"
22915 "                    const char *filename);\n"
22916 "\n"
22917 msgstr ""
22918
22919 #. type: textblock
22920 #: ../src/guestfs-actions.pod:17
22921 msgid ""
22922 "This call checks for the existence of C<filename>.  This stops you from "
22923 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22924 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22925 "instead."
22926 msgstr ""
22927
22928 #. type: textblock
22929 #: ../src/guestfs-actions.pod:24
22930 msgid ""
22931 "If you just want to add an ISO file (often you use this as an efficient way "
22932 "to transfer large files into the guest), then you should probably use "
22933 "C<guestfs_add_drive_ro> instead."
22934 msgstr ""
22935
22936 #. type: textblock
22937 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
22938 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22939 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
22940 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22941 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22942 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22943 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22944 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22945 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22946 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22947 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22948 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22949 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22950 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
22951 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
22952 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
22953 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
22954 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
22955 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
22956 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
22957 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
22958 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
22959 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
22960 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
22961 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
22962 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
22963 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
22964 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
22965 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
22966 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
22967 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
22968 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
22969 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
22970 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
22971 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
22972 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
22973 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
22974 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
22975 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
22976 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4628
22977 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
22978 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
22979 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
22980 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
22981 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
22982 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4980
22983 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
22984 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
22985 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5165
22986 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5255
22987 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
22988 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
22989 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
22990 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
22991 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
22992 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
22993 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
22994 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
22995 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
22996 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
22997 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
22998 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
22999 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23000 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23001 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23002 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23003 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23004 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23005 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23006 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23007 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
23008 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6726
23009 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23010 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23011 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23012 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23013 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23014 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23015 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23016 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23017 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23018 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23019 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23020 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23021 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23022 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23023 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7602
23024 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23025 #: ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7778
23026 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7826
23027 msgid "This function returns 0 on success or -1 on error."
23028 msgstr ""
23029
23030 #. type: textblock
23031 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
23032 #: ../src/guestfs-actions.pod:275
23033 msgid ""
23034 "This function is deprecated.  In new code, use the L</"
23035 "guestfs_add_drive_opts> call instead."
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23040 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23041 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23042 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23043 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23044 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23045 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23046 #: ../src/guestfs-actions.pod:7611
23047 msgid "(Added in 0.3)"
23048 msgstr ""
23049
23050 #. type: =head2
23051 #: ../src/guestfs-actions.pod:41
23052 msgid "guestfs_add_domain"
23053 msgstr ""
23054
23055 #. type: verbatim
23056 #: ../src/guestfs-actions.pod:43
23057 #, no-wrap
23058 msgid ""
23059 " int\n"
23060 " guestfs_add_domain (guestfs_h *g,\n"
23061 "                     const char *dom,\n"
23062 "                     ...);\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23068 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23069 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23070 #: ../src/guestfs-actions.pod:5183
23071 msgid ""
23072 "You may supply a list of optional arguments to this call.  Use zero or more "
23073 "of the following pairs of parameters, and terminate the list with C<-1> on "
23074 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23075 msgstr ""
23076
23077 #. type: verbatim
23078 #: ../src/guestfs-actions.pod:53
23079 #, no-wrap
23080 msgid ""
23081 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23082 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23083 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23084 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23085 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23086 "\n"
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../src/guestfs-actions.pod:59
23091 msgid ""
23092 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23093 "It works by connecting to libvirt, requesting the domain and domain XML from "
23094 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23095 "one."
23096 msgstr ""
23097
23098 #. type: textblock
23099 #: ../src/guestfs-actions.pod:94
23100 msgid ""
23101 "The other optional parameters are passed directly through to "
23102 "C<guestfs_add_drive_opts>."
23103 msgstr ""
23104
23105 #. type: textblock
23106 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23107 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23108 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23109 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23110 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23111 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23112 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23113 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23114 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23115 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23116 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23117 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23118 #: ../src/guestfs-actions.pod:7648
23119 msgid "On error this function returns -1."
23120 msgstr ""
23121
23122 #. type: textblock
23123 #: ../src/guestfs-actions.pod:99
23124 msgid "(Added in 1.7.4)"
23125 msgstr ""
23126
23127 #. type: =head2
23128 #: ../src/guestfs-actions.pod:101
23129 msgid "guestfs_add_domain_va"
23130 msgstr ""
23131
23132 #. type: verbatim
23133 #: ../src/guestfs-actions.pod:103
23134 #, no-wrap
23135 msgid ""
23136 " int\n"
23137 " guestfs_add_domain_va (guestfs_h *g,\n"
23138 "                        const char *dom,\n"
23139 "                        va_list args);\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../src/guestfs-actions.pod:108
23145 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23150 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23151 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23152 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23153 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23154 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23155 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23156 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23157 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23158
23159 #. type: =head2
23160 #: ../src/guestfs-actions.pod:112
23161 msgid "guestfs_add_domain_argv"
23162 msgstr "guestfs_add_domain_argv"
23163
23164 #. type: verbatim
23165 #: ../src/guestfs-actions.pod:114
23166 #, no-wrap
23167 msgid ""
23168 " int\n"
23169 " guestfs_add_domain_argv (guestfs_h *g,\n"
23170 "                          const char *dom,\n"
23171 "                          const struct guestfs_add_domain_argv *optargs);\n"
23172 "\n"
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../src/guestfs-actions.pod:119
23177 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23178 msgstr ""
23179
23180 #. type: =head2
23181 #: ../src/guestfs-actions.pod:123
23182 msgid "guestfs_add_drive"
23183 msgstr ""
23184
23185 #. type: verbatim
23186 #: ../src/guestfs-actions.pod:125
23187 #, no-wrap
23188 msgid ""
23189 " int\n"
23190 " guestfs_add_drive (guestfs_h *g,\n"
23191 "                    const char *filename);\n"
23192 "\n"
23193 msgstr ""
23194
23195 #. type: textblock
23196 #: ../src/guestfs-actions.pod:129
23197 msgid ""
23198 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23199 "optional parameters, so the disk is added writable, with the format being "
23200 "detected automatically."
23201 msgstr ""
23202
23203 #. type: textblock
23204 #: ../src/guestfs-actions.pod:133
23205 msgid ""
23206 "Automatic detection of the format opens you up to a potential security hole "
23207 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23208 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23209 "you should think about replacing calls to this function with calls to "
23210 "C<guestfs_add_drive_opts>, and specifying the format."
23211 msgstr ""
23212
23213 #. type: =head2
23214 #: ../src/guestfs-actions.pod:144
23215 msgid "guestfs_add_drive_opts"
23216 msgstr ""
23217
23218 #. type: verbatim
23219 #: ../src/guestfs-actions.pod:146
23220 #, no-wrap
23221 msgid ""
23222 " int\n"
23223 " guestfs_add_drive_opts (guestfs_h *g,\n"
23224 "                         const char *filename,\n"
23225 "                         ...);\n"
23226 "\n"
23227 msgstr ""
23228
23229 #. type: verbatim
23230 #: ../src/guestfs-actions.pod:156
23231 #, no-wrap
23232 msgid ""
23233 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23234 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23235 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../src/guestfs-actions.pod:185
23241 msgid ""
23242 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23243 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23244 "Possible formats include C<raw> and C<qcow2>."
23245 msgstr ""
23246
23247 #. type: textblock
23248 #: ../src/guestfs-actions.pod:196
23249 msgid ""
23250 "This rarely-used option lets you emulate the behaviour of the deprecated "
23251 "C<guestfs_add_drive_with_if> call (q.v.)"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../src/guestfs-actions.pod:203
23256 msgid "(Added in 1.5.23)"
23257 msgstr ""
23258
23259 #. type: =head2
23260 #: ../src/guestfs-actions.pod:205
23261 msgid "guestfs_add_drive_opts_va"
23262 msgstr ""
23263
23264 #. type: verbatim
23265 #: ../src/guestfs-actions.pod:207
23266 #, no-wrap
23267 msgid ""
23268 " int\n"
23269 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23270 "                            const char *filename,\n"
23271 "                            va_list args);\n"
23272 "\n"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../src/guestfs-actions.pod:212
23277 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23278 msgstr ""
23279
23280 #. type: =head2
23281 #: ../src/guestfs-actions.pod:216
23282 msgid "guestfs_add_drive_opts_argv"
23283 msgstr ""
23284
23285 #. type: verbatim
23286 #: ../src/guestfs-actions.pod:218
23287 #, no-wrap
23288 msgid ""
23289 " int\n"
23290 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23291 "                              const char *filename,\n"
23292 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23293 "\n"
23294 msgstr ""
23295
23296 #. type: textblock
23297 #: ../src/guestfs-actions.pod:223
23298 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23299 msgstr ""
23300
23301 #. type: =head2
23302 #: ../src/guestfs-actions.pod:227
23303 msgid "guestfs_add_drive_ro"
23304 msgstr ""
23305
23306 #. type: verbatim
23307 #: ../src/guestfs-actions.pod:229
23308 #, no-wrap
23309 msgid ""
23310 " int\n"
23311 " guestfs_add_drive_ro (guestfs_h *g,\n"
23312 "                       const char *filename);\n"
23313 "\n"
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../src/guestfs-actions.pod:233
23318 msgid ""
23319 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23320 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23321 "disk is added read-only, with the format being detected automatically."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../src/guestfs-actions.pod:240
23326 msgid "(Added in 1.0.38)"
23327 msgstr ""
23328
23329 #. type: =head2
23330 #: ../src/guestfs-actions.pod:242
23331 msgid "guestfs_add_drive_ro_with_if"
23332 msgstr ""
23333
23334 #. type: verbatim
23335 #: ../src/guestfs-actions.pod:244
23336 #, no-wrap
23337 msgid ""
23338 " int\n"
23339 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23340 "                               const char *filename,\n"
23341 "                               const char *iface);\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../src/guestfs-actions.pod:249
23347 msgid ""
23348 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23349 "QEMU interface emulation to use at run time."
23350 msgstr ""
23351
23352 #. type: textblock
23353 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23354 #: ../src/guestfs-actions.pod:2436
23355 msgid "(Added in 1.0.84)"
23356 msgstr ""
23357
23358 #. type: =head2
23359 #: ../src/guestfs-actions.pod:263
23360 msgid "guestfs_add_drive_with_if"
23361 msgstr ""
23362
23363 #. type: verbatim
23364 #: ../src/guestfs-actions.pod:265
23365 #, no-wrap
23366 msgid ""
23367 " int\n"
23368 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23369 "                            const char *filename,\n"
23370 "                            const char *iface);\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../src/guestfs-actions.pod:270
23376 msgid ""
23377 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23378 "QEMU interface emulation to use at run time."
23379 msgstr ""
23380
23381 #. type: =head2
23382 #: ../src/guestfs-actions.pod:284
23383 msgid "guestfs_aug_clear"
23384 msgstr ""
23385
23386 #. type: verbatim
23387 #: ../src/guestfs-actions.pod:286
23388 #, no-wrap
23389 msgid ""
23390 " int\n"
23391 " guestfs_aug_clear (guestfs_h *g,\n"
23392 "                    const char *augpath);\n"
23393 "\n"
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23398 msgid "(Added in 1.3.4)"
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../src/guestfs-actions.pod:297
23403 msgid "guestfs_aug_close"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../src/guestfs-actions.pod:299
23408 #, no-wrap
23409 msgid ""
23410 " int\n"
23411 " guestfs_aug_close (guestfs_h *g);\n"
23412 "\n"
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../src/guestfs-actions.pod:302
23417 msgid ""
23418 "Close the current Augeas handle and free up any resources used by it.  After "
23419 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23420 "any other Augeas functions."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23425 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23426 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23427 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23428 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23429 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23430 #: ../src/guestfs-actions.pod:5851
23431 msgid "(Added in 0.7)"
23432 msgstr ""
23433
23434 #. type: =head2
23435 #: ../src/guestfs-actions.pod:311
23436 msgid "guestfs_aug_defnode"
23437 msgstr ""
23438
23439 #. type: verbatim
23440 #: ../src/guestfs-actions.pod:313
23441 #, no-wrap
23442 msgid ""
23443 " struct guestfs_int_bool *\n"
23444 " guestfs_aug_defnode (guestfs_h *g,\n"
23445 "                      const char *name,\n"
23446 "                      const char *expr,\n"
23447 "                      const char *val);\n"
23448 "\n"
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../src/guestfs-actions.pod:322
23453 msgid ""
23454 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23455 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23456 "containing that single node."
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../src/guestfs-actions.pod:330
23461 msgid ""
23462 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23463 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23464 msgstr ""
23465
23466 #. type: =head2
23467 #: ../src/guestfs-actions.pod:336
23468 msgid "guestfs_aug_defvar"
23469 msgstr ""
23470
23471 #. type: verbatim
23472 #: ../src/guestfs-actions.pod:338
23473 #, no-wrap
23474 msgid ""
23475 " int\n"
23476 " guestfs_aug_defvar (guestfs_h *g,\n"
23477 "                     const char *name,\n"
23478 "                     const char *expr);\n"
23479 "\n"
23480 msgstr ""
23481
23482 #. type: =head2
23483 #: ../src/guestfs-actions.pod:354
23484 msgid "guestfs_aug_get"
23485 msgstr ""
23486
23487 #. type: verbatim
23488 #: ../src/guestfs-actions.pod:356
23489 #, no-wrap
23490 msgid ""
23491 " char *\n"
23492 " guestfs_aug_get (guestfs_h *g,\n"
23493 "                  const char *augpath);\n"
23494 "\n"
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23499 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23500 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23501 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23502 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23503 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23504 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23505 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
23506 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
23507 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23508 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23509 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23510 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23511 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23512 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23513 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23514 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23515 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23516 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23517 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23518 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6665
23519 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23520 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23521 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7883
23522 msgid ""
23523 "This function returns a string, or NULL on error.  I<The caller must free "
23524 "the returned string after use>."
23525 msgstr ""
23526
23527 #. type: =head2
23528 #: ../src/guestfs-actions.pod:368
23529 msgid "guestfs_aug_init"
23530 msgstr ""
23531
23532 #. type: verbatim
23533 #: ../src/guestfs-actions.pod:370
23534 #, no-wrap
23535 msgid ""
23536 " int\n"
23537 " guestfs_aug_init (guestfs_h *g,\n"
23538 "                   const char *root,\n"
23539 "                   int flags);\n"
23540 "\n"
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../src/guestfs-actions.pod:379
23545 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23546 msgstr ""
23547
23548 #. type: textblock
23549 #: ../src/guestfs-actions.pod:404
23550 msgid ""
23551 "This option is only useful when debugging Augeas lenses.  Use of this option "
23552 "may require additional memory for the libguestfs appliance.  You may need to "
23553 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23554 "C<guestfs_set_memsize>."
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../src/guestfs-actions.pod:419
23559 msgid "Do not load the tree in C<guestfs_aug_init>."
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../src/guestfs-actions.pod:423
23564 msgid "To close the handle, you can call C<guestfs_aug_close>."
23565 msgstr ""
23566
23567 #. type: =head2
23568 #: ../src/guestfs-actions.pod:431
23569 msgid "guestfs_aug_insert"
23570 msgstr ""
23571
23572 #. type: verbatim
23573 #: ../src/guestfs-actions.pod:433
23574 #, no-wrap
23575 msgid ""
23576 " int\n"
23577 " guestfs_aug_insert (guestfs_h *g,\n"
23578 "                     const char *augpath,\n"
23579 "                     const char *label,\n"
23580 "                     int before);\n"
23581 "\n"
23582 msgstr ""
23583
23584 #. type: =head2
23585 #: ../src/guestfs-actions.pod:451
23586 msgid "guestfs_aug_load"
23587 msgstr ""
23588
23589 #. type: verbatim
23590 #: ../src/guestfs-actions.pod:453
23591 #, no-wrap
23592 msgid ""
23593 " int\n"
23594 " guestfs_aug_load (guestfs_h *g);\n"
23595 "\n"
23596 msgstr ""
23597
23598 #. type: =head2
23599 #: ../src/guestfs-actions.pod:465
23600 msgid "guestfs_aug_ls"
23601 msgstr ""
23602
23603 #. type: verbatim
23604 #: ../src/guestfs-actions.pod:467
23605 #, no-wrap
23606 msgid ""
23607 " char **\n"
23608 " guestfs_aug_ls (guestfs_h *g,\n"
23609 "                 const char *augpath);\n"
23610 "\n"
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../src/guestfs-actions.pod:471
23615 msgid ""
23616 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23617 "sorting the resulting nodes into alphabetical order."
23618 msgstr ""
23619
23620 #. type: textblock
23621 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23622 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23623 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23624 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23625 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23626 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23627 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23628 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23629 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23630 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23631 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23632 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23633 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23634 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23635 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23636 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23637 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23638 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23639 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23640 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7840
23641 #: ../src/guestfs-actions.pod:7859 ../src/guestfs-actions.pod:7905
23642 #: ../src/guestfs-actions.pod:7924
23643 msgid ""
23644 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23645 ">), or NULL if there was an error.  I<The caller must free the strings and "
23646 "the array after use>."
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23651 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23652 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23653 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23654 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23655 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23656 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23657 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23658 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23659 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23660 #: ../src/guestfs-actions.pod:7723
23661 msgid "(Added in 0.8)"
23662 msgstr ""
23663
23664 #. type: =head2
23665 #: ../src/guestfs-actions.pod:480
23666 msgid "guestfs_aug_match"
23667 msgstr ""
23668
23669 #. type: verbatim
23670 #: ../src/guestfs-actions.pod:482
23671 #, no-wrap
23672 msgid ""
23673 " char **\n"
23674 " guestfs_aug_match (guestfs_h *g,\n"
23675 "                    const char *augpath);\n"
23676 "\n"
23677 msgstr ""
23678
23679 #. type: =head2
23680 #: ../src/guestfs-actions.pod:496
23681 msgid "guestfs_aug_mv"
23682 msgstr ""
23683
23684 #. type: verbatim
23685 #: ../src/guestfs-actions.pod:498
23686 #, no-wrap
23687 msgid ""
23688 " int\n"
23689 " guestfs_aug_mv (guestfs_h *g,\n"
23690 "                 const char *src,\n"
23691 "                 const char *dest);\n"
23692 "\n"
23693 msgstr ""
23694
23695 #. type: =head2
23696 #: ../src/guestfs-actions.pod:510
23697 msgid "guestfs_aug_rm"
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../src/guestfs-actions.pod:512
23702 #, no-wrap
23703 msgid ""
23704 " int\n"
23705 " guestfs_aug_rm (guestfs_h *g,\n"
23706 "                 const char *augpath);\n"
23707 "\n"
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:524
23712 msgid "guestfs_aug_save"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:526
23717 #, no-wrap
23718 msgid ""
23719 " int\n"
23720 " guestfs_aug_save (guestfs_h *g);\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../src/guestfs-actions.pod:531
23726 msgid ""
23727 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23728 "are saved."
23729 msgstr ""
23730
23731 #. type: =head2
23732 #: ../src/guestfs-actions.pod:538
23733 msgid "guestfs_aug_set"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../src/guestfs-actions.pod:540
23738 #, no-wrap
23739 msgid ""
23740 " int\n"
23741 " guestfs_aug_set (guestfs_h *g,\n"
23742 "                  const char *augpath,\n"
23743 "                  const char *val);\n"
23744 "\n"
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../src/guestfs-actions.pod:547
23749 msgid ""
23750 "In the Augeas API, it is possible to clear a node by setting the value to "
23751 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23752 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23753 msgstr ""
23754
23755 #. type: =head2
23756 #: ../src/guestfs-actions.pod:556
23757 msgid "guestfs_available"
23758 msgstr ""
23759
23760 #. type: verbatim
23761 #: ../src/guestfs-actions.pod:558
23762 #, no-wrap
23763 msgid ""
23764 " int\n"
23765 " guestfs_available (guestfs_h *g,\n"
23766 "                    char *const *groups);\n"
23767 "\n"
23768 msgstr ""
23769
23770 #. type: textblock
23771 #: ../src/guestfs-actions.pod:566
23772 msgid ""
23773 "The libguestfs groups, and the functions that those groups correspond to, "
23774 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23775 "runtime by calling C<guestfs_available_all_groups>."
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../src/guestfs-actions.pod:590
23780 msgid "You must call C<guestfs_launch> before calling this function."
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../src/guestfs-actions.pod:612
23785 msgid ""
23786 "This call was added in version C<1.0.80>.  In previous versions of "
23787 "libguestfs all you could do would be to speculatively execute a command to "
23788 "find out if the daemon implemented it.  See also C<guestfs_version>."
23789 msgstr ""
23790
23791 #. type: textblock
23792 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23793 msgid "(Added in 1.0.80)"
23794 msgstr ""
23795
23796 #. type: =head2
23797 #: ../src/guestfs-actions.pod:623
23798 msgid "guestfs_available_all_groups"
23799 msgstr ""
23800
23801 #. type: verbatim
23802 #: ../src/guestfs-actions.pod:625
23803 #, no-wrap
23804 msgid ""
23805 " char **\n"
23806 " guestfs_available_all_groups (guestfs_h *g);\n"
23807 "\n"
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../src/guestfs-actions.pod:628
23812 msgid ""
23813 "This command returns a list of all optional groups that this daemon knows "
23814 "about.  Note this returns both supported and unsupported groups.  To find "
23815 "out which ones the daemon can actually support you have to call "
23816 "C<guestfs_available> on each member of the returned list."
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../src/guestfs-actions.pod:634
23821 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../src/guestfs-actions.pod:640
23826 msgid "(Added in 1.3.15)"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../src/guestfs-actions.pod:642
23831 msgid "guestfs_base64_in"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../src/guestfs-actions.pod:644
23836 #, no-wrap
23837 msgid ""
23838 " int\n"
23839 " guestfs_base64_in (guestfs_h *g,\n"
23840 "                    const char *base64file,\n"
23841 "                    const char *filename);\n"
23842 "\n"
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23847 msgid "(Added in 1.3.5)"
23848 msgstr ""
23849
23850 #. type: =head2
23851 #: ../src/guestfs-actions.pod:656
23852 msgid "guestfs_base64_out"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../src/guestfs-actions.pod:658
23857 #, no-wrap
23858 msgid ""
23859 " int\n"
23860 " guestfs_base64_out (guestfs_h *g,\n"
23861 "                     const char *filename,\n"
23862 "                     const char *base64file);\n"
23863 "\n"
23864 msgstr ""
23865
23866 #. type: =head2
23867 #: ../src/guestfs-actions.pod:670
23868 msgid "guestfs_blockdev_flushbufs"
23869 msgstr ""
23870
23871 #. type: verbatim
23872 #: ../src/guestfs-actions.pod:672
23873 #, no-wrap
23874 msgid ""
23875 " int\n"
23876 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23877 "                             const char *device);\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23883 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23884 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23885 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23886 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23887 msgid "(Added in 0.9.3)"
23888 msgstr ""
23889
23890 #. type: =head2
23891 #: ../src/guestfs-actions.pod:685
23892 msgid "guestfs_blockdev_getbsz"
23893 msgstr ""
23894
23895 #. type: verbatim
23896 #: ../src/guestfs-actions.pod:687
23897 #, no-wrap
23898 msgid ""
23899 " int\n"
23900 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23901 "                          const char *device);\n"
23902 "\n"
23903 msgstr ""
23904
23905 #. type: =head2
23906 #: ../src/guestfs-actions.pod:702
23907 msgid "guestfs_blockdev_getro"
23908 msgstr ""
23909
23910 #. type: verbatim
23911 #: ../src/guestfs-actions.pod:704
23912 #, no-wrap
23913 msgid ""
23914 " int\n"
23915 " guestfs_blockdev_getro (guestfs_h *g,\n"
23916 "                         const char *device);\n"
23917 "\n"
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
23922 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
23923 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
23924 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
23925 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
23926 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
23927 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
23928 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
23929 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
23930 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
23931 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
23932 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
23933 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
23934 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
23935 #: ../src/guestfs-actions.pod:5344
23936 msgid "This function returns a C truth value on success or -1 on error."
23937 msgstr ""
23938
23939 #. type: =head2
23940 #: ../src/guestfs-actions.pod:717
23941 msgid "guestfs_blockdev_getsize64"
23942 msgstr ""
23943
23944 #. type: verbatim
23945 #: ../src/guestfs-actions.pod:719
23946 #, no-wrap
23947 msgid ""
23948 " int64_t\n"
23949 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23950 "                             const char *device);\n"
23951 "\n"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../src/guestfs-actions.pod:725
23956 msgid "See also C<guestfs_blockdev_getsz>."
23957 msgstr ""
23958
23959 #. type: =head2
23960 #: ../src/guestfs-actions.pod:733
23961 msgid "guestfs_blockdev_getss"
23962 msgstr ""
23963
23964 #. type: verbatim
23965 #: ../src/guestfs-actions.pod:735
23966 #, no-wrap
23967 msgid ""
23968 " int\n"
23969 " guestfs_blockdev_getss (guestfs_h *g,\n"
23970 "                         const char *device);\n"
23971 "\n"
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../src/guestfs-actions.pod:742
23976 msgid ""
23977 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23978 "that)."
23979 msgstr ""
23980
23981 #. type: =head2
23982 #: ../src/guestfs-actions.pod:751
23983 msgid "guestfs_blockdev_getsz"
23984 msgstr ""
23985
23986 #. type: verbatim
23987 #: ../src/guestfs-actions.pod:753
23988 #, no-wrap
23989 msgid ""
23990 " int64_t\n"
23991 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23992 "                         const char *device);\n"
23993 "\n"
23994 msgstr ""
23995
23996 #. type: textblock
23997 #: ../src/guestfs-actions.pod:760
23998 msgid ""
23999 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24000 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24001 msgstr ""
24002
24003 #. type: =head2
24004 #: ../src/guestfs-actions.pod:770
24005 msgid "guestfs_blockdev_rereadpt"
24006 msgstr ""
24007
24008 #. type: verbatim
24009 #: ../src/guestfs-actions.pod:772
24010 #, no-wrap
24011 msgid ""
24012 " int\n"
24013 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24014 "                            const char *device);\n"
24015 "\n"
24016 msgstr ""
24017
24018 #. type: =head2
24019 #: ../src/guestfs-actions.pod:784
24020 msgid "guestfs_blockdev_setbsz"
24021 msgstr ""
24022
24023 #. type: verbatim
24024 #: ../src/guestfs-actions.pod:786
24025 #, no-wrap
24026 msgid ""
24027 " int\n"
24028 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24029 "                          const char *device,\n"
24030 "                          int blocksize);\n"
24031 "\n"
24032 msgstr ""
24033
24034 #. type: =head2
24035 #: ../src/guestfs-actions.pod:802
24036 msgid "guestfs_blockdev_setro"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../src/guestfs-actions.pod:804
24041 #, no-wrap
24042 msgid ""
24043 " int\n"
24044 " guestfs_blockdev_setro (guestfs_h *g,\n"
24045 "                         const char *device);\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../src/guestfs-actions.pod:816
24051 msgid "guestfs_blockdev_setrw"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../src/guestfs-actions.pod:818
24056 #, no-wrap
24057 msgid ""
24058 " int\n"
24059 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24060 "                         const char *device);\n"
24061 "\n"
24062 msgstr ""
24063
24064 #. type: =head2
24065 #: ../src/guestfs-actions.pod:830
24066 msgid "guestfs_btrfs_filesystem_resize"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../src/guestfs-actions.pod:832
24071 #, no-wrap
24072 msgid ""
24073 " int\n"
24074 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24075 "                                  const char *mountpoint,\n"
24076 "                                  ...);\n"
24077 "\n"
24078 msgstr ""
24079
24080 #. type: verbatim
24081 #: ../src/guestfs-actions.pod:842
24082 #, no-wrap
24083 msgid ""
24084 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24085 "\n"
24086 msgstr ""
24087
24088 #. type: textblock
24089 #: ../src/guestfs-actions.pod:865
24090 msgid "(Added in 1.11.17)"
24091 msgstr ""
24092
24093 #. type: =head2
24094 #: ../src/guestfs-actions.pod:867
24095 msgid "guestfs_btrfs_filesystem_resize_va"
24096 msgstr ""
24097
24098 #. type: verbatim
24099 #: ../src/guestfs-actions.pod:869
24100 #, no-wrap
24101 msgid ""
24102 " int\n"
24103 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24104 "                                     const char *mountpoint,\n"
24105 "                                     va_list args);\n"
24106 "\n"
24107 msgstr ""
24108
24109 #. type: textblock
24110 #: ../src/guestfs-actions.pod:874
24111 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24112 msgstr ""
24113
24114 #. type: =head2
24115 #: ../src/guestfs-actions.pod:878
24116 msgid "guestfs_btrfs_filesystem_resize_argv"
24117 msgstr ""
24118
24119 #. type: verbatim
24120 #: ../src/guestfs-actions.pod:880
24121 #, no-wrap
24122 msgid ""
24123 " int\n"
24124 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24125 "                                       const char *mountpoint,\n"
24126 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24127 "\n"
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../src/guestfs-actions.pod:885
24132 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24133 msgstr ""
24134
24135 #. type: =head2
24136 #: ../src/guestfs-actions.pod:889
24137 msgid "guestfs_case_sensitive_path"
24138 msgstr ""
24139
24140 #. type: verbatim
24141 #: ../src/guestfs-actions.pod:891
24142 #, no-wrap
24143 msgid ""
24144 " char *\n"
24145 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24146 "                              const char *path);\n"
24147 "\n"
24148 msgstr ""
24149
24150 #. type: textblock
24151 #: ../src/guestfs-actions.pod:917
24152 msgid ""
24153 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24154 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24155 "how the directories were originally created under Windows)."
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../src/guestfs-actions.pod:925
24160 msgid "See also C<guestfs_realpath>."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24165 msgid "(Added in 1.0.75)"
24166 msgstr ""
24167
24168 #. type: =head2
24169 #: ../src/guestfs-actions.pod:932
24170 msgid "guestfs_cat"
24171 msgstr ""
24172
24173 #. type: verbatim
24174 #: ../src/guestfs-actions.pod:934
24175 #, no-wrap
24176 msgid ""
24177 " char *\n"
24178 " guestfs_cat (guestfs_h *g,\n"
24179 "              const char *path);\n"
24180 "\n"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../src/guestfs-actions.pod:940
24185 msgid ""
24186 "Note that this function cannot correctly handle binary files (specifically, "
24187 "files containing C<\\0> character which is treated as end of string).  For "
24188 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24189 "functions which have a more complex interface."
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24194 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24195 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24196 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24197 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24198 #: ../src/guestfs-actions.pod:7559
24199 msgid "(Added in 0.4)"
24200 msgstr ""
24201
24202 #. type: =head2
24203 #: ../src/guestfs-actions.pod:953
24204 msgid "guestfs_checksum"
24205 msgstr ""
24206
24207 #. type: verbatim
24208 #: ../src/guestfs-actions.pod:955
24209 #, no-wrap
24210 msgid ""
24211 " char *\n"
24212 " guestfs_checksum (guestfs_h *g,\n"
24213 "                   const char *csumtype,\n"
24214 "                   const char *path);\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../src/guestfs-actions.pod:1001
24220 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24221 msgstr ""
24222
24223 #. type: textblock
24224 #: ../src/guestfs-actions.pod:1003
24225 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24226 msgstr ""
24227
24228 #. type: textblock
24229 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24230 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24231 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24232 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24233 msgid "(Added in 1.0.2)"
24234 msgstr ""
24235
24236 #. type: =head2
24237 #: ../src/guestfs-actions.pod:1010
24238 msgid "guestfs_checksum_device"
24239 msgstr ""
24240
24241 #. type: verbatim
24242 #: ../src/guestfs-actions.pod:1012
24243 #, no-wrap
24244 msgid ""
24245 " char *\n"
24246 " guestfs_checksum_device (guestfs_h *g,\n"
24247 "                          const char *csumtype,\n"
24248 "                          const char *device);\n"
24249 "\n"
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../src/guestfs-actions.pod:1017
24254 msgid ""
24255 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24256 "device named C<device>.  For the types of checksums supported see the "
24257 "C<guestfs_checksum> command."
24258 msgstr ""
24259
24260 #. type: textblock
24261 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24262 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24263 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24264 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24265 #: ../src/guestfs-actions.pod:7571
24266 msgid "(Added in 1.3.2)"
24267 msgstr ""
24268
24269 #. type: =head2
24270 #: ../src/guestfs-actions.pod:1026
24271 msgid "guestfs_checksums_out"
24272 msgstr ""
24273
24274 #. type: verbatim
24275 #: ../src/guestfs-actions.pod:1028
24276 #, no-wrap
24277 msgid ""
24278 " int\n"
24279 " guestfs_checksums_out (guestfs_h *g,\n"
24280 "                        const char *csumtype,\n"
24281 "                        const char *directory,\n"
24282 "                        const char *sumsfile);\n"
24283 "\n"
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../src/guestfs-actions.pod:1048
24288 msgid "(Added in 1.3.7)"
24289 msgstr ""
24290
24291 #. type: =head2
24292 #: ../src/guestfs-actions.pod:1050
24293 msgid "guestfs_chmod"
24294 msgstr ""
24295
24296 #. type: verbatim
24297 #: ../src/guestfs-actions.pod:1052
24298 #, no-wrap
24299 msgid ""
24300 " int\n"
24301 " guestfs_chmod (guestfs_h *g,\n"
24302 "                int mode,\n"
24303 "                const char *path);\n"
24304 "\n"
24305 msgstr ""
24306
24307 #. type: =head2
24308 #: ../src/guestfs-actions.pod:1070
24309 msgid "guestfs_chown"
24310 msgstr ""
24311
24312 #. type: verbatim
24313 #: ../src/guestfs-actions.pod:1072
24314 #, no-wrap
24315 msgid ""
24316 " int\n"
24317 " guestfs_chown (guestfs_h *g,\n"
24318 "                int owner,\n"
24319 "                int group,\n"
24320 "                const char *path);\n"
24321 "\n"
24322 msgstr ""
24323
24324 #. type: =head2
24325 #: ../src/guestfs-actions.pod:1088
24326 msgid "guestfs_command"
24327 msgstr ""
24328
24329 #. type: verbatim
24330 #: ../src/guestfs-actions.pod:1090
24331 #, no-wrap
24332 msgid ""
24333 " char *\n"
24334 " guestfs_command (guestfs_h *g,\n"
24335 "                  char *const *arguments);\n"
24336 "\n"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../src/guestfs-actions.pod:1099
24341 msgid ""
24342 "The single parameter is an argv-style list of arguments.  The first element "
24343 "is the name of the program to run.  Subsequent elements are parameters.  The "
24344 "list must be non-empty (ie. must contain a program name).  Note that the "
24345 "command runs directly, and is I<not> invoked via the shell (see "
24346 "C<guestfs_sh>)."
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24351 #: ../src/guestfs-actions.pod:1615
24352 msgid "(Added in 0.9.1)"
24353 msgstr ""
24354
24355 #. type: =head2
24356 #: ../src/guestfs-actions.pod:1132
24357 msgid "guestfs_command_lines"
24358 msgstr ""
24359
24360 #. type: verbatim
24361 #: ../src/guestfs-actions.pod:1134
24362 #, no-wrap
24363 msgid ""
24364 " char **\n"
24365 " guestfs_command_lines (guestfs_h *g,\n"
24366 "                        char *const *arguments);\n"
24367 "\n"
24368 msgstr ""
24369
24370 #. type: textblock
24371 #: ../src/guestfs-actions.pod:1138
24372 msgid ""
24373 "This is the same as C<guestfs_command>, but splits the result into a list of "
24374 "lines."
24375 msgstr ""
24376
24377 #. type: textblock
24378 #: ../src/guestfs-actions.pod:1141
24379 msgid "See also: C<guestfs_sh_lines>"
24380 msgstr ""
24381
24382 #. type: =head2
24383 #: ../src/guestfs-actions.pod:1152
24384 msgid "guestfs_config"
24385 msgstr ""
24386
24387 #. type: verbatim
24388 #: ../src/guestfs-actions.pod:1154
24389 #, no-wrap
24390 msgid ""
24391 " int\n"
24392 " guestfs_config (guestfs_h *g,\n"
24393 "                 const char *qemuparam,\n"
24394 "                 const char *qemuvalue);\n"
24395 "\n"
24396 msgstr ""
24397
24398 #. type: =head2
24399 #: ../src/guestfs-actions.pod:1172
24400 msgid "guestfs_copy_size"
24401 msgstr ""
24402
24403 #. type: verbatim
24404 #: ../src/guestfs-actions.pod:1174
24405 #, no-wrap
24406 msgid ""
24407 " int\n"
24408 " guestfs_copy_size (guestfs_h *g,\n"
24409 "                    const char *src,\n"
24410 "                    const char *dest,\n"
24411 "                    int64_t size);\n"
24412 "\n"
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24417 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24418 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24419 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24420 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7780
24421 #: ../src/guestfs-actions.pod:7799
24422 msgid ""
24423 "This long-running command can generate progress notification messages so "
24424 "that the caller can display a progress bar or indicator.  To receive these "
24425 "messages, the caller must register a progress event callback.  See L<guestfs"
24426 "(3)/GUESTFS_EVENT_PROGRESS>."
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24431 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24432 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24433 msgid "(Added in 1.0.87)"
24434 msgstr ""
24435
24436 #. type: =head2
24437 #: ../src/guestfs-actions.pod:1195
24438 msgid "guestfs_cp"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../src/guestfs-actions.pod:1197
24443 #, no-wrap
24444 msgid ""
24445 " int\n"
24446 " guestfs_cp (guestfs_h *g,\n"
24447 "             const char *src,\n"
24448 "             const char *dest);\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: textblock
24453 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24454 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24455 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24456 #: ../src/guestfs-actions.pod:5596
24457 msgid "(Added in 1.0.18)"
24458 msgstr ""
24459
24460 #. type: =head2
24461 #: ../src/guestfs-actions.pod:1209
24462 msgid "guestfs_cp_a"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../src/guestfs-actions.pod:1211
24467 #, no-wrap
24468 msgid ""
24469 " int\n"
24470 " guestfs_cp_a (guestfs_h *g,\n"
24471 "               const char *src,\n"
24472 "               const char *dest);\n"
24473 "\n"
24474 msgstr ""
24475
24476 #. type: =head2
24477 #: ../src/guestfs-actions.pod:1223
24478 msgid "guestfs_dd"
24479 msgstr ""
24480
24481 #. type: verbatim
24482 #: ../src/guestfs-actions.pod:1225
24483 #, no-wrap
24484 msgid ""
24485 " int\n"
24486 " guestfs_dd (guestfs_h *g,\n"
24487 "             const char *src,\n"
24488 "             const char *dest);\n"
24489 "\n"
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../src/guestfs-actions.pod:1235
24494 msgid ""
24495 "If the destination is a device, it must be as large or larger than the "
24496 "source file or device, otherwise the copy will fail.  This command cannot do "
24497 "partial copies (see C<guestfs_copy_size>)."
24498 msgstr ""
24499
24500 #. type: =head2
24501 #: ../src/guestfs-actions.pod:1243
24502 msgid "guestfs_df"
24503 msgstr ""
24504
24505 #. type: verbatim
24506 #: ../src/guestfs-actions.pod:1245
24507 #, no-wrap
24508 msgid ""
24509 " char *\n"
24510 " guestfs_df (guestfs_h *g);\n"
24511 "\n"
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24516 msgid ""
24517 "This command is mostly useful for interactive sessions.  It is I<not> "
24518 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24519 "from programs."
24520 msgstr ""
24521
24522 #. type: textblock
24523 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24524 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24525 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24526 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24527 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24528 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24529 #: ../src/guestfs-actions.pod:7650
24530 msgid "(Added in 1.0.54)"
24531 msgstr ""
24532
24533 #. type: =head2
24534 #: ../src/guestfs-actions.pod:1259
24535 msgid "guestfs_df_h"
24536 msgstr ""
24537
24538 #. type: verbatim
24539 #: ../src/guestfs-actions.pod:1261
24540 #, no-wrap
24541 msgid ""
24542 " char *\n"
24543 " guestfs_df_h (guestfs_h *g);\n"
24544 "\n"
24545 msgstr ""
24546
24547 #. type: =head2
24548 #: ../src/guestfs-actions.pod:1276
24549 msgid "guestfs_dmesg"
24550 msgstr ""
24551
24552 #. type: verbatim
24553 #: ../src/guestfs-actions.pod:1278
24554 #, no-wrap
24555 msgid ""
24556 " char *\n"
24557 " guestfs_dmesg (guestfs_h *g);\n"
24558 "\n"
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../src/guestfs-actions.pod:1285
24563 msgid ""
24564 "Another way to get the same information is to enable verbose messages with "
24565 "C<guestfs_set_verbose> or by setting the environment variable "
24566 "C<LIBGUESTFS_DEBUG=1> before running the program."
24567 msgstr ""
24568
24569 #. type: =head2
24570 #: ../src/guestfs-actions.pod:1295
24571 msgid "guestfs_download"
24572 msgstr ""
24573
24574 #. type: verbatim
24575 #: ../src/guestfs-actions.pod:1297
24576 #, no-wrap
24577 msgid ""
24578 " int\n"
24579 " guestfs_download (guestfs_h *g,\n"
24580 "                   const char *remotefilename,\n"
24581 "                   const char *filename);\n"
24582 "\n"
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../src/guestfs-actions.pod:1307
24587 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24588 msgstr ""
24589
24590 #. type: =head2
24591 #: ../src/guestfs-actions.pod:1318
24592 msgid "guestfs_download_offset"
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../src/guestfs-actions.pod:1320
24597 #, no-wrap
24598 msgid ""
24599 " int\n"
24600 " guestfs_download_offset (guestfs_h *g,\n"
24601 "                          const char *remotefilename,\n"
24602 "                          const char *filename,\n"
24603 "                          int64_t offset,\n"
24604 "                          int64_t size);\n"
24605 "\n"
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../src/guestfs-actions.pod:1333
24610 msgid ""
24611 "Note that there is no limit on the amount of data that can be downloaded "
24612 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24613 "full amount unless an error occurs."
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../src/guestfs-actions.pod:1338
24618 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24619 msgstr ""
24620
24621 #. type: textblock
24622 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24623 msgid "(Added in 1.5.17)"
24624 msgstr ""
24625
24626 #. type: =head2
24627 #: ../src/guestfs-actions.pod:1349
24628 msgid "guestfs_drop_caches"
24629 msgstr ""
24630
24631 #. type: verbatim
24632 #: ../src/guestfs-actions.pod:1351
24633 #, no-wrap
24634 msgid ""
24635 " int\n"
24636 " guestfs_drop_caches (guestfs_h *g,\n"
24637 "                      int whattodrop);\n"
24638 "\n"
24639 msgstr ""
24640
24641 #. type: =head2
24642 #: ../src/guestfs-actions.pod:1369
24643 msgid "guestfs_du"
24644 msgstr ""
24645
24646 #. type: verbatim
24647 #: ../src/guestfs-actions.pod:1371
24648 #, no-wrap
24649 msgid ""
24650 " int64_t\n"
24651 " guestfs_du (guestfs_h *g,\n"
24652 "             const char *path);\n"
24653 "\n"
24654 msgstr ""
24655
24656 #. type: =head2
24657 #: ../src/guestfs-actions.pod:1394
24658 msgid "guestfs_e2fsck_f"
24659 msgstr ""
24660
24661 #. type: verbatim
24662 #: ../src/guestfs-actions.pod:1396
24663 #, no-wrap
24664 msgid ""
24665 " int\n"
24666 " guestfs_e2fsck_f (guestfs_h *g,\n"
24667 "                   const char *device);\n"
24668 "\n"
24669 msgstr ""
24670
24671 #. type: textblock
24672 #: ../src/guestfs-actions.pod:1404
24673 msgid ""
24674 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24675 "Normally you should use C<guestfs_fsck>."
24676 msgstr ""
24677
24678 #. type: textblock
24679 #: ../src/guestfs-actions.pod:1409
24680 msgid "(Added in 1.0.29)"
24681 msgstr ""
24682
24683 #. type: =head2
24684 #: ../src/guestfs-actions.pod:1411
24685 msgid "guestfs_echo_daemon"
24686 msgstr ""
24687
24688 #. type: verbatim
24689 #: ../src/guestfs-actions.pod:1413
24690 #, no-wrap
24691 msgid ""
24692 " char *\n"
24693 " guestfs_echo_daemon (guestfs_h *g,\n"
24694 "                      char *const *words);\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../src/guestfs-actions.pod:1422
24700 msgid "See also C<guestfs_ping_daemon>."
24701 msgstr ""
24702
24703 #. type: textblock
24704 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24705 #: ../src/guestfs-actions.pod:6453
24706 msgid "(Added in 1.0.69)"
24707 msgstr ""
24708
24709 #. type: =head2
24710 #: ../src/guestfs-actions.pod:1429
24711 msgid "guestfs_egrep"
24712 msgstr ""
24713
24714 #. type: verbatim
24715 #: ../src/guestfs-actions.pod:1431
24716 #, no-wrap
24717 msgid ""
24718 " char **\n"
24719 " guestfs_egrep (guestfs_h *g,\n"
24720 "                const char *regex,\n"
24721 "                const char *path);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24727 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24728 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24729 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24730 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24731 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24732 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24733 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24734 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24735 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24736 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24737 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24738 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24739 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24740 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24741 #: ../src/guestfs-actions.pod:7847 ../src/guestfs-actions.pod:7866
24742 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
24743 msgid "(Added in 1.0.66)"
24744 msgstr ""
24745
24746 #. type: =head2
24747 #: ../src/guestfs-actions.pod:1448
24748 msgid "guestfs_egrepi"
24749 msgstr ""
24750
24751 #. type: verbatim
24752 #: ../src/guestfs-actions.pod:1450
24753 #, no-wrap
24754 msgid ""
24755 " char **\n"
24756 " guestfs_egrepi (guestfs_h *g,\n"
24757 "                 const char *regex,\n"
24758 "                 const char *path);\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: =head2
24763 #: ../src/guestfs-actions.pod:1467
24764 msgid "guestfs_equal"
24765 msgstr ""
24766
24767 #. type: verbatim
24768 #: ../src/guestfs-actions.pod:1469
24769 #, no-wrap
24770 msgid ""
24771 " int\n"
24772 " guestfs_equal (guestfs_h *g,\n"
24773 "                const char *file1,\n"
24774 "                const char *file2);\n"
24775 "\n"
24776 msgstr ""
24777
24778 #. type: =head2
24779 #: ../src/guestfs-actions.pod:1483
24780 msgid "guestfs_exists"
24781 msgstr ""
24782
24783 #. type: verbatim
24784 #: ../src/guestfs-actions.pod:1485
24785 #, no-wrap
24786 msgid ""
24787 " int\n"
24788 " guestfs_exists (guestfs_h *g,\n"
24789 "                 const char *path);\n"
24790 "\n"
24791 msgstr ""
24792
24793 #. type: textblock
24794 #: ../src/guestfs-actions.pod:1492
24795 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24796 msgstr ""
24797
24798 #. type: =head2
24799 #: ../src/guestfs-actions.pod:1498
24800 msgid "guestfs_fallocate"
24801 msgstr ""
24802
24803 #. type: verbatim
24804 #: ../src/guestfs-actions.pod:1500
24805 #, no-wrap
24806 msgid ""
24807 " int\n"
24808 " guestfs_fallocate (guestfs_h *g,\n"
24809 "                    const char *path,\n"
24810 "                    int len);\n"
24811 "\n"
24812 msgstr ""
24813
24814 #. type: textblock
24815 #: ../src/guestfs-actions.pod:1515
24816 msgid ""
24817 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
24818 "call instead."
24819 msgstr ""
24820
24821 #. type: =head2
24822 #: ../src/guestfs-actions.pod:1524
24823 msgid "guestfs_fallocate64"
24824 msgstr ""
24825
24826 #. type: verbatim
24827 #: ../src/guestfs-actions.pod:1526
24828 #, no-wrap
24829 msgid ""
24830 " int\n"
24831 " guestfs_fallocate64 (guestfs_h *g,\n"
24832 "                      const char *path,\n"
24833 "                      int64_t len);\n"
24834 "\n"
24835 msgstr ""
24836
24837 #. type: textblock
24838 #: ../src/guestfs-actions.pod:1535
24839 msgid ""
24840 "Note that this call allocates disk blocks for the file.  To create a sparse "
24841 "file use C<guestfs_truncate_size> instead."
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../src/guestfs-actions.pod:1538
24846 msgid ""
24847 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24848 "oversight it only allowed 30 bit lengths to be specified, effectively "
24849 "limiting the maximum size of files created through that call to 1GB."
24850 msgstr ""
24851
24852 #. type: textblock
24853 #: ../src/guestfs-actions.pod:1549
24854 msgid "(Added in 1.3.17)"
24855 msgstr ""
24856
24857 #. type: =head2
24858 #: ../src/guestfs-actions.pod:1551
24859 msgid "guestfs_fgrep"
24860 msgstr ""
24861
24862 #. type: verbatim
24863 #: ../src/guestfs-actions.pod:1553
24864 #, no-wrap
24865 msgid ""
24866 " char **\n"
24867 " guestfs_fgrep (guestfs_h *g,\n"
24868 "                const char *pattern,\n"
24869 "                const char *path);\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: =head2
24874 #: ../src/guestfs-actions.pod:1570
24875 msgid "guestfs_fgrepi"
24876 msgstr ""
24877
24878 #. type: verbatim
24879 #: ../src/guestfs-actions.pod:1572
24880 #, no-wrap
24881 msgid ""
24882 " char **\n"
24883 " guestfs_fgrepi (guestfs_h *g,\n"
24884 "                 const char *pattern,\n"
24885 "                 const char *path);\n"
24886 "\n"
24887 msgstr ""
24888
24889 #. type: =head2
24890 #: ../src/guestfs-actions.pod:1589
24891 msgid "guestfs_file"
24892 msgstr ""
24893
24894 #. type: verbatim
24895 #: ../src/guestfs-actions.pod:1591
24896 #, no-wrap
24897 msgid ""
24898 " char *\n"
24899 " guestfs_file (guestfs_h *g,\n"
24900 "               const char *path);\n"
24901 "\n"
24902 msgstr ""
24903
24904 #. type: textblock
24905 #: ../src/guestfs-actions.pod:1609
24906 msgid ""
24907 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24908 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24909 msgstr ""
24910
24911 #. type: =head2
24912 #: ../src/guestfs-actions.pod:1617
24913 msgid "guestfs_file_architecture"
24914 msgstr ""
24915
24916 #. type: verbatim
24917 #: ../src/guestfs-actions.pod:1619
24918 #, no-wrap
24919 msgid ""
24920 " char *\n"
24921 " guestfs_file_architecture (guestfs_h *g,\n"
24922 "                            const char *filename);\n"
24923 "\n"
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
24928 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
24929 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
24930 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
24931 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
24932 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
24933 #: ../src/guestfs-actions.pod:3546
24934 msgid "(Added in 1.5.3)"
24935 msgstr ""
24936
24937 #. type: =head2
24938 #: ../src/guestfs-actions.pod:1729
24939 msgid "guestfs_filesize"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../src/guestfs-actions.pod:1731
24944 #, no-wrap
24945 msgid ""
24946 " int64_t\n"
24947 " guestfs_filesize (guestfs_h *g,\n"
24948 "                   const char *file);\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../src/guestfs-actions.pod:1737
24954 msgid ""
24955 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24956 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24957 "devices, use C<guestfs_blockdev_getsize64>."
24958 msgstr ""
24959
24960 #. type: textblock
24961 #: ../src/guestfs-actions.pod:1743
24962 msgid "(Added in 1.0.82)"
24963 msgstr ""
24964
24965 #. type: =head2
24966 #: ../src/guestfs-actions.pod:1745
24967 msgid "guestfs_fill"
24968 msgstr ""
24969
24970 #. type: verbatim
24971 #: ../src/guestfs-actions.pod:1747
24972 #, no-wrap
24973 msgid ""
24974 " int\n"
24975 " guestfs_fill (guestfs_h *g,\n"
24976 "               int c,\n"
24977 "               int len,\n"
24978 "               const char *path);\n"
24979 "\n"
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../src/guestfs-actions.pod:1757
24984 msgid ""
24985 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24986 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24987 "bytes use C<guestfs_fill_pattern>."
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:1769
24992 msgid "(Added in 1.0.79)"
24993 msgstr ""
24994
24995 #. type: =head2
24996 #: ../src/guestfs-actions.pod:1771
24997 msgid "guestfs_fill_pattern"
24998 msgstr ""
24999
25000 #. type: verbatim
25001 #: ../src/guestfs-actions.pod:1773
25002 #, no-wrap
25003 msgid ""
25004 " int\n"
25005 " guestfs_fill_pattern (guestfs_h *g,\n"
25006 "                       const char *pattern,\n"
25007 "                       int len,\n"
25008 "                       const char *path);\n"
25009 "\n"
25010 msgstr ""
25011
25012 #. type: textblock
25013 #: ../src/guestfs-actions.pod:1779
25014 msgid ""
25015 "This function is like C<guestfs_fill> except that it creates a new file of "
25016 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25017 "pattern is truncated if necessary to ensure the length of the file is "
25018 "exactly C<len> bytes."
25019 msgstr ""
25020
25021 #. type: textblock
25022 #: ../src/guestfs-actions.pod:1791
25023 msgid "(Added in 1.3.12)"
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../src/guestfs-actions.pod:1793
25028 msgid "guestfs_find"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../src/guestfs-actions.pod:1795
25033 #, no-wrap
25034 msgid ""
25035 " char **\n"
25036 " guestfs_find (guestfs_h *g,\n"
25037 "               const char *directory);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:1811
25043 msgid ""
25044 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../src/guestfs-actions.pod:1824
25049 msgid "See also C<guestfs_find0>."
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25054 #: ../src/guestfs-actions.pod:6014
25055 msgid "(Added in 1.0.27)"
25056 msgstr ""
25057
25058 #. type: =head2
25059 #: ../src/guestfs-actions.pod:1835
25060 msgid "guestfs_find0"
25061 msgstr ""
25062
25063 #. type: verbatim
25064 #: ../src/guestfs-actions.pod:1837
25065 #, no-wrap
25066 msgid ""
25067 " int\n"
25068 " guestfs_find0 (guestfs_h *g,\n"
25069 "                const char *directory,\n"
25070 "                const char *files);\n"
25071 "\n"
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../src/guestfs-actions.pod:1846
25076 msgid ""
25077 "This command works the same way as C<guestfs_find> with the following "
25078 "exceptions:"
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../src/guestfs-actions.pod:1873
25083 msgid "(Added in 1.0.74)"
25084 msgstr ""
25085
25086 #. type: =head2
25087 #: ../src/guestfs-actions.pod:1875
25088 msgid "guestfs_findfs_label"
25089 msgstr ""
25090
25091 #. type: verbatim
25092 #: ../src/guestfs-actions.pod:1877
25093 #, no-wrap
25094 msgid ""
25095 " char *\n"
25096 " guestfs_findfs_label (guestfs_h *g,\n"
25097 "                       const char *label);\n"
25098 "\n"
25099 msgstr ""
25100
25101 #. type: textblock
25102 #: ../src/guestfs-actions.pod:1885
25103 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25104 msgstr ""
25105
25106 #. type: =head2
25107 #: ../src/guestfs-actions.pod:1892
25108 msgid "guestfs_findfs_uuid"
25109 msgstr ""
25110
25111 #. type: verbatim
25112 #: ../src/guestfs-actions.pod:1894
25113 #, no-wrap
25114 msgid ""
25115 " char *\n"
25116 " guestfs_findfs_uuid (guestfs_h *g,\n"
25117 "                      const char *uuid);\n"
25118 "\n"
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../src/guestfs-actions.pod:1902
25123 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25124 msgstr ""
25125
25126 #. type: =head2
25127 #: ../src/guestfs-actions.pod:1909
25128 msgid "guestfs_fsck"
25129 msgstr ""
25130
25131 #. type: verbatim
25132 #: ../src/guestfs-actions.pod:1911
25133 #, no-wrap
25134 msgid ""
25135 " int\n"
25136 " guestfs_fsck (guestfs_h *g,\n"
25137 "               const char *fstype,\n"
25138 "               const char *device);\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7785
25144 msgid "(Added in 1.0.16)"
25145 msgstr ""
25146
25147 #. type: =head2
25148 #: ../src/guestfs-actions.pod:1948
25149 msgid "guestfs_get_append"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:1950
25154 #, no-wrap
25155 msgid ""
25156 " const char *\n"
25157 " guestfs_get_append (guestfs_h *g);\n"
25158 "\n"
25159 msgstr ""
25160
25161 #. type: textblock
25162 #: ../src/guestfs-actions.pod:1958
25163 msgid ""
25164 "This function returns a string which may be NULL.  There is no way to return "
25165 "an error from this function.  The string is owned by the guest handle and "
25166 "must I<not> be freed."
25167 msgstr ""
25168
25169 #. type: textblock
25170 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25171 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25172 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25173 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25174 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7828
25175 msgid "(Added in 1.0.26)"
25176 msgstr ""
25177
25178 #. type: =head2
25179 #: ../src/guestfs-actions.pod:1964
25180 msgid "guestfs_get_attach_method"
25181 msgstr ""
25182
25183 #. type: verbatim
25184 #: ../src/guestfs-actions.pod:1966
25185 #, no-wrap
25186 msgid ""
25187 " char *\n"
25188 " guestfs_get_attach_method (guestfs_h *g);\n"
25189 "\n"
25190 msgstr ""
25191
25192 #. type: textblock
25193 #: ../src/guestfs-actions.pod:1969
25194 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25195 msgstr ""
25196
25197 #. type: textblock
25198 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25199 msgid "(Added in 1.9.8)"
25200 msgstr ""
25201
25202 #. type: =head2
25203 #: ../src/guestfs-actions.pod:1976
25204 msgid "guestfs_get_autosync"
25205 msgstr ""
25206
25207 #. type: verbatim
25208 #: ../src/guestfs-actions.pod:1978
25209 #, no-wrap
25210 msgid ""
25211 " int\n"
25212 " guestfs_get_autosync (guestfs_h *g);\n"
25213 "\n"
25214 msgstr ""
25215
25216 #. type: =head2
25217 #: ../src/guestfs-actions.pod:1987
25218 msgid "guestfs_get_direct"
25219 msgstr ""
25220
25221 #. type: verbatim
25222 #: ../src/guestfs-actions.pod:1989
25223 #, no-wrap
25224 msgid ""
25225 " int\n"
25226 " guestfs_get_direct (guestfs_h *g);\n"
25227 "\n"
25228 msgstr ""
25229
25230 #. type: textblock
25231 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25232 msgid "(Added in 1.0.72)"
25233 msgstr ""
25234
25235 #. type: =head2
25236 #: ../src/guestfs-actions.pod:1998
25237 msgid "guestfs_get_e2label"
25238 msgstr ""
25239
25240 #. type: verbatim
25241 #: ../src/guestfs-actions.pod:2000
25242 #, no-wrap
25243 msgid ""
25244 " char *\n"
25245 " guestfs_get_e2label (guestfs_h *g,\n"
25246 "                      const char *device);\n"
25247 "\n"
25248 msgstr ""
25249
25250 #. type: textblock
25251 #: ../src/guestfs-actions.pod:2010
25252 msgid ""
25253 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
25254 "call instead."
25255 msgstr ""
25256
25257 #. type: textblock
25258 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25259 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25260 msgid "(Added in 1.0.15)"
25261 msgstr ""
25262
25263 #. type: =head2
25264 #: ../src/guestfs-actions.pod:2019
25265 msgid "guestfs_get_e2uuid"
25266 msgstr ""
25267
25268 #. type: verbatim
25269 #: ../src/guestfs-actions.pod:2021
25270 #, no-wrap
25271 msgid ""
25272 " char *\n"
25273 " guestfs_get_e2uuid (guestfs_h *g,\n"
25274 "                     const char *device);\n"
25275 "\n"
25276 msgstr ""
25277
25278 #. type: textblock
25279 #: ../src/guestfs-actions.pod:2031
25280 msgid ""
25281 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
25282 "instead."
25283 msgstr ""
25284
25285 #. type: =head2
25286 #: ../src/guestfs-actions.pod:2040
25287 msgid "guestfs_get_memsize"
25288 msgstr ""
25289
25290 #. type: verbatim
25291 #: ../src/guestfs-actions.pod:2042
25292 #, no-wrap
25293 msgid ""
25294 " int\n"
25295 " guestfs_get_memsize (guestfs_h *g);\n"
25296 "\n"
25297 msgstr ""
25298
25299 #. type: textblock
25300 #: ../src/guestfs-actions.pod:2048
25301 msgid ""
25302 "If C<guestfs_set_memsize> was not called on this handle, and if "
25303 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25304 "value for memsize."
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25309 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25310 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25311 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25312 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25313 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25314 msgid "(Added in 1.0.55)"
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../src/guestfs-actions.pod:2059
25319 msgid "guestfs_get_network"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../src/guestfs-actions.pod:2061
25324 #, no-wrap
25325 msgid ""
25326 " int\n"
25327 " guestfs_get_network (guestfs_h *g);\n"
25328 "\n"
25329 msgstr ""
25330
25331 #. type: textblock
25332 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25333 msgid "(Added in 1.5.4)"
25334 msgstr ""
25335
25336 #. type: =head2
25337 #: ../src/guestfs-actions.pod:2070
25338 msgid "guestfs_get_path"
25339 msgstr ""
25340
25341 #. type: verbatim
25342 #: ../src/guestfs-actions.pod:2072
25343 #, no-wrap
25344 msgid ""
25345 " const char *\n"
25346 " guestfs_get_path (guestfs_h *g);\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: textblock
25351 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25352 msgid ""
25353 "This function returns a string, or NULL on error.  The string is owned by "
25354 "the guest handle and must I<not> be freed."
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../src/guestfs-actions.pod:2085
25359 msgid "guestfs_get_pgroup"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../src/guestfs-actions.pod:2087
25364 #, no-wrap
25365 msgid ""
25366 " int\n"
25367 " guestfs_get_pgroup (guestfs_h *g);\n"
25368 "\n"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25373 #: ../src/guestfs-actions.pod:7690
25374 #, fuzzy
25375 #| msgid "(Added in 1.5.1)"
25376 msgid "(Added in 1.11.18)"
25377 msgstr "(Додано у 1.5.1)"
25378
25379 #. type: =head2
25380 #: ../src/guestfs-actions.pod:2096
25381 msgid "guestfs_get_pid"
25382 msgstr ""
25383
25384 #. type: verbatim
25385 #: ../src/guestfs-actions.pod:2098
25386 #, no-wrap
25387 msgid ""
25388 " int\n"
25389 " guestfs_get_pid (guestfs_h *g);\n"
25390 "\n"
25391 msgstr ""
25392
25393 #. type: textblock
25394 #: ../src/guestfs-actions.pod:2108
25395 msgid "(Added in 1.0.56)"
25396 msgstr ""
25397
25398 #. type: =head2
25399 #: ../src/guestfs-actions.pod:2110
25400 msgid "guestfs_get_qemu"
25401 msgstr ""
25402
25403 #. type: verbatim
25404 #: ../src/guestfs-actions.pod:2112
25405 #, no-wrap
25406 msgid ""
25407 " const char *\n"
25408 " guestfs_get_qemu (guestfs_h *g);\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25414 msgid "(Added in 1.0.6)"
25415 msgstr ""
25416
25417 #. type: =head2
25418 #: ../src/guestfs-actions.pod:2125
25419 msgid "guestfs_get_recovery_proc"
25420 msgstr ""
25421
25422 #. type: verbatim
25423 #: ../src/guestfs-actions.pod:2127
25424 #, no-wrap
25425 msgid ""
25426 " int\n"
25427 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25428 "\n"
25429 msgstr ""
25430
25431 #. type: textblock
25432 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25433 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25434 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25435 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25436 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25437 #: ../src/guestfs-actions.pod:7313
25438 msgid "(Added in 1.0.77)"
25439 msgstr ""
25440
25441 #. type: =head2
25442 #: ../src/guestfs-actions.pod:2136
25443 msgid "guestfs_get_selinux"
25444 msgstr ""
25445
25446 #. type: verbatim
25447 #: ../src/guestfs-actions.pod:2138
25448 #, no-wrap
25449 msgid ""
25450 " int\n"
25451 " guestfs_get_selinux (guestfs_h *g);\n"
25452 "\n"
25453 msgstr ""
25454
25455 #. type: textblock
25456 #: ../src/guestfs-actions.pod:2141
25457 msgid ""
25458 "This returns the current setting of the selinux flag which is passed to the "
25459 "appliance at boot time.  See C<guestfs_set_selinux>."
25460 msgstr ""
25461
25462 #. type: textblock
25463 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25464 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25465 msgid "(Added in 1.0.67)"
25466 msgstr ""
25467
25468 #. type: =head2
25469 #: ../src/guestfs-actions.pod:2151
25470 msgid "guestfs_get_state"
25471 msgstr ""
25472
25473 #. type: verbatim
25474 #: ../src/guestfs-actions.pod:2153
25475 #, no-wrap
25476 msgid ""
25477 " int\n"
25478 " guestfs_get_state (guestfs_h *g);\n"
25479 "\n"
25480 msgstr ""
25481
25482 #. type: =head2
25483 #: ../src/guestfs-actions.pod:2165
25484 msgid "guestfs_get_trace"
25485 msgstr ""
25486
25487 #. type: verbatim
25488 #: ../src/guestfs-actions.pod:2167
25489 #, no-wrap
25490 msgid ""
25491 " int\n"
25492 " guestfs_get_trace (guestfs_h *g);\n"
25493 "\n"
25494 msgstr ""
25495
25496 #. type: =head2
25497 #: ../src/guestfs-actions.pod:2176
25498 msgid "guestfs_get_umask"
25499 msgstr ""
25500
25501 #. type: verbatim
25502 #: ../src/guestfs-actions.pod:2178
25503 #, no-wrap
25504 msgid ""
25505 " int\n"
25506 " guestfs_get_umask (guestfs_h *g);\n"
25507 "\n"
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../src/guestfs-actions.pod:2181
25512 msgid ""
25513 "Return the current umask.  By default the umask is C<022> unless it has been "
25514 "set by calling C<guestfs_umask>."
25515 msgstr ""
25516
25517 #. type: =head2
25518 #: ../src/guestfs-actions.pod:2188
25519 msgid "guestfs_get_verbose"
25520 msgstr ""
25521
25522 #. type: verbatim
25523 #: ../src/guestfs-actions.pod:2190
25524 #, no-wrap
25525 msgid ""
25526 " int\n"
25527 " guestfs_get_verbose (guestfs_h *g);\n"
25528 "\n"
25529 msgstr ""
25530
25531 #. type: =head2
25532 #: ../src/guestfs-actions.pod:2199
25533 msgid "guestfs_getcon"
25534 msgstr ""
25535
25536 #. type: verbatim
25537 #: ../src/guestfs-actions.pod:2201
25538 #, no-wrap
25539 msgid ""
25540 " char *\n"
25541 " guestfs_getcon (guestfs_h *g);\n"
25542 "\n"
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:2206
25547 msgid ""
25548 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:2214
25553 msgid "guestfs_getxattr"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:2216
25558 #, no-wrap
25559 msgid ""
25560 " char *\n"
25561 " guestfs_getxattr (guestfs_h *g,\n"
25562 "                   const char *path,\n"
25563 "                   const char *name,\n"
25564 "                   size_t *size_r);\n"
25565 "\n"
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../src/guestfs-actions.pod:2222
25570 msgid ""
25571 "Get a single extended attribute from file C<path> named C<name>.  This call "
25572 "follows symlinks.  If you want to lookup an extended attribute for the "
25573 "symlink itself, use C<guestfs_lgetxattr>."
25574 msgstr ""
25575
25576 #. type: textblock
25577 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25578 msgid ""
25579 "Normally it is better to get all extended attributes from a file in one go "
25580 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25581 "implementations are buggy and do not provide a way to list out attributes.  "
25582 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25583 "extended attributes you want in advance and call this function."
25584 msgstr ""
25585
25586 #. type: textblock
25587 #: ../src/guestfs-actions.pod:2236
25588 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25593 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25594 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25595 #: ../src/guestfs-actions.pod:5822
25596 msgid ""
25597 "This function returns a buffer, or NULL on error.  The size of the returned "
25598 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25599 "after use>."
25600 msgstr ""
25601
25602 #. type: textblock
25603 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25604 msgid "(Added in 1.7.24)"
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../src/guestfs-actions.pod:2244
25609 msgid "guestfs_getxattrs"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:2246
25614 #, no-wrap
25615 msgid ""
25616 " struct guestfs_xattr_list *\n"
25617 " guestfs_getxattrs (guestfs_h *g,\n"
25618 "                    const char *path);\n"
25619 "\n"
25620 msgstr ""
25621
25622 #. type: textblock
25623 #: ../src/guestfs-actions.pod:2256
25624 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25625 msgstr ""
25626
25627 #. type: textblock
25628 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25629 #: ../src/guestfs-actions.pod:4398
25630 msgid ""
25631 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25632 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25633 msgstr ""
25634
25635 #. type: textblock
25636 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25637 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25638 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25639 #: ../src/guestfs-actions.pod:7893
25640 msgid "(Added in 1.0.59)"
25641 msgstr ""
25642
25643 #. type: =head2
25644 #: ../src/guestfs-actions.pod:2264
25645 msgid "guestfs_glob_expand"
25646 msgstr ""
25647
25648 #. type: verbatim
25649 #: ../src/guestfs-actions.pod:2266
25650 #, no-wrap
25651 msgid ""
25652 " char **\n"
25653 " guestfs_glob_expand (guestfs_h *g,\n"
25654 "                      const char *pattern);\n"
25655 "\n"
25656 msgstr ""
25657
25658 #. type: textblock
25659 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25660 #: ../src/guestfs-actions.pod:6716
25661 msgid "(Added in 1.0.50)"
25662 msgstr ""
25663
25664 #. type: =head2
25665 #: ../src/guestfs-actions.pod:2287
25666 msgid "guestfs_grep"
25667 msgstr ""
25668
25669 #. type: verbatim
25670 #: ../src/guestfs-actions.pod:2289
25671 #, no-wrap
25672 msgid ""
25673 " char **\n"
25674 " guestfs_grep (guestfs_h *g,\n"
25675 "               const char *regex,\n"
25676 "               const char *path);\n"
25677 "\n"
25678 msgstr ""
25679
25680 #. type: =head2
25681 #: ../src/guestfs-actions.pod:2306
25682 msgid "guestfs_grepi"
25683 msgstr ""
25684
25685 #. type: verbatim
25686 #: ../src/guestfs-actions.pod:2308
25687 #, no-wrap
25688 msgid ""
25689 " char **\n"
25690 " guestfs_grepi (guestfs_h *g,\n"
25691 "                const char *regex,\n"
25692 "                const char *path);\n"
25693 "\n"
25694 msgstr ""
25695
25696 #. type: =head2
25697 #: ../src/guestfs-actions.pod:2325
25698 msgid "guestfs_grub_install"
25699 msgstr ""
25700
25701 #. type: verbatim
25702 #: ../src/guestfs-actions.pod:2327
25703 #, no-wrap
25704 msgid ""
25705 " int\n"
25706 " guestfs_grub_install (guestfs_h *g,\n"
25707 "                       const char *root,\n"
25708 "                       const char *device);\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: textblock
25713 #: ../src/guestfs-actions.pod:2348
25714 msgid "(Added in 1.0.17)"
25715 msgstr ""
25716
25717 #. type: =head2
25718 #: ../src/guestfs-actions.pod:2350
25719 msgid "guestfs_head"
25720 msgstr ""
25721
25722 #. type: verbatim
25723 #: ../src/guestfs-actions.pod:2352
25724 #, no-wrap
25725 msgid ""
25726 " char **\n"
25727 " guestfs_head (guestfs_h *g,\n"
25728 "               const char *path);\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: =head2
25733 #: ../src/guestfs-actions.pod:2368
25734 msgid "guestfs_head_n"
25735 msgstr ""
25736
25737 #. type: verbatim
25738 #: ../src/guestfs-actions.pod:2370
25739 #, no-wrap
25740 msgid ""
25741 " char **\n"
25742 " guestfs_head_n (guestfs_h *g,\n"
25743 "                 int nrlines,\n"
25744 "                 const char *path);\n"
25745 "\n"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:2392
25750 msgid "guestfs_hexdump"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:2394
25755 #, no-wrap
25756 msgid ""
25757 " char *\n"
25758 " guestfs_hexdump (guestfs_h *g,\n"
25759 "                  const char *path);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: textblock
25764 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25765 #: ../src/guestfs-actions.pod:6835
25766 msgid "(Added in 1.0.22)"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../src/guestfs-actions.pod:2409
25771 msgid "guestfs_initrd_cat"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../src/guestfs-actions.pod:2411
25776 #, no-wrap
25777 msgid ""
25778 " char *\n"
25779 " guestfs_initrd_cat (guestfs_h *g,\n"
25780 "                     const char *initrdpath,\n"
25781 "                     const char *filename,\n"
25782 "                     size_t *size_r);\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: textblock
25787 #: ../src/guestfs-actions.pod:2427
25788 msgid "See also C<guestfs_initrd_list>."
25789 msgstr ""
25790
25791 #. type: =head2
25792 #: ../src/guestfs-actions.pod:2438
25793 msgid "guestfs_initrd_list"
25794 msgstr ""
25795
25796 #. type: verbatim
25797 #: ../src/guestfs-actions.pod:2440
25798 #, no-wrap
25799 msgid ""
25800 " char **\n"
25801 " guestfs_initrd_list (guestfs_h *g,\n"
25802 "                      const char *path);\n"
25803 "\n"
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:2460
25808 msgid "guestfs_inotify_add_watch"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:2462
25813 #, no-wrap
25814 msgid ""
25815 " int64_t\n"
25816 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25817 "                            const char *path,\n"
25818 "                            int mask);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:2481
25824 msgid "guestfs_inotify_close"
25825 msgstr ""
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:2483
25829 #, no-wrap
25830 msgid ""
25831 " int\n"
25832 " guestfs_inotify_close (guestfs_h *g);\n"
25833 "\n"
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../src/guestfs-actions.pod:2494
25838 msgid "guestfs_inotify_files"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../src/guestfs-actions.pod:2496
25843 #, no-wrap
25844 msgid ""
25845 " char **\n"
25846 " guestfs_inotify_files (guestfs_h *g);\n"
25847 "\n"
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../src/guestfs-actions.pod:2499
25852 msgid ""
25853 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25854 "returns a list of pathnames of objects that were touched.  The returned "
25855 "pathnames are sorted and deduplicated."
25856 msgstr ""
25857
25858 #. type: =head2
25859 #: ../src/guestfs-actions.pod:2509
25860 msgid "guestfs_inotify_init"
25861 msgstr ""
25862
25863 #. type: verbatim
25864 #: ../src/guestfs-actions.pod:2511
25865 #, no-wrap
25866 msgid ""
25867 " int\n"
25868 " guestfs_inotify_init (guestfs_h *g,\n"
25869 "                       int maxevents);\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: textblock
25874 #: ../src/guestfs-actions.pod:2519
25875 msgid ""
25876 "C<maxevents> is the maximum number of events which will be queued up between "
25877 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25878 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25879 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25880 "throws away events, but records the fact that it threw them away by setting "
25881 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25882 "C<guestfs_inotify_read>)."
25883 msgstr ""
25884
25885 #. type: textblock
25886 #: ../src/guestfs-actions.pod:2529
25887 msgid ""
25888 "Before any events are generated, you have to add some watches to the "
25889 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25890 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:2535
25895 msgid ""
25896 "Queued up events should be read periodically by calling "
25897 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25898 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25899 "often enough then you risk the internal queue overflowing."
25900 msgstr ""
25901
25902 #. type: textblock
25903 #: ../src/guestfs-actions.pod:2542
25904 msgid ""
25905 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25906 "This also removes any watches automatically."
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:2555
25911 msgid "guestfs_inotify_read"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:2557
25916 #, no-wrap
25917 msgid ""
25918 " struct guestfs_inotify_event_list *\n"
25919 " guestfs_inotify_read (guestfs_h *g);\n"
25920 "\n"
25921 msgstr ""
25922
25923 #. type: textblock
25924 #: ../src/guestfs-actions.pod:2571
25925 msgid ""
25926 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25927 "there was an error.  I<The caller must call "
25928 "C<guestfs_free_inotify_event_list> after use>."
25929 msgstr ""
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:2577
25933 msgid "guestfs_inotify_rm_watch"
25934 msgstr ""
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:2579
25938 #, no-wrap
25939 msgid ""
25940 " int\n"
25941 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25942 "                           int wd);\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:2583
25948 msgid ""
25949 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25950 msgstr ""
25951
25952 #. type: =head2
25953 #: ../src/guestfs-actions.pod:2590
25954 msgid "guestfs_inspect_get_arch"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:2592
25959 #, no-wrap
25960 msgid ""
25961 " char *\n"
25962 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25963 "                           const char *root);\n"
25964 "\n"
25965 msgstr ""
25966
25967 #. type: textblock
25968 #: ../src/guestfs-actions.pod:2596
25969 msgid ""
25970 "This returns the architecture of the inspected operating system.  The "
25971 "possible return values are listed under C<guestfs_file_architecture>."
25972 msgstr ""
25973
25974 #. type: =head2
25975 #: ../src/guestfs-actions.pod:2610
25976 msgid "guestfs_inspect_get_distro"
25977 msgstr ""
25978
25979 #. type: verbatim
25980 #: ../src/guestfs-actions.pod:2612
25981 #, no-wrap
25982 msgid ""
25983 " char *\n"
25984 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25985 "                             const char *root);\n"
25986 "\n"
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:2700
25991 msgid "guestfs_inspect_get_drive_mappings"
25992 msgstr ""
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:2702
25996 #, no-wrap
25997 msgid ""
25998 " char **\n"
25999 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26000 "                                     const char *root);\n"
26001 "\n"
26002 msgstr ""
26003
26004 #. type: textblock
26005 #: ../src/guestfs-actions.pod:2731
26006 msgid ""
26007 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26008 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26009 msgstr ""
26010
26011 #. type: textblock
26012 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26013 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26014 #: ../src/guestfs-actions.pod:7137
26015 msgid ""
26016 "This function returns a NULL-terminated array of strings, or NULL if there "
26017 "was an error.  The array of strings will always have length C<2n+1>, where "
26018 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26019 "caller must free the strings and the array after use>."
26020 msgstr ""
26021
26022 #. type: textblock
26023 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26024 msgid "(Added in 1.9.17)"
26025 msgstr ""
26026
26027 #. type: =head2
26028 #: ../src/guestfs-actions.pod:2743
26029 msgid "guestfs_inspect_get_filesystems"
26030 msgstr ""
26031
26032 #. type: verbatim
26033 #: ../src/guestfs-actions.pod:2745
26034 #, no-wrap
26035 msgid ""
26036 " char **\n"
26037 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26038 "                                  const char *root);\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../src/guestfs-actions.pod:2757
26044 msgid ""
26045 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26046 "C<guestfs_inspect_get_mountpoints>."
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../src/guestfs-actions.pod:2766
26051 msgid "guestfs_inspect_get_format"
26052 msgstr ""
26053
26054 #. type: verbatim
26055 #: ../src/guestfs-actions.pod:2768
26056 #, no-wrap
26057 msgid ""
26058 " char *\n"
26059 " guestfs_inspect_get_format (guestfs_h *g,\n"
26060 "                             const char *root);\n"
26061 "\n"
26062 msgstr ""
26063
26064 #. type: textblock
26065 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26066 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26067 #: ../src/guestfs-actions.pod:6033
26068 msgid "(Added in 1.9.4)"
26069 msgstr ""
26070
26071 #. type: =head2
26072 #: ../src/guestfs-actions.pod:2804
26073 msgid "guestfs_inspect_get_hostname"
26074 msgstr ""
26075
26076 #. type: verbatim
26077 #: ../src/guestfs-actions.pod:2806
26078 #, no-wrap
26079 msgid ""
26080 " char *\n"
26081 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26082 "                               const char *root);\n"
26083 "\n"
26084 msgstr ""
26085
26086 #. type: textblock
26087 #: ../src/guestfs-actions.pod:2821
26088 msgid "(Added in 1.7.9)"
26089 msgstr ""
26090
26091 #. type: =head2
26092 #: ../src/guestfs-actions.pod:2823
26093 msgid "guestfs_inspect_get_icon"
26094 msgstr ""
26095
26096 #. type: verbatim
26097 #: ../src/guestfs-actions.pod:2825
26098 #, no-wrap
26099 msgid ""
26100 " char *\n"
26101 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26102 "                           const char *root,\n"
26103 "                           size_t *size_r,\n"
26104 "                           ...);\n"
26105 "\n"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:2836
26110 #, no-wrap
26111 msgid ""
26112 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26113 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26114 "\n"
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26119 #: ../src/guestfs-actions.pod:4982
26120 msgid "(Added in 1.11.12)"
26121 msgstr ""
26122
26123 #. type: =head2
26124 #: ../src/guestfs-actions.pod:2905
26125 msgid "guestfs_inspect_get_icon_va"
26126 msgstr ""
26127
26128 #. type: verbatim
26129 #: ../src/guestfs-actions.pod:2907
26130 #, no-wrap
26131 msgid ""
26132 " char *\n"
26133 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26134 "                              const char *root,\n"
26135 "                              size_t *size_r,\n"
26136 "                              va_list args);\n"
26137 "\n"
26138 msgstr ""
26139
26140 #. type: textblock
26141 #: ../src/guestfs-actions.pod:2913
26142 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26143 msgstr ""
26144
26145 #. type: =head2
26146 #: ../src/guestfs-actions.pod:2917
26147 msgid "guestfs_inspect_get_icon_argv"
26148 msgstr ""
26149
26150 #. type: verbatim
26151 #: ../src/guestfs-actions.pod:2919
26152 #, no-wrap
26153 msgid ""
26154 " char *\n"
26155 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26156 "                                const char *root,\n"
26157 "                                size_t *size_r,\n"
26158 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26159 "\n"
26160 msgstr ""
26161
26162 #. type: textblock
26163 #: ../src/guestfs-actions.pod:2925
26164 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../src/guestfs-actions.pod:2929
26169 msgid "guestfs_inspect_get_major_version"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../src/guestfs-actions.pod:2931
26174 #, no-wrap
26175 msgid ""
26176 " int\n"
26177 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26178 "                                    const char *root);\n"
26179 "\n"
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:2953
26184 msgid "guestfs_inspect_get_minor_version"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:2955
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26193 "                                    const char *root);\n"
26194 "\n"
26195 msgstr ""
26196
26197 #. type: textblock
26198 #: ../src/guestfs-actions.pod:2964
26199 msgid ""
26200 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26201 "C<guestfs_inspect_get_major_version>."
26202 msgstr ""
26203
26204 #. type: =head2
26205 #: ../src/guestfs-actions.pod:2971
26206 msgid "guestfs_inspect_get_mountpoints"
26207 msgstr ""
26208
26209 #. type: verbatim
26210 #: ../src/guestfs-actions.pod:2973
26211 #, no-wrap
26212 msgid ""
26213 " char **\n"
26214 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26215 "                                  const char *root);\n"
26216 "\n"
26217 msgstr ""
26218
26219 #. type: textblock
26220 #: ../src/guestfs-actions.pod:2994
26221 msgid ""
26222 "For operating systems like Windows which still use drive letters, this call "
26223 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26224 "information about the mapping of drive letters to partitions, see "
26225 "C<guestfs_inspect_get_drive_mappings>."
26226 msgstr ""
26227
26228 #. type: textblock
26229 #: ../src/guestfs-actions.pod:3000
26230 msgid ""
26231 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26232 "C<guestfs_inspect_get_filesystems>."
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:3011
26237 msgid "guestfs_inspect_get_package_format"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:3013
26242 #, no-wrap
26243 msgid ""
26244 " char *\n"
26245 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26246 "                                     const char *root);\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../src/guestfs-actions.pod:3017
26252 msgid ""
26253 "This function and C<guestfs_inspect_get_package_management> return the "
26254 "package format and package management tool used by the inspected operating "
26255 "system.  For example for Fedora these functions would return C<rpm> (package "
26256 "format) and C<yum> (package management)."
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26261 msgid "(Added in 1.7.5)"
26262 msgstr ""
26263
26264 #. type: =head2
26265 #: ../src/guestfs-actions.pod:3037
26266 msgid "guestfs_inspect_get_package_management"
26267 msgstr ""
26268
26269 #. type: verbatim
26270 #: ../src/guestfs-actions.pod:3039
26271 #, no-wrap
26272 msgid ""
26273 " char *\n"
26274 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26275 "                                         const char *root);\n"
26276 "\n"
26277 msgstr ""
26278
26279 #. type: textblock
26280 #: ../src/guestfs-actions.pod:3043
26281 msgid ""
26282 "C<guestfs_inspect_get_package_format> and this function return the package "
26283 "format and package management tool used by the inspected operating system.  "
26284 "For example for Fedora these functions would return C<rpm> (package format) "
26285 "and C<yum> (package management)."
26286 msgstr ""
26287
26288 #. type: =head2
26289 #: ../src/guestfs-actions.pod:3065
26290 msgid "guestfs_inspect_get_product_name"
26291 msgstr ""
26292
26293 #. type: verbatim
26294 #: ../src/guestfs-actions.pod:3067
26295 #, no-wrap
26296 msgid ""
26297 " char *\n"
26298 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26299 "                                   const char *root);\n"
26300 "\n"
26301 msgstr ""
26302
26303 #. type: =head2
26304 #: ../src/guestfs-actions.pod:3086
26305 msgid "guestfs_inspect_get_product_variant"
26306 msgstr ""
26307
26308 #. type: verbatim
26309 #: ../src/guestfs-actions.pod:3088
26310 #, no-wrap
26311 msgid ""
26312 " char *\n"
26313 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26314 "                                      const char *root);\n"
26315 "\n"
26316 msgstr ""
26317
26318 #. type: textblock
26319 #: ../src/guestfs-actions.pod:3111
26320 msgid ""
26321 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26322 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:3118
26327 msgid "(Added in 1.9.13)"
26328 msgstr ""
26329
26330 #. type: =head2
26331 #: ../src/guestfs-actions.pod:3120
26332 msgid "guestfs_inspect_get_roots"
26333 msgstr ""
26334
26335 #. type: verbatim
26336 #: ../src/guestfs-actions.pod:3122
26337 #, no-wrap
26338 msgid ""
26339 " char **\n"
26340 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26341 "\n"
26342 msgstr ""
26343
26344 #. type: textblock
26345 #: ../src/guestfs-actions.pod:3125
26346 msgid ""
26347 "This function is a convenient way to get the list of root devices, as "
26348 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26349 "the whole inspection process."
26350 msgstr ""
26351
26352 #. type: textblock
26353 #: ../src/guestfs-actions.pod:3129
26354 msgid ""
26355 "This returns an empty list if either no root devices were found or the "
26356 "caller has not called C<guestfs_inspect_os>."
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../src/guestfs-actions.pod:3138
26361 msgid "(Added in 1.7.3)"
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../src/guestfs-actions.pod:3140
26366 msgid "guestfs_inspect_get_type"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../src/guestfs-actions.pod:3142
26371 #, no-wrap
26372 msgid ""
26373 " char *\n"
26374 " guestfs_inspect_get_type (guestfs_h *g,\n"
26375 "                           const char *root);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: =head2
26380 #: ../src/guestfs-actions.pod:3179
26381 msgid "guestfs_inspect_get_windows_current_control_set"
26382 msgstr ""
26383
26384 #. type: verbatim
26385 #: ../src/guestfs-actions.pod:3181
26386 #, no-wrap
26387 msgid ""
26388 " char *\n"
26389 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26390 "                                                  const char *root);\n"
26391 "\n"
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../src/guestfs-actions.pod:3199
26396 msgid "guestfs_inspect_get_windows_systemroot"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../src/guestfs-actions.pod:3201
26401 #, no-wrap
26402 msgid ""
26403 " char *\n"
26404 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26405 "                                         const char *root);\n"
26406 "\n"
26407 msgstr ""
26408
26409 #. type: textblock
26410 #: ../src/guestfs-actions.pod:3217
26411 msgid "(Added in 1.5.25)"
26412 msgstr ""
26413
26414 #. type: =head2
26415 #: ../src/guestfs-actions.pod:3219
26416 msgid "guestfs_inspect_is_live"
26417 msgstr ""
26418
26419 #. type: verbatim
26420 #: ../src/guestfs-actions.pod:3221
26421 #, no-wrap
26422 msgid ""
26423 " int\n"
26424 " guestfs_inspect_is_live (guestfs_h *g,\n"
26425 "                          const char *root);\n"
26426 "\n"
26427 msgstr ""
26428
26429 #. type: textblock
26430 #: ../src/guestfs-actions.pod:3225
26431 msgid ""
26432 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26433 "disk), then this returns true if a live image was detected on the disk."
26434 msgstr ""
26435
26436 #. type: =head2
26437 #: ../src/guestfs-actions.pod:3235
26438 msgid "guestfs_inspect_is_multipart"
26439 msgstr ""
26440
26441 #. type: verbatim
26442 #: ../src/guestfs-actions.pod:3237
26443 #, no-wrap
26444 msgid ""
26445 " int\n"
26446 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26447 "                               const char *root);\n"
26448 "\n"
26449 msgstr ""
26450
26451 #. type: textblock
26452 #: ../src/guestfs-actions.pod:3241
26453 msgid ""
26454 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26455 "disk), then this returns true if the disk is part of a set."
26456 msgstr ""
26457
26458 #. type: =head2
26459 #: ../src/guestfs-actions.pod:3251
26460 msgid "guestfs_inspect_is_netinst"
26461 msgstr ""
26462
26463 #. type: verbatim
26464 #: ../src/guestfs-actions.pod:3253
26465 #, no-wrap
26466 msgid ""
26467 " int\n"
26468 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26469 "                             const char *root);\n"
26470 "\n"
26471 msgstr ""
26472
26473 #. type: textblock
26474 #: ../src/guestfs-actions.pod:3257
26475 msgid ""
26476 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26477 "disk), then this returns true if the disk is a network installer, ie. not a "
26478 "self-contained install CD but one which is likely to require network access "
26479 "to complete the install."
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:3269
26484 msgid "guestfs_inspect_list_applications"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:3271
26489 #, no-wrap
26490 msgid ""
26491 " struct guestfs_application_list *\n"
26492 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26493 "                                    const char *root);\n"
26494 "\n"
26495 msgstr ""
26496
26497 #. type: textblock
26498 #: ../src/guestfs-actions.pod:3277
26499 msgid ""
26500 "I<Note:> This call works differently from other parts of the inspection "
26501 "API.  You have to call C<guestfs_inspect_os>, then "
26502 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26503 "this.  Listing applications is a significantly more difficult operation "
26504 "which requires access to the full filesystem.  Also note that unlike the "
26505 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26506 "the libguestfs handle, this call actually reads parts of the mounted "
26507 "filesystems during the call."
26508 msgstr ""
26509
26510 #. type: textblock
26511 #: ../src/guestfs-actions.pod:3367
26512 msgid ""
26513 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26514 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26515 "after use>."
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:3371
26520 msgid "(Added in 1.7.8)"
26521 msgstr ""
26522
26523 #. type: =head2
26524 #: ../src/guestfs-actions.pod:3373
26525 msgid "guestfs_inspect_os"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../src/guestfs-actions.pod:3375
26530 #, no-wrap
26531 msgid ""
26532 " char **\n"
26533 " guestfs_inspect_os (guestfs_h *g);\n"
26534 "\n"
26535 msgstr ""
26536
26537 #. type: textblock
26538 #: ../src/guestfs-actions.pod:3391
26539 msgid ""
26540 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26541 "functions in order to query further information about each operating system, "
26542 "such as the name and version."
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../src/guestfs-actions.pod:3396
26547 msgid ""
26548 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26549 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26550 "the contents.  This should be called with no disks currently mounted.  The "
26551 "function may also use Augeas, so any existing Augeas handle will be closed."
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26556 #: ../src/guestfs-actions.pod:3821
26557 msgid "See also C<guestfs_list_filesystems>."
26558 msgstr ""
26559
26560 #. type: =head2
26561 #: ../src/guestfs-actions.pod:3416
26562 msgid "guestfs_is_blockdev"
26563 msgstr ""
26564
26565 #. type: verbatim
26566 #: ../src/guestfs-actions.pod:3418
26567 #, no-wrap
26568 msgid ""
26569 " int\n"
26570 " guestfs_is_blockdev (guestfs_h *g,\n"
26571 "                      const char *path);\n"
26572 "\n"
26573 msgstr ""
26574
26575 #. type: textblock
26576 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26577 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26578 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26579 #: ../src/guestfs-actions.pod:3586
26580 msgid "See also C<guestfs_stat>."
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26585 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26586 #: ../src/guestfs-actions.pod:3590
26587 msgid "(Added in 1.5.10)"
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:3431
26592 msgid "guestfs_is_busy"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:3433
26597 #, no-wrap
26598 msgid ""
26599 " int\n"
26600 " guestfs_is_busy (guestfs_h *g);\n"
26601 "\n"
26602 msgstr ""
26603
26604 #. type: =head2
26605 #: ../src/guestfs-actions.pod:3445
26606 msgid "guestfs_is_chardev"
26607 msgstr ""
26608
26609 #. type: verbatim
26610 #: ../src/guestfs-actions.pod:3447
26611 #, no-wrap
26612 msgid ""
26613 " int\n"
26614 " guestfs_is_chardev (guestfs_h *g,\n"
26615 "                     const char *path);\n"
26616 "\n"
26617 msgstr ""
26618
26619 #. type: =head2
26620 #: ../src/guestfs-actions.pod:3460
26621 msgid "guestfs_is_config"
26622 msgstr ""
26623
26624 #. type: verbatim
26625 #: ../src/guestfs-actions.pod:3462
26626 #, no-wrap
26627 msgid ""
26628 " int\n"
26629 " guestfs_is_config (guestfs_h *g);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:3474
26635 msgid "guestfs_is_dir"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:3476
26640 #, no-wrap
26641 msgid ""
26642 " int\n"
26643 " guestfs_is_dir (guestfs_h *g,\n"
26644 "                 const char *path);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:3490
26650 msgid "guestfs_is_fifo"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:3492
26655 #, no-wrap
26656 msgid ""
26657 " int\n"
26658 " guestfs_is_fifo (guestfs_h *g,\n"
26659 "                  const char *path);\n"
26660 "\n"
26661 msgstr ""
26662
26663 #. type: =head2
26664 #: ../src/guestfs-actions.pod:3505
26665 msgid "guestfs_is_file"
26666 msgstr ""
26667
26668 #. type: verbatim
26669 #: ../src/guestfs-actions.pod:3507
26670 #, no-wrap
26671 msgid ""
26672 " int\n"
26673 " guestfs_is_file (guestfs_h *g,\n"
26674 "                  const char *path);\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: =head2
26679 #: ../src/guestfs-actions.pod:3521
26680 msgid "guestfs_is_launching"
26681 msgstr ""
26682
26683 #. type: verbatim
26684 #: ../src/guestfs-actions.pod:3523
26685 #, no-wrap
26686 msgid ""
26687 " int\n"
26688 " guestfs_is_launching (guestfs_h *g);\n"
26689 "\n"
26690 msgstr ""
26691
26692 #. type: =head2
26693 #: ../src/guestfs-actions.pod:3535
26694 msgid "guestfs_is_lv"
26695 msgstr ""
26696
26697 #. type: verbatim
26698 #: ../src/guestfs-actions.pod:3537
26699 #, no-wrap
26700 msgid ""
26701 " int\n"
26702 " guestfs_is_lv (guestfs_h *g,\n"
26703 "                const char *device);\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:3548
26709 msgid "guestfs_is_ready"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:3550
26714 #, no-wrap
26715 msgid ""
26716 " int\n"
26717 " guestfs_is_ready (guestfs_h *g);\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:3562
26723 msgid "guestfs_is_socket"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:3564
26728 #, no-wrap
26729 msgid ""
26730 " int\n"
26731 " guestfs_is_socket (guestfs_h *g,\n"
26732 "                    const char *path);\n"
26733 "\n"
26734 msgstr ""
26735
26736 #. type: =head2
26737 #: ../src/guestfs-actions.pod:3577
26738 msgid "guestfs_is_symlink"
26739 msgstr ""
26740
26741 #. type: verbatim
26742 #: ../src/guestfs-actions.pod:3579
26743 #, no-wrap
26744 msgid ""
26745 " int\n"
26746 " guestfs_is_symlink (guestfs_h *g,\n"
26747 "                     const char *path);\n"
26748 "\n"
26749 msgstr ""
26750
26751 #. type: =head2
26752 #: ../src/guestfs-actions.pod:3592
26753 msgid "guestfs_is_zero"
26754 msgstr ""
26755
26756 #. type: verbatim
26757 #: ../src/guestfs-actions.pod:3594
26758 #, no-wrap
26759 msgid ""
26760 " int\n"
26761 " guestfs_is_zero (guestfs_h *g,\n"
26762 "                  const char *path);\n"
26763 "\n"
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26768 msgid "(Added in 1.11.8)"
26769 msgstr ""
26770
26771 #. type: =head2
26772 #: ../src/guestfs-actions.pod:3605
26773 msgid "guestfs_is_zero_device"
26774 msgstr ""
26775
26776 #. type: verbatim
26777 #: ../src/guestfs-actions.pod:3607
26778 #, no-wrap
26779 msgid ""
26780 " int\n"
26781 " guestfs_is_zero_device (guestfs_h *g,\n"
26782 "                         const char *device);\n"
26783 "\n"
26784 msgstr ""
26785
26786 #. type: =head2
26787 #: ../src/guestfs-actions.pod:3619
26788 msgid "guestfs_kill_subprocess"
26789 msgstr ""
26790
26791 #. type: verbatim
26792 #: ../src/guestfs-actions.pod:3621
26793 #, no-wrap
26794 msgid ""
26795 " int\n"
26796 " guestfs_kill_subprocess (guestfs_h *g);\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: =head2
26801 #: ../src/guestfs-actions.pod:3630
26802 msgid "guestfs_launch"
26803 msgstr ""
26804
26805 #. type: verbatim
26806 #: ../src/guestfs-actions.pod:3632
26807 #, no-wrap
26808 msgid ""
26809 " int\n"
26810 " guestfs_launch (guestfs_h *g);\n"
26811 "\n"
26812 msgstr ""
26813
26814 #. type: =head2
26815 #: ../src/guestfs-actions.pod:3650
26816 msgid "guestfs_lchown"
26817 msgstr ""
26818
26819 #. type: verbatim
26820 #: ../src/guestfs-actions.pod:3652
26821 #, no-wrap
26822 msgid ""
26823 " int\n"
26824 " guestfs_lchown (guestfs_h *g,\n"
26825 "                 int owner,\n"
26826 "                 int group,\n"
26827 "                 const char *path);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../src/guestfs-actions.pod:3658
26833 msgid ""
26834 "Change the file owner to C<owner> and group to C<group>.  This is like "
26835 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26836 "changed, not the target."
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../src/guestfs-actions.pod:3670
26841 msgid "guestfs_lgetxattr"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../src/guestfs-actions.pod:3672
26846 #, no-wrap
26847 msgid ""
26848 " char *\n"
26849 " guestfs_lgetxattr (guestfs_h *g,\n"
26850 "                    const char *path,\n"
26851 "                    const char *name,\n"
26852 "                    size_t *size_r);\n"
26853 "\n"
26854 msgstr ""
26855
26856 #. type: textblock
26857 #: ../src/guestfs-actions.pod:3692
26858 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26859 msgstr ""
26860
26861 #. type: =head2
26862 #: ../src/guestfs-actions.pod:3700
26863 msgid "guestfs_lgetxattrs"
26864 msgstr ""
26865
26866 #. type: verbatim
26867 #: ../src/guestfs-actions.pod:3702
26868 #, no-wrap
26869 msgid ""
26870 " struct guestfs_xattr_list *\n"
26871 " guestfs_lgetxattrs (guestfs_h *g,\n"
26872 "                     const char *path);\n"
26873 "\n"
26874 msgstr ""
26875
26876 #. type: textblock
26877 #: ../src/guestfs-actions.pod:3706
26878 msgid ""
26879 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26880 "then it returns the extended attributes of the link itself."
26881 msgstr ""
26882
26883 #. type: =head2
26884 #: ../src/guestfs-actions.pod:3716
26885 msgid "guestfs_list_9p"
26886 msgstr ""
26887
26888 #. type: verbatim
26889 #: ../src/guestfs-actions.pod:3718
26890 #, no-wrap
26891 msgid ""
26892 " char **\n"
26893 " guestfs_list_9p (guestfs_h *g);\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: =head2
26898 #: ../src/guestfs-actions.pod:3730
26899 msgid "guestfs_list_devices"
26900 msgstr ""
26901
26902 #. type: verbatim
26903 #: ../src/guestfs-actions.pod:3732
26904 #, no-wrap
26905 msgid ""
26906 " char **\n"
26907 " guestfs_list_devices (guestfs_h *g);\n"
26908 "\n"
26909 msgstr ""
26910
26911 #. type: =head2
26912 #: ../src/guestfs-actions.pod:3747
26913 msgid "guestfs_list_dm_devices"
26914 msgstr ""
26915
26916 #. type: verbatim
26917 #: ../src/guestfs-actions.pod:3749
26918 #, no-wrap
26919 msgid ""
26920 " char **\n"
26921 " guestfs_list_dm_devices (guestfs_h *g);\n"
26922 "\n"
26923 msgstr ""
26924
26925 #. type: textblock
26926 #: ../src/guestfs-actions.pod:3754
26927 msgid ""
26928 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26929 "previous call to C<guestfs_luks_open>."
26930 msgstr ""
26931
26932 #. type: textblock
26933 #: ../src/guestfs-actions.pod:3757
26934 msgid ""
26935 "Device mapper devices which correspond to logical volumes are I<not> "
26936 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26937 "volumes."
26938 msgstr ""
26939
26940 #. type: textblock
26941 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
26942 msgid "(Added in 1.11.15)"
26943 msgstr ""
26944
26945 #. type: =head2
26946 #: ../src/guestfs-actions.pod:3767
26947 msgid "guestfs_list_filesystems"
26948 msgstr ""
26949
26950 #. type: verbatim
26951 #: ../src/guestfs-actions.pod:3769
26952 #, no-wrap
26953 msgid ""
26954 " char **\n"
26955 " guestfs_list_filesystems (guestfs_h *g);\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: textblock
26960 #: ../src/guestfs-actions.pod:3789
26961 msgid ""
26962 "This command runs other libguestfs commands, which might include "
26963 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26964 "soon after launch and only when nothing is mounted."
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:3793
26969 msgid ""
26970 "Not all of the filesystems returned will be mountable.  In particular, swap "
26971 "partitions are returned in the list.  Also this command does not check that "
26972 "each filesystem found is valid and mountable, and some filesystems might be "
26973 "mountable but require special options.  Filesystems may not all belong to a "
26974 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26975 msgstr ""
26976
26977 #. type: textblock
26978 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
26979 msgid "(Added in 1.5.15)"
26980 msgstr ""
26981
26982 #. type: =head2
26983 #: ../src/guestfs-actions.pod:3809
26984 msgid "guestfs_list_partitions"
26985 msgstr "guestfs_list_partitions"
26986
26987 #. type: verbatim
26988 #: ../src/guestfs-actions.pod:3811
26989 #, no-wrap
26990 msgid ""
26991 " char **\n"
26992 " guestfs_list_partitions (guestfs_h *g);\n"
26993 "\n"
26994 msgstr ""
26995 " char **\n"
26996 " guestfs_list_partitions (guestfs_h *g);\n"
26997 "\n"
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:3818
27001 msgid ""
27002 "This does not return logical volumes.  For that you will need to call "
27003 "C<guestfs_lvs>."
27004 msgstr ""
27005
27006 #. type: =head2
27007 #: ../src/guestfs-actions.pod:3829
27008 msgid "guestfs_ll"
27009 msgstr "guestfs_ll"
27010
27011 #. type: verbatim
27012 #: ../src/guestfs-actions.pod:3831
27013 #, no-wrap
27014 msgid ""
27015 " char *\n"
27016 " guestfs_ll (guestfs_h *g,\n"
27017 "             const char *directory);\n"
27018 "\n"
27019 msgstr ""
27020 " char *\n"
27021 " guestfs_ll (guestfs_h *g,\n"
27022 "             const char *directory);\n"
27023 "\n"
27024
27025 #. type: =head2
27026 #: ../src/guestfs-actions.pod:3846
27027 msgid "guestfs_ln"
27028 msgstr "guestfs_ln"
27029
27030 #. type: verbatim
27031 #: ../src/guestfs-actions.pod:3848
27032 #, no-wrap
27033 msgid ""
27034 " int\n"
27035 " guestfs_ln (guestfs_h *g,\n"
27036 "             const char *target,\n"
27037 "             const char *linkname);\n"
27038 "\n"
27039 msgstr ""
27040 " int\n"
27041 " guestfs_ln (guestfs_h *g,\n"
27042 "             const char *target,\n"
27043 "             const char *linkname);\n"
27044 "\n"
27045
27046 #. type: =head2
27047 #: ../src/guestfs-actions.pod:3859
27048 msgid "guestfs_ln_f"
27049 msgstr "guestfs_ln_f"
27050
27051 #. type: verbatim
27052 #: ../src/guestfs-actions.pod:3861
27053 #, no-wrap
27054 msgid ""
27055 " int\n"
27056 " guestfs_ln_f (guestfs_h *g,\n"
27057 "               const char *target,\n"
27058 "               const char *linkname);\n"
27059 "\n"
27060 msgstr ""
27061 " int\n"
27062 " guestfs_ln_f (guestfs_h *g,\n"
27063 "               const char *target,\n"
27064 "               const char *linkname);\n"
27065 "\n"
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:3873
27069 msgid "guestfs_ln_s"
27070 msgstr "guestfs_ln_s"
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:3875
27074 #, no-wrap
27075 msgid ""
27076 " int\n"
27077 " guestfs_ln_s (guestfs_h *g,\n"
27078 "               const char *target,\n"
27079 "               const char *linkname);\n"
27080 "\n"
27081 msgstr ""
27082 " int\n"
27083 " guestfs_ln_s (guestfs_h *g,\n"
27084 "               const char *target,\n"
27085 "               const char *linkname);\n"
27086 "\n"
27087
27088 #. type: =head2
27089 #: ../src/guestfs-actions.pod:3886
27090 msgid "guestfs_ln_sf"
27091 msgstr "guestfs_ln_sf"
27092
27093 #. type: verbatim
27094 #: ../src/guestfs-actions.pod:3888
27095 #, no-wrap
27096 msgid ""
27097 " int\n"
27098 " guestfs_ln_sf (guestfs_h *g,\n"
27099 "                const char *target,\n"
27100 "                const char *linkname);\n"
27101 "\n"
27102 msgstr ""
27103 " int\n"
27104 " guestfs_ln_sf (guestfs_h *g,\n"
27105 "                const char *target,\n"
27106 "                const char *linkname);\n"
27107 "\n"
27108
27109 #. type: =head2
27110 #: ../src/guestfs-actions.pod:3900
27111 msgid "guestfs_lremovexattr"
27112 msgstr "guestfs_lremovexattr"
27113
27114 #. type: verbatim
27115 #: ../src/guestfs-actions.pod:3902
27116 #, no-wrap
27117 msgid ""
27118 " int\n"
27119 " guestfs_lremovexattr (guestfs_h *g,\n"
27120 "                       const char *xattr,\n"
27121 "                       const char *path);\n"
27122 "\n"
27123 msgstr ""
27124 " int\n"
27125 " guestfs_lremovexattr (guestfs_h *g,\n"
27126 "                       const char *xattr,\n"
27127 "                       const char *path);\n"
27128 "\n"
27129
27130 #. type: textblock
27131 #: ../src/guestfs-actions.pod:3907
27132 msgid ""
27133 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27134 "link, then it removes an extended attribute of the link itself."
27135 msgstr ""
27136
27137 #. type: =head2
27138 #: ../src/guestfs-actions.pod:3915
27139 msgid "guestfs_ls"
27140 msgstr "guestfs_ls"
27141
27142 #. type: verbatim
27143 #: ../src/guestfs-actions.pod:3917
27144 #, no-wrap
27145 msgid ""
27146 " char **\n"
27147 " guestfs_ls (guestfs_h *g,\n"
27148 "             const char *directory);\n"
27149 "\n"
27150 msgstr ""
27151 " char **\n"
27152 " guestfs_ls (guestfs_h *g,\n"
27153 "             const char *directory);\n"
27154 "\n"
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:3925
27158 msgid ""
27159 "This command is mostly useful for interactive sessions.  Programs should "
27160 "probably use C<guestfs_readdir> instead."
27161 msgstr ""
27162
27163 #. type: =head2
27164 #: ../src/guestfs-actions.pod:3934
27165 msgid "guestfs_lsetxattr"
27166 msgstr "guestfs_lsetxattr"
27167
27168 #. type: verbatim
27169 #: ../src/guestfs-actions.pod:3936
27170 #, no-wrap
27171 msgid ""
27172 " int\n"
27173 " guestfs_lsetxattr (guestfs_h *g,\n"
27174 "                    const char *xattr,\n"
27175 "                    const char *val,\n"
27176 "                    int vallen,\n"
27177 "                    const char *path);\n"
27178 "\n"
27179 msgstr ""
27180 " int\n"
27181 " guestfs_lsetxattr (guestfs_h *g,\n"
27182 "                    const char *xattr,\n"
27183 "                    const char *val,\n"
27184 "                    int vallen,\n"
27185 "                    const char *path);\n"
27186 "\n"
27187
27188 #. type: textblock
27189 #: ../src/guestfs-actions.pod:3943
27190 msgid ""
27191 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27192 "then it sets an extended attribute of the link itself."
27193 msgstr ""
27194
27195 #. type: =head2
27196 #: ../src/guestfs-actions.pod:3951
27197 msgid "guestfs_lstat"
27198 msgstr "guestfs_lstat"
27199
27200 #. type: verbatim
27201 #: ../src/guestfs-actions.pod:3953
27202 #, no-wrap
27203 msgid ""
27204 " struct guestfs_stat *\n"
27205 " guestfs_lstat (guestfs_h *g,\n"
27206 "                const char *path);\n"
27207 "\n"
27208 msgstr ""
27209 " struct guestfs_stat *\n"
27210 " guestfs_lstat (guestfs_h *g,\n"
27211 "                const char *path);\n"
27212 "\n"
27213
27214 #. type: textblock
27215 #: ../src/guestfs-actions.pod:3959
27216 msgid ""
27217 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27218 "link, then the link is stat-ed, not the file it refers to."
27219 msgstr ""
27220
27221 #. type: textblock
27222 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27223 msgid ""
27224 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27225 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27226 msgstr ""
27227
27228 #. type: textblock
27229 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27230 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27231 msgid "(Added in 0.9.2)"
27232 msgstr "(Додано у 0.9.2)"
27233
27234 #. type: =head2
27235 #: ../src/guestfs-actions.pod:3971
27236 msgid "guestfs_lstatlist"
27237 msgstr "guestfs_lstatlist"
27238
27239 #. type: verbatim
27240 #: ../src/guestfs-actions.pod:3973
27241 #, no-wrap
27242 msgid ""
27243 " struct guestfs_stat_list *\n"
27244 " guestfs_lstatlist (guestfs_h *g,\n"
27245 "                    const char *path,\n"
27246 "                    char *const *names);\n"
27247 "\n"
27248 msgstr ""
27249 " struct guestfs_stat_list *\n"
27250 " guestfs_lstatlist (guestfs_h *g,\n"
27251 "                    const char *path,\n"
27252 "                    char *const *names);\n"
27253 "\n"
27254
27255 #. type: textblock
27256 #: ../src/guestfs-actions.pod:3978
27257 msgid ""
27258 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27259 "files, where all files are in the directory C<path>.  C<names> is the list "
27260 "of files from this directory."
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../src/guestfs-actions.pod:3987
27265 msgid ""
27266 "This call is intended for programs that want to efficiently list a directory "
27267 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27268 "for a similarly efficient call for getting extended attributes.  Very long "
27269 "directory listings might cause the protocol message size to be exceeded, "
27270 "causing this call to fail.  The caller must split up such requests into "
27271 "smaller groups of names."
27272 msgstr ""
27273
27274 #. type: textblock
27275 #: ../src/guestfs-actions.pod:3995
27276 msgid ""
27277 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27278 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:4001
27283 msgid "guestfs_luks_add_key"
27284 msgstr "guestfs_luks_add_key"
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:4003
27288 #, no-wrap
27289 msgid ""
27290 " int\n"
27291 " guestfs_luks_add_key (guestfs_h *g,\n"
27292 "                       const char *device,\n"
27293 "                       const char *key,\n"
27294 "                       const char *newkey,\n"
27295 "                       int keyslot);\n"
27296 "\n"
27297 msgstr ""
27298 " int\n"
27299 " guestfs_luks_add_key (guestfs_h *g,\n"
27300 "                       const char *device,\n"
27301 "                       const char *key,\n"
27302 "                       const char *newkey,\n"
27303 "                       int keyslot);\n"
27304 "\n"
27305
27306 #. type: textblock
27307 #: ../src/guestfs-actions.pod:4015
27308 msgid ""
27309 "Note that if C<keyslot> already contains a key, then this command will "
27310 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27311 msgstr ""
27312
27313 #. type: textblock
27314 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27315 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27316 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27317 msgid ""
27318 "This function takes a key or passphrase parameter which could contain "
27319 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27320 "information."
27321 msgstr ""
27322
27323 #. type: textblock
27324 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27325 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27326 msgid "(Added in 1.5.2)"
27327 msgstr "(Додано у 1.5.2)"
27328
27329 #. type: =head2
27330 #: ../src/guestfs-actions.pod:4027
27331 msgid "guestfs_luks_close"
27332 msgstr "guestfs_luks_close"
27333
27334 #. type: verbatim
27335 #: ../src/guestfs-actions.pod:4029
27336 #, no-wrap
27337 msgid ""
27338 " int\n"
27339 " guestfs_luks_close (guestfs_h *g,\n"
27340 "                     const char *device);\n"
27341 "\n"
27342 msgstr ""
27343 " int\n"
27344 " guestfs_luks_close (guestfs_h *g,\n"
27345 "                     const char *device);\n"
27346 "\n"
27347
27348 #. type: textblock
27349 #: ../src/guestfs-actions.pod:4033
27350 msgid ""
27351 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27352 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27353 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27354 "underlying block device."
27355 msgstr ""
27356
27357 #. type: textblock
27358 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27359 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27360 #: ../src/guestfs-actions.pod:4260
27361 msgid "(Added in 1.5.1)"
27362 msgstr "(Додано у 1.5.1)"
27363
27364 #. type: =head2
27365 #: ../src/guestfs-actions.pod:4043
27366 msgid "guestfs_luks_format"
27367 msgstr "guestfs_luks_format"
27368
27369 #. type: verbatim
27370 #: ../src/guestfs-actions.pod:4045
27371 #, no-wrap
27372 msgid ""
27373 " int\n"
27374 " guestfs_luks_format (guestfs_h *g,\n"
27375 "                      const char *device,\n"
27376 "                      const char *key,\n"
27377 "                      int keyslot);\n"
27378 "\n"
27379 msgstr ""
27380 " int\n"
27381 " guestfs_luks_format (guestfs_h *g,\n"
27382 "                      const char *device,\n"
27383 "                      const char *key,\n"
27384 "                      int keyslot);\n"
27385 "\n"
27386
27387 #. type: =head2
27388 #: ../src/guestfs-actions.pod:4067
27389 msgid "guestfs_luks_format_cipher"
27390 msgstr "guestfs_luks_format_cipher"
27391
27392 #. type: verbatim
27393 #: ../src/guestfs-actions.pod:4069
27394 #, no-wrap
27395 msgid ""
27396 " int\n"
27397 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27398 "                             const char *device,\n"
27399 "                             const char *key,\n"
27400 "                             int keyslot,\n"
27401 "                             const char *cipher);\n"
27402 "\n"
27403 msgstr ""
27404 " int\n"
27405 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27406 "                             const char *device,\n"
27407 "                             const char *key,\n"
27408 "                             int keyslot,\n"
27409 "                             const char *cipher);\n"
27410 "\n"
27411
27412 #. type: textblock
27413 #: ../src/guestfs-actions.pod:4076
27414 msgid ""
27415 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27416 "set the C<cipher> used."
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:4090
27421 msgid "guestfs_luks_kill_slot"
27422 msgstr "guestfs_luks_kill_slot"
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:4092
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27430 "                         const char *device,\n"
27431 "                         const char *key,\n"
27432 "                         int keyslot);\n"
27433 "\n"
27434 msgstr ""
27435 " int\n"
27436 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27437 "                         const char *device,\n"
27438 "                         const char *key,\n"
27439 "                         int keyslot);\n"
27440 "\n"
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:4110
27444 msgid "guestfs_luks_open"
27445 msgstr "guestfs_luks_open"
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:4112
27449 #, no-wrap
27450 msgid ""
27451 " int\n"
27452 " guestfs_luks_open (guestfs_h *g,\n"
27453 "                    const char *device,\n"
27454 "                    const char *key,\n"
27455 "                    const char *mapname);\n"
27456 "\n"
27457 msgstr ""
27458 " int\n"
27459 " guestfs_luks_open (guestfs_h *g,\n"
27460 "                    const char *device,\n"
27461 "                    const char *key,\n"
27462 "                    const char *mapname);\n"
27463 "\n"
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:4130
27467 msgid ""
27468 "If this block device contains LVM volume groups, then calling "
27469 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27470 "visible."
27471 msgstr ""
27472
27473 #. type: textblock
27474 #: ../src/guestfs-actions.pod:4134
27475 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../src/guestfs-actions.pod:4145
27480 msgid "guestfs_luks_open_ro"
27481 msgstr "guestfs_luks_open_ro"
27482
27483 #. type: verbatim
27484 #: ../src/guestfs-actions.pod:4147
27485 #, no-wrap
27486 msgid ""
27487 " int\n"
27488 " guestfs_luks_open_ro (guestfs_h *g,\n"
27489 "                       const char *device,\n"
27490 "                       const char *key,\n"
27491 "                       const char *mapname);\n"
27492 "\n"
27493 msgstr ""
27494 " int\n"
27495 " guestfs_luks_open_ro (guestfs_h *g,\n"
27496 "                       const char *device,\n"
27497 "                       const char *key,\n"
27498 "                       const char *mapname);\n"
27499 "\n"
27500
27501 #. type: textblock
27502 #: ../src/guestfs-actions.pod:4153
27503 msgid ""
27504 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27505 "created."
27506 msgstr ""
27507
27508 #. type: =head2
27509 #: ../src/guestfs-actions.pod:4164
27510 msgid "guestfs_lvcreate"
27511 msgstr "guestfs_lvcreate"
27512
27513 #. type: verbatim
27514 #: ../src/guestfs-actions.pod:4166
27515 #, no-wrap
27516 msgid ""
27517 " int\n"
27518 " guestfs_lvcreate (guestfs_h *g,\n"
27519 "                   const char *logvol,\n"
27520 "                   const char *volgroup,\n"
27521 "                   int mbytes);\n"
27522 "\n"
27523 msgstr ""
27524 " int\n"
27525 " guestfs_lvcreate (guestfs_h *g,\n"
27526 "                   const char *logvol,\n"
27527 "                   const char *volgroup,\n"
27528 "                   int mbytes);\n"
27529 "\n"
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:4179
27533 msgid "guestfs_lvm_canonical_lv_name"
27534 msgstr "guestfs_lvm_canonical_lv_name"
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:4181
27538 #, no-wrap
27539 msgid ""
27540 " char *\n"
27541 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27542 "                                const char *lvname);\n"
27543 "\n"
27544 msgstr ""
27545 " char *\n"
27546 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27547 "                                const char *lvname);\n"
27548 "\n"
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:4192
27552 msgid "See also C<guestfs_is_lv>."
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:4197
27557 msgid "(Added in 1.5.24)"
27558 msgstr "(Додано у 1.5.24)"
27559
27560 #. type: =head2
27561 #: ../src/guestfs-actions.pod:4199
27562 msgid "guestfs_lvm_clear_filter"
27563 msgstr "guestfs_lvm_clear_filter"
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:4201
27567 #, no-wrap
27568 msgid ""
27569 " int\n"
27570 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27571 "\n"
27572 msgstr ""
27573 " int\n"
27574 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27575 "\n"
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:4204
27579 msgid ""
27580 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27581 "see every block device."
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:4214
27586 msgid "guestfs_lvm_remove_all"
27587 msgstr "guestfs_lvm_remove_all"
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:4216
27591 #, no-wrap
27592 msgid ""
27593 " int\n"
27594 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27595 "\n"
27596 msgstr ""
27597 " int\n"
27598 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27599 "\n"
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:4229
27603 msgid "guestfs_lvm_set_filter"
27604 msgstr "guestfs_lvm_set_filter"
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:4231
27608 #, no-wrap
27609 msgid ""
27610 " int\n"
27611 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27612 "                         char *const *devices);\n"
27613 "\n"
27614 msgstr ""
27615 " int\n"
27616 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27617 "                         char *const *devices);\n"
27618 "\n"
27619
27620 #. type: =head2
27621 #: ../src/guestfs-actions.pod:4262
27622 msgid "guestfs_lvremove"
27623 msgstr "guestfs_lvremove"
27624
27625 #. type: verbatim
27626 #: ../src/guestfs-actions.pod:4264
27627 #, no-wrap
27628 msgid ""
27629 " int\n"
27630 " guestfs_lvremove (guestfs_h *g,\n"
27631 "                   const char *device);\n"
27632 "\n"
27633 msgstr ""
27634 " int\n"
27635 " guestfs_lvremove (guestfs_h *g,\n"
27636 "                   const char *device);\n"
27637 "\n"
27638
27639 #. type: textblock
27640 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27641 #: ../src/guestfs-actions.pod:7513
27642 msgid "(Added in 1.0.13)"
27643 msgstr "(Додано у 1.0.13)"
27644
27645 #. type: =head2
27646 #: ../src/guestfs-actions.pod:4278
27647 msgid "guestfs_lvrename"
27648 msgstr "guestfs_lvrename"
27649
27650 #. type: verbatim
27651 #: ../src/guestfs-actions.pod:4280
27652 #, no-wrap
27653 msgid ""
27654 " int\n"
27655 " guestfs_lvrename (guestfs_h *g,\n"
27656 "                   const char *logvol,\n"
27657 "                   const char *newlogvol);\n"
27658 "\n"
27659 msgstr ""
27660 " int\n"
27661 " guestfs_lvrename (guestfs_h *g,\n"
27662 "                   const char *logvol,\n"
27663 "                   const char *newlogvol);\n"
27664 "\n"
27665
27666 #. type: textblock
27667 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27668 msgid "(Added in 1.0.83)"
27669 msgstr "(Додано у 1.0.83)"
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:4291
27673 msgid "guestfs_lvresize"
27674 msgstr "guestfs_lvresize"
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:4293
27678 #, no-wrap
27679 msgid ""
27680 " int\n"
27681 " guestfs_lvresize (guestfs_h *g,\n"
27682 "                   const char *device,\n"
27683 "                   int mbytes);\n"
27684 "\n"
27685 msgstr ""
27686 " int\n"
27687 " guestfs_lvresize (guestfs_h *g,\n"
27688 "                   const char *device,\n"
27689 "                   int mbytes);\n"
27690 "\n"
27691
27692 #. type: =head2
27693 #: ../src/guestfs-actions.pod:4306
27694 msgid "guestfs_lvresize_free"
27695 msgstr "guestfs_lvresize_free"
27696
27697 #. type: verbatim
27698 #: ../src/guestfs-actions.pod:4308
27699 #, no-wrap
27700 msgid ""
27701 " int\n"
27702 " guestfs_lvresize_free (guestfs_h *g,\n"
27703 "                        const char *lv,\n"
27704 "                        int percent);\n"
27705 "\n"
27706 msgstr ""
27707 " int\n"
27708 " guestfs_lvresize_free (guestfs_h *g,\n"
27709 "                        const char *lv,\n"
27710 "                        int percent);\n"
27711 "\n"
27712
27713 #. type: textblock
27714 #: ../src/guestfs-actions.pod:4321
27715 msgid "(Added in 1.3.3)"
27716 msgstr "(Додано у 1.3.3)"
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:4323
27720 msgid "guestfs_lvs"
27721 msgstr "guestfs_lvs"
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:4325
27725 #, no-wrap
27726 msgid ""
27727 " char **\n"
27728 " guestfs_lvs (guestfs_h *g);\n"
27729 "\n"
27730 msgstr ""
27731 " char **\n"
27732 " guestfs_lvs (guestfs_h *g);\n"
27733 "\n"
27734
27735 #. type: textblock
27736 #: ../src/guestfs-actions.pod:4334
27737 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27738 msgstr ""
27739
27740 #. type: =head2
27741 #: ../src/guestfs-actions.pod:4342
27742 msgid "guestfs_lvs_full"
27743 msgstr "guestfs_lvs_full"
27744
27745 #. type: verbatim
27746 #: ../src/guestfs-actions.pod:4344
27747 #, no-wrap
27748 msgid ""
27749 " struct guestfs_lvm_lv_list *\n"
27750 " guestfs_lvs_full (guestfs_h *g);\n"
27751 "\n"
27752 msgstr ""
27753 " struct guestfs_lvm_lv_list *\n"
27754 " guestfs_lvs_full (guestfs_h *g);\n"
27755 "\n"
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:4350
27759 msgid ""
27760 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27761 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:4356
27766 msgid "guestfs_lvuuid"
27767 msgstr "guestfs_lvuuid"
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:4358
27771 #, no-wrap
27772 msgid ""
27773 " char *\n"
27774 " guestfs_lvuuid (guestfs_h *g,\n"
27775 "                 const char *device);\n"
27776 "\n"
27777 msgstr ""
27778 " char *\n"
27779 " guestfs_lvuuid (guestfs_h *g,\n"
27780 "                 const char *device);\n"
27781 "\n"
27782
27783 #. type: =head2
27784 #: ../src/guestfs-actions.pod:4369
27785 msgid "guestfs_lxattrlist"
27786 msgstr "guestfs_lxattrlist"
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:4371
27790 #, no-wrap
27791 msgid ""
27792 " struct guestfs_xattr_list *\n"
27793 " guestfs_lxattrlist (guestfs_h *g,\n"
27794 "                     const char *path,\n"
27795 "                     char *const *names);\n"
27796 "\n"
27797 msgstr ""
27798 " struct guestfs_xattr_list *\n"
27799 " guestfs_lxattrlist (guestfs_h *g,\n"
27800 "                     const char *path,\n"
27801 "                     char *const *names);\n"
27802 "\n"
27803
27804 #. type: textblock
27805 #: ../src/guestfs-actions.pod:4390
27806 msgid ""
27807 "This call is intended for programs that want to efficiently list a directory "
27808 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27809 "a similarly efficient call for getting standard stats.  Very long directory "
27810 "listings might cause the protocol message size to be exceeded, causing this "
27811 "call to fail.  The caller must split up such requests into smaller groups of "
27812 "names."
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:4404
27817 msgid "guestfs_mkdir"
27818 msgstr "guestfs_mkdir"
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:4406
27822 #, no-wrap
27823 msgid ""
27824 " int\n"
27825 " guestfs_mkdir (guestfs_h *g,\n"
27826 "                const char *path);\n"
27827 "\n"
27828 msgstr ""
27829 " int\n"
27830 " guestfs_mkdir (guestfs_h *g,\n"
27831 "                const char *path);\n"
27832 "\n"
27833
27834 #. type: =head2
27835 #: ../src/guestfs-actions.pod:4416
27836 msgid "guestfs_mkdir_mode"
27837 msgstr "guestfs_mkdir_mode"
27838
27839 #. type: verbatim
27840 #: ../src/guestfs-actions.pod:4418
27841 #, no-wrap
27842 msgid ""
27843 " int\n"
27844 " guestfs_mkdir_mode (guestfs_h *g,\n"
27845 "                     const char *path,\n"
27846 "                     int mode);\n"
27847 "\n"
27848 msgstr ""
27849 " int\n"
27850 " guestfs_mkdir_mode (guestfs_h *g,\n"
27851 "                     const char *path,\n"
27852 "                     int mode);\n"
27853 "\n"
27854
27855 #. type: textblock
27856 #: ../src/guestfs-actions.pod:4430
27857 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27858 msgstr ""
27859
27860 #. type: =head2
27861 #: ../src/guestfs-actions.pod:4436
27862 msgid "guestfs_mkdir_p"
27863 msgstr "guestfs_mkdir_p"
27864
27865 #. type: verbatim
27866 #: ../src/guestfs-actions.pod:4438
27867 #, no-wrap
27868 msgid ""
27869 " int\n"
27870 " guestfs_mkdir_p (guestfs_h *g,\n"
27871 "                  const char *path);\n"
27872 "\n"
27873 msgstr ""
27874 " int\n"
27875 " guestfs_mkdir_p (guestfs_h *g,\n"
27876 "                  const char *path);\n"
27877 "\n"
27878
27879 #. type: =head2
27880 #: ../src/guestfs-actions.pod:4449
27881 msgid "guestfs_mkdtemp"
27882 msgstr "guestfs_mkdtemp"
27883
27884 #. type: verbatim
27885 #: ../src/guestfs-actions.pod:4451
27886 #, no-wrap
27887 msgid ""
27888 " char *\n"
27889 " guestfs_mkdtemp (guestfs_h *g,\n"
27890 "                  const char *template);\n"
27891 "\n"
27892 msgstr ""
27893 " char *\n"
27894 " guestfs_mkdtemp (guestfs_h *g,\n"
27895 "                  const char *template);\n"
27896 "\n"
27897
27898 #. type: =head2
27899 #: ../src/guestfs-actions.pod:4479
27900 msgid "guestfs_mke2fs_J"
27901 msgstr "guestfs_mke2fs_J"
27902
27903 #. type: verbatim
27904 #: ../src/guestfs-actions.pod:4481
27905 #, no-wrap
27906 msgid ""
27907 " int\n"
27908 " guestfs_mke2fs_J (guestfs_h *g,\n"
27909 "                   const char *fstype,\n"
27910 "                   int blocksize,\n"
27911 "                   const char *device,\n"
27912 "                   const char *journal);\n"
27913 "\n"
27914 msgstr ""
27915 " int\n"
27916 " guestfs_mke2fs_J (guestfs_h *g,\n"
27917 "                   const char *fstype,\n"
27918 "                   int blocksize,\n"
27919 "                   const char *device,\n"
27920 "                   const char *journal);\n"
27921 "\n"
27922
27923 #. type: textblock
27924 #: ../src/guestfs-actions.pod:4494
27925 msgid "See also C<guestfs_mke2journal>."
27926 msgstr ""
27927
27928 #. type: textblock
27929 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
27930 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
27931 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
27932 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
27933 msgid "(Added in 1.0.68)"
27934 msgstr "(Додано у 1.0.68)"
27935
27936 #. type: =head2
27937 #: ../src/guestfs-actions.pod:4500
27938 msgid "guestfs_mke2fs_JL"
27939 msgstr "guestfs_mke2fs_JL"
27940
27941 #. type: verbatim
27942 #: ../src/guestfs-actions.pod:4502
27943 #, no-wrap
27944 msgid ""
27945 " int\n"
27946 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27947 "                    const char *fstype,\n"
27948 "                    int blocksize,\n"
27949 "                    const char *device,\n"
27950 "                    const char *label);\n"
27951 "\n"
27952 msgstr ""
27953 " int\n"
27954 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27955 "                    const char *fstype,\n"
27956 "                    int blocksize,\n"
27957 "                    const char *device,\n"
27958 "                    const char *label);\n"
27959 "\n"
27960
27961 #. type: textblock
27962 #: ../src/guestfs-actions.pod:4512
27963 msgid "See also C<guestfs_mke2journal_L>."
27964 msgstr ""
27965
27966 #. type: =head2
27967 #: ../src/guestfs-actions.pod:4518
27968 msgid "guestfs_mke2fs_JU"
27969 msgstr "guestfs_mke2fs_JU"
27970
27971 #. type: verbatim
27972 #: ../src/guestfs-actions.pod:4520
27973 #, no-wrap
27974 msgid ""
27975 " int\n"
27976 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27977 "                    const char *fstype,\n"
27978 "                    int blocksize,\n"
27979 "                    const char *device,\n"
27980 "                    const char *uuid);\n"
27981 "\n"
27982 msgstr ""
27983 " int\n"
27984 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27985 "                    const char *fstype,\n"
27986 "                    int blocksize,\n"
27987 "                    const char *device,\n"
27988 "                    const char *uuid);\n"
27989 "\n"
27990
27991 #. type: textblock
27992 #: ../src/guestfs-actions.pod:4530
27993 msgid "See also C<guestfs_mke2journal_U>."
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../src/guestfs-actions.pod:4536
27998 msgid "guestfs_mke2journal"
27999 msgstr "guestfs_mke2journal"
28000
28001 #. type: verbatim
28002 #: ../src/guestfs-actions.pod:4538
28003 #, no-wrap
28004 msgid ""
28005 " int\n"
28006 " guestfs_mke2journal (guestfs_h *g,\n"
28007 "                      int blocksize,\n"
28008 "                      const char *device);\n"
28009 "\n"
28010 msgstr ""
28011 " int\n"
28012 " guestfs_mke2journal (guestfs_h *g,\n"
28013 "                      int blocksize,\n"
28014 "                      const char *device);\n"
28015 "\n"
28016
28017 #. type: =head2
28018 #: ../src/guestfs-actions.pod:4552
28019 msgid "guestfs_mke2journal_L"
28020 msgstr "guestfs_mke2journal_L"
28021
28022 #. type: verbatim
28023 #: ../src/guestfs-actions.pod:4554
28024 #, no-wrap
28025 msgid ""
28026 " int\n"
28027 " guestfs_mke2journal_L (guestfs_h *g,\n"
28028 "                        int blocksize,\n"
28029 "                        const char *label,\n"
28030 "                        const char *device);\n"
28031 "\n"
28032 msgstr ""
28033 " int\n"
28034 " guestfs_mke2journal_L (guestfs_h *g,\n"
28035 "                        int blocksize,\n"
28036 "                        const char *label,\n"
28037 "                        const char *device);\n"
28038 "\n"
28039
28040 #. type: =head2
28041 #: ../src/guestfs-actions.pod:4566
28042 msgid "guestfs_mke2journal_U"
28043 msgstr "guestfs_mke2journal_U"
28044
28045 #. type: verbatim
28046 #: ../src/guestfs-actions.pod:4568
28047 #, no-wrap
28048 msgid ""
28049 " int\n"
28050 " guestfs_mke2journal_U (guestfs_h *g,\n"
28051 "                        int blocksize,\n"
28052 "                        const char *uuid,\n"
28053 "                        const char *device);\n"
28054 "\n"
28055 msgstr ""
28056 " int\n"
28057 " guestfs_mke2journal_U (guestfs_h *g,\n"
28058 "                        int blocksize,\n"
28059 "                        const char *uuid,\n"
28060 "                        const char *device);\n"
28061 "\n"
28062
28063 #. type: =head2
28064 #: ../src/guestfs-actions.pod:4580
28065 msgid "guestfs_mkfifo"
28066 msgstr "guestfs_mkfifo"
28067
28068 #. type: verbatim
28069 #: ../src/guestfs-actions.pod:4582
28070 #, no-wrap
28071 msgid ""
28072 " int\n"
28073 " guestfs_mkfifo (guestfs_h *g,\n"
28074 "                 int mode,\n"
28075 "                 const char *path);\n"
28076 "\n"
28077 msgstr ""
28078 " int\n"
28079 " guestfs_mkfifo (guestfs_h *g,\n"
28080 "                 int mode,\n"
28081 "                 const char *path);\n"
28082 "\n"
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:4587
28086 msgid ""
28087 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28088 "is just a convenient wrapper around C<guestfs_mknod>."
28089 msgstr ""
28090
28091 #. type: =head2
28092 #: ../src/guestfs-actions.pod:4597
28093 msgid "guestfs_mkfs"
28094 msgstr "guestfs_mkfs"
28095
28096 #. type: verbatim
28097 #: ../src/guestfs-actions.pod:4599
28098 #, no-wrap
28099 msgid ""
28100 " int\n"
28101 " guestfs_mkfs (guestfs_h *g,\n"
28102 "               const char *fstype,\n"
28103 "               const char *device);\n"
28104 "\n"
28105 msgstr ""
28106 " int\n"
28107 " guestfs_mkfs (guestfs_h *g,\n"
28108 "               const char *fstype,\n"
28109 "               const char *device);\n"
28110 "\n"
28111
28112 #. type: =head2
28113 #: ../src/guestfs-actions.pod:4612
28114 msgid "guestfs_mkfs_b"
28115 msgstr "guestfs_mkfs_b"
28116
28117 #. type: verbatim
28118 #: ../src/guestfs-actions.pod:4614
28119 #, no-wrap
28120 msgid ""
28121 " int\n"
28122 " guestfs_mkfs_b (guestfs_h *g,\n"
28123 "                 const char *fstype,\n"
28124 "                 int blocksize,\n"
28125 "                 const char *device);\n"
28126 "\n"
28127 msgstr ""
28128 " int\n"
28129 " guestfs_mkfs_b (guestfs_h *g,\n"
28130 "                 const char *fstype,\n"
28131 "                 int blocksize,\n"
28132 "                 const char *device);\n"
28133 "\n"
28134
28135 #. type: textblock
28136 #: ../src/guestfs-actions.pod:4620
28137 msgid ""
28138 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28139 "block size of the resulting filesystem.  Supported block sizes depend on the "
28140 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../src/guestfs-actions.pod:4630
28145 msgid ""
28146 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
28147 "call instead."
28148 msgstr ""
28149
28150 #. type: =head2
28151 #: ../src/guestfs-actions.pod:4639
28152 msgid "guestfs_mkfs_opts"
28153 msgstr "guestfs_mkfs_opts"
28154
28155 #. type: verbatim
28156 #: ../src/guestfs-actions.pod:4641
28157 #, no-wrap
28158 msgid ""
28159 " int\n"
28160 " guestfs_mkfs_opts (guestfs_h *g,\n"
28161 "                    const char *fstype,\n"
28162 "                    const char *device,\n"
28163 "                    ...);\n"
28164 "\n"
28165 msgstr ""
28166 " int\n"
28167 " guestfs_mkfs_opts (guestfs_h *g,\n"
28168 "                    const char *fstype,\n"
28169 "                    const char *device,\n"
28170 "                    ...);\n"
28171 "\n"
28172
28173 #. type: verbatim
28174 #: ../src/guestfs-actions.pod:4652
28175 #, no-wrap
28176 msgid ""
28177 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28178 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28179 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28180 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28181 "\n"
28182 msgstr ""
28183
28184 #. type: textblock
28185 #: ../src/guestfs-actions.pod:4700
28186 msgid "(Added in 1.7.19)"
28187 msgstr "(Додано у 1.7.19)"
28188
28189 #. type: =head2
28190 #: ../src/guestfs-actions.pod:4702
28191 msgid "guestfs_mkfs_opts_va"
28192 msgstr "guestfs_mkfs_opts_va"
28193
28194 #. type: verbatim
28195 #: ../src/guestfs-actions.pod:4704
28196 #, no-wrap
28197 msgid ""
28198 " int\n"
28199 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28200 "                       const char *fstype,\n"
28201 "                       const char *device,\n"
28202 "                       va_list args);\n"
28203 "\n"
28204 msgstr ""
28205 " int\n"
28206 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28207 "                       const char *fstype,\n"
28208 "                       const char *device,\n"
28209 "                       va_list args);\n"
28210 "\n"
28211
28212 #. type: textblock
28213 #: ../src/guestfs-actions.pod:4710
28214 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28215 msgstr ""
28216
28217 #. type: =head2
28218 #: ../src/guestfs-actions.pod:4714
28219 msgid "guestfs_mkfs_opts_argv"
28220 msgstr "guestfs_mkfs_opts_argv"
28221
28222 #. type: verbatim
28223 #: ../src/guestfs-actions.pod:4716
28224 #, no-wrap
28225 msgid ""
28226 " int\n"
28227 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28228 "                         const char *fstype,\n"
28229 "                         const char *device,\n"
28230 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28231 "\n"
28232 msgstr ""
28233 " int\n"
28234 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28235 "                         const char *fstype,\n"
28236 "                         const char *device,\n"
28237 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28238 "\n"
28239
28240 #. type: textblock
28241 #: ../src/guestfs-actions.pod:4722
28242 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28243 msgstr ""
28244
28245 #. type: =head2
28246 #: ../src/guestfs-actions.pod:4726
28247 msgid "guestfs_mkmountpoint"
28248 msgstr "guestfs_mkmountpoint"
28249
28250 #. type: verbatim
28251 #: ../src/guestfs-actions.pod:4728
28252 #, no-wrap
28253 msgid ""
28254 " int\n"
28255 " guestfs_mkmountpoint (guestfs_h *g,\n"
28256 "                       const char *exemptpath);\n"
28257 "\n"
28258 msgstr ""
28259 " int\n"
28260 " guestfs_mkmountpoint (guestfs_h *g,\n"
28261 "                       const char *exemptpath);\n"
28262 "\n"
28263
28264 #. type: textblock
28265 #: ../src/guestfs-actions.pod:4732
28266 msgid ""
28267 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28268 "that can be used to create extra mountpoints before mounting the first "
28269 "filesystem."
28270 msgstr ""
28271
28272 #. type: textblock
28273 #: ../src/guestfs-actions.pod:4756
28274 msgid ""
28275 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28276 "may get unexpected errors if you try to mix these calls.  It is safest to "
28277 "manually unmount filesystems and remove mountpoints after use."
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../src/guestfs-actions.pod:4760
28282 msgid ""
28283 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28284 "first, so for this to work for manual mountpoints, you must ensure that the "
28285 "innermost mountpoints have the longest pathnames, as in the example code "
28286 "above."
28287 msgstr ""
28288
28289 #. type: textblock
28290 #: ../src/guestfs-actions.pod:4767
28291 msgid ""
28292 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28293 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28294 "can also trigger these issues."
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28299 #: ../src/guestfs-actions.pod:6099
28300 msgid "(Added in 1.0.62)"
28301 msgstr "(Додано у 1.0.62)"
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:4775
28305 msgid "guestfs_mknod"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:4777
28310 #, no-wrap
28311 msgid ""
28312 " int\n"
28313 " guestfs_mknod (guestfs_h *g,\n"
28314 "                int mode,\n"
28315 "                int devmajor,\n"
28316 "                int devminor,\n"
28317 "                const char *path);\n"
28318 "\n"
28319 msgstr ""
28320
28321 #. type: textblock
28322 #: ../src/guestfs-actions.pod:4792
28323 msgid ""
28324 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28325 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28326 "regular file).  These constants are available in the standard Linux header "
28327 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28328 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28329 "the appropriate constant for you."
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:4806
28334 msgid "guestfs_mknod_b"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:4808
28339 #, no-wrap
28340 msgid ""
28341 " int\n"
28342 " guestfs_mknod_b (guestfs_h *g,\n"
28343 "                  int mode,\n"
28344 "                  int devmajor,\n"
28345 "                  int devminor,\n"
28346 "                  const char *path);\n"
28347 "\n"
28348 msgstr ""
28349
28350 #. type: textblock
28351 #: ../src/guestfs-actions.pod:4815
28352 msgid ""
28353 "This call creates a block device node called C<path> with mode C<mode> and "
28354 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28355 "wrapper around C<guestfs_mknod>."
28356 msgstr ""
28357
28358 #. type: =head2
28359 #: ../src/guestfs-actions.pod:4825
28360 msgid "guestfs_mknod_c"
28361 msgstr ""
28362
28363 #. type: verbatim
28364 #: ../src/guestfs-actions.pod:4827
28365 #, no-wrap
28366 msgid ""
28367 " int\n"
28368 " guestfs_mknod_c (guestfs_h *g,\n"
28369 "                  int mode,\n"
28370 "                  int devmajor,\n"
28371 "                  int devminor,\n"
28372 "                  const char *path);\n"
28373 "\n"
28374 msgstr ""
28375
28376 #. type: textblock
28377 #: ../src/guestfs-actions.pod:4834
28378 msgid ""
28379 "This call creates a char device node called C<path> with mode C<mode> and "
28380 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28381 "wrapper around C<guestfs_mknod>."
28382 msgstr ""
28383
28384 #. type: =head2
28385 #: ../src/guestfs-actions.pod:4844
28386 msgid "guestfs_mkswap"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:4846
28391 #, no-wrap
28392 msgid ""
28393 " int\n"
28394 " guestfs_mkswap (guestfs_h *g,\n"
28395 "                 const char *device);\n"
28396 "\n"
28397 msgstr ""
28398
28399 #. type: =head2
28400 #: ../src/guestfs-actions.pod:4856
28401 msgid "guestfs_mkswap_L"
28402 msgstr ""
28403
28404 #. type: verbatim
28405 #: ../src/guestfs-actions.pod:4858
28406 #, no-wrap
28407 msgid ""
28408 " int\n"
28409 " guestfs_mkswap_L (guestfs_h *g,\n"
28410 "                   const char *label,\n"
28411 "                   const char *device);\n"
28412 "\n"
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:4873
28417 msgid "guestfs_mkswap_U"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:4875
28422 #, no-wrap
28423 msgid ""
28424 " int\n"
28425 " guestfs_mkswap_U (guestfs_h *g,\n"
28426 "                   const char *uuid,\n"
28427 "                   const char *device);\n"
28428 "\n"
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:4886
28433 msgid "guestfs_mkswap_file"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:4888
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_mkswap_file (guestfs_h *g,\n"
28442 "                      const char *path);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:4894
28448 msgid ""
28449 "This command just writes a swap file signature to an existing file.  To "
28450 "create the file itself, use something like C<guestfs_fallocate>."
28451 msgstr ""
28452
28453 #. type: =head2
28454 #: ../src/guestfs-actions.pod:4901
28455 msgid "guestfs_modprobe"
28456 msgstr ""
28457
28458 #. type: verbatim
28459 #: ../src/guestfs-actions.pod:4903
28460 #, no-wrap
28461 msgid ""
28462 " int\n"
28463 " guestfs_modprobe (guestfs_h *g,\n"
28464 "                   const char *modulename);\n"
28465 "\n"
28466 msgstr ""
28467
28468 #. type: =head2
28469 #: ../src/guestfs-actions.pod:4916
28470 msgid "guestfs_mount"
28471 msgstr ""
28472
28473 #. type: verbatim
28474 #: ../src/guestfs-actions.pod:4918
28475 #, no-wrap
28476 msgid ""
28477 " int\n"
28478 " guestfs_mount (guestfs_h *g,\n"
28479 "                const char *device,\n"
28480 "                const char *mountpoint);\n"
28481 "\n"
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../src/guestfs-actions.pod:4937
28486 msgid ""
28487 "B<Important note:> When you use this call, the filesystem options C<sync> "
28488 "and C<noatime> are set implicitly.  This was originally done because we "
28489 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28490 "very large negative performance impact and negligible effect on "
28491 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28492 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28493 "(use an empty string for the first parameter if you don't want any options)."
28494 msgstr ""
28495
28496 #. type: textblock
28497 #: ../src/guestfs-actions.pod:4949
28498 msgid ""
28499 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
28500 "call instead."
28501 msgstr ""
28502
28503 #. type: =head2
28504 #: ../src/guestfs-actions.pod:4958
28505 msgid "guestfs_mount_9p"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../src/guestfs-actions.pod:4960
28510 #, no-wrap
28511 msgid ""
28512 " int\n"
28513 " guestfs_mount_9p (guestfs_h *g,\n"
28514 "                   const char *mounttag,\n"
28515 "                   const char *mountpoint,\n"
28516 "                   ...);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:4971
28522 #, no-wrap
28523 msgid ""
28524 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28525 "\n"
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:4984
28530 msgid "guestfs_mount_9p_va"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:4986
28535 #, no-wrap
28536 msgid ""
28537 " int\n"
28538 " guestfs_mount_9p_va (guestfs_h *g,\n"
28539 "                      const char *mounttag,\n"
28540 "                      const char *mountpoint,\n"
28541 "                      va_list args);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:4992
28547 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:4996
28552 msgid "guestfs_mount_9p_argv"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:4998
28557 #, no-wrap
28558 msgid ""
28559 " int\n"
28560 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28561 "                        const char *mounttag,\n"
28562 "                        const char *mountpoint,\n"
28563 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: textblock
28568 #: ../src/guestfs-actions.pod:5004
28569 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:5008
28574 msgid "guestfs_mount_loop"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:5010
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_mount_loop (guestfs_h *g,\n"
28583 "                     const char *file,\n"
28584 "                     const char *mountpoint);\n"
28585 "\n"
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:5023
28590 msgid "guestfs_mount_options"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:5025
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_mount_options (guestfs_h *g,\n"
28599 "                        const char *options,\n"
28600 "                        const char *device,\n"
28601 "                        const char *mountpoint);\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../src/guestfs-actions.pod:5031
28607 msgid ""
28608 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28609 "the mount options as for the L<mount(8)> I<-o> flag."
28610 msgstr ""
28611
28612 #. type: textblock
28613 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28614 #: ../src/guestfs-actions.pod:5072
28615 msgid "(Added in 1.0.10)"
28616 msgstr ""
28617
28618 #. type: =head2
28619 #: ../src/guestfs-actions.pod:5043
28620 msgid "guestfs_mount_ro"
28621 msgstr ""
28622
28623 #. type: verbatim
28624 #: ../src/guestfs-actions.pod:5045
28625 #, no-wrap
28626 msgid ""
28627 " int\n"
28628 " guestfs_mount_ro (guestfs_h *g,\n"
28629 "                   const char *device,\n"
28630 "                   const char *mountpoint);\n"
28631 "\n"
28632 msgstr ""
28633
28634 #. type: textblock
28635 #: ../src/guestfs-actions.pod:5050
28636 msgid ""
28637 "This is the same as the C<guestfs_mount> command, but it mounts the "
28638 "filesystem with the read-only (I<-o ro>) flag."
28639 msgstr ""
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:5057
28643 msgid "guestfs_mount_vfs"
28644 msgstr ""
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:5059
28648 #, no-wrap
28649 msgid ""
28650 " int\n"
28651 " guestfs_mount_vfs (guestfs_h *g,\n"
28652 "                    const char *options,\n"
28653 "                    const char *vfstype,\n"
28654 "                    const char *device,\n"
28655 "                    const char *mountpoint);\n"
28656 "\n"
28657 msgstr ""
28658
28659 #. type: textblock
28660 #: ../src/guestfs-actions.pod:5066
28661 msgid ""
28662 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28663 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28664 "t> flags."
28665 msgstr ""
28666
28667 #. type: =head2
28668 #: ../src/guestfs-actions.pod:5074
28669 msgid "guestfs_mountpoints"
28670 msgstr ""
28671
28672 #. type: verbatim
28673 #: ../src/guestfs-actions.pod:5076
28674 #, no-wrap
28675 msgid ""
28676 " char **\n"
28677 " guestfs_mountpoints (guestfs_h *g);\n"
28678 "\n"
28679 msgstr ""
28680
28681 #. type: textblock
28682 #: ../src/guestfs-actions.pod:5079
28683 msgid ""
28684 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28685 "devices.  This one returns a hash table (map) of device name to directory "
28686 "where the device is mounted."
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:5091
28691 msgid "guestfs_mounts"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:5093
28696 #, no-wrap
28697 msgid ""
28698 " char **\n"
28699 " guestfs_mounts (guestfs_h *g);\n"
28700 "\n"
28701 msgstr ""
28702
28703 #. type: textblock
28704 #: ../src/guestfs-actions.pod:5101
28705 msgid "See also: C<guestfs_mountpoints>"
28706 msgstr ""
28707
28708 #. type: =head2
28709 #: ../src/guestfs-actions.pod:5109
28710 msgid "guestfs_mv"
28711 msgstr ""
28712
28713 #. type: verbatim
28714 #: ../src/guestfs-actions.pod:5111
28715 #, no-wrap
28716 msgid ""
28717 " int\n"
28718 " guestfs_mv (guestfs_h *g,\n"
28719 "             const char *src,\n"
28720 "             const char *dest);\n"
28721 "\n"
28722 msgstr ""
28723
28724 #. type: =head2
28725 #: ../src/guestfs-actions.pod:5123
28726 msgid "guestfs_ntfs_3g_probe"
28727 msgstr ""
28728
28729 #. type: verbatim
28730 #: ../src/guestfs-actions.pod:5125
28731 #, no-wrap
28732 msgid ""
28733 " int\n"
28734 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28735 "                        int rw,\n"
28736 "                        const char *device);\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:5144
28742 msgid "(Added in 1.0.43)"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:5146
28747 msgid "guestfs_ntfsresize"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:5148
28752 #, no-wrap
28753 msgid ""
28754 " int\n"
28755 " guestfs_ntfsresize (guestfs_h *g,\n"
28756 "                     const char *device);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5257
28762 msgid ""
28763 "This function is deprecated.  In new code, use the L</"
28764 "guestfs_ntfsresize_opts> call instead."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:5176
28769 msgid "guestfs_ntfsresize_opts"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:5178
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28778 "                          const char *device,\n"
28779 "                          ...);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../src/guestfs-actions.pod:5188
28785 #, no-wrap
28786 msgid ""
28787 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28788 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:5208
28794 msgid ""
28795 "After the resize operation, the filesystem is always marked as requiring a "
28796 "consistency check (for safety).  You have to boot into Windows to perform "
28797 "this check and clear this condition.  If you I<don't> set the C<force> "
28798 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28799 "times on a single filesystem without booting into Windows between each "
28800 "resize."
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:5223
28805 msgid "guestfs_ntfsresize_opts_va"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:5225
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28814 "                             const char *device,\n"
28815 "                             va_list args);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: textblock
28820 #: ../src/guestfs-actions.pod:5230
28821 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28822 msgstr ""
28823
28824 #. type: =head2
28825 #: ../src/guestfs-actions.pod:5234
28826 msgid "guestfs_ntfsresize_opts_argv"
28827 msgstr ""
28828
28829 #. type: verbatim
28830 #: ../src/guestfs-actions.pod:5236
28831 #, no-wrap
28832 msgid ""
28833 " int\n"
28834 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28835 "                               const char *device,\n"
28836 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28837 "\n"
28838 msgstr ""
28839
28840 #. type: textblock
28841 #: ../src/guestfs-actions.pod:5241
28842 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28843 msgstr ""
28844
28845 #. type: =head2
28846 #: ../src/guestfs-actions.pod:5245
28847 msgid "guestfs_ntfsresize_size"
28848 msgstr ""
28849
28850 #. type: verbatim
28851 #: ../src/guestfs-actions.pod:5247
28852 #, no-wrap
28853 msgid ""
28854 " int\n"
28855 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28856 "                          const char *device,\n"
28857 "                          int64_t size);\n"
28858 "\n"
28859 msgstr ""
28860
28861 #. type: textblock
28862 #: ../src/guestfs-actions.pod:5252
28863 msgid ""
28864 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28865 "to specify the new size (in bytes) explicitly."
28866 msgstr ""
28867
28868 #. type: textblock
28869 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
28870 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
28871 #: ../src/guestfs-actions.pod:7670
28872 msgid "(Added in 1.3.14)"
28873 msgstr ""
28874
28875 #. type: =head2
28876 #: ../src/guestfs-actions.pod:5266
28877 msgid "guestfs_part_add"
28878 msgstr ""
28879
28880 #. type: verbatim
28881 #: ../src/guestfs-actions.pod:5268
28882 #, no-wrap
28883 msgid ""
28884 " int\n"
28885 " guestfs_part_add (guestfs_h *g,\n"
28886 "                   const char *device,\n"
28887 "                   const char *prlogex,\n"
28888 "                   int64_t startsect,\n"
28889 "                   int64_t endsect);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: textblock
28894 #: ../src/guestfs-actions.pod:5275
28895 msgid ""
28896 "This command adds a partition to C<device>.  If there is no partition table "
28897 "on the device, call C<guestfs_part_init> first."
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:5287
28902 msgid ""
28903 "Creating a partition which covers the whole disk is not so easy.  Use "
28904 "C<guestfs_part_disk> to do that."
28905 msgstr ""
28906
28907 #. type: textblock
28908 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
28909 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
28910 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
28911 #: ../src/guestfs-actions.pod:5564
28912 msgid "(Added in 1.0.78)"
28913 msgstr ""
28914
28915 #. type: =head2
28916 #: ../src/guestfs-actions.pod:5294
28917 msgid "guestfs_part_del"
28918 msgstr ""
28919
28920 #. type: verbatim
28921 #: ../src/guestfs-actions.pod:5296
28922 #, no-wrap
28923 msgid ""
28924 " int\n"
28925 " guestfs_part_del (guestfs_h *g,\n"
28926 "                   const char *device,\n"
28927 "                   int partnum);\n"
28928 "\n"
28929 msgstr ""
28930
28931 #. type: =head2
28932 #: ../src/guestfs-actions.pod:5311
28933 msgid "guestfs_part_disk"
28934 msgstr ""
28935
28936 #. type: verbatim
28937 #: ../src/guestfs-actions.pod:5313
28938 #, no-wrap
28939 msgid ""
28940 " int\n"
28941 " guestfs_part_disk (guestfs_h *g,\n"
28942 "                    const char *device,\n"
28943 "                    const char *parttype);\n"
28944 "\n"
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../src/guestfs-actions.pod:5318
28949 msgid ""
28950 "This command is simply a combination of C<guestfs_part_init> followed by "
28951 "C<guestfs_part_add> to create a single primary partition covering the whole "
28952 "disk."
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../src/guestfs-actions.pod:5322
28957 msgid ""
28958 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28959 "possible values are described in C<guestfs_part_init>."
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:5332
28964 msgid "guestfs_part_get_bootable"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:5334
28969 #, no-wrap
28970 msgid ""
28971 " int\n"
28972 " guestfs_part_get_bootable (guestfs_h *g,\n"
28973 "                            const char *device,\n"
28974 "                            int partnum);\n"
28975 "\n"
28976 msgstr ""
28977
28978 #. type: textblock
28979 #: ../src/guestfs-actions.pod:5342
28980 msgid "See also C<guestfs_part_set_bootable>."
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:5348
28985 msgid "guestfs_part_get_mbr_id"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:5350
28990 #, no-wrap
28991 msgid ""
28992 " int\n"
28993 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28994 "                          const char *device,\n"
28995 "                          int partnum);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29001 msgid ""
29002 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29003 "undefined results for other partition table types (see "
29004 "C<guestfs_part_get_parttype>)."
29005 msgstr ""
29006
29007 #. type: =head2
29008 #: ../src/guestfs-actions.pod:5366
29009 msgid "guestfs_part_get_parttype"
29010 msgstr ""
29011
29012 #. type: verbatim
29013 #: ../src/guestfs-actions.pod:5368
29014 #, no-wrap
29015 msgid ""
29016 " char *\n"
29017 " guestfs_part_get_parttype (guestfs_h *g,\n"
29018 "                            const char *device);\n"
29019 "\n"
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:5375
29024 msgid ""
29025 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29026 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29027 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29028 msgstr ""
29029
29030 #. type: =head2
29031 #: ../src/guestfs-actions.pod:5385
29032 msgid "guestfs_part_init"
29033 msgstr ""
29034
29035 #. type: verbatim
29036 #: ../src/guestfs-actions.pod:5387
29037 #, no-wrap
29038 msgid ""
29039 " int\n"
29040 " guestfs_part_init (guestfs_h *g,\n"
29041 "                    const char *device,\n"
29042 "                    const char *parttype);\n"
29043 "\n"
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:5396
29048 msgid ""
29049 "Initially there are no partitions.  Following this, you should call "
29050 "C<guestfs_part_add> for each partition required."
29051 msgstr ""
29052
29053 #. type: =head2
29054 #: ../src/guestfs-actions.pod:5469
29055 msgid "guestfs_part_list"
29056 msgstr "guestfs_part_list"
29057
29058 #. type: verbatim
29059 #: ../src/guestfs-actions.pod:5471
29060 #, no-wrap
29061 msgid ""
29062 " struct guestfs_partition_list *\n"
29063 " guestfs_part_list (guestfs_h *g,\n"
29064 "                    const char *device);\n"
29065 "\n"
29066 msgstr ""
29067 " struct guestfs_partition_list *\n"
29068 " guestfs_part_list (guestfs_h *g,\n"
29069 "                    const char *device);\n"
29070 "\n"
29071
29072 #. type: textblock
29073 #: ../src/guestfs-actions.pod:5488
29074 msgid ""
29075 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29076 "the device's sector size, see C<guestfs_blockdev_getss>."
29077 msgstr ""
29078
29079 #. type: textblock
29080 #: ../src/guestfs-actions.pod:5501
29081 msgid ""
29082 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29083 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29084 "use>."
29085 msgstr ""
29086
29087 #. type: =head2
29088 #: ../src/guestfs-actions.pod:5507
29089 msgid "guestfs_part_set_bootable"
29090 msgstr ""
29091
29092 #. type: verbatim
29093 #: ../src/guestfs-actions.pod:5509
29094 #, no-wrap
29095 msgid ""
29096 " int\n"
29097 " guestfs_part_set_bootable (guestfs_h *g,\n"
29098 "                            const char *device,\n"
29099 "                            int partnum,\n"
29100 "                            int bootable);\n"
29101 "\n"
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:5526
29106 msgid "guestfs_part_set_mbr_id"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:5528
29111 #, no-wrap
29112 msgid ""
29113 " int\n"
29114 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29115 "                          const char *device,\n"
29116 "                          int partnum,\n"
29117 "                          int idbyte);\n"
29118 "\n"
29119 msgstr ""
29120
29121 #. type: =head2
29122 #: ../src/guestfs-actions.pod:5548
29123 msgid "guestfs_part_set_name"
29124 msgstr ""
29125
29126 #. type: verbatim
29127 #: ../src/guestfs-actions.pod:5550
29128 #, no-wrap
29129 msgid ""
29130 " int\n"
29131 " guestfs_part_set_name (guestfs_h *g,\n"
29132 "                        const char *device,\n"
29133 "                        int partnum,\n"
29134 "                        const char *name);\n"
29135 "\n"
29136 msgstr ""
29137
29138 #. type: =head2
29139 #: ../src/guestfs-actions.pod:5566
29140 msgid "guestfs_part_to_dev"
29141 msgstr ""
29142
29143 #. type: verbatim
29144 #: ../src/guestfs-actions.pod:5568
29145 #, no-wrap
29146 msgid ""
29147 " char *\n"
29148 " guestfs_part_to_dev (guestfs_h *g,\n"
29149 "                      const char *partition);\n"
29150 "\n"
29151 msgstr ""
29152
29153 #. type: textblock
29154 #: ../src/guestfs-actions.pod:5576
29155 msgid ""
29156 "The named partition must exist, for example as a string returned from "
29157 "C<guestfs_list_partitions>."
29158 msgstr ""
29159
29160 #. type: =head2
29161 #: ../src/guestfs-actions.pod:5584
29162 msgid "guestfs_ping_daemon"
29163 msgstr ""
29164
29165 #. type: verbatim
29166 #: ../src/guestfs-actions.pod:5586
29167 #, no-wrap
29168 msgid ""
29169 " int\n"
29170 " guestfs_ping_daemon (guestfs_h *g);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:5598
29176 msgid "guestfs_pread"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:5600
29181 #, no-wrap
29182 msgid ""
29183 " char *\n"
29184 " guestfs_pread (guestfs_h *g,\n"
29185 "                const char *path,\n"
29186 "                int count,\n"
29187 "                int64_t offset,\n"
29188 "                size_t *size_r);\n"
29189 "\n"
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:5613
29194 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29195 msgstr ""
29196
29197 #. type: =head2
29198 #: ../src/guestfs-actions.pod:5624
29199 msgid "guestfs_pread_device"
29200 msgstr ""
29201
29202 #. type: verbatim
29203 #: ../src/guestfs-actions.pod:5626
29204 #, no-wrap
29205 msgid ""
29206 " char *\n"
29207 " guestfs_pread_device (guestfs_h *g,\n"
29208 "                       const char *device,\n"
29209 "                       int count,\n"
29210 "                       int64_t offset,\n"
29211 "                       size_t *size_r);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: textblock
29216 #: ../src/guestfs-actions.pod:5639
29217 msgid "See also C<guestfs_pread>."
29218 msgstr ""
29219
29220 #. type: textblock
29221 #: ../src/guestfs-actions.pod:5648
29222 msgid "(Added in 1.5.21)"
29223 msgstr ""
29224
29225 #. type: =head2
29226 #: ../src/guestfs-actions.pod:5650
29227 msgid "guestfs_pvcreate"
29228 msgstr ""
29229
29230 #. type: verbatim
29231 #: ../src/guestfs-actions.pod:5652
29232 #, no-wrap
29233 msgid ""
29234 " int\n"
29235 " guestfs_pvcreate (guestfs_h *g,\n"
29236 "                   const char *device);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:5664
29242 msgid "guestfs_pvremove"
29243 msgstr ""
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:5666
29247 #, no-wrap
29248 msgid ""
29249 " int\n"
29250 " guestfs_pvremove (guestfs_h *g,\n"
29251 "                   const char *device);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:5681
29257 msgid "guestfs_pvresize"
29258 msgstr ""
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:5683
29262 #, no-wrap
29263 msgid ""
29264 " int\n"
29265 " guestfs_pvresize (guestfs_h *g,\n"
29266 "                   const char *device);\n"
29267 "\n"
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:5694
29272 msgid "guestfs_pvresize_size"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:5696
29277 #, no-wrap
29278 msgid ""
29279 " int\n"
29280 " guestfs_pvresize_size (guestfs_h *g,\n"
29281 "                        const char *device,\n"
29282 "                        int64_t size);\n"
29283 "\n"
29284 msgstr ""
29285
29286 #. type: textblock
29287 #: ../src/guestfs-actions.pod:5701
29288 msgid ""
29289 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29290 "specify the new size (in bytes) explicitly."
29291 msgstr ""
29292
29293 #. type: =head2
29294 #: ../src/guestfs-actions.pod:5708
29295 msgid "guestfs_pvs"
29296 msgstr ""
29297
29298 #. type: verbatim
29299 #: ../src/guestfs-actions.pod:5710
29300 #, no-wrap
29301 msgid ""
29302 " char **\n"
29303 " guestfs_pvs (guestfs_h *g);\n"
29304 "\n"
29305 msgstr ""
29306
29307 #. type: textblock
29308 #: ../src/guestfs-actions.pod:5719
29309 msgid "See also C<guestfs_pvs_full>."
29310 msgstr ""
29311
29312 #. type: =head2
29313 #: ../src/guestfs-actions.pod:5727
29314 msgid "guestfs_pvs_full"
29315 msgstr ""
29316
29317 #. type: verbatim
29318 #: ../src/guestfs-actions.pod:5729
29319 #, no-wrap
29320 msgid ""
29321 " struct guestfs_lvm_pv_list *\n"
29322 " guestfs_pvs_full (guestfs_h *g);\n"
29323 "\n"
29324 msgstr ""
29325
29326 #. type: textblock
29327 #: ../src/guestfs-actions.pod:5735
29328 msgid ""
29329 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29330 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:5741
29335 msgid "guestfs_pvuuid"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:5743
29340 #, no-wrap
29341 msgid ""
29342 " char *\n"
29343 " guestfs_pvuuid (guestfs_h *g,\n"
29344 "                 const char *device);\n"
29345 "\n"
29346 msgstr ""
29347
29348 #. type: =head2
29349 #: ../src/guestfs-actions.pod:5754
29350 msgid "guestfs_pwrite"
29351 msgstr ""
29352
29353 #. type: verbatim
29354 #: ../src/guestfs-actions.pod:5756
29355 #, no-wrap
29356 msgid ""
29357 " int\n"
29358 " guestfs_pwrite (guestfs_h *g,\n"
29359 "                 const char *path,\n"
29360 "                 const char *content,\n"
29361 "                 size_t content_size,\n"
29362 "                 int64_t offset);\n"
29363 "\n"
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../src/guestfs-actions.pod:5772
29368 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29369 msgstr ""
29370
29371 #. type: =head2
29372 #: ../src/guestfs-actions.pod:5781
29373 msgid "guestfs_pwrite_device"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../src/guestfs-actions.pod:5783
29378 #, no-wrap
29379 msgid ""
29380 " int\n"
29381 " guestfs_pwrite_device (guestfs_h *g,\n"
29382 "                        const char *device,\n"
29383 "                        const char *content,\n"
29384 "                        size_t content_size,\n"
29385 "                        int64_t offset);\n"
29386 "\n"
29387 msgstr ""
29388
29389 #. type: textblock
29390 #: ../src/guestfs-actions.pod:5798
29391 msgid "See also C<guestfs_pwrite>."
29392 msgstr ""
29393
29394 #. type: textblock
29395 #: ../src/guestfs-actions.pod:5805
29396 msgid "(Added in 1.5.20)"
29397 msgstr ""
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:5807
29401 msgid "guestfs_read_file"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:5809
29406 #, no-wrap
29407 msgid ""
29408 " char *\n"
29409 " guestfs_read_file (guestfs_h *g,\n"
29410 "                    const char *path,\n"
29411 "                    size_t *size_r);\n"
29412 "\n"
29413 msgstr ""
29414
29415 #. type: textblock
29416 #: ../src/guestfs-actions.pod:5817
29417 msgid ""
29418 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29419 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29420 "function is limited in the total size of file that can be handled."
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-actions.pod:5829
29425 msgid "(Added in 1.0.63)"
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:5831
29430 msgid "guestfs_read_lines"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:5833
29435 #, no-wrap
29436 msgid ""
29437 " char **\n"
29438 " guestfs_read_lines (guestfs_h *g,\n"
29439 "                     const char *path);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: textblock
29444 #: ../src/guestfs-actions.pod:5842
29445 msgid ""
29446 "Note that this function cannot correctly handle binary files (specifically, "
29447 "files containing C<\\0> character which is treated as end of line).  For "
29448 "those you need to use the C<guestfs_read_file> function which has a more "
29449 "complex interface."
29450 msgstr ""
29451
29452 #. type: =head2
29453 #: ../src/guestfs-actions.pod:5853
29454 msgid "guestfs_readdir"
29455 msgstr ""
29456
29457 #. type: verbatim
29458 #: ../src/guestfs-actions.pod:5855
29459 #, no-wrap
29460 msgid ""
29461 " struct guestfs_dirent_list *\n"
29462 " guestfs_readdir (guestfs_h *g,\n"
29463 "                  const char *dir);\n"
29464 "\n"
29465 msgstr ""
29466
29467 #. type: textblock
29468 #: ../src/guestfs-actions.pod:5909
29469 msgid ""
29470 "This function is primarily intended for use by programs.  To get a simple "
29471 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29472 "consumption, use C<guestfs_ll>."
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:5913
29477 msgid ""
29478 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29479 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29480 msgstr ""
29481
29482 #. type: =head2
29483 #: ../src/guestfs-actions.pod:5919
29484 msgid "guestfs_readlink"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-actions.pod:5921
29489 #, no-wrap
29490 msgid ""
29491 " char *\n"
29492 " guestfs_readlink (guestfs_h *g,\n"
29493 "                   const char *path);\n"
29494 "\n"
29495 msgstr ""
29496
29497 #. type: =head2
29498 #: ../src/guestfs-actions.pod:5932
29499 msgid "guestfs_readlinklist"
29500 msgstr ""
29501
29502 #. type: verbatim
29503 #: ../src/guestfs-actions.pod:5934
29504 #, no-wrap
29505 msgid ""
29506 " char **\n"
29507 " guestfs_readlinklist (guestfs_h *g,\n"
29508 "                       const char *path,\n"
29509 "                       char *const *names);\n"
29510 "\n"
29511 msgstr ""
29512
29513 #. type: =head2
29514 #: ../src/guestfs-actions.pod:5967
29515 msgid "guestfs_realpath"
29516 msgstr ""
29517
29518 #. type: verbatim
29519 #: ../src/guestfs-actions.pod:5969
29520 #, no-wrap
29521 msgid ""
29522 " char *\n"
29523 " guestfs_realpath (guestfs_h *g,\n"
29524 "                   const char *path);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: =head2
29529 #: ../src/guestfs-actions.pod:5981
29530 msgid "guestfs_removexattr"
29531 msgstr ""
29532
29533 #. type: verbatim
29534 #: ../src/guestfs-actions.pod:5983
29535 #, no-wrap
29536 msgid ""
29537 " int\n"
29538 " guestfs_removexattr (guestfs_h *g,\n"
29539 "                      const char *xattr,\n"
29540 "                      const char *path);\n"
29541 "\n"
29542 msgstr ""
29543
29544 #. type: textblock
29545 #: ../src/guestfs-actions.pod:5991
29546 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29547 msgstr ""
29548
29549 #. type: =head2
29550 #: ../src/guestfs-actions.pod:5997
29551 msgid "guestfs_resize2fs"
29552 msgstr ""
29553
29554 #. type: verbatim
29555 #: ../src/guestfs-actions.pod:5999
29556 #, no-wrap
29557 msgid ""
29558 " int\n"
29559 " guestfs_resize2fs (guestfs_h *g,\n"
29560 "                    const char *device);\n"
29561 "\n"
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../src/guestfs-actions.pod:6006
29566 msgid ""
29567 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29568 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29569 "sometimes gives an error about this and sometimes not.  In any case, it is "
29570 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29571 msgstr ""
29572
29573 #. type: =head2
29574 #: ../src/guestfs-actions.pod:6016
29575 msgid "guestfs_resize2fs_M"
29576 msgstr ""
29577
29578 #. type: verbatim
29579 #: ../src/guestfs-actions.pod:6018
29580 #, no-wrap
29581 msgid ""
29582 " int\n"
29583 " guestfs_resize2fs_M (guestfs_h *g,\n"
29584 "                      const char *device);\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../src/guestfs-actions.pod:6022
29590 msgid ""
29591 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29592 "resized to its minimum size.  This works like the I<-M> option to the "
29593 "C<resize2fs> command."
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:6026
29598 msgid ""
29599 "To get the resulting size of the filesystem you should call "
29600 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29601 "These two numbers, multiplied together, give the resulting size of the "
29602 "minimal filesystem in bytes."
29603 msgstr ""
29604
29605 #. type: =head2
29606 #: ../src/guestfs-actions.pod:6035
29607 msgid "guestfs_resize2fs_size"
29608 msgstr ""
29609
29610 #. type: verbatim
29611 #: ../src/guestfs-actions.pod:6037
29612 #, no-wrap
29613 msgid ""
29614 " int\n"
29615 " guestfs_resize2fs_size (guestfs_h *g,\n"
29616 "                         const char *device,\n"
29617 "                         int64_t size);\n"
29618 "\n"
29619 msgstr ""
29620
29621 #. type: textblock
29622 #: ../src/guestfs-actions.pod:6042
29623 msgid ""
29624 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29625 "to specify the new size (in bytes) explicitly."
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:6049
29630 msgid "guestfs_rm"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:6051
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_rm (guestfs_h *g,\n"
29639 "             const char *path);\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: =head2
29644 #: ../src/guestfs-actions.pod:6061
29645 msgid "guestfs_rm_rf"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../src/guestfs-actions.pod:6063
29650 #, no-wrap
29651 msgid ""
29652 " int\n"
29653 " guestfs_rm_rf (guestfs_h *g,\n"
29654 "                const char *path);\n"
29655 "\n"
29656 msgstr ""
29657
29658 #. type: =head2
29659 #: ../src/guestfs-actions.pod:6075
29660 msgid "guestfs_rmdir"
29661 msgstr ""
29662
29663 #. type: verbatim
29664 #: ../src/guestfs-actions.pod:6077
29665 #, no-wrap
29666 msgid ""
29667 " int\n"
29668 " guestfs_rmdir (guestfs_h *g,\n"
29669 "                const char *path);\n"
29670 "\n"
29671 msgstr ""
29672
29673 #. type: =head2
29674 #: ../src/guestfs-actions.pod:6087
29675 msgid "guestfs_rmmountpoint"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-actions.pod:6089
29680 #, no-wrap
29681 msgid ""
29682 " int\n"
29683 " guestfs_rmmountpoint (guestfs_h *g,\n"
29684 "                       const char *exemptpath);\n"
29685 "\n"
29686 msgstr ""
29687
29688 #. type: textblock
29689 #: ../src/guestfs-actions.pod:6093
29690 msgid ""
29691 "This calls removes a mountpoint that was previously created with "
29692 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:6101
29697 msgid "guestfs_scrub_device"
29698 msgstr ""
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:6103
29702 #, no-wrap
29703 msgid ""
29704 " int\n"
29705 " guestfs_scrub_device (guestfs_h *g,\n"
29706 "                       const char *device);\n"
29707 "\n"
29708 msgstr ""
29709
29710 #. type: textblock
29711 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29712 #: ../src/guestfs-actions.pod:6155
29713 msgid "(Added in 1.0.52)"
29714 msgstr ""
29715
29716 #. type: =head2
29717 #: ../src/guestfs-actions.pod:6120
29718 msgid "guestfs_scrub_file"
29719 msgstr ""
29720
29721 #. type: verbatim
29722 #: ../src/guestfs-actions.pod:6122
29723 #, no-wrap
29724 msgid ""
29725 " int\n"
29726 " guestfs_scrub_file (guestfs_h *g,\n"
29727 "                     const char *file);\n"
29728 "\n"
29729 msgstr ""
29730
29731 #. type: =head2
29732 #: ../src/guestfs-actions.pod:6138
29733 msgid "guestfs_scrub_freespace"
29734 msgstr ""
29735
29736 #. type: verbatim
29737 #: ../src/guestfs-actions.pod:6140
29738 #, no-wrap
29739 msgid ""
29740 " int\n"
29741 " guestfs_scrub_freespace (guestfs_h *g,\n"
29742 "                          const char *dir);\n"
29743 "\n"
29744 msgstr ""
29745
29746 #. type: textblock
29747 #: ../src/guestfs-actions.pod:6144
29748 msgid ""
29749 "This command creates the directory C<dir> and then fills it with files until "
29750 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29751 "and deletes them.  The intention is to scrub any free space on the partition "
29752 "containing C<dir>."
29753 msgstr ""
29754
29755 #. type: =head2
29756 #: ../src/guestfs-actions.pod:6157
29757 msgid "guestfs_set_append"
29758 msgstr ""
29759
29760 #. type: verbatim
29761 #: ../src/guestfs-actions.pod:6159
29762 #, no-wrap
29763 msgid ""
29764 " int\n"
29765 " guestfs_set_append (guestfs_h *g,\n"
29766 "                     const char *append);\n"
29767 "\n"
29768 msgstr ""
29769
29770 #. type: =head2
29771 #: ../src/guestfs-actions.pod:6176
29772 msgid "guestfs_set_attach_method"
29773 msgstr ""
29774
29775 #. type: verbatim
29776 #: ../src/guestfs-actions.pod:6178
29777 #, no-wrap
29778 msgid ""
29779 " int\n"
29780 " guestfs_set_attach_method (guestfs_h *g,\n"
29781 "                            const char *attachmethod);\n"
29782 "\n"
29783 msgstr ""
29784
29785 #. type: =head2
29786 #: ../src/guestfs-actions.pod:6206
29787 msgid "guestfs_set_autosync"
29788 msgstr ""
29789
29790 #. type: verbatim
29791 #: ../src/guestfs-actions.pod:6208
29792 #, no-wrap
29793 msgid ""
29794 " int\n"
29795 " guestfs_set_autosync (guestfs_h *g,\n"
29796 "                       int autosync);\n"
29797 "\n"
29798 msgstr ""
29799
29800 #. type: =head2
29801 #: ../src/guestfs-actions.pod:6224
29802 msgid "guestfs_set_direct"
29803 msgstr ""
29804
29805 #. type: verbatim
29806 #: ../src/guestfs-actions.pod:6226
29807 #, no-wrap
29808 msgid ""
29809 " int\n"
29810 " guestfs_set_direct (guestfs_h *g,\n"
29811 "                     int direct);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: textblock
29816 #: ../src/guestfs-actions.pod:6234
29817 msgid ""
29818 "One consequence of this is that log messages aren't caught by the library "
29819 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29820 "stdout."
29821 msgstr ""
29822
29823 #. type: =head2
29824 #: ../src/guestfs-actions.pod:6247
29825 msgid "guestfs_set_e2label"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-actions.pod:6249
29830 #, no-wrap
29831 msgid ""
29832 " int\n"
29833 " guestfs_set_e2label (guestfs_h *g,\n"
29834 "                      const char *device,\n"
29835 "                      const char *label);\n"
29836 "\n"
29837 msgstr ""
29838
29839 #. type: textblock
29840 #: ../src/guestfs-actions.pod:6258
29841 msgid ""
29842 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29843 "the existing label on a filesystem."
29844 msgstr ""
29845
29846 #. type: =head2
29847 #: ../src/guestfs-actions.pod:6265
29848 msgid "guestfs_set_e2uuid"
29849 msgstr ""
29850
29851 #. type: verbatim
29852 #: ../src/guestfs-actions.pod:6267
29853 #, no-wrap
29854 msgid ""
29855 " int\n"
29856 " guestfs_set_e2uuid (guestfs_h *g,\n"
29857 "                     const char *device,\n"
29858 "                     const char *uuid);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:6277
29864 msgid ""
29865 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29866 "the existing UUID of a filesystem."
29867 msgstr ""
29868
29869 #. type: =head2
29870 #: ../src/guestfs-actions.pod:6284
29871 msgid "guestfs_set_memsize"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-actions.pod:6286
29876 #, no-wrap
29877 msgid ""
29878 " int\n"
29879 " guestfs_set_memsize (guestfs_h *g,\n"
29880 "                      int memsize);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:6290
29886 msgid ""
29887 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29888 "This only has any effect if called before C<guestfs_launch>."
29889 msgstr ""
29890
29891 #. type: =head2
29892 #: ../src/guestfs-actions.pod:6305
29893 msgid "guestfs_set_network"
29894 msgstr ""
29895
29896 #. type: verbatim
29897 #: ../src/guestfs-actions.pod:6307
29898 #, no-wrap
29899 msgid ""
29900 " int\n"
29901 " guestfs_set_network (guestfs_h *g,\n"
29902 "                      int network);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: textblock
29907 #: ../src/guestfs-actions.pod:6317
29908 msgid ""
29909 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29910 "effect."
29911 msgstr ""
29912
29913 #. type: =head2
29914 #: ../src/guestfs-actions.pod:6324
29915 msgid "guestfs_set_path"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-actions.pod:6326
29920 #, no-wrap
29921 msgid ""
29922 " int\n"
29923 " guestfs_set_path (guestfs_h *g,\n"
29924 "                   const char *searchpath);\n"
29925 "\n"
29926 msgstr ""
29927
29928 #. type: =head2
29929 #: ../src/guestfs-actions.pod:6341
29930 msgid "guestfs_set_pgroup"
29931 msgstr ""
29932
29933 #. type: verbatim
29934 #: ../src/guestfs-actions.pod:6343
29935 #, no-wrap
29936 msgid ""
29937 " int\n"
29938 " guestfs_set_pgroup (guestfs_h *g,\n"
29939 "                     int pgroup);\n"
29940 "\n"
29941 msgstr ""
29942
29943 #. type: =head2
29944 #: ../src/guestfs-actions.pod:6360
29945 msgid "guestfs_set_qemu"
29946 msgstr ""
29947
29948 #. type: verbatim
29949 #: ../src/guestfs-actions.pod:6362
29950 #, no-wrap
29951 msgid ""
29952 " int\n"
29953 " guestfs_set_qemu (guestfs_h *g,\n"
29954 "                   const char *qemu);\n"
29955 "\n"
29956 msgstr ""
29957
29958 #. type: =head2
29959 #: ../src/guestfs-actions.pod:6388
29960 msgid "guestfs_set_recovery_proc"
29961 msgstr ""
29962
29963 #. type: verbatim
29964 #: ../src/guestfs-actions.pod:6390
29965 #, no-wrap
29966 msgid ""
29967 " int\n"
29968 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29969 "                            int recoveryproc);\n"
29970 "\n"
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-actions.pod:6394
29975 msgid ""
29976 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29977 "not create a recovery process.  The purpose of the recovery process is to "
29978 "stop runaway qemu processes in the case where the main program aborts "
29979 "abruptly."
29980 msgstr ""
29981
29982 #. type: textblock
29983 #: ../src/guestfs-actions.pod:6399
29984 msgid ""
29985 "This only has any effect if called before C<guestfs_launch>, and the default "
29986 "is true."
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:6412
29991 msgid "guestfs_set_selinux"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:6414
29996 #, no-wrap
29997 msgid ""
29998 " int\n"
29999 " guestfs_set_selinux (guestfs_h *g,\n"
30000 "                      int selinux);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: =head2
30005 #: ../src/guestfs-actions.pod:6431
30006 msgid "guestfs_set_trace"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-actions.pod:6433
30011 #, no-wrap
30012 msgid ""
30013 " int\n"
30014 " guestfs_set_trace (guestfs_h *g,\n"
30015 "                    int trace);\n"
30016 "\n"
30017 msgstr ""
30018
30019 #. type: textblock
30020 #: ../src/guestfs-actions.pod:6447
30021 msgid ""
30022 "Trace messages are normally sent to C<stderr>, unless you register a "
30023 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30024 msgstr ""
30025
30026 #. type: =head2
30027 #: ../src/guestfs-actions.pod:6455
30028 msgid "guestfs_set_verbose"
30029 msgstr ""
30030
30031 #. type: verbatim
30032 #: ../src/guestfs-actions.pod:6457
30033 #, no-wrap
30034 msgid ""
30035 " int\n"
30036 " guestfs_set_verbose (guestfs_h *g,\n"
30037 "                      int verbose);\n"
30038 "\n"
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:6466
30043 msgid ""
30044 "Verbose messages are normally sent to C<stderr>, unless you register a "
30045 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:6474
30050 msgid "guestfs_setcon"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:6476
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_setcon (guestfs_h *g,\n"
30059 "                 const char *context);\n"
30060 "\n"
30061 msgstr ""
30062
30063 #. type: =head2
30064 #: ../src/guestfs-actions.pod:6489
30065 msgid "guestfs_setxattr"
30066 msgstr ""
30067
30068 #. type: verbatim
30069 #: ../src/guestfs-actions.pod:6491
30070 #, no-wrap
30071 msgid ""
30072 " int\n"
30073 " guestfs_setxattr (guestfs_h *g,\n"
30074 "                   const char *xattr,\n"
30075 "                   const char *val,\n"
30076 "                   int vallen,\n"
30077 "                   const char *path);\n"
30078 "\n"
30079 msgstr ""
30080
30081 #. type: textblock
30082 #: ../src/guestfs-actions.pod:6502
30083 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30084 msgstr ""
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:6508
30088 msgid "guestfs_sfdisk"
30089 msgstr ""
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:6510
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_sfdisk (guestfs_h *g,\n"
30097 "                 const char *device,\n"
30098 "                 int cyls,\n"
30099 "                 int heads,\n"
30100 "                 int sectors,\n"
30101 "                 char *const *lines);\n"
30102 "\n"
30103 msgstr ""
30104
30105 #. type: textblock
30106 #: ../src/guestfs-actions.pod:6538
30107 msgid ""
30108 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30109 msgstr ""
30110
30111 #. type: textblock
30112 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6576
30113 #: ../src/guestfs-actions.pod:6609
30114 msgid ""
30115 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
30116 "instead."
30117 msgstr ""
30118
30119 #. type: =head2
30120 #: ../src/guestfs-actions.pod:6555
30121 msgid "guestfs_sfdiskM"
30122 msgstr ""
30123
30124 #. type: verbatim
30125 #: ../src/guestfs-actions.pod:6557
30126 #, no-wrap
30127 msgid ""
30128 " int\n"
30129 " guestfs_sfdiskM (guestfs_h *g,\n"
30130 "                  const char *device,\n"
30131 "                  char *const *lines);\n"
30132 "\n"
30133 msgstr ""
30134
30135 #. type: textblock
30136 #: ../src/guestfs-actions.pod:6562
30137 msgid ""
30138 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30139 "partition sizes are specified in megabytes only (rounded to the nearest "
30140 "cylinder) and you don't need to specify the cyls, heads and sectors "
30141 "parameters which were rarely if ever used anyway."
30142 msgstr ""
30143
30144 #. type: textblock
30145 #: ../src/guestfs-actions.pod:6568
30146 msgid ""
30147 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30148 "C<guestfs_part_disk>"
30149 msgstr ""
30150
30151 #. type: =head2
30152 #: ../src/guestfs-actions.pod:6585
30153 msgid "guestfs_sfdisk_N"
30154 msgstr ""
30155
30156 #. type: verbatim
30157 #: ../src/guestfs-actions.pod:6587
30158 #, no-wrap
30159 msgid ""
30160 " int\n"
30161 " guestfs_sfdisk_N (guestfs_h *g,\n"
30162 "                   const char *device,\n"
30163 "                   int partnum,\n"
30164 "                   int cyls,\n"
30165 "                   int heads,\n"
30166 "                   int sectors,\n"
30167 "                   const char *line);\n"
30168 "\n"
30169 msgstr ""
30170
30171 #. type: textblock
30172 #: ../src/guestfs-actions.pod:6599
30173 msgid ""
30174 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30175 "for the cyls/heads/sectors parameters."
30176 msgstr ""
30177
30178 #. type: textblock
30179 #: ../src/guestfs-actions.pod:6602
30180 msgid "See also: C<guestfs_part_add>"
30181 msgstr ""
30182
30183 #. type: =head2
30184 #: ../src/guestfs-actions.pod:6618
30185 msgid "guestfs_sfdisk_disk_geometry"
30186 msgstr ""
30187
30188 #. type: verbatim
30189 #: ../src/guestfs-actions.pod:6620
30190 #, no-wrap
30191 msgid ""
30192 " char *\n"
30193 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30194 "                               const char *device);\n"
30195 "\n"
30196 msgstr ""
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:6624
30200 msgid ""
30201 "This displays the disk geometry of C<device> read from the partition table.  "
30202 "Especially in the case where the underlying block device has been resized, "
30203 "this can be different from the kernel's idea of the geometry (see "
30204 "C<guestfs_sfdisk_kernel_geometry>)."
30205 msgstr ""
30206
30207 #. type: =head2
30208 #: ../src/guestfs-actions.pod:6637
30209 msgid "guestfs_sfdisk_kernel_geometry"
30210 msgstr ""
30211
30212 #. type: verbatim
30213 #: ../src/guestfs-actions.pod:6639
30214 #, no-wrap
30215 msgid ""
30216 " char *\n"
30217 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30218 "                                 const char *device);\n"
30219 "\n"
30220 msgstr ""
30221
30222 #. type: =head2
30223 #: ../src/guestfs-actions.pod:6653
30224 msgid "guestfs_sfdisk_l"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../src/guestfs-actions.pod:6655
30229 #, no-wrap
30230 msgid ""
30231 " char *\n"
30232 " guestfs_sfdisk_l (guestfs_h *g,\n"
30233 "                   const char *device);\n"
30234 "\n"
30235 msgstr ""
30236
30237 #. type: textblock
30238 #: ../src/guestfs-actions.pod:6663
30239 msgid "See also: C<guestfs_part_list>"
30240 msgstr ""
30241
30242 #. type: textblock
30243 #: ../src/guestfs-actions.pod:6668
30244 msgid ""
30245 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
30246 "call instead."
30247 msgstr ""
30248
30249 #. type: =head2
30250 #: ../src/guestfs-actions.pod:6677
30251 msgid "guestfs_sh"
30252 msgstr ""
30253
30254 #. type: verbatim
30255 #: ../src/guestfs-actions.pod:6679
30256 #, no-wrap
30257 msgid ""
30258 " char *\n"
30259 " guestfs_sh (guestfs_h *g,\n"
30260 "             const char *command);\n"
30261 "\n"
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../src/guestfs-actions.pod:6686
30266 msgid "This is like C<guestfs_command>, but passes the command to:"
30267 msgstr ""
30268
30269 #. type: textblock
30270 #: ../src/guestfs-actions.pod:6694
30271 msgid "All the provisos about C<guestfs_command> apply to this call."
30272 msgstr ""
30273
30274 #. type: =head2
30275 #: ../src/guestfs-actions.pod:6701
30276 msgid "guestfs_sh_lines"
30277 msgstr ""
30278
30279 #. type: verbatim
30280 #: ../src/guestfs-actions.pod:6703
30281 #, no-wrap
30282 msgid ""
30283 " char **\n"
30284 " guestfs_sh_lines (guestfs_h *g,\n"
30285 "                   const char *command);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:6707
30291 msgid ""
30292 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30293 "lines."
30294 msgstr ""
30295
30296 #. type: textblock
30297 #: ../src/guestfs-actions.pod:6710
30298 msgid "See also: C<guestfs_command_lines>"
30299 msgstr ""
30300
30301 #. type: =head2
30302 #: ../src/guestfs-actions.pod:6718
30303 msgid "guestfs_sleep"
30304 msgstr ""
30305
30306 #. type: verbatim
30307 #: ../src/guestfs-actions.pod:6720
30308 #, no-wrap
30309 msgid ""
30310 " int\n"
30311 " guestfs_sleep (guestfs_h *g,\n"
30312 "                int secs);\n"
30313 "\n"
30314 msgstr ""
30315
30316 #. type: textblock
30317 #: ../src/guestfs-actions.pod:6728
30318 msgid "(Added in 1.0.41)"
30319 msgstr ""
30320
30321 #. type: =head2
30322 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30323 msgid "guestfs_stat"
30324 msgstr ""
30325
30326 #. type: verbatim
30327 #: ../src/guestfs-actions.pod:6732
30328 #, no-wrap
30329 msgid ""
30330 " struct guestfs_stat *\n"
30331 " guestfs_stat (guestfs_h *g,\n"
30332 "               const char *path);\n"
30333 "\n"
30334 msgstr ""
30335
30336 #. type: =head2
30337 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30338 msgid "guestfs_statvfs"
30339 msgstr ""
30340
30341 #. type: verbatim
30342 #: ../src/guestfs-actions.pod:6748
30343 #, no-wrap
30344 msgid ""
30345 " struct guestfs_statvfs *\n"
30346 " guestfs_statvfs (guestfs_h *g,\n"
30347 "                  const char *path);\n"
30348 "\n"
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs-actions.pod:6758
30353 msgid ""
30354 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30355 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30356 msgstr ""
30357
30358 #. type: =head2
30359 #: ../src/guestfs-actions.pod:6764
30360 msgid "guestfs_strings"
30361 msgstr ""
30362
30363 #. type: verbatim
30364 #: ../src/guestfs-actions.pod:6766
30365 #, no-wrap
30366 msgid ""
30367 " char **\n"
30368 " guestfs_strings (guestfs_h *g,\n"
30369 "                  const char *path);\n"
30370 "\n"
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:6782
30375 msgid "guestfs_strings_e"
30376 msgstr ""
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:6784
30380 #, no-wrap
30381 msgid ""
30382 " char **\n"
30383 " guestfs_strings_e (guestfs_h *g,\n"
30384 "                    const char *encoding,\n"
30385 "                    const char *path);\n"
30386 "\n"
30387 msgstr ""
30388
30389 #. type: textblock
30390 #: ../src/guestfs-actions.pod:6789
30391 msgid ""
30392 "This is like the C<guestfs_strings> command, but allows you to specify the "
30393 "encoding of strings that are looked for in the source file C<path>."
30394 msgstr ""
30395
30396 #. type: textblock
30397 #: ../src/guestfs-actions.pod:6799
30398 msgid ""
30399 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30400 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30401 msgstr ""
30402
30403 #. type: =head2
30404 #: ../src/guestfs-actions.pod:6837
30405 msgid "guestfs_swapoff_device"
30406 msgstr ""
30407
30408 #. type: verbatim
30409 #: ../src/guestfs-actions.pod:6839
30410 #, no-wrap
30411 msgid ""
30412 " int\n"
30413 " guestfs_swapoff_device (guestfs_h *g,\n"
30414 "                         const char *device);\n"
30415 "\n"
30416 msgstr ""
30417
30418 #. type: textblock
30419 #: ../src/guestfs-actions.pod:6843
30420 msgid ""
30421 "This command disables the libguestfs appliance swap device or partition "
30422 "named C<device>.  See C<guestfs_swapon_device>."
30423 msgstr ""
30424
30425 #. type: =head2
30426 #: ../src/guestfs-actions.pod:6851
30427 msgid "guestfs_swapoff_file"
30428 msgstr ""
30429
30430 #. type: verbatim
30431 #: ../src/guestfs-actions.pod:6853
30432 #, no-wrap
30433 msgid ""
30434 " int\n"
30435 " guestfs_swapoff_file (guestfs_h *g,\n"
30436 "                       const char *file);\n"
30437 "\n"
30438 msgstr ""
30439
30440 #. type: =head2
30441 #: ../src/guestfs-actions.pod:6863
30442 msgid "guestfs_swapoff_label"
30443 msgstr ""
30444
30445 #. type: verbatim
30446 #: ../src/guestfs-actions.pod:6865
30447 #, no-wrap
30448 msgid ""
30449 " int\n"
30450 " guestfs_swapoff_label (guestfs_h *g,\n"
30451 "                        const char *label);\n"
30452 "\n"
30453 msgstr ""
30454
30455 #. type: =head2
30456 #: ../src/guestfs-actions.pod:6876
30457 msgid "guestfs_swapoff_uuid"
30458 msgstr ""
30459
30460 #. type: verbatim
30461 #: ../src/guestfs-actions.pod:6878
30462 #, no-wrap
30463 msgid ""
30464 " int\n"
30465 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30466 "                       const char *uuid);\n"
30467 "\n"
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:6889
30472 msgid "guestfs_swapon_device"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:6891
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_swapon_device (guestfs_h *g,\n"
30481 "                        const char *device);\n"
30482 "\n"
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs-actions.pod:6895
30487 msgid ""
30488 "This command enables the libguestfs appliance to use the swap device or "
30489 "partition named C<device>.  The increased memory is made available for all "
30490 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30491 msgstr ""
30492
30493 #. type: =head2
30494 #: ../src/guestfs-actions.pod:6911
30495 msgid "guestfs_swapon_file"
30496 msgstr ""
30497
30498 #. type: verbatim
30499 #: ../src/guestfs-actions.pod:6913
30500 #, no-wrap
30501 msgid ""
30502 " int\n"
30503 " guestfs_swapon_file (guestfs_h *g,\n"
30504 "                      const char *file);\n"
30505 "\n"
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:6917
30510 msgid ""
30511 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30512 "notes."
30513 msgstr ""
30514
30515 #. type: =head2
30516 #: ../src/guestfs-actions.pod:6924
30517 msgid "guestfs_swapon_label"
30518 msgstr ""
30519
30520 #. type: verbatim
30521 #: ../src/guestfs-actions.pod:6926
30522 #, no-wrap
30523 msgid ""
30524 " int\n"
30525 " guestfs_swapon_label (guestfs_h *g,\n"
30526 "                       const char *label);\n"
30527 "\n"
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../src/guestfs-actions.pod:6930
30532 msgid ""
30533 "This command enables swap to a labeled swap partition.  See "
30534 "C<guestfs_swapon_device> for other notes."
30535 msgstr ""
30536
30537 #. type: =head2
30538 #: ../src/guestfs-actions.pod:6937
30539 msgid "guestfs_swapon_uuid"
30540 msgstr ""
30541
30542 #. type: verbatim
30543 #: ../src/guestfs-actions.pod:6939
30544 #, no-wrap
30545 msgid ""
30546 " int\n"
30547 " guestfs_swapon_uuid (guestfs_h *g,\n"
30548 "                      const char *uuid);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: textblock
30553 #: ../src/guestfs-actions.pod:6943
30554 msgid ""
30555 "This command enables swap to a swap partition with the given UUID.  See "
30556 "C<guestfs_swapon_device> for other notes."
30557 msgstr ""
30558
30559 #. type: =head2
30560 #: ../src/guestfs-actions.pod:6950
30561 msgid "guestfs_sync"
30562 msgstr ""
30563
30564 #. type: verbatim
30565 #: ../src/guestfs-actions.pod:6952
30566 #, no-wrap
30567 msgid ""
30568 " int\n"
30569 " guestfs_sync (guestfs_h *g);\n"
30570 "\n"
30571 msgstr ""
30572
30573 #. type: =head2
30574 #: ../src/guestfs-actions.pod:6965
30575 msgid "guestfs_tail"
30576 msgstr ""
30577
30578 #. type: verbatim
30579 #: ../src/guestfs-actions.pod:6967
30580 #, no-wrap
30581 msgid ""
30582 " char **\n"
30583 " guestfs_tail (guestfs_h *g,\n"
30584 "               const char *path);\n"
30585 "\n"
30586 msgstr ""
30587
30588 #. type: =head2
30589 #: ../src/guestfs-actions.pod:6983
30590 msgid "guestfs_tail_n"
30591 msgstr ""
30592
30593 #. type: verbatim
30594 #: ../src/guestfs-actions.pod:6985
30595 #, no-wrap
30596 msgid ""
30597 " char **\n"
30598 " guestfs_tail_n (guestfs_h *g,\n"
30599 "                 int nrlines,\n"
30600 "                 const char *path);\n"
30601 "\n"
30602 msgstr ""
30603
30604 #. type: =head2
30605 #: ../src/guestfs-actions.pod:7007
30606 msgid "guestfs_tar_in"
30607 msgstr ""
30608
30609 #. type: verbatim
30610 #: ../src/guestfs-actions.pod:7009
30611 #, no-wrap
30612 msgid ""
30613 " int\n"
30614 " guestfs_tar_in (guestfs_h *g,\n"
30615 "                 const char *tarfile,\n"
30616 "                 const char *directory);\n"
30617 "\n"
30618 msgstr ""
30619
30620 #. type: textblock
30621 #: ../src/guestfs-actions.pod:7017
30622 msgid ""
30623 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30624 msgstr ""
30625
30626 #. type: textblock
30627 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30628 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30629 msgid "(Added in 1.0.3)"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:7024
30634 msgid "guestfs_tar_out"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:7026
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_tar_out (guestfs_h *g,\n"
30643 "                  const char *directory,\n"
30644 "                  const char *tarfile);\n"
30645 "\n"
30646 msgstr ""
30647
30648 #. type: textblock
30649 #: ../src/guestfs-actions.pod:7034
30650 msgid ""
30651 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30652 "C<guestfs_txz_out>."
30653 msgstr ""
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:7041
30657 msgid "guestfs_tgz_in"
30658 msgstr ""
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:7043
30662 #, no-wrap
30663 msgid ""
30664 " int\n"
30665 " guestfs_tgz_in (guestfs_h *g,\n"
30666 "                 const char *tarball,\n"
30667 "                 const char *directory);\n"
30668 "\n"
30669 msgstr ""
30670
30671 #. type: textblock
30672 #: ../src/guestfs-actions.pod:7051
30673 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30674 msgstr ""
30675
30676 #. type: =head2
30677 #: ../src/guestfs-actions.pod:7057
30678 msgid "guestfs_tgz_out"
30679 msgstr ""
30680
30681 #. type: verbatim
30682 #: ../src/guestfs-actions.pod:7059
30683 #, no-wrap
30684 msgid ""
30685 " int\n"
30686 " guestfs_tgz_out (guestfs_h *g,\n"
30687 "                  const char *directory,\n"
30688 "                  const char *tarball);\n"
30689 "\n"
30690 msgstr ""
30691
30692 #. type: textblock
30693 #: ../src/guestfs-actions.pod:7067
30694 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30695 msgstr ""
30696
30697 #. type: =head2
30698 #: ../src/guestfs-actions.pod:7073
30699 msgid "guestfs_touch"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:7075
30704 #, no-wrap
30705 msgid ""
30706 " int\n"
30707 " guestfs_touch (guestfs_h *g,\n"
30708 "                const char *path);\n"
30709 "\n"
30710 msgstr ""
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:7090
30714 msgid "guestfs_truncate"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:7092
30719 #, no-wrap
30720 msgid ""
30721 " int\n"
30722 " guestfs_truncate (guestfs_h *g,\n"
30723 "                   const char *path);\n"
30724 "\n"
30725 msgstr ""
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:7103
30729 msgid "guestfs_truncate_size"
30730 msgstr ""
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:7105
30734 #, no-wrap
30735 msgid ""
30736 " int\n"
30737 " guestfs_truncate_size (guestfs_h *g,\n"
30738 "                        const char *path,\n"
30739 "                        int64_t size);\n"
30740 "\n"
30741 msgstr ""
30742
30743 #. type: textblock
30744 #: ../src/guestfs-actions.pod:7113
30745 msgid ""
30746 "If the current file size is less than C<size> then the file is extended to "
30747 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30748 "blocks are not allocated for the file until you write to it).  To create a "
30749 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30750 msgstr ""
30751
30752 #. type: =head2
30753 #: ../src/guestfs-actions.pod:7123
30754 msgid "guestfs_tune2fs_l"
30755 msgstr ""
30756
30757 #. type: verbatim
30758 #: ../src/guestfs-actions.pod:7125
30759 #, no-wrap
30760 msgid ""
30761 " char **\n"
30762 " guestfs_tune2fs_l (guestfs_h *g,\n"
30763 "                    const char *device);\n"
30764 "\n"
30765 msgstr ""
30766
30767 #. type: =head2
30768 #: ../src/guestfs-actions.pod:7145
30769 msgid "guestfs_txz_in"
30770 msgstr ""
30771
30772 #. type: verbatim
30773 #: ../src/guestfs-actions.pod:7147
30774 #, no-wrap
30775 msgid ""
30776 " int\n"
30777 " guestfs_txz_in (guestfs_h *g,\n"
30778 "                 const char *tarball,\n"
30779 "                 const char *directory);\n"
30780 "\n"
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-actions.pod:7159
30785 msgid "guestfs_txz_out"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-actions.pod:7161
30790 #, no-wrap
30791 msgid ""
30792 " int\n"
30793 " guestfs_txz_out (guestfs_h *g,\n"
30794 "                  const char *directory,\n"
30795 "                  const char *tarball);\n"
30796 "\n"
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:7173
30801 msgid "guestfs_umask"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:7175
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_umask (guestfs_h *g,\n"
30810 "                int mask);\n"
30811 "\n"
30812 msgstr ""
30813
30814 #. type: textblock
30815 #: ../src/guestfs-actions.pod:7191
30816 msgid ""
30817 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30818 "C<guestfs_mkdir>."
30819 msgstr ""
30820
30821 #. type: =head2
30822 #: ../src/guestfs-actions.pod:7200
30823 msgid "guestfs_umount"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../src/guestfs-actions.pod:7202
30828 #, no-wrap
30829 msgid ""
30830 " int\n"
30831 " guestfs_umount (guestfs_h *g,\n"
30832 "                 const char *pathordevice);\n"
30833 "\n"
30834 msgstr ""
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:7214
30838 msgid "guestfs_umount_all"
30839 msgstr ""
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:7216
30843 #, no-wrap
30844 msgid ""
30845 " int\n"
30846 " guestfs_umount_all (guestfs_h *g);\n"
30847 "\n"
30848 msgstr ""
30849
30850 #. type: =head2
30851 #: ../src/guestfs-actions.pod:7227
30852 msgid "guestfs_upload"
30853 msgstr ""
30854
30855 #. type: verbatim
30856 #: ../src/guestfs-actions.pod:7229
30857 #, no-wrap
30858 msgid ""
30859 " int\n"
30860 " guestfs_upload (guestfs_h *g,\n"
30861 "                 const char *filename,\n"
30862 "                 const char *remotefilename);\n"
30863 "\n"
30864 msgstr ""
30865
30866 #. type: textblock
30867 #: ../src/guestfs-actions.pod:7239
30868 msgid "See also C<guestfs_download>."
30869 msgstr ""
30870
30871 #. type: =head2
30872 #: ../src/guestfs-actions.pod:7250
30873 msgid "guestfs_upload_offset"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs-actions.pod:7252
30878 #, no-wrap
30879 msgid ""
30880 " int\n"
30881 " guestfs_upload_offset (guestfs_h *g,\n"
30882 "                        const char *filename,\n"
30883 "                        const char *remotefilename,\n"
30884 "                        int64_t offset);\n"
30885 "\n"
30886 msgstr ""
30887
30888 #. type: textblock
30889 #: ../src/guestfs-actions.pod:7268
30890 msgid ""
30891 "Note that there is no limit on the amount of data that can be uploaded with "
30892 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30893 "full amount unless an error occurs."
30894 msgstr ""
30895
30896 #. type: textblock
30897 #: ../src/guestfs-actions.pod:7273
30898 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30899 msgstr ""
30900
30901 #. type: =head2
30902 #: ../src/guestfs-actions.pod:7284
30903 msgid "guestfs_utimens"
30904 msgstr ""
30905
30906 #. type: verbatim
30907 #: ../src/guestfs-actions.pod:7286
30908 #, no-wrap
30909 msgid ""
30910 " int\n"
30911 " guestfs_utimens (guestfs_h *g,\n"
30912 "                  const char *path,\n"
30913 "                  int64_t atsecs,\n"
30914 "                  int64_t atnsecs,\n"
30915 "                  int64_t mtsecs,\n"
30916 "                  int64_t mtnsecs);\n"
30917 "\n"
30918 msgstr ""
30919
30920 #. type: =head2
30921 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
30922 msgid "guestfs_version"
30923 msgstr ""
30924
30925 #. type: verbatim
30926 #: ../src/guestfs-actions.pod:7317
30927 #, no-wrap
30928 msgid ""
30929 " struct guestfs_version *\n"
30930 " guestfs_version (guestfs_h *g);\n"
30931 "\n"
30932 msgstr ""
30933
30934 #. type: textblock
30935 #: ../src/guestfs-actions.pod:7345
30936 msgid ""
30937 "I<Note:> Don't use this call to test for availability of features.  In "
30938 "enterprise distributions we backport features from later versions into "
30939 "earlier versions, making this an unreliable way to test for features.  Use "
30940 "C<guestfs_available> instead."
30941 msgstr ""
30942
30943 #. type: textblock
30944 #: ../src/guestfs-actions.pod:7351
30945 msgid ""
30946 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30947 "error.  I<The caller must call C<guestfs_free_version> after use>."
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs-actions.pod:7355
30952 msgid "(Added in 1.0.58)"
30953 msgstr ""
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:7357
30957 msgid "guestfs_vfs_label"
30958 msgstr ""
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:7359
30962 #, no-wrap
30963 msgid ""
30964 " char *\n"
30965 " guestfs_vfs_label (guestfs_h *g,\n"
30966 "                    const char *device);\n"
30967 "\n"
30968 msgstr ""
30969
30970 #. type: textblock
30971 #: ../src/guestfs-actions.pod:7368
30972 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
30977 msgid "(Added in 1.3.18)"
30978 msgstr ""
30979
30980 #. type: =head2
30981 #: ../src/guestfs-actions.pod:7375
30982 msgid "guestfs_vfs_type"
30983 msgstr ""
30984
30985 #. type: verbatim
30986 #: ../src/guestfs-actions.pod:7377
30987 #, no-wrap
30988 msgid ""
30989 " char *\n"
30990 " guestfs_vfs_type (guestfs_h *g,\n"
30991 "                   const char *device);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: =head2
30996 #: ../src/guestfs-actions.pod:7394
30997 msgid "guestfs_vfs_uuid"
30998 msgstr ""
30999
31000 #. type: verbatim
31001 #: ../src/guestfs-actions.pod:7396
31002 #, no-wrap
31003 msgid ""
31004 " char *\n"
31005 " guestfs_vfs_uuid (guestfs_h *g,\n"
31006 "                   const char *device);\n"
31007 "\n"
31008 msgstr ""
31009
31010 #. type: textblock
31011 #: ../src/guestfs-actions.pod:7405
31012 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:7412
31017 msgid "guestfs_vg_activate"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:7414
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_vg_activate (guestfs_h *g,\n"
31026 "                      int activate,\n"
31027 "                      char *const *volgroups);\n"
31028 "\n"
31029 msgstr ""
31030
31031 #. type: =head2
31032 #: ../src/guestfs-actions.pod:7431
31033 msgid "guestfs_vg_activate_all"
31034 msgstr ""
31035
31036 #. type: verbatim
31037 #: ../src/guestfs-actions.pod:7433
31038 #, no-wrap
31039 msgid ""
31040 " int\n"
31041 " guestfs_vg_activate_all (guestfs_h *g,\n"
31042 "                          int activate);\n"
31043 "\n"
31044 msgstr ""
31045
31046 #. type: =head2
31047 #: ../src/guestfs-actions.pod:7446
31048 msgid "guestfs_vgcreate"
31049 msgstr ""
31050
31051 #. type: verbatim
31052 #: ../src/guestfs-actions.pod:7448
31053 #, no-wrap
31054 msgid ""
31055 " int\n"
31056 " guestfs_vgcreate (guestfs_h *g,\n"
31057 "                   const char *volgroup,\n"
31058 "                   char *const *physvols);\n"
31059 "\n"
31060 msgstr ""
31061
31062 #. type: =head2
31063 #: ../src/guestfs-actions.pod:7460
31064 msgid "guestfs_vglvuuids"
31065 msgstr ""
31066
31067 #. type: verbatim
31068 #: ../src/guestfs-actions.pod:7462
31069 #, no-wrap
31070 msgid ""
31071 " char **\n"
31072 " guestfs_vglvuuids (guestfs_h *g,\n"
31073 "                    const char *vgname);\n"
31074 "\n"
31075 msgstr ""
31076
31077 #. type: textblock
31078 #: ../src/guestfs-actions.pod:7469
31079 msgid ""
31080 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31081 "associate logical volumes and volume groups."
31082 msgstr ""
31083
31084 #. type: textblock
31085 #: ../src/guestfs-actions.pod:7472
31086 msgid "See also C<guestfs_vgpvuuids>."
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:7480
31091 msgid "guestfs_vgpvuuids"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:7482
31096 #, no-wrap
31097 msgid ""
31098 " char **\n"
31099 " guestfs_vgpvuuids (guestfs_h *g,\n"
31100 "                    const char *vgname);\n"
31101 "\n"
31102 msgstr ""
31103
31104 #. type: textblock
31105 #: ../src/guestfs-actions.pod:7489
31106 msgid ""
31107 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31108 "associate physical volumes and volume groups."
31109 msgstr ""
31110
31111 #. type: textblock
31112 #: ../src/guestfs-actions.pod:7492
31113 msgid "See also C<guestfs_vglvuuids>."
31114 msgstr ""
31115
31116 #. type: =head2
31117 #: ../src/guestfs-actions.pod:7500
31118 msgid "guestfs_vgremove"
31119 msgstr ""
31120
31121 #. type: verbatim
31122 #: ../src/guestfs-actions.pod:7502
31123 #, no-wrap
31124 msgid ""
31125 " int\n"
31126 " guestfs_vgremove (guestfs_h *g,\n"
31127 "                   const char *vgname);\n"
31128 "\n"
31129 msgstr ""
31130
31131 #. type: =head2
31132 #: ../src/guestfs-actions.pod:7515
31133 msgid "guestfs_vgrename"
31134 msgstr ""
31135
31136 #. type: verbatim
31137 #: ../src/guestfs-actions.pod:7517
31138 #, no-wrap
31139 msgid ""
31140 " int\n"
31141 " guestfs_vgrename (guestfs_h *g,\n"
31142 "                   const char *volgroup,\n"
31143 "                   const char *newvolgroup);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:7528
31149 msgid "guestfs_vgs"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:7530
31154 #, no-wrap
31155 msgid ""
31156 " char **\n"
31157 " guestfs_vgs (guestfs_h *g);\n"
31158 "\n"
31159 msgstr ""
31160
31161 #. type: textblock
31162 #: ../src/guestfs-actions.pod:7539
31163 msgid "See also C<guestfs_vgs_full>."
31164 msgstr ""
31165
31166 #. type: =head2
31167 #: ../src/guestfs-actions.pod:7547
31168 msgid "guestfs_vgs_full"
31169 msgstr ""
31170
31171 #. type: verbatim
31172 #: ../src/guestfs-actions.pod:7549
31173 #, no-wrap
31174 msgid ""
31175 " struct guestfs_lvm_vg_list *\n"
31176 " guestfs_vgs_full (guestfs_h *g);\n"
31177 "\n"
31178 msgstr ""
31179
31180 #. type: textblock
31181 #: ../src/guestfs-actions.pod:7555
31182 msgid ""
31183 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31184 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31185 msgstr ""
31186
31187 #. type: =head2
31188 #: ../src/guestfs-actions.pod:7561
31189 msgid "guestfs_vgscan"
31190 msgstr ""
31191
31192 #. type: verbatim
31193 #: ../src/guestfs-actions.pod:7563
31194 #, no-wrap
31195 msgid ""
31196 " int\n"
31197 " guestfs_vgscan (guestfs_h *g);\n"
31198 "\n"
31199 msgstr ""
31200
31201 #. type: =head2
31202 #: ../src/guestfs-actions.pod:7573
31203 msgid "guestfs_vguuid"
31204 msgstr ""
31205
31206 #. type: verbatim
31207 #: ../src/guestfs-actions.pod:7575
31208 #, no-wrap
31209 msgid ""
31210 " char *\n"
31211 " guestfs_vguuid (guestfs_h *g,\n"
31212 "                 const char *vgname);\n"
31213 "\n"
31214 msgstr ""
31215
31216 #. type: =head2
31217 #: ../src/guestfs-actions.pod:7586
31218 msgid "guestfs_wait_ready"
31219 msgstr ""
31220
31221 #. type: verbatim
31222 #: ../src/guestfs-actions.pod:7588
31223 #, no-wrap
31224 msgid ""
31225 " int\n"
31226 " guestfs_wait_ready (guestfs_h *g);\n"
31227 "\n"
31228 msgstr ""
31229
31230 #. type: textblock
31231 #: ../src/guestfs-actions.pod:7591
31232 msgid "This function is a no op."
31233 msgstr ""
31234
31235 #. type: textblock
31236 #: ../src/guestfs-actions.pod:7593
31237 msgid ""
31238 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31239 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31240 "is no longer necessary because C<guestfs_launch> now does the waiting."
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs-actions.pod:7598
31245 msgid ""
31246 "If you see any calls to this function in code then you can just remove them, "
31247 "unless you want to retain compatibility with older versions of the API."
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../src/guestfs-actions.pod:7604
31252 msgid ""
31253 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
31254 "instead."
31255 msgstr ""
31256
31257 #. type: =head2
31258 #: ../src/guestfs-actions.pod:7613
31259 msgid "guestfs_wc_c"
31260 msgstr ""
31261
31262 #. type: verbatim
31263 #: ../src/guestfs-actions.pod:7615
31264 #, no-wrap
31265 msgid ""
31266 " int\n"
31267 " guestfs_wc_c (guestfs_h *g,\n"
31268 "               const char *path);\n"
31269 "\n"
31270 msgstr ""
31271
31272 #. type: =head2
31273 #: ../src/guestfs-actions.pod:7626
31274 msgid "guestfs_wc_l"
31275 msgstr ""
31276
31277 #. type: verbatim
31278 #: ../src/guestfs-actions.pod:7628
31279 #, no-wrap
31280 msgid ""
31281 " int\n"
31282 " guestfs_wc_l (guestfs_h *g,\n"
31283 "               const char *path);\n"
31284 "\n"
31285 msgstr ""
31286
31287 #. type: =head2
31288 #: ../src/guestfs-actions.pod:7639
31289 msgid "guestfs_wc_w"
31290 msgstr ""
31291
31292 #. type: verbatim
31293 #: ../src/guestfs-actions.pod:7641
31294 #, no-wrap
31295 msgid ""
31296 " int\n"
31297 " guestfs_wc_w (guestfs_h *g,\n"
31298 "               const char *path);\n"
31299 "\n"
31300 msgstr ""
31301
31302 #. type: =head2
31303 #: ../src/guestfs-actions.pod:7652
31304 msgid "guestfs_write"
31305 msgstr ""
31306
31307 #. type: verbatim
31308 #: ../src/guestfs-actions.pod:7654
31309 #, no-wrap
31310 msgid ""
31311 " int\n"
31312 " guestfs_write (guestfs_h *g,\n"
31313 "                const char *path,\n"
31314 "                const char *content,\n"
31315 "                size_t content_size);\n"
31316 "\n"
31317 msgstr ""
31318
31319 #. type: textblock
31320 #: ../src/guestfs-actions.pod:7663
31321 msgid "See also C<guestfs_write_append>."
31322 msgstr ""
31323
31324 #. type: =head2
31325 #: ../src/guestfs-actions.pod:7672
31326 msgid "guestfs_write_append"
31327 msgstr ""
31328
31329 #. type: verbatim
31330 #: ../src/guestfs-actions.pod:7674
31331 #, no-wrap
31332 msgid ""
31333 " int\n"
31334 " guestfs_write_append (guestfs_h *g,\n"
31335 "                       const char *path,\n"
31336 "                       const char *content,\n"
31337 "                       size_t content_size);\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs-actions.pod:7683
31343 msgid "See also C<guestfs_write>."
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:7692
31348 msgid "guestfs_write_file"
31349 msgstr "guestfs_write_file"
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:7694
31353 #, no-wrap
31354 msgid ""
31355 " int\n"
31356 " guestfs_write_file (guestfs_h *g,\n"
31357 "                     const char *path,\n"
31358 "                     const char *content,\n"
31359 "                     int size);\n"
31360 "\n"
31361 msgstr ""
31362 " int\n"
31363 " guestfs_write_file (guestfs_h *g,\n"
31364 "                     const char *path,\n"
31365 "                     const char *content,\n"
31366 "                     int size);\n"
31367 "\n"
31368
31369 #. type: textblock
31370 #: ../src/guestfs-actions.pod:7716
31371 msgid ""
31372 "This function is deprecated.  In new code, use the L</guestfs_write> call "
31373 "instead."
31374 msgstr ""
31375
31376 #. type: =head2
31377 #: ../src/guestfs-actions.pod:7725
31378 msgid "guestfs_zegrep"
31379 msgstr "guestfs_zegrep"
31380
31381 #. type: verbatim
31382 #: ../src/guestfs-actions.pod:7727
31383 #, no-wrap
31384 msgid ""
31385 " char **\n"
31386 " guestfs_zegrep (guestfs_h *g,\n"
31387 "                 const char *regex,\n"
31388 "                 const char *path);\n"
31389 "\n"
31390 msgstr ""
31391 " char **\n"
31392 " guestfs_zegrep (guestfs_h *g,\n"
31393 "                 const char *regex,\n"
31394 "                 const char *path);\n"
31395 "\n"
31396
31397 #. type: =head2
31398 #: ../src/guestfs-actions.pod:7744
31399 msgid "guestfs_zegrepi"
31400 msgstr "guestfs_zegrepi"
31401
31402 #. type: verbatim
31403 #: ../src/guestfs-actions.pod:7746
31404 #, no-wrap
31405 msgid ""
31406 " char **\n"
31407 " guestfs_zegrepi (guestfs_h *g,\n"
31408 "                  const char *regex,\n"
31409 "                  const char *path);\n"
31410 "\n"
31411 msgstr ""
31412 " char **\n"
31413 " guestfs_zegrepi (guestfs_h *g,\n"
31414 "                  const char *regex,\n"
31415 "                  const char *path);\n"
31416 "\n"
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:7763
31420 msgid "guestfs_zero"
31421 msgstr "guestfs_zero"
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:7765
31425 #, no-wrap
31426 msgid ""
31427 " int\n"
31428 " guestfs_zero (guestfs_h *g,\n"
31429 "               const char *device);\n"
31430 "\n"
31431 msgstr ""
31432 " int\n"
31433 " guestfs_zero (guestfs_h *g,\n"
31434 "               const char *device);\n"
31435 "\n"
31436
31437 #. type: textblock
31438 #: ../src/guestfs-actions.pod:7775
31439 msgid ""
31440 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31441 "C<guestfs_is_zero_device>"
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:7787
31446 msgid "guestfs_zero_device"
31447 msgstr "guestfs_zero_device"
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:7789
31451 #, no-wrap
31452 msgid ""
31453 " int\n"
31454 " guestfs_zero_device (guestfs_h *g,\n"
31455 "                      const char *device);\n"
31456 "\n"
31457 msgstr ""
31458 " int\n"
31459 " guestfs_zero_device (guestfs_h *g,\n"
31460 "                      const char *device);\n"
31461 "\n"
31462
31463 #. type: textblock
31464 #: ../src/guestfs-actions.pod:7793
31465 msgid ""
31466 "This command writes zeroes over the entire C<device>.  Compare with "
31467 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31468 msgstr ""
31469
31470 #. type: textblock
31471 #: ../src/guestfs-actions.pod:7807
31472 msgid "(Added in 1.3.1)"
31473 msgstr "(Додано у 1.3.1)"
31474
31475 #. type: =head2
31476 #: ../src/guestfs-actions.pod:7809
31477 msgid "guestfs_zerofree"
31478 msgstr "guestfs_zerofree"
31479
31480 #. type: verbatim
31481 #: ../src/guestfs-actions.pod:7811
31482 #, no-wrap
31483 msgid ""
31484 " int\n"
31485 " guestfs_zerofree (guestfs_h *g,\n"
31486 "                   const char *device);\n"
31487 "\n"
31488 msgstr ""
31489 " int\n"
31490 " guestfs_zerofree (guestfs_h *g,\n"
31491 "                   const char *device);\n"
31492 "\n"
31493
31494 #. type: =head2
31495 #: ../src/guestfs-actions.pod:7830
31496 msgid "guestfs_zfgrep"
31497 msgstr "guestfs_zfgrep"
31498
31499 #. type: verbatim
31500 #: ../src/guestfs-actions.pod:7832
31501 #, no-wrap
31502 msgid ""
31503 " char **\n"
31504 " guestfs_zfgrep (guestfs_h *g,\n"
31505 "                 const char *pattern,\n"
31506 "                 const char *path);\n"
31507 "\n"
31508 msgstr ""
31509 " char **\n"
31510 " guestfs_zfgrep (guestfs_h *g,\n"
31511 "                 const char *pattern,\n"
31512 "                 const char *path);\n"
31513 "\n"
31514
31515 #. type: =head2
31516 #: ../src/guestfs-actions.pod:7849
31517 msgid "guestfs_zfgrepi"
31518 msgstr "guestfs_zfgrepi"
31519
31520 #. type: verbatim
31521 #: ../src/guestfs-actions.pod:7851
31522 #, no-wrap
31523 msgid ""
31524 " char **\n"
31525 " guestfs_zfgrepi (guestfs_h *g,\n"
31526 "                  const char *pattern,\n"
31527 "                  const char *path);\n"
31528 "\n"
31529 msgstr ""
31530 " char **\n"
31531 " guestfs_zfgrepi (guestfs_h *g,\n"
31532 "                  const char *pattern,\n"
31533 "                  const char *path);\n"
31534 "\n"
31535
31536 #. type: =head2
31537 #: ../src/guestfs-actions.pod:7868
31538 msgid "guestfs_zfile"
31539 msgstr "guestfs_zfile"
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-actions.pod:7870
31543 #, no-wrap
31544 msgid ""
31545 " char *\n"
31546 " guestfs_zfile (guestfs_h *g,\n"
31547 "                const char *meth,\n"
31548 "                const char *path);\n"
31549 "\n"
31550 msgstr ""
31551 " char *\n"
31552 " guestfs_zfile (guestfs_h *g,\n"
31553 "                const char *meth,\n"
31554 "                const char *path);\n"
31555 "\n"
31556
31557 #. type: textblock
31558 #: ../src/guestfs-actions.pod:7880
31559 msgid ""
31560 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31561 "files."
31562 msgstr ""
31563
31564 #. type: textblock
31565 #: ../src/guestfs-actions.pod:7886
31566 msgid ""
31567 "This function is deprecated.  In new code, use the L</guestfs_file> call "
31568 "instead."
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs-actions.pod:7895
31573 msgid "guestfs_zgrep"
31574 msgstr "guestfs_zgrep"
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-actions.pod:7897
31578 #, no-wrap
31579 msgid ""
31580 " char **\n"
31581 " guestfs_zgrep (guestfs_h *g,\n"
31582 "                const char *regex,\n"
31583 "                const char *path);\n"
31584 "\n"
31585 msgstr ""
31586 " char **\n"
31587 " guestfs_zgrep (guestfs_h *g,\n"
31588 "                const char *regex,\n"
31589 "                const char *path);\n"
31590 "\n"
31591
31592 #. type: =head2
31593 #: ../src/guestfs-actions.pod:7914
31594 msgid "guestfs_zgrepi"
31595 msgstr "guestfs_zgrepi"
31596
31597 #. type: verbatim
31598 #: ../src/guestfs-actions.pod:7916
31599 #, no-wrap
31600 msgid ""
31601 " char **\n"
31602 " guestfs_zgrepi (guestfs_h *g,\n"
31603 "                 const char *regex,\n"
31604 "                 const char *path);\n"
31605 "\n"
31606 msgstr ""
31607 " char **\n"
31608 " guestfs_zgrepi (guestfs_h *g,\n"
31609 "                 const char *regex,\n"
31610 "                 const char *path);\n"
31611 "\n"
31612
31613 #. type: =item
31614 #: ../src/guestfs-availability.pod:3
31615 msgid "B<augeas>"
31616 msgstr "B<augeas>"
31617
31618 #. type: textblock
31619 #: ../src/guestfs-availability.pod:5
31620 msgid ""
31621 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31622 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31623 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31624 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31625 "L</guestfs_aug_save> L</guestfs_aug_set>"
31626 msgstr ""
31627
31628 #. type: =item
31629 #: ../src/guestfs-availability.pod:21
31630 msgid "B<btrfs>"
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-availability.pod:23
31635 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31636 msgstr ""
31637
31638 #. type: =item
31639 #: ../src/guestfs-availability.pod:26
31640 msgid "B<inotify>"
31641 msgstr "B<inotify>"
31642
31643 #. type: textblock
31644 #: ../src/guestfs-availability.pod:28
31645 msgid ""
31646 "The following functions: L</guestfs_inotify_add_watch> L</"
31647 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31648 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31649 msgstr ""
31650
31651 #. type: =item
31652 #: ../src/guestfs-availability.pod:36
31653 msgid "B<linuxfsuuid>"
31654 msgstr "B<linuxfsuuid>"
31655
31656 #. type: textblock
31657 #: ../src/guestfs-availability.pod:38
31658 msgid ""
31659 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31660 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31661 msgstr ""
31662
31663 #. type: =item
31664 #: ../src/guestfs-availability.pod:45
31665 msgid "B<linuxmodules>"
31666 msgstr "B<linuxmodules>"
31667
31668 #. type: textblock
31669 #: ../src/guestfs-availability.pod:47
31670 msgid "The following functions: L</guestfs_modprobe>"
31671 msgstr ""
31672
31673 #. type: =item
31674 #: ../src/guestfs-availability.pod:50
31675 msgid "B<linuxxattrs>"
31676 msgstr "B<linuxxattrs>"
31677
31678 #. type: textblock
31679 #: ../src/guestfs-availability.pod:52
31680 msgid ""
31681 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31682 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31683 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31684 "guestfs_setxattr>"
31685 msgstr ""
31686
31687 #. type: =item
31688 #: ../src/guestfs-availability.pod:63
31689 msgid "B<luks>"
31690 msgstr "B<luks>"
31691
31692 #. type: textblock
31693 #: ../src/guestfs-availability.pod:65
31694 msgid ""
31695 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31696 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31697 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31698 msgstr ""
31699
31700 #. type: =item
31701 #: ../src/guestfs-availability.pod:74
31702 msgid "B<lvm2>"
31703 msgstr "B<lvm2>"
31704
31705 #. type: textblock
31706 #: ../src/guestfs-availability.pod:76
31707 msgid ""
31708 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31709 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31710 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31711 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31712 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31713 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31714 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31715 msgstr ""
31716
31717 #. type: =item
31718 #: ../src/guestfs-availability.pod:99
31719 msgid "B<mknod>"
31720 msgstr "B<mknod>"
31721
31722 #. type: textblock
31723 #: ../src/guestfs-availability.pod:101
31724 msgid ""
31725 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31726 "guestfs_mknod_b> L</guestfs_mknod_c>"
31727 msgstr ""
31728
31729 #. type: =item
31730 #: ../src/guestfs-availability.pod:107
31731 msgid "B<ntfs3g>"
31732 msgstr "B<ntfs3g>"
31733
31734 #. type: textblock
31735 #: ../src/guestfs-availability.pod:109
31736 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31737 msgstr ""
31738
31739 #. type: =item
31740 #: ../src/guestfs-availability.pod:112
31741 msgid "B<ntfsprogs>"
31742 msgstr "B<ntfsprogs>"
31743
31744 #. type: textblock
31745 #: ../src/guestfs-availability.pod:114
31746 msgid ""
31747 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31748 "L</guestfs_ntfsresize_size>"
31749 msgstr ""
31750
31751 #. type: =item
31752 #: ../src/guestfs-availability.pod:119
31753 msgid "B<realpath>"
31754 msgstr "B<realpath>"
31755
31756 #. type: textblock
31757 #: ../src/guestfs-availability.pod:121
31758 msgid "The following functions: L</guestfs_realpath>"
31759 msgstr ""
31760
31761 #. type: =item
31762 #: ../src/guestfs-availability.pod:124
31763 msgid "B<scrub>"
31764 msgstr "B<scrub>"
31765
31766 #. type: textblock
31767 #: ../src/guestfs-availability.pod:126
31768 msgid ""
31769 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31770 "guestfs_scrub_freespace>"
31771 msgstr ""
31772
31773 #. type: =item
31774 #: ../src/guestfs-availability.pod:131
31775 msgid "B<selinux>"
31776 msgstr "B<selinux>"
31777
31778 #. type: textblock
31779 #: ../src/guestfs-availability.pod:133
31780 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31781 msgstr ""
31782
31783 #. type: =item
31784 #: ../src/guestfs-availability.pod:137
31785 msgid "B<xz>"
31786 msgstr "B<xz>"
31787
31788 #. type: textblock
31789 #: ../src/guestfs-availability.pod:139
31790 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31791 msgstr ""
31792
31793 #. type: =item
31794 #: ../src/guestfs-availability.pod:143
31795 msgid "B<zerofree>"
31796 msgstr "B<zerofree>"
31797
31798 #. type: textblock
31799 #: ../src/guestfs-availability.pod:145
31800 msgid "The following functions: L</guestfs_zerofree>"
31801 msgstr ""
31802
31803 #. type: =head2
31804 #: ../src/guestfs-structs.pod:1
31805 msgid "guestfs_int_bool"
31806 msgstr ""
31807
31808 #. type: verbatim
31809 #: ../src/guestfs-structs.pod:3
31810 #, no-wrap
31811 msgid ""
31812 " struct guestfs_int_bool {\n"
31813 "   int32_t i;\n"
31814 "   int32_t b;\n"
31815 " };\n"
31816 " \n"
31817 msgstr ""
31818
31819 #. type: verbatim
31820 #: ../src/guestfs-structs.pod:8
31821 #, no-wrap
31822 msgid ""
31823 " struct guestfs_int_bool_list {\n"
31824 "   uint32_t len; /* Number of elements in list. */\n"
31825 "   struct guestfs_int_bool *val; /* Elements. */\n"
31826 " };\n"
31827 " \n"
31828 msgstr ""
31829
31830 #. type: verbatim
31831 #: ../src/guestfs-structs.pod:13
31832 #, no-wrap
31833 msgid ""
31834 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31835 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31836 "\n"
31837 msgstr ""
31838
31839 #. type: =head2
31840 #: ../src/guestfs-structs.pod:16
31841 msgid "guestfs_lvm_pv"
31842 msgstr ""
31843
31844 #. type: verbatim
31845 #: ../src/guestfs-structs.pod:18
31846 #, no-wrap
31847 msgid ""
31848 " struct guestfs_lvm_pv {\n"
31849 "   char *pv_name;\n"
31850 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31851 "   char pv_uuid[32];\n"
31852 "   char *pv_fmt;\n"
31853 "   uint64_t pv_size;\n"
31854 "   uint64_t dev_size;\n"
31855 "   uint64_t pv_free;\n"
31856 "   uint64_t pv_used;\n"
31857 "   char *pv_attr;\n"
31858 "   int64_t pv_pe_count;\n"
31859 "   int64_t pv_pe_alloc_count;\n"
31860 "   char *pv_tags;\n"
31861 "   uint64_t pe_start;\n"
31862 "   int64_t pv_mda_count;\n"
31863 "   uint64_t pv_mda_free;\n"
31864 " };\n"
31865 " \n"
31866 msgstr ""
31867
31868 #. type: verbatim
31869 #: ../src/guestfs-structs.pod:36
31870 #, no-wrap
31871 msgid ""
31872 " struct guestfs_lvm_pv_list {\n"
31873 "   uint32_t len; /* Number of elements in list. */\n"
31874 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31875 " };\n"
31876 " \n"
31877 msgstr ""
31878
31879 #. type: verbatim
31880 #: ../src/guestfs-structs.pod:41
31881 #, no-wrap
31882 msgid ""
31883 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31884 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31885 "\n"
31886 msgstr ""
31887
31888 #. type: =head2
31889 #: ../src/guestfs-structs.pod:44
31890 msgid "guestfs_lvm_vg"
31891 msgstr ""
31892
31893 #. type: verbatim
31894 #: ../src/guestfs-structs.pod:46
31895 #, no-wrap
31896 msgid ""
31897 " struct guestfs_lvm_vg {\n"
31898 "   char *vg_name;\n"
31899 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31900 "   char vg_uuid[32];\n"
31901 "   char *vg_fmt;\n"
31902 "   char *vg_attr;\n"
31903 "   uint64_t vg_size;\n"
31904 "   uint64_t vg_free;\n"
31905 "   char *vg_sysid;\n"
31906 "   uint64_t vg_extent_size;\n"
31907 "   int64_t vg_extent_count;\n"
31908 "   int64_t vg_free_count;\n"
31909 "   int64_t max_lv;\n"
31910 "   int64_t max_pv;\n"
31911 "   int64_t pv_count;\n"
31912 "   int64_t lv_count;\n"
31913 "   int64_t snap_count;\n"
31914 "   int64_t vg_seqno;\n"
31915 "   char *vg_tags;\n"
31916 "   int64_t vg_mda_count;\n"
31917 "   uint64_t vg_mda_free;\n"
31918 " };\n"
31919 " \n"
31920 msgstr ""
31921
31922 #. type: verbatim
31923 #: ../src/guestfs-structs.pod:69
31924 #, no-wrap
31925 msgid ""
31926 " struct guestfs_lvm_vg_list {\n"
31927 "   uint32_t len; /* Number of elements in list. */\n"
31928 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31929 " };\n"
31930 " \n"
31931 msgstr ""
31932
31933 #. type: verbatim
31934 #: ../src/guestfs-structs.pod:74
31935 #, no-wrap
31936 msgid ""
31937 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31938 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31939 "\n"
31940 msgstr ""
31941
31942 #. type: =head2
31943 #: ../src/guestfs-structs.pod:77
31944 msgid "guestfs_lvm_lv"
31945 msgstr ""
31946
31947 #. type: verbatim
31948 #: ../src/guestfs-structs.pod:79
31949 #, no-wrap
31950 msgid ""
31951 " struct guestfs_lvm_lv {\n"
31952 "   char *lv_name;\n"
31953 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31954 "   char lv_uuid[32];\n"
31955 "   char *lv_attr;\n"
31956 "   int64_t lv_major;\n"
31957 "   int64_t lv_minor;\n"
31958 "   int64_t lv_kernel_major;\n"
31959 "   int64_t lv_kernel_minor;\n"
31960 "   uint64_t lv_size;\n"
31961 "   int64_t seg_count;\n"
31962 "   char *origin;\n"
31963 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31964 "   float snap_percent;\n"
31965 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31966 "   float copy_percent;\n"
31967 "   char *move_pv;\n"
31968 "   char *lv_tags;\n"
31969 "   char *mirror_log;\n"
31970 "   char *modules;\n"
31971 " };\n"
31972 " \n"
31973 msgstr ""
31974
31975 #. type: verbatim
31976 #: ../src/guestfs-structs.pod:101
31977 #, no-wrap
31978 msgid ""
31979 " struct guestfs_lvm_lv_list {\n"
31980 "   uint32_t len; /* Number of elements in list. */\n"
31981 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31982 " };\n"
31983 " \n"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs-structs.pod:106
31988 #, no-wrap
31989 msgid ""
31990 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31991 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31992 "\n"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-structs.pod:111
31997 #, no-wrap
31998 msgid ""
31999 " struct guestfs_stat {\n"
32000 "   int64_t dev;\n"
32001 "   int64_t ino;\n"
32002 "   int64_t mode;\n"
32003 "   int64_t nlink;\n"
32004 "   int64_t uid;\n"
32005 "   int64_t gid;\n"
32006 "   int64_t rdev;\n"
32007 "   int64_t size;\n"
32008 "   int64_t blksize;\n"
32009 "   int64_t blocks;\n"
32010 "   int64_t atime;\n"
32011 "   int64_t mtime;\n"
32012 "   int64_t ctime;\n"
32013 " };\n"
32014 " \n"
32015 msgstr ""
32016
32017 #. type: verbatim
32018 #: ../src/guestfs-structs.pod:127
32019 #, no-wrap
32020 msgid ""
32021 " struct guestfs_stat_list {\n"
32022 "   uint32_t len; /* Number of elements in list. */\n"
32023 "   struct guestfs_stat *val; /* Elements. */\n"
32024 " };\n"
32025 " \n"
32026 msgstr ""
32027
32028 #. type: verbatim
32029 #: ../src/guestfs-structs.pod:132
32030 #, no-wrap
32031 msgid ""
32032 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32033 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32034 "\n"
32035 msgstr ""
32036
32037 #. type: verbatim
32038 #: ../src/guestfs-structs.pod:137
32039 #, no-wrap
32040 msgid ""
32041 " struct guestfs_statvfs {\n"
32042 "   int64_t bsize;\n"
32043 "   int64_t frsize;\n"
32044 "   int64_t blocks;\n"
32045 "   int64_t bfree;\n"
32046 "   int64_t bavail;\n"
32047 "   int64_t files;\n"
32048 "   int64_t ffree;\n"
32049 "   int64_t favail;\n"
32050 "   int64_t fsid;\n"
32051 "   int64_t flag;\n"
32052 "   int64_t namemax;\n"
32053 " };\n"
32054 " \n"
32055 msgstr ""
32056
32057 #. type: verbatim
32058 #: ../src/guestfs-structs.pod:151
32059 #, no-wrap
32060 msgid ""
32061 " struct guestfs_statvfs_list {\n"
32062 "   uint32_t len; /* Number of elements in list. */\n"
32063 "   struct guestfs_statvfs *val; /* Elements. */\n"
32064 " };\n"
32065 " \n"
32066 msgstr ""
32067
32068 #. type: verbatim
32069 #: ../src/guestfs-structs.pod:156
32070 #, no-wrap
32071 msgid ""
32072 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32073 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32074 "\n"
32075 msgstr ""
32076
32077 #. type: =head2
32078 #: ../src/guestfs-structs.pod:159
32079 msgid "guestfs_dirent"
32080 msgstr ""
32081
32082 #. type: verbatim
32083 #: ../src/guestfs-structs.pod:161
32084 #, no-wrap
32085 msgid ""
32086 " struct guestfs_dirent {\n"
32087 "   int64_t ino;\n"
32088 "   char ftyp;\n"
32089 "   char *name;\n"
32090 " };\n"
32091 " \n"
32092 msgstr ""
32093
32094 #. type: verbatim
32095 #: ../src/guestfs-structs.pod:167
32096 #, no-wrap
32097 msgid ""
32098 " struct guestfs_dirent_list {\n"
32099 "   uint32_t len; /* Number of elements in list. */\n"
32100 "   struct guestfs_dirent *val; /* Elements. */\n"
32101 " };\n"
32102 " \n"
32103 msgstr ""
32104
32105 #. type: verbatim
32106 #: ../src/guestfs-structs.pod:172
32107 #, no-wrap
32108 msgid ""
32109 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32110 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32111 "\n"
32112 msgstr ""
32113
32114 #. type: verbatim
32115 #: ../src/guestfs-structs.pod:177
32116 #, no-wrap
32117 msgid ""
32118 " struct guestfs_version {\n"
32119 "   int64_t major;\n"
32120 "   int64_t minor;\n"
32121 "   int64_t release;\n"
32122 "   char *extra;\n"
32123 " };\n"
32124 " \n"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-structs.pod:184
32129 #, no-wrap
32130 msgid ""
32131 " struct guestfs_version_list {\n"
32132 "   uint32_t len; /* Number of elements in list. */\n"
32133 "   struct guestfs_version *val; /* Elements. */\n"
32134 " };\n"
32135 " \n"
32136 msgstr ""
32137
32138 #. type: verbatim
32139 #: ../src/guestfs-structs.pod:189
32140 #, no-wrap
32141 msgid ""
32142 " void guestfs_free_version (struct guestfs_free_version *);\n"
32143 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32144 "\n"
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-structs.pod:192
32149 msgid "guestfs_xattr"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-structs.pod:194
32154 #, no-wrap
32155 msgid ""
32156 " struct guestfs_xattr {\n"
32157 "   char *attrname;\n"
32158 "   /* The next two fields describe a byte array. */\n"
32159 "   uint32_t attrval_len;\n"
32160 "   char *attrval;\n"
32161 " };\n"
32162 " \n"
32163 msgstr ""
32164
32165 #. type: verbatim
32166 #: ../src/guestfs-structs.pod:201
32167 #, no-wrap
32168 msgid ""
32169 " struct guestfs_xattr_list {\n"
32170 "   uint32_t len; /* Number of elements in list. */\n"
32171 "   struct guestfs_xattr *val; /* Elements. */\n"
32172 " };\n"
32173 " \n"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-structs.pod:206
32178 #, no-wrap
32179 msgid ""
32180 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32181 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32182 "\n"
32183 msgstr ""
32184
32185 #. type: =head2
32186 #: ../src/guestfs-structs.pod:209
32187 msgid "guestfs_inotify_event"
32188 msgstr ""
32189
32190 #. type: verbatim
32191 #: ../src/guestfs-structs.pod:211
32192 #, no-wrap
32193 msgid ""
32194 " struct guestfs_inotify_event {\n"
32195 "   int64_t in_wd;\n"
32196 "   uint32_t in_mask;\n"
32197 "   uint32_t in_cookie;\n"
32198 "   char *in_name;\n"
32199 " };\n"
32200 " \n"
32201 msgstr ""
32202
32203 #. type: verbatim
32204 #: ../src/guestfs-structs.pod:218
32205 #, no-wrap
32206 msgid ""
32207 " struct guestfs_inotify_event_list {\n"
32208 "   uint32_t len; /* Number of elements in list. */\n"
32209 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32210 " };\n"
32211 " \n"
32212 msgstr ""
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-structs.pod:223
32216 #, no-wrap
32217 msgid ""
32218 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32219 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32220 "\n"
32221 msgstr ""
32222
32223 #. type: =head2
32224 #: ../src/guestfs-structs.pod:226
32225 msgid "guestfs_partition"
32226 msgstr ""
32227
32228 #. type: verbatim
32229 #: ../src/guestfs-structs.pod:228
32230 #, no-wrap
32231 msgid ""
32232 " struct guestfs_partition {\n"
32233 "   int32_t part_num;\n"
32234 "   uint64_t part_start;\n"
32235 "   uint64_t part_end;\n"
32236 "   uint64_t part_size;\n"
32237 " };\n"
32238 " \n"
32239 msgstr ""
32240
32241 #. type: verbatim
32242 #: ../src/guestfs-structs.pod:235
32243 #, no-wrap
32244 msgid ""
32245 " struct guestfs_partition_list {\n"
32246 "   uint32_t len; /* Number of elements in list. */\n"
32247 "   struct guestfs_partition *val; /* Elements. */\n"
32248 " };\n"
32249 " \n"
32250 msgstr ""
32251
32252 #. type: verbatim
32253 #: ../src/guestfs-structs.pod:240
32254 #, no-wrap
32255 msgid ""
32256 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32257 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32258 "\n"
32259 msgstr ""
32260
32261 #. type: =head2
32262 #: ../src/guestfs-structs.pod:243
32263 msgid "guestfs_application"
32264 msgstr ""
32265
32266 #. type: verbatim
32267 #: ../src/guestfs-structs.pod:245
32268 #, no-wrap
32269 msgid ""
32270 " struct guestfs_application {\n"
32271 "   char *app_name;\n"
32272 "   char *app_display_name;\n"
32273 "   int32_t app_epoch;\n"
32274 "   char *app_version;\n"
32275 "   char *app_release;\n"
32276 "   char *app_install_path;\n"
32277 "   char *app_trans_path;\n"
32278 "   char *app_publisher;\n"
32279 "   char *app_url;\n"
32280 "   char *app_source_package;\n"
32281 "   char *app_summary;\n"
32282 "   char *app_description;\n"
32283 " };\n"
32284 " \n"
32285 msgstr ""
32286
32287 #. type: verbatim
32288 #: ../src/guestfs-structs.pod:260
32289 #, no-wrap
32290 msgid ""
32291 " struct guestfs_application_list {\n"
32292 "   uint32_t len; /* Number of elements in list. */\n"
32293 "   struct guestfs_application *val; /* Elements. */\n"
32294 " };\n"
32295 " \n"
32296 msgstr ""
32297
32298 #. type: verbatim
32299 #: ../src/guestfs-structs.pod:265
32300 #, no-wrap
32301 msgid ""
32302 " void guestfs_free_application (struct guestfs_free_application *);\n"
32303 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32304 "\n"
32305 msgstr ""
32306
32307 #. type: textblock
32308 #: ../src/guestfs.pod:5
32309 msgid "guestfs - Library for accessing and modifying virtual machine images"
32310 msgstr ""
32311 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32312 "машин"
32313
32314 #. type: verbatim
32315 #: ../src/guestfs.pod:11
32316 #, no-wrap
32317 msgid ""
32318 " guestfs_h *g = guestfs_create ();\n"
32319 " guestfs_add_drive (g, \"guest.img\");\n"
32320 " guestfs_launch (g);\n"
32321 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32322 " guestfs_touch (g, \"/hello\");\n"
32323 " guestfs_umount (g, \"/\");\n"
32324 " guestfs_close (g);\n"
32325 "\n"
32326 msgstr ""
32327 " guestfs_h *g = guestfs_create ();\n"
32328 " guestfs_add_drive (g, \"guest.img\");\n"
32329 " guestfs_launch (g);\n"
32330 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32331 " guestfs_touch (g, \"/hello\");\n"
32332 " guestfs_umount (g, \"/\");\n"
32333 " guestfs_close (g);\n"
32334 "\n"
32335
32336 #. type: textblock
32337 #: ../src/guestfs.pod:25
32338 msgid ""
32339 "Libguestfs is a library for accessing and modifying guest disk images.  "
32340 "Amongst the things this is good for: making batch configuration changes to "
32341 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32342 "between virtualization systems (see also: virt-p2v), performing partial "
32343 "backups, performing partial guest clones, cloning guests and changing "
32344 "registry/UUID/hostname info, and much else besides."
32345 msgstr ""
32346
32347 #. type: textblock
32348 #: ../src/guestfs.pod:33
32349 msgid ""
32350 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32351 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32352 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32353 "qcow2, vmdk."
32354 msgstr ""
32355
32356 #. type: textblock
32357 #: ../src/guestfs.pod:38
32358 msgid ""
32359 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32360 "what filesystem is in each LV, etc.).  It can also run commands in the "
32361 "context of the guest.  Also you can access filesystems over FUSE."
32362 msgstr ""
32363
32364 #. type: textblock
32365 #: ../src/guestfs.pod:43
32366 msgid ""
32367 "Libguestfs is a library that can be linked with C and C++ management "
32368 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32369 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32370 "line."
32371 msgstr ""
32372
32373 #. type: textblock
32374 #: ../src/guestfs.pod:48
32375 msgid ""
32376 "You don't need to be root to use libguestfs, although obviously you do need "
32377 "enough permissions to access the disk images."
32378 msgstr ""
32379
32380 #. type: textblock
32381 #: ../src/guestfs.pod:51
32382 msgid ""
32383 "Libguestfs is a large API because it can do many things.  For a gentle "
32384 "introduction, please read the L</API OVERVIEW> section next."
32385 msgstr ""
32386
32387 #. type: textblock
32388 #: ../src/guestfs.pod:54
32389 msgid ""
32390 "There are also some example programs in the L<guestfs-examples(3)> manual "
32391 "page."
32392 msgstr ""
32393
32394 #. type: =head1
32395 #: ../src/guestfs.pod:57
32396 msgid "API OVERVIEW"
32397 msgstr "ОГЛЯД API"
32398
32399 #. type: textblock
32400 #: ../src/guestfs.pod:59
32401 msgid ""
32402 "This section provides a gentler overview of the libguestfs API.  We also try "
32403 "to group API calls together, where that may not be obvious from reading "
32404 "about the individual calls in the main section of this manual."
32405 msgstr ""
32406
32407 #. type: =head2
32408 #: ../src/guestfs.pod:64
32409 msgid "HANDLES"
32410 msgstr "ОБРОБНИКИ"
32411
32412 #. type: textblock
32413 #: ../src/guestfs.pod:66
32414 msgid ""
32415 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32416 "must add at least one disk image to the handle, followed by launching the "
32417 "handle, then performing whatever operations you want, and finally closing "
32418 "the handle.  By convention we use the single letter C<g> for the name of the "
32419 "handle variable, although of course you can use any name you want."
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs.pod:73
32424 msgid "The general structure of all libguestfs-using programs looks like this:"
32425 msgstr ""
32426
32427 #. type: verbatim
32428 #: ../src/guestfs.pod:76
32429 #, no-wrap
32430 msgid ""
32431 " guestfs_h *g = guestfs_create ();\n"
32432 " \n"
32433 msgstr ""
32434 " guestfs_h *g = guestfs_create ();\n"
32435 " \n"
32436
32437 #. type: verbatim
32438 #: ../src/guestfs.pod:78
32439 #, no-wrap
32440 msgid ""
32441 " /* Call guestfs_add_drive additional times if there are\n"
32442 "  * multiple disk images.\n"
32443 "  */\n"
32444 " guestfs_add_drive (g, \"guest.img\");\n"
32445 " \n"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs.pod:83
32450 #, no-wrap
32451 msgid ""
32452 " /* Most manipulation calls won't work until you've launched\n"
32453 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32454 "  * and _before_ other commands.\n"
32455 "  */\n"
32456 " guestfs_launch (g);\n"
32457 " \n"
32458 msgstr ""
32459
32460 #. type: verbatim
32461 #: ../src/guestfs.pod:89
32462 #, no-wrap
32463 msgid ""
32464 " /* Now you can examine what partitions, LVs etc are available.\n"
32465 "  */\n"
32466 " char **partitions = guestfs_list_partitions (g);\n"
32467 " char **logvols = guestfs_lvs (g);\n"
32468 " \n"
32469 msgstr ""
32470 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32471 "  */\n"
32472 " char **partitions = guestfs_list_partitions (g);\n"
32473 " char **logvols = guestfs_lvs (g);\n"
32474 " \n"
32475
32476 #. type: verbatim
32477 #: ../src/guestfs.pod:94
32478 #, no-wrap
32479 msgid ""
32480 " /* To access a filesystem in the image, you must mount it.\n"
32481 "  */\n"
32482 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32483 " \n"
32484 msgstr ""
32485 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32486 "  */\n"
32487 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32488 " \n"
32489
32490 #. type: verbatim
32491 #: ../src/guestfs.pod:98
32492 #, no-wrap
32493 msgid ""
32494 " /* Now you can perform filesystem actions on the guest\n"
32495 "  * disk image.\n"
32496 "  */\n"
32497 " guestfs_touch (g, \"/hello\");\n"
32498 " \n"
32499 msgstr ""
32500
32501 #. type: verbatim
32502 #: ../src/guestfs.pod:103
32503 #, no-wrap
32504 msgid ""
32505 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32506 "  * it is done automatically when you close the handle.  See\n"
32507 "  * discussion of autosync in this page.\n"
32508 "  */\n"
32509 " guestfs_sync (g);\n"
32510 " \n"
32511 msgstr ""
32512
32513 #. type: verbatim
32514 #: ../src/guestfs.pod:109
32515 #, no-wrap
32516 msgid ""
32517 " /* Close the handle 'g'. */\n"
32518 " guestfs_close (g);\n"
32519 "\n"
32520 msgstr ""
32521 " /* Закрити дескриптор 'g'. */\n"
32522 " guestfs_close (g);\n"
32523 "\n"
32524
32525 #. type: textblock
32526 #: ../src/guestfs.pod:112
32527 msgid ""
32528 "The code above doesn't include any error checking.  In real code you should "
32529 "check return values carefully for errors.  In general all functions that "
32530 "return integers return C<-1> on error, and all functions that return "
32531 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32532 "how to handle errors, and consult the documentation for each function call "
32533 "below to see precisely how they return error indications.  See L<guestfs-"
32534 "examples(3)> for fully worked examples."
32535 msgstr ""
32536
32537 #. type: =head2
32538 #: ../src/guestfs.pod:121
32539 msgid "DISK IMAGES"
32540 msgstr "ОБРАЗИ ДИСКІВ"
32541
32542 #. type: textblock
32543 #: ../src/guestfs.pod:123
32544 msgid ""
32545 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32546 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32547 "actual block device, or simply an empty file of zeroes that you have created "
32548 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32549 "of these."
32550 msgstr ""
32551
32552 #. type: textblock
32553 #: ../src/guestfs.pod:129
32554 msgid ""
32555 "The call you should use in modern code for adding drives is L</"
32556 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32557 "specifying that the format is raw, do:"
32558 msgstr ""
32559
32560 #. type: verbatim
32561 #: ../src/guestfs.pod:133
32562 #, no-wrap
32563 msgid ""
32564 " guestfs_add_drive_opts (g, filename,\n"
32565 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32566 "                         -1);\n"
32567 "\n"
32568 msgstr ""
32569 " guestfs_add_drive_opts (g, filename,\n"
32570 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32571 "                         -1);\n"
32572 "\n"
32573
32574 #. type: textblock
32575 #: ../src/guestfs.pod:137
32576 msgid "You can add a disk read-only using:"
32577 msgstr "Ви можете додати диск у режимі лише читання:"
32578
32579 #. type: verbatim
32580 #: ../src/guestfs.pod:139
32581 #, no-wrap
32582 msgid ""
32583 " guestfs_add_drive_opts (g, filename,\n"
32584 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32585 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32586 "                         -1);\n"
32587 "\n"
32588 msgstr ""
32589 " guestfs_add_drive_opts (g, filename,\n"
32590 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32591 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32592 "                         -1);\n"
32593 "\n"
32594
32595 #. type: textblock
32596 #: ../src/guestfs.pod:144
32597 msgid ""
32598 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32599 "libguestfs won't modify the file."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs.pod:147
32604 msgid ""
32605 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32606 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32607 "corruption, but adding it read-only is safe."
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs.pod:151
32612 msgid ""
32613 "You must add at least one disk image, and you may add multiple disk images.  "
32614 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32615 "first one you added), C</dev/sdb> (for the second one you added), etc."
32616 msgstr ""
32617
32618 #. type: textblock
32619 #: ../src/guestfs.pod:156
32620 msgid ""
32621 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32622 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32623 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs.pod:161
32628 msgid "MOUNTING"
32629 msgstr "МОНТУВАННЯ"
32630
32631 #. type: textblock
32632 #: ../src/guestfs.pod:163
32633 msgid ""
32634 "Before you can read or write files, create directories and so on in a disk "
32635 "image that contains filesystems, you have to mount those filesystems using "
32636 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32637 "a disk image contains (for example) one partition with a filesystem on that "
32638 "partition, then you can mount it directly:"
32639 msgstr ""
32640
32641 #. type: verbatim
32642 #: ../src/guestfs.pod:170
32643 #, no-wrap
32644 msgid ""
32645 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32646 "\n"
32647 msgstr ""
32648 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32649 "\n"
32650
32651 #. type: textblock
32652 #: ../src/guestfs.pod:172
32653 msgid ""
32654 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32655 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32656 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32657 "that these are libguestfs virtual devices, and are nothing to do with host "
32658 "devices."
32659 msgstr ""
32660
32661 #. type: textblock
32662 #: ../src/guestfs.pod:178
32663 msgid ""
32664 "If you are given a disk image and you don't know what it contains then you "
32665 "have to find out.  Libguestfs can do that too: use L</"
32666 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32667 "LVs, and either try mounting each to see what is mountable, or else examine "
32668 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32669 "filesystems, use L</guestfs_list_filesystems>."
32670 msgstr ""
32671
32672 #. type: textblock
32673 #: ../src/guestfs.pod:186
32674 msgid ""
32675 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32676 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32677 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs.pod:191
32682 msgid ""
32683 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32684 "several other variations of the C<guestfs_mount_*> call."
32685 msgstr ""
32686
32687 #. type: =head2
32688 #: ../src/guestfs.pod:194
32689 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32690 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:196
32694 msgid ""
32695 "The majority of the libguestfs API consists of fairly low-level calls for "
32696 "accessing and modifying the files, directories, symlinks etc on mounted "
32697 "filesystems.  There are over a hundred such calls which you can find listed "
32698 "in detail below in this man page, and we don't even pretend to cover them "
32699 "all in this overview."
32700 msgstr ""
32701
32702 #. type: textblock
32703 #: ../src/guestfs.pod:202
32704 msgid ""
32705 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32706 "mount point."
32707 msgstr ""
32708 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32709 "точкою монтування."
32710
32711 #. type: textblock
32712 #: ../src/guestfs.pod:205
32713 msgid ""
32714 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32715 "the file called C<\"etc/passwd\"> then you could do:"
32716 msgstr ""
32717 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32718 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32719 "таким кодом:"
32720
32721 #. type: verbatim
32722 #: ../src/guestfs.pod:208
32723 #, no-wrap
32724 msgid ""
32725 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32726 "\n"
32727 msgstr ""
32728 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32729 "\n"
32730
32731 #. type: textblock
32732 #: ../src/guestfs.pod:210
32733 msgid ""
32734 "This would return C<data> as a newly allocated buffer containing the full "
32735 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32736 "or C<NULL> if there was an error."
32737 msgstr ""
32738
32739 #. type: textblock
32740 #: ../src/guestfs.pod:214
32741 msgid ""
32742 "As another example, to create a top-level directory on that filesystem "
32743 "called C<\"var\"> you would do:"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs.pod:217
32748 #, no-wrap
32749 msgid ""
32750 " guestfs_mkdir (g, \"/var\");\n"
32751 "\n"
32752 msgstr ""
32753 " guestfs_mkdir (g, \"/var\");\n"
32754 "\n"
32755
32756 #. type: textblock
32757 #: ../src/guestfs.pod:219
32758 msgid "To create a symlink you could do:"
32759 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32760
32761 #. type: verbatim
32762 #: ../src/guestfs.pod:221
32763 #, no-wrap
32764 msgid ""
32765 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32766 "               \"/etc/rc3.d/S30portmap\");\n"
32767 "\n"
32768 msgstr ""
32769 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32770 "               \"/etc/rc3.d/S30portmap\");\n"
32771 "\n"
32772
32773 #. type: textblock
32774 #: ../src/guestfs.pod:224
32775 msgid ""
32776 "Libguestfs will reject attempts to use relative paths and there is no "
32777 "concept of a current working directory."
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs.pod:227
32782 msgid ""
32783 "Libguestfs can return errors in many situations: for example if the "
32784 "filesystem isn't writable, or if a file or directory that you requested "
32785 "doesn't exist.  If you are using the C API (documented here)  you have to "
32786 "check for those error conditions after each call.  (Other language bindings "
32787 "turn these errors into exceptions)."
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../src/guestfs.pod:233
32792 msgid ""
32793 "File writes are affected by the per-handle umask, set by calling L</"
32794 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32795 msgstr ""
32796
32797 #. type: =head2
32798 #: ../src/guestfs.pod:236
32799 msgid "PARTITIONING"
32800 msgstr "ПОДІЛ НА РОЗДІЛИ"
32801
32802 #. type: textblock
32803 #: ../src/guestfs.pod:238
32804 msgid ""
32805 "Libguestfs contains API calls to read, create and modify partition tables on "
32806 "disk images."
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs.pod:241
32811 msgid ""
32812 "In the common case where you want to create a single partition covering the "
32813 "whole disk, you should use the L</guestfs_part_disk> call:"
32814 msgstr ""
32815
32816 #. type: verbatim
32817 #: ../src/guestfs.pod:245
32818 #, no-wrap
32819 msgid ""
32820 " const char *parttype = \"mbr\";\n"
32821 " if (disk_is_larger_than_2TB)\n"
32822 "   parttype = \"gpt\";\n"
32823 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32824 "\n"
32825 msgstr ""
32826 " const char *parttype = \"mbr\";\n"
32827 " if (disk_is_larger_than_2TB)\n"
32828 "   parttype = \"gpt\";\n"
32829 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32830 "\n"
32831
32832 #. type: textblock
32833 #: ../src/guestfs.pod:250
32834 msgid ""
32835 "Obviously this effectively wipes anything that was on that disk image before."
32836 msgstr ""
32837
32838 #. type: =head2
32839 #: ../src/guestfs.pod:253
32840 msgid "LVM2"
32841 msgstr "LVM2"
32842
32843 #. type: textblock
32844 #: ../src/guestfs.pod:255
32845 msgid ""
32846 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32847 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32848 "you familiarize yourself with the concepts of physical volumes, volume "
32849 "groups and logical volumes."
32850 msgstr ""
32851
32852 #. type: textblock
32853 #: ../src/guestfs.pod:260
32854 msgid ""
32855 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32856 "tldp.org/HOWTO/LVM-HOWTO/>."
32857 msgstr ""
32858
32859 #. type: =head2
32860 #: ../src/guestfs.pod:263
32861 msgid "DOWNLOADING"
32862 msgstr "ОТРИМАННЯ ДАНИХ"
32863
32864 #. type: textblock
32865 #: ../src/guestfs.pod:265
32866 msgid ""
32867 "Use L</guestfs_cat> to download small, text only files.  This call is "
32868 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32869 "NUL (C<\\0>) characters.  However the API is very simple to use."
32870 msgstr ""
32871
32872 #. type: textblock
32873 #: ../src/guestfs.pod:269
32874 msgid ""
32875 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32876 "bit data, since it returns a (pointer, size) pair.  However it is still "
32877 "limited to \"small\" files, less than 2 MB."
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs.pod:273
32882 msgid ""
32883 "L</guestfs_download> can be used to download any file, with no limits on "
32884 "content or size (even files larger than 4 GB)."
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../src/guestfs.pod:276
32889 msgid ""
32890 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32891 msgstr ""
32892
32893 #. type: =head2
32894 #: ../src/guestfs.pod:279
32895 msgid "UPLOADING"
32896 msgstr "ВИВАНТАЖЕННЯ"
32897
32898 #. type: textblock
32899 #: ../src/guestfs.pod:281
32900 msgid ""
32901 "It's often the case that you want to write a file or files to the disk image."
32902 msgstr ""
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:284
32906 msgid ""
32907 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32908 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32909 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32910 "of other functions for creating test files, for example L</guestfs_fill> and "
32911 "L</guestfs_fill_pattern>."
32912 msgstr ""
32913
32914 #. type: textblock
32915 #: ../src/guestfs.pod:290
32916 msgid ""
32917 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32918 "file content or size (even files larger than 4 GB)."
32919 msgstr ""
32920
32921 #. type: textblock
32922 #: ../src/guestfs.pod:293
32923 msgid ""
32924 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32925 msgstr ""
32926
32927 #. type: textblock
32928 #: ../src/guestfs.pod:295
32929 msgid ""
32930 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32931 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32932 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32933 "in a predictable way (eg. adding it last after all other drives) then you "
32934 "can get the device name from L</guestfs_list_devices> and mount it directly "
32935 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32936 "portable between kernel versions, and they don't support labels or UUIDs.  "
32937 "If you want to pre-build an image or you need to mount it using a label or "
32938 "UUID, use an ISO image instead."
32939 msgstr ""
32940
32941 #. type: =head2
32942 #: ../src/guestfs.pod:306
32943 msgid "COPYING"
32944 msgstr "КОПІЮВАННЯ"
32945
32946 #. type: textblock
32947 #: ../src/guestfs.pod:308
32948 msgid ""
32949 "There are various different commands for copying between files and devices "
32950 "and in and out of the guest filesystem.  These are summarised in the table "
32951 "below."
32952 msgstr ""
32953
32954 #. type: =item
32955 #: ../src/guestfs.pod:314
32956 msgid "B<file> to B<file>"
32957 msgstr "B<файл> у B<файл>"
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:316
32961 msgid ""
32962 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32963 "directories recursively."
32964 msgstr ""
32965
32966 #. type: =item
32967 #: ../src/guestfs.pod:319
32968 msgid "B<file or device> to B<file or device>"
32969 msgstr "B<файл або пристрій> у B<файл або пристрій>"
32970
32971 #. type: textblock
32972 #: ../src/guestfs.pod:321
32973 msgid ""
32974 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32975 "devices in the guest."
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs.pod:324
32980 msgid "Example: duplicate the contents of an LV:"
32981 msgstr ""
32982
32983 #. type: verbatim
32984 #: ../src/guestfs.pod:326
32985 #, no-wrap
32986 msgid ""
32987 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32988 "\n"
32989 msgstr ""
32990 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32991 "\n"
32992
32993 #. type: textblock
32994 #: ../src/guestfs.pod:328
32995 msgid ""
32996 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32997 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32998 "guestfs_copy_size>."
32999 msgstr ""
33000
33001 #. type: =item
33002 #: ../src/guestfs.pod:332
33003 msgid "B<file on the host> to B<file or device>"
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs.pod:334
33008 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33009 msgstr ""
33010
33011 #. type: =item
33012 #: ../src/guestfs.pod:336
33013 msgid "B<file or device> to B<file on the host>"
33014 msgstr ""
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:338
33018 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33019 msgstr ""
33020
33021 #. type: =head2
33022 #: ../src/guestfs.pod:342
33023 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:344
33028 msgid ""
33029 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33030 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33031 "appears you can only upload and download to files.  However many Un*x-like "
33032 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33033 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33034 "and arbitrary file descriptor N."
33035 msgstr ""
33036
33037 #. type: textblock
33038 #: ../src/guestfs.pod:352
33039 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33040 msgstr ""
33041
33042 #. type: verbatim
33043 #: ../src/guestfs.pod:355
33044 #, no-wrap
33045 msgid ""
33046 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33047 "\n"
33048 msgstr ""
33049 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33050 "\n"
33051
33052 #. type: textblock
33053 #: ../src/guestfs.pod:357
33054 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs.pod:359
33059 #, no-wrap
33060 msgid ""
33061 " char devfd[64];\n"
33062 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33063 " guestfs_tar_out (g, \"/\", devfd);\n"
33064 "\n"
33065 msgstr ""
33066 " char devfd[64];\n"
33067 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33068 " guestfs_tar_out (g, \"/\", devfd);\n"
33069 "\n"
33070
33071 #. type: =head2
33072 #: ../src/guestfs.pod:363
33073 msgid "LISTING FILES"
33074 msgstr "СПИСКИ ФАЙЛІВ"
33075
33076 #. type: textblock
33077 #: ../src/guestfs.pod:365
33078 msgid ""
33079 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33080 "L<guestfish(1)>-equivalent command C<ll>)."
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:368
33085 msgid ""
33086 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33087 "programs, as a flat list of strings."
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs.pod:371
33092 msgid ""
33093 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33094 "directory, plus additional information about each one.  It is more "
33095 "equivalent to using the L<readdir(3)> call on a local filesystem."
33096 msgstr ""
33097
33098 #. type: textblock
33099 #: ../src/guestfs.pod:375
33100 msgid ""
33101 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs.pod:378
33106 msgid "RUNNING COMMANDS"
33107 msgstr "ВИКОНАННЯ КОМАНД"
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:380
33111 msgid ""
33112 "Although libguestfs is primarily an API for manipulating files inside guest "
33113 "images, we also provide some limited facilities for running commands inside "
33114 "guests."
33115 msgstr ""
33116
33117 #. type: textblock
33118 #: ../src/guestfs.pod:384
33119 msgid "There are many limitations to this:"
33120 msgstr ""
33121
33122 #. type: textblock
33123 #: ../src/guestfs.pod:390
33124 msgid ""
33125 "The kernel version that the command runs under will be different from what "
33126 "it expects."
33127 msgstr ""
33128
33129 #. type: textblock
33130 #: ../src/guestfs.pod:395
33131 msgid ""
33132 "If the command needs to communicate with daemons, then most likely they "
33133 "won't be running."
33134 msgstr ""
33135
33136 #. type: textblock
33137 #: ../src/guestfs.pod:400
33138 msgid "The command will be running in limited memory."
33139 msgstr ""
33140
33141 #. type: textblock
33142 #: ../src/guestfs.pod:404
33143 msgid ""
33144 "The network may not be available unless you enable it (see L</"
33145 "guestfs_set_network>)."
33146 msgstr ""
33147
33148 #. type: textblock
33149 #: ../src/guestfs.pod:409
33150 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs.pod:413
33155 msgid ""
33156 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33157 msgstr ""
33158
33159 #. type: textblock
33160 #: ../src/guestfs.pod:418
33161 msgid ""
33162 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33163 "See L</SELINUX> in this manpage."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:423
33168 msgid ""
33169 "I<Security:> It is not safe to run commands from untrusted, possibly "
33170 "malicious guests.  These commands may attempt to exploit your program by "
33171 "sending unexpected output.  They could also try to exploit the Linux kernel "
33172 "or qemu provided by the libguestfs appliance.  They could use the network "
33173 "provided by the libguestfs appliance to bypass ordinary network partitions "
33174 "and firewalls.  They could use the elevated privileges or different SELinux "
33175 "context of your program to their advantage."
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs.pod:432
33180 msgid ""
33181 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33182 "(a script which runs when the guest next boots normally), and to have this "
33183 "script run the commands you want in the normal context of the running guest, "
33184 "network security and so on.  For information about other security issues, "
33185 "see L</SECURITY>."
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:440
33190 msgid ""
33191 "The two main API calls to run commands are L</guestfs_command> and L</"
33192 "guestfs_sh> (there are also variations)."
33193 msgstr ""
33194
33195 #. type: textblock
33196 #: ../src/guestfs.pod:443
33197 msgid ""
33198 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33199 "shell globs, redirections, etc will work."
33200 msgstr ""
33201
33202 #. type: =head2
33203 #: ../src/guestfs.pod:446
33204 msgid "CONFIGURATION FILES"
33205 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33206
33207 #. type: textblock
33208 #: ../src/guestfs.pod:448
33209 msgid ""
33210 "To read and write configuration files in Linux guest filesystems, we "
33211 "strongly recommend using Augeas.  For example, Augeas understands how to "
33212 "read and write, say, a Linux shadow password file or X.org configuration "
33213 "file, and so avoids you having to write that code."
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs.pod:453
33218 msgid ""
33219 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33220 "document Augeas itself here because there is excellent documentation on the "
33221 "L<http://augeas.net/> website."
33222 msgstr ""
33223
33224 #. type: textblock
33225 #: ../src/guestfs.pod:457
33226 msgid ""
33227 "If you don't want to use Augeas (you fool!) then try calling L</"
33228 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33229 "over."
33230 msgstr ""
33231
33232 #. type: =head2
33233 #: ../src/guestfs.pod:461
33234 msgid "SELINUX"
33235 msgstr "SELINUX"
33236
33237 #. type: textblock
33238 #: ../src/guestfs.pod:463
33239 msgid ""
33240 "We support SELinux guests.  To ensure that labeling happens correctly in "
33241 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33242 msgstr ""
33243
33244 #. type: textblock
33245 #: ../src/guestfs.pod:471
33246 msgid "Before launching, do:"
33247 msgstr ""
33248
33249 #. type: verbatim
33250 #: ../src/guestfs.pod:473
33251 #, no-wrap
33252 msgid ""
33253 " guestfs_set_selinux (g, 1);\n"
33254 "\n"
33255 msgstr ""
33256 " guestfs_set_selinux (g, 1);\n"
33257 "\n"
33258
33259 #. type: textblock
33260 #: ../src/guestfs.pod:477
33261 msgid ""
33262 "After mounting the guest's filesystem(s), load the policy.  This is best "
33263 "done by running the L<load_policy(8)> command in the guest itself:"
33264 msgstr ""
33265
33266 #. type: verbatim
33267 #: ../src/guestfs.pod:481
33268 #, no-wrap
33269 msgid ""
33270 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33271 "\n"
33272 msgstr ""
33273 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33274 "\n"
33275
33276 #. type: textblock
33277 #: ../src/guestfs.pod:483
33278 msgid ""
33279 "(Older versions of C<load_policy> require you to specify the name of the "
33280 "policy file)."
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs.pod:488
33285 msgid ""
33286 "Optionally, set the security context for the API.  The correct security "
33287 "context to use can only be known by inspecting the guest.  As an example:"
33288 msgstr ""
33289
33290 #. type: verbatim
33291 #: ../src/guestfs.pod:492
33292 #, no-wrap
33293 msgid ""
33294 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33295 "\n"
33296 msgstr ""
33297 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33298 "\n"
33299
33300 #. type: textblock
33301 #: ../src/guestfs.pod:496
33302 msgid "This will work for running commands and editing existing files."
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:498
33307 msgid ""
33308 "When new files are created, you may need to label them explicitly, for "
33309 "example by running the external command C<restorecon pathname>."
33310 msgstr ""
33311
33312 #. type: =head2
33313 #: ../src/guestfs.pod:502
33314 msgid "UMASK"
33315 msgstr "UMASK"
33316
33317 #. type: textblock
33318 #: ../src/guestfs.pod:504
33319 msgid ""
33320 "Certain calls are affected by the current file mode creation mask (the "
33321 "\"umask\").  In particular ones which create files or directories, such as "
33322 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33323 "either the default mode that the file is created with or modifies the mode "
33324 "that you supply."
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs.pod:510
33329 msgid ""
33330 "The default umask is C<022>, so files are created with modes such as C<0644> "
33331 "and directories with C<0755>."
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs.pod:513
33336 msgid ""
33337 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33338 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33339 "guestfs_chmod> after creating each file or directory."
33340 msgstr ""
33341
33342 #. type: textblock
33343 #: ../src/guestfs.pod:517
33344 msgid "For more information about umask, see L<umask(2)>."
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs.pod:521
33349 msgid ""
33350 "Libguestfs allows you to access Linux guests which have been encrypted using "
33351 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33352 "standard.  This includes nearly all whole disk encryption systems used by "
33353 "modern Linux guests."
33354 msgstr ""
33355
33356 #. type: textblock
33357 #: ../src/guestfs.pod:527
33358 msgid ""
33359 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33360 "returns the string C<crypto_LUKS>)."
33361 msgstr ""
33362
33363 #. type: textblock
33364 #: ../src/guestfs.pod:530
33365 msgid ""
33366 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33367 "will require the passphrase!"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:533
33372 msgid ""
33373 "Opening a LUKS device creates a new device mapper device called C</dev/"
33374 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33375 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33376 "from and encrypted to the underlying block device respectively."
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs.pod:539
33381 msgid ""
33382 "LVM volume groups on the device can be made visible by calling L</"
33383 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33384 "(s) can now be mounted in the usual way."
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:543
33389 msgid ""
33390 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33391 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33392 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33393 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33394 "underlying encrypted block device)."
33395 msgstr ""
33396
33397 #. type: =head2
33398 #: ../src/guestfs.pod:550
33399 msgid "INSPECTION"
33400 msgstr "ПЕРЕВІРКА"
33401
33402 #. type: textblock
33403 #: ../src/guestfs.pod:552
33404 msgid ""
33405 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33406 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33407 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33408 "version 1.5.3 the most frequently used part of this library has been "
33409 "rewritten in C and moved into the core code)."
33410 msgstr ""
33411
33412 #. type: textblock
33413 #: ../src/guestfs.pod:559
33414 msgid ""
33415 "Add all disks belonging to the unknown virtual machine and call L</"
33416 "guestfs_launch> in the usual way."
33417 msgstr ""
33418
33419 #. type: textblock
33420 #: ../src/guestfs.pod:562
33421 msgid ""
33422 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33423 "and certain heuristics, and returns a list of operating systems that were "
33424 "found.  An empty list means none were found.  A single element is the root "
33425 "filesystem of the operating system.  For dual- or multi-boot guests, "
33426 "multiple roots can be returned, each one corresponding to a separate "
33427 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33428 "world of virtualization, but since this scenario can happen, we have built "
33429 "libguestfs to deal with it.)"
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:571
33434 msgid ""
33435 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33436 "to get additional details about that operating system.  For example, call L</"
33437 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33438 "Windows and Linux-based operating systems respectively."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs.pod:577
33443 msgid ""
33444 "Un*x-like and Linux-based operating systems usually consist of several "
33445 "filesystems which are mounted at boot time (for example, a separate boot "
33446 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33447 "filesystems correspond to mount points.  Call "
33448 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33449 "hash table like this example:"
33450 msgstr ""
33451
33452 #. type: verbatim
33453 #: ../src/guestfs.pod:584
33454 #, no-wrap
33455 msgid ""
33456 " /boot => /dev/sda1\n"
33457 " /     => /dev/vg_guest/lv_root\n"
33458 " /usr  => /dev/vg_guest/lv_usr\n"
33459 "\n"
33460 msgstr ""
33461 " /boot => /dev/sda1\n"
33462 " /     => /dev/vg_guest/lv_root\n"
33463 " /usr  => /dev/vg_guest/lv_usr\n"
33464 "\n"
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:588
33468 msgid ""
33469 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33470 "filesystems as suggested."
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:591
33475 msgid ""
33476 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33477 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:595
33482 msgid ""
33483 "Inspection currently only works for some common operating systems.  "
33484 "Contributors are welcome to send patches for other operating systems that we "
33485 "currently cannot detect."
33486 msgstr ""
33487
33488 #. type: textblock
33489 #: ../src/guestfs.pod:599
33490 msgid ""
33491 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33492 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33493 "encrypted devices."
33494 msgstr ""
33495
33496 #. type: textblock
33497 #: ../src/guestfs.pod:603
33498 msgid ""
33499 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33500 "inspection and caches the results in the guest handle.  Subsequent calls to "
33501 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33502 "read the disks.  If you change the content of the guest disks, you can redo "
33503 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33504 "guestfs_inspect_list_applications> works a little differently from the other "
33505 "calls and does read the disks.  See documentation for that function for "
33506 "details)."
33507 msgstr ""
33508
33509 #. type: =head3
33510 #: ../src/guestfs.pod:612
33511 msgid "INSPECTING INSTALL DISKS"
33512 msgstr ""
33513
33514 #. type: textblock
33515 #: ../src/guestfs.pod:614
33516 msgid ""
33517 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33518 "CDs and more."
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:617
33523 msgid ""
33524 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33525 "system, which currently can be C<installed> (a regular operating system) or "
33526 "C<installer> (some sort of install disk)."
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:621
33531 msgid ""
33532 "Further information is available about the operating system that can be "
33533 "installed using the regular inspection APIs like L</"
33534 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:626
33539 msgid ""
33540 "Some additional information specific to installer disks is also available "
33541 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33542 "guestfs_inspect_is_multipart> calls."
33543 msgstr ""
33544
33545 #. type: =head2
33546 #: ../src/guestfs.pod:631
33547 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33548 msgstr ""
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:633
33552 msgid ""
33553 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33554 "ntfs-3g.org/> driver."
33555 msgstr ""
33556
33557 #. type: =head3
33558 #: ../src/guestfs.pod:636
33559 msgid "DRIVE LETTERS AND PATHS"
33560 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:638
33564 msgid ""
33565 "DOS and Windows still use drive letters, and the filesystems are always "
33566 "treated as case insensitive by Windows itself, and therefore you might find "
33567 "a Windows configuration file referring to a path like C<c:\\windows"
33568 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33569 "might be referred to as C</WINDOWS/System32>."
33570 msgstr ""
33571
33572 #. type: textblock
33573 #: ../src/guestfs.pod:644
33574 msgid ""
33575 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33576 "L</guestfs_inspect_get_drive_mappings>)"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs.pod:647
33581 msgid ""
33582 "Dealing with separator characters (backslash vs forward slash) is outside "
33583 "the scope of libguestfs, but usually a simple character replacement will "
33584 "work."
33585 msgstr ""
33586
33587 #. type: textblock
33588 #: ../src/guestfs.pod:651
33589 msgid ""
33590 "To resolve the case insensitivity of paths, call L</"
33591 "guestfs_case_sensitive_path>."
33592 msgstr ""
33593
33594 #. type: =head3
33595 #: ../src/guestfs.pod:654
33596 msgid "ACCESSING THE WINDOWS REGISTRY"
33597 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33598
33599 #. type: textblock
33600 #: ../src/guestfs.pod:656
33601 msgid ""
33602 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33603 "files, through the library C<hivex> which is part of the libguestfs project "
33604 "although ships as a separate tarball.  You have to locate and download the "
33605 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33606 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33607 "reg(1)> for more help on this issue."
33608 msgstr ""
33609
33610 #. type: =head3
33611 #: ../src/guestfs.pod:664
33612 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33613 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:666
33617 msgid ""
33618 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33619 "provide something which looks like a Linux symlink.  The way it tries to do "
33620 "the rewriting is described here:"
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:670
33625 msgid ""
33626 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33627 "symbolic-links/>"
33628 msgstr ""
33629 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33630 "symbolic-links/>"
33631
33632 #. type: textblock
33633 #: ../src/guestfs.pod:672
33634 msgid ""
33635 "The essential problem is that ntfs-3g simply does not have enough "
33636 "information to do a correct job.  NTFS links can contain drive letters and "
33637 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33638 "It is almost certainly the case that libguestfs callers should ignore what "
33639 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs.pod:679
33644 msgid ""
33645 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33646 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33647 "attribute, and read the raw reparse data from that (you can find the format "
33648 "documented in various places around the web)."
33649 msgstr ""
33650
33651 #. type: =head3
33652 #: ../src/guestfs.pod:684
33653 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33654 msgstr ""
33655
33656 #. type: textblock
33657 #: ../src/guestfs.pod:686
33658 msgid ""
33659 "There are other useful extended attributes that can be read from ntfs-3g "
33660 "filesystems (using L</guestfs_getxattr>).  See:"
33661 msgstr ""
33662
33663 #. type: textblock
33664 #: ../src/guestfs.pod:689
33665 msgid ""
33666 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33667 msgstr ""
33668 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33669
33670 #. type: =head2
33671 #: ../src/guestfs.pod:691
33672 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33673 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:693
33677 msgid ""
33678 "Although we don't want to discourage you from using the C API, we will "
33679 "mention here that the same API is also available in other languages."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:696
33684 msgid ""
33685 "The API is broadly identical in all supported languages.  This means that "
33686 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33687 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33688 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33689 "each language."
33690 msgstr ""
33691
33692 #. type: textblock
33693 #: ../src/guestfs.pod:702
33694 msgid ""
33695 "Error messages are automatically transformed into exceptions if the language "
33696 "supports it."
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:705
33701 msgid ""
33702 "We don't try to \"object orientify\" parts of the API in OO languages, "
33703 "although contributors are welcome to write higher level APIs above what we "
33704 "provide in their favourite languages if they wish."
33705 msgstr ""
33706
33707 #. type: =item
33708 #: ../src/guestfs.pod:711
33709 msgid "B<C++>"
33710 msgstr "B<C++>"
33711
33712 #. type: textblock
33713 #: ../src/guestfs.pod:713
33714 msgid ""
33715 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33716 "identical to the C API.  C++ classes and exceptions are not used."
33717 msgstr ""
33718
33719 #. type: =item
33720 #: ../src/guestfs.pod:717
33721 msgid "B<C#>"
33722 msgstr "B<C#>"
33723
33724 #. type: textblock
33725 #: ../src/guestfs.pod:719
33726 msgid ""
33727 "The C# bindings are highly experimental.  Please read the warnings at the "
33728 "top of C<csharp/Libguestfs.cs>."
33729 msgstr ""
33730
33731 #. type: =item
33732 #: ../src/guestfs.pod:722
33733 msgid "B<Haskell>"
33734 msgstr "B<Haskell>"
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:724
33738 msgid ""
33739 "This is the only language binding that is working but incomplete.  Only "
33740 "calls which return simple integers have been bound in Haskell, and we are "
33741 "looking for help to complete this binding."
33742 msgstr ""
33743
33744 #. type: =item
33745 #: ../src/guestfs.pod:728
33746 msgid "B<Java>"
33747 msgstr "B<Java>"
33748
33749 #. type: textblock
33750 #: ../src/guestfs.pod:730
33751 msgid ""
33752 "Full documentation is contained in the Javadoc which is distributed with "
33753 "libguestfs.  For examples, see L<guestfs-java(3)>."
33754 msgstr ""
33755
33756 #. type: =item
33757 #: ../src/guestfs.pod:733
33758 msgid "B<OCaml>"
33759 msgstr "B<OCaml>"
33760
33761 #. type: textblock
33762 #: ../src/guestfs.pod:735
33763 msgid "See L<guestfs-ocaml(3)>."
33764 msgstr "Див. L<guestfs-ocaml(3)>."
33765
33766 #. type: =item
33767 #: ../src/guestfs.pod:737
33768 msgid "B<Perl>"
33769 msgstr "B<Perl>"
33770
33771 #. type: textblock
33772 #: ../src/guestfs.pod:739
33773 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33774 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33775
33776 #. type: =item
33777 #: ../src/guestfs.pod:741
33778 msgid "B<PHP>"
33779 msgstr "B<PHP>"
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:743
33783 msgid ""
33784 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33785 "the php-libguestfs package for your distribution."
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:746
33790 msgid "The PHP binding only works correctly on 64 bit machines."
33791 msgstr ""
33792
33793 #. type: =item
33794 #: ../src/guestfs.pod:748
33795 msgid "B<Python>"
33796 msgstr "B<Python>"
33797
33798 #. type: textblock
33799 #: ../src/guestfs.pod:750
33800 msgid "See L<guestfs-python(3)>."
33801 msgstr "Див. L<guestfs-python(3)>."
33802
33803 #. type: =item
33804 #: ../src/guestfs.pod:752
33805 msgid "B<Ruby>"
33806 msgstr "B<Ruby>"
33807
33808 #. type: textblock
33809 #: ../src/guestfs.pod:754
33810 msgid "See L<guestfs-ruby(3)>."
33811 msgstr "Див. L<guestfs-ruby(3)>."
33812
33813 #. type: =item
33814 #: ../src/guestfs.pod:756
33815 msgid "B<shell scripts>"
33816 msgstr "B<скрипти оболонки>"
33817
33818 #. type: textblock
33819 #: ../src/guestfs.pod:758
33820 msgid "See L<guestfish(1)>."
33821 msgstr "Див. L<guestfish(1)>."
33822
33823 #. type: =head2
33824 #: ../src/guestfs.pod:762
33825 msgid "LIBGUESTFS GOTCHAS"
33826 msgstr ""
33827
33828 #. type: textblock
33829 #: ../src/guestfs.pod:764
33830 msgid ""
33831 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33832 "system [...] that works in the way it is documented but is counterintuitive "
33833 "and almost invites mistakes.\""
33834 msgstr ""
33835
33836 #. type: textblock
33837 #: ../src/guestfs.pod:768
33838 msgid ""
33839 "Since we developed libguestfs and the associated tools, there are several "
33840 "things we would have designed differently, but are now stuck with for "
33841 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33842 "release, you can expect these to change.  Beware of them."
33843 msgstr ""
33844
33845 #. type: =item
33846 #: ../src/guestfs.pod:776
33847 msgid "Autosync / forgetting to sync."
33848 msgstr ""
33849
33850 #. type: textblock
33851 #: ../src/guestfs.pod:778
33852 msgid ""
33853 "I<Update:> Autosync is enabled by default for all API users starting from "
33854 "libguestfs 1.5.24.  This section only applies to older versions."
33855 msgstr ""
33856
33857 #. type: textblock
33858 #: ../src/guestfs.pod:781
33859 msgid ""
33860 "When modifying a filesystem from C or another language, you B<must> unmount "
33861 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33862 "libguestfs handle.  You can also call:"
33863 msgstr ""
33864
33865 #. type: verbatim
33866 #: ../src/guestfs.pod:785
33867 #, no-wrap
33868 msgid ""
33869 " guestfs_set_autosync (g, 1);\n"
33870 "\n"
33871 msgstr ""
33872 " guestfs_set_autosync (g, 1);\n"
33873 "\n"
33874
33875 #. type: textblock
33876 #: ../src/guestfs.pod:787
33877 msgid ""
33878 "to have the unmount/sync done automatically for you when the handle 'g' is "
33879 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33880 msgstr ""
33881
33882 #. type: textblock
33883 #: ../src/guestfs.pod:791
33884 msgid ""
33885 "If you forget to do this, then it is entirely possible that your changes "
33886 "won't be written out, or will be partially written, or (very rarely) that "
33887 "you'll get disk corruption."
33888 msgstr ""
33889
33890 #. type: textblock
33891 #: ../src/guestfs.pod:795
33892 msgid ""
33893 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33894 "guestfish scripts that forget to sync will work just fine, which can make "
33895 "this very puzzling if you are trying to debug a problem."
33896 msgstr ""
33897
33898 #. type: =item
33899 #: ../src/guestfs.pod:799
33900 msgid "Mount option C<-o sync> should not be the default."
33901 msgstr ""
33902
33903 #. type: textblock
33904 #: ../src/guestfs.pod:801
33905 msgid ""
33906 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33907 "However C<-o sync> does not add any reliability benefit, but does have a "
33908 "very large performance impact."
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs.pod:805
33913 msgid ""
33914 "The work around is to use L</guestfs_mount_options> and set the mount "
33915 "options that you actually want to use."
33916 msgstr ""
33917
33918 #. type: =item
33919 #: ../src/guestfs.pod:808
33920 msgid "Read-only should be the default."
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:810
33925 msgid ""
33926 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33927 "specify I<--rw> if you want to make changes to the image."
33928 msgstr ""
33929
33930 #. type: textblock
33931 #: ../src/guestfs.pod:813
33932 msgid "This would reduce the potential to corrupt live VM images."
33933 msgstr ""
33934
33935 #. type: textblock
33936 #: ../src/guestfs.pod:815
33937 msgid ""
33938 "Note that many filesystems change the disk when you just mount and unmount, "
33939 "even if you didn't perform any writes.  You need to use L</"
33940 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33941 msgstr ""
33942
33943 #. type: =item
33944 #: ../src/guestfs.pod:819
33945 msgid "guestfish command line is hard to use."
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs.pod:821
33950 msgid ""
33951 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33952 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33953 "exist, so it fails.  In earlier versions of guestfish the error message was "
33954 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33955 "we should have used C<guestfish -c command> to run commands."
33956 msgstr ""
33957
33958 #. type: =item
33959 #: ../src/guestfs.pod:828
33960 msgid "guestfish megabyte modifiers don't work right on all commands"
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:830
33965 msgid ""
33966 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33967 "other modifiers).  What guestfish actually does is to multiply the number "
33968 "part by the modifier part and pass the result to the C API.  However this "
33969 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33970 "expecting some other unit (eg. megabytes)."
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:837
33975 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33976 msgstr ""
33977
33978 #. type: verbatim
33979 #: ../src/guestfs.pod:839
33980 #, no-wrap
33981 msgid ""
33982 " lvcreate LV VG 100M\n"
33983 "\n"
33984 msgstr ""
33985 " lvcreate LV VG 100M\n"
33986 "\n"
33987
33988 #. type: textblock
33989 #: ../src/guestfs.pod:841
33990 msgid ""
33991 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33992 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33993 "megabytes * megabytes) logical volume.  The error message you get from this "
33994 "is also a little obscure."
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs.pod:846
33999 msgid ""
34000 "This could be fixed in the generator by specially marking parameters and "
34001 "return values which take bytes or other units."
34002 msgstr ""
34003
34004 #. type: =item
34005 #: ../src/guestfs.pod:849
34006 msgid "Ambiguity between devices and paths"
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:851
34011 msgid ""
34012 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34013 "sdb2>) and a similar pathname.  A file might just happen to be called "
34014 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:856
34019 msgid ""
34020 "In the current API we usually resolve this ambiguity by having two separate "
34021 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34022 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34023 "detecting if the path supplied begins with C</dev/>."
34024 msgstr ""
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:862
34028 msgid ""
34029 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34030 "make paths/devices into structured names.  One way to do this would be to "
34031 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34032 "aspect of grub.  Another way would be to use a structured type, equivalent "
34033 "to this OCaml type:"
34034 msgstr ""
34035
34036 #. type: verbatim
34037 #: ../src/guestfs.pod:868
34038 #, no-wrap
34039 msgid ""
34040 " type path = Path of string | Device of int | Partition of int * int\n"
34041 "\n"
34042 msgstr ""
34043
34044 #. type: textblock
34045 #: ../src/guestfs.pod:870
34046 msgid "which would allow you to pass arguments like:"
34047 msgstr ""
34048
34049 #. type: verbatim
34050 #: ../src/guestfs.pod:872
34051 #, no-wrap
34052 msgid ""
34053 " Path \"/foo/bar\"\n"
34054 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34055 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34056 " Path \"/dev/sdb2\"    (* not a device *)\n"
34057 "\n"
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:877
34062 msgid ""
34063 "As you can see there are still problems to resolve even with this "
34064 "representation.  Also consider how it might work in guestfish."
34065 msgstr ""
34066
34067 #. type: =head2
34068 #: ../src/guestfs.pod:882
34069 msgid "KEYS AND PASSPHRASES"
34070 msgstr "КЛЮЧІ І ПАРОЛІ"
34071
34072 #. type: textblock
34073 #: ../src/guestfs.pod:884
34074 msgid ""
34075 "Certain libguestfs calls take a parameter that contains sensitive key "
34076 "material, passed in as a C string."
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:887
34081 msgid ""
34082 "In the future we would hope to change the libguestfs implementation so that "
34083 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34084 "swap.  However this is I<not> done at the moment, because of the complexity "
34085 "of such an implementation."
34086 msgstr ""
34087
34088 #. type: textblock
34089 #: ../src/guestfs.pod:892
34090 msgid ""
34091 "Therefore you should be aware that any key parameter you pass to libguestfs "
34092 "might end up being written out to the swap partition.  If this is a concern, "
34093 "scrub the swap partition or don't use libguestfs on encrypted devices."
34094 msgstr ""
34095
34096 #. type: =head2
34097 #: ../src/guestfs.pod:897
34098 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34099 msgstr ""
34100
34101 #. type: textblock
34102 #: ../src/guestfs.pod:899
34103 msgid ""
34104 "All high-level libguestfs actions are synchronous.  If you want to use "
34105 "libguestfs asynchronously then you must create a thread."
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs.pod:902
34110 msgid ""
34111 "Only use the handle from a single thread.  Either use the handle exclusively "
34112 "from one thread, or provide your own mutex so that two threads cannot issue "
34113 "calls on the same handle at the same time."
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs.pod:906
34118 msgid ""
34119 "See the graphical program guestfs-browser for one possible architecture for "
34120 "multithreaded programs using libvirt and libguestfs."
34121 msgstr ""
34122
34123 #. type: =head2
34124 #: ../src/guestfs.pod:909
34125 msgid "PATH"
34126 msgstr "ШЛЯХ"
34127
34128 #. type: textblock
34129 #: ../src/guestfs.pod:911
34130 msgid ""
34131 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34132 "internal path."
34133 msgstr ""
34134
34135 #. type: textblock
34136 #: ../src/guestfs.pod:914
34137 msgid ""
34138 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34139 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34140 msgstr ""
34141
34142 #. type: textblock
34143 #: ../src/guestfs.pod:917
34144 msgid ""
34145 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34146 "to change the directories that libguestfs will search in.  The value is a "
34147 "colon-separated list of paths.  The current directory is I<not> searched "
34148 "unless the path contains an empty element or C<.>.  For example "
34149 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34150 "then C</usr/lib/guestfs>."
34151 msgstr ""
34152
34153 #. type: =head2
34154 #: ../src/guestfs.pod:924
34155 msgid "QEMU WRAPPERS"
34156 msgstr ""
34157
34158 #. type: textblock
34159 #: ../src/guestfs.pod:926
34160 msgid ""
34161 "If you want to compile your own qemu, run qemu from a non-standard location, "
34162 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34163 "around qemu."
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs.pod:930
34168 msgid ""
34169 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34170 "last command in the shell script (so that qemu replaces the shell and "
34171 "becomes the direct child of the libguestfs-using program).  If you don't do "
34172 "this, then the qemu process won't be cleaned up correctly."
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:935
34177 msgid ""
34178 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34179 "source:"
34180 msgstr ""
34181
34182 #. type: verbatim
34183 #: ../src/guestfs.pod:938
34184 #, no-wrap
34185 msgid ""
34186 " #!/bin/sh -\n"
34187 " qemudir=/home/rjones/d/qemu\n"
34188 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34189 "\n"
34190 msgstr ""
34191 " #!/bin/sh -\n"
34192 " qemudir=/home/rjones/d/qemu\n"
34193 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34194 "\n"
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:942
34198 msgid ""
34199 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34200 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34201 "example:"
34202 msgstr ""
34203
34204 #. type: verbatim
34205 #: ../src/guestfs.pod:946
34206 #, no-wrap
34207 msgid ""
34208 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34209 "\n"
34210 msgstr ""
34211 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34212 "\n"
34213
34214 #. type: textblock
34215 #: ../src/guestfs.pod:948
34216 msgid ""
34217 "Note that libguestfs also calls qemu with the -help and -version options in "
34218 "order to determine features."
34219 msgstr ""
34220
34221 #. type: =head2
34222 #: ../src/guestfs.pod:951
34223 msgid "ATTACHING TO RUNNING DAEMONS"
34224 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:953
34228 msgid ""
34229 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34230 "babies.  Use with caution."
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs.pod:956
34235 msgid ""
34236 "I<Note (2):> This section explains how to attach to a running daemon from a "
34237 "low level perspective.  For most users, simply using virt tools such as "
34238 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34239 msgstr ""
34240
34241 #. type: =head3
34242 #: ../src/guestfs.pod:960
34243 msgid "Using guestfs_set_attach_method"
34244 msgstr "За допомогою guestfs_set_attach_method"
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:962
34248 msgid ""
34249 "By calling L</guestfs_set_attach_method> you can change how the library "
34250 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34251 "ARCHITECTURE> for some background)."
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs.pod:966
34256 msgid ""
34257 "The normal attach method is C<appliance>, where a small appliance is created "
34258 "containing the daemon, and then the library connects to this."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:969
34263 msgid ""
34264 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34265 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34266 "daemon over the Unix domain socket."
34267 msgstr ""
34268
34269 #. type: textblock
34270 #: ../src/guestfs.pod:973
34271 msgid ""
34272 "The normal use for this is to connect to a running virtual machine that "
34273 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34274 "files inside the live virtual machine."
34275 msgstr ""
34276
34277 #. type: =head3
34278 #: ../src/guestfs.pod:977
34279 msgid "Using guestfs_add_domain with live flag"
34280 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34281
34282 #. type: textblock
34283 #: ../src/guestfs.pod:979
34284 msgid ""
34285 "L</guestfs_add_domain> provides some help for getting the correct attach "
34286 "method.  If you pass the C<live> option to this function, then (if the "
34287 "virtual machine is running) it will examine the libvirt XML looking for a "
34288 "virtio-serial channel to connect to:"
34289 msgstr ""
34290
34291 #. type: verbatim
34292 #: ../src/guestfs.pod:985
34293 #, no-wrap
34294 msgid ""
34295 " <domain>\n"
34296 "   ...\n"
34297 "   <devices>\n"
34298 "     ...\n"
34299 "     <channel type='unix'>\n"
34300 "       <source mode='bind' path='/path/to/socket'/>\n"
34301 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34302 "     </channel>\n"
34303 "     ...\n"
34304 "   </devices>\n"
34305 " </domain>\n"
34306 "\n"
34307 msgstr ""
34308 " <domain>\n"
34309 "   ...\n"
34310 "   <devices>\n"
34311 "     ...\n"
34312 "     <channel type='unix'>\n"
34313 "       <source mode='bind' path='/path/to/socket'/>\n"
34314 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34315 "     </channel>\n"
34316 "     ...\n"
34317 "   </devices>\n"
34318 " </domain>\n"
34319 "\n"
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:997
34323 msgid ""
34324 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34325 "method to C<unix:/path/to/socket>."
34326 msgstr ""
34327
34328 #. type: textblock
34329 #: ../src/guestfs.pod:1000
34330 msgid ""
34331 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34332 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34333 "to attach to and modify live virtual machines."
34334 msgstr ""
34335
34336 #. type: textblock
34337 #: ../src/guestfs.pod:1004
34338 msgid ""
34339 "The virtual machine needs to have been set up beforehand so that it has the "
34340 "virtio-serial channel and so that guestfsd is running inside it."
34341 msgstr ""
34342
34343 #. type: =head2
34344 #: ../src/guestfs.pod:1008
34345 msgid "ABI GUARANTEE"
34346 msgstr "ГАРАНТІЯ ЩОДО ABI"
34347
34348 #. type: textblock
34349 #: ../src/guestfs.pod:1010
34350 msgid ""
34351 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34352 "actions as outlined in this section.  Although we will deprecate some "
34353 "actions, for example if they get replaced by newer calls, we will keep the "
34354 "old actions forever.  This allows you the developer to program in confidence "
34355 "against the libguestfs API."
34356 msgstr ""
34357
34358 #. type: =head2
34359 #: ../src/guestfs.pod:1016
34360 msgid "BLOCK DEVICE NAMING"
34361 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:1018
34365 msgid ""
34366 "In the kernel there is now quite a profusion of schemata for naming block "
34367 "devices (in this context, by I<block device> I mean a physical or virtual "
34368 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34369 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34370 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34371 "for the old IDE driver (particularly for SATA devices) those devices also "
34372 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34373 "paravirtualized drivers.  This has created several different naming systems, "
34374 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs.pod:1030
34379 msgid ""
34380 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34381 "Linux kernel to access block devices.  We can run a variety of appliances "
34382 "based on a variety of Linux kernels."
34383 msgstr ""
34384
34385 #. type: textblock
34386 #: ../src/guestfs.pod:1034
34387 msgid ""
34388 "This causes a problem for libguestfs because many API calls use device or "
34389 "partition names.  Working scripts and the recipe (example) scripts that we "
34390 "make available over the internet could fail if the naming scheme changes."
34391 msgstr ""
34392
34393 #. type: textblock
34394 #: ../src/guestfs.pod:1039
34395 msgid ""
34396 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34397 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34398 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34399 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34400 msgstr ""
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:1045
34404 msgid ""
34405 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34406 "L</guestfs_list_partitions> and similar calls return the true names of the "
34407 "devices and partitions as known to the appliance."
34408 msgstr ""
34409
34410 #. type: =head3
34411 #: ../src/guestfs.pod:1050
34412 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs.pod:1052
34417 msgid ""
34418 "Usually this translation is transparent.  However in some (very rare)  cases "
34419 "you may need to know the exact algorithm.  Such cases include where you use "
34420 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34421 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1058
34426 msgid ""
34427 "The algorithm is applied only to I<parameters> which are known to be either "
34428 "device or partition names.  Return values from functions such as L</"
34429 "guestfs_list_devices> are never changed."
34430 msgstr ""
34431
34432 #. type: textblock
34433 #: ../src/guestfs.pod:1066
34434 msgid "Is the string a parameter which is a device or partition name?"
34435 msgstr ""
34436
34437 #. type: textblock
34438 #: ../src/guestfs.pod:1070
34439 msgid "Does the string begin with C</dev/sd>?"
34440 msgstr "Чи починається рядок з C</dev/sd>?"
34441
34442 #. type: textblock
34443 #: ../src/guestfs.pod:1074
34444 msgid ""
34445 "Does the named device exist? If so, we use that device.  However if I<not> "
34446 "then we continue with this algorithm."
34447 msgstr ""
34448
34449 #. type: textblock
34450 #: ../src/guestfs.pod:1079
34451 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:1081
34456 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:1083
34461 msgid "If that named device exists, use it.  If not, continue."
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:1087
34466 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../src/guestfs.pod:1089
34471 msgid "If that named device exists, use it.  If not, return an error."
34472 msgstr ""
34473
34474 #. type: =head3
34475 #: ../src/guestfs.pod:1093
34476 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:1095
34481 msgid ""
34482 "Although the standard naming scheme and automatic translation is useful for "
34483 "simple programs and guestfish scripts, for larger programs it is best not to "
34484 "rely on this mechanism."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:1099
34489 msgid ""
34490 "Where possible for maximum future portability programs using libguestfs "
34491 "should use these future-proof techniques:"
34492 msgstr ""
34493
34494 #. type: textblock
34495 #: ../src/guestfs.pod:1106
34496 msgid ""
34497 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34498 "device names, and then use those names directly."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1109
34503 msgid ""
34504 "Since those device names exist by definition, they will never be translated."
34505 msgstr ""
34506
34507 #. type: textblock
34508 #: ../src/guestfs.pod:1114
34509 msgid ""
34510 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34511 "filesystem labels."
34512 msgstr ""
34513
34514 #. type: =head1
34515 #: ../src/guestfs.pod:1119
34516 msgid "SECURITY"
34517 msgstr "БЕЗПЕКА"
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:1121
34521 msgid ""
34522 "This section discusses security implications of using libguestfs, "
34523 "particularly with untrusted or malicious guests or disk images."
34524 msgstr ""
34525
34526 #. type: =head2
34527 #: ../src/guestfs.pod:1124
34528 msgid "GENERAL SECURITY CONSIDERATIONS"
34529 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34530
34531 #. type: textblock
34532 #: ../src/guestfs.pod:1126
34533 msgid ""
34534 "Be careful with any files or data that you download from a guest (by "
34535 "\"download\" we mean not just the L</guestfs_download> command but any "
34536 "command that reads files, filenames, directories or anything else from a "
34537 "disk image).  An attacker could manipulate the data to fool your program "
34538 "into doing the wrong thing.  Consider cases such as:"
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs.pod:1136
34543 msgid "the data (file etc) not being present"
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:1140
34548 msgid "being present but empty"
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:1144
34553 msgid "being much larger than normal"
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:1148
34558 msgid "containing arbitrary 8 bit data"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:1152
34563 msgid "being in an unexpected character encoding"
34564 msgstr ""
34565
34566 #. type: textblock
34567 #: ../src/guestfs.pod:1156
34568 msgid "containing homoglyphs."
34569 msgstr ""
34570
34571 #. type: =head2
34572 #: ../src/guestfs.pod:1160
34573 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34574 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34575
34576 #. type: textblock
34577 #: ../src/guestfs.pod:1162
34578 msgid ""
34579 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34580 "(VFS) module can sometimes be escalated into exploits by deliberately "
34581 "creating a malicious, malformed filesystem.  These exploits are very severe "
34582 "for two reasons.  Firstly there are very many filesystem drivers in the "
34583 "kernel, and many of them are infrequently used and not much developer "
34584 "attention has been paid to the code.  Linux userspace helps potential "
34585 "crackers by detecting the filesystem type and automatically choosing the "
34586 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34587 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34588 "exploit (worse in some ways), giving immediate and total access to the "
34589 "system right down to the hardware level."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1175
34594 msgid ""
34595 "That explains why you should never mount a filesystem from an untrusted "
34596 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34597 "inside a qemu virtual machine, usually running as a non-root user.  The "
34598 "attacker would need to write a filesystem which first exploited the kernel, "
34599 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34600 "the libguestfs protocol, and finally to be as serious as the host kernel "
34601 "exploit it would need to escalate its privileges to root.  This multi-step "
34602 "escalation, performed by a static piece of data, is thought to be extremely "
34603 "hard to do, although we never say 'never' about security issues."
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:1186
34608 msgid ""
34609 "In any case callers can reduce the attack surface by forcing the filesystem "
34610 "type when mounting (use L</guestfs_mount_vfs>)."
34611 msgstr ""
34612
34613 #. type: =head2
34614 #: ../src/guestfs.pod:1189
34615 msgid "PROTOCOL SECURITY"
34616 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:1191
34620 msgid ""
34621 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34622 "defined upper message size.  However a program that uses libguestfs must "
34623 "also take care - for example you can write a program that downloads a binary "
34624 "from a disk image and executes it locally, and no amount of protocol "
34625 "security will save you from the consequences."
34626 msgstr ""
34627
34628 #. type: =head2
34629 #: ../src/guestfs.pod:1197
34630 msgid "INSPECTION SECURITY"
34631 msgstr ""
34632
34633 #. type: textblock
34634 #: ../src/guestfs.pod:1199
34635 msgid ""
34636 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34637 "directly from the guest, and these could contain any 8 bit data.  Callers "
34638 "should be careful to escape these before printing them to a structured file "
34639 "(for example, use HTML escaping if creating a web page)."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1205
34644 msgid ""
34645 "Guest configuration may be altered in unusual ways by the administrator of "
34646 "the virtual machine, and may not reflect reality (particularly for untrusted "
34647 "or actively malicious guests).  For example we parse the hostname from "
34648 "configuration files like C</etc/sysconfig/network> that we find in the "
34649 "guest, but the guest administrator can easily manipulate these files to "
34650 "provide the wrong hostname."
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:1213
34655 msgid ""
34656 "The inspection API parses guest configuration using two external libraries: "
34657 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34658 "designed to be robust in the face of malicious data, although denial of "
34659 "service attacks are still possible, for example with oversized configuration "
34660 "files."
34661 msgstr ""
34662
34663 #. type: =head2
34664 #: ../src/guestfs.pod:1219
34665 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34666 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34667
34668 #. type: textblock
34669 #: ../src/guestfs.pod:1221
34670 msgid ""
34671 "Be very cautious about running commands from the guest.  By running a "
34672 "command in the guest, you are giving CPU time to a binary that you do not "
34673 "control, under the same user account as the library, albeit wrapped in qemu "
34674 "virtualization.  More information and alternatives can be found in the "
34675 "section L</RUNNING COMMANDS>."
34676 msgstr ""
34677
34678 #. type: =head2
34679 #: ../src/guestfs.pod:1227
34680 msgid "CVE-2010-3851"
34681 msgstr "CVE-2010-3851"
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:1229
34685 msgid "https://bugzilla.redhat.com/642934"
34686 msgstr "https://bugzilla.redhat.com/642934"
34687
34688 #. type: textblock
34689 #: ../src/guestfs.pod:1231
34690 msgid ""
34691 "This security bug concerns the automatic disk format detection that qemu "
34692 "does on disk images."
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:1234
34697 msgid ""
34698 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34699 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34700 "for one of the known headers, and if none is found then assuming the disk "
34701 "image must be raw."
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:1239
34706 msgid ""
34707 "This allows a guest which has been given a raw disk image to write some "
34708 "other header.  At next boot (or when the disk image is accessed by "
34709 "libguestfs) qemu would do autodetection and think the disk image format was, "
34710 "say, qcow2 based on the header written by the guest."
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs.pod:1244
34715 msgid ""
34716 "This in itself would not be a problem, but qcow2 offers many features, one "
34717 "of which is to allow a disk image to refer to another image (called the "
34718 "\"backing disk\").  It does this by placing the path to the backing disk "
34719 "into the qcow2 header.  This path is not validated and could point to any "
34720 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34721 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34722 "control of the attacker."
34723 msgstr ""
34724
34725 #. type: textblock
34726 #: ../src/guestfs.pod:1252
34727 msgid ""
34728 "In libguestfs this is rather hard to exploit except under two circumstances:"
34729 msgstr ""
34730
34731 #. type: textblock
34732 #: ../src/guestfs.pod:1259
34733 msgid "You have enabled the network or have opened the disk in write mode."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:1263
34738 msgid ""
34739 "You are also running untrusted code from the guest (see L</RUNNING "
34740 "COMMANDS>)."
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1268
34745 msgid ""
34746 "The way to avoid this is to specify the expected disk format when adding "
34747 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34748 "should always do this if the disk is raw format, and it's a good idea for "
34749 "other cases too."
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:1273
34754 msgid ""
34755 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34756 "format is fetched from libvirt and passed through."
34757 msgstr ""
34758
34759 #. type: textblock
34760 #: ../src/guestfs.pod:1276
34761 msgid ""
34762 "For libguestfs tools, use the I<--format> command line parameter as "
34763 "appropriate."
34764 msgstr ""
34765
34766 #. type: =head1
34767 #: ../src/guestfs.pod:1279
34768 msgid "CONNECTION MANAGEMENT"
34769 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34770
34771 #. type: =head2
34772 #: ../src/guestfs.pod:1281
34773 msgid "guestfs_h *"
34774 msgstr "guestfs_h *"
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:1283
34778 msgid ""
34779 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34780 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34781 "handle and release all resources used."
34782 msgstr ""
34783
34784 #. type: textblock
34785 #: ../src/guestfs.pod:1287
34786 msgid ""
34787 "For information on using multiple handles and threads, see the section L</"
34788 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34789 msgstr ""
34790
34791 #. type: =head2
34792 #: ../src/guestfs.pod:1290
34793 msgid "guestfs_create"
34794 msgstr "guestfs_create"
34795
34796 #. type: verbatim
34797 #: ../src/guestfs.pod:1292
34798 #, no-wrap
34799 msgid ""
34800 " guestfs_h *guestfs_create (void);\n"
34801 "\n"
34802 msgstr ""
34803 " guestfs_h *guestfs_create (void);\n"
34804 "\n"
34805
34806 #. type: textblock
34807 #: ../src/guestfs.pod:1294
34808 msgid "Create a connection handle."
34809 msgstr "Створити дескриптор з’єднання."
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:1296
34813 msgid ""
34814 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34815 "NULL."
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:1299
34820 msgid ""
34821 "You have to \"configure\" the handle after creating it.  This includes "
34822 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34823 "handle at least once."
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:1303
34828 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34829 msgstr ""
34830
34831 #. type: textblock
34832 #: ../src/guestfs.pod:1305
34833 msgid ""
34834 "You may also want to configure error handling for the handle.  See the L</"
34835 "ERROR HANDLING> section below."
34836 msgstr ""
34837
34838 #. type: =head2
34839 #: ../src/guestfs.pod:1308
34840 msgid "guestfs_close"
34841 msgstr "guestfs_close"
34842
34843 #. type: verbatim
34844 #: ../src/guestfs.pod:1310
34845 #, no-wrap
34846 msgid ""
34847 " void guestfs_close (guestfs_h *g);\n"
34848 "\n"
34849 msgstr ""
34850 " void guestfs_close (guestfs_h *g);\n"
34851 "\n"
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:1312
34855 msgid "This closes the connection handle and frees up all resources used."
34856 msgstr ""
34857
34858 #. type: textblock
34859 #: ../src/guestfs.pod:1314
34860 msgid ""
34861 "If autosync was set on the handle and the handle was launched, then this "
34862 "implicitly calls various functions to unmount filesystems and sync the "
34863 "disk.  See L</guestfs_set_autosync> for more details."
34864 msgstr ""
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:1318
34868 msgid "If a close callback was set on the handle, then it is called."
34869 msgstr ""
34870
34871 #. type: =head1
34872 #: ../src/guestfs.pod:1320
34873 msgid "ERROR HANDLING"
34874 msgstr "ОБРОБКА ПОМИЛОК"
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:1322
34878 msgid ""
34879 "API functions can return errors.  For example, almost all functions that "
34880 "return C<int> will return C<-1> to indicate an error."
34881 msgstr ""
34882
34883 #. type: textblock
34884 #: ../src/guestfs.pod:1325
34885 msgid ""
34886 "Additional information is available for errors: an error message string and "
34887 "optionally an error number (errno) if the thing that failed was a system "
34888 "call."
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs.pod:1329
34893 msgid ""
34894 "You can get at the additional information about the last error on the handle "
34895 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34896 "up an error handler with L</guestfs_set_error_handler>."
34897 msgstr ""
34898
34899 #. type: textblock
34900 #: ../src/guestfs.pod:1334
34901 msgid ""
34902 "When the handle is created, a default error handler is installed which "
34903 "prints the error message string to C<stderr>.  For small short-running "
34904 "command line programs it is sufficient to do:"
34905 msgstr ""
34906
34907 #. type: verbatim
34908 #: ../src/guestfs.pod:1338
34909 #, no-wrap
34910 msgid ""
34911 " if (guestfs_launch (g) == -1)\n"
34912 "   exit (EXIT_FAILURE);\n"
34913 "\n"
34914 msgstr ""
34915 " if (guestfs_launch (g) == -1)\n"
34916 "   exit (EXIT_FAILURE);\n"
34917 "\n"
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:1341
34921 msgid ""
34922 "since the default error handler will ensure that an error message has been "
34923 "printed to C<stderr> before the program exits."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:1344
34928 msgid ""
34929 "For other programs the caller will almost certainly want to install an "
34930 "alternate error handler or do error handling in-line like this:"
34931 msgstr ""
34932
34933 #. type: verbatim
34934 #: ../src/guestfs.pod:1347
34935 #, no-wrap
34936 msgid ""
34937 " g = guestfs_create ();\n"
34938 " \n"
34939 msgstr ""
34940 " g = guestfs_create ();\n"
34941 " \n"
34942
34943 #. type: verbatim
34944 #: ../src/guestfs.pod:1349
34945 #, no-wrap
34946 msgid ""
34947 " /* This disables the default behaviour of printing errors\n"
34948 "    on stderr. */\n"
34949 " guestfs_set_error_handler (g, NULL, NULL);\n"
34950 " \n"
34951 msgstr ""
34952
34953 #. type: verbatim
34954 #: ../src/guestfs.pod:1353
34955 #, no-wrap
34956 msgid ""
34957 " if (guestfs_launch (g) == -1) {\n"
34958 "   /* Examine the error message and print it etc. */\n"
34959 "   char *msg = guestfs_last_error (g);\n"
34960 "   int errnum = guestfs_last_errno (g);\n"
34961 "   fprintf (stderr, \"%s\\n\", msg);\n"
34962 "   /* ... */\n"
34963 "  }\n"
34964 "\n"
34965 msgstr ""
34966 " if (guestfs_launch (g) == -1) {\n"
34967 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
34968 "   char *msg = guestfs_last_error (g);\n"
34969 "   int errnum = guestfs_last_errno (g);\n"
34970 "   fprintf (stderr, \"%s\\n\", msg);\n"
34971 "   /* ... */\n"
34972 "  }\n"
34973 "\n"
34974
34975 #. type: textblock
34976 #: ../src/guestfs.pod:1361
34977 msgid ""
34978 "Out of memory errors are handled differently.  The default action is to call "
34979 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34980 "guestfs_set_out_of_memory_handler>."
34981 msgstr ""
34982
34983 #. type: textblock
34984 #: ../src/guestfs.pod:1365
34985 msgid ""
34986 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34987 "because there is no handle if this happens there is no way to get additional "
34988 "error information.  However L</guestfs_create> is supposed to be a "
34989 "lightweight operation which can only fail because of insufficient memory (it "
34990 "returns NULL in this case)."
34991 msgstr ""
34992
34993 #. type: =head2
34994 #: ../src/guestfs.pod:1371
34995 msgid "guestfs_last_error"
34996 msgstr "guestfs_last_error"
34997
34998 #. type: verbatim
34999 #: ../src/guestfs.pod:1373
35000 #, no-wrap
35001 msgid ""
35002 " const char *guestfs_last_error (guestfs_h *g);\n"
35003 "\n"
35004 msgstr ""
35005 " const char *guestfs_last_error (guestfs_h *g);\n"
35006 "\n"
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:1375
35010 msgid ""
35011 "This returns the last error message that happened on C<g>.  If there has not "
35012 "been an error since the handle was created, then this returns C<NULL>."
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:1379
35017 msgid ""
35018 "The lifetime of the returned string is until the next error occurs, or L</"
35019 "guestfs_close> is called."
35020 msgstr ""
35021
35022 #. type: =head2
35023 #: ../src/guestfs.pod:1382
35024 msgid "guestfs_last_errno"
35025 msgstr "guestfs_last_errno"
35026
35027 #. type: verbatim
35028 #: ../src/guestfs.pod:1384
35029 #, no-wrap
35030 msgid ""
35031 " int guestfs_last_errno (guestfs_h *g);\n"
35032 "\n"
35033 msgstr ""
35034 " int guestfs_last_errno (guestfs_h *g);\n"
35035 "\n"
35036
35037 #. type: textblock
35038 #: ../src/guestfs.pod:1386
35039 msgid "This returns the last error number (errno) that happened on C<g>."
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:1388
35044 msgid "If successful, an errno integer not equal to zero is returned."
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:1390
35049 msgid ""
35050 "If no error, this returns 0.  This call can return 0 in three situations:"
35051 msgstr ""
35052
35053 #. type: textblock
35054 #: ../src/guestfs.pod:1397
35055 msgid "There has not been any error on the handle."
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:1401
35060 msgid ""
35061 "There has been an error but the errno was meaningless.  This corresponds to "
35062 "the case where the error did not come from a failed system call, but for "
35063 "some other reason."
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:1407
35068 msgid ""
35069 "There was an error from a failed system call, but for some reason the errno "
35070 "was not captured and returned.  This usually indicates a bug in libguestfs."
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:1413
35075 msgid ""
35076 "Libguestfs tries to convert the errno from inside the applicance into a "
35077 "corresponding errno for the caller (not entirely trivial: the appliance "
35078 "might be running a completely different operating system from the library "
35079 "and error numbers are not standardized across Un*xen).  If this could not be "
35080 "done, then the error is translated to C<EINVAL>.  In practice this should "
35081 "only happen in very rare circumstances."
35082 msgstr ""
35083
35084 #. type: =head2
35085 #: ../src/guestfs.pod:1421
35086 msgid "guestfs_set_error_handler"
35087 msgstr "guestfs_set_error_handler"
35088
35089 #. type: verbatim
35090 #: ../src/guestfs.pod:1423
35091 #, no-wrap
35092 msgid ""
35093 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35094 "                                           void *opaque,\n"
35095 "                                           const char *msg);\n"
35096 " void guestfs_set_error_handler (guestfs_h *g,\n"
35097 "                                 guestfs_error_handler_cb cb,\n"
35098 "                                 void *opaque);\n"
35099 "\n"
35100 msgstr ""
35101 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35102 "                                           void *opaque,\n"
35103 "                                           const char *msg);\n"
35104 " void guestfs_set_error_handler (guestfs_h *g,\n"
35105 "                                 guestfs_error_handler_cb cb,\n"
35106 "                                 void *opaque);\n"
35107 "\n"
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:1430
35111 msgid ""
35112 "The callback C<cb> will be called if there is an error.  The parameters "
35113 "passed to the callback are an opaque data pointer and the error message "
35114 "string."
35115 msgstr ""
35116
35117 #. type: textblock
35118 #: ../src/guestfs.pod:1434
35119 msgid ""
35120 "C<errno> is not passed to the callback.  To get that the callback must call "
35121 "L</guestfs_last_errno>."
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:1437
35126 msgid ""
35127 "Note that the message string C<msg> is freed as soon as the callback "
35128 "function returns, so if you want to stash it somewhere you must make your "
35129 "own copy."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:1441
35134 msgid "The default handler prints messages on C<stderr>."
35135 msgstr ""
35136
35137 #. type: textblock
35138 #: ../src/guestfs.pod:1443
35139 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35140 msgstr ""
35141
35142 #. type: =head2
35143 #: ../src/guestfs.pod:1445
35144 msgid "guestfs_get_error_handler"
35145 msgstr "guestfs_get_error_handler"
35146
35147 #. type: verbatim
35148 #: ../src/guestfs.pod:1447
35149 #, no-wrap
35150 msgid ""
35151 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35152 "                                                     void **opaque_rtn);\n"
35153 "\n"
35154 msgstr ""
35155 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35156 "                                                     void **opaque_rtn);\n"
35157 "\n"
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:1450
35161 msgid "Returns the current error handler callback."
35162 msgstr ""
35163
35164 #. type: =head2
35165 #: ../src/guestfs.pod:1452
35166 msgid "guestfs_set_out_of_memory_handler"
35167 msgstr "guestfs_set_out_of_memory_handler"
35168
35169 #. type: verbatim
35170 #: ../src/guestfs.pod:1454
35171 #, fuzzy, no-wrap
35172 #| msgid ""
35173 #| " typedef void (*guestfs_abort_cb) (void);\n"
35174 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35175 #| "                                        guestfs_abort_cb);\n"
35176 #| "\n"
35177 msgid ""
35178 " typedef void (*guestfs_abort_cb) (void);\n"
35179 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35180 "                                         guestfs_abort_cb);\n"
35181 "\n"
35182 msgstr ""
35183 " typedef void (*guestfs_abort_cb) (void);\n"
35184 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35185 "                                        guestfs_abort_cb);\n"
35186 "\n"
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:1458
35190 msgid ""
35191 "The callback C<cb> will be called if there is an out of memory situation.  "
35192 "I<Note this callback must not return>."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:1461
35197 msgid "The default is to call L<abort(3)>."
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:1463
35202 msgid ""
35203 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35204 msgstr ""
35205
35206 #. type: =head2
35207 #: ../src/guestfs.pod:1466
35208 msgid "guestfs_get_out_of_memory_handler"
35209 msgstr "guestfs_get_out_of_memory_handler"
35210
35211 #. type: verbatim
35212 #: ../src/guestfs.pod:1468
35213 #, no-wrap
35214 msgid ""
35215 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35216 "\n"
35217 msgstr ""
35218 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35219 "\n"
35220
35221 #. type: textblock
35222 #: ../src/guestfs.pod:1470
35223 msgid "This returns the current out of memory handler."
35224 msgstr ""
35225
35226 #. type: =head1
35227 #: ../src/guestfs.pod:1472
35228 msgid "API CALLS"
35229 msgstr "ВИКЛИКИ API"
35230
35231 #. type: =head1
35232 #: ../src/guestfs.pod:1476
35233 msgid "STRUCTURES"
35234 msgstr "СТРУКТУРИ"
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:1478
35238 msgid "@STRUCTS@"
35239 msgstr "@STRUCTS@"
35240
35241 #. type: =head1
35242 #: ../src/guestfs.pod:1480
35243 msgid "AVAILABILITY"
35244 msgstr "ДОСТУПНІСТЬ"
35245
35246 #. type: =head2
35247 #: ../src/guestfs.pod:1482
35248 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35249 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:1484
35253 msgid ""
35254 "Using L</guestfs_available> you can test availability of the following "
35255 "groups of functions.  This test queries the appliance to see if the "
35256 "appliance you are currently using supports the functionality."
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:1489
35261 msgid "@AVAILABILITY@"
35262 msgstr "@AVAILABILITY@"
35263
35264 #. type: =head2
35265 #: ../src/guestfs.pod:1491
35266 msgid "GUESTFISH supported COMMAND"
35267 msgstr ""
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:1493
35271 msgid ""
35272 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35273 "prints out the available groups and whether they are supported by this build "
35274 "of libguestfs.  Note however that you have to do C<run> first."
35275 msgstr ""
35276
35277 #. type: =head2
35278 #: ../src/guestfs.pod:1498
35279 msgid "SINGLE CALLS AT COMPILE TIME"
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:1500
35284 msgid ""
35285 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35286 "function, such as:"
35287 msgstr ""
35288
35289 #. type: verbatim
35290 #: ../src/guestfs.pod:1503
35291 #, no-wrap
35292 msgid ""
35293 " #define LIBGUESTFS_HAVE_DD 1\n"
35294 "\n"
35295 msgstr ""
35296 " #define LIBGUESTFS_HAVE_DD 1\n"
35297 "\n"
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:1505
35301 msgid "if L</guestfs_dd> is available."
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:1507
35306 msgid ""
35307 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35308 "function is available at compile time, we recommended using build tools such "
35309 "as autoconf or cmake.  For example in autotools you could use:"
35310 msgstr ""
35311
35312 #. type: verbatim
35313 #: ../src/guestfs.pod:1512
35314 #, no-wrap
35315 msgid ""
35316 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35317 " AC_CHECK_FUNCS([guestfs_dd])\n"
35318 "\n"
35319 msgstr ""
35320 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35321 " AC_CHECK_FUNCS([guestfs_dd])\n"
35322 "\n"
35323
35324 #. type: textblock
35325 #: ../src/guestfs.pod:1515
35326 msgid ""
35327 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35328 "in your program."
35329 msgstr ""
35330
35331 #. type: =head2
35332 #: ../src/guestfs.pod:1518
35333 msgid "SINGLE CALLS AT RUN TIME"
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:1520
35338 msgid ""
35339 "Testing at compile time doesn't guarantee that a function really exists in "
35340 "the library.  The reason is that you might be dynamically linked against a "
35341 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35342 "This situation unfortunately results in a segmentation fault, which is a "
35343 "shortcoming of the C dynamic linking system itself."
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:1527
35348 msgid ""
35349 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35350 "in this example program (note that you still need the compile time check as "
35351 "well):"
35352 msgstr ""
35353
35354 #. type: verbatim
35355 #: ../src/guestfs.pod:1531
35356 #, no-wrap
35357 msgid ""
35358 " #include <stdio.h>\n"
35359 " #include <stdlib.h>\n"
35360 " #include <unistd.h>\n"
35361 " #include <dlfcn.h>\n"
35362 " #include <guestfs.h>\n"
35363 " \n"
35364 msgstr ""
35365 " #include <stdio.h>\n"
35366 " #include <stdlib.h>\n"
35367 " #include <unistd.h>\n"
35368 " #include <dlfcn.h>\n"
35369 " #include <guestfs.h>\n"
35370 " \n"
35371
35372 #. type: verbatim
35373 #: ../src/guestfs.pod:1537
35374 #, no-wrap
35375 msgid ""
35376 " main ()\n"
35377 " {\n"
35378 " #ifdef LIBGUESTFS_HAVE_DD\n"
35379 "   void *dl;\n"
35380 "   int has_function;\n"
35381 " \n"
35382 msgstr ""
35383 " main ()\n"
35384 " {\n"
35385 " #ifdef LIBGUESTFS_HAVE_DD\n"
35386 "   void *dl;\n"
35387 "   int has_function;\n"
35388 " \n"
35389
35390 #. type: verbatim
35391 #: ../src/guestfs.pod:1543
35392 #, no-wrap
35393 msgid ""
35394 "   /* Test if the function guestfs_dd is really available. */\n"
35395 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35396 "   if (!dl) {\n"
35397 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35398 "     exit (EXIT_FAILURE);\n"
35399 "   }\n"
35400 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35401 "   dlclose (dl);\n"
35402 " \n"
35403 msgstr ""
35404
35405 #. type: verbatim
35406 #: ../src/guestfs.pod:1552
35407 #, no-wrap
35408 msgid ""
35409 "   if (!has_function)\n"
35410 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35411 "   else {\n"
35412 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35413 "     /* Now it's safe to call\n"
35414 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35415 "     */\n"
35416 "   }\n"
35417 " #else\n"
35418 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35419 " #endif\n"
35420 "  }\n"
35421 "\n"
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:1565
35426 msgid ""
35427 "You may think the above is an awful lot of hassle, and it is.  There are "
35428 "other ways outside of the C linking system to ensure that this kind of "
35429 "incompatibility never arises, such as using package versioning:"
35430 msgstr ""
35431
35432 #. type: verbatim
35433 #: ../src/guestfs.pod:1570
35434 #, no-wrap
35435 msgid ""
35436 " Requires: libguestfs >= 1.0.80\n"
35437 "\n"
35438 msgstr ""
35439
35440 #. type: =head1
35441 #: ../src/guestfs.pod:1572
35442 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:1574
35447 msgid ""
35448 "A recent feature of the API is the introduction of calls which take optional "
35449 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35450 "takes variable arguments (ie. C<...>), as in this example:"
35451 msgstr ""
35452
35453 #. type: verbatim
35454 #: ../src/guestfs.pod:1579
35455 #, no-wrap
35456 msgid ""
35457 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35458 "\n"
35459 msgstr ""
35460 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35461 "\n"
35462
35463 #. type: textblock
35464 #: ../src/guestfs.pod:1581
35465 msgid ""
35466 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35467 "call with no optional arguments specified:"
35468 msgstr ""
35469
35470 #. type: verbatim
35471 #: ../src/guestfs.pod:1584
35472 #, no-wrap
35473 msgid ""
35474 " guestfs_add_drive_opts (g, filename, -1);\n"
35475 "\n"
35476 msgstr ""
35477 " guestfs_add_drive_opts (g, filename, -1);\n"
35478 "\n"
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:1586
35482 msgid "With a single optional argument:"
35483 msgstr ""
35484
35485 #. type: verbatim
35486 #: ../src/guestfs.pod:1588
35487 #, no-wrap
35488 msgid ""
35489 " guestfs_add_drive_opts (g, filename,\n"
35490 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35491 "                         -1);\n"
35492 "\n"
35493 msgstr ""
35494 " guestfs_add_drive_opts (g, filename,\n"
35495 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35496 "                         -1);\n"
35497 "\n"
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:1592
35501 msgid "With two:"
35502 msgstr ""
35503
35504 #. type: verbatim
35505 #: ../src/guestfs.pod:1594
35506 #, no-wrap
35507 msgid ""
35508 " guestfs_add_drive_opts (g, filename,\n"
35509 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35510 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35511 "                         -1);\n"
35512 "\n"
35513 msgstr ""
35514 " guestfs_add_drive_opts (g, filename,\n"
35515 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35516 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35517 "                         -1);\n"
35518 "\n"
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:1599
35522 msgid ""
35523 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35524 "happen!"
35525 msgstr ""
35526
35527 #. type: =head2
35528 #: ../src/guestfs.pod:1602
35529 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:1604
35534 msgid ""
35535 "The second variant has the same name with the suffix C<_va>, which works the "
35536 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35537 "example function, this is declared:"
35538 msgstr ""
35539
35540 #. type: verbatim
35541 #: ../src/guestfs.pod:1608
35542 #, no-wrap
35543 msgid ""
35544 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35545 "                                va_list args);\n"
35546 "\n"
35547 msgstr ""
35548 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35549 "                                va_list args);\n"
35550 "\n"
35551
35552 #. type: =head2
35553 #: ../src/guestfs.pod:1611
35554 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:1613
35559 msgid ""
35560 "The third variant is useful where you need to construct these calls.  You "
35561 "pass in a structure where you fill in the optional fields.  The structure "
35562 "has a bitmask as the first element which you must set to indicate which "
35563 "fields you have filled in.  For our example function the structure and call "
35564 "are declared:"
35565 msgstr ""
35566
35567 #. type: verbatim
35568 #: ../src/guestfs.pod:1619
35569 #, no-wrap
35570 msgid ""
35571 " struct guestfs_add_drive_opts_argv {\n"
35572 "   uint64_t bitmask;\n"
35573 "   int readonly;\n"
35574 "   const char *format;\n"
35575 "   /* ... */\n"
35576 " };\n"
35577 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35578 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35579 "\n"
35580 msgstr ""
35581 " struct guestfs_add_drive_opts_argv {\n"
35582 "   uint64_t bitmask;\n"
35583 "   int readonly;\n"
35584 "   const char *format;\n"
35585 "   /* ... */\n"
35586 " };\n"
35587 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35588 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35589 "\n"
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:1628
35593 msgid "You could call it like this:"
35594 msgstr ""
35595
35596 #. type: verbatim
35597 #: ../src/guestfs.pod:1630
35598 #, no-wrap
35599 msgid ""
35600 " struct guestfs_add_drive_opts_argv optargs = {\n"
35601 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35602 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35603 "   .readonly = 1,\n"
35604 "   .format = \"qcow2\"\n"
35605 " };\n"
35606 " \n"
35607 msgstr ""
35608 " struct guestfs_add_drive_opts_argv optargs = {\n"
35609 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35610 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35611 "   .readonly = 1,\n"
35612 "   .format = \"qcow2\"\n"
35613 " };\n"
35614 " \n"
35615
35616 #. type: verbatim
35617 #: ../src/guestfs.pod:1637
35618 #, no-wrap
35619 msgid ""
35620 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35621 "\n"
35622 msgstr ""
35623 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35624 "\n"
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:1645
35628 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:1650
35633 msgid "You do not need to fill in all fields of the structure."
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:1654
35638 msgid ""
35639 "There must be a one-to-one correspondence between fields of the structure "
35640 "that are filled in, and bits set in the bitmask."
35641 msgstr ""
35642
35643 #. type: =head2
35644 #: ../src/guestfs.pod:1659
35645 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35646 msgstr ""
35647
35648 #. type: textblock
35649 #: ../src/guestfs.pod:1661
35650 msgid ""
35651 "In other languages, optional arguments are expressed in the way that is "
35652 "natural for that language.  We refer you to the language-specific "
35653 "documentation for more details on that."
35654 msgstr ""
35655
35656 #. type: textblock
35657 #: ../src/guestfs.pod:1665
35658 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35659 msgstr ""
35660
35661 #. type: =head2
35662 #: ../src/guestfs.pod:1667
35663 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:1669
35668 msgid ""
35669 "B<Note:> This section documents the generic event mechanism introduced in "
35670 "libguestfs 1.10, which you should use in new code if possible.  The old "
35671 "functions C<guestfs_set_log_message_callback>, "
35672 "C<guestfs_set_subprocess_quit_callback>, "
35673 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35674 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35675 "page.  Because of the ABI guarantee, the old functions continue to work."
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:1678
35680 msgid ""
35681 "Handles generate events when certain things happen, such as log messages "
35682 "being generated, progress messages during long-running operations, or the "
35683 "handle being closed.  The API calls described below let you register a "
35684 "callback to be called when events happen.  You can register multiple "
35685 "callbacks (for the same, different or overlapping sets of events), and "
35686 "individually remove callbacks.  If callbacks are not removed, then they "
35687 "remain in force until the handle is closed."
35688 msgstr ""
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:1686
35692 msgid ""
35693 "In the current implementation, events are only generated synchronously: that "
35694 "means that events (and hence callbacks) can only happen while you are in the "
35695 "middle of making another libguestfs call.  The callback is called in the "
35696 "same thread."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs.pod:1691
35701 msgid ""
35702 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35703 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35704 msgstr ""
35705
35706 #. type: =head3
35707 #: ../src/guestfs.pod:1695
35708 msgid "CLASSES OF EVENTS"
35709 msgstr ""
35710
35711 #. type: =item
35712 #: ../src/guestfs.pod:1699
35713 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35714 msgstr ""
35715
35716 #. type: textblock
35717 #: ../src/guestfs.pod:1702
35718 msgid ""
35719 "The callback function will be called while the handle is being closed "
35720 "(synchronously from L</guestfs_close>)."
35721 msgstr ""
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:1705
35725 msgid ""
35726 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35727 "handles that are open when the program exits.  This means that this callback "
35728 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35729 "problems in higher-level languages (eg. if your HLL interpreter has already "
35730 "been cleaned up by the time this is called, and if your callback then jumps "
35731 "into some HLL function)."
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:1712
35736 msgid ""
35737 "If no callback is registered: the handle is closed without any callback "
35738 "being invoked."
35739 msgstr ""
35740
35741 #. type: =item
35742 #: ../src/guestfs.pod:1715
35743 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:1718
35748 msgid ""
35749 "The callback function will be called when the child process quits, either "
35750 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35751 "corresponds to a transition from any state to the CONFIG state)."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
35756 msgid "If no callback is registered: the event is ignored."
35757 msgstr ""
35758
35759 #. type: =item
35760 #: ../src/guestfs.pod:1724
35761 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:1727
35766 msgid ""
35767 "The callback function will be called when the child process becomes ready "
35768 "first time after it has been launched.  (This corresponds to a transition "
35769 "from LAUNCHING to the READY state)."
35770 msgstr ""
35771
35772 #. type: =item
35773 #: ../src/guestfs.pod:1733
35774 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:1736
35779 msgid ""
35780 "Some long-running operations can generate progress messages.  If this "
35781 "callback is registered, then it will be called each time a progress message "
35782 "is generated (usually two seconds after the operation started, and three "
35783 "times per second thereafter until it completes, although the frequency may "
35784 "change in future versions)."
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:1742
35789 msgid ""
35790 "The callback receives in the payload four unsigned 64 bit numbers which are "
35791 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:1745
35796 msgid ""
35797 "The units of C<total> are not defined, although for some operations C<total> "
35798 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35799 "or megabytes), and C<position> may be the portion which has been transferred."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:1750
35804 msgid "The only defined and stable parts of the API are:"
35805 msgstr ""
35806
35807 #. type: textblock
35808 #: ../src/guestfs.pod:1756
35809 msgid ""
35810 "The callback can display to the user some type of progress bar or indicator "
35811 "which shows the ratio of C<position>:C<total>."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:1761
35816 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../src/guestfs.pod:1765
35821 msgid ""
35822 "If any progress notification is sent during a call, then a final progress "
35823 "notification is always sent when C<position> = C<total> (I<unless> the call "
35824 "fails with an error)."
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:1769
35829 msgid ""
35830 "This is to simplify caller code, so callers can easily set the progress "
35831 "indicator to \"100%\" at the end of the operation, without requiring special "
35832 "code to detect this case."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:1775
35837 msgid ""
35838 "For some calls we are unable to estimate the progress of the call, but we "
35839 "can still generate progress messages to indicate activity.  This is known as "
35840 "\"pulse mode\", and is directly supported by certain progress bar "
35841 "implementations (eg. GtkProgressBar)."
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:1780
35846 msgid ""
35847 "For these calls, zero or more progress messages are generated with "
35848 "C<position = 0> and C<total = 1>, followed by a final message with "
35849 "C<position = total = 1>."
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:1784
35854 msgid ""
35855 "As noted above, if the call fails with an error then the final message may "
35856 "not be generated."
35857 msgstr ""
35858
35859 #. type: textblock
35860 #: ../src/guestfs.pod:1789
35861 msgid ""
35862 "The callback also receives the procedure number (C<proc_nr>) and serial "
35863 "number (C<serial>) of the call.  These are only useful for debugging "
35864 "protocol issues, and the callback can normally ignore them.  The callback "
35865 "may want to print these numbers in error messages or debugging messages."
35866 msgstr ""
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:1795
35870 msgid "If no callback is registered: progress messages are discarded."
35871 msgstr ""
35872
35873 #. type: =item
35874 #: ../src/guestfs.pod:1797
35875 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:1800
35880 msgid ""
35881 "The callback function is called whenever a log message is generated by qemu, "
35882 "the appliance kernel, guestfsd (daemon), or utility programs."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:1803
35887 msgid ""
35888 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35889 "guestfs_launch>) then additional debug messages are generated."
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
35894 msgid ""
35895 "If no callback is registered: the messages are discarded unless the verbose "
35896 "flag is set in which case they are sent to stderr.  You can override the "
35897 "printing of verbose messages to stderr by setting up a callback."
35898 msgstr ""
35899
35900 #. type: =item
35901 #: ../src/guestfs.pod:1811
35902 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:1814
35907 msgid ""
35908 "The callback function is called whenever a log message is generated by the "
35909 "library part of libguestfs."
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:1817
35914 msgid ""
35915 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35916 "messages are generated."
35917 msgstr ""
35918
35919 #. type: =item
35920 #: ../src/guestfs.pod:1825
35921 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:1828
35926 msgid ""
35927 "The callback function is called whenever a trace message is generated.  This "
35928 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:1831
35933 msgid ""
35934 "If no callback is registered: the messages are sent to stderr.  You can "
35935 "override the printing of trace messages to stderr by setting up a callback."
35936 msgstr ""
35937
35938 #. type: =head3
35939 #: ../src/guestfs.pod:1837
35940 msgid "guestfs_set_event_callback"
35941 msgstr ""
35942
35943 #. type: verbatim
35944 #: ../src/guestfs.pod:1839
35945 #, no-wrap
35946 msgid ""
35947 " int guestfs_set_event_callback (guestfs_h *g,\n"
35948 "                                 guestfs_event_callback cb,\n"
35949 "                                 uint64_t event_bitmask,\n"
35950 "                                 int flags,\n"
35951 "                                 void *opaque);\n"
35952 "\n"
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:1845
35957 msgid ""
35958 "This function registers a callback (C<cb>) for all event classes in the "
35959 "C<event_bitmask>."
35960 msgstr ""
35961
35962 #. type: textblock
35963 #: ../src/guestfs.pod:1848
35964 msgid ""
35965 "For example, to register for all log message events, you could call this "
35966 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35967 "To register a single callback for all possible classes of events, use "
35968 "C<GUESTFS_EVENT_ALL>."
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:1854
35973 msgid "C<flags> should always be passed as 0."
35974 msgstr ""
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:1856
35978 msgid ""
35979 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35980 "it for any purpose."
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:1859
35985 msgid ""
35986 "The return value is the event handle (an integer) which you can use to "
35987 "delete the callback (see below)."
35988 msgstr ""
35989
35990 #. type: textblock
35991 #: ../src/guestfs.pod:1862
35992 msgid ""
35993 "If there is an error, this function returns C<-1>, and sets the error in the "
35994 "handle in the usual way (see L</guestfs_last_error> etc.)"
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:1865
35999 msgid ""
36000 "Callbacks remain in effect until they are deleted, or until the handle is "
36001 "closed."
36002 msgstr ""
36003
36004 #. type: textblock
36005 #: ../src/guestfs.pod:1868
36006 msgid ""
36007 "In the case where multiple callbacks are registered for a particular event "
36008 "class, all of the callbacks are called.  The order in which multiple "
36009 "callbacks are called is not defined."
36010 msgstr ""
36011
36012 #. type: =head3
36013 #: ../src/guestfs.pod:1872
36014 msgid "guestfs_delete_event_callback"
36015 msgstr ""
36016
36017 #. type: verbatim
36018 #: ../src/guestfs.pod:1874
36019 #, no-wrap
36020 msgid ""
36021 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36022 "\n"
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:1876
36027 msgid ""
36028 "Delete a callback that was previously registered.  C<event_handle> should be "
36029 "the integer that was returned by a previous call to "
36030 "C<guestfs_set_event_callback> on the same handle."
36031 msgstr ""
36032
36033 #. type: =head3
36034 #: ../src/guestfs.pod:1880
36035 msgid "guestfs_event_callback"
36036 msgstr ""
36037
36038 #. type: verbatim
36039 #: ../src/guestfs.pod:1882
36040 #, no-wrap
36041 msgid ""
36042 " typedef void (*guestfs_event_callback) (\n"
36043 "                  guestfs_h *g,\n"
36044 "                  void *opaque,\n"
36045 "                  uint64_t event,\n"
36046 "                  int event_handle,\n"
36047 "                  int flags,\n"
36048 "                  const char *buf, size_t buf_len,\n"
36049 "                  const uint64_t *array, size_t array_len);\n"
36050 "\n"
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:1891
36055 msgid ""
36056 "This is the type of the event callback function that you have to provide."
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:1894
36061 msgid ""
36062 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36063 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36064 "handle, and C<flags> which in the current API you should ignore."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1898
36069 msgid ""
36070 "The remaining parameters contain the event payload (if any).  Each event may "
36071 "contain a payload, which usually relates to the event class, but for future "
36072 "proofing your code should be written to handle any payload for any event "
36073 "class."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:1903
36078 msgid ""
36079 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36080 "there is no message buffer).  Note that this message buffer can contain "
36081 "arbitrary 8 bit data, including NUL bytes."
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:1907
36086 msgid ""
36087 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36088 "moment this is only used for progress messages."
36089 msgstr ""
36090
36091 #. type: =head3
36092 #: ../src/guestfs.pod:1910
36093 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:1912
36098 msgid ""
36099 "One motivation for the generic event API was to allow GUI programs to "
36100 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36101 "unconditionally to C<stderr>."
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:1916
36106 msgid ""
36107 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36108 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36109 "messages are not events; you must capture error messages separately)."
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:1921
36114 msgid ""
36115 "Programs have to set up a callback to capture the classes of events of "
36116 "interest:"
36117 msgstr ""
36118
36119 #. type: verbatim
36120 #: ../src/guestfs.pod:1924
36121 #, no-wrap
36122 msgid ""
36123 " int eh =\n"
36124 "   guestfs_set_event_callback\n"
36125 "     (g, message_callback,\n"
36126 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36127 "      GUESTFS_EVENT_TRACE,\n"
36128 "      0, NULL) == -1)\n"
36129 " if (eh == -1) {\n"
36130 "   // handle error in the usual way\n"
36131 " }\n"
36132 "\n"
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:1934
36137 msgid ""
36138 "The callback can then direct messages to the appropriate place.  In this "
36139 "example, messages are directed to syslog:"
36140 msgstr ""
36141
36142 #. type: verbatim
36143 #: ../src/guestfs.pod:1937
36144 #, no-wrap
36145 msgid ""
36146 " static void\n"
36147 " message_callback (\n"
36148 "         guestfs_h *g,\n"
36149 "         void *opaque,\n"
36150 "         uint64_t event,\n"
36151 "         int event_handle,\n"
36152 "         int flags,\n"
36153 "         const char *buf, size_t buf_len,\n"
36154 "         const uint64_t *array, size_t array_len)\n"
36155 " {\n"
36156 "   const int priority = LOG_USER|LOG_INFO;\n"
36157 "   if (buf_len > 0)\n"
36158 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36159 " }\n"
36160 "\n"
36161 msgstr ""
36162
36163 #. type: =head1
36164 #: ../src/guestfs.pod:1952
36165 msgid "CANCELLING LONG TRANSFERS"
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:1954
36170 msgid ""
36171 "Some operations can be cancelled by the caller while they are in progress.  "
36172 "Currently only operations that involve uploading or downloading data can be "
36173 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36174 "parameters in the generator)."
36175 msgstr ""
36176
36177 #. type: =head2
36178 #: ../src/guestfs.pod:1959
36179 msgid "guestfs_user_cancel"
36180 msgstr ""
36181
36182 #. type: verbatim
36183 #: ../src/guestfs.pod:1961
36184 #, no-wrap
36185 msgid ""
36186 " void guestfs_user_cancel (guestfs_h *g);\n"
36187 "\n"
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:1963
36192 msgid ""
36193 "C<guestfs_user_cancel> cancels the current upload or download operation."
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:1966
36198 msgid ""
36199 "Unlike most other libguestfs calls, this function is signal safe and thread "
36200 "safe.  You can call it from a signal handler or from another thread, without "
36201 "needing to do any locking."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:1970
36206 msgid ""
36207 "The transfer that was in progress (if there is one) will stop shortly "
36208 "afterwards, and will return an error.  The errno (see L</"
36209 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36210 "out if the operation was cancelled or failed because of another error."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:1976
36215 msgid ""
36216 "No cleanup is performed: for example, if a file was being uploaded then "
36217 "after cancellation there may be a partially uploaded file.  It is the "
36218 "caller's responsibility to clean up if necessary."
36219 msgstr ""
36220
36221 #. type: textblock
36222 #: ../src/guestfs.pod:1980
36223 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:1982
36228 msgid ""
36229 "In an interactive text-based program, you might call it from a C<SIGINT> "
36230 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36231 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36232 "receive the C<^C> signal)."
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:1987
36237 msgid ""
36238 "In a graphical program, when the main thread is displaying a progress bar "
36239 "with a cancel button, wire up the cancel button to call this function."
36240 msgstr ""
36241
36242 #. type: =head1
36243 #: ../src/guestfs.pod:1991
36244 msgid "PRIVATE DATA AREA"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:1993
36249 msgid ""
36250 "You can attach named pieces of private data to the libguestfs handle, fetch "
36251 "them by name, and walk over them, for the lifetime of the handle.  This is "
36252 "called the private data area and is only available from the C API."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1998
36257 msgid "To attach a named piece of data, use the following call:"
36258 msgstr ""
36259
36260 #. type: verbatim
36261 #: ../src/guestfs.pod:2000
36262 #, no-wrap
36263 msgid ""
36264 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36265 "\n"
36266 msgstr ""
36267 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36268 "\n"
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:2002
36272 msgid ""
36273 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36274 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36275 "overwritten."
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../src/guestfs.pod:2006
36280 msgid ""
36281 "You can use any C<key> you want, but your key should I<not> start with an "
36282 "underscore character.  Keys beginning with an underscore character are "
36283 "reserved for internal libguestfs purposes (eg. for implementing language "
36284 "bindings).  It is recommended that you prefix the key with some unique "
36285 "string to avoid collisions with other users."
36286 msgstr ""
36287
36288 #. type: textblock
36289 #: ../src/guestfs.pod:2012
36290 msgid "To retrieve the pointer, use:"
36291 msgstr ""
36292
36293 #. type: verbatim
36294 #: ../src/guestfs.pod:2014
36295 #, no-wrap
36296 msgid ""
36297 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36298 "\n"
36299 msgstr ""
36300 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36301 "\n"
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:2016
36305 msgid ""
36306 "This function returns C<NULL> if either no data is found associated with "
36307 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36308 "C<NULL>."
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:2020
36313 msgid ""
36314 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36315 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36316 "all.  In particular, libguestfs does I<not> try to free the data when the "
36317 "handle is closed.  If the data must be freed, then the caller must either "
36318 "free it before calling L</guestfs_close> or must set up a close callback to "
36319 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../src/guestfs.pod:2027
36324 msgid "To walk over all entries, use these two functions:"
36325 msgstr ""
36326
36327 #. type: verbatim
36328 #: ../src/guestfs.pod:2029
36329 #, no-wrap
36330 msgid ""
36331 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36332 "\n"
36333 msgstr ""
36334
36335 #. type: verbatim
36336 #: ../src/guestfs.pod:2031
36337 #, no-wrap
36338 msgid ""
36339 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36340 "\n"
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:2033
36345 msgid ""
36346 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36347 "not have any particular meaning -- keys are not returned in any defined "
36348 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36349 "corresponding data pointer is returned from the function.  C<NULL> is "
36350 "returned if there are no keys stored in the handle."
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../src/guestfs.pod:2039
36355 msgid ""
36356 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36357 "value of this function is also C<NULL> is there are no further entries to "
36358 "return."
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:2043
36363 msgid "Notes about walking over entries:"
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:2049
36368 msgid ""
36369 "You must not call C<guestfs_set_private> while walking over the entries."
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:2054
36374 msgid ""
36375 "The handle maintains an internal iterator which is reset when you call "
36376 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36377 "call C<guestfs_set_private>."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2060
36382 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36383 msgstr ""
36384
36385 #. type: verbatim
36386 #: ../src/guestfs.pod:2062
36387 #, no-wrap
36388 msgid ""
36389 " guestfs_set_private (g, key, NULL);\n"
36390 "\n"
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:2064
36395 msgid "then that C<key> is not returned when walking."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:2068
36400 msgid ""
36401 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36402 "C<guestfs_next_private> or C<guestfs_set_private>."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:2074
36407 msgid ""
36408 "The following example code shows how to print all keys and data pointers "
36409 "that are associated with the handle C<g>:"
36410 msgstr ""
36411
36412 #. type: verbatim
36413 #: ../src/guestfs.pod:2077
36414 #, no-wrap
36415 msgid ""
36416 " const char *key;\n"
36417 " void *data = guestfs_first_private (g, &key);\n"
36418 " while (data != NULL)\n"
36419 "   {\n"
36420 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36421 "     data = guestfs_next_private (g, &key);\n"
36422 "   }\n"
36423 "\n"
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:2085
36428 msgid ""
36429 "More commonly you are only interested in keys that begin with an application-"
36430 "specific prefix C<foo_>.  Modify the loop like so:"
36431 msgstr ""
36432
36433 #. type: verbatim
36434 #: ../src/guestfs.pod:2088
36435 #, no-wrap
36436 msgid ""
36437 " const char *key;\n"
36438 " void *data = guestfs_first_private (g, &key);\n"
36439 " while (data != NULL)\n"
36440 "   {\n"
36441 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36442 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36443 "     data = guestfs_next_private (g, &key);\n"
36444 "   }\n"
36445 "\n"
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:2097
36450 msgid ""
36451 "If you need to modify keys while walking, then you have to jump back to the "
36452 "beginning of the loop.  For example, to delete all keys prefixed with "
36453 "C<foo_>:"
36454 msgstr ""
36455
36456 #. type: verbatim
36457 #: ../src/guestfs.pod:2101
36458 #, no-wrap
36459 msgid ""
36460 "  const char *key;\n"
36461 "  void *data;\n"
36462 " again:\n"
36463 "  data = guestfs_first_private (g, &key);\n"
36464 "  while (data != NULL)\n"
36465 "    {\n"
36466 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36467 "        {\n"
36468 "          guestfs_set_private (g, key, NULL);\n"
36469 "          /* note that 'key' pointer is now invalid, and so is\n"
36470 "             the internal iterator */\n"
36471 "          goto again;\n"
36472 "        }\n"
36473 "      data = guestfs_next_private (g, &key);\n"
36474 "    }\n"
36475 "\n"
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:2117
36480 msgid ""
36481 "Note that the above loop is guaranteed to terminate because the keys are "
36482 "being deleted, but other manipulations of keys within the loop might not "
36483 "terminate unless you also maintain an indication of which keys have been "
36484 "visited."
36485 msgstr ""
36486
36487 #. type: =end
36488 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
36489 msgid "html"
36490 msgstr "html"
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:2124
36494 msgid ""
36495 "<!-- old anchor for the next section --> <a name="
36496 "\"state_machine_and_low_level_event_api\"/>"
36497 msgstr ""
36498 "<!-- old anchor for the next section --> <a name="
36499 "\"state_machine_and_low_level_event_api\"/>"
36500
36501 #. type: =head1
36502 #: ../src/guestfs.pod:2129
36503 msgid "ARCHITECTURE"
36504 msgstr "АРХІТЕКТУРА"
36505
36506 #. type: textblock
36507 #: ../src/guestfs.pod:2131
36508 msgid ""
36509 "Internally, libguestfs is implemented by running an appliance (a special "
36510 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36511 "process of the main program."
36512 msgstr ""
36513
36514 #. type: verbatim
36515 #: ../src/guestfs.pod:2135
36516 #, no-wrap
36517 msgid ""
36518 "  ___________________\n"
36519 " /                   \\\n"
36520 " | main program      |\n"
36521 " |                   |\n"
36522 " |                   |           child process / appliance\n"
36523 " |                   |           __________________________\n"
36524 " |                   |          / qemu                     \\\n"
36525 " +-------------------+   RPC    |      +-----------------+ |\n"
36526 " | libguestfs     <--------------------> guestfsd        | |\n"
36527 " |                   |          |      +-----------------+ |\n"
36528 " \\___________________/          |      | Linux kernel    | |\n"
36529 "                                |      +--^--------------+ |\n"
36530 "                                \\_________|________________/\n"
36531 "                                          |\n"
36532 "                                   _______v______\n"
36533 "                                  /              \\\n"
36534 "                                  | Device or    |\n"
36535 "                                  | disk image   |\n"
36536 "                                  \\______________/\n"
36537 "\n"
36538 msgstr ""
36539
36540 #. type: textblock
36541 #: ../src/guestfs.pod:2155
36542 msgid ""
36543 "The library, linked to the main program, creates the child process and hence "
36544 "the appliance in the L</guestfs_launch> function."
36545 msgstr ""
36546
36547 #. type: textblock
36548 #: ../src/guestfs.pod:2158
36549 msgid ""
36550 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36551 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36552 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36553 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36554 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36555 "attached to the qemu process which translates device access by the "
36556 "appliance's Linux kernel into accesses to the image."
36557 msgstr ""
36558
36559 #. type: textblock
36560 #: ../src/guestfs.pod:2167
36561 msgid ""
36562 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36563 "Although the disk image you are attached to might also be used by some "
36564 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36565 "care if both libguestfs's qemu process and your virtual machine are trying "
36566 "to update the disk image at the same time, since these usually results in "
36567 "massive disk corruption)."
36568 msgstr ""
36569
36570 #. type: =head1
36571 #: ../src/guestfs.pod:2174
36572 msgid "STATE MACHINE"
36573 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:2176
36577 msgid "libguestfs uses a state machine to model the child process:"
36578 msgstr ""
36579
36580 #. type: verbatim
36581 #: ../src/guestfs.pod:2178
36582 #, no-wrap
36583 msgid ""
36584 "                         |\n"
36585 "                    guestfs_create\n"
36586 "                         |\n"
36587 "                         |\n"
36588 "                     ____V_____\n"
36589 "                    /          \\\n"
36590 "                    |  CONFIG  |\n"
36591 "                    \\__________/\n"
36592 "                     ^ ^   ^  \\\n"
36593 "                    /  |    \\  \\ guestfs_launch\n"
36594 "                   /   |    _\\__V______\n"
36595 "                  /    |   /           \\\n"
36596 "                 /     |   | LAUNCHING |\n"
36597 "                /      |   \\___________/\n"
36598 "               /       |       /\n"
36599 "              /        |  guestfs_launch\n"
36600 "             /         |     /\n"
36601 "    ______  /        __|____V\n"
36602 "   /      \\ ------> /        \\\n"
36603 "   | BUSY |         | READY  |\n"
36604 "   \\______/ <------ \\________/\n"
36605 "\n"
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:2200
36610 msgid ""
36611 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36612 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36613 "(3) alternating between READY and BUSY as commands are issued to, and "
36614 "carried out by, the child process."
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:2205
36619 msgid ""
36620 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36621 "asynchronously at any time (eg. due to some internal error), and that causes "
36622 "the state to transition back to CONFIG."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:2209
36627 msgid ""
36628 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36629 "issued when in the CONFIG state."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:2212
36634 msgid ""
36635 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36636 "L</guestfs_launch> blocks until the child process is READY to accept "
36637 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36638 "moves the state from CONFIG to LAUNCHING while it is running."
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:2218
36643 msgid ""
36644 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36645 "state.  These API calls block waiting for the command to be carried out (ie. "
36646 "the state to transition to BUSY and then back to READY).  There are no non-"
36647 "blocking versions, and no way to issue more than one command per handle at "
36648 "the same time."
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:2224
36653 msgid ""
36654 "Finally, the child process sends asynchronous messages back to the main "
36655 "program, such as kernel log messages.  You can register a callback to "
36656 "receive these messages."
36657 msgstr ""
36658
36659 #. type: =head1
36660 #: ../src/guestfs.pod:2228
36661 msgid "INTERNALS"
36662 msgstr ""
36663
36664 #. type: =head2
36665 #: ../src/guestfs.pod:2230
36666 msgid "COMMUNICATION PROTOCOL"
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../src/guestfs.pod:2232
36671 msgid ""
36672 "Don't rely on using this protocol directly.  This section documents how it "
36673 "currently works, but it may change at any time."
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:2235
36678 msgid ""
36679 "The protocol used to talk between the library and the daemon running inside "
36680 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36681 "1014, RFC 1832, RFC 4506)."
36682 msgstr ""
36683
36684 #. type: textblock
36685 #: ../src/guestfs.pod:2239
36686 msgid ""
36687 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36688 "this file is automatically generated)."
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:2242
36693 msgid ""
36694 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36695 "and C<FileOut> parameters, which are handled with very simple request/reply "
36696 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36697 "parameters, which use the same request and reply messages, but they may also "
36698 "be followed by files sent using a chunked encoding."
36699 msgstr ""
36700
36701 #. type: =head3
36702 #: ../src/guestfs.pod:2249
36703 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36704 msgstr ""
36705
36706 #. type: textblock
36707 #: ../src/guestfs.pod:2251
36708 msgid "For ordinary functions, the request message is:"
36709 msgstr ""
36710
36711 #. type: verbatim
36712 #: ../src/guestfs.pod:2253
36713 #, no-wrap
36714 msgid ""
36715 " total length (header + arguments,\n"
36716 "      but not including the length word itself)\n"
36717 " struct guestfs_message_header (encoded as XDR)\n"
36718 " struct guestfs_<foo>_args (encoded as XDR)\n"
36719 "\n"
36720 msgstr ""
36721
36722 #. type: textblock
36723 #: ../src/guestfs.pod:2258
36724 msgid ""
36725 "The total length field allows the daemon to allocate a fixed size buffer "
36726 "into which it slurps the rest of the message.  As a result, the total length "
36727 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36728 "effective size of any request is limited to somewhere under this size."
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:2264
36733 msgid ""
36734 "Note also that many functions don't take any arguments, in which case the "
36735 "C<guestfs_I<foo>_args> is completely omitted."
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:2267
36740 msgid ""
36741 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36742 "receiver knows what type of args structure to expect, or none at all."
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:2271
36747 msgid ""
36748 "For functions that take optional arguments, the optional arguments are "
36749 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36750 "arguments.  A bitmask in the header indicates which optional arguments are "
36751 "meaningful.  The bitmask is also checked to see if it contains bits set "
36752 "which the daemon does not know about (eg. if more optional arguments were "
36753 "added in a later version of the library), and this causes the call to be "
36754 "rejected."
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:2279
36759 msgid "The reply message for ordinary functions is:"
36760 msgstr ""
36761
36762 #. type: verbatim
36763 #: ../src/guestfs.pod:2281
36764 #, no-wrap
36765 msgid ""
36766 " total length (header + ret,\n"
36767 "      but not including the length word itself)\n"
36768 " struct guestfs_message_header (encoded as XDR)\n"
36769 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36770 "\n"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:2286
36775 msgid ""
36776 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36777 "functions that return no formal return values."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:2289
36782 msgid ""
36783 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:2292
36788 msgid ""
36789 "In the case of an error, a flag is set in the header, and the reply message "
36790 "is slightly changed:"
36791 msgstr ""
36792
36793 #. type: verbatim
36794 #: ../src/guestfs.pod:2295
36795 #, no-wrap
36796 msgid ""
36797 " total length (header + error,\n"
36798 "      but not including the length word itself)\n"
36799 " struct guestfs_message_header (encoded as XDR)\n"
36800 " struct guestfs_message_error (encoded as XDR)\n"
36801 "\n"
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:2300
36806 msgid ""
36807 "The C<guestfs_message_error> structure contains the error message as a "
36808 "string."
36809 msgstr ""
36810
36811 #. type: =head3
36812 #: ../src/guestfs.pod:2303
36813 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:2305
36818 msgid ""
36819 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36820 "The normal request message is sent (see above).  However this is followed by "
36821 "a sequence of file chunks."
36822 msgstr ""
36823
36824 #. type: verbatim
36825 #: ../src/guestfs.pod:2309
36826 #, no-wrap
36827 msgid ""
36828 " total length (header + arguments,\n"
36829 "      but not including the length word itself,\n"
36830 "      and not including the chunks)\n"
36831 " struct guestfs_message_header (encoded as XDR)\n"
36832 " struct guestfs_<foo>_args (encoded as XDR)\n"
36833 " sequence of chunks for FileIn param #0\n"
36834 " sequence of chunks for FileIn param #1 etc.\n"
36835 "\n"
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../src/guestfs.pod:2317
36840 msgid "The \"sequence of chunks\" is:"
36841 msgstr ""
36842
36843 #. type: verbatim
36844 #: ../src/guestfs.pod:2319
36845 #, no-wrap
36846 msgid ""
36847 " length of chunk (not including length word itself)\n"
36848 " struct guestfs_chunk (encoded as XDR)\n"
36849 " length of chunk\n"
36850 " struct guestfs_chunk (encoded as XDR)\n"
36851 "   ...\n"
36852 " length of chunk\n"
36853 " struct guestfs_chunk (with data.data_len == 0)\n"
36854 "\n"
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:2327
36859 msgid ""
36860 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36861 "is set in the final chunk to indicate either successful completion or early "
36862 "cancellation."
36863 msgstr ""
36864
36865 #. type: textblock
36866 #: ../src/guestfs.pod:2331
36867 msgid ""
36868 "At time of writing there are no functions that have more than one FileIn "
36869 "parameter.  However this is (theoretically) supported, by sending the "
36870 "sequence of chunks for each FileIn parameter one after another (from left to "
36871 "right)."
36872 msgstr ""
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:2336
36876 msgid ""
36877 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36878 "transfer.  The library does this by sending a chunk with a special flag set "
36879 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36880 "RPC, does I<not> send any reply, and goes back to reading the next request."
36881 msgstr ""
36882
36883 #. type: textblock
36884 #: ../src/guestfs.pod:2342
36885 msgid ""
36886 "The daemon may also cancel.  It does this by writing a special word "
36887 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36888 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36889 "cancel chunk).  The special word is chosen so that even if cancellation "
36890 "happens right at the end of the transfer (after the library has finished "
36891 "writing and has started listening for the reply), the \"spurious\" cancel "
36892 "flag will not be confused with the reply message."
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:2351
36897 msgid ""
36898 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36899 "limit), and also files where the size is not known in advance (eg. from "
36900 "pipes or sockets).  However the chunks are rather small "
36901 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36902 "to keep much in memory."
36903 msgstr ""
36904
36905 #. type: =head3
36906 #: ../src/guestfs.pod:2357
36907 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:2359
36912 msgid ""
36913 "The protocol for FileOut parameters is exactly the same as for FileIn "
36914 "parameters, but with the roles of daemon and library reversed."
36915 msgstr ""
36916
36917 #. type: verbatim
36918 #: ../src/guestfs.pod:2362
36919 #, no-wrap
36920 msgid ""
36921 " total length (header + ret,\n"
36922 "      but not including the length word itself,\n"
36923 "      and not including the chunks)\n"
36924 " struct guestfs_message_header (encoded as XDR)\n"
36925 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36926 " sequence of chunks for FileOut param #0\n"
36927 " sequence of chunks for FileOut param #1 etc.\n"
36928 "\n"
36929 msgstr ""
36930
36931 #. type: =head3
36932 #: ../src/guestfs.pod:2370
36933 msgid "INITIAL MESSAGE"
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:2372
36938 msgid ""
36939 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36940 "which indicates that the guest and daemon is alive.  This is what L</"
36941 "guestfs_launch> waits for."
36942 msgstr ""
36943
36944 #. type: =head3
36945 #: ../src/guestfs.pod:2376
36946 msgid "PROGRESS NOTIFICATION MESSAGES"
36947 msgstr ""
36948
36949 #. type: textblock
36950 #: ../src/guestfs.pod:2378
36951 msgid ""
36952 "The daemon may send progress notification messages at any time.  These are "
36953 "distinguished by the normal length word being replaced by "
36954 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:2382
36959 msgid ""
36960 "The library turns them into progress callbacks (see L</"
36961 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36962 "if not."
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../src/guestfs.pod:2386
36967 msgid ""
36968 "The daemon self-limits the frequency of progress messages it sends (see "
36969 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36970 "messages."
36971 msgstr ""
36972
36973 #. type: =head1
36974 #: ../src/guestfs.pod:2390
36975 msgid "LIBGUESTFS VERSION NUMBERS"
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:2392
36980 msgid ""
36981 "Since April 2010, libguestfs has started to make separate development and "
36982 "stable releases, along with corresponding branches in our git repository.  "
36983 "These separate releases can be identified by version number:"
36984 msgstr ""
36985
36986 #. type: verbatim
36987 #: ../src/guestfs.pod:2397
36988 #, no-wrap
36989 msgid ""
36990 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36991 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36992 "       |\n"
36993 "       v\n"
36994 " 1  .  3  .  5\n"
36995 " ^           ^\n"
36996 " |           |\n"
36997 " |           `-------- sub-version\n"
36998 " |\n"
36999 " `------ always '1' because we don't change the ABI\n"
37000 "\n"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:2408
37005 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:2410
37010 msgid ""
37011 "As time passes we cherry pick fixes from the development branch and backport "
37012 "those into the stable branch, the effect being that the stable branch should "
37013 "get more stable and less buggy over time.  So the stable releases are ideal "
37014 "for people who don't need new features but would just like the software to "
37015 "work."
37016 msgstr ""
37017
37018 #. type: textblock
37019 #: ../src/guestfs.pod:2416
37020 msgid "Our criteria for backporting changes are:"
37021 msgstr ""
37022
37023 #. type: textblock
37024 #: ../src/guestfs.pod:2422
37025 msgid ""
37026 "Documentation changes which don't affect any code are backported unless the "
37027 "documentation refers to a future feature which is not in stable."
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:2428
37032 msgid ""
37033 "Bug fixes which are not controversial, fix obvious problems, and have been "
37034 "well tested are backported."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:2433
37039 msgid ""
37040 "Simple rearrangements of code which shouldn't affect how it works get "
37041 "backported.  This is so that the code in the two branches doesn't get too "
37042 "far out of step, allowing us to backport future fixes more easily."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:2439
37047 msgid ""
37048 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37049 "exceptional case: the new feature is required in order to implement an "
37050 "important bug fix."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:2445
37055 msgid ""
37056 "A new stable branch starts when we think the new features in development are "
37057 "substantial and compelling enough over the current stable branch to warrant "
37058 "it.  When that happens we create new stable and development versions 1.N.0 "
37059 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37060 "stable at this point, but by backporting fixes from development, that branch "
37061 "will stabilize over time."
37062 msgstr ""
37063
37064 #. type: =head1
37065 #: ../src/guestfs.pod:2453
37066 msgid "EXTENDING LIBGUESTFS"
37067 msgstr ""
37068
37069 #. type: =head2
37070 #: ../src/guestfs.pod:2455
37071 msgid "ADDING A NEW API ACTION"
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../src/guestfs.pod:2457
37076 msgid ""
37077 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37078 "documentation) are generated, and this makes it easy to extend the "
37079 "libguestfs API."
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:2461
37084 msgid "To add a new API action there are two changes:"
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2467
37089 msgid ""
37090 "You need to add a description of the call (name, parameters, return type, "
37091 "tests, documentation) to C<generator/generator_actions.ml>."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:2470
37096 msgid ""
37097 "There are two sorts of API action, depending on whether the call goes "
37098 "through to the daemon in the appliance, or is serviced entirely by the "
37099 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37100 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37101 "an example of the latter, since a trace flag is maintained in the handle and "
37102 "all tracing is done on the library side."
37103 msgstr ""
37104
37105 #. type: textblock
37106 #: ../src/guestfs.pod:2478
37107 msgid ""
37108 "Most new actions are of the first type, and get added to the "
37109 "C<daemon_functions> list.  Each function has a unique procedure number used "
37110 "in the RPC protocol which is assigned to that action when we publish "
37111 "libguestfs and cannot be reused.  Take the latest procedure number and "
37112 "increment it."
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:2484
37117 msgid ""
37118 "For library-only actions of the second type, add to the "
37119 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37120 "library and do not travel over the RPC mechanism to the daemon, these "
37121 "functions do not need a procedure number, and so the procedure number is set "
37122 "to C<-1>."
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:2492
37127 msgid "Implement the action (in C):"
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:2494
37132 msgid ""
37133 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37134 "C<daemon/> directory."
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:2497
37139 msgid ""
37140 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37141 "(note: double underscore) in the C<src/> directory."
37142 msgstr ""
37143
37144 #. type: textblock
37145 #: ../src/guestfs.pod:2500
37146 msgid "In either case, use another function as an example of what to do."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:2504
37151 msgid "After making these changes, use C<make> to compile."
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../src/guestfs.pod:2506
37156 msgid ""
37157 "Note that you don't need to implement the RPC, language bindings, manual "
37158 "pages or anything else.  It's all automatically generated from the OCaml "
37159 "description."
37160 msgstr ""
37161
37162 #. type: =head2
37163 #: ../src/guestfs.pod:2510
37164 msgid "ADDING TESTS FOR AN API ACTION"
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:2512
37169 msgid ""
37170 "You can supply zero or as many tests as you want per API call.  The tests "
37171 "can either be added as part of the API description (C<generator/"
37172 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37173 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37174 "slower, so if possible use the first method."
37175 msgstr ""
37176
37177 #. type: textblock
37178 #: ../src/guestfs.pod:2518
37179 msgid ""
37180 "The following describes the test environment used when you add an API test "
37181 "in C<generator_actions.ml>."
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:2521
37186 msgid "The test environment has 4 block devices:"
37187 msgstr ""
37188
37189 #. type: =item
37190 #: ../src/guestfs.pod:2525
37191 msgid "C</dev/sda> 500MB"
37192 msgstr "C</dev/sda> 500 МБ"
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:2527
37196 msgid "General block device for testing."
37197 msgstr ""
37198
37199 #. type: =item
37200 #: ../src/guestfs.pod:2529
37201 msgid "C</dev/sdb> 50MB"
37202 msgstr "C</dev/sdb> 50 МБ"
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:2531
37206 msgid ""
37207 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37208 "operations."
37209 msgstr ""
37210
37211 #. type: =item
37212 #: ../src/guestfs.pod:2534
37213 msgid "C</dev/sdc> 10MB"
37214 msgstr "C</dev/sdc> 10 МБ"
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:2536
37218 msgid "Used in a few tests where two block devices are needed."
37219 msgstr ""
37220
37221 #. type: =item
37222 #: ../src/guestfs.pod:2538
37223 msgid "C</dev/sdd>"
37224 msgstr "C</dev/sdd>"
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:2540
37228 msgid "ISO with fixed content (see C<images/test.iso>)."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:2544
37233 msgid ""
37234 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37235 "appliance and block devices are reused between tests.  So don't try testing "
37236 "L</guestfs_kill_subprocess> :-x"
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:2548
37241 msgid ""
37242 "Each test starts with an initial scenario, selected using one of the "
37243 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37244 "initialize the disks mentioned above in a particular way as documented in "
37245 "C<generator_types.ml>.  You should not assume anything about the previous "
37246 "contents of other disks that are not initialized."
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:2554
37251 msgid ""
37252 "You can add a prerequisite clause to any individual test.  This is a run-"
37253 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37254 "testing a command which might not work on all variations of libguestfs "
37255 "builds.  A test that has prerequisite of C<Always> means to run "
37256 "unconditionally."
37257 msgstr ""
37258
37259 #. type: textblock
37260 #: ../src/guestfs.pod:2560
37261 msgid ""
37262 "In addition, packagers can skip individual tests by setting environment "
37263 "variables before running C<make check>."
37264 msgstr ""
37265
37266 #. type: verbatim
37267 #: ../src/guestfs.pod:2563
37268 #, no-wrap
37269 msgid ""
37270 " SKIP_TEST_<CMD>_<NUM>=1\n"
37271 "\n"
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:2565
37276 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:2567
37281 msgid "or:"
37282 msgstr "або:"
37283
37284 #. type: verbatim
37285 #: ../src/guestfs.pod:2569
37286 #, no-wrap
37287 msgid ""
37288 " SKIP_TEST_<CMD>=1\n"
37289 "\n"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:2571
37294 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:2573
37299 msgid "Packagers can run only certain tests by setting for example:"
37300 msgstr ""
37301
37302 #. type: verbatim
37303 #: ../src/guestfs.pod:2575
37304 #, no-wrap
37305 msgid ""
37306 " TEST_ONLY=\"vfs_type zerofree\"\n"
37307 "\n"
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../src/guestfs.pod:2577
37312 msgid ""
37313 "See C<capitests/tests.c> for more details of how these environment variables "
37314 "work."
37315 msgstr ""
37316
37317 #. type: =head2
37318 #: ../src/guestfs.pod:2580
37319 msgid "DEBUGGING NEW API ACTIONS"
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:2582
37324 msgid "Test new actions work before submitting them."
37325 msgstr ""
37326
37327 #. type: textblock
37328 #: ../src/guestfs.pod:2584
37329 msgid "You can use guestfish to try out new commands."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../src/guestfs.pod:2586
37334 msgid ""
37335 "Debugging the daemon is a problem because it runs inside a minimal "
37336 "environment.  However you can fprintf messages in the daemon to stderr, and "
37337 "they will show up if you use C<guestfish -v>."
37338 msgstr ""
37339
37340 #. type: =head2
37341 #: ../src/guestfs.pod:2590
37342 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:2592
37347 msgid ""
37348 "Our C source code generally adheres to some basic code-formatting "
37349 "conventions.  The existing code base is not totally consistent on this "
37350 "front, but we do prefer that contributed code be formatted similarly.  In "
37351 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37352 "indentation level, and other than that, follow the K&R style."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2598
37357 msgid ""
37358 "If you use Emacs, add the following to one of one of your start-up files (e."
37359 "g., ~/.emacs), to help ensure that you get indentation right:"
37360 msgstr ""
37361
37362 #. type: verbatim
37363 #: ../src/guestfs.pod:2601
37364 #, no-wrap
37365 msgid ""
37366 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37367 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37368 " (add-hook 'find-file-hook\n"
37369 "     '(lambda () (if (and buffer-file-name\n"
37370 "                          (string-match \"/libguestfs\\\\>\"\n"
37371 "                              (buffer-file-name))\n"
37372 "                          (not (string-equal mode-name \"Change Log\"))\n"
37373 "                          (not (string-equal mode-name \"Makefile\")))\n"
37374 "                     (setq indent-tabs-mode nil))))\n"
37375 " \n"
37376 msgstr ""
37377
37378 #. type: verbatim
37379 #: ../src/guestfs.pod:2611
37380 #, no-wrap
37381 msgid ""
37382 " ;;; When editing C sources in libguestfs, use this style.\n"
37383 " (defun libguestfs-c-mode ()\n"
37384 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37385 "   (interactive)\n"
37386 "   (c-set-style \"K&R\")\n"
37387 "   (setq c-indent-level 2)\n"
37388 "   (setq c-basic-offset 2))\n"
37389 " (add-hook 'c-mode-hook\n"
37390 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37391 "                               (buffer-file-name))\n"
37392 "                           (libguestfs-c-mode))))\n"
37393 "\n"
37394 msgstr ""
37395
37396 #. type: textblock
37397 #: ../src/guestfs.pod:2623
37398 msgid "Enable warnings when compiling (and fix any problems this finds):"
37399 msgstr ""
37400
37401 #. type: verbatim
37402 #: ../src/guestfs.pod:2626
37403 #, no-wrap
37404 msgid ""
37405 " ./configure --enable-gcc-warnings\n"
37406 "\n"
37407 msgstr ""
37408 " ./configure --enable-gcc-warnings\n"
37409 "\n"
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:2628
37413 msgid "Useful targets are:"
37414 msgstr ""
37415
37416 #. type: verbatim
37417 #: ../src/guestfs.pod:2630
37418 #, no-wrap
37419 msgid ""
37420 " make syntax-check  # checks the syntax of the C code\n"
37421 " make check         # runs the test suite\n"
37422 "\n"
37423 msgstr ""
37424
37425 #. type: =head2
37426 #: ../src/guestfs.pod:2633
37427 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:2635
37432 msgid ""
37433 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37434 "which are used to do shell quoting."
37435 msgstr ""
37436
37437 #. type: =item
37438 #: ../src/guestfs.pod:2640
37439 msgid "%Q"
37440 msgstr "%Q"
37441
37442 #. type: textblock
37443 #: ../src/guestfs.pod:2642
37444 msgid ""
37445 "Simple shell quoted string.  Any spaces or other shell characters are "
37446 "escaped for you."
37447 msgstr ""
37448
37449 #. type: =item
37450 #: ../src/guestfs.pod:2645
37451 msgid "%R"
37452 msgstr "%R"
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:2647
37456 msgid ""
37457 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37458 "the sysroot."
37459 msgstr ""
37460
37461 #. type: verbatim
37462 #: ../src/guestfs.pod:2654
37463 #, no-wrap
37464 msgid ""
37465 " asprintf (&cmd, \"cat %R\", path);\n"
37466 "\n"
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:2656
37471 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:2658
37476 msgid ""
37477 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37478 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37479 "they are not passed via the shell (instead, straight to exec).  You probably "
37480 "want to use the C<sysroot_path()> function however."
37481 msgstr ""
37482
37483 #. type: =head2
37484 #: ../src/guestfs.pod:2664
37485 msgid "SUBMITTING YOUR NEW API ACTIONS"
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:2666
37490 msgid ""
37491 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37492 "libguestfs> and CC to L<rjones@redhat.com>."
37493 msgstr ""
37494
37495 #. type: =head2
37496 #: ../src/guestfs.pod:2670
37497 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37498 msgstr ""
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:2672
37502 msgid "We support i18n (gettext anyhow) in the library."
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:2674
37507 msgid ""
37508 "However many messages come from the daemon, and we don't translate those at "
37509 "the moment.  One reason is that the appliance generally has all locale files "
37510 "removed from it, because they take up a lot of space.  So we'd have to readd "
37511 "some of those, as well as copying our PO files into the appliance."
37512 msgstr ""
37513
37514 #. type: textblock
37515 #: ../src/guestfs.pod:2680
37516 msgid ""
37517 "Debugging messages are never translated, since they are intended for the "
37518 "programmers."
37519 msgstr ""
37520
37521 #. type: =head2
37522 #: ../src/guestfs.pod:2683
37523 msgid "SOURCE CODE SUBDIRECTORIES"
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:2689
37528 msgid "The libguestfs appliance, build scripts and so on."
37529 msgstr ""
37530
37531 #. type: =item
37532 #: ../src/guestfs.pod:2691
37533 msgid "C<capitests>"
37534 msgstr "C<capitests>"
37535
37536 #. type: textblock
37537 #: ../src/guestfs.pod:2693
37538 msgid "Automated tests of the C API."
37539 msgstr ""
37540
37541 #. type: =item
37542 #: ../src/guestfs.pod:2695
37543 msgid "C<cat>"
37544 msgstr "C<cat>"
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:2697
37548 msgid ""
37549 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37550 "documentation."
37551 msgstr ""
37552
37553 #. type: =item
37554 #: ../src/guestfs.pod:2700
37555 msgid "C<caution>"
37556 msgstr ""
37557
37558 #. type: textblock
37559 #: ../src/guestfs.pod:2702
37560 msgid ""
37561 "Safety and liveness tests of components that libguestfs depends upon (not of "
37562 "libguestfs itself).  Mainly this is for qemu and the kernel."
37563 msgstr ""
37564
37565 #. type: =item
37566 #: ../src/guestfs.pod:2705
37567 msgid "C<contrib>"
37568 msgstr "C<contrib>"
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:2707
37572 msgid "Outside contributions, experimental parts."
37573 msgstr ""
37574
37575 #. type: =item
37576 #: ../src/guestfs.pod:2709
37577 msgid "C<daemon>"
37578 msgstr "C<daemon>"
37579
37580 #. type: textblock
37581 #: ../src/guestfs.pod:2711
37582 msgid ""
37583 "The daemon that runs inside the libguestfs appliance and carries out actions."
37584 msgstr ""
37585
37586 #. type: =item
37587 #: ../src/guestfs.pod:2714
37588 msgid "C<df>"
37589 msgstr "C<df>"
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:2716
37593 msgid "L<virt-df(1)> command and documentation."
37594 msgstr ""
37595
37596 #. type: =item
37597 #: ../src/guestfs.pod:2718
37598 msgid "C<edit>"
37599 msgstr ""
37600
37601 #. type: textblock
37602 #: ../src/guestfs.pod:2720
37603 msgid "L<virt-edit(1)> command and documentation."
37604 msgstr ""
37605
37606 #. type: =item
37607 #: ../src/guestfs.pod:2722
37608 msgid "C<examples>"
37609 msgstr "C<examples>"
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:2724
37613 msgid "C API example code."
37614 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37615
37616 #. type: =item
37617 #: ../src/guestfs.pod:2726
37618 msgid "C<fish>"
37619 msgstr "C<fish>"
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:2728
37623 msgid ""
37624 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37625 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37626 "L<virt-tar-out(1)>."
37627 msgstr ""
37628
37629 #. type: =item
37630 #: ../src/guestfs.pod:2732
37631 msgid "C<fuse>"
37632 msgstr "C<fuse>"
37633
37634 #. type: textblock
37635 #: ../src/guestfs.pod:2734
37636 msgid ""
37637 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37638 msgstr ""
37639
37640 #. type: =item
37641 #: ../src/guestfs.pod:2736
37642 msgid "C<generator>"
37643 msgstr "C<generator>"
37644
37645 #. type: textblock
37646 #: ../src/guestfs.pod:2738
37647 msgid ""
37648 "The crucially important generator, used to automatically generate large "
37649 "amounts of boilerplate C code for things like RPC and bindings."
37650 msgstr ""
37651
37652 #. type: =item
37653 #: ../src/guestfs.pod:2741
37654 msgid "C<images>"
37655 msgstr "C<images>"
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:2743
37659 msgid "Files used by the test suite."
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:2745
37664 msgid "Some \"phony\" guest images which we test against."
37665 msgstr ""
37666
37667 #. type: =item
37668 #: ../src/guestfs.pod:2747
37669 msgid "C<inspector>"
37670 msgstr "C<inspector>"
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:2749
37674 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37675 msgstr ""
37676
37677 #. type: =item
37678 #: ../src/guestfs.pod:2751
37679 msgid "C<logo>"
37680 msgstr "C<logo>"
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:2753
37684 msgid "Logo used on the website.  The fish is called Arthur by the way."
37685 msgstr ""
37686
37687 #. type: =item
37688 #: ../src/guestfs.pod:2755
37689 msgid "C<m4>"
37690 msgstr "C<m4>"
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:2757
37694 msgid "M4 macros used by autoconf."
37695 msgstr ""
37696
37697 #. type: =item
37698 #: ../src/guestfs.pod:2759
37699 msgid "C<po>"
37700 msgstr "C<po>"
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:2761
37704 msgid "Translations of simple gettext strings."
37705 msgstr "Переклади простих рядків gettext."
37706
37707 #. type: =item
37708 #: ../src/guestfs.pod:2763
37709 msgid "C<po-docs>"
37710 msgstr "C<po-docs>"
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:2765
37714 msgid ""
37715 "The build infrastructure and PO files for translations of manpages and POD "
37716 "files.  Eventually this will be combined with the C<po> directory, but that "
37717 "is rather complicated."
37718 msgstr ""
37719
37720 #. type: =item
37721 #: ../src/guestfs.pod:2769
37722 msgid "C<regressions>"
37723 msgstr "C<regressions>"
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:2771
37727 msgid "Regression tests."
37728 msgstr "Тести на регресії."
37729
37730 #. type: =item
37731 #: ../src/guestfs.pod:2773
37732 msgid "C<rescue>"
37733 msgstr "C<rescue>"
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:2775
37737 msgid "L<virt-rescue(1)> command and documentation."
37738 msgstr ""
37739
37740 #. type: =item
37741 #: ../src/guestfs.pod:2777
37742 msgid "C<src>"
37743 msgstr "C<src>"
37744
37745 #. type: textblock
37746 #: ../src/guestfs.pod:2779
37747 msgid "Source code to the C library."
37748 msgstr ""
37749
37750 #. type: =item
37751 #: ../src/guestfs.pod:2781
37752 msgid "C<tools>"
37753 msgstr "C<tools>"
37754
37755 #. type: textblock
37756 #: ../src/guestfs.pod:2783
37757 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37758 msgstr ""
37759
37760 #. type: =item
37761 #: ../src/guestfs.pod:2785
37762 msgid "C<test-tool>"
37763 msgstr "C<test-tool>"
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2787
37767 msgid ""
37768 "Test tool for end users to test if their qemu/kernel combination will work "
37769 "with libguestfs."
37770 msgstr ""
37771
37772 #. type: =item
37773 #: ../src/guestfs.pod:2790
37774 msgid "C<csharp>"
37775 msgstr "C<csharp>"
37776
37777 #. type: =item
37778 #: ../src/guestfs.pod:2792
37779 msgid "C<haskell>"
37780 msgstr "C<haskell>"
37781
37782 #. type: =item
37783 #: ../src/guestfs.pod:2794
37784 msgid "C<java>"
37785 msgstr "C<java>"
37786
37787 #. type: =item
37788 #: ../src/guestfs.pod:2796
37789 msgid "C<ocaml>"
37790 msgstr "C<ocaml>"
37791
37792 #. type: =item
37793 #: ../src/guestfs.pod:2798
37794 msgid "C<php>"
37795 msgstr "C<php>"
37796
37797 #. type: =item
37798 #: ../src/guestfs.pod:2800
37799 msgid "C<perl>"
37800 msgstr "C<perl>"
37801
37802 #. type: =item
37803 #: ../src/guestfs.pod:2802
37804 msgid "C<python>"
37805 msgstr "C<python>"
37806
37807 #. type: =item
37808 #: ../src/guestfs.pod:2804
37809 msgid "C<ruby>"
37810 msgstr "C<ruby>"
37811
37812 #. type: textblock
37813 #: ../src/guestfs.pod:2806
37814 msgid "Language bindings."
37815 msgstr "Прив’язки до мов програмування."
37816
37817 #. type: =head2
37818 #: ../src/guestfs.pod:2810
37819 msgid "MAKING A STABLE RELEASE"
37820 msgstr ""
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:2812
37824 msgid ""
37825 "When we make a stable release, there are several steps documented here.  See "
37826 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37827 "branch policy."
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:2820
37832 msgid ""
37833 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../src/guestfs.pod:2825
37838 msgid "Finalize RELEASE-NOTES."
37839 msgstr ""
37840
37841 #. type: textblock
37842 #: ../src/guestfs.pod:2829
37843 msgid "Update ROADMAP."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:2833
37848 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37849 msgstr ""
37850
37851 #. type: textblock
37852 #: ../src/guestfs.pod:2837
37853 msgid "Push and pull from Transifex."
37854 msgstr ""
37855
37856 #. type: textblock
37857 #: ../src/guestfs.pod:2839
37858 msgid "Run:"
37859 msgstr ""
37860
37861 #. type: verbatim
37862 #: ../src/guestfs.pod:2841
37863 #, no-wrap
37864 msgid ""
37865 " tx push -s\n"
37866 "\n"
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2843
37871 msgid "to push the latest POT files to Transifex.  Then run:"
37872 msgstr ""
37873
37874 #. type: verbatim
37875 #: ../src/guestfs.pod:2845
37876 #, no-wrap
37877 msgid ""
37878 " ./tx-pull.sh\n"
37879 "\n"
37880 msgstr ""
37881
37882 #. type: textblock
37883 #: ../src/guestfs.pod:2847
37884 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37885 msgstr ""
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:2851
37889 msgid ""
37890 "Create new stable and development directories under L<http://libguestfs.org/"
37891 "download>."
37892 msgstr ""
37893
37894 #. type: textblock
37895 #: ../src/guestfs.pod:2856
37896 msgid "Create the branch in git:"
37897 msgstr ""
37898
37899 #. type: verbatim
37900 #: ../src/guestfs.pod:2858
37901 #, no-wrap
37902 msgid ""
37903 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37904 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37905 " git branch stable-1.XX\n"
37906 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37907 "\n"
37908 msgstr ""
37909
37910 #. type: =head1
37911 #: ../src/guestfs.pod:2865
37912 msgid "LIMITS"
37913 msgstr ""
37914
37915 #. type: =head2
37916 #: ../src/guestfs.pod:2867
37917 msgid "PROTOCOL LIMITS"
37918 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:2869
37922 msgid ""
37923 "Internally libguestfs uses a message-based protocol to pass API calls and "
37924 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37925 "plenty more detail about this).  The maximum message size used by the "
37926 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37927 "aware of this limit.  The API calls which may be affected are individually "
37928 "documented, with a link back to this section of the documentation."
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:2877
37933 msgid ""
37934 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37935 "a simple string.  Because this string is at some point internally encoded as "
37936 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37937 "the requested file is larger than this then you will get an error."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:2883
37942 msgid ""
37943 "In order to transfer large files into and out of the guest filesystem, you "
37944 "need to use particular calls that support this.  The sections L</UPLOADING> "
37945 "and L</DOWNLOADING> document how to do this."
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:2887
37950 msgid ""
37951 "You might also consider mounting the disk image using our FUSE filesystem "
37952 "support (L<guestmount(1)>)."
37953 msgstr ""
37954
37955 #. type: =head2
37956 #: ../src/guestfs.pod:2890
37957 msgid "MAXIMUM NUMBER OF DISKS"
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:2892
37962 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:2895
37967 msgid ""
37968 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37969 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37970 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37971 "purposes."
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:2900
37976 msgid ""
37977 "We are working to substantially raise this limit in future versions but it "
37978 "requires complex changes to qemu."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2903
37983 msgid ""
37984 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37985 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37986 "requires changes to qemu."
37987 msgstr ""
37988
37989 #. type: =head2
37990 #: ../src/guestfs.pod:2907
37991 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:2909
37996 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:2911
38001 msgid ""
38002 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38003 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:2914
38008 msgid ""
38009 "If you attach a disk with more than 15 partitions, the extra partitions are "
38010 "ignored by libguestfs."
38011 msgstr ""
38012
38013 #. type: =head2
38014 #: ../src/guestfs.pod:2917
38015 msgid "MAXIMUM SIZE OF A DISK"
38016 msgstr ""
38017
38018 #. type: textblock
38019 #: ../src/guestfs.pod:2919
38020 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2921
38025 msgid ""
38026 "We have tested block devices up to 1 exabyte (2**60 or "
38027 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38028 "filesystem."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:2925
38033 msgid ""
38034 "Although libguestfs probably does not impose any limit, the underlying host "
38035 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38036 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38037 "TB).  If you store disk images as host logical volumes then you are limited "
38038 "by the maximum size of an LV."
38039 msgstr ""
38040
38041 #. type: textblock
38042 #: ../src/guestfs.pod:2931
38043 msgid ""
38044 "For the hugest disk image files, we recommend using XFS on the host for "
38045 "storage."
38046 msgstr ""
38047
38048 #. type: =head2
38049 #: ../src/guestfs.pod:2934
38050 msgid "MAXIMUM SIZE OF A PARTITION"
38051 msgstr ""
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:2936
38055 msgid ""
38056 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38057 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38058 "address a partition located beyond 2 TB on the disk."
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:2940
38063 msgid ""
38064 "It is recommended that you use GPT partitions on disks which are larger than "
38065 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38066 "which are theoretically larger than the largest disk we could support."
38067 msgstr ""
38068
38069 #. type: =head2
38070 #: ../src/guestfs.pod:2945
38071 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:2947
38076 msgid ""
38077 "This depends on the filesystem type.  libguestfs itself does not impose any "
38078 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38079 "what these limits are."
38080 msgstr ""
38081
38082 #. type: =head2
38083 #: ../src/guestfs.pod:2951
38084 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38085 msgstr ""
38086
38087 #. type: textblock
38088 #: ../src/guestfs.pod:2953
38089 msgid ""
38090 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38091 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38092 "uploads and downloads."
38093 msgstr ""
38094
38095 #. type: =head2
38096 #: ../src/guestfs.pod:2957
38097 msgid "INSPECTION LIMITS"
38098 msgstr ""
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:2959
38102 msgid ""
38103 "The inspection code has several arbitrary limits on things like the size of "
38104 "Windows Registry hive it will read, and the length of product name.  These "
38105 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38106 "memory and disk space on the host, and should not be reached in practice.  "
38107 "See the source code for more information."
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:2985
38112 msgid ""
38113 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38114 "effect as calling C<guestfs_set_verbose (g, 1)>."
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:2997
38119 msgid ""
38120 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38121 "the discussion of paths in section L</PATH> above."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:3006
38126 msgid "See also L</QEMU WRAPPERS> above."
38127 msgstr ""
38128
38129 #. type: textblock
38130 #: ../src/guestfs.pod:3010
38131 msgid ""
38132 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38133 "effect as calling C<guestfs_set_trace (g, 1)>."
38134 msgstr ""
38135
38136 #. type: textblock
38137 #: ../src/guestfs.pod:3028
38138 msgid ""
38139 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38140 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38141 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38142 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38143 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38144 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38145 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38146 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38147 msgstr ""
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:3058
38151 msgid ""
38152 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38153 "(8)>, L<disktype(1)>."
38154 msgstr ""
38155
38156 #. type: =head1
38157 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
38158 #: ../tools/virt-win-reg.pl:761
38159 msgid "BUGS"
38160 msgstr "ВАДИ"
38161
38162 #. type: textblock
38163 #: ../src/guestfs.pod:3067
38164 msgid "To get a list of bugs against libguestfs use this link:"
38165 msgstr ""
38166 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38167 "посиланням:"
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:3069
38171 msgid ""
38172 "L<https://bugzilla.redhat.com/buglist.cgi?"
38173 "component=libguestfs&product=Virtualization+Tools>"
38174 msgstr ""
38175 "L<https://bugzilla.redhat.com/buglist.cgi?"
38176 "component=libguestfs&product=Virtualization+Tools>"
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:3071
38180 msgid "To report a new bug against libguestfs use this link:"
38181 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38182
38183 #. type: textblock
38184 #: ../src/guestfs.pod:3073
38185 msgid ""
38186 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38187 "component=libguestfs&product=Virtualization+Tools>"
38188 msgstr ""
38189 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38190 "component=libguestfs&product=Virtualization+Tools>"
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:3075
38194 msgid "When reporting a bug, please check:"
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:3081
38199 msgid "That the bug hasn't been reported already."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:3085
38204 msgid "That you are testing a recent version."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:3089
38209 msgid "Describe the bug accurately, and give a way to reproduce it."
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:3093
38214 msgid ""
38215 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38216 "bug report."
38217 msgstr ""
38218
38219 #. type: textblock
38220 #: ../test-tool/libguestfs-test-tool.pod:5
38221 msgid "libguestfs-test-tool - End user tests for libguestfs"
38222 msgstr ""
38223
38224 #. type: verbatim
38225 #: ../test-tool/libguestfs-test-tool.pod:9
38226 #, no-wrap
38227 msgid ""
38228 " libguestfs-test-tool [--options]\n"
38229 "\n"
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../test-tool/libguestfs-test-tool.pod:13
38234 msgid ""
38235 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38236 "and developers, to allow them to check basic libguestfs functionality is "
38237 "working.  This is needed because libguestfs occasionally breaks for reasons "
38238 "beyond our control: usually because of changes in the underlying qemu or "
38239 "kernel packages, or the host environment."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../test-tool/libguestfs-test-tool.pod:20
38244 msgid "If you suspect a problem in libguestfs, then just run:"
38245 msgstr ""
38246
38247 #. type: verbatim
38248 #: ../test-tool/libguestfs-test-tool.pod:22
38249 #, no-wrap
38250 msgid ""
38251 " libguestfs-test-tool\n"
38252 "\n"
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../test-tool/libguestfs-test-tool.pod:24
38257 msgid "It will print lots of diagnostic messages."
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../test-tool/libguestfs-test-tool.pod:26
38262 msgid "If it runs to completion successfully, you will see this near the end:"
38263 msgstr ""
38264
38265 #. type: verbatim
38266 #: ../test-tool/libguestfs-test-tool.pod:28
38267 #, no-wrap
38268 msgid ""
38269 " ===== TEST FINISHED OK =====\n"
38270 "\n"
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../test-tool/libguestfs-test-tool.pod:30
38275 msgid "and the test tool will exit with code 0."
38276 msgstr ""
38277
38278 #. type: textblock
38279 #: ../test-tool/libguestfs-test-tool.pod:32
38280 msgid ""
38281 "If it fails (and/or exits with non-zero error code), please paste the "
38282 "B<complete, unedited> output of the test tool into a bug report.  More "
38283 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38284 "> website."
38285 msgstr ""
38286
38287 #. type: =item
38288 #: ../test-tool/libguestfs-test-tool.pod:41
38289 msgid "I<--help>"
38290 msgstr "I<--help>"
38291
38292 #. type: textblock
38293 #: ../test-tool/libguestfs-test-tool.pod:43
38294 msgid "Display short usage information and exit."
38295 msgstr ""
38296
38297 #. type: =item
38298 #: ../test-tool/libguestfs-test-tool.pod:45
38299 msgid "I<--qemu qemu_binary>"
38300 msgstr "I<--qemu виконуваний_файл_qemu>"
38301
38302 #. type: textblock
38303 #: ../test-tool/libguestfs-test-tool.pod:47
38304 msgid ""
38305 "If you have downloaded another qemu binary, point this option at the full "
38306 "path of the binary to try it."
38307 msgstr ""
38308
38309 #. type: =item
38310 #: ../test-tool/libguestfs-test-tool.pod:50
38311 msgid "I<--qemudir qemu_source_dir>"
38312 msgstr ""
38313
38314 #. type: textblock
38315 #: ../test-tool/libguestfs-test-tool.pod:52
38316 msgid ""
38317 "If you have compiled qemu from source, point this option at the source "
38318 "directory to try it."
38319 msgstr ""
38320
38321 #. type: =item
38322 #: ../test-tool/libguestfs-test-tool.pod:55
38323 msgid "I<--timeout N>"
38324 msgstr "I<--timeout N>"
38325
38326 #. type: textblock
38327 #: ../test-tool/libguestfs-test-tool.pod:57
38328 msgid ""
38329 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38330 "does not usually need to be adjusted unless your machine is very slow."
38331 msgstr ""
38332
38333 #. type: =head1
38334 #: ../test-tool/libguestfs-test-tool.pod:63
38335 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../test-tool/libguestfs-test-tool.pod:65
38340 msgid ""
38341 "If you have compiled another version of qemu from source and would like to "
38342 "try that, then you can use the I<--qemudir> option to point to the qemu "
38343 "source directory."
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../test-tool/libguestfs-test-tool.pod:69
38348 msgid ""
38349 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38350 "option to point to the binary."
38351 msgstr ""
38352
38353 #. type: textblock
38354 #: ../test-tool/libguestfs-test-tool.pod:72
38355 msgid ""
38356 "When using an alternate qemu with libguestfs, usually you would need to "
38357 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38358 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38359 "use either of the I<--qemudir> or I<--qemu> options."
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../test-tool/libguestfs-test-tool.pod:79
38364 msgid ""
38365 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38366 "I<1> if there was an error."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../test-tool/libguestfs-test-tool.pod:84
38371 msgid ""
38372 "For the full list of environment variables which may affect libguestfs, "
38373 "please see the L<guestfs(3)> manual page."
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../test-tool/libguestfs-test-tool.pod:89
38378 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../tools/virt-list-filesystems.pl:32
38383 msgid ""
38384 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38385 msgstr ""
38386
38387 #. type: verbatim
38388 #: ../tools/virt-list-filesystems.pl:36
38389 #, no-wrap
38390 msgid ""
38391 " virt-list-filesystems [--options] domname\n"
38392 "\n"
38393 msgstr ""
38394
38395 #. type: verbatim
38396 #: ../tools/virt-list-filesystems.pl:38
38397 #, no-wrap
38398 msgid ""
38399 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38400 "\n"
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38405 msgid ""
38406 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38407 "replacement."
38408 msgstr ""
38409
38410 #. type: textblock
38411 #: ../tools/virt-list-filesystems.pl:45
38412 msgid ""
38413 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38414 "are contained in a virtual machine or disk image."
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../tools/virt-list-filesystems.pl:49
38419 msgid ""
38420 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38421 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38422 "> tool."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../tools/virt-list-filesystems.pl:112
38427 msgid ""
38428 "With this option, C<virt-list-filesystems> displays the type of each "
38429 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38430 msgstr ""
38431
38432 #. type: =item
38433 #: ../tools/virt-list-filesystems.pl:119
38434 #, fuzzy
38435 #| msgid "B<-a image>"
38436 msgid "B<-a>"
38437 msgstr "B<-a образ>"
38438
38439 #. type: textblock
38440 #: ../tools/virt-list-filesystems.pl:123
38441 msgid ""
38442 "Normally we only show mountable filesystems.  If this option is given then "
38443 "swap devices are shown too."
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../tools/virt-list-filesystems.pl:197
38448 msgid ""
38449 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38450 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38451 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38452 msgstr ""
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
38457 #. type: textblock
38458 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38459 msgid "Copyright (C) 2009 Red Hat Inc."
38460 msgstr "© Red Hat Inc., 2009"
38461
38462 #. type: textblock
38463 #: ../tools/virt-list-partitions.pl:32
38464 msgid ""
38465 "virt-list-partitions - List partitions in a virtual machine or disk image"
38466 msgstr ""
38467
38468 #. type: verbatim
38469 #: ../tools/virt-list-partitions.pl:36
38470 #, no-wrap
38471 msgid ""
38472 " virt-list-partitions [--options] domname\n"
38473 "\n"
38474 msgstr ""
38475 " virt-list-partitions [--параметри] назва_домену\n"
38476 "\n"
38477
38478 #. type: verbatim
38479 #: ../tools/virt-list-partitions.pl:38
38480 #, no-wrap
38481 msgid ""
38482 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38483 "\n"
38484 msgstr ""
38485 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38486 "\n"
38487
38488 #. type: textblock
38489 #: ../tools/virt-list-partitions.pl:45
38490 msgid ""
38491 "C<virt-list-partitions> is a command line tool to list the partitions that "
38492 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38493 "first step to using L<virt-resize(1)>."
38494 msgstr ""
38495
38496 #. type: textblock
38497 #: ../tools/virt-list-partitions.pl:50
38498 msgid ""
38499 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38500 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38501 "> tool."
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../tools/virt-list-partitions.pl:113
38506 msgid "Show sizes in human-readable form (eg. \"1G\")."
38507 msgstr ""
38508
38509 #. type: textblock
38510 #: ../tools/virt-list-partitions.pl:123
38511 msgid ""
38512 "With this option, C<virt-list-partitions> displays the type and size of each "
38513 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38514 msgstr ""
38515
38516 #. type: =item
38517 #: ../tools/virt-list-partitions.pl:130
38518 msgid "B<-t>"
38519 msgstr ""
38520
38521 #. type: =item
38522 #: ../tools/virt-list-partitions.pl:132
38523 #, fuzzy
38524 #| msgid "B<-t> | B<--total>"
38525 msgid "B<--total>"
38526 msgstr "B<-t> | B<--total>"
38527
38528 #. type: textblock
38529 #: ../tools/virt-list-partitions.pl:134
38530 msgid ""
38531 "Display the total size of each block device (as a separate row or rows)."
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../tools/virt-list-partitions.pl:267
38536 msgid ""
38537 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38538 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38539 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38540 msgstr ""
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
38545 #. type: textblock
38546 #: ../tools/virt-list-partitions.pl:283
38547 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38548 msgstr "© Red Hat Inc., 2009–2010"
38549
38550 #. type: textblock
38551 #: ../tools/virt-make-fs.pl:37
38552 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38553 msgstr ""
38554
38555 #. type: verbatim
38556 #: ../tools/virt-make-fs.pl:41
38557 #, no-wrap
38558 msgid ""
38559 " virt-make-fs [--options] input.tar output.img\n"
38560 "\n"
38561 msgstr ""
38562
38563 #. type: verbatim
38564 #: ../tools/virt-make-fs.pl:43
38565 #, no-wrap
38566 msgid ""
38567 " virt-make-fs [--options] input.tar.gz output.img\n"
38568 "\n"
38569 msgstr ""
38570
38571 #. type: verbatim
38572 #: ../tools/virt-make-fs.pl:45
38573 #, no-wrap
38574 msgid ""
38575 " virt-make-fs [--options] directory output.img\n"
38576 "\n"
38577 msgstr ""
38578
38579 #. type: textblock
38580 #: ../tools/virt-make-fs.pl:49
38581 msgid ""
38582 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38583 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38584 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38585 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38586 "you want to attach these filesystems to existing virtual machines (eg. to "
38587 "import large amounts of read-only data to a VM)."
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../tools/virt-make-fs.pl:57
38592 msgid "Basic usage is:"
38593 msgstr ""
38594
38595 #. type: verbatim
38596 #: ../tools/virt-make-fs.pl:59
38597 #, no-wrap
38598 msgid ""
38599 " virt-make-fs input output\n"
38600 "\n"
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../tools/virt-make-fs.pl:61
38605 msgid ""
38606 "where C<input> is either a directory containing files that you want to add, "
38607 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38608 "C<output> is a disk image.  The input type is detected automatically.  The "
38609 "output disk image defaults to a raw ext2 image unless you specify extra "
38610 "flags (see L</OPTIONS> below)."
38611 msgstr ""
38612
38613 #. type: =head2
38614 #: ../tools/virt-make-fs.pl:67
38615 msgid "EXTRA SPACE"
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../tools/virt-make-fs.pl:69
38620 msgid ""
38621 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38622 "the files that it contains, but might have extra space.  Depending on how "
38623 "you are going to use the output, you might think this extra space is wasted "
38624 "and want to minimize it, or you might want to leave space so that more files "
38625 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38626 "but you can use the I<--size> flag to leave space in the filesystem if you "
38627 "want it."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../tools/virt-make-fs.pl:77
38632 msgid ""
38633 "An alternative way to leave extra space but not make the output image any "
38634 "bigger is to use an alternative disk image format (instead of the default "
38635 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38636 "image format (check your hypervisor supports this before using it).  This "
38637 "allows you to choose a large I<--size> but the extra space won't actually be "
38638 "allocated in the image until you try to store something in it."
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../tools/virt-make-fs.pl:85
38643 msgid ""
38644 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38645 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38646 "to build another image from scratch."
38647 msgstr ""
38648
38649 #. type: =head3
38650 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38651 #: ../tools/virt-make-fs.pl:142
38652 msgid "EXAMPLE"
38653 msgstr "ПРИКЛАД"
38654
38655 #. type: verbatim
38656 #: ../tools/virt-make-fs.pl:91
38657 #, no-wrap
38658 msgid ""
38659 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38660 "\n"
38661 msgstr ""
38662 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38663 "\n"
38664
38665 #. type: =head2
38666 #: ../tools/virt-make-fs.pl:93
38667 msgid "FILESYSTEM TYPE"
38668 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38669
38670 #. type: textblock
38671 #: ../tools/virt-make-fs.pl:95
38672 msgid ""
38673 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38674 "libguestfs supports can be used (but I<not> read-only formats like "
38675 "ISO9660).  Here are some of the more common choices:"
38676 msgstr ""
38677
38678 #. type: =item
38679 #: ../tools/virt-make-fs.pl:101
38680 msgid "I<ext3>"
38681 msgstr "I<ext3>"
38682
38683 #. type: textblock
38684 #: ../tools/virt-make-fs.pl:103
38685 msgid ""
38686 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38687 "you are not going to use the filesystem in a way that requires the journal, "
38688 "then this is just wasted overhead."
38689 msgstr ""
38690
38691 #. type: =item
38692 #: ../tools/virt-make-fs.pl:107
38693 msgid "I<ntfs> or I<vfat>"
38694 msgstr "I<ntfs> або I<vfat>"
38695
38696 #. type: textblock
38697 #: ../tools/virt-make-fs.pl:109
38698 msgid "Useful if exporting data to a Windows guest."
38699 msgstr ""
38700
38701 #. type: textblock
38702 #: ../tools/virt-make-fs.pl:111
38703 msgid ""
38704 "I<Note for vfat>: The tar archive or local directory must only contain files "
38705 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38706 "program running within libguestfs is unable to change the ownership of non-"
38707 "root files, since vfat itself does not support this."
38708 msgstr ""
38709
38710 #. type: =item
38711 #: ../tools/virt-make-fs.pl:116
38712 msgid "I<minix>"
38713 msgstr "I<minix>"
38714
38715 #. type: textblock
38716 #: ../tools/virt-make-fs.pl:118
38717 msgid ""
38718 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38719 "total filesystem size."
38720 msgstr ""
38721
38722 #. type: verbatim
38723 #: ../tools/virt-make-fs.pl:125
38724 #, no-wrap
38725 msgid ""
38726 " virt-make-fs --type=minix input minixfs.img\n"
38727 "\n"
38728 msgstr ""
38729
38730 #. type: =head2
38731 #: ../tools/virt-make-fs.pl:127
38732 msgid "TO PARTITION OR NOT TO PARTITION"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../tools/virt-make-fs.pl:129
38737 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../tools/virt-make-fs.pl:131
38742 msgid ""
38743 "Adding a partition can make the disk image more compatible with certain "
38744 "virtualized operating systems which don't expect to see a filesystem "
38745 "directly located on a block device (Linux doesn't care and will happily "
38746 "handle both types)."
38747 msgstr ""
38748
38749 #. type: textblock
38750 #: ../tools/virt-make-fs.pl:136
38751 msgid ""
38752 "On the other hand, if you have a partition table then the output image is no "
38753 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38754 "directly on a partitioned disk image.  (However libguestfs tools such as "
38755 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../tools/virt-make-fs.pl:144
38760 msgid "Add an MBR partition:"
38761 msgstr ""
38762
38763 #. type: verbatim
38764 #: ../tools/virt-make-fs.pl:146
38765 #, no-wrap
38766 msgid ""
38767 " virt-make-fs --partition -- input disk.img\n"
38768 "\n"
38769 msgstr ""
38770
38771 #. type: textblock
38772 #: ../tools/virt-make-fs.pl:148
38773 msgid ""
38774 "If the output disk image could be terabyte-sized or larger, it's better to "
38775 "use an EFI/GPT-compatible partition table:"
38776 msgstr ""
38777
38778 #. type: verbatim
38779 #: ../tools/virt-make-fs.pl:151
38780 #, no-wrap
38781 msgid ""
38782 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38783 "\n"
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../tools/virt-make-fs.pl:179
38788 msgid "Enable debugging information."
38789 msgstr "Увімкнути виведення діагностичних даних."
38790
38791 #. type: =item
38792 #: ../tools/virt-make-fs.pl:185
38793 msgid "B<--size=E<lt>NE<gt>>"
38794 msgstr "B<--size=E<lt>NE<gt>>"
38795
38796 #. type: =item
38797 #: ../tools/virt-make-fs.pl:187
38798 msgid "B<--size=+E<lt>NE<gt>>"
38799 msgstr "B<--size=+E<lt>NE<gt>>"
38800
38801 #. type: =item
38802 #: ../tools/virt-make-fs.pl:189
38803 msgid "B<-s E<lt>NE<gt>>"
38804 msgstr "B<-s E<lt>NE<gt>>"
38805
38806 #. type: =item
38807 #: ../tools/virt-make-fs.pl:191
38808 msgid "B<-s +E<lt>NE<gt>>"
38809 msgstr "B<-s +E<lt>NE<gt>>"
38810
38811 #. type: textblock
38812 #: ../tools/virt-make-fs.pl:193
38813 msgid ""
38814 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38815 msgstr ""
38816
38817 #. type: textblock
38818 #: ../tools/virt-make-fs.pl:196
38819 msgid ""
38820 "If this option is I<not> given, then the output image will be just large "
38821 "enough to contain all the files, with not much wasted space."
38822 msgstr ""
38823
38824 #. type: textblock
38825 #: ../tools/virt-make-fs.pl:199
38826 msgid ""
38827 "To choose a fixed size output disk, specify an absolute number followed by b/"
38828 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38829 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38830 "files, else you will get an error."
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../tools/virt-make-fs.pl:204
38835 msgid ""
38836 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38837 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38838 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38839 "the input files, and (approximately) an extra 200 MB free space."
38840 msgstr ""
38841
38842 #. type: textblock
38843 #: ../tools/virt-make-fs.pl:210
38844 msgid ""
38845 "Note that virt-make-fs estimates free space, and therefore will not produce "
38846 "filesystems containing precisely the free space requested.  (It is much more "
38847 "expensive and time-consuming to produce a filesystem which has precisely the "
38848 "desired free space)."
38849 msgstr ""
38850
38851 #. type: =item
38852 #: ../tools/virt-make-fs.pl:219
38853 msgid "B<--format=E<lt>fmtE<gt>>"
38854 msgstr ""
38855
38856 #. type: =item
38857 #: ../tools/virt-make-fs.pl:221
38858 msgid "B<-F E<lt>fmtE<gt>>"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../tools/virt-make-fs.pl:223
38863 msgid "Choose the output disk image format."
38864 msgstr ""
38865
38866 #. type: textblock
38867 #: ../tools/virt-make-fs.pl:225
38868 msgid "The default is C<raw> (raw disk image)."
38869 msgstr ""
38870
38871 #. type: textblock
38872 #: ../tools/virt-make-fs.pl:227
38873 msgid ""
38874 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38875 "that would really make sense here is C<qcow2>."
38876 msgstr ""
38877
38878 #. type: =item
38879 #: ../tools/virt-make-fs.pl:234
38880 msgid "B<--type=E<lt>fsE<gt>>"
38881 msgstr ""
38882
38883 #. type: =item
38884 #: ../tools/virt-make-fs.pl:236
38885 msgid "B<-t E<lt>fsE<gt>>"
38886 msgstr ""
38887
38888 #. type: textblock
38889 #: ../tools/virt-make-fs.pl:238
38890 msgid "Choose the output filesystem type."
38891 msgstr ""
38892
38893 #. type: textblock
38894 #: ../tools/virt-make-fs.pl:240
38895 msgid "The default is C<ext2>."
38896 msgstr "Типовим значенням є C<ext2>."
38897
38898 #. type: textblock
38899 #: ../tools/virt-make-fs.pl:242
38900 msgid ""
38901 "Any filesystem which is supported read-write by libguestfs can be used here."
38902 msgstr ""
38903
38904 #. type: =item
38905 #: ../tools/virt-make-fs.pl:249
38906 msgid "B<--partition>"
38907 msgstr "B<--partition>"
38908
38909 #. type: =item
38910 #: ../tools/virt-make-fs.pl:251
38911 msgid "B<--partition=E<lt>parttypeE<gt>>"
38912 msgstr ""
38913
38914 #. type: textblock
38915 #: ../tools/virt-make-fs.pl:253
38916 msgid ""
38917 "If specified, this flag adds an MBR partition table to the output disk image."
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../tools/virt-make-fs.pl:256
38922 msgid ""
38923 "You can change the partition table type, eg. I<--partition=gpt> for large "
38924 "disks."
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../tools/virt-make-fs.pl:259
38929 msgid ""
38930 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38931 "might consider the next parameter to be the partition type.  For example:"
38932 msgstr ""
38933
38934 #. type: verbatim
38935 #: ../tools/virt-make-fs.pl:263
38936 #, no-wrap
38937 msgid ""
38938 " virt-make-fs --partition input.tar ...\n"
38939 "\n"
38940 msgstr ""
38941
38942 #. type: textblock
38943 #: ../tools/virt-make-fs.pl:265
38944 msgid ""
38945 "would cause virt-make-fs to think you wanted to use a partition type of "
38946 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38947 "dash) between options and the input file argument:"
38948 msgstr ""
38949
38950 #. type: verbatim
38951 #: ../tools/virt-make-fs.pl:269
38952 #, no-wrap
38953 msgid ""
38954 " virt-make-fs --partition -- input.tar ...\n"
38955 "\n"
38956 msgstr ""
38957 " virt-make-fs --partition -- input.tar ...\n"
38958 "\n"
38959
38960 #. type: textblock
38961 #: ../tools/virt-make-fs.pl:541
38962 msgid ""
38963 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38964 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38965 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38966 msgstr ""
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
38971 #. type: textblock
38972 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38973 msgid ""
38974 "When reporting bugs, please enable debugging and capture the I<complete> "
38975 "output:"
38976 msgstr ""
38977
38978 #. type: verbatim
38979 #: ../tools/virt-make-fs.pl:558
38980 #, no-wrap
38981 msgid ""
38982 " export LIBGUESTFS_DEBUG=1\n"
38983 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38984 "\n"
38985 msgstr ""
38986 " export LIBGUESTFS_DEBUG=1\n"
38987 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38988 "\n"
38989
38990 #. type: textblock
38991 #: ../tools/virt-make-fs.pl:561
38992 msgid ""
38993 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38994 "redhat.com/>"
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../tools/virt-tar.pl:33
38999 msgid "virt-tar - Extract or upload files to a virtual machine"
39000 msgstr ""
39001
39002 #. type: verbatim
39003 #: ../tools/virt-tar.pl:37
39004 #, no-wrap
39005 msgid ""
39006 " virt-tar [--options] -x domname directory tarball\n"
39007 "\n"
39008 msgstr ""
39009
39010 #. type: verbatim
39011 #: ../tools/virt-tar.pl:39
39012 #, no-wrap
39013 msgid ""
39014 " virt-tar [--options] -u domname tarball directory\n"
39015 "\n"
39016 msgstr ""
39017
39018 #. type: verbatim
39019 #: ../tools/virt-tar.pl:41
39020 #, no-wrap
39021 msgid ""
39022 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39023 "\n"
39024 msgstr ""
39025
39026 #. type: verbatim
39027 #: ../tools/virt-tar.pl:43
39028 #, no-wrap
39029 msgid ""
39030 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39031 "\n"
39032 msgstr ""
39033
39034 #. type: =head2
39035 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39036 msgid "NOTE"
39037 msgstr "ПРИМІТКА"
39038
39039 #. type: textblock
39040 #: ../tools/virt-tar.pl:47
39041 msgid ""
39042 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39043 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../tools/virt-tar.pl:52
39048 msgid "Download C</home> from the VM into a local tarball:"
39049 msgstr ""
39050
39051 #. type: verbatim
39052 #: ../tools/virt-tar.pl:54
39053 #, no-wrap
39054 msgid ""
39055 " virt-tar -x domname /home home.tar\n"
39056 "\n"
39057 msgstr ""
39058
39059 #. type: verbatim
39060 #: ../tools/virt-tar.pl:56
39061 #, no-wrap
39062 msgid ""
39063 " virt-tar -zx domname /home home.tar.gz\n"
39064 "\n"
39065 msgstr ""
39066
39067 #. type: textblock
39068 #: ../tools/virt-tar.pl:58
39069 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39070 msgstr ""
39071
39072 #. type: verbatim
39073 #: ../tools/virt-tar.pl:60
39074 #, no-wrap
39075 msgid ""
39076 " virt-tar -u domname uploadstuff.tar /tmp\n"
39077 "\n"
39078 msgstr ""
39079
39080 #. type: verbatim
39081 #: ../tools/virt-tar.pl:62
39082 #, no-wrap
39083 msgid ""
39084 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39085 "\n"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../tools/virt-tar.pl:66
39090 msgid ""
39091 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39092 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39093 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39094 msgstr ""
39095
39096 #. type: textblock
39097 #: ../tools/virt-tar.pl:71
39098 msgid ""
39099 "You can use I<-x> (extract) on live virtual machines, but you might get "
39100 "inconsistent results or errors if there is filesystem activity inside the "
39101 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39102 "work, but the only way to guarantee consistent results is if the virtual "
39103 "machine is shut down."
39104 msgstr ""
39105
39106 #. type: textblock
39107 #: ../tools/virt-tar.pl:79
39108 msgid ""
39109 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39110 "parts of a guest filesystem.  There are many possibilities: making backups, "
39111 "uploading data files, snooping on guest activity, fixing or customizing "
39112 "guests, etc."
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../tools/virt-tar.pl:84
39117 msgid ""
39118 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39119 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39120 "should look at the L<guestfish(1)> tool."
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../tools/virt-tar.pl:88
39125 msgid ""
39126 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39127 "its contents (recursively) from the virtual machine into a local tarball.  "
39128 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39129 "virtual machine.  You cannot use these two options together."
39130 msgstr ""
39131
39132 #. type: textblock
39133 #: ../tools/virt-tar.pl:94
39134 msgid ""
39135 "In addition, you may need to use the I<-z> (gZip) option to enable "
39136 "compression.  When uploading, you have to specify I<-z> if the upload file "
39137 "is compressed because virt-tar won't detect this on its own."
39138 msgstr ""
39139
39140 #. type: textblock
39141 #: ../tools/virt-tar.pl:98
39142 msgid ""
39143 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39144 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39145 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39146 "the L<libguestfs(3)> API)."
39147 msgstr ""
39148
39149 #. type: =item
39150 #: ../tools/virt-tar.pl:160
39151 #, fuzzy
39152 #| msgid "B<--format>"
39153 msgid "B<--extract>"
39154 msgstr "B<--format>"
39155
39156 #. type: =item
39157 #: ../tools/virt-tar.pl:162
39158 #, fuzzy
39159 #| msgid "download"
39160 msgid "B<--download>"
39161 msgstr "download"
39162
39163 #. type: =item
39164 #: ../tools/virt-tar.pl:164
39165 msgid "B<-u>"
39166 msgstr ""
39167
39168 #. type: =item
39169 #: ../tools/virt-tar.pl:166
39170 #, fuzzy
39171 #| msgid "B<-u> | B<--upload>"
39172 msgid "B<--upload>"
39173 msgstr "B<-u> | B<--upload>"
39174
39175 #. type: textblock
39176 #: ../tools/virt-tar.pl:168
39177 msgid ""
39178 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39179 "local tarball."
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../tools/virt-tar.pl:171
39184 msgid ""
39185 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39186 "Please read the L</WARNING> section above before using this option."
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../tools/virt-tar.pl:175
39191 msgid "You must specify exactly one of these options."
39192 msgstr ""
39193
39194 #. type: =item
39195 #: ../tools/virt-tar.pl:181
39196 msgid "B<-z>"
39197 msgstr ""
39198
39199 #. type: =item
39200 #: ../tools/virt-tar.pl:183
39201 #, fuzzy
39202 #| msgid "B<-z> | B<--gzip>"
39203 msgid "B<--gzip>"
39204 msgstr "B<-z> | B<--gzip>"
39205
39206 #. type: textblock
39207 #: ../tools/virt-tar.pl:185
39208 msgid "Specify that the input or output tarball is gzip-compressed."
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../tools/virt-tar.pl:298
39213 msgid ""
39214 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39215 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39216 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39217 "org/>."
39218 msgstr ""
39219 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39220 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39221 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39222 "org/>."
39223
39224 #. type: textblock
39225 #: ../tools/virt-win-reg.pl:37
39226 msgid ""
39227 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39228 msgstr ""
39229
39230 #. type: verbatim
39231 #: ../tools/virt-win-reg.pl:41
39232 #, no-wrap
39233 msgid ""
39234 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39235 "\n"
39236 msgstr ""
39237
39238 #. type: verbatim
39239 #: ../tools/virt-win-reg.pl:43
39240 #, no-wrap
39241 msgid ""
39242 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39243 "\n"
39244 msgstr ""
39245
39246 #. type: verbatim
39247 #: ../tools/virt-win-reg.pl:45
39248 #, no-wrap
39249 msgid ""
39250 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39251 "\n"
39252 msgstr ""
39253
39254 #. type: verbatim
39255 #: ../tools/virt-win-reg.pl:47
39256 #, no-wrap
39257 msgid ""
39258 " virt-win-reg --merge domname [input.reg ...]\n"
39259 "\n"
39260 msgstr ""
39261
39262 #. type: verbatim
39263 #: ../tools/virt-win-reg.pl:49
39264 #, no-wrap
39265 msgid ""
39266 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39267 "\n"
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../tools/virt-win-reg.pl:53
39272 msgid ""
39273 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39274 "virtual machines.  If you do this, you I<will> get irreversible disk "
39275 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39276 "but doesn't catch all cases."
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../tools/virt-win-reg.pl:58
39281 msgid ""
39282 "Modifying the Windows Registry is an inherently risky operation.  The format "
39283 "is deliberately obscure and undocumented, and Registry changes can leave the "
39284 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39285 "you have a reliable backup first."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../tools/virt-win-reg.pl:65
39290 msgid ""
39291 "This program can export and merge Windows Registry entries from a Windows "
39292 "guest."
39293 msgstr ""
39294
39295 #. type: textblock
39296 #: ../tools/virt-win-reg.pl:68
39297 msgid ""
39298 "The first parameter is the libvirt guest name or the raw disk image of a "
39299 "Windows guest."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../tools/virt-win-reg.pl:71
39304 msgid ""
39305 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39306 "exported (recursively).  For example:"
39307 msgstr ""
39308
39309 #. type: verbatim
39310 #: ../tools/virt-win-reg.pl:74
39311 #, no-wrap
39312 msgid ""
39313 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39314 "\n"
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../tools/virt-win-reg.pl:76
39319 msgid ""
39320 "You can also display single values from within registry keys, for example:"
39321 msgstr ""
39322
39323 #. type: verbatim
39324 #: ../tools/virt-win-reg.pl:79
39325 #, no-wrap
39326 msgid ""
39327 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39328 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39329 " Windows 7 Enterprise\n"
39330 "\n"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../tools/virt-win-reg.pl:83
39335 msgid ""
39336 "With I<--merge>, you can merge a textual regedit file into the Windows "
39337 "Registry:"
39338 msgstr ""
39339
39340 #. type: verbatim
39341 #: ../tools/virt-win-reg.pl:86
39342 #, no-wrap
39343 msgid ""
39344 " $ virt-win-reg --merge Windows7 changes.reg\n"
39345 "\n"
39346 msgstr ""
39347
39348 #. type: textblock
39349 #: ../tools/virt-win-reg.pl:90
39350 msgid ""
39351 "This program is only meant for simple access to the registry.  If you want "
39352 "to do complicated things with the registry, we suggest you download the "
39353 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39354 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39355 "L<hivexregedit(1)>."
39356 msgstr ""
39357
39358 #. type: =item
39359 #: ../tools/virt-win-reg.pl:159
39360 msgid "B<--merge>"
39361 msgstr "B<--merge>"
39362
39363 #. type: textblock
39364 #: ../tools/virt-win-reg.pl:161
39365 msgid ""
39366 "In merge mode, this merges a textual regedit file into the Windows Registry "
39367 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39368 "displays or exports Registry entries instead."
39369 msgstr ""
39370
39371 #. type: textblock
39372 #: ../tools/virt-win-reg.pl:165
39373 msgid ""
39374 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39375 "result in disk corruption.  However exporting (without this flag)  is always "
39376 "safe."
39377 msgstr ""
39378
39379 #. type: =item
39380 #: ../tools/virt-win-reg.pl:173
39381 msgid "B<--encoding> UTF-16LE|ASCII"
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../tools/virt-win-reg.pl:175
39386 msgid ""
39387 "When merging (only), you may need to specify the encoding for strings to be "
39388 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39389 "(3)/ENCODING STRINGS>."
39390 msgstr ""
39391
39392 #. type: textblock
39393 #: ../tools/virt-win-reg.pl:179
39394 msgid ""
39395 "The default is to use UTF-16LE, which should work with recent versions of "
39396 "Windows."
39397 msgstr ""
39398
39399 #. type: =item
39400 #: ../tools/virt-win-reg.pl:186
39401 msgid "B<--unsafe-printable-strings>"
39402 msgstr ""
39403
39404 #. type: textblock
39405 #: ../tools/virt-win-reg.pl:188
39406 msgid ""
39407 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39408 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39409 "present."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../tools/virt-win-reg.pl:192
39414 msgid ""
39415 "This is unsafe and does not preserve the fidelity of strings in the original "
39416 "Registry for various reasons:"
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../tools/virt-win-reg.pl:199
39421 msgid ""
39422 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39423 "other encodings will be corrupted by this transformation."
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../tools/virt-win-reg.pl:204
39428 msgid ""
39429 "Assumes that everything which has type 1 or 2 is really a string and that "
39430 "everything else is not a string, but the type field in real Registries is "
39431 "not reliable."
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../tools/virt-win-reg.pl:210
39436 msgid ""
39437 "Loses information about whether a zero codepoint followed the string in the "
39438 "Registry or not."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../tools/virt-win-reg.pl:215
39443 msgid ""
39444 "This all happens because the Registry itself contains no information about "
39445 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../tools/virt-win-reg.pl:219
39450 msgid ""
39451 "You should only use this option for quick hacking and debugging of the "
39452 "Registry contents, and I<never> use it if the output is going to be passed "
39453 "into another program or stored in another Registry."
39454 msgstr ""
39455
39456 #. type: =head1
39457 #: ../tools/virt-win-reg.pl:556
39458 msgid "SUPPORTED SYSTEMS"
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../tools/virt-win-reg.pl:558
39463 msgid ""
39464 "The program currently supports Windows NT-derived guests starting with "
39465 "Windows XP through to at least Windows 7."
39466 msgstr ""
39467
39468 #. type: textblock
39469 #: ../tools/virt-win-reg.pl:561
39470 msgid "The following Registry keys are supported:"
39471 msgstr ""
39472
39473 #. type: =item
39474 #: ../tools/virt-win-reg.pl:565
39475 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39476 msgstr ""
39477
39478 #. type: =item
39479 #: ../tools/virt-win-reg.pl:567
39480 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39481 msgstr ""
39482
39483 #. type: =item
39484 #: ../tools/virt-win-reg.pl:569
39485 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39486 msgstr ""
39487
39488 #. type: =item
39489 #: ../tools/virt-win-reg.pl:571
39490 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39491 msgstr ""
39492
39493 #. type: =item
39494 #: ../tools/virt-win-reg.pl:573
39495 msgid "C<HKEY_USERS\\.DEFAULT>"
39496 msgstr ""
39497
39498 #. type: =item
39499 #: ../tools/virt-win-reg.pl:575
39500 msgid "C<HKEY_USERS\\I<SID>>"
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../tools/virt-win-reg.pl:577
39505 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39506 msgstr ""
39507
39508 #. type: =item
39509 #: ../tools/virt-win-reg.pl:579
39510 msgid "C<HKEY_USERS\\I<username>>"
39511 msgstr ""
39512
39513 #. type: textblock
39514 #: ../tools/virt-win-reg.pl:581
39515 msgid ""
39516 "where I<username> is a local user name (this is a libguestfs extension)."
39517 msgstr ""
39518
39519 #. type: textblock
39520 #: ../tools/virt-win-reg.pl:585
39521 msgid ""
39522 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39523 "C<HKEY_USERS>."
39524 msgstr ""
39525
39526 #. type: textblock
39527 #: ../tools/virt-win-reg.pl:588
39528 msgid ""
39529 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39530 "supported (there is no \"current user\")."
39531 msgstr ""
39532
39533 #. type: =head1
39534 #: ../tools/virt-win-reg.pl:591
39535 msgid "ENCODING"
39536 msgstr "КОДУВАННЯ"
39537
39538 #. type: textblock
39539 #: ../tools/virt-win-reg.pl:593
39540 msgid ""
39541 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39542 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39543 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39544 "Windows-style line endings, you may need to reencode the whole file before "
39545 "or after processing."
39546 msgstr ""
39547
39548 #. type: textblock
39549 #: ../tools/virt-win-reg.pl:599
39550 msgid ""
39551 "To reencode a file from Windows format to Linux (before processing it with "
39552 "the I<--merge> option), you would do something like this:"
39553 msgstr ""
39554
39555 #. type: verbatim
39556 #: ../tools/virt-win-reg.pl:602
39557 #, no-wrap
39558 msgid ""
39559 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39560 "\n"
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../tools/virt-win-reg.pl:604
39565 msgid ""
39566 "To go in the opposite direction, after exporting and before sending the file "
39567 "to a Windows user, do something like this:"
39568 msgstr ""
39569
39570 #. type: verbatim
39571 #: ../tools/virt-win-reg.pl:607
39572 #, no-wrap
39573 msgid ""
39574 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39575 "\n"
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../tools/virt-win-reg.pl:609
39580 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../tools/virt-win-reg.pl:611
39585 msgid ""
39586 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39587 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39588 "style (CRLF) line endings, like this:"
39589 msgstr ""
39590
39591 #. type: verbatim
39592 #: ../tools/virt-win-reg.pl:615
39593 #, no-wrap
39594 msgid ""
39595 " $ file software.reg\n"
39596 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39597 " with CRLF line terminators\n"
39598 "\n"
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../tools/virt-win-reg.pl:619
39603 msgid "This file would need conversion before you could I<--merge> it."
39604 msgstr ""
39605
39606 #. type: =head1
39607 #: ../tools/virt-win-reg.pl:621
39608 msgid "CurrentControlSet etc."
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../tools/virt-win-reg.pl:623
39613 msgid ""
39614 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39615 "Registry at the level of the hive file, and therefore you cannot modify "
39616 "these."
39617 msgstr ""
39618
39619 #. type: textblock
39620 #: ../tools/virt-win-reg.pl:627
39621 msgid ""
39622 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39623 "circumstances it might refer to another control set.  The way to find out is "
39624 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39625 msgstr ""
39626
39627 #. type: verbatim
39628 #: ../tools/virt-win-reg.pl:631
39629 #, no-wrap
39630 msgid ""
39631 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39632 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39633 " \"Current\"=dword:00000001\n"
39634 " \"Default\"=dword:00000001\n"
39635 " \"Failed\"=dword:00000000\n"
39636 " \"LastKnownGood\"=dword:00000002\n"
39637 "\n"
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../tools/virt-win-reg.pl:638
39642 msgid "\"Current\" is the one which Windows will choose when it boots."
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../tools/virt-win-reg.pl:640
39647 msgid ""
39648 "Similarly, other C<Current...> keys in the path may need to be replaced."
39649 msgstr ""
39650
39651 #. type: =head1
39652 #: ../tools/virt-win-reg.pl:643
39653 msgid "WINDOWS TIPS"
39654 msgstr ""
39655
39656 #. type: textblock
39657 #: ../tools/virt-win-reg.pl:645
39658 msgid ""
39659 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39660 "be shut off, else you will get disk corruption."
39661 msgstr ""
39662
39663 #. type: =head2
39664 #: ../tools/virt-win-reg.pl:648
39665 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../tools/virt-win-reg.pl:650
39670 msgid ""
39671 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39672 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39673 "is uploaded into C<C:\\>:"
39674 msgstr ""
39675
39676 #. type: verbatim
39677 #: ../tools/virt-win-reg.pl:654
39678 #, no-wrap
39679 msgid ""
39680 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39681 "\n"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../tools/virt-win-reg.pl:656
39686 msgid "Prepare a regedit file containing the registry change:"
39687 msgstr ""
39688
39689 #. type: verbatim
39690 #: ../tools/virt-win-reg.pl:658
39691 #, no-wrap
39692 msgid ""
39693 " cat > test.reg <<'EOF'\n"
39694 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39695 " \"Test\"=\"c:\\\\test.bat\"\n"
39696 " EOF\n"
39697 "\n"
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../tools/virt-win-reg.pl:663
39702 msgid ""
39703 "In this example we use the key C<RunOnce> which means that the script will "
39704 "run precisely once when the first user logs in.  If you want it to run every "
39705 "time a user logs in, replace C<RunOnce> with C<Run>."
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../tools/virt-win-reg.pl:667
39710 msgid "Now update the registry:"
39711 msgstr ""
39712
39713 #. type: verbatim
39714 #: ../tools/virt-win-reg.pl:669
39715 #, no-wrap
39716 msgid ""
39717 " virt-win-reg --merge WindowsGuest test.reg\n"
39718 "\n"
39719 msgstr ""
39720
39721 #. type: =head2
39722 #: ../tools/virt-win-reg.pl:671
39723 msgid "INSTALLING A SERVICE"
39724 msgstr ""
39725
39726 #. type: textblock
39727 #: ../tools/virt-win-reg.pl:673
39728 msgid ""
39729 "This section assumes you are familiar with Windows services, and you either "
39730 "have a program which handles the Windows Service Control Protocol directly "
39731 "or you want to run any program using a service wrapper like SrvAny or the "
39732 "free RHSrvAny."
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../tools/virt-win-reg.pl:678
39737 msgid ""
39738 "First upload the program and optionally the service wrapper.  In this case "
39739 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39740 msgstr ""
39741
39742 #. type: verbatim
39743 #: ../tools/virt-win-reg.pl:682
39744 #, no-wrap
39745 msgid ""
39746 " guestfish -i -d WindowsGuest <<EOF\n"
39747 "   upload rhsrvany.exe /rhsrvany.exe\n"
39748 "   upload test.exe /test.exe\n"
39749 " EOF\n"
39750 "\n"
39751 msgstr ""
39752
39753 #. type: textblock
39754 #: ../tools/virt-win-reg.pl:687
39755 msgid ""
39756 "Prepare a regedit file containing the registry changes.  In this example, "
39757 "the first registry change is needed for the service itself or the service "
39758 "wrapper (if used).  The second registry change is only needed because I am "
39759 "using the RHSrvAny service wrapper."
39760 msgstr ""
39761
39762 #. type: verbatim
39763 #: ../tools/virt-win-reg.pl:692
39764 #, no-wrap
39765 msgid ""
39766 " cat > service.reg <<'EOF'\n"
39767 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39768 " \"Type\"=dword:00000010\n"
39769 " \"Start\"=dword:00000002\n"
39770 " \"ErrorControl\"=dword:00000001\n"
39771 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39772 " \"DisplayName\"=\"RHSrvAny\"\n"
39773 " \"ObjectName\"=\"NetworkService\"\n"
39774 " \n"
39775 msgstr ""
39776
39777 #. type: verbatim
39778 #: ../tools/virt-win-reg.pl:701
39779 #, no-wrap
39780 msgid ""
39781 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39782 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39783 " \"PWD\"=\"c:\\\\Temp\"\n"
39784 " EOF\n"
39785 "\n"
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../tools/virt-win-reg.pl:712
39790 msgid ""
39791 "For use of C<ControlSet001> see the section above in this manual page.  You "
39792 "may need to adjust this according to the control set that is in use by the "
39793 "guest."
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../tools/virt-win-reg.pl:718
39798 msgid ""
39799 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39800 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39801 "privileged account."
39802 msgstr ""
39803
39804 #. type: textblock
39805 #: ../tools/virt-win-reg.pl:724
39806 msgid ""
39807 "For the meaning of the magic numbers, see this Microsoft KB article: "
39808 "L<http://support.microsoft.com/kb/103000>."
39809 msgstr ""
39810
39811 #. type: textblock
39812 #: ../tools/virt-win-reg.pl:729
39813 msgid "Update the registry:"
39814 msgstr ""
39815
39816 #. type: verbatim
39817 #: ../tools/virt-win-reg.pl:731
39818 #, no-wrap
39819 msgid ""
39820 " virt-win-reg --merge WindowsGuest service.reg\n"
39821 "\n"
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../tools/virt-win-reg.pl:735
39826 msgid ""
39827 "Be careful when passing parameters containing C<\\> (backslash) in the "
39828 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39829 "(but not both) to protect them from the shell."
39830 msgstr ""
39831
39832 #. type: textblock
39833 #: ../tools/virt-win-reg.pl:739
39834 msgid "Paths and value names are case-insensitive."
39835 msgstr ""
39836
39837 #. type: textblock
39838 #: ../tools/virt-win-reg.pl:748
39839 msgid ""
39840 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39841 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39842 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39843 msgstr ""
39844
39845 #. type: verbatim
39846 #: ../tools/virt-win-reg.pl:766
39847 #, no-wrap
39848 msgid ""
39849 " export LIBGUESTFS_DEBUG=1\n"
39850 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39851 "\n"
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../tools/virt-win-reg.pl:769
39856 msgid ""
39857 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39858 "redhat.com/>"
39859 msgstr ""
39860
39861 #~ msgid "B<-a> | B<--all>"
39862 #~ msgstr "B<-a> | B<--all>"
39863
39864 #~ msgid "B<-x> | B<--extract> | B<--download>"
39865 #~ msgstr "B<-x> | B<--extract> | B<--download>"