3e6d85709d922ba6e6e3eee92c1a8bc271bd0024
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-07 23:14+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "НАЗВА"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr "КОРОТКИЙ ОПИС"
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| " virt-list-partitions [--options] domname\n"
67 #| "\n"
68 msgid ""
69 " virt-cat [--options] -d domname file [file ...]\n"
70 "\n"
71 msgstr ""
72 " virt-list-partitions [--параметри] назва_домену\n"
73 "\n"
74
75 #. type: verbatim
76 #: ../cat/virt-cat.pod:11
77 #, fuzzy, no-wrap
78 #| msgid ""
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
80 #| "\n"
81 msgid ""
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
83 "\n"
84 msgstr ""
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
86 "\n"
87
88 #. type: textblock
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
91 msgid "Old-style:"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:15
96 #, no-wrap
97 msgid ""
98 " virt-cat domname file\n"
99 "\n"
100 msgstr ""
101
102 #. type: verbatim
103 #: ../cat/virt-cat.pod:17
104 #, no-wrap
105 msgid ""
106 " virt-cat disk.img file\n"
107 "\n"
108 msgstr ""
109
110 #. type: =head1
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
125 msgid "DESCRIPTION"
126 msgstr "ОПИС"
127
128 #. type: textblock
129 #: ../cat/virt-cat.pod:21
130 msgid ""
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:24
137 msgid ""
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together.  Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
141 msgstr ""
142
143 #. type: textblock
144 #: ../cat/virt-cat.pod:28
145 msgid ""
146 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
147 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
149 msgstr ""
150
151 #. type: =head1
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1007 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
158 msgid "EXAMPLES"
159 msgstr "ПРИКЛАДИ"
160
161 #. type: textblock
162 #: ../cat/virt-cat.pod:34
163 msgid ""
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../cat/virt-cat.pod:37
169 #, no-wrap
170 msgid ""
171 " virt-cat -d mydomain /etc/fstab\n"
172 "\n"
173 msgstr ""
174
175 #. type: textblock
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
178 msgstr ""
179
180 #. type: verbatim
181 #: ../cat/virt-cat.pod:41
182 #, no-wrap
183 msgid ""
184 " virt-cat -a disk.img /var/log/messages | tail\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
191 msgstr ""
192
193 #. type: verbatim
194 #: ../cat/virt-cat.pod:45
195 #, no-wrap
196 msgid ""
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 "   grep 'dhclient: bound to' | tail\n"
199 "\n"
200 msgstr ""
201
202 #. type: textblock
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
205 msgstr ""
206
207 #. type: verbatim
208 #: ../cat/virt-cat.pod:50
209 #, no-wrap
210 msgid ""
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
212 "\n"
213 msgstr ""
214
215 #. type: textblock
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
218 msgstr ""
219
220 #. type: verbatim
221 #: ../cat/virt-cat.pod:54
222 #, no-wrap
223 msgid ""
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 " who /tmp/utmp\n"
226 "\n"
227 msgstr ""
228
229 #. type: textblock
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
232 msgstr ""
233
234 #. type: verbatim
235 #: ../cat/virt-cat.pod:59
236 #, no-wrap
237 msgid ""
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
240 "\n"
241 msgstr ""
242
243 #. type: =head1
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
254 msgid "OPTIONS"
255 msgstr "ПАРАМЕТРИ"
256
257 #. type: =item
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
265 msgid "B<--help>"
266 msgstr "B<--help>"
267
268 #. type: textblock
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
276 msgstr ""
277
278 #. type: =item
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
282 #, fuzzy
283 #| msgid "B<-f file>"
284 msgid "B<-a> file"
285 msgstr "B<-f файл>"
286
287 #. type: =item
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
291 #, fuzzy
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
295
296 #. type: textblock
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
300 msgid ""
301 "Add I<file> which should be a disk image from a virtual machine.  If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
304 msgstr ""
305
306 #. type: textblock
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
311 msgid ""
312 "The format of the disk image is auto-detected.  To override this and force a "
313 "particular format use the I<--format=..> option."
314 msgstr ""
315
316 #. type: =item
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
319 #, fuzzy
320 #| msgid "B<-c URI>"
321 msgid "B<-c> URI"
322 msgstr "B<-c адреса>"
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
327 #, fuzzy
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
331
332 #. type: textblock
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
338 msgid ""
339 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
340 "to the default libvirt hypervisor."
341 msgstr ""
342
343 #. type: textblock
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
346 msgid ""
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
348 "used at all."
349 msgstr ""
350
351 #. type: =item
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
355 msgid "B<-d> guest"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
363 msgstr ""
364
365 #. type: textblock
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
369 msgid ""
370 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
371 "instead of names."
372 msgstr ""
373
374 #. type: =item
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
380
381 #. type: textblock
382 #: ../cat/virt-cat.pod:100
383 msgid ""
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing.  If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
388 msgstr ""
389
390 #. type: =item
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
403 msgid "B<--format>"
404 msgstr "B<--format>"
405
406 #. type: textblock
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
411 msgid ""
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image.  Using this forces the disk format for I<-a> options which follow on "
414 "the command line.  Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod: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:1224 ../fish/virt-copy-in.pod:50
713 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
714 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
716 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
717 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
718 #: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36
719 #: ../src/guestfs.pod: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:1253 ../fish/virt-copy-in.pod:64
766 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
767 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
768 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
769 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
770 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
771 #: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51
772 #: ../src/guestfs.pod: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:1258 ../fish/virt-copy-in.pod:69
791 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
792 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
793 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102
795 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
796 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
797 #: ../tools/virt-win-reg.pl:780
798 msgid ""
799 "This program is free software; you can redistribute it and/or modify it "
800 "under the terms of the GNU General Public License as published by the Free "
801 "Software Foundation; either version 2 of the License, or (at your option) "
802 "any later version."
803 msgstr ""
804
805 #. type: textblock
806 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:74
809 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
810 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
812 #: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107
813 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
814 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
815 #: ../tools/virt-win-reg.pl:785
816 msgid ""
817 "This program is distributed in the hope that it will be useful, but WITHOUT "
818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
819 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
820 "more details."
821 msgstr ""
822 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
823 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
824 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
825 "дізнатися з GNU General Public License."
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
829 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
830 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:79
831 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
832 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
833 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
834 #: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112
835 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
836 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
837 #: ../tools/virt-win-reg.pl:790
838 msgid ""
839 "You should have received a copy of the GNU General Public License along with "
840 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
841 "Ave, Cambridge, MA 02139, USA."
842 msgstr ""
843
844 #. type: textblock
845 #: ../cat/virt-filesystems.pod:5
846 msgid ""
847 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
848 "virtual machine or disk image"
849 msgstr ""
850
851 #. type: verbatim
852 #: ../cat/virt-filesystems.pod:9
853 #, fuzzy, no-wrap
854 #| msgid ""
855 #| " virt-list-partitions [--options] domname\n"
856 #| "\n"
857 msgid ""
858 " virt-filesystems [--options] -d domname\n"
859 "\n"
860 msgstr ""
861 " virt-list-partitions [--параметри] назва_домену\n"
862 "\n"
863
864 #. type: verbatim
865 #: ../cat/virt-filesystems.pod:11
866 #, fuzzy, no-wrap
867 #| msgid ""
868 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
869 #| "\n"
870 msgid ""
871 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
872 "\n"
873 msgstr ""
874 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
875 "\n"
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:15
879 msgid ""
880 "This tool allows you to discover filesystems, partitions, logical volumes, "
881 "and their sizes in a disk image or virtual machine.  It is a replacement for "
882 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
883 msgstr ""
884
885 #. type: textblock
886 #: ../cat/virt-filesystems.pod:20
887 msgid ""
888 "One use for this tool is from shell scripts to iterate over all filesystems "
889 "from a disk image:"
890 msgstr ""
891
892 #. type: verbatim
893 #: ../cat/virt-filesystems.pod:23
894 #, no-wrap
895 msgid ""
896 " for fs in $(virt-filesystems -a disk.img); do\n"
897 "   # ...\n"
898 " done\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-filesystems.pod:27
904 msgid ""
905 "Another use is to list partitions before using another tool to modify those "
906 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
907 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
908 msgstr ""
909
910 #. type: textblock
911 #: ../cat/virt-filesystems.pod:32
912 msgid ""
913 "Various command line options control what this program displays.  You need "
914 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
915 "guest respectively.  If you just specify that then the program shows "
916 "filesystems found, one per line, like this:"
917 msgstr ""
918
919 #. type: verbatim
920 #: ../cat/virt-filesystems.pod:37
921 #, no-wrap
922 msgid ""
923 " $ virt-filesystems -a disk.img\n"
924 " /dev/sda1\n"
925 " /dev/vg_guest/lv_root\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-filesystems.pod:41
931 msgid ""
932 "If you add I<-l> or I<--long> then the output includes extra information:"
933 msgstr ""
934
935 #. type: verbatim
936 #: ../cat/virt-filesystems.pod:44
937 #, no-wrap
938 msgid ""
939 " $ virt-filesystems -a disk.img -l\n"
940 " Name                   Type         VFS   Label  Size\n"
941 " /dev/sda1              filesystem   ext4  boot   524288000\n"
942 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
943 "\n"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-filesystems.pod:49
948 msgid ""
949 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
950 "shown as well:"
951 msgstr ""
952
953 #. type: verbatim
954 #: ../cat/virt-filesystems.pod:52
955 #, no-wrap
956 msgid ""
957 " $ virt-filesystems -a disk.img --extra\n"
958 " /dev/sda1\n"
959 " /dev/vg_guest/lv_root\n"
960 " /dev/vg_guest/lv_swap\n"
961 " /dev/vg_guest/lv_data\n"
962 "\n"
963 msgstr ""
964
965 #. type: textblock
966 #: ../cat/virt-filesystems.pod:58
967 msgid ""
968 "If you add I<--partitions> then partitions are shown instead of filesystems:"
969 msgstr ""
970
971 #. type: verbatim
972 #: ../cat/virt-filesystems.pod:60
973 #, no-wrap
974 msgid ""
975 " $ virt-filesystems -a disk.img --partitions\n"
976 " /dev/sda1\n"
977 " /dev/sda2\n"
978 "\n"
979 msgstr ""
980
981 #. type: textblock
982 #: ../cat/virt-filesystems.pod:64
983 msgid ""
984 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
985 "volumes>, I<--block-devices> to list those items."
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:67
990 msgid ""
991 "You can use these options in combination as well (if you want a combination "
992 "including filesystems, you have to add I<--filesystems>).  Notice that some "
993 "items fall into several categories (eg. C</dev/sda1> might be both a "
994 "partition and a filesystem).  These items are listed several times.  To get "
995 "a list which includes absolutely everything that virt-filesystems knows "
996 "about, use the I<--all> option."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../cat/virt-filesystems.pod:74
1001 msgid ""
1002 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1003 "uuid> option to display device and filesystem UUIDs in the long output."
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../cat/virt-filesystems.pod:78
1008 msgid ""
1009 "I<--all --long --uuid> is a useful combination to display all possible "
1010 "information about everything."
1011 msgstr ""
1012
1013 #. type: verbatim
1014 #: ../cat/virt-filesystems.pod:81
1015 #, no-wrap
1016 msgid ""
1017 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1018 " Name      Type       VFS  Label           Size Parent   UUID\n"
1019 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1020 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1021 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1022 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1023 " /dev/sda  device     -    -               20G  -        -\n"
1024 "\n"
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../cat/virt-filesystems.pod:89
1029 msgid ""
1030 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1031 msgstr ""
1032
1033 #. type: =item
1034 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1035 #, fuzzy
1036 #| msgid "B<--help>"
1037 msgid "B<--all>"
1038 msgstr "B<--help>"
1039
1040 #. type: textblock
1041 #: ../cat/virt-filesystems.pod:112
1042 msgid ""
1043 "Display everything.  This is currently the same as specifying these options: "
1044 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1045 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1046 "added to this list in future)."
1047 msgstr ""
1048
1049 #. type: textblock
1050 #: ../cat/virt-filesystems.pod:117
1051 #, fuzzy
1052 #| msgid "See also L</is-lv>."
1053 msgid "See also I<--long>."
1054 msgstr "Див. також L</is-lv>."
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:119
1058 #, fuzzy
1059 #| msgid "B<--live>"
1060 msgid "B<--blkdevs>"
1061 msgstr "B<--live>"
1062
1063 #. type: =item
1064 #: ../cat/virt-filesystems.pod:121
1065 #, fuzzy
1066 #| msgid "is-blockdev"
1067 msgid "B<--block-devices>"
1068 msgstr "is-blockdev"
1069
1070 #. type: textblock
1071 #: ../cat/virt-filesystems.pod:123
1072 #, fuzzy
1073 #| msgid "is-blockdev"
1074 msgid "Display block devices."
1075 msgstr "is-blockdev"
1076
1077 #. type: =item
1078 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1079 #, fuzzy
1080 #| msgid "B<--csh>"
1081 msgid "B<--csv>"
1082 msgstr "B<--csh>"
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1086 msgid ""
1087 "Write out the results in CSV format (comma-separated values).  This format "
1088 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1089 "ABOUT CSV FORMAT> below."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-filesystems.pod:150
1094 msgid ""
1095 "When prompting for keys and passphrases, virt-filesystems normally turns "
1096 "echoing off so you cannot see what you are typing.  If you are not worried "
1097 "about Tempest attacks and there is no one else in the room you can specify "
1098 "this flag to see what you are typing."
1099 msgstr ""
1100
1101 #. type: =item
1102 #: ../cat/virt-filesystems.pod:155
1103 #, fuzzy
1104 #| msgid "B<--ro>"
1105 msgid "B<--extra>"
1106 msgstr "B<--ro>"
1107
1108 #. type: textblock
1109 #: ../cat/virt-filesystems.pod:157
1110 msgid ""
1111 "This causes filesystems that are not ordinary, mountable filesystems to be "
1112 "displayed.  This category includes swapspace, and filesystems that are empty "
1113 "or contain unknown data."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../cat/virt-filesystems.pod:161
1118 msgid "This option implies I<--filesystems>."
1119 msgstr ""
1120
1121 #. type: =item
1122 #: ../cat/virt-filesystems.pod:163
1123 #, fuzzy
1124 #| msgid "list-filesystems"
1125 msgid "B<--filesystems>"
1126 msgstr "list-filesystems"
1127
1128 #. type: textblock
1129 #: ../cat/virt-filesystems.pod:165
1130 msgid ""
1131 "Display mountable filesystems.  If no display option was selected then this "
1132 "option is implied."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-filesystems.pod:168
1137 msgid "With I<--extra>, non-mountable filesystems are shown too."
1138 msgstr ""
1139
1140 #. type: verbatim
1141 #: ../cat/virt-filesystems.pod:181
1142 #, fuzzy, no-wrap
1143 #| msgid ""
1144 #| " guestfish --format=raw -a disk.img\n"
1145 #| "\n"
1146 msgid ""
1147 " virt-filesystems --format=raw -a disk.img\n"
1148 "\n"
1149 msgstr ""
1150 " guestfish --format=raw -a disk.img\n"
1151 "\n"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-filesystems.pod:185
1155 #, fuzzy, no-wrap
1156 #| msgid ""
1157 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1158 #| "\n"
1159 msgid ""
1160 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1161 "\n"
1162 msgstr ""
1163 " guestfish --format=raw -a disk.img --format -a another.img\n"
1164 "\n"
1165
1166 #. type: =item
1167 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1168 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1169 #: ../tools/virt-list-partitions.pl:109
1170 msgid "B<-h>"
1171 msgstr "B<-h>"
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1175 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1176 #, fuzzy
1177 #| msgid "B<-h> | B<--human-readable>"
1178 msgid "B<--human-readable>"
1179 msgstr "B<-h> | B<--human-readable>"
1180
1181 #. type: textblock
1182 #: ../cat/virt-filesystems.pod:198
1183 msgid "In I<--long> mode, display sizes in human-readable format."
1184 msgstr ""
1185
1186 #. type: =item
1187 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1188 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1189 msgid "B<-l>"
1190 msgstr ""
1191
1192 #. type: =item
1193 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1194 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1195 #, fuzzy
1196 #| msgid "B<--ro>"
1197 msgid "B<--long>"
1198 msgstr "B<--ro>"
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:209
1202 msgid "Display extra columns of data (\"long format\")."
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-filesystems.pod:211
1207 msgid "A title row is added unless you also specify I<--no-title>."
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-filesystems.pod:213
1212 msgid ""
1213 "The extra columns displayed depend on what output you select, and the "
1214 "ordering of columns may change in future versions.  Use the title row, I<--"
1215 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1216 "programs."
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:218
1221 msgid ""
1222 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1223 "default is to show raw numbers of I<bytes>."
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-filesystems.pod:221
1228 msgid "Use I<--uuid> to display UUIDs too."
1229 msgstr ""
1230
1231 #. type: =item
1232 #: ../cat/virt-filesystems.pod:223
1233 #, fuzzy
1234 #| msgid "B<--live>"
1235 msgid "B<--lvs>"
1236 msgstr "B<--live>"
1237
1238 #. type: =item
1239 #: ../cat/virt-filesystems.pod:225
1240 #, fuzzy
1241 #| msgid "B<--live>"
1242 msgid "B<--logvols>"
1243 msgstr "B<--live>"
1244
1245 #. type: =item
1246 #: ../cat/virt-filesystems.pod:227
1247 #, fuzzy
1248 #| msgid "B<--live>"
1249 msgid "B<--logical-volumes>"
1250 msgstr "B<--live>"
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:229
1254 msgid ""
1255 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1256 "of whether the LVs contain filesystems."
1257 msgstr ""
1258
1259 #. type: =item
1260 #: ../cat/virt-filesystems.pod:232
1261 #, fuzzy
1262 #| msgid "B<--listen>"
1263 msgid "B<--no-title>"
1264 msgstr "B<--listen>"
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:234
1268 msgid "In I<--long> mode, don't add a title row."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:236
1273 msgid ""
1274 "Note that the order of the columns is not fixed, and may change in future "
1275 "versions of virt-filesystems, so using this option may give you unexpected "
1276 "surprises."
1277 msgstr ""
1278
1279 #. type: =item
1280 #: ../cat/virt-filesystems.pod:240
1281 #, fuzzy
1282 #| msgid "B<--partition>"
1283 msgid "B<--parts>"
1284 msgstr "B<--partition>"
1285
1286 #. type: =item
1287 #: ../cat/virt-filesystems.pod:242
1288 #, fuzzy
1289 #| msgid "B<--partition>"
1290 msgid "B<--partitions>"
1291 msgstr "B<--partition>"
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:244
1295 msgid ""
1296 "Display partitions.  In this mode, these are displayed irrespective of "
1297 "whether the partitions contain filesystems."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:247
1302 #, fuzzy
1303 #| msgid "B<--csh>"
1304 msgid "B<--pvs>"
1305 msgstr "B<--csh>"
1306
1307 #. type: =item
1308 #: ../cat/virt-filesystems.pod:249
1309 #, fuzzy
1310 #| msgid "B<--verbose>"
1311 msgid "B<--physvols>"
1312 msgstr "B<--verbose>"
1313
1314 #. type: =item
1315 #: ../cat/virt-filesystems.pod:251
1316 msgid "B<--physical-volumes>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:253
1321 msgid "Display LVM physical volumes."
1322 msgstr ""
1323
1324 #. type: =item
1325 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1326 #, fuzzy
1327 #| msgid "B<--live>"
1328 msgid "B<--uuid>"
1329 msgstr "B<--live>"
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:257
1333 #, fuzzy
1334 #| msgid "B<--csh>"
1335 msgid "B<--uuids>"
1336 msgstr "B<--csh>"
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:259
1340 msgid "In I<--long> mode, display UUIDs as well."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:273
1345 #, fuzzy
1346 #| msgid "B<--csh>"
1347 msgid "B<--vgs>"
1348 msgstr "B<--csh>"
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:275
1352 #, fuzzy
1353 #| msgid "B<--verbose>"
1354 msgid "B<--volgroups>"
1355 msgstr "B<--verbose>"
1356
1357 #. type: =item
1358 #: ../cat/virt-filesystems.pod:277
1359 #, fuzzy
1360 #| msgid "B<--verbose>"
1361 msgid "B<--volume-groups>"
1362 msgstr "B<--verbose>"
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:279
1366 msgid "Display LVM volume groups."
1367 msgstr ""
1368
1369 #. type: =head1
1370 #: ../cat/virt-filesystems.pod:287
1371 msgid "COLUMNS"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-filesystems.pod:289
1376 msgid ""
1377 "Note that columns in the output are subject to reordering and change in "
1378 "future versions of this tool."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-filesystems.pod:294
1383 msgid "B<Name>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-filesystems.pod:296
1388 msgid "The filesystem, partition, block device or LVM name."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:298
1393 msgid ""
1394 "For device and partition names these are displayed as canonical libguestfs "
1395 "names, so that for example C</dev/sda2> is the second partition on the first "
1396 "device."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:302
1401 msgid ""
1402 "If the I<--long> option is B<not> specified, then only the name column is "
1403 "shown in the output."
1404 msgstr ""
1405
1406 #. type: =item
1407 #: ../cat/virt-filesystems.pod:305
1408 #, fuzzy
1409 #| msgid "B<-N type>"
1410 msgid "B<Type>"
1411 msgstr "B<-N тип>"
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:307
1415 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1416 msgstr ""
1417
1418 #. type: =item
1419 #: ../cat/virt-filesystems.pod:309
1420 msgid "B<VFS>"
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:311
1425 msgid ""
1426 "If there is a filesystem, then this column displays the filesystem type if "
1427 "one could be detected, eg. C<ext4>."
1428 msgstr ""
1429
1430 #. type: =item
1431 #: ../cat/virt-filesystems.pod:314
1432 msgid "B<Label>"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-filesystems.pod:316
1437 msgid ""
1438 "If the object has a label (used for identifying and mounting filesystems) "
1439 "then this column contains the label."
1440 msgstr ""
1441
1442 #. type: =item
1443 #: ../cat/virt-filesystems.pod:319
1444 #, fuzzy
1445 #| msgid "B<part_size>"
1446 msgid "B<Size>"
1447 msgstr "B<part_size>"
1448
1449 #. type: textblock
1450 #: ../cat/virt-filesystems.pod:321
1451 msgid ""
1452 "The size of the object in bytes.  If the I<--human> option is used then the "
1453 "size is displayed in a human-readable form."
1454 msgstr ""
1455
1456 #. type: =item
1457 #: ../cat/virt-filesystems.pod:324
1458 msgid "B<Parent>"
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-filesystems.pod:326
1463 msgid ""
1464 "The parent column records the parent relationship between objects.  For "
1465 "example, if the object is a partition, then this column contains the name of "
1466 "the containing device.  If the object is a logical volume, then this column "
1467 "is the name of the volume group."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:331
1472 msgid "B<UUID>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:333
1477 msgid ""
1478 "If the object has a UUID (used for identifying and mounting filesystems and "
1479 "block devices) then this column contains the UUID as a string."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-filesystems.pod:337
1484 msgid "The UUID is only displayed if the I<--uuid> option is given."
1485 msgstr ""
1486
1487 #. type: =head1
1488 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1489 #: ../df/virt-df.pod:191
1490 msgid "NOTE ABOUT CSV FORMAT"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1495 #: ../df/virt-df.pod:193
1496 msgid ""
1497 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1498 "should be easy to parse, but it is definitely not easy to parse."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1503 #: ../df/virt-df.pod:196
1504 msgid ""
1505 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1506 "reliably.  This example has two columns:"
1507 msgstr ""
1508
1509 #. type: verbatim
1510 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1511 #: ../df/virt-df.pod:199
1512 #, no-wrap
1513 msgid ""
1514 " \"foo,bar\",baz\n"
1515 "\n"
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1520 #: ../df/virt-df.pod:201
1521 msgid ""
1522 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1523 "reliably.  This example has one row:"
1524 msgstr ""
1525
1526 #. type: verbatim
1527 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1528 #: ../df/virt-df.pod:204
1529 #, no-wrap
1530 msgid ""
1531 " \"foo\n"
1532 " bar\",baz\n"
1533 "\n"
1534 msgstr ""
1535
1536 #. type: textblock
1537 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1538 #: ../df/virt-df.pod:207
1539 msgid ""
1540 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1541 "packaged in major Linux distributions)."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1546 #: ../df/virt-df.pod:210
1547 msgid ""
1548 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1549 "or Python's built-in csv library)."
1550 msgstr ""
1551
1552 #. type: textblock
1553 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1554 #: ../df/virt-df.pod:213
1555 msgid "Most spreadsheets and databases can import CSV directly."
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:374
1560 #, fuzzy
1561 #| msgid ""
1562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1563 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1564 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1565 msgid ""
1566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1567 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1568 "libguestfs.org/>."
1569 msgstr ""
1570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1571 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1572 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1573
1574 #. type: textblock
1575 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1576 #: ../tools/virt-win-reg.pl:778
1577 msgid "Copyright (C) 2010 Red Hat Inc."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-ls.pod:5
1582 msgid "virt-ls - List files in a virtual machine"
1583 msgstr ""
1584
1585 #. type: verbatim
1586 #: ../cat/virt-ls.pod:9
1587 #, no-wrap
1588 msgid ""
1589 " virt-ls [--options] -d domname directory [directory ...]\n"
1590 "\n"
1591 msgstr ""
1592
1593 #. type: verbatim
1594 #: ../cat/virt-ls.pod:11
1595 #, fuzzy, no-wrap
1596 #| msgid ""
1597 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1598 #| "\n"
1599 msgid ""
1600 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1601 "\n"
1602 msgstr ""
1603 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1604 "\n"
1605
1606 #. type: textblock
1607 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1608 msgid "Old style:"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:15
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] domname\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] domname directory\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] назва_домену\n"
1622 "\n"
1623
1624 #. type: verbatim
1625 #: ../cat/virt-ls.pod:17
1626 #, fuzzy, no-wrap
1627 #| msgid ""
1628 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1629 #| "\n"
1630 msgid ""
1631 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1632 "\n"
1633 msgstr ""
1634 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1635 "\n"
1636
1637 #. type: textblock
1638 #: ../cat/virt-ls.pod:21
1639 msgid ""
1640 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1641 "more from a virtual machine or disk image."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-ls.pod:24
1646 msgid ""
1647 "Multiple directory names can be given, in which case the output from each is "
1648 "concatenated."
1649 msgstr ""
1650
1651 #. type: textblock
1652 #: ../cat/virt-ls.pod:27
1653 msgid ""
1654 "To list directories from a libvirt guest use the I<-d> option to specify the "
1655 "name of the guest.  For a disk image, use the I<-a> option."
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:31
1660 msgid ""
1661 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1662 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1663 "(3)> API."
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-ls.pod:37
1668 msgid "Get a list of all files and directories in a virtual machine:"
1669 msgstr ""
1670
1671 #. type: verbatim
1672 #: ../cat/virt-ls.pod:39
1673 #, fuzzy, no-wrap
1674 #| msgid ""
1675 #| " guestfish --ro -d myguest -i\n"
1676 #| "\n"
1677 msgid ""
1678 " virt-ls -R -d guest /\n"
1679 "\n"
1680 msgstr ""
1681 " guestfish --ro -d myguest -i\n"
1682 "\n"
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:41
1686 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:43
1691 #, no-wrap
1692 msgid ""
1693 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1694 "\n"
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../cat/virt-ls.pod:45
1699 msgid "List all public-writable directories in a Linux virtual machine:"
1700 msgstr ""
1701
1702 #. type: verbatim
1703 #: ../cat/virt-ls.pod:47
1704 #, no-wrap
1705 msgid ""
1706 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1707 "\n"
1708 msgstr ""
1709
1710 #. type: textblock
1711 #: ../cat/virt-ls.pod:49
1712 msgid "List all Unix domain sockets in a Linux virtual machine:"
1713 msgstr ""
1714
1715 #. type: verbatim
1716 #: ../cat/virt-ls.pod:51
1717 #, no-wrap
1718 msgid ""
1719 " virt-ls -lR -d guest / | grep '^s'\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-ls.pod:53
1725 msgid "List all regular files with filenames ending in '.png':"
1726 msgstr ""
1727
1728 #. type: verbatim
1729 #: ../cat/virt-ls.pod:55
1730 #, no-wrap
1731 msgid ""
1732 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1733 "\n"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-ls.pod:57
1738 msgid "To display files larger than 10MB in home directories:"
1739 msgstr ""
1740
1741 #. type: verbatim
1742 #: ../cat/virt-ls.pod:59
1743 #, no-wrap
1744 msgid ""
1745 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1746 "\n"
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:61
1751 msgid "Find everything modified in the last 7 days:"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:63
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:65
1764 msgid "Find regular files modified in the last 24 hours:"
1765 msgstr ""
1766
1767 #. type: verbatim
1768 #: ../cat/virt-ls.pod:67
1769 #, no-wrap
1770 msgid ""
1771 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1772 "\n"
1773 msgstr ""
1774
1775 #. type: =head2
1776 #: ../cat/virt-ls.pod:69
1777 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:71
1782 msgid ""
1783 "Find the differences between files in a guest and an earlier snapshot of the "
1784 "same guest."
1785 msgstr ""
1786
1787 #. type: verbatim
1788 #: ../cat/virt-ls.pod:74
1789 #, no-wrap
1790 msgid ""
1791 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1792 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1793 " diff -u old new | less\n"
1794 "\n"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-ls.pod:78
1799 msgid ""
1800 "The commands above won't find files where the content has changed but the "
1801 "metadata (eg. file size and modification date) is the same.  To do that, you "
1802 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1803 "checksum> can be quite slow since it has to read and compute a checksum of "
1804 "every regular file in the virtual machine."
1805 msgstr ""
1806
1807 #. type: =head1
1808 #: ../cat/virt-ls.pod:84
1809 msgid "OUTPUT MODES"
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../cat/virt-ls.pod:86
1814 msgid ""
1815 "C<virt-ls> has four output modes, controlled by different combinations of "
1816 "the I<-l> and I<-R> options."
1817 msgstr ""
1818
1819 #. type: =head2
1820 #: ../cat/virt-ls.pod:89
1821 msgid "SIMPLE LISTING"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-ls.pod:91
1826 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1827 msgstr ""
1828
1829 #. type: verbatim
1830 #: ../cat/virt-ls.pod:93
1831 #, no-wrap
1832 msgid ""
1833 " $ virt-ls -d guest /\n"
1834 " bin\n"
1835 " boot\n"
1836 " [etc.]\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:98
1842 #, fuzzy
1843 #| msgid "MOUNTING"
1844 msgid "LONG LISTING"
1845 msgstr "МОНТУВАННЯ"
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:100
1849 msgid ""
1850 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1851 "(more specifically, like the C<guestfs_ll> function)."
1852 msgstr ""
1853
1854 #. type: verbatim
1855 #: ../cat/virt-ls.pod:103
1856 #, no-wrap
1857 msgid ""
1858 " $ virt-ls -l -d guest /\n"
1859 " total 204\n"
1860 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1861 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1862 " [etc.]\n"
1863 "\n"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-ls.pod:109
1868 msgid ""
1869 "Note that while this is useful for displaying a directory, do not try "
1870 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1871 "instead."
1872 msgstr ""
1873
1874 #. type: =head2
1875 #: ../cat/virt-ls.pod:113
1876 msgid "RECURSIVE LISTING"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:115
1881 msgid ""
1882 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1883 "and directories recursively:"
1884 msgstr ""
1885
1886 #. type: verbatim
1887 #: ../cat/virt-ls.pod:118
1888 #, no-wrap
1889 msgid ""
1890 " $ virt-ls -R -d guest /tmp\n"
1891 " foo\n"
1892 " foo/bar\n"
1893 " [etc.]\n"
1894 "\n"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:123
1899 msgid ""
1900 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1901 "converts C<\\0> characters to C<\\n>."
1902 msgstr ""
1903
1904 #. type: =head2
1905 #: ../cat/virt-ls.pod:126
1906 msgid "RECURSIVE LONG LISTING"
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:128
1911 msgid ""
1912 "Using I<-lR> options together changes the output to display directories "
1913 "recursively, with file stats, and optionally other features such as "
1914 "checksums and extended attributes."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-ls.pod:132
1919 msgid ""
1920 "Most of the interesting features of C<virt-ls> are only available when using "
1921 "I<-lR> mode."
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:135
1926 msgid ""
1927 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1928 "you cannot use the output in another program (because filenames can contain "
1929 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1930 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1931 "on you by creating filenames with embedded newline characters.  To B<safely> "
1932 "parse the output in another program, use the I<--csv> (Comma-Separated "
1933 "Values) option."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-ls.pod:143
1938 msgid ""
1939 "Note that this output format is completely unrelated to the C<ls -lR> "
1940 "command."
1941 msgstr ""
1942
1943 #. type: verbatim
1944 #: ../cat/virt-ls.pod:146
1945 #, no-wrap
1946 msgid ""
1947 " $ virt-ls -lR -d guest /bin\n"
1948 " d 0555       4096 /bin\n"
1949 " - 0755        123 /bin/alsaunmute\n"
1950 " - 0755      28328 /bin/arch\n"
1951 " l 0777          4 /bin/awk -> gawk\n"
1952 " - 0755      27216 /bin/basename\n"
1953 " - 0755     943360 /bin/bash\n"
1954 " [etc.]\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:155
1960 msgid "These basic fields are always shown:"
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-ls.pod:159
1965 #, fuzzy
1966 #| msgid "vfs-type"
1967 msgid "type"
1968 msgstr "vfs-type"
1969
1970 #. type: textblock
1971 #: ../cat/virt-ls.pod:161
1972 msgid ""
1973 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1974 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1975 "link), C<s> (socket) or C<u> (unknown)."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:171
1980 #, fuzzy
1981 #| msgid "version"
1982 msgid "permissions"
1983 msgstr "version"
1984
1985 #. type: textblock
1986 #: ../cat/virt-ls.pod:173
1987 msgid "The Unix permissions, displayed as a 4 digit octal number."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-ls.pod:175
1992 #, fuzzy
1993 #| msgid "filesize"
1994 msgid "size"
1995 msgstr "filesize"
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:177
1999 msgid ""
2000 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2001 "readable> option is given, in which case this is shown as a human-readable "
2002 "number."
2003 msgstr ""
2004
2005 #. type: =head2
2006 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4183
2007 msgid "path"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:183
2012 msgid "The full path of the file or directory."
2013 msgstr ""
2014
2015 #. type: =item
2016 #: ../cat/virt-ls.pod:185
2017 #, fuzzy
2018 #| msgid "readlink"
2019 msgid "link"
2020 msgstr "readlink"
2021
2022 #. type: textblock
2023 #: ../cat/virt-ls.pod:187
2024 msgid "For symbolic links only, the link target."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:191
2029 msgid ""
2030 "In I<-lR> mode, additional command line options enable the display of more "
2031 "fields."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../cat/virt-ls.pod:194
2036 msgid ""
2037 "With the I<--uids> flag, these additional fields are displayed before the "
2038 "path:"
2039 msgstr ""
2040
2041 #. type: =item
2042 #: ../cat/virt-ls.pod:199
2043 #, fuzzy
2044 #| msgid "lvuuid"
2045 msgid "uid"
2046 msgstr "lvuuid"
2047
2048 #. type: =item
2049 #: ../cat/virt-ls.pod:201
2050 #, fuzzy
2051 #| msgid "vguuid"
2052 msgid "gid"
2053 msgstr "vguuid"
2054
2055 #. type: textblock
2056 #: ../cat/virt-ls.pod:203
2057 msgid ""
2058 "The UID and GID of the owner of the file (displayed numerically).  Note "
2059 "these only make sense in the context of a Unix-like guest."
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:208
2064 msgid "With the I<--times> flag, these additional fields are displayed:"
2065 msgstr ""
2066
2067 #. type: =item
2068 #: ../cat/virt-ls.pod:212
2069 #, fuzzy
2070 #| msgid "time"
2071 msgid "atime"
2072 msgstr "time"
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:214
2076 msgid "The time of last access."
2077 msgstr ""
2078
2079 #. type: =item
2080 #: ../cat/virt-ls.pod:216
2081 #, fuzzy
2082 #| msgid "time"
2083 msgid "mtime"
2084 msgstr "time"
2085
2086 #. type: textblock
2087 #: ../cat/virt-ls.pod:218
2088 msgid "The time of last modification."
2089 msgstr ""
2090
2091 #. type: =item
2092 #: ../cat/virt-ls.pod:220
2093 #, fuzzy
2094 #| msgid "time"
2095 msgid "ctime"
2096 msgstr "time"
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:222
2100 msgid "The time of last status change."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:226
2105 msgid ""
2106 "The time fields are displayed as string dates and times, unless one of the "
2107 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:229
2112 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:233
2117 #, fuzzy
2118 #| msgid "zero-device"
2119 msgid "device"
2120 msgstr "zero-device"
2121
2122 #. type: textblock
2123 #: ../cat/virt-ls.pod:235
2124 msgid ""
2125 "The device containing the file (displayed as major:minor).  This may not "
2126 "match devices as known to the guest."
2127 msgstr ""
2128
2129 #. type: =item
2130 #: ../cat/virt-ls.pod:238
2131 msgid "inode"
2132 msgstr ""
2133
2134 #. type: textblock
2135 #: ../cat/virt-ls.pod:240
2136 msgid "The inode number."
2137 msgstr ""
2138
2139 #. type: =item
2140 #: ../cat/virt-ls.pod:242
2141 #, fuzzy
2142 #| msgid "readlink"
2143 msgid "nlink"
2144 msgstr "readlink"
2145
2146 #. type: textblock
2147 #: ../cat/virt-ls.pod:244
2148 msgid "The number of hard links."
2149 msgstr ""
2150
2151 #. type: =item
2152 #: ../cat/virt-ls.pod:246
2153 msgid "rdev"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-ls.pod:248
2158 msgid ""
2159 "For block and char special files, the device (displayed as major:minor)."
2160 msgstr ""
2161
2162 #. type: =item
2163 #: ../cat/virt-ls.pod:251
2164 #, fuzzy
2165 #| msgid "C<blocksize>"
2166 msgid "blocks"
2167 msgstr "C<blocksize>"
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:253
2171 msgid "The number of 512 byte blocks allocated to the file."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:257
2176 msgid ""
2177 "With the I<--checksum> flag, the checksum of the file contents is shown "
2178 "(only for regular files).  Computing file checksums can take a considerable "
2179 "amount of time."
2180 msgstr ""
2181
2182 #. type: =item
2183 #: ../cat/virt-ls.pod:280
2184 #, fuzzy
2185 #| msgid "checksum"
2186 msgid "B<--checksum>"
2187 msgstr "checksum"
2188
2189 #. type: =item
2190 #: ../cat/virt-ls.pod:282
2191 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-ls.pod:284
2196 msgid ""
2197 "Display checksum over file contents for regular files.  With no argument, "
2198 "this defaults to using I<md5>.  Using an argument, you can select the "
2199 "checksum type to use."
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2204 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2205 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2206 msgid ""
2207 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2208 "LISTING> above."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:316
2213 msgid ""
2214 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2215 "so you cannot see what you are typing.  If you are not worried about Tempest "
2216 "attacks and there is no one else in the room you can specify this flag to "
2217 "see what you are typing."
2218 msgstr ""
2219
2220 #. type: =item
2221 #: ../cat/virt-ls.pod:321
2222 #, fuzzy
2223 #| msgid "B<--no-dest-paths>"
2224 msgid "B<--extra-stats>"
2225 msgstr "B<--no-dest-paths>"
2226
2227 #. type: textblock
2228 #: ../cat/virt-ls.pod:323
2229 msgid "Display extra stats."
2230 msgstr ""
2231
2232 #. type: verbatim
2233 #: ../cat/virt-ls.pod:339
2234 #, fuzzy, no-wrap
2235 #| msgid ""
2236 #| " guestfish --format=raw -a disk.img\n"
2237 #| "\n"
2238 msgid ""
2239 " virt-ls --format=raw -a disk.img /dir\n"
2240 "\n"
2241 msgstr ""
2242 " guestfish --format=raw -a disk.img\n"
2243 "\n"
2244
2245 #. type: verbatim
2246 #: ../cat/virt-ls.pod:343
2247 #, fuzzy, no-wrap
2248 #| msgid ""
2249 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2250 #| "\n"
2251 msgid ""
2252 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2253 "\n"
2254 msgstr ""
2255 " guestfish --format=raw -a disk.img --format -a another.img\n"
2256 "\n"
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:356
2260 msgid "Display file sizes in human-readable format."
2261 msgstr ""
2262
2263 #. type: =item
2264 #: ../cat/virt-ls.pod:370
2265 msgid "B<-R>"
2266 msgstr ""
2267
2268 #. type: =item
2269 #: ../cat/virt-ls.pod:372
2270 #, fuzzy
2271 #| msgid "B<--live>"
2272 msgid "B<--recursive>"
2273 msgstr "B<--live>"
2274
2275 #. type: textblock
2276 #: ../cat/virt-ls.pod:374
2277 msgid ""
2278 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2279 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2280 "LISTING>."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:378
2285 msgid ""
2286 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2287 "LONG LISTING>."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:381
2292 msgid ""
2293 "C<virt-ls -R> produces a recursive list of files starting at the named "
2294 "directory.  See L</RECURSIVE LISTING>."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:384
2299 msgid ""
2300 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2301 "parsed.  See L</RECURSIVE LONG LISTING>."
2302 msgstr ""
2303
2304 #. type: =item
2305 #: ../cat/virt-ls.pod:387
2306 #, fuzzy
2307 #| msgid "B<--live>"
2308 msgid "B<--times>"
2309 msgstr "B<--live>"
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:389
2313 msgid "Display time fields."
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../cat/virt-ls.pod:394
2318 #, fuzzy
2319 #| msgid "B<--echo-keys>"
2320 msgid "B<--time-days>"
2321 msgstr "B<--echo-keys>"
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:396
2325 msgid "Display time fields as days before now (negative if in the future)."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../cat/virt-ls.pod:398
2330 msgid ""
2331 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2332 "of the file is between 0 and 86399 seconds."
2333 msgstr ""
2334
2335 #. type: =item
2336 #: ../cat/virt-ls.pod:404
2337 #, fuzzy
2338 #| msgid "B<--live>"
2339 msgid "B<--time-relative>"
2340 msgstr "B<--live>"
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:406
2344 msgid "Display time fields as seconds before now (negative if in the future)."
2345 msgstr ""
2346
2347 #. type: =item
2348 #: ../cat/virt-ls.pod:411
2349 #, fuzzy
2350 #| msgid "I<--timeout N>"
2351 msgid "B<--time-t>"
2352 msgstr "I<--timeout N>"
2353
2354 #. type: textblock
2355 #: ../cat/virt-ls.pod:413
2356 msgid "Display time fields as seconds since the Unix epoch."
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../cat/virt-ls.pod:418
2361 #, fuzzy
2362 #| msgid "B<--csh>"
2363 msgid "B<--uids>"
2364 msgstr "B<--csh>"
2365
2366 #. type: textblock
2367 #: ../cat/virt-ls.pod:420
2368 msgid "Display UID and GID fields."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../cat/virt-ls.pod:445
2373 msgid "Previous versions of virt-ls allowed you to write either:"
2374 msgstr ""
2375
2376 #. type: verbatim
2377 #: ../cat/virt-ls.pod:447
2378 #, fuzzy, no-wrap
2379 #| msgid ""
2380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2381 #| "\n"
2382 msgid ""
2383 " virt-ls disk.img [disk.img ...] /dir\n"
2384 "\n"
2385 msgstr ""
2386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2387 "\n"
2388
2389 #. type: verbatim
2390 #: ../cat/virt-ls.pod:451
2391 #, fuzzy, no-wrap
2392 #| msgid ""
2393 #| " inspect-get-hostname root\n"
2394 #| "\n"
2395 msgid ""
2396 " virt-ls guestname /dir\n"
2397 "\n"
2398 msgstr ""
2399 " inspect-get-hostname корінь\n"
2400 "\n"
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:492
2404 #, fuzzy
2405 #| msgid ""
2406 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2407 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2408 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2409 msgid ""
2410 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2411 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2412 "L<http://libguestfs.org/>."
2413 msgstr ""
2414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2417
2418 #. type: textblock
2419 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2420 #: ../rescue/virt-rescue.pod:298
2421 #, fuzzy
2422 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2423 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2424 msgstr "© Red Hat Inc., 2009–2010"
2425
2426 #. type: textblock
2427 #: ../df/virt-df.pod:5
2428 msgid "virt-df - Display free space on virtual filesystems"
2429 msgstr ""
2430
2431 #. type: verbatim
2432 #: ../df/virt-df.pod:9
2433 #, fuzzy, no-wrap
2434 #| msgid ""
2435 #| " virt-list-partitions [--options] domname\n"
2436 #| "\n"
2437 msgid ""
2438 " virt-df [--options]\n"
2439 "\n"
2440 msgstr ""
2441 " virt-list-partitions [--параметри] назва_домену\n"
2442 "\n"
2443
2444 #. type: verbatim
2445 #: ../df/virt-df.pod:11
2446 #, fuzzy, no-wrap
2447 #| msgid ""
2448 #| " virt-list-partitions [--options] domname\n"
2449 #| "\n"
2450 msgid ""
2451 " virt-df [--options] -d domname\n"
2452 "\n"
2453 msgstr ""
2454 " virt-list-partitions [--параметри] назва_домену\n"
2455 "\n"
2456
2457 #. type: verbatim
2458 #: ../df/virt-df.pod:13
2459 #, fuzzy, no-wrap
2460 #| msgid ""
2461 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2462 #| "\n"
2463 msgid ""
2464 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2465 "\n"
2466 msgstr ""
2467 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2468 "\n"
2469
2470 #. type: verbatim
2471 #: ../df/virt-df.pod:17
2472 #, fuzzy, no-wrap
2473 #| msgid ""
2474 #| " virt-list-partitions [--options] domname\n"
2475 #| "\n"
2476 msgid ""
2477 " virt-df [--options] domname\n"
2478 "\n"
2479 msgstr ""
2480 " virt-list-partitions [--параметри] назва_домену\n"
2481 "\n"
2482
2483 #. type: verbatim
2484 #: ../df/virt-df.pod:19
2485 #, fuzzy, no-wrap
2486 #| msgid ""
2487 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2488 #| "\n"
2489 msgid ""
2490 " virt-df [--options] disk.img [disk.img ...]\n"
2491 "\n"
2492 msgstr ""
2493 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 "\n"
2495
2496 #. type: textblock
2497 #: ../df/virt-df.pod:23
2498 msgid ""
2499 "C<virt-df> is a command line tool to display free space on virtual machine "
2500 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2501 "allocated to a virtual machine, but can look inside disk images to see how "
2502 "much space is really being used."
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../df/virt-df.pod:28
2507 msgid ""
2508 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2509 "to get a list of all active and inactive guests, and performs a C<df>-type "
2510 "operation on each one in turn, printing out the results."
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../df/virt-df.pod:32
2515 msgid ""
2516 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2517 "type operation on either the single named libvirt domain, or on the disk "
2518 "image(s) listed on the command line (which must all belong to a single VM).  "
2519 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2520 "guest>.  If you want to run on multiple guests, then you have to invoke "
2521 "C<virt-df> multiple times."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../df/virt-df.pod:39
2526 msgid ""
2527 "Use the I<--csv> option to get a format which can be easily parsed by other "
2528 "programs.  Other options are similar to the standard L<df(1)> command."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:45
2533 msgid ""
2534 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2535 "output human-readable:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../df/virt-df.pod:48
2540 #, no-wrap
2541 msgid ""
2542 " # virt-df -d F14x64 -h\n"
2543 " Filesystem                       Size     Used  Available  Use%\n"
2544 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2545 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2546 "\n"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:53
2551 msgid "Show disk usage for a disk image file called C<test.img>:"
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../df/virt-df.pod:55
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-df -a test1.img\n"
2559 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2560 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../df/virt-df.pod:112
2566 #, fuzzy, no-wrap
2567 #| msgid ""
2568 #| " guestfish --format=raw -a disk.img\n"
2569 #| "\n"
2570 msgid ""
2571 " virt-df --format=raw -a disk.img\n"
2572 "\n"
2573 msgstr ""
2574 " guestfish --format=raw -a disk.img\n"
2575 "\n"
2576
2577 #. type: verbatim
2578 #: ../df/virt-df.pod:116
2579 #, fuzzy, no-wrap
2580 #| msgid ""
2581 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2582 #| "\n"
2583 msgid ""
2584 " virt-df --format=raw -a disk.img --format -a another.img\n"
2585 "\n"
2586 msgstr ""
2587 " guestfish --format=raw -a disk.img --format -a another.img\n"
2588 "\n"
2589
2590 #. type: textblock
2591 #: ../df/virt-df.pod:129
2592 msgid "Print sizes in human-readable format."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../df/virt-df.pod:131
2597 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2598 msgstr ""
2599
2600 #. type: =item
2601 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2602 msgid "B<-i>"
2603 msgstr "B<-i>"
2604
2605 #. type: =item
2606 #: ../df/virt-df.pod:135
2607 #, fuzzy
2608 #| msgid "B<--live>"
2609 msgid "B<--inodes>"
2610 msgstr "B<--live>"
2611
2612 #. type: textblock
2613 #: ../df/virt-df.pod:137
2614 msgid "Print inodes instead of blocks."
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../df/virt-df.pod:139
2619 #, fuzzy
2620 #| msgid "B<--merge>"
2621 msgid "B<--one-per-guest>"
2622 msgstr "B<--merge>"
2623
2624 #. type: textblock
2625 #: ../df/virt-df.pod:141
2626 msgid ""
2627 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2628 "disks from several guests to a single libguestfs appliance."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../df/virt-df.pod:144
2633 msgid "You might use this option in the following circumstances:"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2638 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2639 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2640 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2641 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2642 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2643 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2644 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2645 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2646 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
2647 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
2648 #: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103
2649 #: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111
2650 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
2651 #: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137
2652 #: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145
2653 #: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239
2654 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249
2655 #: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295
2656 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933
2657 #: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947
2658 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961
2659 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2660 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2661 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2662 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2663 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2664 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
2665 #: ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591
2666 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605
2667 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666
2668 #: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674
2669 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686
2670 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700
2671 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708
2672 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
2673 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2674 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925
2675 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859
2676 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873
2677 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887
2678 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2679 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2680 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2681 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2682 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2683 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2684 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2685 #: ../src/guestfs.pod: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:1075
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:1249 ../fish/virt-copy-in.pod:60
3485 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3486 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3487 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3488 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3489 #: ../python/examples/guestfs-python.pod:53
3490 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod: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:1251 ../fish/virt-copy-in.pod:62
3498 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3499 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3500 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3501 #: ../perl/examples/guestfs-perl.pod:53
3502 #: ../python/examples/guestfs-python.pod:55
3503 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod: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:1287 ../fish/guestfish-actions.pod:1929
3862 #: ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1917
3863 #: ../src/guestfs-actions.pod:2855 ../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:986
4520 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4521 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4522 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4523 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4524 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4525 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4526 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4527 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
4528 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
4529 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4947
4530 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5255
4531 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6574
4532 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6666
4533 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7714
4534 #: ../src/guestfs-actions.pod:7884
4535 msgid ""
4536 "Deprecated functions will not be removed from the API, but the fact that "
4537 "they are deprecated indicates that there are problems with correct use of "
4538 "these functions."
4539 msgstr ""
4540
4541 #. type: =head2
4542 #: ../fish/guestfish-actions.pod:35
4543 msgid "add-domain"
4544 msgstr "add-domain"
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:37
4548 msgid "domain"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:39
4553 #, no-wrap
4554 msgid ""
4555 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:41
4561 msgid ""
4562 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4563 "It works by connecting to libvirt, requesting the domain and domain XML from "
4564 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4569 msgid ""
4570 "The number of disks added is returned.  This operation is atomic: if an "
4571 "error is returned, then no disks are added."
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4576 msgid ""
4577 "This function does some minimal checks to make sure the libvirt domain is "
4578 "not running (unless C<readonly> is true).  In a future version we will try "
4579 "to acquire the libvirt lock on each disk."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4584 msgid ""
4585 "Disks must be accessible locally.  This often means that adding disks from a "
4586 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4587 "unless those disks are accessible via the same device path locally too."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4592 msgid ""
4593 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4594 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4595 "libvirt URI (or one set through an environment variable, see the libvirt "
4596 "documentation for full details)."
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4601 msgid ""
4602 "The optional C<live> flag controls whether this call will try to connect to "
4603 "a running virtual machine C<guestfsd> process if it sees a suitable "
4604 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4605 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4606 "DAEMONS> for more information."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4611 msgid ""
4612 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4613 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4614 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4615 "as usual."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../fish/guestfish-actions.pod:76
4620 msgid ""
4621 "The other optional parameters are passed directly through to L</add-drive-"
4622 "opts>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4627 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
4628 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4629 #: ../fish/guestfish-actions.pod:3442
4630 msgid ""
4631 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../fish/guestfish-actions.pod:81
4636 msgid "add-drive"
4637 msgstr "add-drive"
4638
4639 #. type: verbatim
4640 #: ../fish/guestfish-actions.pod:83
4641 #, no-wrap
4642 msgid ""
4643 " add-drive filename\n"
4644 "\n"
4645 msgstr ""
4646 " add-drive назва_файла\n"
4647 "\n"
4648
4649 #. type: textblock
4650 #: ../fish/guestfish-actions.pod:85
4651 msgid ""
4652 "This function is the equivalent of calling L</add-drive-opts> with no "
4653 "optional parameters, so the disk is added writable, with the format being "
4654 "detected automatically."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../fish/guestfish-actions.pod:89
4659 msgid ""
4660 "Automatic detection of the format opens you up to a potential security hole "
4661 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4662 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4663 "you should think about replacing calls to this function with calls to L</add-"
4664 "drive-opts>, and specifying the format."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../fish/guestfish-actions.pod:96
4669 msgid "add-drive-opts"
4670 msgstr "add-drive-opts"
4671
4672 #. type: =head2
4673 #: ../fish/guestfish-actions.pod:98
4674 msgid "add"
4675 msgstr "add"
4676
4677 #. type: verbatim
4678 #: ../fish/guestfish-actions.pod:100
4679 #, no-wrap
4680 msgid ""
4681 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4687 msgid ""
4688 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4689 "The first time you call this function, the disk appears as C</dev/sda>, the "
4690 "second time as C</dev/sdb>, and so on."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4695 msgid ""
4696 "You don't necessarily need to be root when using libguestfs.  However you "
4697 "obviously do need sufficient permissions to access the filename for whatever "
4698 "operations you want to perform (ie. read access if you just want to read the "
4699 "image or write access if you want to modify the image)."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4704 msgid "This call checks that C<filename> exists."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
4710 msgid "The optional arguments are:"
4711 msgstr ""
4712
4713 #. type: =item
4714 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4715 msgid "C<readonly>"
4716 msgstr "C<readonly>"
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4720 msgid ""
4721 "If true then the image is treated as read-only.  Writes are still allowed, "
4722 "but they are stored in a temporary snapshot overlay which is discarded at "
4723 "the end.  The disk that you add is not modified."
4724 msgstr ""
4725
4726 #. type: =item
4727 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4728 msgid "C<format>"
4729 msgstr "C<format>"
4730
4731 #. type: textblock
4732 #: ../fish/guestfish-actions.pod:127
4733 msgid ""
4734 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4735 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4736 "include C<raw> and C<qcow2>."
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4741 msgid ""
4742 "Automatic detection of the format opens you up to a potential security hole "
4743 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4744 "RHBZ#642934.  Specifying the format closes this security hole."
4745 msgstr ""
4746
4747 #. type: =item
4748 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4749 msgid "C<iface>"
4750 msgstr "C<iface>"
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:138
4754 msgid ""
4755 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4756 "add-drive-with-if> call (q.v.)"
4757 msgstr ""
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:145
4761 msgid "add-drive-ro"
4762 msgstr "add-drive-ro"
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:147
4766 msgid "add-ro"
4767 msgstr "add-ro"
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:149
4771 #, no-wrap
4772 msgid ""
4773 " add-drive-ro filename\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:151
4779 msgid ""
4780 "This function is the equivalent of calling L</add-drive-opts> with the "
4781 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4782 "is added read-only, with the format being detected automatically."
4783 msgstr ""
4784
4785 #. type: =head2
4786 #: ../fish/guestfish-actions.pod:156
4787 msgid "add-drive-ro-with-if"
4788 msgstr ""
4789
4790 #. type: verbatim
4791 #: ../fish/guestfish-actions.pod:158
4792 #, no-wrap
4793 msgid ""
4794 " add-drive-ro-with-if filename iface\n"
4795 "\n"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../fish/guestfish-actions.pod:160
4800 msgid ""
4801 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4802 "interface emulation to use at run time."
4803 msgstr ""
4804
4805 #. type: =head2
4806 #: ../fish/guestfish-actions.pod:170
4807 msgid "add-drive-with-if"
4808 msgstr ""
4809
4810 #. type: verbatim
4811 #: ../fish/guestfish-actions.pod:172
4812 #, no-wrap
4813 msgid ""
4814 " add-drive-with-if filename iface\n"
4815 "\n"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:174
4820 msgid ""
4821 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4822 "interface emulation to use at run time."
4823 msgstr ""
4824
4825 #. type: =head2
4826 #: ../fish/guestfish-actions.pod:184
4827 msgid "aug-clear"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../fish/guestfish-actions.pod:186
4832 #, no-wrap
4833 msgid ""
4834 " aug-clear augpath\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4840 msgid ""
4841 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4842 "L<augtool(1)> C<clear> command."
4843 msgstr ""
4844
4845 #. type: =head2
4846 #: ../fish/guestfish-actions.pod:191
4847 msgid "aug-close"
4848 msgstr ""
4849
4850 #. type: verbatim
4851 #: ../fish/guestfish-actions.pod:193
4852 #, no-wrap
4853 msgid ""
4854 " aug-close\n"
4855 "\n"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:195
4860 msgid ""
4861 "Close the current Augeas handle and free up any resources used by it.  After "
4862 "calling this, you have to call L</aug-init> again before you can use any "
4863 "other Augeas functions."
4864 msgstr ""
4865
4866 #. type: =head2
4867 #: ../fish/guestfish-actions.pod:200
4868 msgid "aug-defnode"
4869 msgstr ""
4870
4871 #. type: verbatim
4872 #: ../fish/guestfish-actions.pod:202
4873 #, no-wrap
4874 msgid ""
4875 " aug-defnode name expr val\n"
4876 "\n"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4881 msgid ""
4882 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../fish/guestfish-actions.pod:207
4887 msgid ""
4888 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4889 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4890 "containing that single node."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4895 msgid ""
4896 "On success this returns a pair containing the number of nodes in the "
4897 "nodeset, and a boolean flag if a node was created."
4898 msgstr ""
4899
4900 #. type: =head2
4901 #: ../fish/guestfish-actions.pod:215
4902 msgid "aug-defvar"
4903 msgstr ""
4904
4905 #. type: verbatim
4906 #: ../fish/guestfish-actions.pod:217
4907 #, no-wrap
4908 msgid ""
4909 " aug-defvar name expr\n"
4910 "\n"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4915 msgid ""
4916 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4917 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4922 msgid ""
4923 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4924 "evaluates to something which is not a nodeset."
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../fish/guestfish-actions.pod:226
4929 msgid "aug-get"
4930 msgstr ""
4931
4932 #. type: verbatim
4933 #: ../fish/guestfish-actions.pod:228
4934 #, no-wrap
4935 msgid ""
4936 " aug-get augpath\n"
4937 "\n"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4942 msgid ""
4943 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4944 "node, the C<value> is returned."
4945 msgstr ""
4946
4947 #. type: =head2
4948 #: ../fish/guestfish-actions.pod:233
4949 msgid "aug-init"
4950 msgstr ""
4951
4952 #. type: verbatim
4953 #: ../fish/guestfish-actions.pod:235
4954 #, no-wrap
4955 msgid ""
4956 " aug-init root flags\n"
4957 "\n"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4962 msgid ""
4963 "Create a new Augeas handle for editing configuration files.  If there was "
4964 "any previous Augeas handle associated with this guestfs session, then it is "
4965 "closed."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:241
4970 msgid "You must call this before using any other L</aug-*> commands."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4975 msgid ""
4976 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4981 msgid ""
4982 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4983 "logical I<or> of the following integers:"
4984 msgstr ""
4985
4986 #. type: =item
4987 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4988 msgid "C<AUG_SAVE_BACKUP> = 1"
4989 msgstr "C<AUG_SAVE_BACKUP> = 1"
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4993 msgid "Keep the original file with a C<.augsave> extension."
4994 msgstr ""
4995
4996 #. type: =item
4997 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4998 msgid "C<AUG_SAVE_NEWFILE> = 2"
4999 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5003 msgid ""
5004 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5005 "original.  Overrides C<AUG_SAVE_BACKUP>."
5006 msgstr ""
5007
5008 #. type: =item
5009 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5010 msgid "C<AUG_TYPE_CHECK> = 4"
5011 msgstr "C<AUG_TYPE_CHECK> = 4"
5012
5013 #. type: textblock
5014 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5015 msgid "Typecheck lenses (can be expensive)."
5016 msgstr ""
5017
5018 #. type: =item
5019 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
5020 msgid "C<AUG_NO_STDINC> = 8"
5021 msgstr "C<AUG_NO_STDINC> = 8"
5022
5023 #. type: textblock
5024 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
5025 msgid "Do not use standard load path for modules."
5026 msgstr ""
5027
5028 #. type: =item
5029 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
5030 msgid "C<AUG_SAVE_NOOP> = 16"
5031 msgstr "C<AUG_SAVE_NOOP> = 16"
5032
5033 #. type: textblock
5034 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
5035 msgid "Make save a no-op, just record what would have been changed."
5036 msgstr ""
5037
5038 #. type: =item
5039 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
5040 msgid "C<AUG_NO_LOAD> = 32"
5041 msgstr "C<AUG_NO_LOAD> = 32"
5042
5043 #. type: textblock
5044 #: ../fish/guestfish-actions.pod:276
5045 msgid "Do not load the tree in L</aug-init>."
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../fish/guestfish-actions.pod:280
5050 msgid "To close the handle, you can call L</aug-close>."
5051 msgstr ""
5052
5053 #. type: textblock
5054 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
5055 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5056 msgstr ""
5057
5058 #. type: =head2
5059 #: ../fish/guestfish-actions.pod:284
5060 msgid "aug-insert"
5061 msgstr ""
5062
5063 #. type: verbatim
5064 #: ../fish/guestfish-actions.pod:286
5065 #, no-wrap
5066 msgid ""
5067 " aug-insert augpath label true|false\n"
5068 "\n"
5069 msgstr ""
5070
5071 #. type: textblock
5072 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
5073 msgid ""
5074 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5075 "or after C<path> (depending on the boolean flag C<before>)."
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
5080 msgid ""
5081 "C<path> must match exactly one existing node in the tree, and C<label> must "
5082 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5083 msgstr ""
5084
5085 #. type: =head2
5086 #: ../fish/guestfish-actions.pod:296
5087 msgid "aug-load"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../fish/guestfish-actions.pod:298
5092 #, no-wrap
5093 msgid ""
5094 " aug-load\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
5100 msgid "Load files into the tree."
5101 msgstr "Завантажити файли до ієрархії."
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
5105 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:305
5110 msgid "aug-ls"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:307
5115 #, no-wrap
5116 msgid ""
5117 " aug-ls augpath\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:309
5123 msgid ""
5124 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5125 "resulting nodes into alphabetical order."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../fish/guestfish-actions.pod:312
5130 msgid "aug-match"
5131 msgstr ""
5132
5133 #. type: verbatim
5134 #: ../fish/guestfish-actions.pod:314
5135 #, no-wrap
5136 msgid ""
5137 " aug-match augpath\n"
5138 "\n"
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
5143 msgid ""
5144 "Returns a list of paths which match the path expression C<path>.  The "
5145 "returned paths are sufficiently qualified so that they match exactly one "
5146 "node in the current tree."
5147 msgstr ""
5148
5149 #. type: =head2
5150 #: ../fish/guestfish-actions.pod:320
5151 msgid "aug-mv"
5152 msgstr ""
5153
5154 #. type: verbatim
5155 #: ../fish/guestfish-actions.pod:322
5156 #, no-wrap
5157 msgid ""
5158 " aug-mv src dest\n"
5159 "\n"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
5164 msgid ""
5165 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5166 "C<dest> is overwritten if it exists."
5167 msgstr ""
5168
5169 #. type: =head2
5170 #: ../fish/guestfish-actions.pod:327
5171 msgid "aug-rm"
5172 msgstr ""
5173
5174 #. type: verbatim
5175 #: ../fish/guestfish-actions.pod:329
5176 #, no-wrap
5177 msgid ""
5178 " aug-rm augpath\n"
5179 "\n"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
5184 msgid "Remove C<path> and all of its children."
5185 msgstr ""
5186
5187 #. type: textblock
5188 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
5189 msgid "On success this returns the number of entries which were removed."
5190 msgstr ""
5191
5192 #. type: =head2
5193 #: ../fish/guestfish-actions.pod:335
5194 msgid "aug-save"
5195 msgstr ""
5196
5197 #. type: verbatim
5198 #: ../fish/guestfish-actions.pod:337
5199 #, no-wrap
5200 msgid ""
5201 " aug-save\n"
5202 "\n"
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
5207 msgid "This writes all pending changes to disk."
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:341
5212 msgid ""
5213 "The flags which were passed to L</aug-init> affect exactly how files are "
5214 "saved."
5215 msgstr ""
5216
5217 #. type: =head2
5218 #: ../fish/guestfish-actions.pod:344
5219 msgid "aug-set"
5220 msgstr ""
5221
5222 #. type: verbatim
5223 #: ../fish/guestfish-actions.pod:346
5224 #, no-wrap
5225 msgid ""
5226 " aug-set augpath val\n"
5227 "\n"
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
5232 msgid "Set the value associated with C<path> to C<val>."
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../fish/guestfish-actions.pod:350
5237 msgid ""
5238 "In the Augeas API, it is possible to clear a node by setting the value to "
5239 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5240 "this call.  Instead you must use the L</aug-clear> call."
5241 msgstr ""
5242
5243 #. type: =head2
5244 #: ../fish/guestfish-actions.pod:355
5245 msgid "available"
5246 msgstr ""
5247
5248 #. type: verbatim
5249 #: ../fish/guestfish-actions.pod:357
5250 #, no-wrap
5251 msgid ""
5252 " available 'groups ...'\n"
5253 "\n"
5254 msgstr ""
5255
5256 #. type: textblock
5257 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
5258 msgid ""
5259 "This command is used to check the availability of some groups of "
5260 "functionality in the appliance, which not all builds of the libguestfs "
5261 "appliance will be able to provide."
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:363
5266 msgid ""
5267 "The libguestfs groups, and the functions that those groups correspond to, "
5268 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5269 "runtime by calling L</available-all-groups>."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
5274 msgid ""
5275 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5276 "\"]> would check for the availability of the Linux inotify functions and "
5277 "Augeas (configuration file editing) functions."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5282 msgid "The command returns no error if I<all> requested groups are available."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
5287 msgid ""
5288 "It fails with an error if one or more of the requested groups is unavailable "
5289 "in the appliance."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5294 msgid ""
5295 "If an unknown group name is included in the list of groups then an error is "
5296 "always returned."
5297 msgstr ""
5298
5299 #. type: textblock
5300 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
5301 msgid "I<Notes:>"
5302 msgstr "I<Нотатки:>"
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:387
5306 msgid "You must call L</launch> before calling this function."
5307 msgstr ""
5308
5309 #. type: textblock
5310 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
5311 msgid ""
5312 "The reason is because we don't know what groups are supported by the "
5313 "appliance/daemon until it is running and can be queried."
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
5318 msgid ""
5319 "If a group of functions is available, this does not necessarily mean that "
5320 "they will work.  You still have to check for errors when calling individual "
5321 "API functions even if they are available."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
5326 msgid ""
5327 "It is usually the job of distro packagers to build complete functionality "
5328 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5329 "with all requirements satisfied, will support everything."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:409
5334 msgid ""
5335 "This call was added in version C<1.0.80>.  In previous versions of "
5336 "libguestfs all you could do would be to speculatively execute a command to "
5337 "find out if the daemon implemented it.  See also L</version>."
5338 msgstr ""
5339
5340 #. type: =head2
5341 #: ../fish/guestfish-actions.pod:416
5342 msgid "available-all-groups"
5343 msgstr ""
5344
5345 #. type: verbatim
5346 #: ../fish/guestfish-actions.pod:418
5347 #, no-wrap
5348 msgid ""
5349 " available-all-groups\n"
5350 "\n"
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:420
5355 msgid ""
5356 "This command returns a list of all optional groups that this daemon knows "
5357 "about.  Note this returns both supported and unsupported groups.  To find "
5358 "out which ones the daemon can actually support you have to call L</"
5359 "available> on each member of the returned list."
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../fish/guestfish-actions.pod:426
5364 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5365 msgstr ""
5366
5367 #. type: =head2
5368 #: ../fish/guestfish-actions.pod:428
5369 msgid "base64-in"
5370 msgstr ""
5371
5372 #. type: verbatim
5373 #: ../fish/guestfish-actions.pod:430
5374 #, no-wrap
5375 msgid ""
5376 " base64-in (base64file|-) filename\n"
5377 "\n"
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
5382 msgid ""
5383 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
5388 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
5389 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
5390 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
5391 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
5392 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
5393 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
5394 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5395 msgstr ""
5396
5397 #. type: =head2
5398 #: ../fish/guestfish-actions.pod:437
5399 msgid "base64-out"
5400 msgstr ""
5401
5402 #. type: verbatim
5403 #: ../fish/guestfish-actions.pod:439
5404 #, no-wrap
5405 msgid ""
5406 " base64-out filename (base64file|-)\n"
5407 "\n"
5408 msgstr ""
5409
5410 #. type: textblock
5411 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5412 msgid ""
5413 "This command downloads the contents of C<filename>, writing it out to local "
5414 "file C<base64file> encoded as base64."
5415 msgstr ""
5416
5417 #. type: =head2
5418 #: ../fish/guestfish-actions.pod:446
5419 msgid "blockdev-flushbufs"
5420 msgstr ""
5421
5422 #. type: verbatim
5423 #: ../fish/guestfish-actions.pod:448
5424 #, no-wrap
5425 msgid ""
5426 " blockdev-flushbufs device\n"
5427 "\n"
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5432 msgid ""
5433 "This tells the kernel to flush internal buffers associated with C<device>."
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5438 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5439 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5440 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5441 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5442 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5443 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5444 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5445 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5446 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5447 msgid "This uses the L<blockdev(8)> command."
5448 msgstr ""
5449
5450 #. type: =head2
5451 #: ../fish/guestfish-actions.pod:455
5452 msgid "blockdev-getbsz"
5453 msgstr ""
5454
5455 #. type: verbatim
5456 #: ../fish/guestfish-actions.pod:457
5457 #, no-wrap
5458 msgid ""
5459 " blockdev-getbsz device\n"
5460 "\n"
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5465 msgid "This returns the block size of a device."
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5470 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5471 msgid ""
5472 "(Note this is different from both I<size in blocks> and I<filesystem block "
5473 "size>)."
5474 msgstr ""
5475
5476 #. type: =head2
5477 #: ../fish/guestfish-actions.pod:466
5478 msgid "blockdev-getro"
5479 msgstr ""
5480
5481 #. type: verbatim
5482 #: ../fish/guestfish-actions.pod:468
5483 #, no-wrap
5484 msgid ""
5485 " blockdev-getro device\n"
5486 "\n"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5491 msgid ""
5492 "Returns a boolean indicating if the block device is read-only (true if read-"
5493 "only, false if not)."
5494 msgstr ""
5495
5496 #. type: =head2
5497 #: ../fish/guestfish-actions.pod:475
5498 msgid "blockdev-getsize64"
5499 msgstr ""
5500
5501 #. type: verbatim
5502 #: ../fish/guestfish-actions.pod:477
5503 #, no-wrap
5504 msgid ""
5505 " blockdev-getsize64 device\n"
5506 "\n"
5507 msgstr ""
5508
5509 #. type: textblock
5510 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5511 msgid "This returns the size of the device in bytes."
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:481
5516 msgid "See also L</blockdev-getsz>."
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../fish/guestfish-actions.pod:485
5521 msgid "blockdev-getss"
5522 msgstr ""
5523
5524 #. type: verbatim
5525 #: ../fish/guestfish-actions.pod:487
5526 #, no-wrap
5527 msgid ""
5528 " blockdev-getss device\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5534 msgid ""
5535 "This returns the size of sectors on a block device.  Usually 512, but can be "
5536 "larger for modern devices."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:492
5541 msgid ""
5542 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5543 msgstr ""
5544
5545 #. type: =head2
5546 #: ../fish/guestfish-actions.pod:497
5547 msgid "blockdev-getsz"
5548 msgstr ""
5549
5550 #. type: verbatim
5551 #: ../fish/guestfish-actions.pod:499
5552 #, no-wrap
5553 msgid ""
5554 " blockdev-getsz device\n"
5555 "\n"
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5560 msgid ""
5561 "This returns the size of the device in units of 512-byte sectors (even if "
5562 "the sectorsize isn't 512 bytes ... weird)."
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../fish/guestfish-actions.pod:504
5567 msgid ""
5568 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5569 "blockdev-getsize64> for the more useful I<size in bytes>."
5570 msgstr ""
5571
5572 #. type: =head2
5573 #: ../fish/guestfish-actions.pod:510
5574 msgid "blockdev-rereadpt"
5575 msgstr ""
5576
5577 #. type: verbatim
5578 #: ../fish/guestfish-actions.pod:512
5579 #, no-wrap
5580 msgid ""
5581 " blockdev-rereadpt device\n"
5582 "\n"
5583 msgstr ""
5584
5585 #. type: textblock
5586 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5587 msgid "Reread the partition table on C<device>."
5588 msgstr ""
5589
5590 #. type: =head2
5591 #: ../fish/guestfish-actions.pod:518
5592 msgid "blockdev-setbsz"
5593 msgstr ""
5594
5595 #. type: verbatim
5596 #: ../fish/guestfish-actions.pod:520
5597 #, no-wrap
5598 msgid ""
5599 " blockdev-setbsz device blocksize\n"
5600 "\n"
5601 msgstr ""
5602
5603 #. type: textblock
5604 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5605 msgid "This sets the block size of a device."
5606 msgstr ""
5607
5608 #. type: =head2
5609 #: ../fish/guestfish-actions.pod:529
5610 msgid "blockdev-setro"
5611 msgstr ""
5612
5613 #. type: verbatim
5614 #: ../fish/guestfish-actions.pod:531
5615 #, no-wrap
5616 msgid ""
5617 " blockdev-setro device\n"
5618 "\n"
5619 msgstr ""
5620
5621 #. type: textblock
5622 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5623 msgid "Sets the block device named C<device> to read-only."
5624 msgstr ""
5625
5626 #. type: =head2
5627 #: ../fish/guestfish-actions.pod:537
5628 msgid "blockdev-setrw"
5629 msgstr ""
5630
5631 #. type: verbatim
5632 #: ../fish/guestfish-actions.pod:539
5633 #, no-wrap
5634 msgid ""
5635 " blockdev-setrw device\n"
5636 "\n"
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5641 msgid "Sets the block device named C<device> to read-write."
5642 msgstr ""
5643
5644 #. type: =head2
5645 #: ../fish/guestfish-actions.pod:545
5646 msgid "btrfs-filesystem-resize"
5647 msgstr ""
5648
5649 #. type: verbatim
5650 #: ../fish/guestfish-actions.pod:547
5651 #, no-wrap
5652 msgid ""
5653 " btrfs-filesystem-resize mountpoint [size:..]\n"
5654 "\n"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5659 msgid "This command resizes a btrfs filesystem."
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5664 msgid ""
5665 "Note that unlike other resize calls, the filesystem has to be mounted and "
5666 "the parameter is the mountpoint not the device (this is a requirement of "
5667 "btrfs itself)."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5672 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5673 msgid "The optional parameters are:"
5674 msgstr ""
5675
5676 #. type: =item
5677 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5678 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5679 msgid "C<size>"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5684 msgid ""
5685 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5686 "resized to the maximum size."
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5691 msgid "See also L<btrfs(8)>."
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../fish/guestfish-actions.pod:570
5696 msgid "case-sensitive-path"
5697 msgstr ""
5698
5699 #. type: verbatim
5700 #: ../fish/guestfish-actions.pod:572
5701 #, no-wrap
5702 msgid ""
5703 " case-sensitive-path path\n"
5704 "\n"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5709 msgid ""
5710 "This can be used to resolve case insensitive paths on a filesystem which is "
5711 "case sensitive.  The use case is to resolve paths which you have read from "
5712 "Windows configuration files or the Windows Registry, to the true path."
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5717 msgid ""
5718 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5719 "(and probably others), which is that although the underlying filesystem is "
5720 "case-insensitive, the driver exports the filesystem to Linux as case-"
5721 "sensitive."
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5726 msgid ""
5727 "One consequence of this is that special directories such as C<c:\\windows> "
5728 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5729 "precise details of how they were created.  In Windows itself this would not "
5730 "be a problem."
5731 msgstr ""
5732
5733 #. type: textblock
5734 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5735 msgid ""
5736 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5737 "#posixfilenames1>"
5738 msgstr ""
5739
5740 #. type: textblock
5741 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5742 msgid ""
5743 "This function resolves the true case of each element in the path and returns "
5744 "the case-sensitive path."
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:596
5749 msgid ""
5750 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5751 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5752 "the directories were originally created under Windows)."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5757 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:604
5762 msgid "See also L</realpath>."
5763 msgstr ""
5764
5765 #. type: =head2
5766 #: ../fish/guestfish-actions.pod:606
5767 msgid "cat"
5768 msgstr "cat"
5769
5770 #. type: verbatim
5771 #: ../fish/guestfish-actions.pod:608
5772 #, no-wrap
5773 msgid ""
5774 " cat path\n"
5775 "\n"
5776 msgstr ""
5777 " cat шлях\n"
5778 "\n"
5779
5780 #. type: textblock
5781 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5782 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5783 msgid "Return the contents of the file named C<path>."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../fish/guestfish-actions.pod:612
5788 msgid ""
5789 "Note that this function cannot correctly handle binary files (specifically, "
5790 "files containing C<\\0> character which is treated as end of string).  For "
5791 "those you need to use the L</read-file> or L</download> functions which have "
5792 "a more complex interface."
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5797 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5798 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5799 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5800 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5801 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5802 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5803 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5804 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5805 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5806 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5807 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5808 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5809 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5810 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5811 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5812 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5813 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5814 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5815 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5816 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5817 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5818 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5819 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5820 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5821 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5822 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5823 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5824 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7708
5825 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5826 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5827 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5828 msgid ""
5829 "Because of the message protocol, there is a transfer limit of somewhere "
5830 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5831 msgstr ""
5832
5833 #. type: =head2
5834 #: ../fish/guestfish-actions.pod:620
5835 msgid "checksum"
5836 msgstr "checksum"
5837
5838 #. type: verbatim
5839 #: ../fish/guestfish-actions.pod:622
5840 #, no-wrap
5841 msgid ""
5842 " checksum csumtype path\n"
5843 "\n"
5844 msgstr ""
5845
5846 #. type: textblock
5847 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5848 msgid ""
5849 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5854 msgid ""
5855 "The type of checksum to compute is given by the C<csumtype> parameter which "
5856 "must have one of the following values:"
5857 msgstr ""
5858
5859 #. type: =item
5860 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5861 msgid "C<crc>"
5862 msgstr "C<crc>"
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5866 msgid ""
5867 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5868 "C<cksum> command."
5869 msgstr ""
5870
5871 #. type: =item
5872 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5873 msgid "C<md5>"
5874 msgstr "C<md5>"
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5878 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5879 msgstr ""
5880
5881 #. type: =item
5882 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5883 msgid "C<sha1>"
5884 msgstr "C<sha1>"
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5888 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5889 msgstr ""
5890
5891 #. type: =item
5892 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5893 msgid "C<sha224>"
5894 msgstr "C<sha224>"
5895
5896 #. type: textblock
5897 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5898 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5899 msgstr ""
5900
5901 #. type: =item
5902 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5903 msgid "C<sha256>"
5904 msgstr "C<sha256>"
5905
5906 #. type: textblock
5907 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5908 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5909 msgstr ""
5910
5911 #. type: =item
5912 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5913 msgid "C<sha384>"
5914 msgstr "C<sha384>"
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5918 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5919 msgstr ""
5920
5921 #. type: =item
5922 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5923 msgid "C<sha512>"
5924 msgstr "C<sha512>"
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5928 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5929 msgstr ""
5930
5931 #. type: textblock
5932 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5933 msgid "The checksum is returned as a printable string."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:665
5938 msgid "To get the checksum for a device, use L</checksum-device>."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:667
5943 msgid "To get the checksums for many files, use L</checksums-out>."
5944 msgstr ""
5945
5946 #. type: =head2
5947 #: ../fish/guestfish-actions.pod:669
5948 msgid "checksum-device"
5949 msgstr "checksum-device"
5950
5951 #. type: verbatim
5952 #: ../fish/guestfish-actions.pod:671
5953 #, no-wrap
5954 msgid ""
5955 " checksum-device csumtype device\n"
5956 "\n"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../fish/guestfish-actions.pod:673
5961 msgid ""
5962 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5963 "device named C<device>.  For the types of checksums supported see the L</"
5964 "checksum> command."
5965 msgstr ""
5966
5967 #. type: =head2
5968 #: ../fish/guestfish-actions.pod:677
5969 msgid "checksums-out"
5970 msgstr ""
5971
5972 #. type: verbatim
5973 #: ../fish/guestfish-actions.pod:679
5974 #, no-wrap
5975 msgid ""
5976 " checksums-out csumtype directory (sumsfile|-)\n"
5977 "\n"
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5982 msgid ""
5983 "This command computes the checksums of all regular files in C<directory> and "
5984 "then emits a list of those checksums to the local output file C<sumsfile>."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5989 msgid ""
5990 "This can be used for verifying the integrity of a virtual machine.  However "
5991 "to be properly secure you should pay attention to the output of the checksum "
5992 "command (it uses the ones from GNU coreutils).  In particular when the "
5993 "filename is not printable, coreutils uses a special backslash syntax.  For "
5994 "more information, see the GNU coreutils info file."
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../fish/guestfish-actions.pod:695
5999 msgid "chmod"
6000 msgstr "chmod"
6001
6002 #. type: verbatim
6003 #: ../fish/guestfish-actions.pod:697
6004 #, no-wrap
6005 msgid ""
6006 " chmod mode path\n"
6007 "\n"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
6012 msgid ""
6013 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6014 "supported."
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
6019 msgid ""
6020 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6021 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6022 "C<700>."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
6027 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
6028 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
6029 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
6030 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
6031 msgid "The mode actually set is affected by the umask."
6032 msgstr ""
6033
6034 #. type: =head2
6035 #: ../fish/guestfish-actions.pod:708
6036 msgid "chown"
6037 msgstr "chown"
6038
6039 #. type: verbatim
6040 #: ../fish/guestfish-actions.pod:710
6041 #, no-wrap
6042 msgid ""
6043 " chown owner group path\n"
6044 "\n"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
6049 msgid "Change the file owner to C<owner> and group to C<group>."
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
6054 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
6055 msgid ""
6056 "Only numeric uid and gid are supported.  If you want to use names, you will "
6057 "need to locate and parse the password file yourself (Augeas support makes "
6058 "this relatively easy)."
6059 msgstr ""
6060
6061 #. type: =head2
6062 #: ../fish/guestfish-actions.pod:718
6063 msgid "command"
6064 msgstr ""
6065
6066 #. type: verbatim
6067 #: ../fish/guestfish-actions.pod:720
6068 #, no-wrap
6069 msgid ""
6070 " command 'arguments ...'\n"
6071 "\n"
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
6076 msgid ""
6077 "This call runs a command from the guest filesystem.  The filesystem must be "
6078 "mounted, and must contain a compatible operating system (ie. something "
6079 "Linux, with the same or compatible processor architecture)."
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:727
6084 msgid ""
6085 "The single parameter is an argv-style list of arguments.  The first element "
6086 "is the name of the program to run.  Subsequent elements are parameters.  The "
6087 "list must be non-empty (ie. must contain a program name).  Note that the "
6088 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
6093 msgid "The return value is anything printed to I<stdout> by the command."
6094 msgstr ""
6095
6096 #. type: textblock
6097 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
6098 msgid ""
6099 "If the command returns a non-zero exit status, then this function returns an "
6100 "error message.  The error message string is the content of I<stderr> from "
6101 "the command."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
6106 msgid ""
6107 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6108 "bin>.  If you require a program from another location, you should provide "
6109 "the full path in the first parameter."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6114 msgid ""
6115 "Shared libraries and data files required by the program must be available on "
6116 "filesystems which are mounted in the correct places.  It is the caller's "
6117 "responsibility to ensure all filesystems that are needed are mounted at the "
6118 "right locations."
6119 msgstr ""
6120
6121 #. type: =head2
6122 #: ../fish/guestfish-actions.pod:755
6123 msgid "command-lines"
6124 msgstr ""
6125
6126 #. type: verbatim
6127 #: ../fish/guestfish-actions.pod:757
6128 #, no-wrap
6129 msgid ""
6130 " command-lines 'arguments ...'\n"
6131 "\n"
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:759
6136 msgid ""
6137 "This is the same as L</command>, but splits the result into a list of lines."
6138 msgstr ""
6139
6140 #. type: textblock
6141 #: ../fish/guestfish-actions.pod:762
6142 msgid "See also: L</sh-lines>"
6143 msgstr ""
6144
6145 #. type: =head2
6146 #: ../fish/guestfish-actions.pod:767
6147 msgid "config"
6148 msgstr ""
6149
6150 #. type: verbatim
6151 #: ../fish/guestfish-actions.pod:769
6152 #, no-wrap
6153 msgid ""
6154 " config qemuparam qemuvalue\n"
6155 "\n"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
6160 msgid ""
6161 "This can be used to add arbitrary qemu command line parameters of the form "
6162 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6163 "setting some parameters which would interfere with parameters that we use."
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6168 msgid "The first character of C<param> string must be a C<-> (dash)."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
6173 msgid "C<value> can be NULL."
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../fish/guestfish-actions.pod:780
6178 msgid "copy-size"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../fish/guestfish-actions.pod:782
6183 #, no-wrap
6184 msgid ""
6185 " copy-size src dest size\n"
6186 "\n"
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
6191 msgid ""
6192 "This command copies exactly C<size> bytes from one source device or file "
6193 "C<src> to another destination device or file C<dest>."
6194 msgstr ""
6195
6196 #. type: textblock
6197 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
6198 msgid ""
6199 "Note this will fail if the source is too short or if the destination is not "
6200 "large enough."
6201 msgstr ""
6202
6203 #. type: =head2
6204 #: ../fish/guestfish-actions.pod:790
6205 msgid "cp"
6206 msgstr "cp"
6207
6208 #. type: verbatim
6209 #: ../fish/guestfish-actions.pod:792
6210 #, no-wrap
6211 msgid ""
6212 " cp src dest\n"
6213 "\n"
6214 msgstr ""
6215
6216 #. type: textblock
6217 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
6218 msgid ""
6219 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6220 "destination filename or destination directory."
6221 msgstr ""
6222
6223 #. type: =head2
6224 #: ../fish/guestfish-actions.pod:797
6225 msgid "cp-a"
6226 msgstr "cp-a"
6227
6228 #. type: verbatim
6229 #: ../fish/guestfish-actions.pod:799
6230 #, no-wrap
6231 msgid ""
6232 " cp-a src dest\n"
6233 "\n"
6234 msgstr ""
6235
6236 #. type: textblock
6237 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
6238 msgid ""
6239 "This copies a file or directory from C<src> to C<dest> recursively using the "
6240 "C<cp -a> command."
6241 msgstr ""
6242
6243 #. type: =head2
6244 #: ../fish/guestfish-actions.pod:804
6245 msgid "dd"
6246 msgstr "dd"
6247
6248 #. type: verbatim
6249 #: ../fish/guestfish-actions.pod:806
6250 #, no-wrap
6251 msgid ""
6252 " dd src dest\n"
6253 "\n"
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
6258 msgid ""
6259 "This command copies from one source device or file C<src> to another "
6260 "destination device or file C<dest>.  Normally you would use this to copy to "
6261 "or from a device or partition, for example to duplicate a filesystem."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:813
6266 msgid ""
6267 "If the destination is a device, it must be as large or larger than the "
6268 "source file or device, otherwise the copy will fail.  This command cannot do "
6269 "partial copies (see L</copy-size>)."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:817
6274 msgid "df"
6275 msgstr "df"
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:819
6279 #, no-wrap
6280 msgid ""
6281 " df\n"
6282 "\n"
6283 msgstr ""
6284 " df\n"
6285 "\n"
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
6289 msgid "This command runs the C<df> command to report disk space used."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
6294 msgid ""
6295 "This command is mostly useful for interactive sessions.  It is I<not> "
6296 "intended that you try to parse the output string.  Use L</statvfs> from "
6297 "programs."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:827
6302 msgid "df-h"
6303 msgstr "df-h"
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:829
6307 #, no-wrap
6308 msgid ""
6309 " df-h\n"
6310 "\n"
6311 msgstr ""
6312 " df-h\n"
6313 "\n"
6314
6315 #. type: textblock
6316 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
6317 msgid ""
6318 "This command runs the C<df -h> command to report disk space used in human-"
6319 "readable format."
6320 msgstr ""
6321
6322 #. type: =head2
6323 #: ../fish/guestfish-actions.pod:838
6324 msgid "dmesg"
6325 msgstr "dmesg"
6326
6327 #. type: verbatim
6328 #: ../fish/guestfish-actions.pod:840
6329 #, no-wrap
6330 msgid ""
6331 " dmesg\n"
6332 "\n"
6333 msgstr ""
6334 " dmesg\n"
6335 "\n"
6336
6337 #. type: textblock
6338 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
6339 msgid ""
6340 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6341 "This is sometimes useful for extended debugging of problems."
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:846
6346 msgid ""
6347 "Another way to get the same information is to enable verbose messages with "
6348 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6349 "before running the program."
6350 msgstr ""
6351
6352 #. type: =head2
6353 #: ../fish/guestfish-actions.pod:851
6354 msgid "download"
6355 msgstr "download"
6356
6357 #. type: verbatim
6358 #: ../fish/guestfish-actions.pod:853
6359 #, no-wrap
6360 msgid ""
6361 " download remotefilename (filename|-)\n"
6362 "\n"
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
6367 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
6368 msgid ""
6369 "Download file C<remotefilename> and save it as C<filename> on the local "
6370 "machine."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
6375 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
6376 msgid "C<filename> can also be a named pipe."
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:860
6381 msgid "See also L</upload>, L</cat>."
6382 msgstr ""
6383
6384 #. type: =head2
6385 #: ../fish/guestfish-actions.pod:864
6386 msgid "download-offset"
6387 msgstr "download-offset"
6388
6389 #. type: verbatim
6390 #: ../fish/guestfish-actions.pod:866
6391 #, no-wrap
6392 msgid ""
6393 " download-offset remotefilename (filename|-) offset size\n"
6394 "\n"
6395 msgstr ""
6396
6397 #. type: textblock
6398 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
6399 msgid ""
6400 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6401 "region must be within the file or device)."
6402 msgstr ""
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:874
6406 msgid ""
6407 "Note that there is no limit on the amount of data that can be downloaded "
6408 "with this call, unlike with L</pread>, and this call always reads the full "
6409 "amount unless an error occurs."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:879
6414 msgid "See also L</download>, L</pread>."
6415 msgstr ""
6416
6417 #. type: =head2
6418 #: ../fish/guestfish-actions.pod:883
6419 msgid "drop-caches"
6420 msgstr ""
6421
6422 #. type: verbatim
6423 #: ../fish/guestfish-actions.pod:885
6424 #, no-wrap
6425 msgid ""
6426 " drop-caches whattodrop\n"
6427 "\n"
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6432 msgid ""
6433 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6434 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6435 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6440 msgid "Setting C<whattodrop> to 3 should drop everything."
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6445 msgid ""
6446 "This automatically calls L<sync(2)> before the operation, so that the "
6447 "maximum guest memory is freed."
6448 msgstr ""
6449
6450 #. type: =head2
6451 #: ../fish/guestfish-actions.pod:897
6452 msgid "du"
6453 msgstr "du"
6454
6455 #. type: verbatim
6456 #: ../fish/guestfish-actions.pod:899
6457 #, no-wrap
6458 msgid ""
6459 " du path\n"
6460 "\n"
6461 msgstr ""
6462 " du шлях\n"
6463 "\n"
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6467 msgid ""
6468 "This command runs the C<du -s> command to estimate file space usage for "
6469 "C<path>."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6474 msgid ""
6475 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6476 "estimate includes the contents of the directory and all subdirectories "
6477 "(recursively)."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6482 msgid ""
6483 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6484 msgstr ""
6485
6486 #. type: =head2
6487 #: ../fish/guestfish-actions.pod:911
6488 msgid "e2fsck-f"
6489 msgstr "e2fsck-f"
6490
6491 #. type: verbatim
6492 #: ../fish/guestfish-actions.pod:913
6493 #, no-wrap
6494 msgid ""
6495 " e2fsck-f device\n"
6496 "\n"
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6501 msgid ""
6502 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6503 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6504 "clean (I<-f>)."
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:919
6509 msgid ""
6510 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6511 "should use L</fsck>."
6512 msgstr ""
6513
6514 #. type: =head2
6515 #: ../fish/guestfish-actions.pod:922
6516 msgid "echo-daemon"
6517 msgstr ""
6518
6519 #. type: verbatim
6520 #: ../fish/guestfish-actions.pod:924
6521 #, no-wrap
6522 msgid ""
6523 " echo-daemon 'words ...'\n"
6524 "\n"
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6529 msgid ""
6530 "This command concatenates the list of C<words> passed with single spaces "
6531 "between them and returns the resulting string."
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6536 msgid "You can use this command to test the connection through to the daemon."
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:931
6541 msgid "See also L</ping-daemon>."
6542 msgstr ""
6543
6544 #. type: =head2
6545 #: ../fish/guestfish-actions.pod:933
6546 msgid "egrep"
6547 msgstr "egrep"
6548
6549 #. type: verbatim
6550 #: ../fish/guestfish-actions.pod:935
6551 #, no-wrap
6552 msgid ""
6553 " egrep regex path\n"
6554 "\n"
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6559 msgid ""
6560 "This calls the external C<egrep> program and returns the matching lines."
6561 msgstr ""
6562
6563 #. type: =head2
6564 #: ../fish/guestfish-actions.pod:943
6565 msgid "egrepi"
6566 msgstr "egrepi"
6567
6568 #. type: verbatim
6569 #: ../fish/guestfish-actions.pod:945
6570 #, no-wrap
6571 msgid ""
6572 " egrepi regex path\n"
6573 "\n"
6574 msgstr ""
6575
6576 #. type: textblock
6577 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6578 msgid ""
6579 "This calls the external C<egrep -i> program and returns the matching lines."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../fish/guestfish-actions.pod:953
6584 msgid "equal"
6585 msgstr "equal"
6586
6587 #. type: verbatim
6588 #: ../fish/guestfish-actions.pod:955
6589 #, no-wrap
6590 msgid ""
6591 " equal file1 file2\n"
6592 "\n"
6593 msgstr ""
6594 " equal файл1 файл2\n"
6595 "\n"
6596
6597 #. type: textblock
6598 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6599 msgid ""
6600 "This compares the two files C<file1> and C<file2> and returns true if their "
6601 "content is exactly equal, or false otherwise."
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6606 msgid "The external L<cmp(1)> program is used for the comparison."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:962
6611 msgid "exists"
6612 msgstr "exists"
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:964
6616 #, no-wrap
6617 msgid ""
6618 " exists path\n"
6619 "\n"
6620 msgstr ""
6621 " exists шлях\n"
6622 "\n"
6623
6624 #. type: textblock
6625 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6626 msgid ""
6627 "This returns C<true> if and only if there is a file, directory (or anything) "
6628 "with the given C<path> name."
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:969
6633 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6634 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6635
6636 #. type: =head2
6637 #: ../fish/guestfish-actions.pod:971
6638 msgid "fallocate"
6639 msgstr "fallocate"
6640
6641 #. type: verbatim
6642 #: ../fish/guestfish-actions.pod:973
6643 #, no-wrap
6644 msgid ""
6645 " fallocate path len\n"
6646 "\n"
6647 msgstr ""
6648 " fallocate шлях довжина\n"
6649 "\n"
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6653 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
6654 msgid ""
6655 "This command preallocates a file (containing zero bytes) named C<path> of "
6656 "size C<len> bytes.  If the file exists already, it is overwritten."
6657 msgstr ""
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1504
6661 msgid ""
6662 "Do not confuse this with the guestfish-specific C<alloc> command which "
6663 "allocates a file in the host and attaches it as a device."
6664 msgstr ""
6665
6666 #. type: textblock
6667 #: ../fish/guestfish-actions.pod:983
6668 msgid ""
6669 "This function is deprecated.  In new code, use the L</fallocate64> call "
6670 "instead."
6671 msgstr ""
6672
6673 #. type: =head2
6674 #: ../fish/guestfish-actions.pod:990
6675 msgid "fallocate64"
6676 msgstr "fallocate64"
6677
6678 #. type: verbatim
6679 #: ../fish/guestfish-actions.pod:992
6680 #, no-wrap
6681 msgid ""
6682 " fallocate64 path len\n"
6683 "\n"
6684 msgstr ""
6685 " fallocate64 шлях довжина\n"
6686 "\n"
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:998
6690 msgid ""
6691 "Note that this call allocates disk blocks for the file.  To create a sparse "
6692 "file use L</truncate-size> instead."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:1001
6697 msgid ""
6698 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6699 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6700 "maximum size of files created through that call to 1GB."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6705 msgid ""
6706 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6707 "commands which create a file in the host and attach it as a device."
6708 msgstr ""
6709
6710 #. type: =head2
6711 #: ../fish/guestfish-actions.pod:1010
6712 msgid "fgrep"
6713 msgstr "fgrep"
6714
6715 #. type: verbatim
6716 #: ../fish/guestfish-actions.pod:1012
6717 #, no-wrap
6718 msgid ""
6719 " fgrep pattern path\n"
6720 "\n"
6721 msgstr ""
6722 " fgrep шаблон шлях\n"
6723 "\n"
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6727 msgid ""
6728 "This calls the external C<fgrep> program and returns the matching lines."
6729 msgstr ""
6730
6731 #. type: =head2
6732 #: ../fish/guestfish-actions.pod:1020
6733 msgid "fgrepi"
6734 msgstr "fgrepi"
6735
6736 #. type: verbatim
6737 #: ../fish/guestfish-actions.pod:1022
6738 #, no-wrap
6739 msgid ""
6740 " fgrepi pattern path\n"
6741 "\n"
6742 msgstr ""
6743 " fgrepi шаблон шлях\n"
6744 "\n"
6745
6746 #. type: textblock
6747 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6748 msgid ""
6749 "This calls the external C<fgrep -i> program and returns the matching lines."
6750 msgstr ""
6751
6752 #. type: =head2
6753 #: ../fish/guestfish-actions.pod:1030
6754 msgid "file"
6755 msgstr "file"
6756
6757 #. type: verbatim
6758 #: ../fish/guestfish-actions.pod:1032
6759 #, no-wrap
6760 msgid ""
6761 " file path\n"
6762 "\n"
6763 msgstr ""
6764 " file шлях\n"
6765 "\n"
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6769 msgid ""
6770 "This call uses the standard L<file(1)> command to determine the type or "
6771 "contents of the file."
6772 msgstr ""
6773
6774 #. type: textblock
6775 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6776 msgid ""
6777 "This call will also transparently look inside various types of compressed "
6778 "file."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6783 msgid ""
6784 "The exact command which runs is C<file -zb path>.  Note in particular that "
6785 "the filename is not prepended to the output (the I<-b> option)."
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6790 msgid ""
6791 "The output depends on the output of the underlying L<file(1)> command and it "
6792 "can change in future in ways beyond our control.  In other words, the output "
6793 "is not guaranteed by the ABI."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1048
6798 msgid ""
6799 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6800 "(etc), L</is-zero>."
6801 msgstr ""
6802
6803 #. type: =head2
6804 #: ../fish/guestfish-actions.pod:1051
6805 msgid "file-architecture"
6806 msgstr "file-architecture"
6807
6808 #. type: verbatim
6809 #: ../fish/guestfish-actions.pod:1053
6810 #, no-wrap
6811 msgid ""
6812 " file-architecture filename\n"
6813 "\n"
6814 msgstr ""
6815 " file-architecture назва_файла\n"
6816 "\n"
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6820 msgid ""
6821 "This detects the architecture of the binary C<filename>, and returns it if "
6822 "known."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6827 msgid "Currently defined architectures are:"
6828 msgstr ""
6829
6830 #. type: =item
6831 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6832 msgid "\"i386\""
6833 msgstr "\"i386\""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6837 msgid ""
6838 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6839 "irrespective of the precise processor requirements of the binary."
6840 msgstr ""
6841
6842 #. type: =item
6843 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6844 msgid "\"x86_64\""
6845 msgstr "\"x86_64\""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6849 msgid "64 bit x86-64."
6850 msgstr ""
6851
6852 #. type: =item
6853 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6854 msgid "\"sparc\""
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6859 msgid "32 bit SPARC."
6860 msgstr ""
6861
6862 #. type: =item
6863 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6864 msgid "\"sparc64\""
6865 msgstr ""
6866
6867 #. type: textblock
6868 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6869 msgid "64 bit SPARC V9 and above."
6870 msgstr ""
6871
6872 #. type: =item
6873 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6874 msgid "\"ia64\""
6875 msgstr "\"ia64\""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6879 msgid "Intel Itanium."
6880 msgstr "Intel Itanium."
6881
6882 #. type: =item
6883 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6884 msgid "\"ppc\""
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6889 msgid "32 bit Power PC."
6890 msgstr ""
6891
6892 #. type: =item
6893 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6894 msgid "\"ppc64\""
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6899 msgid "64 bit Power PC."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6904 msgid "Libguestfs may return other architecture strings in future."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6909 msgid "The function works on at least the following types of files:"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6914 msgid "many types of Un*x and Linux binary"
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6919 msgid "many types of Un*x and Linux shared library"
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6924 msgid "Windows Win32 and Win64 binaries"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6929 msgid "Windows Win32 and Win64 DLLs"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6934 msgid "Win32 binaries and DLLs return C<i386>."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6939 msgid "Win64 binaries and DLLs return C<x86_64>."
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6944 msgid "Linux kernel modules"
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6949 msgid "Linux new-style initrd images"
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6954 msgid "some non-x86 Linux vmlinuz kernels"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6959 msgid "What it can't do currently:"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6964 msgid "static libraries (libfoo.a)"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6969 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6974 msgid "x86 Linux vmlinuz kernels"
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6979 msgid ""
6980 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6981 "compressed code, and are horribly hard to unpack.  If you want to find the "
6982 "architecture of a kernel, use the architecture of the associated initrd or "
6983 "kernel module(s) instead."
6984 msgstr ""
6985
6986 #. type: =head2
6987 #: ../fish/guestfish-actions.pod:1156
6988 msgid "filesize"
6989 msgstr "filesize"
6990
6991 #. type: verbatim
6992 #: ../fish/guestfish-actions.pod:1158
6993 #, no-wrap
6994 msgid ""
6995 " filesize file\n"
6996 "\n"
6997 msgstr ""
6998 " filesize файл\n"
6999 "\n"
7000
7001 #. type: textblock
7002 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
7003 msgid "This command returns the size of C<file> in bytes."
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:1162
7008 msgid ""
7009 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7010 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7011 msgstr ""
7012
7013 #. type: =head2
7014 #: ../fish/guestfish-actions.pod:1166
7015 msgid "fill"
7016 msgstr "fill"
7017
7018 #. type: verbatim
7019 #: ../fish/guestfish-actions.pod:1168
7020 #, no-wrap
7021 msgid ""
7022 " fill c len path\n"
7023 "\n"
7024 msgstr ""
7025
7026 #. type: textblock
7027 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
7028 msgid ""
7029 "This command creates a new file called C<path>.  The initial content of the "
7030 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7031 "[0..255]>."
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1174
7036 msgid ""
7037 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7038 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7039 "L</fill-pattern>."
7040 msgstr ""
7041
7042 #. type: =head2
7043 #: ../fish/guestfish-actions.pod:1179
7044 msgid "fill-pattern"
7045 msgstr "fill-pattern"
7046
7047 #. type: verbatim
7048 #: ../fish/guestfish-actions.pod:1181
7049 #, no-wrap
7050 msgid ""
7051 " fill-pattern pattern len path\n"
7052 "\n"
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../fish/guestfish-actions.pod:1183
7057 msgid ""
7058 "This function is like L</fill> except that it creates a new file of length "
7059 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7060 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7061 "bytes."
7062 msgstr ""
7063
7064 #. type: =head2
7065 #: ../fish/guestfish-actions.pod:1188
7066 msgid "find"
7067 msgstr "find"
7068
7069 #. type: verbatim
7070 #: ../fish/guestfish-actions.pod:1190
7071 #, no-wrap
7072 msgid ""
7073 " find directory\n"
7074 "\n"
7075 msgstr ""
7076 " find каталог\n"
7077 "\n"
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
7081 msgid ""
7082 "This command lists out all files and directories, recursively, starting at "
7083 "C<directory>.  It is essentially equivalent to running the shell command "
7084 "C<find directory -print> but some post-processing happens on the output, "
7085 "described below."
7086 msgstr ""
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7090 msgid ""
7091 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7092 "structure was:"
7093 msgstr ""
7094
7095 #. type: verbatim
7096 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
7097 #, no-wrap
7098 msgid ""
7099 " /tmp/a\n"
7100 " /tmp/b\n"
7101 " /tmp/c/d\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:1204
7107 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7108 msgstr ""
7109
7110 #. type: verbatim
7111 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
7112 #, no-wrap
7113 msgid ""
7114 " a\n"
7115 " b\n"
7116 " c\n"
7117 " c/d\n"
7118 "\n"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7123 msgid "If C<directory> is not a directory, then this command returns an error."
7124 msgstr ""
7125
7126 #. type: textblock
7127 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
7128 msgid "The returned list is sorted."
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../fish/guestfish-actions.pod:1217
7133 msgid "See also L</find0>."
7134 msgstr "Див. також L</find0>."
7135
7136 #. type: =head2
7137 #: ../fish/guestfish-actions.pod:1222
7138 msgid "find0"
7139 msgstr "find0"
7140
7141 #. type: verbatim
7142 #: ../fish/guestfish-actions.pod:1224
7143 #, no-wrap
7144 msgid ""
7145 " find0 directory (files|-)\n"
7146 "\n"
7147 msgstr ""
7148 " find0 каталог (файли|-)\n"
7149 "\n"
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
7153 msgid ""
7154 "This command lists out all files and directories, recursively, starting at "
7155 "C<directory>, placing the resulting list in the external file called "
7156 "C<files>."
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1230
7161 msgid ""
7162 "This command works the same way as L</find> with the following exceptions:"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
7167 msgid "The resulting list is written to an external file."
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
7172 msgid ""
7173 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7174 "L<find(1)> option I<-print0>."
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7179 msgid "This command is not limited in the number of names that it can return."
7180 msgstr ""
7181
7182 #. type: textblock
7183 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7184 msgid "The result list is not sorted."
7185 msgstr ""
7186
7187 #. type: =head2
7188 #: ../fish/guestfish-actions.pod:1257
7189 msgid "findfs-label"
7190 msgstr "findfs-label"
7191
7192 #. type: verbatim
7193 #: ../fish/guestfish-actions.pod:1259
7194 #, no-wrap
7195 msgid ""
7196 " findfs-label label\n"
7197 "\n"
7198 msgstr ""
7199 " findfs-label мітка\n"
7200 "\n"
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
7204 msgid ""
7205 "This command searches the filesystems and returns the one which has the "
7206 "given label.  An error is returned if no such filesystem can be found."
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:1265
7211 msgid "To find the label of a filesystem, use L</vfs-label>."
7212 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7213
7214 #. type: =head2
7215 #: ../fish/guestfish-actions.pod:1267
7216 msgid "findfs-uuid"
7217 msgstr "findfs-uuid"
7218
7219 #. type: verbatim
7220 #: ../fish/guestfish-actions.pod:1269
7221 #, no-wrap
7222 msgid ""
7223 " findfs-uuid uuid\n"
7224 "\n"
7225 msgstr ""
7226 " findfs-uuid uuid\n"
7227 "\n"
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
7231 msgid ""
7232 "This command searches the filesystems and returns the one which has the "
7233 "given UUID.  An error is returned if no such filesystem can be found."
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1275
7238 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7239 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7240
7241 #. type: =head2
7242 #: ../fish/guestfish-actions.pod:1277
7243 msgid "fsck"
7244 msgstr "fsck"
7245
7246 #. type: verbatim
7247 #: ../fish/guestfish-actions.pod:1279
7248 #, no-wrap
7249 msgid ""
7250 " fsck fstype device\n"
7251 "\n"
7252 msgstr ""
7253 " fsck тип_файлової_системи пристрій\n"
7254 "\n"
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
7258 msgid ""
7259 "This runs the filesystem checker (fsck) on C<device> which should have "
7260 "filesystem type C<fstype>."
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
7265 msgid ""
7266 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7267 "codes from C<fsck>."
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
7272 msgid "Multiple status codes can be summed together."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
7277 msgid ""
7278 "A non-zero return code can mean \"success\", for example if errors have been "
7279 "corrected on the filesystem."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7284 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7289 msgid ""
7290 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7291 msgstr ""
7292
7293 #. type: =head2
7294 #: ../fish/guestfish-actions.pod:1309
7295 msgid "get-append"
7296 msgstr "get-append"
7297
7298 #. type: verbatim
7299 #: ../fish/guestfish-actions.pod:1311
7300 #, no-wrap
7301 msgid ""
7302 " get-append\n"
7303 "\n"
7304 msgstr ""
7305 " get-append\n"
7306 "\n"
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
7310 msgid ""
7311 "Return the additional kernel options which are added to the guest kernel "
7312 "command line."
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
7317 msgid "If C<NULL> then no options are added."
7318 msgstr ""
7319
7320 #. type: =head2
7321 #: ../fish/guestfish-actions.pod:1318
7322 msgid "get-attach-method"
7323 msgstr "get-attach-method"
7324
7325 #. type: verbatim
7326 #: ../fish/guestfish-actions.pod:1320
7327 #, no-wrap
7328 msgid ""
7329 " get-attach-method\n"
7330 "\n"
7331 msgstr ""
7332 " get-attach-method\n"
7333 "\n"
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1322
7337 msgid "Return the current attach method.  See L</set-attach-method>."
7338 msgstr ""
7339
7340 #. type: =head2
7341 #: ../fish/guestfish-actions.pod:1324
7342 msgid "get-autosync"
7343 msgstr "get-autosync"
7344
7345 #. type: verbatim
7346 #: ../fish/guestfish-actions.pod:1326
7347 #, no-wrap
7348 msgid ""
7349 " get-autosync\n"
7350 "\n"
7351 msgstr ""
7352 " get-autosync\n"
7353 "\n"
7354
7355 #. type: textblock
7356 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
7357 msgid "Get the autosync flag."
7358 msgstr ""
7359
7360 #. type: =head2
7361 #: ../fish/guestfish-actions.pod:1330
7362 msgid "get-direct"
7363 msgstr "get-direct"
7364
7365 #. type: verbatim
7366 #: ../fish/guestfish-actions.pod:1332
7367 #, no-wrap
7368 msgid ""
7369 " get-direct\n"
7370 "\n"
7371 msgstr ""
7372 " get-direct\n"
7373 "\n"
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
7377 msgid "Return the direct appliance mode flag."
7378 msgstr ""
7379
7380 #. type: =head2
7381 #: ../fish/guestfish-actions.pod:1336
7382 msgid "get-e2label"
7383 msgstr "get-e2label"
7384
7385 #. type: verbatim
7386 #: ../fish/guestfish-actions.pod:1338
7387 #, no-wrap
7388 msgid ""
7389 " get-e2label device\n"
7390 "\n"
7391 msgstr ""
7392 " get-e2label пристрій\n"
7393 "\n"
7394
7395 #. type: textblock
7396 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:1999
7397 msgid ""
7398 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1343
7403 msgid ""
7404 "This function is deprecated.  In new code, use the L</vfs_label> call "
7405 "instead."
7406 msgstr ""
7407
7408 #. type: =head2
7409 #: ../fish/guestfish-actions.pod:1350
7410 msgid "get-e2uuid"
7411 msgstr "get-e2uuid"
7412
7413 #. type: verbatim
7414 #: ../fish/guestfish-actions.pod:1352
7415 #, no-wrap
7416 msgid ""
7417 " get-e2uuid device\n"
7418 "\n"
7419 msgstr ""
7420 " get-e2uuid пристрій\n"
7421 "\n"
7422
7423 #. type: textblock
7424 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2020
7425 msgid ""
7426 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../fish/guestfish-actions.pod:1357
7431 msgid ""
7432 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7433 msgstr ""
7434
7435 #. type: =head2
7436 #: ../fish/guestfish-actions.pod:1364
7437 msgid "get-memsize"
7438 msgstr "get-memsize"
7439
7440 #. type: verbatim
7441 #: ../fish/guestfish-actions.pod:1366
7442 #, no-wrap
7443 msgid ""
7444 " get-memsize\n"
7445 "\n"
7446 msgstr ""
7447 " get-memsize\n"
7448 "\n"
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
7452 msgid ""
7453 "This gets the memory size in megabytes allocated to the qemu subprocess."
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:1371
7458 msgid ""
7459 "If L</set-memsize> was not called on this handle, and if "
7460 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7461 "value for memsize."
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
7466 #: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265
7467 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139
7468 #: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
7469 msgid ""
7470 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../fish/guestfish-actions.pod:1378
7475 msgid "get-network"
7476 msgstr "get-network"
7477
7478 #. type: verbatim
7479 #: ../fish/guestfish-actions.pod:1380
7480 #, no-wrap
7481 msgid ""
7482 " get-network\n"
7483 "\n"
7484 msgstr ""
7485 " get-network\n"
7486 "\n"
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
7490 msgid "This returns the enable network flag."
7491 msgstr ""
7492
7493 #. type: =head2
7494 #: ../fish/guestfish-actions.pod:1384
7495 msgid "get-path"
7496 msgstr "get-path"
7497
7498 #. type: verbatim
7499 #: ../fish/guestfish-actions.pod:1386
7500 #, no-wrap
7501 msgid ""
7502 " get-path\n"
7503 "\n"
7504 msgstr ""
7505 " get-path\n"
7506 "\n"
7507
7508 #. type: textblock
7509 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
7510 msgid "Return the current search path."
7511 msgstr ""
7512
7513 #. type: textblock
7514 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
7515 msgid ""
7516 "This is always non-NULL.  If it wasn't set already, then this will return "
7517 "the default path."
7518 msgstr ""
7519
7520 #. type: =head2
7521 #: ../fish/guestfish-actions.pod:1393
7522 msgid "get-pgroup"
7523 msgstr ""
7524
7525 #. type: verbatim
7526 #: ../fish/guestfish-actions.pod:1395
7527 #, no-wrap
7528 msgid ""
7529 " get-pgroup\n"
7530 "\n"
7531 msgstr ""
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
7535 msgid "This returns the process group flag."
7536 msgstr ""
7537
7538 #. type: =head2
7539 #: ../fish/guestfish-actions.pod:1399
7540 msgid "get-pid"
7541 msgstr "get-pid"
7542
7543 #. type: =head2
7544 #: ../fish/guestfish-actions.pod:1401
7545 msgid "pid"
7546 msgstr ""
7547
7548 #. type: verbatim
7549 #: ../fish/guestfish-actions.pod:1403
7550 #, no-wrap
7551 msgid ""
7552 " get-pid\n"
7553 "\n"
7554 msgstr ""
7555 " get-pid\n"
7556 "\n"
7557
7558 #. type: textblock
7559 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
7560 msgid ""
7561 "Return the process ID of the qemu subprocess.  If there is no qemu "
7562 "subprocess, then this will return an error."
7563 msgstr ""
7564
7565 #. type: textblock
7566 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
7567 msgid "This is an internal call used for debugging and testing."
7568 msgstr ""
7569
7570 #. type: =head2
7571 #: ../fish/guestfish-actions.pod:1410
7572 msgid "get-qemu"
7573 msgstr "get-qemu"
7574
7575 #. type: verbatim
7576 #: ../fish/guestfish-actions.pod:1412
7577 #, no-wrap
7578 msgid ""
7579 " get-qemu\n"
7580 "\n"
7581 msgstr ""
7582 " get-qemu\n"
7583 "\n"
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
7587 msgid "Return the current qemu binary."
7588 msgstr ""
7589
7590 #. type: textblock
7591 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
7592 msgid ""
7593 "This is always non-NULL.  If it wasn't set already, then this will return "
7594 "the default qemu binary name."
7595 msgstr ""
7596
7597 #. type: =head2
7598 #: ../fish/guestfish-actions.pod:1419
7599 msgid "get-recovery-proc"
7600 msgstr "get-recovery-proc"
7601
7602 #. type: verbatim
7603 #: ../fish/guestfish-actions.pod:1421
7604 #, no-wrap
7605 msgid ""
7606 " get-recovery-proc\n"
7607 "\n"
7608 msgstr ""
7609 " get-recovery-proc\n"
7610 "\n"
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
7614 msgid "Return the recovery process enabled flag."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:1425
7619 msgid "get-selinux"
7620 msgstr "get-selinux"
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:1427
7624 #, no-wrap
7625 msgid ""
7626 " get-selinux\n"
7627 "\n"
7628 msgstr ""
7629 " get-selinux\n"
7630 "\n"
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1429
7634 msgid ""
7635 "This returns the current setting of the selinux flag which is passed to the "
7636 "appliance at boot time.  See L</set-selinux>."
7637 msgstr ""
7638
7639 #. type: =head2
7640 #: ../fish/guestfish-actions.pod:1435
7641 msgid "get-state"
7642 msgstr "get-state"
7643
7644 #. type: verbatim
7645 #: ../fish/guestfish-actions.pod:1437
7646 #, no-wrap
7647 msgid ""
7648 " get-state\n"
7649 "\n"
7650 msgstr ""
7651 " get-state\n"
7652 "\n"
7653
7654 #. type: textblock
7655 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
7656 msgid ""
7657 "This returns the current state as an opaque integer.  This is only useful "
7658 "for printing debug and internal error messages."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362
7663 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418
7664 #: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154
7665 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463
7666 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
7667 msgid "For more information on states, see L<guestfs(3)>."
7668 msgstr ""
7669
7670 #. type: =head2
7671 #: ../fish/guestfish-actions.pod:1444
7672 msgid "get-trace"
7673 msgstr "get-trace"
7674
7675 #. type: verbatim
7676 #: ../fish/guestfish-actions.pod:1446
7677 #, no-wrap
7678 msgid ""
7679 " get-trace\n"
7680 "\n"
7681 msgstr ""
7682 " get-trace\n"
7683 "\n"
7684
7685 #. type: textblock
7686 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
7687 msgid "Return the command trace flag."
7688 msgstr ""
7689
7690 #. type: =head2
7691 #: ../fish/guestfish-actions.pod:1450
7692 msgid "get-umask"
7693 msgstr "get-umask"
7694
7695 #. type: verbatim
7696 #: ../fish/guestfish-actions.pod:1452
7697 #, no-wrap
7698 msgid ""
7699 " get-umask\n"
7700 "\n"
7701 msgstr ""
7702 " get-umask\n"
7703 "\n"
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1454
7707 msgid ""
7708 "Return the current umask.  By default the umask is C<022> unless it has been "
7709 "set by calling L</umask>."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:1457
7714 msgid "get-verbose"
7715 msgstr "get-verbose"
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:1459
7719 #, no-wrap
7720 msgid ""
7721 " get-verbose\n"
7722 "\n"
7723 msgstr ""
7724 " get-verbose\n"
7725 "\n"
7726
7727 #. type: textblock
7728 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
7729 msgid "This returns the verbose messages flag."
7730 msgstr ""
7731
7732 #. type: =head2
7733 #: ../fish/guestfish-actions.pod:1463
7734 msgid "getcon"
7735 msgstr "getcon"
7736
7737 #. type: verbatim
7738 #: ../fish/guestfish-actions.pod:1465
7739 #, no-wrap
7740 msgid ""
7741 " getcon\n"
7742 "\n"
7743 msgstr ""
7744 " getcon\n"
7745 "\n"
7746
7747 #. type: textblock
7748 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
7749 msgid "This gets the SELinux security context of the daemon."
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../fish/guestfish-actions.pod:1469
7754 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7755 msgstr ""
7756
7757 #. type: =head2
7758 #: ../fish/guestfish-actions.pod:1472
7759 msgid "getxattr"
7760 msgstr "getxattr"
7761
7762 #. type: verbatim
7763 #: ../fish/guestfish-actions.pod:1474
7764 #, no-wrap
7765 msgid ""
7766 " getxattr path name\n"
7767 "\n"
7768 msgstr ""
7769 " getxattr шлях назва\n"
7770 "\n"
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:1476
7774 msgid ""
7775 "Get a single extended attribute from file C<path> named C<name>.  This call "
7776 "follows symlinks.  If you want to lookup an extended attribute for the "
7777 "symlink itself, use L</lgetxattr>."
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
7782 msgid ""
7783 "Normally it is better to get all extended attributes from a file in one go "
7784 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7785 "buggy and do not provide a way to list out attributes.  For these "
7786 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7787 "attributes you want in advance and call this function."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
7792 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
7793 msgid ""
7794 "Extended attribute values are blobs of binary data.  If there is no extended "
7795 "attribute named C<name>, this returns an error."
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1490
7800 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7801 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7802
7803 #. type: =head2
7804 #: ../fish/guestfish-actions.pod:1492
7805 msgid "getxattrs"
7806 msgstr "getxattrs"
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:1494
7810 #, no-wrap
7811 msgid ""
7812 " getxattrs path\n"
7813 "\n"
7814 msgstr ""
7815 " getxattrs шлях\n"
7816 "\n"
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
7820 msgid ""
7821 "This call lists the extended attributes of the file or directory C<path>."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
7826 msgid ""
7827 "At the system call level, this is a combination of the L<listxattr(2)> and "
7828 "L<getxattr(2)> calls."
7829 msgstr ""
7830
7831 #. type: textblock
7832 #: ../fish/guestfish-actions.pod:1502
7833 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7834 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7835
7836 #. type: =head2
7837 #: ../fish/guestfish-actions.pod:1504
7838 msgid "glob-expand"
7839 msgstr "glob-expand"
7840
7841 #. type: verbatim
7842 #: ../fish/guestfish-actions.pod:1506
7843 #, no-wrap
7844 msgid ""
7845 " glob-expand pattern\n"
7846 "\n"
7847 msgstr ""
7848 " glob-expand шаблон\n"
7849 "\n"
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
7853 msgid ""
7854 "This command searches for all the pathnames matching C<pattern> according to "
7855 "the wildcard expansion rules used by the shell."
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
7860 msgid ""
7861 "If no paths match, then this returns an empty list (note: not an error)."
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
7866 msgid ""
7867 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7868 "GLOB_BRACE>.  See that manual page for more details."
7869 msgstr ""
7870
7871 #. type: =head2
7872 #: ../fish/guestfish-actions.pod:1519
7873 msgid "grep"
7874 msgstr "grep"
7875
7876 #. type: verbatim
7877 #: ../fish/guestfish-actions.pod:1521
7878 #, no-wrap
7879 msgid ""
7880 " grep regex path\n"
7881 "\n"
7882 msgstr ""
7883 " grepi формальний_вираз шлях\n"
7884 "\n"
7885
7886 #. type: textblock
7887 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
7888 msgid "This calls the external C<grep> program and returns the matching lines."
7889 msgstr ""
7890
7891 #. type: =head2
7892 #: ../fish/guestfish-actions.pod:1529
7893 msgid "grepi"
7894 msgstr "grepi"
7895
7896 #. type: verbatim
7897 #: ../fish/guestfish-actions.pod:1531
7898 #, no-wrap
7899 msgid ""
7900 " grepi regex path\n"
7901 "\n"
7902 msgstr ""
7903 " grepi формальний_вираз шлях\n"
7904 "\n"
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
7908 msgid ""
7909 "This calls the external C<grep -i> program and returns the matching lines."
7910 msgstr ""
7911
7912 #. type: =head2
7913 #: ../fish/guestfish-actions.pod:1539
7914 msgid "grub-install"
7915 msgstr "grub-install"
7916
7917 #. type: verbatim
7918 #: ../fish/guestfish-actions.pod:1541
7919 #, no-wrap
7920 msgid ""
7921 " grub-install root device\n"
7922 "\n"
7923 msgstr ""
7924 " grub-install кореневий пристрій\n"
7925 "\n"
7926
7927 #. type: textblock
7928 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
7929 msgid ""
7930 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7931 "the root directory being C<root>."
7932 msgstr ""
7933
7934 #. type: textblock
7935 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
7936 msgid ""
7937 "Note: If grub-install reports the error \"No suitable drive was found in the "
7938 "generated device map.\" it may be that you need to create a C</boot/grub/"
7939 "device.map> file first that contains the mapping between grub device names "
7940 "and Linux device names.  It is usually sufficient to create a file "
7941 "containing:"
7942 msgstr ""
7943
7944 #. type: verbatim
7945 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
7946 #, no-wrap
7947 msgid ""
7948 " (hd0) /dev/vda\n"
7949 "\n"
7950 msgstr ""
7951
7952 #. type: textblock
7953 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
7954 msgid "replacing C</dev/vda> with the name of the installation device."
7955 msgstr ""
7956
7957 #. type: =head2
7958 #: ../fish/guestfish-actions.pod:1557
7959 msgid "head"
7960 msgstr "head"
7961
7962 #. type: verbatim
7963 #: ../fish/guestfish-actions.pod:1559
7964 #, no-wrap
7965 msgid ""
7966 " head path\n"
7967 "\n"
7968 msgstr ""
7969 " head шлях\n"
7970 "\n"
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
7974 msgid ""
7975 "This command returns up to the first 10 lines of a file as a list of strings."
7976 msgstr ""
7977
7978 #. type: =head2
7979 #: ../fish/guestfish-actions.pod:1567
7980 msgid "head-n"
7981 msgstr "head-n"
7982
7983 #. type: verbatim
7984 #: ../fish/guestfish-actions.pod:1569
7985 #, no-wrap
7986 msgid ""
7987 " head-n nrlines path\n"
7988 "\n"
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7993 msgid ""
7994 "If the parameter C<nrlines> is a positive number, this returns the first "
7995 "C<nrlines> lines of the file C<path>."
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
8000 msgid ""
8001 "If the parameter C<nrlines> is a negative number, this returns lines from "
8002 "the file C<path>, excluding the last C<nrlines> lines."
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643
8007 #: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
8008 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:1582
8013 msgid "hexdump"
8014 msgstr "hexdump"
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:1584
8018 #, no-wrap
8019 msgid ""
8020 " hexdump path\n"
8021 "\n"
8022 msgstr ""
8023 " hexdump шлях\n"
8024 "\n"
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
8028 msgid ""
8029 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8030 "readable, canonical hex dump of the file."
8031 msgstr ""
8032
8033 #. type: =head2
8034 #: ../fish/guestfish-actions.pod:1592
8035 msgid "initrd-cat"
8036 msgstr "initrd-cat"
8037
8038 #. type: verbatim
8039 #: ../fish/guestfish-actions.pod:1594
8040 #, no-wrap
8041 msgid ""
8042 " initrd-cat initrdpath filename\n"
8043 "\n"
8044 msgstr ""
8045 " initrd-cat шлях_initrd назва_файла\n"
8046 "\n"
8047
8048 #. type: textblock
8049 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
8050 msgid ""
8051 "This command unpacks the file C<filename> from the initrd file called "
8052 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8053 "character."
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
8058 msgid ""
8059 "For example, in guestfish you could use the following command to examine the "
8060 "boot script (usually called C</init>)  contained in a Linux initrd or "
8061 "initramfs image:"
8062 msgstr ""
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
8066 #, no-wrap
8067 msgid ""
8068 " initrd-cat /boot/initrd-<version>.img init\n"
8069 "\n"
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1606
8074 msgid "See also L</initrd-list>."
8075 msgstr "Див. також L</initrd-list>."
8076
8077 #. type: =head2
8078 #: ../fish/guestfish-actions.pod:1611
8079 msgid "initrd-list"
8080 msgstr "initrd-list"
8081
8082 #. type: verbatim
8083 #: ../fish/guestfish-actions.pod:1613
8084 #, no-wrap
8085 msgid ""
8086 " initrd-list path\n"
8087 "\n"
8088 msgstr ""
8089 " initrd-list шлях\n"
8090 "\n"
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
8094 msgid "This command lists out files contained in an initrd."
8095 msgstr ""
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
8099 msgid ""
8100 "The files are listed without any initial C</> character.  The files are "
8101 "listed in the order they appear (not necessarily alphabetical).  Directory "
8102 "names are listed as separate items."
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
8107 msgid ""
8108 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8109 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8110 "files)."
8111 msgstr ""
8112
8113 #. type: =head2
8114 #: ../fish/guestfish-actions.pod:1625
8115 msgid "inotify-add-watch"
8116 msgstr "inotify-add-watch"
8117
8118 #. type: verbatim
8119 #: ../fish/guestfish-actions.pod:1627
8120 #, no-wrap
8121 msgid ""
8122 " inotify-add-watch path mask\n"
8123 "\n"
8124 msgstr ""
8125 " inotify-add-watch шлях маска\n"
8126 "\n"
8127
8128 #. type: textblock
8129 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
8130 msgid "Watch C<path> for the events listed in C<mask>."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
8135 msgid ""
8136 "Note that if C<path> is a directory then events within that directory are "
8137 "watched, but this does I<not> happen recursively (in subdirectories)."
8138 msgstr ""
8139
8140 #. type: textblock
8141 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
8142 msgid ""
8143 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8144 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8145 msgstr ""
8146
8147 #. type: =head2
8148 #: ../fish/guestfish-actions.pod:1639
8149 msgid "inotify-close"
8150 msgstr "inotify-close"
8151
8152 #. type: verbatim
8153 #: ../fish/guestfish-actions.pod:1641
8154 #, no-wrap
8155 msgid ""
8156 " inotify-close\n"
8157 "\n"
8158 msgstr ""
8159 " inotify-close\n"
8160 "\n"
8161
8162 #. type: textblock
8163 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
8164 msgid ""
8165 "This closes the inotify handle which was previously opened by inotify_init.  "
8166 "It removes all watches, throws away any pending events, and deallocates all "
8167 "resources."
8168 msgstr ""
8169
8170 #. type: =head2
8171 #: ../fish/guestfish-actions.pod:1647
8172 msgid "inotify-files"
8173 msgstr "inotify-files"
8174
8175 #. type: verbatim
8176 #: ../fish/guestfish-actions.pod:1649
8177 #, no-wrap
8178 msgid ""
8179 " inotify-files\n"
8180 "\n"
8181 msgstr ""
8182 " inotify-files\n"
8183 "\n"
8184
8185 #. type: textblock
8186 #: ../fish/guestfish-actions.pod:1651
8187 msgid ""
8188 "This function is a helpful wrapper around L</inotify-read> which just "
8189 "returns a list of pathnames of objects that were touched.  The returned "
8190 "pathnames are sorted and deduplicated."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1655
8195 msgid "inotify-init"
8196 msgstr "inotify-init"
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1657
8200 #, no-wrap
8201 msgid ""
8202 " inotify-init maxevents\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
8208 msgid ""
8209 "This command creates a new inotify handle.  The inotify subsystem can be "
8210 "used to notify events which happen to objects in the guest filesystem."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1663
8215 msgid ""
8216 "C<maxevents> is the maximum number of events which will be queued up between "
8217 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8218 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8219 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8220 "but records the fact that it threw them away by setting a flag "
8221 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8222 msgstr ""
8223
8224 #. type: textblock
8225 #: ../fish/guestfish-actions.pod:1673
8226 msgid ""
8227 "Before any events are generated, you have to add some watches to the "
8228 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8229 "L</inotify-watch-all>."
8230 msgstr ""
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1679
8234 msgid ""
8235 "Queued up events should be read periodically by calling L</inotify-read> (or "
8236 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8237 "If you don't read the events out often enough then you risk the internal "
8238 "queue overflowing."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1686
8243 msgid ""
8244 "The handle should be closed after use by calling L</inotify-close>.  This "
8245 "also removes any watches automatically."
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
8250 msgid ""
8251 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8252 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8253 "that there is one global inotify handle per libguestfs instance."
8254 msgstr ""
8255
8256 #. type: =head2
8257 #: ../fish/guestfish-actions.pod:1695
8258 msgid "inotify-read"
8259 msgstr "inotify-read"
8260
8261 #. type: verbatim
8262 #: ../fish/guestfish-actions.pod:1697
8263 #, no-wrap
8264 msgid ""
8265 " inotify-read\n"
8266 "\n"
8267 msgstr ""
8268 " inotify-read\n"
8269 "\n"
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
8273 msgid ""
8274 "Return the complete queue of events that have happened since the previous "
8275 "read call."
8276 msgstr ""
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
8280 msgid "If no events have happened, this returns an empty list."
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8285 msgid ""
8286 "I<Note>: In order to make sure that all events have been read, you must call "
8287 "this function repeatedly until it returns an empty list.  The reason is that "
8288 "the call will read events up to the maximum appliance-to-host message size "
8289 "and leave remaining events in the queue."
8290 msgstr ""
8291
8292 #. type: =head2
8293 #: ../fish/guestfish-actions.pod:1710
8294 msgid "inotify-rm-watch"
8295 msgstr "inotify-rm-watch"
8296
8297 #. type: verbatim
8298 #: ../fish/guestfish-actions.pod:1712
8299 #, no-wrap
8300 msgid ""
8301 " inotify-rm-watch wd\n"
8302 "\n"
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1714
8307 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8308 msgstr ""
8309
8310 #. type: =head2
8311 #: ../fish/guestfish-actions.pod:1717
8312 msgid "inspect-get-arch"
8313 msgstr "inspect-get-arch"
8314
8315 #. type: verbatim
8316 #: ../fish/guestfish-actions.pod:1719
8317 #, no-wrap
8318 msgid ""
8319 " inspect-get-arch root\n"
8320 "\n"
8321 msgstr ""
8322 " inspect-get-arch корінь\n"
8323 "\n"
8324
8325 #. type: textblock
8326 #: ../fish/guestfish-actions.pod:1721
8327 msgid ""
8328 "This returns the architecture of the inspected operating system.  The "
8329 "possible return values are listed under L</file-architecture>."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
8334 msgid ""
8335 "If the architecture could not be determined, then the string C<unknown> is "
8336 "returned."
8337 msgstr ""
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811
8341 #: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902
8342 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047
8343 #: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082
8344 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154
8345 #: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180
8346 #: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200
8347 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308
8348 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598
8349 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
8350 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942
8351 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053
8352 #: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127
8353 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187
8354 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224
8355 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
8356 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
8357 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8358 msgstr ""
8359
8360 #. type: =head2
8361 #: ../fish/guestfish-actions.pod:1730
8362 msgid "inspect-get-distro"
8363 msgstr "inspect-get-distro"
8364
8365 #. type: verbatim
8366 #: ../fish/guestfish-actions.pod:1732
8367 #, no-wrap
8368 msgid ""
8369 " inspect-get-distro root\n"
8370 "\n"
8371 msgstr ""
8372 " inspect-get-distro корінь\n"
8373 "\n"
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
8377 msgid ""
8378 "This returns the distro (distribution) of the inspected operating system."
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
8383 msgid "Currently defined distros are:"
8384 msgstr ""
8385
8386 #. type: =item
8387 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
8388 msgid "\"archlinux\""
8389 msgstr "\"archlinux\""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
8393 msgid "Arch Linux."
8394 msgstr "Arch Linux."
8395
8396 #. type: =item
8397 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
8398 msgid "\"centos\""
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
8403 msgid "CentOS."
8404 msgstr ""
8405
8406 #. type: =item
8407 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
8408 msgid "\"debian\""
8409 msgstr "\"debian\""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
8413 msgid "Debian."
8414 msgstr "Debian."
8415
8416 #. type: =item
8417 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
8418 msgid "\"fedora\""
8419 msgstr "\"fedora\""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
8423 msgid "Fedora."
8424 msgstr "Fedora."
8425
8426 #. type: =item
8427 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
8428 msgid "\"gentoo\""
8429 msgstr "\"gentoo\""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
8433 msgid "Gentoo."
8434 msgstr "Gentoo."
8435
8436 #. type: =item
8437 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8438 msgid "\"linuxmint\""
8439 msgstr "\"linuxmint\""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
8443 msgid "Linux Mint."
8444 msgstr "Linux Mint."
8445
8446 #. type: =item
8447 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
8448 msgid "\"mandriva\""
8449 msgstr "\"mandriva\""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
8453 msgid "Mandriva."
8454 msgstr "Mandriva."
8455
8456 #. type: =item
8457 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
8458 msgid "\"meego\""
8459 msgstr "\"meego\""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
8463 msgid "MeeGo."
8464 msgstr "MeeGo."
8465
8466 #. type: =item
8467 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
8468 msgid "\"pardus\""
8469 msgstr "\"pardus\""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
8473 msgid "Pardus."
8474 msgstr "Pardus."
8475
8476 #. type: =item
8477 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
8478 msgid "\"redhat-based\""
8479 msgstr "\"redhat-based\""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
8483 msgid "Some Red Hat-derived distro."
8484 msgstr "Дистрибутив, що походить від Red Hat."
8485
8486 #. type: =item
8487 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
8488 msgid "\"rhel\""
8489 msgstr "\"rhel\""
8490
8491 #. type: textblock
8492 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
8493 msgid "Red Hat Enterprise Linux."
8494 msgstr ""
8495
8496 #. type: =item
8497 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
8498 msgid "\"scientificlinux\""
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
8503 msgid "Scientific Linux."
8504 msgstr ""
8505
8506 #. type: =item
8507 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
8508 msgid "\"slackware\""
8509 msgstr ""
8510
8511 #. type: textblock
8512 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
8513 msgid "Slackware."
8514 msgstr ""
8515
8516 #. type: =item
8517 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
8518 msgid "\"ubuntu\""
8519 msgstr "\"ubuntu\""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
8523 msgid "Ubuntu."
8524 msgstr "Ubuntu."
8525
8526 #. type: =item
8527 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881
8528 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674
8529 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
8530 msgid "\"unknown\""
8531 msgstr "\"unknown\""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
8535 msgid "The distro could not be determined."
8536 msgstr "Дистрибутив, тип якого не вдалося визначити."
8537
8538 #. type: =item
8539 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
8540 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
8541 msgid "\"windows\""
8542 msgstr "\"windows\""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
8546 msgid ""
8547 "Windows does not have distributions.  This string is returned if the OS type "
8548 "is Windows."
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887
8553 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685
8554 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
8555 msgid ""
8556 "Future versions of libguestfs may return other strings here.  The caller "
8557 "should be prepared to handle any string."
8558 msgstr ""
8559
8560 #. type: =head2
8561 #: ../fish/guestfish-actions.pod:1813
8562 msgid "inspect-get-drive-mappings"
8563 msgstr ""
8564
8565 #. type: verbatim
8566 #: ../fish/guestfish-actions.pod:1815
8567 #, no-wrap
8568 msgid ""
8569 " inspect-get-drive-mappings root\n"
8570 "\n"
8571 msgstr ""
8572
8573 #. type: textblock
8574 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
8575 msgid ""
8576 "This call is useful for Windows which uses a primitive system of assigning "
8577 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8578 "Windows Registry to find out how disks/partitions are mapped to drive "
8579 "letters, and returns a hash table as in the example below:"
8580 msgstr ""
8581
8582 #. type: verbatim
8583 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
8584 #, no-wrap
8585 msgid ""
8586 " C      =>     /dev/vda2\n"
8587 " E      =>     /dev/vdb1\n"
8588 " F      =>     /dev/vdc1\n"
8589 "\n"
8590 msgstr ""
8591
8592 #. type: textblock
8593 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
8594 msgid ""
8595 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8596 "and just contains the drive letter, without the customary colon separator "
8597 "character."
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
8602 msgid ""
8603 "In future we may support other operating systems that also used drive "
8604 "letters, but the keys for those might not be case insensitive and might be "
8605 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8606 "C<h1> etc."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8611 msgid ""
8612 "For Windows guests, currently only hard drive mappings are returned.  "
8613 "Removable disks (eg. DVD-ROMs) are ignored."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
8618 msgid ""
8619 "For guests that do not use drive mappings, or if the drive mappings could "
8620 "not be determined, this returns an empty hash table."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1842
8625 msgid ""
8626 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8627 "get-mountpoints>, L</inspect-get-filesystems>."
8628 msgstr ""
8629
8630 #. type: =head2
8631 #: ../fish/guestfish-actions.pod:1846
8632 msgid "inspect-get-filesystems"
8633 msgstr "inspect-get-filesystems"
8634
8635 #. type: verbatim
8636 #: ../fish/guestfish-actions.pod:1848
8637 #, no-wrap
8638 msgid ""
8639 " inspect-get-filesystems root\n"
8640 "\n"
8641 msgstr ""
8642 " inspect-get-filesystems корінь\n"
8643 "\n"
8644
8645 #. type: textblock
8646 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
8647 msgid ""
8648 "This returns a list of all the filesystems that we think are associated with "
8649 "this operating system.  This includes the root filesystem, other ordinary "
8650 "filesystems, and non-mounted devices like swap partitions."
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8655 msgid ""
8656 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8657 "to be shared between operating systems."
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:1858
8662 msgid ""
8663 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8664 "get-mountpoints>."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1861
8669 msgid "inspect-get-format"
8670 msgstr "inspect-get-format"
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1863
8674 #, no-wrap
8675 msgid ""
8676 " inspect-get-format root\n"
8677 "\n"
8678 msgstr ""
8679 " inspect-get-format корінь\n"
8680 "\n"
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
8684 msgid ""
8685 "This returns the format of the inspected operating system.  You can use it "
8686 "to detect install images, live CDs and similar."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
8691 msgid "Currently defined formats are:"
8692 msgstr ""
8693
8694 #. type: =item
8695 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
8696 msgid "\"installed\""
8697 msgstr "\"installed\""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
8701 msgid "This is an installed operating system."
8702 msgstr "Це встановлена операційна система."
8703
8704 #. type: =item
8705 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
8706 msgid "\"installer\""
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
8711 msgid ""
8712 "The disk image being inspected is not an installed operating system, but a "
8713 "I<bootable> install disk, live CD, or similar."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8718 msgid "The format of this disk image is not known."
8719 msgstr ""
8720
8721 #. type: =head2
8722 #: ../fish/guestfish-actions.pod:1892
8723 msgid "inspect-get-hostname"
8724 msgstr "inspect-get-hostname"
8725
8726 #. type: verbatim
8727 #: ../fish/guestfish-actions.pod:1894
8728 #, no-wrap
8729 msgid ""
8730 " inspect-get-hostname root\n"
8731 "\n"
8732 msgstr ""
8733 " inspect-get-hostname корінь\n"
8734 "\n"
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
8738 msgid ""
8739 "This function returns the hostname of the operating system as found by "
8740 "inspection of the guest's configuration files."
8741 msgstr ""
8742
8743 #. type: textblock
8744 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
8745 msgid ""
8746 "If the hostname could not be determined, then the string C<unknown> is "
8747 "returned."
8748 msgstr ""
8749
8750 #. type: =head2
8751 #: ../fish/guestfish-actions.pod:1904
8752 msgid "inspect-get-icon"
8753 msgstr ""
8754
8755 #. type: verbatim
8756 #: ../fish/guestfish-actions.pod:1906
8757 #, no-wrap
8758 msgid ""
8759 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8760 "\n"
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
8765 msgid ""
8766 "This function returns an icon corresponding to the inspected operating "
8767 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8768 "to PNG if necessary)."
8769 msgstr ""
8770
8771 #. type: textblock
8772 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
8773 msgid ""
8774 "If it was not possible to get an icon this function returns a zero-length "
8775 "(non-NULL) buffer.  I<Callers must check for this case>."
8776 msgstr ""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
8780 msgid ""
8781 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8782 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8783 "this file will be returned.  You can disable favicons by passing the "
8784 "optional C<favicon> boolean as false (default is true)."
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
8789 msgid ""
8790 "If finding the favicon fails, then we look in other places in the guest for "
8791 "a suitable icon."
8792 msgstr ""
8793
8794 #. type: textblock
8795 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
8796 msgid ""
8797 "If the optional C<highquality> boolean is true then only high quality icons "
8798 "are returned, which means only icons of high resolution with an alpha "
8799 "channel.  The default (false) is to return any icon we can, even if it is of "
8800 "substandard quality."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8805 msgid ""
8806 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8807 "before you call this, since it needs to read information from the guest "
8808 "filesystem during the call."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
8813 msgid ""
8814 "B<Security:> The icon data comes from the untrusted guest, and should be "
8815 "treated with caution.  PNG files have been known to contain exploits.  "
8816 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8817 "trying to process or display the icon."
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
8822 msgid ""
8823 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8824 "tries to return the largest, highest quality icon available.  The "
8825 "application must scale the icon to the required size."
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
8830 msgid ""
8831 "Extracting icons from Windows guests requires the external C<wrestool> "
8832 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8833 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8834 "installed separately."
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
8839 msgid ""
8840 "Operating system icons are usually trademarks.  Seek legal advice before "
8841 "using trademarks in applications."
8842 msgstr ""
8843
8844 #. type: =head2
8845 #: ../fish/guestfish-actions.pod:1970
8846 msgid "inspect-get-major-version"
8847 msgstr "inspect-get-major-version"
8848
8849 #. type: verbatim
8850 #: ../fish/guestfish-actions.pod:1972
8851 #, no-wrap
8852 msgid ""
8853 " inspect-get-major-version root\n"
8854 "\n"
8855 msgstr ""
8856 " inspect-get-major-version корінь\n"
8857 "\n"
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
8861 msgid ""
8862 "This returns the major version number of the inspected operating system."
8863 msgstr ""
8864
8865 #. type: textblock
8866 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
8867 msgid ""
8868 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8869 "popular public names used by the operating system.  Notably the operating "
8870 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8871 "1).  You can find out the real versions corresponding to releases of Windows "
8872 "by consulting Wikipedia or MSDN."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
8877 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
8878 msgid "If the version could not be determined, then C<0> is returned."
8879 msgstr ""
8880
8881 #. type: =head2
8882 #: ../fish/guestfish-actions.pod:1988
8883 msgid "inspect-get-minor-version"
8884 msgstr "inspect-get-minor-version"
8885
8886 #. type: verbatim
8887 #: ../fish/guestfish-actions.pod:1990
8888 #, no-wrap
8889 msgid ""
8890 " inspect-get-minor-version root\n"
8891 "\n"
8892 msgstr ""
8893 " inspect-get-minor-version корінь\n"
8894 "\n"
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
8898 msgid ""
8899 "This returns the minor version number of the inspected operating system."
8900 msgstr ""
8901
8902 #. type: textblock
8903 #: ../fish/guestfish-actions.pod:1997
8904 msgid ""
8905 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8906 "get-major-version>."
8907 msgstr ""
8908
8909 #. type: =head2
8910 #: ../fish/guestfish-actions.pod:2000
8911 msgid "inspect-get-mountpoints"
8912 msgstr "inspect-get-mountpoints"
8913
8914 #. type: verbatim
8915 #: ../fish/guestfish-actions.pod:2002
8916 #, no-wrap
8917 msgid ""
8918 " inspect-get-mountpoints root\n"
8919 "\n"
8920 msgstr ""
8921 " inspect-get-mountpoints корінь\n"
8922 "\n"
8923
8924 #. type: textblock
8925 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
8926 msgid ""
8927 "This returns a hash of where we think the filesystems associated with this "
8928 "operating system should be mounted.  Callers should note that this is at "
8929 "best an educated guess made by reading configuration files such as C</etc/"
8930 "fstab>.  I<In particular note> that this may return filesystems which are "
8931 "non-existent or not mountable and callers should be prepared to handle or "
8932 "ignore failures if they try to mount them."
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
8937 msgid ""
8938 "Each element in the returned hashtable has a key which is the path of the "
8939 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8940 "mounted there (eg. C</dev/sda1>)."
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8945 msgid ""
8946 "Non-mounted devices such as swap devices are I<not> returned in this list."
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:2021
8951 msgid ""
8952 "For operating systems like Windows which still use drive letters, this call "
8953 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8954 "information about the mapping of drive letters to partitions, see L</inspect-"
8955 "get-drive-mappings>."
8956 msgstr ""
8957
8958 #. type: textblock
8959 #: ../fish/guestfish-actions.pod:2027
8960 msgid ""
8961 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8962 "get-filesystems>."
8963 msgstr ""
8964
8965 #. type: =head2
8966 #: ../fish/guestfish-actions.pod:2030
8967 msgid "inspect-get-package-format"
8968 msgstr "inspect-get-package-format"
8969
8970 #. type: verbatim
8971 #: ../fish/guestfish-actions.pod:2032
8972 #, no-wrap
8973 msgid ""
8974 " inspect-get-package-format root\n"
8975 "\n"
8976 msgstr ""
8977 " inspect-get-package-format корінь\n"
8978 "\n"
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:2034
8982 msgid ""
8983 "This function and L</inspect-get-package-management> return the package "
8984 "format and package management tool used by the inspected operating system.  "
8985 "For example for Fedora these functions would return C<rpm> (package format) "
8986 "and C<yum> (package management)."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
8991 msgid ""
8992 "This returns the string C<unknown> if we could not determine the package "
8993 "format I<or> if the operating system does not have a real packaging system "
8994 "(eg. Windows)."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
8999 msgid ""
9000 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9001 "Future versions of libguestfs may return other strings."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:2049
9006 msgid "inspect-get-package-management"
9007 msgstr "inspect-get-package-management"
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:2051
9011 #, no-wrap
9012 msgid ""
9013 " inspect-get-package-management root\n"
9014 "\n"
9015 msgstr ""
9016 " inspect-get-package-management корінь\n"
9017 "\n"
9018
9019 #. type: textblock
9020 #: ../fish/guestfish-actions.pod:2053
9021 msgid ""
9022 "L</inspect-get-package-format> and this function return the package format "
9023 "and package management tool used by the inspected operating system.  For "
9024 "example for Fedora these functions would return C<rpm> (package format) and "
9025 "C<yum> (package management)."
9026 msgstr ""
9027
9028 #. type: textblock
9029 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
9030 msgid ""
9031 "This returns the string C<unknown> if we could not determine the package "
9032 "management tool I<or> if the operating system does not have a real packaging "
9033 "system (eg. Windows)."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
9038 msgid ""
9039 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9040 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9041 "libguestfs may return other strings."
9042 msgstr ""
9043
9044 #. type: =head2
9045 #: ../fish/guestfish-actions.pod:2070
9046 msgid "inspect-get-product-name"
9047 msgstr "inspect-get-product-name"
9048
9049 #. type: verbatim
9050 #: ../fish/guestfish-actions.pod:2072
9051 #, no-wrap
9052 msgid ""
9053 " inspect-get-product-name root\n"
9054 "\n"
9055 msgstr ""
9056 " inspect-get-product-name корінь\n"
9057 "\n"
9058
9059 #. type: textblock
9060 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
9061 msgid ""
9062 "This returns the product name of the inspected operating system.  The "
9063 "product name is generally some freeform string which can be displayed to the "
9064 "user, but should not be parsed by programs."
9065 msgstr ""
9066
9067 #. type: textblock
9068 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9069 msgid ""
9070 "If the product name could not be determined, then the string C<unknown> is "
9071 "returned."
9072 msgstr ""
9073
9074 #. type: =head2
9075 #: ../fish/guestfish-actions.pod:2084
9076 msgid "inspect-get-product-variant"
9077 msgstr ""
9078
9079 #. type: verbatim
9080 #: ../fish/guestfish-actions.pod:2086
9081 #, no-wrap
9082 msgid ""
9083 " inspect-get-product-variant root\n"
9084 "\n"
9085 msgstr ""
9086
9087 #. type: textblock
9088 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
9089 msgid "This returns the product variant of the inspected operating system."
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
9094 msgid ""
9095 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9096 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9097 "is usually a string such as C<Client> or C<Server> (other values are "
9098 "possible).  This can be used to distinguish consumer and enterprise versions "
9099 "of Windows that have the same version number (for example, Windows 7 and "
9100 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9101 "the latter is C<Server>)."
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
9106 msgid ""
9107 "For enterprise Linux guests, in future we intend this to return the product "
9108 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9109 "implemented at present."
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
9114 msgid ""
9115 "If the product variant could not be determined, then the string C<unknown> "
9116 "is returned."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:2107
9121 msgid ""
9122 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9123 "get-product-name>, L</inspect-get-major-version>."
9124 msgstr ""
9125
9126 #. type: =head2
9127 #: ../fish/guestfish-actions.pod:2111
9128 msgid "inspect-get-roots"
9129 msgstr "inspect-get-roots"
9130
9131 #. type: verbatim
9132 #: ../fish/guestfish-actions.pod:2113
9133 #, no-wrap
9134 msgid ""
9135 " inspect-get-roots\n"
9136 "\n"
9137 msgstr ""
9138 " inspect-get-roots\n"
9139 "\n"
9140
9141 #. type: textblock
9142 #: ../fish/guestfish-actions.pod:2115
9143 msgid ""
9144 "This function is a convenient way to get the list of root devices, as "
9145 "returned from a previous call to L</inspect-os>, but without redoing the "
9146 "whole inspection process."
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:2119
9151 msgid ""
9152 "This returns an empty list if either no root devices were found or the "
9153 "caller has not called L</inspect-os>."
9154 msgstr ""
9155
9156 #. type: =head2
9157 #: ../fish/guestfish-actions.pod:2124
9158 msgid "inspect-get-type"
9159 msgstr "inspect-get-type"
9160
9161 #. type: verbatim
9162 #: ../fish/guestfish-actions.pod:2126
9163 #, no-wrap
9164 msgid ""
9165 " inspect-get-type root\n"
9166 "\n"
9167 msgstr ""
9168 " inspect-get-type корінь\n"
9169 "\n"
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
9173 msgid ""
9174 "This returns the type of the inspected operating system.  Currently defined "
9175 "types are:"
9176 msgstr ""
9177
9178 #. type: =item
9179 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9180 msgid "\"linux\""
9181 msgstr "\"linux\""
9182
9183 #. type: textblock
9184 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
9185 msgid "Any Linux-based operating system."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
9190 msgid "Any Microsoft Windows operating system."
9191 msgstr ""
9192
9193 #. type: =item
9194 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
9195 msgid "\"freebsd\""
9196 msgstr "\"freebsd\""
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
9200 msgid "FreeBSD."
9201 msgstr "FreeBSD."
9202
9203 #. type: textblock
9204 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
9205 msgid "The operating system type could not be determined."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:2156
9210 msgid "inspect-get-windows-current-control-set"
9211 msgstr ""
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:2158
9215 #, no-wrap
9216 msgid ""
9217 " inspect-get-windows-current-control-set root\n"
9218 "\n"
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
9223 msgid ""
9224 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9225 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
9230 msgid ""
9231 "This call assumes that the guest is Windows and that the Registry could be "
9232 "examined by inspection.  If this is not the case then an error is returned."
9233 msgstr ""
9234
9235 #. type: =head2
9236 #: ../fish/guestfish-actions.pod:2169
9237 msgid "inspect-get-windows-systemroot"
9238 msgstr "inspect-get-windows-systemroot"
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:2171
9242 #, no-wrap
9243 msgid ""
9244 " inspect-get-windows-systemroot root\n"
9245 "\n"
9246 msgstr ""
9247 " inspect-get-windows-systemroot корінь\n"
9248 "\n"
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
9252 msgid ""
9253 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9254 "is a directory path such as C</WINDOWS>."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
9259 msgid ""
9260 "This call assumes that the guest is Windows and that the systemroot could be "
9261 "determined by inspection.  If this is not the case then an error is returned."
9262 msgstr ""
9263
9264 #. type: =head2
9265 #: ../fish/guestfish-actions.pod:2182
9266 msgid "inspect-is-live"
9267 msgstr "inspect-is-live"
9268
9269 #. type: verbatim
9270 #: ../fish/guestfish-actions.pod:2184
9271 #, no-wrap
9272 msgid ""
9273 " inspect-is-live root\n"
9274 "\n"
9275 msgstr ""
9276 " inspect-is-live корінь\n"
9277 "\n"
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:2186
9281 msgid ""
9282 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9283 "then this returns true if a live image was detected on the disk."
9284 msgstr ""
9285
9286 #. type: =head2
9287 #: ../fish/guestfish-actions.pod:2192
9288 msgid "inspect-is-multipart"
9289 msgstr "inspect-is-multipart"
9290
9291 #. type: verbatim
9292 #: ../fish/guestfish-actions.pod:2194
9293 #, no-wrap
9294 msgid ""
9295 " inspect-is-multipart root\n"
9296 "\n"
9297 msgstr ""
9298 " inspect-is-multipart корінь\n"
9299 "\n"
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:2196
9303 msgid ""
9304 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9305 "then this returns true if the disk is part of a set."
9306 msgstr ""
9307
9308 #. type: =head2
9309 #: ../fish/guestfish-actions.pod:2202
9310 msgid "inspect-is-netinst"
9311 msgstr "inspect-is-netinst"
9312
9313 #. type: verbatim
9314 #: ../fish/guestfish-actions.pod:2204
9315 #, no-wrap
9316 msgid ""
9317 " inspect-is-netinst root\n"
9318 "\n"
9319 msgstr ""
9320 " inspect-is-netinst корінь\n"
9321 "\n"
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:2206
9325 msgid ""
9326 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9327 "then this returns true if the disk is a network installer, ie. not a self-"
9328 "contained install CD but one which is likely to require network access to "
9329 "complete the install."
9330 msgstr ""
9331
9332 #. type: =head2
9333 #: ../fish/guestfish-actions.pod:2214
9334 msgid "inspect-list-applications"
9335 msgstr "inspect-list-applications"
9336
9337 #. type: verbatim
9338 #: ../fish/guestfish-actions.pod:2216
9339 #, no-wrap
9340 msgid ""
9341 " inspect-list-applications root\n"
9342 "\n"
9343 msgstr ""
9344 " inspect-list-applications кореневий_каталог\n"
9345 "\n"
9346
9347 #. type: textblock
9348 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
9349 msgid "Return the list of applications installed in the operating system."
9350 msgstr ""
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:2220
9354 msgid ""
9355 "I<Note:> This call works differently from other parts of the inspection "
9356 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9357 "then mount up the disks, before calling this.  Listing applications is a "
9358 "significantly more difficult operation which requires access to the full "
9359 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9360 "are just returning data cached in the libguestfs handle, this call actually "
9361 "reads parts of the mounted filesystems during the call."
9362 msgstr ""
9363
9364 #. type: textblock
9365 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
9366 msgid ""
9367 "This returns an empty list if the inspection code was not able to determine "
9368 "the list of applications."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
9373 msgid "The application structure contains the following fields:"
9374 msgstr ""
9375
9376 #. type: =item
9377 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
9378 msgid "C<app_name>"
9379 msgstr "C<app_name>"
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
9383 msgid ""
9384 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9385 "guests, this is the package name."
9386 msgstr ""
9387
9388 #. type: =item
9389 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9390 msgid "C<app_display_name>"
9391 msgstr "C<app_display_name>"
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9395 msgid ""
9396 "The display name of the application, sometimes localized to the install "
9397 "language of the guest operating system."
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9402 msgid ""
9403 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9404 "to display something can use C<app_name> instead."
9405 msgstr ""
9406
9407 #. type: =item
9408 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
9409 msgid "C<app_epoch>"
9410 msgstr "C<app_epoch>"
9411
9412 #. type: textblock
9413 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9414 msgid ""
9415 "For package managers which use epochs, this contains the epoch of the "
9416 "package (an integer).  If unavailable, this is returned as C<0>."
9417 msgstr ""
9418
9419 #. type: =item
9420 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9421 msgid "C<app_version>"
9422 msgstr "C<app_version>"
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9426 msgid ""
9427 "The version string of the application or package.  If unavailable this is "
9428 "returned as an empty string C<\"\">."
9429 msgstr ""
9430
9431 #. type: =item
9432 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9433 msgid "C<app_release>"
9434 msgstr "C<app_release>"
9435
9436 #. type: textblock
9437 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9438 msgid ""
9439 "The release string of the application or package, for package managers that "
9440 "use this.  If unavailable this is returned as an empty string C<\"\">."
9441 msgstr ""
9442
9443 #. type: =item
9444 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9445 msgid "C<app_install_path>"
9446 msgstr "C<app_install_path>"
9447
9448 #. type: textblock
9449 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
9450 msgid ""
9451 "The installation path of the application (on operating systems such as "
9452 "Windows which use installation paths).  This path is in the format used by "
9453 "the guest operating system, it is not a libguestfs path."
9454 msgstr ""
9455
9456 #. type: textblock
9457 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9458 msgid "If unavailable this is returned as an empty string C<\"\">."
9459 msgstr ""
9460
9461 #. type: =item
9462 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
9463 msgid "C<app_trans_path>"
9464 msgstr "C<app_trans_path>"
9465
9466 #. type: textblock
9467 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9468 msgid ""
9469 "The install path translated into a libguestfs path.  If unavailable this is "
9470 "returned as an empty string C<\"\">."
9471 msgstr ""
9472
9473 #. type: =item
9474 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9475 msgid "C<app_publisher>"
9476 msgstr "C<app_publisher>"
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9480 msgid ""
9481 "The name of the publisher of the application, for package managers that use "
9482 "this.  If unavailable this is returned as an empty string C<\"\">."
9483 msgstr ""
9484
9485 #. type: =item
9486 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
9487 msgid "C<app_url>"
9488 msgstr "C<app_url>"
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
9492 msgid ""
9493 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9494 "returned as an empty string C<\"\">."
9495 msgstr ""
9496
9497 #. type: =item
9498 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9499 msgid "C<app_source_package>"
9500 msgstr "C<app_source_package>"
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9504 msgid ""
9505 "For packaging systems which support this, the name of the source package.  "
9506 "If unavailable this is returned as an empty string C<\"\">."
9507 msgstr ""
9508
9509 #. type: =item
9510 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9511 msgid "C<app_summary>"
9512 msgstr "C<app_summary>"
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9516 msgid ""
9517 "A short (usually one line) description of the application or package.  If "
9518 "unavailable this is returned as an empty string C<\"\">."
9519 msgstr ""
9520
9521 #. type: =item
9522 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9523 msgid "C<app_description>"
9524 msgstr "C<app_description>"
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9528 msgid ""
9529 "A longer description of the application or package.  If unavailable this is "
9530 "returned as an empty string C<\"\">."
9531 msgstr ""
9532
9533 #. type: =head2
9534 #: ../fish/guestfish-actions.pod:2310
9535 msgid "inspect-os"
9536 msgstr "inspect-os"
9537
9538 #. type: verbatim
9539 #: ../fish/guestfish-actions.pod:2312
9540 #, no-wrap
9541 msgid ""
9542 " inspect-os\n"
9543 "\n"
9544 msgstr ""
9545 " inspect-os\n"
9546 "\n"
9547
9548 #. type: textblock
9549 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
9550 msgid ""
9551 "This function uses other libguestfs functions and certain heuristics to "
9552 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9553 "for operating systems."
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
9558 msgid "The list returned is empty if no operating systems were found."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
9563 msgid ""
9564 "If one operating system was found, then this returns a list with a single "
9565 "element, which is the name of the root filesystem of this operating system.  "
9566 "It is also possible for this function to return a list containing more than "
9567 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9568 "element being the root filesystem of one of the operating systems."
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../fish/guestfish-actions.pod:2327
9573 msgid ""
9574 "You can pass the root string(s) returned to other L</inspect-get-*> "
9575 "functions in order to query further information about each operating system, "
9576 "such as the name and version."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2332
9581 msgid ""
9582 "This function uses other libguestfs features such as L</mount-ro> and L</"
9583 "umount-all> in order to mount and unmount filesystems and look at the "
9584 "contents.  This should be called with no disks currently mounted.  The "
9585 "function may also use Augeas, so any existing Augeas handle will be closed."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
9590 msgid ""
9591 "This function cannot decrypt encrypted disks.  The caller must do that first "
9592 "(supplying the necessary keys) if the disk is encrypted."
9593 msgstr ""
9594
9595 #. type: textblock
9596 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
9597 #: ../fish/guestfish-actions.pod:2601
9598 msgid "See also L</list-filesystems>."
9599 msgstr "Див. також L</list-filesystems>."
9600
9601 #. type: =head2
9602 #: ../fish/guestfish-actions.pod:2346
9603 msgid "is-blockdev"
9604 msgstr "is-blockdev"
9605
9606 #. type: verbatim
9607 #: ../fish/guestfish-actions.pod:2348
9608 #, no-wrap
9609 msgid ""
9610 " is-blockdev path\n"
9611 "\n"
9612 msgstr ""
9613 " is-blockdev шлях\n"
9614 "\n"
9615
9616 #. type: textblock
9617 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
9618 msgid ""
9619 "This returns C<true> if and only if there is a block device with the given "
9620 "C<path> name."
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
9625 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
9626 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
9627 #: ../fish/guestfish-actions.pod:2452
9628 msgid "See also L</stat>."
9629 msgstr "Див. також L</stat>."
9630
9631 #. type: =head2
9632 #: ../fish/guestfish-actions.pod:2355
9633 msgid "is-busy"
9634 msgstr "is-busy"
9635
9636 #. type: verbatim
9637 #: ../fish/guestfish-actions.pod:2357
9638 #, no-wrap
9639 msgid ""
9640 " is-busy\n"
9641 "\n"
9642 msgstr ""
9643 " is-busy\n"
9644 "\n"
9645
9646 #. type: textblock
9647 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
9648 msgid ""
9649 "This returns true iff this handle is busy processing a command (in the "
9650 "C<BUSY> state)."
9651 msgstr ""
9652
9653 #. type: =head2
9654 #: ../fish/guestfish-actions.pod:2364
9655 msgid "is-chardev"
9656 msgstr "is-chardev"
9657
9658 #. type: verbatim
9659 #: ../fish/guestfish-actions.pod:2366
9660 #, no-wrap
9661 msgid ""
9662 " is-chardev path\n"
9663 "\n"
9664 msgstr ""
9665 " is-chardev шлях\n"
9666 "\n"
9667
9668 #. type: textblock
9669 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
9670 msgid ""
9671 "This returns C<true> if and only if there is a character device with the "
9672 "given C<path> name."
9673 msgstr ""
9674
9675 #. type: =head2
9676 #: ../fish/guestfish-actions.pod:2373
9677 msgid "is-config"
9678 msgstr "is-config"
9679
9680 #. type: verbatim
9681 #: ../fish/guestfish-actions.pod:2375
9682 #, no-wrap
9683 msgid ""
9684 " is-config\n"
9685 "\n"
9686 msgstr ""
9687 " is-config\n"
9688 "\n"
9689
9690 #. type: textblock
9691 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
9692 msgid ""
9693 "This returns true iff this handle is being configured (in the C<CONFIG> "
9694 "state)."
9695 msgstr ""
9696
9697 #. type: =head2
9698 #: ../fish/guestfish-actions.pod:2382
9699 msgid "is-dir"
9700 msgstr "is-dir"
9701
9702 #. type: verbatim
9703 #: ../fish/guestfish-actions.pod:2384
9704 #, no-wrap
9705 msgid ""
9706 " is-dir path\n"
9707 "\n"
9708 msgstr ""
9709 " is-dir шлях\n"
9710 "\n"
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
9714 msgid ""
9715 "This returns C<true> if and only if there is a directory with the given "
9716 "C<path> name.  Note that it returns false for other objects like files."
9717 msgstr ""
9718
9719 #. type: =head2
9720 #: ../fish/guestfish-actions.pod:2392
9721 msgid "is-fifo"
9722 msgstr "is-fifo"
9723
9724 #. type: verbatim
9725 #: ../fish/guestfish-actions.pod:2394
9726 #, no-wrap
9727 msgid ""
9728 " is-fifo path\n"
9729 "\n"
9730 msgstr ""
9731 " is-fifo шлях\n"
9732 "\n"
9733
9734 #. type: textblock
9735 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
9736 msgid ""
9737 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9738 "given C<path> name."
9739 msgstr ""
9740
9741 #. type: =head2
9742 #: ../fish/guestfish-actions.pod:2401
9743 msgid "is-file"
9744 msgstr "is-file"
9745
9746 #. type: verbatim
9747 #: ../fish/guestfish-actions.pod:2403
9748 #, no-wrap
9749 msgid ""
9750 " is-file path\n"
9751 "\n"
9752 msgstr ""
9753 " is-file шлях\n"
9754 "\n"
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
9758 msgid ""
9759 "This returns C<true> if and only if there is a regular file with the given "
9760 "C<path> name.  Note that it returns false for other objects like directories."
9761 msgstr ""
9762
9763 #. type: =head2
9764 #: ../fish/guestfish-actions.pod:2411
9765 msgid "is-launching"
9766 msgstr "is-launching"
9767
9768 #. type: verbatim
9769 #: ../fish/guestfish-actions.pod:2413
9770 #, no-wrap
9771 msgid ""
9772 " is-launching\n"
9773 "\n"
9774 msgstr ""
9775 " is-launching\n"
9776 "\n"
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
9780 msgid ""
9781 "This returns true iff this handle is launching the subprocess (in the "
9782 "C<LAUNCHING> state)."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../fish/guestfish-actions.pod:2420
9787 msgid "is-lv"
9788 msgstr "is-lv"
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:2422
9792 #, no-wrap
9793 msgid ""
9794 " is-lv device\n"
9795 "\n"
9796 msgstr ""
9797 " is-lv пристрій\n"
9798 "\n"
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
9802 msgid ""
9803 "This command tests whether C<device> is a logical volume, and returns true "
9804 "iff this is the case."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:2427
9809 msgid "is-ready"
9810 msgstr "is-ready"
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:2429
9814 #, no-wrap
9815 msgid ""
9816 " is-ready\n"
9817 "\n"
9818 msgstr ""
9819 " is-ready\n"
9820 "\n"
9821
9822 #. type: textblock
9823 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
9824 msgid ""
9825 "This returns true iff this handle is ready to accept commands (in the "
9826 "C<READY> state)."
9827 msgstr ""
9828
9829 #. type: =head2
9830 #: ../fish/guestfish-actions.pod:2436
9831 msgid "is-socket"
9832 msgstr "is-socket"
9833
9834 #. type: verbatim
9835 #: ../fish/guestfish-actions.pod:2438
9836 #, no-wrap
9837 msgid ""
9838 " is-socket path\n"
9839 "\n"
9840 msgstr ""
9841 " is-socket шлях\n"
9842 "\n"
9843
9844 #. type: textblock
9845 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
9846 msgid ""
9847 "This returns C<true> if and only if there is a Unix domain socket with the "
9848 "given C<path> name."
9849 msgstr ""
9850
9851 #. type: =head2
9852 #: ../fish/guestfish-actions.pod:2445
9853 msgid "is-symlink"
9854 msgstr "is-symlink"
9855
9856 #. type: verbatim
9857 #: ../fish/guestfish-actions.pod:2447
9858 #, no-wrap
9859 msgid ""
9860 " is-symlink path\n"
9861 "\n"
9862 msgstr ""
9863 " is-symlink шлях\n"
9864 "\n"
9865
9866 #. type: textblock
9867 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
9868 msgid ""
9869 "This returns C<true> if and only if there is a symbolic link with the given "
9870 "C<path> name."
9871 msgstr ""
9872
9873 #. type: =head2
9874 #: ../fish/guestfish-actions.pod:2454
9875 msgid "is-zero"
9876 msgstr ""
9877
9878 #. type: verbatim
9879 #: ../fish/guestfish-actions.pod:2456
9880 #, no-wrap
9881 msgid ""
9882 " is-zero path\n"
9883 "\n"
9884 msgstr ""
9885
9886 #. type: textblock
9887 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
9888 msgid ""
9889 "This returns true iff the file exists and the file is empty or it contains "
9890 "all zero bytes."
9891 msgstr ""
9892
9893 #. type: =head2
9894 #: ../fish/guestfish-actions.pod:2461
9895 msgid "is-zero-device"
9896 msgstr ""
9897
9898 #. type: verbatim
9899 #: ../fish/guestfish-actions.pod:2463
9900 #, no-wrap
9901 msgid ""
9902 " is-zero-device device\n"
9903 "\n"
9904 msgstr ""
9905
9906 #. type: textblock
9907 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
9908 msgid "This returns true iff the device exists and contains all zero bytes."
9909 msgstr ""
9910
9911 #. type: textblock
9912 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
9913 msgid "Note that for large devices this can take a long time to run."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../fish/guestfish-actions.pod:2469
9918 msgid "kill-subprocess"
9919 msgstr "kill-subprocess"
9920
9921 #. type: verbatim
9922 #: ../fish/guestfish-actions.pod:2471
9923 #, no-wrap
9924 msgid ""
9925 " kill-subprocess\n"
9926 "\n"
9927 msgstr ""
9928 " kill-subprocess\n"
9929 "\n"
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
9933 msgid "This kills the qemu subprocess.  You should never need to call this."
9934 msgstr ""
9935
9936 #. type: =head2
9937 #: ../fish/guestfish-actions.pod:2475
9938 msgid "launch"
9939 msgstr "launch"
9940
9941 #. type: =head2
9942 #: ../fish/guestfish-actions.pod:2477
9943 msgid "run"
9944 msgstr ""
9945
9946 #. type: verbatim
9947 #: ../fish/guestfish-actions.pod:2479
9948 #, no-wrap
9949 msgid ""
9950 " launch\n"
9951 "\n"
9952 msgstr ""
9953 " launch\n"
9954 "\n"
9955
9956 #. type: textblock
9957 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
9958 msgid ""
9959 "Internally libguestfs is implemented by running a virtual machine using "
9960 "L<qemu(1)>."
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
9965 msgid ""
9966 "You should call this after configuring the handle (eg. adding drives) but "
9967 "before performing any actions."
9968 msgstr ""
9969
9970 #. type: =head2
9971 #: ../fish/guestfish-actions.pod:2487
9972 msgid "lchown"
9973 msgstr "lchown"
9974
9975 #. type: verbatim
9976 #: ../fish/guestfish-actions.pod:2489
9977 #, no-wrap
9978 msgid ""
9979 " lchown owner group path\n"
9980 "\n"
9981 msgstr ""
9982 " lchown власник група шлях\n"
9983 "\n"
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:2491
9987 msgid ""
9988 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9989 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9990 "target."
9991 msgstr ""
9992
9993 #. type: =head2
9994 #: ../fish/guestfish-actions.pod:2499
9995 msgid "lgetxattr"
9996 msgstr "lgetxattr"
9997
9998 #. type: verbatim
9999 #: ../fish/guestfish-actions.pod:2501
10000 #, no-wrap
10001 msgid ""
10002 " lgetxattr path name\n"
10003 "\n"
10004 msgstr ""
10005 " lgetxattr шлях назва\n"
10006 "\n"
10007
10008 #. type: textblock
10009 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
10010 msgid ""
10011 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10012 "is a symlink, then this call returns an extended attribute from the symlink."
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../fish/guestfish-actions.pod:2517
10017 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10018 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10019
10020 #. type: =head2
10021 #: ../fish/guestfish-actions.pod:2519
10022 msgid "lgetxattrs"
10023 msgstr "lgetxattrs"
10024
10025 #. type: verbatim
10026 #: ../fish/guestfish-actions.pod:2521
10027 #, no-wrap
10028 msgid ""
10029 " lgetxattrs path\n"
10030 "\n"
10031 msgstr ""
10032 " lgetxattrs шлях\n"
10033 "\n"
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2523
10037 msgid ""
10038 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10039 "it returns the extended attributes of the link itself."
10040 msgstr ""
10041
10042 #. type: =head2
10043 #: ../fish/guestfish-actions.pod:2527
10044 msgid "list-9p"
10045 msgstr ""
10046
10047 #. type: verbatim
10048 #: ../fish/guestfish-actions.pod:2529
10049 #, no-wrap
10050 msgid ""
10051 " list-9p\n"
10052 "\n"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
10057 msgid ""
10058 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10059 "returned."
10060 msgstr ""
10061
10062 #. type: =head2
10063 #: ../fish/guestfish-actions.pod:2534
10064 msgid "list-devices"
10065 msgstr "list-devices"
10066
10067 #. type: verbatim
10068 #: ../fish/guestfish-actions.pod:2536
10069 #, no-wrap
10070 msgid ""
10071 " list-devices\n"
10072 "\n"
10073 msgstr ""
10074 " list-devices\n"
10075 "\n"
10076
10077 #. type: textblock
10078 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
10079 msgid "List all the block devices."
10080 msgstr ""
10081
10082 #. type: textblock
10083 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
10084 msgid "The full block device names are returned, eg. C</dev/sda>."
10085 msgstr ""
10086
10087 #. type: =head2
10088 #: ../fish/guestfish-actions.pod:2544
10089 msgid "list-dm-devices"
10090 msgstr ""
10091
10092 #. type: verbatim
10093 #: ../fish/guestfish-actions.pod:2546
10094 #, no-wrap
10095 msgid ""
10096 " list-dm-devices\n"
10097 "\n"
10098 msgstr ""
10099
10100 #. type: textblock
10101 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
10102 msgid "List all device mapper devices."
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:2550
10107 msgid ""
10108 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10109 "previous call to L</luks-open>."
10110 msgstr ""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:2553
10114 msgid ""
10115 "Device mapper devices which correspond to logical volumes are I<not> "
10116 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../fish/guestfish-actions.pod:2557
10121 msgid "list-filesystems"
10122 msgstr "list-filesystems"
10123
10124 #. type: verbatim
10125 #: ../fish/guestfish-actions.pod:2559
10126 #, no-wrap
10127 msgid ""
10128 " list-filesystems\n"
10129 "\n"
10130 msgstr ""
10131 " list-filesystems\n"
10132 "\n"
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
10136 msgid ""
10137 "This inspection command looks for filesystems on partitions, block devices "
10138 "and logical volumes, returning a list of devices containing filesystems and "
10139 "their type."
10140 msgstr ""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
10144 msgid ""
10145 "The return value is a hash, where the keys are the devices containing "
10146 "filesystems, and the values are the filesystem types.  For example:"
10147 msgstr ""
10148
10149 #. type: verbatim
10150 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
10151 #, no-wrap
10152 msgid ""
10153 " \"/dev/sda1\" => \"ntfs\"\n"
10154 " \"/dev/sda2\" => \"ext2\"\n"
10155 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10156 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10157 "\n"
10158 msgstr ""
10159
10160 #. type: textblock
10161 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10162 msgid ""
10163 "The value can have the special value \"unknown\", meaning the content of the "
10164 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2578
10169 msgid ""
10170 "This command runs other libguestfs commands, which might include L</mount> "
10171 "and L</umount>, and therefore you should use this soon after launch and only "
10172 "when nothing is mounted."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2582
10177 msgid ""
10178 "Not all of the filesystems returned will be mountable.  In particular, swap "
10179 "partitions are returned in the list.  Also this command does not check that "
10180 "each filesystem found is valid and mountable, and some filesystems might be "
10181 "mountable but require special options.  Filesystems may not all belong to a "
10182 "single logical operating system (use L</inspect-os> to look for OSes)."
10183 msgstr ""
10184
10185 #. type: =head2
10186 #: ../fish/guestfish-actions.pod:2590
10187 msgid "list-partitions"
10188 msgstr "list-partitions"
10189
10190 #. type: verbatim
10191 #: ../fish/guestfish-actions.pod:2592
10192 #, no-wrap
10193 msgid ""
10194 " list-partitions\n"
10195 "\n"
10196 msgstr ""
10197 " list-partitions\n"
10198 "\n"
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
10202 msgid "List all the partitions detected on all block devices."
10203 msgstr ""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
10207 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2598
10212 msgid ""
10213 "This does not return logical volumes.  For that you will need to call L</"
10214 "lvs>."
10215 msgstr ""
10216
10217 #. type: =head2
10218 #: ../fish/guestfish-actions.pod:2603
10219 msgid "ll"
10220 msgstr "ll"
10221
10222 #. type: verbatim
10223 #: ../fish/guestfish-actions.pod:2605
10224 #, no-wrap
10225 msgid ""
10226 " ll directory\n"
10227 "\n"
10228 msgstr ""
10229 " ll каталог\n"
10230 "\n"
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
10234 msgid ""
10235 "List the files in C<directory> (relative to the root directory, there is no "
10236 "cwd) in the format of 'ls -la'."
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
10241 msgid ""
10242 "This command is mostly useful for interactive sessions.  It is I<not> "
10243 "intended that you try to parse the output string."
10244 msgstr ""
10245
10246 #. type: =head2
10247 #: ../fish/guestfish-actions.pod:2613
10248 msgid "ln"
10249 msgstr "ln"
10250
10251 #. type: verbatim
10252 #: ../fish/guestfish-actions.pod:2615
10253 #, no-wrap
10254 msgid ""
10255 " ln target linkname\n"
10256 "\n"
10257 msgstr ""
10258 " ln призначення назва_посилання\n"
10259 "\n"
10260
10261 #. type: textblock
10262 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
10263 msgid "This command creates a hard link using the C<ln> command."
10264 msgstr ""
10265
10266 #. type: =head2
10267 #: ../fish/guestfish-actions.pod:2619
10268 msgid "ln-f"
10269 msgstr "ln-f"
10270
10271 #. type: verbatim
10272 #: ../fish/guestfish-actions.pod:2621
10273 #, no-wrap
10274 msgid ""
10275 " ln-f target linkname\n"
10276 "\n"
10277 msgstr ""
10278 " ln-f призначення назва_посилання\n"
10279 "\n"
10280
10281 #. type: textblock
10282 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
10283 msgid ""
10284 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10285 "option removes the link (C<linkname>) if it exists already."
10286 msgstr ""
10287
10288 #. type: =head2
10289 #: ../fish/guestfish-actions.pod:2626
10290 msgid "ln-s"
10291 msgstr "ln-s"
10292
10293 #. type: verbatim
10294 #: ../fish/guestfish-actions.pod:2628
10295 #, no-wrap
10296 msgid ""
10297 " ln-s target linkname\n"
10298 "\n"
10299 msgstr ""
10300 " ln-s призначення назва_посилання\n"
10301 "\n"
10302
10303 #. type: textblock
10304 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
10305 msgid "This command creates a symbolic link using the C<ln -s> command."
10306 msgstr ""
10307
10308 #. type: =head2
10309 #: ../fish/guestfish-actions.pod:2632
10310 msgid "ln-sf"
10311 msgstr "ln-sf"
10312
10313 #. type: verbatim
10314 #: ../fish/guestfish-actions.pod:2634
10315 #, no-wrap
10316 msgid ""
10317 " ln-sf target linkname\n"
10318 "\n"
10319 msgstr ""
10320 " ln-sf призначення назва_посилання\n"
10321 "\n"
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
10325 msgid ""
10326 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10327 "option removes the link (C<linkname>) if it exists already."
10328 msgstr ""
10329
10330 #. type: =head2
10331 #: ../fish/guestfish-actions.pod:2639
10332 msgid "lremovexattr"
10333 msgstr "lremovexattr"
10334
10335 #. type: verbatim
10336 #: ../fish/guestfish-actions.pod:2641
10337 #, no-wrap
10338 msgid ""
10339 " lremovexattr xattr path\n"
10340 "\n"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:2643
10345 msgid ""
10346 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10347 "it removes an extended attribute of the link itself."
10348 msgstr ""
10349
10350 #. type: =head2
10351 #: ../fish/guestfish-actions.pod:2647
10352 msgid "ls"
10353 msgstr "ls"
10354
10355 #. type: verbatim
10356 #: ../fish/guestfish-actions.pod:2649
10357 #, no-wrap
10358 msgid ""
10359 " ls directory\n"
10360 "\n"
10361 msgstr ""
10362 " ls каталог\n"
10363 "\n"
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
10367 msgid ""
10368 "List the files in C<directory> (relative to the root directory, there is no "
10369 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../fish/guestfish-actions.pod:2655
10374 msgid ""
10375 "This command is mostly useful for interactive sessions.  Programs should "
10376 "probably use L</readdir> instead."
10377 msgstr ""
10378
10379 #. type: =head2
10380 #: ../fish/guestfish-actions.pod:2658
10381 msgid "lsetxattr"
10382 msgstr "lsetxattr"
10383
10384 #. type: verbatim
10385 #: ../fish/guestfish-actions.pod:2660
10386 #, no-wrap
10387 msgid ""
10388 " lsetxattr xattr val vallen path\n"
10389 "\n"
10390 msgstr ""
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:2662
10394 msgid ""
10395 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10396 "sets an extended attribute of the link itself."
10397 msgstr ""
10398
10399 #. type: =head2
10400 #: ../fish/guestfish-actions.pod:2666
10401 msgid "lstat"
10402 msgstr "lstat"
10403
10404 #. type: verbatim
10405 #: ../fish/guestfish-actions.pod:2668
10406 #, no-wrap
10407 msgid ""
10408 " lstat path\n"
10409 "\n"
10410 msgstr ""
10411 " lstat шлях\n"
10412 "\n"
10413
10414 #. type: textblock
10415 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478
10416 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
10417 msgid "Returns file information for the given C<path>."
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:2672
10422 msgid ""
10423 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10424 "the link is stat-ed, not the file it refers to."
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
10429 msgid "This is the same as the C<lstat(2)> system call."
10430 msgstr ""
10431
10432 #. type: =head2
10433 #: ../fish/guestfish-actions.pod:2678
10434 msgid "lstatlist"
10435 msgstr "lstatlist"
10436
10437 #. type: verbatim
10438 #: ../fish/guestfish-actions.pod:2680
10439 #, no-wrap
10440 msgid ""
10441 " lstatlist path 'names ...'\n"
10442 "\n"
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../fish/guestfish-actions.pod:2682
10447 msgid ""
10448 "This call allows you to perform the L</lstat> operation on multiple files, "
10449 "where all files are in the directory C<path>.  C<names> is the list of files "
10450 "from this directory."
10451 msgstr ""
10452
10453 #. type: textblock
10454 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
10455 msgid ""
10456 "On return you get a list of stat structs, with a one-to-one correspondence "
10457 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10458 "then the C<ino> field of that structure is set to C<-1>."
10459 msgstr ""
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2691
10463 msgid ""
10464 "This call is intended for programs that want to efficiently list a directory "
10465 "contents without making many round-trips.  See also L</lxattrlist> for a "
10466 "similarly efficient call for getting extended attributes.  Very long "
10467 "directory listings might cause the protocol message size to be exceeded, "
10468 "causing this call to fail.  The caller must split up such requests into "
10469 "smaller groups of names."
10470 msgstr ""
10471
10472 #. type: =head2
10473 #: ../fish/guestfish-actions.pod:2699
10474 msgid "luks-add-key"
10475 msgstr "luks-add-key"
10476
10477 #. type: verbatim
10478 #: ../fish/guestfish-actions.pod:2701
10479 #, no-wrap
10480 msgid ""
10481 " luks-add-key device keyslot\n"
10482 "\n"
10483 msgstr ""
10484
10485 #. type: textblock
10486 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
10487 msgid ""
10488 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10489 "existing key, and is used to access the device.  C<newkey> is the new key to "
10490 "add.  C<keyslot> is the key slot that will be replaced."
10491 msgstr ""
10492
10493 #. type: textblock
10494 #: ../fish/guestfish-actions.pod:2708
10495 msgid ""
10496 "Note that if C<keyslot> already contains a key, then this command will "
10497 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
10502 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
10503 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
10504 msgid ""
10505 "This command has one or more key or passphrase parameters.  Guestfish will "
10506 "prompt for these separately."
10507 msgstr ""
10508
10509 #. type: =head2
10510 #: ../fish/guestfish-actions.pod:2715
10511 msgid "luks-close"
10512 msgstr "luks-close"
10513
10514 #. type: verbatim
10515 #: ../fish/guestfish-actions.pod:2717
10516 #, no-wrap
10517 msgid ""
10518 " luks-close device\n"
10519 "\n"
10520 msgstr ""
10521 " luks-close пристрій\n"
10522 "\n"
10523
10524 #. type: textblock
10525 #: ../fish/guestfish-actions.pod:2719
10526 msgid ""
10527 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10528 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10529 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10530 "block device."
10531 msgstr ""
10532
10533 #. type: =head2
10534 #: ../fish/guestfish-actions.pod:2725
10535 msgid "luks-format"
10536 msgstr "luks-format"
10537
10538 #. type: verbatim
10539 #: ../fish/guestfish-actions.pod:2727
10540 #, no-wrap
10541 msgid ""
10542 " luks-format device keyslot\n"
10543 "\n"
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
10548 msgid ""
10549 "This command erases existing data on C<device> and formats the device as a "
10550 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10551 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750
10556 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498
10557 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349
10558 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
10559 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053
10560 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219
10561 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110
10562 #: ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:6568
10563 #: ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:7799
10564 msgid ""
10565 "B<This command is dangerous.  Without careful use you can easily destroy all "
10566 "your data>."
10567 msgstr ""
10568
10569 #. type: =head2
10570 #: ../fish/guestfish-actions.pod:2740
10571 msgid "luks-format-cipher"
10572 msgstr "luks-format-cipher"
10573
10574 #. type: verbatim
10575 #: ../fish/guestfish-actions.pod:2742
10576 #, no-wrap
10577 msgid ""
10578 " luks-format-cipher device keyslot cipher\n"
10579 "\n"
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:2744
10584 msgid ""
10585 "This command is the same as L</luks-format> but it also allows you to set "
10586 "the C<cipher> used."
10587 msgstr ""
10588
10589 #. type: =head2
10590 #: ../fish/guestfish-actions.pod:2753
10591 msgid "luks-kill-slot"
10592 msgstr "luks-kill-slot"
10593
10594 #. type: verbatim
10595 #: ../fish/guestfish-actions.pod:2755
10596 #, no-wrap
10597 msgid ""
10598 " luks-kill-slot device keyslot\n"
10599 "\n"
10600 msgstr ""
10601
10602 #. type: textblock
10603 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
10604 msgid ""
10605 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10606 "device C<device>.  C<key> must be one of the I<other> keys."
10607 msgstr ""
10608
10609 #. type: =head2
10610 #: ../fish/guestfish-actions.pod:2764
10611 msgid "luks-open"
10612 msgstr "luks-open"
10613
10614 #. type: verbatim
10615 #: ../fish/guestfish-actions.pod:2766
10616 #, no-wrap
10617 msgid ""
10618 " luks-open device mapname\n"
10619 "\n"
10620 msgstr ""
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
10624 msgid ""
10625 "This command opens a block device which has been encrypted according to the "
10626 "Linux Unified Key Setup (LUKS) standard."
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
10631 msgid "C<device> is the encrypted block device or partition."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10636 msgid ""
10637 "The caller must supply one of the keys associated with the LUKS block "
10638 "device, in the C<key> parameter."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10643 msgid ""
10644 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10645 "writes to this block device are decrypted from and encrypted to the "
10646 "underlying C<device> respectively."
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2780
10651 msgid ""
10652 "If this block device contains LVM volume groups, then calling L</vgscan> "
10653 "followed by L</vg-activate-all> will make them visible."
10654 msgstr ""
10655
10656 #. type: textblock
10657 #: ../fish/guestfish-actions.pod:2784
10658 msgid "Use L</list-dm-devices> to list all device mapper devices."
10659 msgstr ""
10660
10661 #. type: =head2
10662 #: ../fish/guestfish-actions.pod:2790
10663 msgid "luks-open-ro"
10664 msgstr "luks-open-ro"
10665
10666 #. type: verbatim
10667 #: ../fish/guestfish-actions.pod:2792
10668 #, no-wrap
10669 msgid ""
10670 " luks-open-ro device mapname\n"
10671 "\n"
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:2794
10676 msgid ""
10677 "This is the same as L</luks-open> except that a read-only mapping is created."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:2800
10682 msgid "lvcreate"
10683 msgstr "lvcreate"
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:2802
10687 #, no-wrap
10688 msgid ""
10689 " lvcreate logvol volgroup mbytes\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
10695 msgid ""
10696 "This creates an LVM logical volume called C<logvol> on the volume group "
10697 "C<volgroup>, with C<size> megabytes."
10698 msgstr ""
10699
10700 #. type: =head2
10701 #: ../fish/guestfish-actions.pod:2807
10702 msgid "lvm-canonical-lv-name"
10703 msgstr "lvm-canonical-lv-name"
10704
10705 #. type: verbatim
10706 #: ../fish/guestfish-actions.pod:2809
10707 #, no-wrap
10708 msgid ""
10709 " lvm-canonical-lv-name lvname\n"
10710 "\n"
10711 msgstr ""
10712
10713 #. type: textblock
10714 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
10715 msgid ""
10716 "This converts alternative naming schemes for LVs that you might find to the "
10717 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10718 "LV>."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
10723 msgid ""
10724 "This command returns an error if the C<lvname> parameter does not refer to a "
10725 "logical volume."
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:2818
10730 msgid "See also L</is-lv>."
10731 msgstr "Див. також L</is-lv>."
10732
10733 #. type: =head2
10734 #: ../fish/guestfish-actions.pod:2820
10735 msgid "lvm-clear-filter"
10736 msgstr "lvm-clear-filter"
10737
10738 #. type: verbatim
10739 #: ../fish/guestfish-actions.pod:2822
10740 #, no-wrap
10741 msgid ""
10742 " lvm-clear-filter\n"
10743 "\n"
10744 msgstr ""
10745 " lvm-clear-filter\n"
10746 "\n"
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:2824
10750 msgid ""
10751 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10752 "block device."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
10757 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
10758 msgid ""
10759 "This command also clears the LVM cache and performs a volume group scan."
10760 msgstr ""
10761
10762 #. type: =head2
10763 #: ../fish/guestfish-actions.pod:2830
10764 msgid "lvm-remove-all"
10765 msgstr "lvm-remove-all"
10766
10767 #. type: verbatim
10768 #: ../fish/guestfish-actions.pod:2832
10769 #, no-wrap
10770 msgid ""
10771 " lvm-remove-all\n"
10772 "\n"
10773 msgstr ""
10774 " lvm-remove-all\n"
10775 "\n"
10776
10777 #. type: textblock
10778 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
10779 msgid ""
10780 "This command removes all LVM logical volumes, volume groups and physical "
10781 "volumes."
10782 msgstr ""
10783
10784 #. type: =head2
10785 #: ../fish/guestfish-actions.pod:2840
10786 msgid "lvm-set-filter"
10787 msgstr "lvm-set-filter"
10788
10789 #. type: verbatim
10790 #: ../fish/guestfish-actions.pod:2842
10791 #, no-wrap
10792 msgid ""
10793 " lvm-set-filter 'devices ...'\n"
10794 "\n"
10795 msgstr ""
10796 " lvm-set-filter 'пристрої...'\n"
10797 "\n"
10798
10799 #. type: textblock
10800 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
10801 msgid ""
10802 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10803 "block devices in the list C<devices>, and will ignore all other attached "
10804 "block devices."
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
10809 msgid ""
10810 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10811 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10812 "there are two types of duplication possible: either cloned PVs/VGs which "
10813 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10814 "same name.  In normal operation you cannot create this situation, but you "
10815 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10816 "inside the LVM metadata."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
10821 msgid "You can filter whole block devices or individual partitions."
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
10826 msgid ""
10827 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10828 "filesystem), even if you are not filtering out that VG."
10829 msgstr ""
10830
10831 #. type: =head2
10832 #: ../fish/guestfish-actions.pod:2867
10833 msgid "lvremove"
10834 msgstr "lvremove"
10835
10836 #. type: verbatim
10837 #: ../fish/guestfish-actions.pod:2869
10838 #, no-wrap
10839 msgid ""
10840 " lvremove device\n"
10841 "\n"
10842 msgstr ""
10843 " lvremove пристрій\n"
10844 "\n"
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
10848 msgid ""
10849 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10850 "LV, such as C</dev/VG/LV>."
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
10855 msgid ""
10856 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10857 "dev/VG>."
10858 msgstr ""
10859
10860 #. type: =head2
10861 #: ../fish/guestfish-actions.pod:2877
10862 msgid "lvrename"
10863 msgstr "lvrename"
10864
10865 #. type: verbatim
10866 #: ../fish/guestfish-actions.pod:2879
10867 #, no-wrap
10868 msgid ""
10869 " lvrename logvol newlogvol\n"
10870 "\n"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
10875 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10876 msgstr ""
10877
10878 #. type: =head2
10879 #: ../fish/guestfish-actions.pod:2883
10880 msgid "lvresize"
10881 msgstr "lvresize"
10882
10883 #. type: verbatim
10884 #: ../fish/guestfish-actions.pod:2885
10885 #, no-wrap
10886 msgid ""
10887 " lvresize device mbytes\n"
10888 "\n"
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
10893 msgid ""
10894 "This resizes (expands or shrinks) an existing LVM logical volume to "
10895 "C<mbytes>.  When reducing, data in the reduced part is lost."
10896 msgstr ""
10897
10898 #. type: =head2
10899 #: ../fish/guestfish-actions.pod:2891
10900 msgid "lvresize-free"
10901 msgstr "lvresize-free"
10902
10903 #. type: verbatim
10904 #: ../fish/guestfish-actions.pod:2893
10905 #, no-wrap
10906 msgid ""
10907 " lvresize-free lv percent\n"
10908 "\n"
10909 msgstr ""
10910
10911 #. type: textblock
10912 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
10913 msgid ""
10914 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10915 "remaining free space in the volume group.  Commonly you would call this with "
10916 "pc = 100 which expands the logical volume as much as possible, using all "
10917 "remaining free space in the volume group."
10918 msgstr ""
10919
10920 #. type: =head2
10921 #: ../fish/guestfish-actions.pod:2901
10922 msgid "lvs"
10923 msgstr "lvs"
10924
10925 #. type: verbatim
10926 #: ../fish/guestfish-actions.pod:2903
10927 #, no-wrap
10928 msgid ""
10929 " lvs\n"
10930 "\n"
10931 msgstr ""
10932 " lvs\n"
10933 "\n"
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
10937 msgid ""
10938 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10939 "(8)> command."
10940 msgstr ""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
10944 msgid ""
10945 "This returns a list of the logical volume device names (eg. C</dev/"
10946 "VolGroup00/LogVol00>)."
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2911
10951 msgid "See also L</lvs-full>, L</list-filesystems>."
10952 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10953
10954 #. type: =head2
10955 #: ../fish/guestfish-actions.pod:2913
10956 msgid "lvs-full"
10957 msgstr "lvs-full"
10958
10959 #. type: verbatim
10960 #: ../fish/guestfish-actions.pod:2915
10961 #, no-wrap
10962 msgid ""
10963 " lvs-full\n"
10964 "\n"
10965 msgstr ""
10966 " lvs-full\n"
10967 "\n"
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
10971 msgid ""
10972 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10973 "(8)> command.  The \"full\" version includes all fields."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:2920
10978 msgid "lvuuid"
10979 msgstr "lvuuid"
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:2922
10983 #, no-wrap
10984 msgid ""
10985 " lvuuid device\n"
10986 "\n"
10987 msgstr ""
10988 " lvuuid пристрій\n"
10989 "\n"
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
10993 msgid "This command returns the UUID of the LVM LV C<device>."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2926
10998 msgid "lxattrlist"
10999 msgstr "lxattrlist"
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2928
11003 #, no-wrap
11004 msgid ""
11005 " lxattrlist path 'names ...'\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
11011 msgid ""
11012 "This call allows you to get the extended attributes of multiple files, where "
11013 "all files are in the directory C<path>.  C<names> is the list of files from "
11014 "this directory."
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
11019 msgid ""
11020 "On return you get a flat list of xattr structs which must be interpreted "
11021 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11022 "C<attrval> in this struct is zero-length to indicate there was an error "
11023 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11024 "number (the number of following attributes for this file, which could be C<"
11025 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11026 "for the first named file.  This repeats for the second and subsequent files."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2944
11031 msgid ""
11032 "This call is intended for programs that want to efficiently list a directory "
11033 "contents without making many round-trips.  See also L</lstatlist> for a "
11034 "similarly efficient call for getting standard stats.  Very long directory "
11035 "listings might cause the protocol message size to be exceeded, causing this "
11036 "call to fail.  The caller must split up such requests into smaller groups of "
11037 "names."
11038 msgstr ""
11039
11040 #. type: =head2
11041 #: ../fish/guestfish-actions.pod:2952
11042 msgid "mkdir"
11043 msgstr "mkdir"
11044
11045 #. type: verbatim
11046 #: ../fish/guestfish-actions.pod:2954
11047 #, no-wrap
11048 msgid ""
11049 " mkdir path\n"
11050 "\n"
11051 msgstr ""
11052 " mkdir шлях\n"
11053 "\n"
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
11057 msgid "Create a directory named C<path>."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:2958
11062 msgid "mkdir-mode"
11063 msgstr "mkdir-mode"
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:2960
11067 #, no-wrap
11068 msgid ""
11069 " mkdir-mode path mode\n"
11070 "\n"
11071 msgstr ""
11072 " mkdir-mode шлях режим\n"
11073 "\n"
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
11077 msgid ""
11078 "This command creates a directory, setting the initial permissions of the "
11079 "directory to C<mode>."
11080 msgstr ""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
11084 msgid ""
11085 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11086 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11087 "other ways."
11088 msgstr ""
11089
11090 #. type: textblock
11091 #: ../fish/guestfish-actions.pod:2969
11092 msgid "See also L</mkdir>, L</umask>"
11093 msgstr "Див. також L</mkdir>, L</umask>"
11094
11095 #. type: =head2
11096 #: ../fish/guestfish-actions.pod:2971
11097 msgid "mkdir-p"
11098 msgstr "mkdir-p"
11099
11100 #. type: verbatim
11101 #: ../fish/guestfish-actions.pod:2973
11102 #, no-wrap
11103 msgid ""
11104 " mkdir-p path\n"
11105 "\n"
11106 msgstr ""
11107 " mkdir-p шлях\n"
11108 "\n"
11109
11110 #. type: textblock
11111 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
11112 msgid ""
11113 "Create a directory named C<path>, creating any parent directories as "
11114 "necessary.  This is like the C<mkdir -p> shell command."
11115 msgstr ""
11116
11117 #. type: =head2
11118 #: ../fish/guestfish-actions.pod:2978
11119 msgid "mkdtemp"
11120 msgstr "mkdtemp"
11121
11122 #. type: verbatim
11123 #: ../fish/guestfish-actions.pod:2980
11124 #, no-wrap
11125 msgid ""
11126 " mkdtemp template\n"
11127 "\n"
11128 msgstr ""
11129 " mkdtemp шаблон\n"
11130 "\n"
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
11134 msgid ""
11135 "This command creates a temporary directory.  The C<template> parameter "
11136 "should be a full pathname for the temporary directory name with the final "
11137 "six characters being \"XXXXXX\"."
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11142 msgid ""
11143 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11144 "being suitable for Windows filesystems."
11145 msgstr ""
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
11149 msgid "The name of the temporary directory that was created is returned."
11150 msgstr ""
11151
11152 #. type: textblock
11153 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
11154 msgid "The temporary directory is created with mode 0700 and is owned by root."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
11159 msgid ""
11160 "The caller is responsible for deleting the temporary directory and its "
11161 "contents after use."
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
11166 msgid "See also: L<mkdtemp(3)>"
11167 msgstr ""
11168
11169 #. type: =head2
11170 #: ../fish/guestfish-actions.pod:3001
11171 msgid "mke2fs-J"
11172 msgstr "mke2fs-J"
11173
11174 #. type: verbatim
11175 #: ../fish/guestfish-actions.pod:3003
11176 #, no-wrap
11177 msgid ""
11178 " mke2fs-J fstype blocksize device journal\n"
11179 "\n"
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
11184 msgid ""
11185 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11186 "C<journal>.  It is equivalent to the command:"
11187 msgstr ""
11188
11189 #. type: verbatim
11190 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
11191 #, no-wrap
11192 msgid ""
11193 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11194 "\n"
11195 msgstr ""
11196 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11197 "\n"
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:3011
11201 msgid "See also L</mke2journal>."
11202 msgstr "Див. також L</mke2journal>."
11203
11204 #. type: =head2
11205 #: ../fish/guestfish-actions.pod:3013
11206 msgid "mke2fs-JL"
11207 msgstr "mke2fs-JL"
11208
11209 #. type: verbatim
11210 #: ../fish/guestfish-actions.pod:3015
11211 #, no-wrap
11212 msgid ""
11213 " mke2fs-JL fstype blocksize device label\n"
11214 "\n"
11215 msgstr ""
11216
11217 #. type: textblock
11218 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
11219 msgid ""
11220 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11221 "the journal labeled C<label>."
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:3020
11226 msgid "See also L</mke2journal-L>."
11227 msgstr "Див. також L</mke2journal-L>."
11228
11229 #. type: =head2
11230 #: ../fish/guestfish-actions.pod:3022
11231 msgid "mke2fs-JU"
11232 msgstr "mke2fs-JU"
11233
11234 #. type: verbatim
11235 #: ../fish/guestfish-actions.pod:3024
11236 #, no-wrap
11237 msgid ""
11238 " mke2fs-JU fstype blocksize device uuid\n"
11239 "\n"
11240 msgstr ""
11241
11242 #. type: textblock
11243 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
11244 msgid ""
11245 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11246 "the journal with UUID C<uuid>."
11247 msgstr ""
11248
11249 #. type: textblock
11250 #: ../fish/guestfish-actions.pod:3029
11251 msgid "See also L</mke2journal-U>."
11252 msgstr "Див. також L</mke2journal-U>."
11253
11254 #. type: =head2
11255 #: ../fish/guestfish-actions.pod:3031
11256 msgid "mke2journal"
11257 msgstr "mke2journal"
11258
11259 #. type: verbatim
11260 #: ../fish/guestfish-actions.pod:3033
11261 #, no-wrap
11262 msgid ""
11263 " mke2journal blocksize device\n"
11264 "\n"
11265 msgstr ""
11266
11267 #. type: textblock
11268 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
11269 msgid ""
11270 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11271 "command:"
11272 msgstr ""
11273
11274 #. type: verbatim
11275 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
11276 #, no-wrap
11277 msgid ""
11278 " mke2fs -O journal_dev -b blocksize device\n"
11279 "\n"
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:3040
11284 msgid "mke2journal-L"
11285 msgstr "mke2journal-L"
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:3042
11289 #, no-wrap
11290 msgid ""
11291 " mke2journal-L blocksize label device\n"
11292 "\n"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
11297 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11298 msgstr ""
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:3046
11302 msgid "mke2journal-U"
11303 msgstr "mke2journal-U"
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:3048
11307 #, no-wrap
11308 msgid ""
11309 " mke2journal-U blocksize uuid device\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
11315 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11316 msgstr ""
11317
11318 #. type: =head2
11319 #: ../fish/guestfish-actions.pod:3052
11320 msgid "mkfifo"
11321 msgstr "mkfifo"
11322
11323 #. type: verbatim
11324 #: ../fish/guestfish-actions.pod:3054
11325 #, no-wrap
11326 msgid ""
11327 " mkfifo mode path\n"
11328 "\n"
11329 msgstr ""
11330 " mkfifo режим шлях\n"
11331 "\n"
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:3056
11335 msgid ""
11336 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11337 "is just a convenient wrapper around L</mknod>."
11338 msgstr ""
11339
11340 #. type: =head2
11341 #: ../fish/guestfish-actions.pod:3062
11342 msgid "mkfs"
11343 msgstr "mkfs"
11344
11345 #. type: verbatim
11346 #: ../fish/guestfish-actions.pod:3064
11347 #, no-wrap
11348 msgid ""
11349 " mkfs fstype device\n"
11350 "\n"
11351 msgstr ""
11352 " mkfs тип_файлової_системи пристрій\n"
11353 "\n"
11354
11355 #. type: textblock
11356 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
11357 msgid ""
11358 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11359 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11360 msgstr ""
11361
11362 #. type: =head2
11363 #: ../fish/guestfish-actions.pod:3070
11364 msgid "mkfs-b"
11365 msgstr "mkfs-b"
11366
11367 #. type: verbatim
11368 #: ../fish/guestfish-actions.pod:3072
11369 #, no-wrap
11370 msgid ""
11371 " mkfs-b fstype blocksize device\n"
11372 "\n"
11373 msgstr ""
11374
11375 #. type: textblock
11376 #: ../fish/guestfish-actions.pod:3074
11377 msgid ""
11378 "This call is similar to L</mkfs>, but it allows you to control the block "
11379 "size of the resulting filesystem.  Supported block sizes depend on the "
11380 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11381 msgstr ""
11382
11383 #. type: textblock
11384 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
11385 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4665
11386 msgid ""
11387 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11388 "cluster size."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3082
11393 msgid ""
11394 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
11395 "instead."
11396 msgstr ""
11397
11398 #. type: =head2
11399 #: ../fish/guestfish-actions.pod:3089
11400 msgid "mkfs-opts"
11401 msgstr "mkfs-opts"
11402
11403 #. type: verbatim
11404 #: ../fish/guestfish-actions.pod:3091
11405 #, no-wrap
11406 msgid ""
11407 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11408 "\n"
11409 msgstr ""
11410
11411 #. type: textblock
11412 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
11413 msgid ""
11414 "This function creates a filesystem on C<device>.  The filesystem type is "
11415 "C<fstype>, for example C<ext3>."
11416 msgstr ""
11417
11418 #. type: =item
11419 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
11420 msgid "C<blocksize>"
11421 msgstr "C<blocksize>"
11422
11423 #. type: textblock
11424 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
11425 msgid ""
11426 "The filesystem block size.  Supported block sizes depend on the filesystem "
11427 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11428 "filesystems."
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
11433 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11434 msgstr ""
11435
11436 #. type: =item
11437 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
11438 msgid "C<features>"
11439 msgstr "C<features>"
11440
11441 #. type: textblock
11442 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
11443 msgid "This passes the I<-O> parameter to the external mkfs program."
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
11448 msgid ""
11449 "For certain filesystem types, this allows extra filesystem features to be "
11450 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
11455 msgid ""
11456 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11457 "type."
11458 msgstr ""
11459
11460 #. type: =item
11461 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
11462 msgid "C<inode>"
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11467 msgid ""
11468 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11469 "sets the inode size (only for ext2/3/4 filesystems at present)."
11470 msgstr ""
11471
11472 #. type: =item
11473 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11474 msgid "C<sectorsize>"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11479 msgid ""
11480 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11481 "sets sector size for ufs filesystem."
11482 msgstr ""
11483
11484 #. type: =head2
11485 #: ../fish/guestfish-actions.pod:3136
11486 msgid "mkmountpoint"
11487 msgstr "mkmountpoint"
11488
11489 #. type: verbatim
11490 #: ../fish/guestfish-actions.pod:3138
11491 #, no-wrap
11492 msgid ""
11493 " mkmountpoint exemptpath\n"
11494 "\n"
11495 msgstr ""
11496
11497 #. type: textblock
11498 #: ../fish/guestfish-actions.pod:3140
11499 msgid ""
11500 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11501 "to create extra mountpoints before mounting the first filesystem."
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
11506 msgid ""
11507 "These calls are I<only> necessary in some very limited circumstances, mainly "
11508 "the case where you want to mount a mix of unrelated and/or read-only "
11509 "filesystems together."
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
11514 msgid ""
11515 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11516 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11517 "inside that.  You can unpack this as follows in guestfish:"
11518 msgstr ""
11519
11520 #. type: verbatim
11521 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11522 #, no-wrap
11523 msgid ""
11524 " add-ro Fedora-11-i686-Live.iso\n"
11525 " run\n"
11526 " mkmountpoint /cd\n"
11527 " mkmountpoint /sqsh\n"
11528 " mkmountpoint /ext3fs\n"
11529 " mount /dev/sda /cd\n"
11530 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11531 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11532 "\n"
11533 msgstr ""
11534 " add-ro Fedora-11-i686-Live.iso\n"
11535 " run\n"
11536 " mkmountpoint /cd\n"
11537 " mkmountpoint /sqsh\n"
11538 " mkmountpoint /ext3fs\n"
11539 " mount /dev/sda /cd\n"
11540 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11541 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11542 "\n"
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
11546 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:3164
11551 msgid ""
11552 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11553 "unexpected errors if you try to mix these calls.  It is safest to manually "
11554 "unmount filesystems and remove mountpoints after use."
11555 msgstr ""
11556
11557 #. type: textblock
11558 #: ../fish/guestfish-actions.pod:3168
11559 msgid ""
11560 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11561 "for this to work for manual mountpoints, you must ensure that the innermost "
11562 "mountpoints have the longest pathnames, as in the example code above."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
11567 msgid ""
11568 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../fish/guestfish-actions.pod:3175
11573 msgid ""
11574 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11575 "L</umount-all> to be called when the handle is closed which can also trigger "
11576 "these issues."
11577 msgstr ""
11578
11579 #. type: =head2
11580 #: ../fish/guestfish-actions.pod:3179
11581 msgid "mknod"
11582 msgstr "mknod"
11583
11584 #. type: verbatim
11585 #: ../fish/guestfish-actions.pod:3181
11586 #, no-wrap
11587 msgid ""
11588 " mknod mode devmajor devminor path\n"
11589 "\n"
11590 msgstr ""
11591
11592 #. type: textblock
11593 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
11594 msgid ""
11595 "This call creates block or character special devices, or named pipes (FIFOs)."
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
11600 msgid ""
11601 "The C<mode> parameter should be the mode, using the standard constants.  "
11602 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11603 "used when creating block and character special devices."
11604 msgstr ""
11605
11606 #. type: textblock
11607 #: ../fish/guestfish-actions.pod:3191
11608 msgid ""
11609 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11610 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11611 "regular file).  These constants are available in the standard Linux header "
11612 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11613 "wrappers around this command which bitwise OR in the appropriate constant "
11614 "for you."
11615 msgstr ""
11616
11617 #. type: =head2
11618 #: ../fish/guestfish-actions.pod:3201
11619 msgid "mknod-b"
11620 msgstr "mknod-b"
11621
11622 #. type: verbatim
11623 #: ../fish/guestfish-actions.pod:3203
11624 #, no-wrap
11625 msgid ""
11626 " mknod-b mode devmajor devminor path\n"
11627 "\n"
11628 msgstr ""
11629
11630 #. type: textblock
11631 #: ../fish/guestfish-actions.pod:3205
11632 msgid ""
11633 "This call creates a block device node called C<path> with mode C<mode> and "
11634 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11635 "wrapper around L</mknod>."
11636 msgstr ""
11637
11638 #. type: =head2
11639 #: ../fish/guestfish-actions.pod:3211
11640 msgid "mknod-c"
11641 msgstr "mknod-c"
11642
11643 #. type: verbatim
11644 #: ../fish/guestfish-actions.pod:3213
11645 #, no-wrap
11646 msgid ""
11647 " mknod-c mode devmajor devminor path\n"
11648 "\n"
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:3215
11653 msgid ""
11654 "This call creates a char device node called C<path> with mode C<mode> and "
11655 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11656 "wrapper around L</mknod>."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:3221
11661 msgid "mkswap"
11662 msgstr "mkswap"
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:3223
11666 #, no-wrap
11667 msgid ""
11668 " mkswap device\n"
11669 "\n"
11670 msgstr ""
11671 " mkswap пристрій\n"
11672 "\n"
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11676 msgid "Create a swap partition on C<device>."
11677 msgstr ""
11678
11679 #. type: =head2
11680 #: ../fish/guestfish-actions.pod:3227
11681 msgid "mkswap-L"
11682 msgstr "mkswap-L"
11683
11684 #. type: verbatim
11685 #: ../fish/guestfish-actions.pod:3229
11686 #, no-wrap
11687 msgid ""
11688 " mkswap-L label device\n"
11689 "\n"
11690 msgstr ""
11691 " mkswap-L мітка пристрій\n"
11692 "\n"
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11696 msgid "Create a swap partition on C<device> with label C<label>."
11697 msgstr ""
11698
11699 #. type: textblock
11700 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11701 msgid ""
11702 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11703 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11704 "or swap tools."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:3237
11709 msgid "mkswap-U"
11710 msgstr "mkswap-U"
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:3239
11714 #, no-wrap
11715 msgid ""
11716 " mkswap-U uuid device\n"
11717 "\n"
11718 msgstr ""
11719 " mkswap-U uuid пристрій\n"
11720 "\n"
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11724 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11725 msgstr ""
11726
11727 #. type: =head2
11728 #: ../fish/guestfish-actions.pod:3243
11729 msgid "mkswap-file"
11730 msgstr "mkswap-file"
11731
11732 #. type: verbatim
11733 #: ../fish/guestfish-actions.pod:3245
11734 #, no-wrap
11735 msgid ""
11736 " mkswap-file path\n"
11737 "\n"
11738 msgstr ""
11739 " mkswap-file шлях\n"
11740 "\n"
11741
11742 #. type: textblock
11743 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11744 msgid "Create a swap file."
11745 msgstr "Створити файл резервної пам’яті."
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:3249
11749 msgid ""
11750 "This command just writes a swap file signature to an existing file.  To "
11751 "create the file itself, use something like L</fallocate>."
11752 msgstr ""
11753
11754 #. type: =head2
11755 #: ../fish/guestfish-actions.pod:3252
11756 msgid "modprobe"
11757 msgstr "modprobe"
11758
11759 #. type: verbatim
11760 #: ../fish/guestfish-actions.pod:3254
11761 #, no-wrap
11762 msgid ""
11763 " modprobe modulename\n"
11764 "\n"
11765 msgstr ""
11766 " modprobe назва_модуля\n"
11767 "\n"
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11771 msgid "This loads a kernel module in the appliance."
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11776 msgid ""
11777 "The kernel module must have been whitelisted when libguestfs was built (see "
11778 "C<appliance/kmod.whitelist.in> in the source)."
11779 msgstr ""
11780
11781 #. type: =head2
11782 #: ../fish/guestfish-actions.pod:3261
11783 msgid "mount"
11784 msgstr "mount"
11785
11786 #. type: verbatim
11787 #: ../fish/guestfish-actions.pod:3263
11788 #, no-wrap
11789 msgid ""
11790 " mount device mountpoint\n"
11791 "\n"
11792 msgstr ""
11793 " mount пристрій точка_монтування\n"
11794 "\n"
11795
11796 #. type: textblock
11797 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4918
11798 msgid ""
11799 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11800 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11801 "those block devices contain partitions, they will have the usual names (eg. "
11802 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4924
11807 msgid ""
11808 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11809 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11810 "mounted on directories which already exist."
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11815 msgid ""
11816 "The mounted filesystem is writable, if we have sufficient permissions on the "
11817 "underlying device."
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3279
11822 msgid ""
11823 "B<Important note:> When you use this call, the filesystem options C<sync> "
11824 "and C<noatime> are set implicitly.  This was originally done because we "
11825 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11826 "very large negative performance impact and negligible effect on "
11827 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11828 "code that needs performance, and instead use L</mount-options> (use an empty "
11829 "string for the first parameter if you don't want any options)."
11830 msgstr ""
11831
11832 #. type: textblock
11833 #: ../fish/guestfish-actions.pod:3289
11834 msgid ""
11835 "This function is deprecated.  In new code, use the L</mount_options> call "
11836 "instead."
11837 msgstr ""
11838
11839 #. type: =head2
11840 #: ../fish/guestfish-actions.pod:3296
11841 msgid "mount-9p"
11842 msgstr ""
11843
11844 #. type: verbatim
11845 #: ../fish/guestfish-actions.pod:3298
11846 #, no-wrap
11847 msgid ""
11848 " mount-9p mounttag mountpoint [options:..]\n"
11849 "\n"
11850 msgstr ""
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11854 msgid ""
11855 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11856 "C<mountpoint>."
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11861 msgid ""
11862 "If required, C<trans=virtio> will be automatically added to the options.  "
11863 "Any other options required can be passed in the optional C<options> "
11864 "parameter."
11865 msgstr ""
11866
11867 #. type: =head2
11868 #: ../fish/guestfish-actions.pod:3309
11869 msgid "mount-loop"
11870 msgstr "mount-loop"
11871
11872 #. type: verbatim
11873 #: ../fish/guestfish-actions.pod:3311
11874 #, no-wrap
11875 msgid ""
11876 " mount-loop file mountpoint\n"
11877 "\n"
11878 msgstr ""
11879
11880 #. type: textblock
11881 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11882 msgid ""
11883 "This command lets you mount C<file> (a filesystem image in a file) on a "
11884 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11885 "mountpoint>."
11886 msgstr ""
11887
11888 #. type: =head2
11889 #: ../fish/guestfish-actions.pod:3317
11890 msgid "mount-options"
11891 msgstr "mount-options"
11892
11893 #. type: verbatim
11894 #: ../fish/guestfish-actions.pod:3319
11895 #, no-wrap
11896 msgid ""
11897 " mount-options options device mountpoint\n"
11898 "\n"
11899 msgstr ""
11900
11901 #. type: textblock
11902 #: ../fish/guestfish-actions.pod:3321
11903 msgid ""
11904 "This is the same as the L</mount> command, but it allows you to set the "
11905 "mount options as for the L<mount(8)> I<-o> flag."
11906 msgstr ""
11907
11908 #. type: textblock
11909 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11910 msgid ""
11911 "If the C<options> parameter is an empty string, then no options are passed "
11912 "(all options default to whatever the filesystem uses)."
11913 msgstr ""
11914
11915 #. type: =head2
11916 #: ../fish/guestfish-actions.pod:3329
11917 msgid "mount-ro"
11918 msgstr "mount-ro"
11919
11920 #. type: verbatim
11921 #: ../fish/guestfish-actions.pod:3331
11922 #, no-wrap
11923 msgid ""
11924 " mount-ro device mountpoint\n"
11925 "\n"
11926 msgstr ""
11927 " mount-ro пристрій точка_монтування\n"
11928 "\n"
11929
11930 #. type: textblock
11931 #: ../fish/guestfish-actions.pod:3333
11932 msgid ""
11933 "This is the same as the L</mount> command, but it mounts the filesystem with "
11934 "the read-only (I<-o ro>) flag."
11935 msgstr ""
11936
11937 #. type: =head2
11938 #: ../fish/guestfish-actions.pod:3336
11939 msgid "mount-vfs"
11940 msgstr "mount-vfs"
11941
11942 #. type: verbatim
11943 #: ../fish/guestfish-actions.pod:3338
11944 #, no-wrap
11945 msgid ""
11946 " mount-vfs options vfstype device mountpoint\n"
11947 "\n"
11948 msgstr ""
11949
11950 #. type: textblock
11951 #: ../fish/guestfish-actions.pod:3340
11952 msgid ""
11953 "This is the same as the L</mount> command, but it allows you to set both the "
11954 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../fish/guestfish-actions.pod:3344
11959 msgid "mountpoints"
11960 msgstr "mountpoints"
11961
11962 #. type: verbatim
11963 #: ../fish/guestfish-actions.pod:3346
11964 #, no-wrap
11965 msgid ""
11966 " mountpoints\n"
11967 "\n"
11968 msgstr ""
11969 " mountpoints\n"
11970 "\n"
11971
11972 #. type: textblock
11973 #: ../fish/guestfish-actions.pod:3348
11974 msgid ""
11975 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11976 "This one returns a hash table (map) of device name to directory where the "
11977 "device is mounted."
11978 msgstr ""
11979
11980 #. type: =head2
11981 #: ../fish/guestfish-actions.pod:3352
11982 msgid "mounts"
11983 msgstr "mounts"
11984
11985 #. type: verbatim
11986 #: ../fish/guestfish-actions.pod:3354
11987 #, no-wrap
11988 msgid ""
11989 " mounts\n"
11990 "\n"
11991 msgstr ""
11992 " mounts\n"
11993 "\n"
11994
11995 #. type: textblock
11996 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11997 msgid ""
11998 "This returns the list of currently mounted filesystems.  It returns the list "
11999 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12000 msgstr ""
12001
12002 #. type: textblock
12003 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
12004 msgid "Some internal mounts are not shown."
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../fish/guestfish-actions.pod:3361
12009 msgid "See also: L</mountpoints>"
12010 msgstr "Див. також L</mountpoints>"
12011
12012 #. type: =head2
12013 #: ../fish/guestfish-actions.pod:3363
12014 msgid "mv"
12015 msgstr "mv"
12016
12017 #. type: verbatim
12018 #: ../fish/guestfish-actions.pod:3365
12019 #, no-wrap
12020 msgid ""
12021 " mv src dest\n"
12022 "\n"
12023 msgstr ""
12024 " mv джерело призначення\n"
12025 "\n"
12026
12027 #. type: textblock
12028 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
12029 msgid ""
12030 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12031 "destination filename or destination directory."
12032 msgstr ""
12033
12034 #. type: =head2
12035 #: ../fish/guestfish-actions.pod:3370
12036 msgid "ntfs-3g-probe"
12037 msgstr "ntfs-3g-probe"
12038
12039 #. type: verbatim
12040 #: ../fish/guestfish-actions.pod:3372
12041 #, no-wrap
12042 msgid ""
12043 " ntfs-3g-probe true|false device\n"
12044 "\n"
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
12049 msgid ""
12050 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12051 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12052 "write, and some cannot be mounted at all)."
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
12057 msgid ""
12058 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12059 "can be mounted read-write.  Set it to false if you want to test if the "
12060 "volume can be mounted read-only."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
12065 msgid ""
12066 "The return value is an integer which C<0> if the operation would succeed, or "
12067 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12068 msgstr ""
12069
12070 #. type: =head2
12071 #: ../fish/guestfish-actions.pod:3386
12072 msgid "ntfsresize"
12073 msgstr "ntfsresize"
12074
12075 #. type: verbatim
12076 #: ../fish/guestfish-actions.pod:3388
12077 #, no-wrap
12078 msgid ""
12079 " ntfsresize device\n"
12080 "\n"
12081 msgstr ""
12082 " ntfsresize пристрій\n"
12083 "\n"
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
12087 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5186
12088 msgid ""
12089 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12090 "size of the underlying device."
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5150
12095 msgid ""
12096 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12097 "consistency check (for safety).  You have to boot into Windows to perform "
12098 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12099 "resize filesystems which have been marked in this way.  So in effect it is "
12100 "not possible to call ntfsresize multiple times on a single filesystem "
12101 "without booting into Windows between each resize."
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
12106 #: ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212
12107 msgid "See also L<ntfsresize(8)>."
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
12112 msgid ""
12113 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
12114 "instead."
12115 msgstr ""
12116
12117 #. type: =head2
12118 #: ../fish/guestfish-actions.pod:3410
12119 msgid "ntfsresize-opts"
12120 msgstr ""
12121
12122 #. type: verbatim
12123 #: ../fish/guestfish-actions.pod:3412
12124 #, no-wrap
12125 msgid ""
12126 " ntfsresize-opts device [size:..] [force:..]\n"
12127 "\n"
12128 msgstr ""
12129
12130 #. type: textblock
12131 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
12132 msgid ""
12133 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12134 "resized to fit the container (eg. partition)."
12135 msgstr ""
12136
12137 #. type: =item
12138 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
12139 msgid "C<force>"
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12144 msgid ""
12145 "If this option is true, then force the resize of the filesystem even if the "
12146 "filesystem is marked as requiring a consistency check."
12147 msgstr ""
12148
12149 #. type: textblock
12150 #: ../fish/guestfish-actions.pod:3431
12151 msgid ""
12152 "After the resize operation, the filesystem is always marked as requiring a "
12153 "consistency check (for safety).  You have to boot into Windows to perform "
12154 "this check and clear this condition.  If you I<don't> set the C<force> "
12155 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12156 "a single filesystem without booting into Windows between each resize."
12157 msgstr ""
12158
12159 #. type: =head2
12160 #: ../fish/guestfish-actions.pod:3444
12161 msgid "ntfsresize-size"
12162 msgstr "ntfsresize-size"
12163
12164 #. type: verbatim
12165 #: ../fish/guestfish-actions.pod:3446
12166 #, no-wrap
12167 msgid ""
12168 " ntfsresize-size device size\n"
12169 "\n"
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3448
12174 msgid ""
12175 "This command is the same as L</ntfsresize> except that it allows you to "
12176 "specify the new size (in bytes) explicitly."
12177 msgstr ""
12178
12179 #. type: =head2
12180 #: ../fish/guestfish-actions.pod:3458
12181 msgid "part-add"
12182 msgstr "part-add"
12183
12184 #. type: verbatim
12185 #: ../fish/guestfish-actions.pod:3460
12186 #, no-wrap
12187 msgid ""
12188 " part-add device prlogex startsect endsect\n"
12189 "\n"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3462
12194 msgid ""
12195 "This command adds a partition to C<device>.  If there is no partition table "
12196 "on the device, call L</part-init> first."
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
12201 msgid ""
12202 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12203 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12204 "C<logical>) and C<e> (or C<extended>) partition types."
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12209 msgid ""
12210 "C<startsect> and C<endsect> are the start and end of the partition in "
12211 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12212 "from the end of the disk (C<-1> is the last sector)."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3474
12217 msgid ""
12218 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12219 "part-disk> to do that."
12220 msgstr ""
12221
12222 #. type: =head2
12223 #: ../fish/guestfish-actions.pod:3477
12224 msgid "part-del"
12225 msgstr "part-del"
12226
12227 #. type: verbatim
12228 #: ../fish/guestfish-actions.pod:3479
12229 #, no-wrap
12230 msgid ""
12231 " part-del device partnum\n"
12232 "\n"
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
12237 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12238 msgstr ""
12239
12240 #. type: textblock
12241 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
12242 msgid ""
12243 "Note that in the case of MBR partitioning, deleting an extended partition "
12244 "also deletes any logical partitions it contains."
12245 msgstr ""
12246
12247 #. type: =head2
12248 #: ../fish/guestfish-actions.pod:3487
12249 msgid "part-disk"
12250 msgstr "part-disk"
12251
12252 #. type: verbatim
12253 #: ../fish/guestfish-actions.pod:3489
12254 #, no-wrap
12255 msgid ""
12256 " part-disk device parttype\n"
12257 "\n"
12258 msgstr ""
12259 " part-disk пристрій тип_розділу\n"
12260 "\n"
12261
12262 #. type: textblock
12263 #: ../fish/guestfish-actions.pod:3491
12264 msgid ""
12265 "This command is simply a combination of L</part-init> followed by L</part-"
12266 "add> to create a single primary partition covering the whole disk."
12267 msgstr ""
12268
12269 #. type: textblock
12270 #: ../fish/guestfish-actions.pod:3495
12271 msgid ""
12272 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12273 "possible values are described in L</part-init>."
12274 msgstr ""
12275
12276 #. type: =head2
12277 #: ../fish/guestfish-actions.pod:3501
12278 msgid "part-get-bootable"
12279 msgstr "part-get-bootable"
12280
12281 #. type: verbatim
12282 #: ../fish/guestfish-actions.pod:3503
12283 #, no-wrap
12284 msgid ""
12285 " part-get-bootable device partnum\n"
12286 "\n"
12287 msgstr ""
12288
12289 #. type: textblock
12290 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
12291 msgid ""
12292 "This command returns true if the partition C<partnum> on C<device> has the "
12293 "bootable flag set."
12294 msgstr ""
12295
12296 #. type: textblock
12297 #: ../fish/guestfish-actions.pod:3508
12298 msgid "See also L</part-set-bootable>."
12299 msgstr "Див. також L</part-set-bootable>."
12300
12301 #. type: =head2
12302 #: ../fish/guestfish-actions.pod:3510
12303 msgid "part-get-mbr-id"
12304 msgstr "part-get-mbr-id"
12305
12306 #. type: verbatim
12307 #: ../fish/guestfish-actions.pod:3512
12308 #, no-wrap
12309 msgid ""
12310 " part-get-mbr-id device partnum\n"
12311 "\n"
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
12316 msgid ""
12317 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12318 "partition C<partnum>."
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
12323 msgid ""
12324 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12325 "undefined results for other partition table types (see L</part-get-"
12326 "parttype>)."
12327 msgstr ""
12328
12329 #. type: =head2
12330 #: ../fish/guestfish-actions.pod:3521
12331 msgid "part-get-parttype"
12332 msgstr "part-get-parttype"
12333
12334 #. type: verbatim
12335 #: ../fish/guestfish-actions.pod:3523
12336 #, no-wrap
12337 msgid ""
12338 " part-get-parttype device\n"
12339 "\n"
12340 msgstr ""
12341 " part-get-parttype пристрій\n"
12342 "\n"
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
12346 msgid ""
12347 "This command examines the partition table on C<device> and returns the "
12348 "partition table type (format) being used."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:3528
12353 msgid ""
12354 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12355 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12356 "possible, although unusual.  See L</part-init> for a full list."
12357 msgstr ""
12358
12359 #. type: =head2
12360 #: ../fish/guestfish-actions.pod:3533
12361 msgid "part-init"
12362 msgstr "part-init"
12363
12364 #. type: verbatim
12365 #: ../fish/guestfish-actions.pod:3535
12366 #, no-wrap
12367 msgid ""
12368 " part-init device parttype\n"
12369 "\n"
12370 msgstr ""
12371
12372 #. type: textblock
12373 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
12374 msgid ""
12375 "This creates an empty partition table on C<device> of one of the partition "
12376 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12377 "(for large disks)."
12378 msgstr ""
12379
12380 #. type: textblock
12381 #: ../fish/guestfish-actions.pod:3541
12382 msgid ""
12383 "Initially there are no partitions.  Following this, you should call L</part-"
12384 "add> for each partition required."
12385 msgstr ""
12386
12387 #. type: textblock
12388 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
12389 msgid "Possible values for C<parttype> are:"
12390 msgstr ""
12391
12392 #. type: =item
12393 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
12394 msgid "B<efi>"
12395 msgstr ""
12396
12397 #. type: =item
12398 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
12399 msgid "B<gpt>"
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
12404 msgid "Intel EFI / GPT partition table."
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
12409 msgid ""
12410 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12411 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12412 "the C<mbr> format."
12413 msgstr ""
12414
12415 #. type: =item
12416 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
12417 msgid "B<mbr>"
12418 msgstr ""
12419
12420 #. type: =item
12421 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
12422 msgid "B<msdos>"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
12427 msgid ""
12428 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12429 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12430 "TB.  For large disks we recommend using C<gpt>."
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
12435 msgid ""
12436 "Other partition table types that may work but are not supported include:"
12437 msgstr ""
12438
12439 #. type: =item
12440 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12441 msgid "B<aix>"
12442 msgstr "B<aix>"
12443
12444 #. type: textblock
12445 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
12446 msgid "AIX disk labels."
12447 msgstr "Мітки дисків AIX."
12448
12449 #. type: =item
12450 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
12451 #, fuzzy
12452 #| msgid "B<amiga> | B<rdb>"
12453 msgid "B<amiga>"
12454 msgstr "B<amiga> | B<rdb>"
12455
12456 #. type: =item
12457 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
12458 msgid "B<rdb>"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
12463 msgid "Amiga \"Rigid Disk Block\" format."
12464 msgstr "Формат \"Rigid Disk Block\" Amiga."
12465
12466 #. type: =item
12467 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
12468 msgid "B<bsd>"
12469 msgstr "B<bsd>"
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
12473 msgid "BSD disk labels."
12474 msgstr "Мітки дисків BSD."
12475
12476 #. type: =item
12477 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
12478 msgid "B<dasd>"
12479 msgstr "B<dasd>"
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
12483 msgid "DASD, used on IBM mainframes."
12484 msgstr "DASD, використовувалися у мейнфреймах IBM."
12485
12486 #. type: =item
12487 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
12488 msgid "B<dvh>"
12489 msgstr "B<dvh>"
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
12493 msgid "MIPS/SGI volumes."
12494 msgstr "Томи MIPS/SGI."
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12498 msgid "B<mac>"
12499 msgstr "B<mac>"
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
12503 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12504 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12505
12506 #. type: =item
12507 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
12508 msgid "B<pc98>"
12509 msgstr "B<pc98>"
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
12513 msgid "NEC PC-98 format, common in Japan apparently."
12514 msgstr "Формат NEC PC-98, поширений у Японії."
12515
12516 #. type: =item
12517 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
12518 msgid "B<sun>"
12519 msgstr "B<sun>"
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
12523 msgid "Sun disk labels."
12524 msgstr "Мітки дисків Sun."
12525
12526 #. type: =head2
12527 #: ../fish/guestfish-actions.pod:3610
12528 msgid "part-list"
12529 msgstr "part-list"
12530
12531 #. type: verbatim
12532 #: ../fish/guestfish-actions.pod:3612
12533 #, no-wrap
12534 msgid ""
12535 " part-list device\n"
12536 "\n"
12537 msgstr ""
12538 " part-list device\n"
12539 "\n"
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
12543 msgid ""
12544 "This command parses the partition table on C<device> and returns the list of "
12545 "partitions found."
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
12550 msgid "The fields in the returned structure are:"
12551 msgstr ""
12552
12553 #. type: =item
12554 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
12555 msgid "B<part_num>"
12556 msgstr "B<part_num>"
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
12560 msgid "Partition number, counting from 1."
12561 msgstr ""
12562
12563 #. type: =item
12564 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
12565 msgid "B<part_start>"
12566 msgstr "B<part_start>"
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3627
12570 msgid ""
12571 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12572 "the device's sector size, see L</blockdev-getss>."
12573 msgstr ""
12574
12575 #. type: =item
12576 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12577 msgid "B<part_end>"
12578 msgstr "B<part_end>"
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
12582 msgid "End of the partition in bytes."
12583 msgstr ""
12584
12585 #. type: =item
12586 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
12587 msgid "B<part_size>"
12588 msgstr "B<part_size>"
12589
12590 #. type: textblock
12591 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
12592 msgid "Size of the partition in bytes."
12593 msgstr ""
12594
12595 #. type: =head2
12596 #: ../fish/guestfish-actions.pod:3640
12597 msgid "part-set-bootable"
12598 msgstr "part-set-bootable"
12599
12600 #. type: verbatim
12601 #: ../fish/guestfish-actions.pod:3642
12602 #, no-wrap
12603 msgid ""
12604 " part-set-bootable device partnum true|false\n"
12605 "\n"
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
12610 msgid ""
12611 "This sets the bootable flag on partition numbered C<partnum> on device "
12612 "C<device>.  Note that partitions are numbered from 1."
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
12617 msgid ""
12618 "The bootable flag is used by some operating systems (notably Windows) to "
12619 "determine which partition to boot from.  It is by no means universally "
12620 "recognized."
12621 msgstr ""
12622
12623 #. type: =head2
12624 #: ../fish/guestfish-actions.pod:3651
12625 msgid "part-set-mbr-id"
12626 msgstr "part-set-mbr-id"
12627
12628 #. type: verbatim
12629 #: ../fish/guestfish-actions.pod:3653
12630 #, no-wrap
12631 msgid ""
12632 " part-set-mbr-id device partnum idbyte\n"
12633 "\n"
12634 msgstr ""
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
12638 msgid ""
12639 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12640 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12641 "documentation are in fact hexadecimal numbers, but usually documented "
12642 "without any leading \"0x\" which might be confusing."
12643 msgstr ""
12644
12645 #. type: =head2
12646 #: ../fish/guestfish-actions.pod:3665
12647 msgid "part-set-name"
12648 msgstr "part-set-name"
12649
12650 #. type: verbatim
12651 #: ../fish/guestfish-actions.pod:3667
12652 #, no-wrap
12653 msgid ""
12654 " part-set-name device partnum name\n"
12655 "\n"
12656 msgstr ""
12657
12658 #. type: textblock
12659 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
12660 msgid ""
12661 "This sets the partition name on partition numbered C<partnum> on device "
12662 "C<device>.  Note that partitions are numbered from 1."
12663 msgstr ""
12664
12665 #. type: textblock
12666 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
12667 msgid ""
12668 "The partition name can only be set on certain types of partition table.  "
12669 "This works on C<gpt> but not on C<mbr> partitions."
12670 msgstr ""
12671
12672 #. type: =head2
12673 #: ../fish/guestfish-actions.pod:3675
12674 msgid "part-to-dev"
12675 msgstr "part-to-dev"
12676
12677 #. type: verbatim
12678 #: ../fish/guestfish-actions.pod:3677
12679 #, no-wrap
12680 msgid ""
12681 " part-to-dev partition\n"
12682 "\n"
12683 msgstr ""
12684 " part-to-dev розділ\n"
12685 "\n"
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
12689 msgid ""
12690 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12691 "partition number, returning the device name (eg. \"/dev/sdb\")."
12692 msgstr ""
12693
12694 #. type: textblock
12695 #: ../fish/guestfish-actions.pod:3683
12696 msgid ""
12697 "The named partition must exist, for example as a string returned from L</"
12698 "list-partitions>."
12699 msgstr ""
12700
12701 #. type: =head2
12702 #: ../fish/guestfish-actions.pod:3686
12703 msgid "ping-daemon"
12704 msgstr "ping-daemon"
12705
12706 #. type: verbatim
12707 #: ../fish/guestfish-actions.pod:3688
12708 #, no-wrap
12709 msgid ""
12710 " ping-daemon\n"
12711 "\n"
12712 msgstr ""
12713 " ping-daemon\n"
12714 "\n"
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
12718 msgid ""
12719 "This is a test probe into the guestfs daemon running inside the qemu "
12720 "subprocess.  Calling this function checks that the daemon responds to the "
12721 "ping message, without affecting the daemon or attached block device(s) in "
12722 "any other way."
12723 msgstr ""
12724
12725 #. type: =head2
12726 #: ../fish/guestfish-actions.pod:3695
12727 msgid "pread"
12728 msgstr "pread"
12729
12730 #. type: verbatim
12731 #: ../fish/guestfish-actions.pod:3697
12732 #, no-wrap
12733 msgid ""
12734 " pread path count offset\n"
12735 "\n"
12736 msgstr ""
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
12740 msgid ""
12741 "This command lets you read part of a file.  It reads C<count> bytes of the "
12742 "file, starting at C<offset>, from file C<path>."
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717
12747 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
12748 msgid ""
12749 "This may read fewer bytes than requested.  For further details see the "
12750 "L<pread(2)> system call."
12751 msgstr ""
12752
12753 #. type: textblock
12754 #: ../fish/guestfish-actions.pod:3705
12755 msgid "See also L</pwrite>, L</pread-device>."
12756 msgstr "Див. також L</pwrite>, L</pread-device>."
12757
12758 #. type: =head2
12759 #: ../fish/guestfish-actions.pod:3710
12760 msgid "pread-device"
12761 msgstr "pread-device"
12762
12763 #. type: verbatim
12764 #: ../fish/guestfish-actions.pod:3712
12765 #, no-wrap
12766 msgid ""
12767 " pread-device device count offset\n"
12768 "\n"
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
12773 msgid ""
12774 "This command lets you read part of a file.  It reads C<count> bytes of "
12775 "C<device>, starting at C<offset>."
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../fish/guestfish-actions.pod:3720
12780 msgid "See also L</pread>."
12781 msgstr "Див. також L</pread>."
12782
12783 #. type: =head2
12784 #: ../fish/guestfish-actions.pod:3725
12785 msgid "pvcreate"
12786 msgstr "pvcreate"
12787
12788 #. type: verbatim
12789 #: ../fish/guestfish-actions.pod:3727
12790 #, no-wrap
12791 msgid ""
12792 " pvcreate device\n"
12793 "\n"
12794 msgstr ""
12795 " pvcreate пристрій\n"
12796 "\n"
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
12800 msgid ""
12801 "This creates an LVM physical volume on the named C<device>, where C<device> "
12802 "should usually be a partition name such as C</dev/sda1>."
12803 msgstr ""
12804
12805 #. type: =head2
12806 #: ../fish/guestfish-actions.pod:3733
12807 msgid "pvremove"
12808 msgstr "pvremove"
12809
12810 #. type: verbatim
12811 #: ../fish/guestfish-actions.pod:3735
12812 #, no-wrap
12813 msgid ""
12814 " pvremove device\n"
12815 "\n"
12816 msgstr ""
12817 " pvremove пристрій\n"
12818 "\n"
12819
12820 #. type: textblock
12821 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
12822 msgid ""
12823 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12824 "it."
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
12829 msgid ""
12830 "The implementation uses the C<pvremove> command which refuses to wipe "
12831 "physical volumes that contain any volume groups, so you have to remove those "
12832 "first."
12833 msgstr ""
12834
12835 #. type: =head2
12836 #: ../fish/guestfish-actions.pod:3744
12837 msgid "pvresize"
12838 msgstr "pvresize"
12839
12840 #. type: verbatim
12841 #: ../fish/guestfish-actions.pod:3746
12842 #, no-wrap
12843 msgid ""
12844 " pvresize device\n"
12845 "\n"
12846 msgstr ""
12847 " pvresize пристрій\n"
12848 "\n"
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
12852 msgid ""
12853 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12854 "the new size of the underlying device."
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../fish/guestfish-actions.pod:3751
12859 msgid "pvresize-size"
12860 msgstr "pvresize-size"
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:3753
12864 #, no-wrap
12865 msgid ""
12866 " pvresize-size device size\n"
12867 "\n"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:3755
12872 msgid ""
12873 "This command is the same as L</pvresize> except that it allows you to "
12874 "specify the new size (in bytes) explicitly."
12875 msgstr ""
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:3758
12879 msgid "pvs"
12880 msgstr "pvs"
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:3760
12884 #, no-wrap
12885 msgid ""
12886 " pvs\n"
12887 "\n"
12888 msgstr ""
12889 " pvs\n"
12890 "\n"
12891
12892 #. type: textblock
12893 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
12894 msgid ""
12895 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12896 "(8)> command."
12897 msgstr ""
12898
12899 #. type: textblock
12900 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
12901 msgid ""
12902 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12903 "sda2>)."
12904 msgstr ""
12905
12906 #. type: textblock
12907 #: ../fish/guestfish-actions.pod:3768
12908 msgid "See also L</pvs-full>."
12909 msgstr "Див. також L</pvs-full>."
12910
12911 #. type: =head2
12912 #: ../fish/guestfish-actions.pod:3770
12913 msgid "pvs-full"
12914 msgstr "pvs-full"
12915
12916 #. type: verbatim
12917 #: ../fish/guestfish-actions.pod:3772
12918 #, no-wrap
12919 msgid ""
12920 " pvs-full\n"
12921 "\n"
12922 msgstr ""
12923 " pvs-full\n"
12924 "\n"
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
12928 msgid ""
12929 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12930 "(8)> command.  The \"full\" version includes all fields."
12931 msgstr ""
12932
12933 #. type: =head2
12934 #: ../fish/guestfish-actions.pod:3777
12935 msgid "pvuuid"
12936 msgstr "pvuuid"
12937
12938 #. type: verbatim
12939 #: ../fish/guestfish-actions.pod:3779
12940 #, no-wrap
12941 msgid ""
12942 " pvuuid device\n"
12943 "\n"
12944 msgstr ""
12945 " pvuuid пристрій\n"
12946 "\n"
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
12950 msgid "This command returns the UUID of the LVM PV C<device>."
12951 msgstr ""
12952
12953 #. type: =head2
12954 #: ../fish/guestfish-actions.pod:3783
12955 msgid "pwrite"
12956 msgstr "pwrite"
12957
12958 #. type: verbatim
12959 #: ../fish/guestfish-actions.pod:3785
12960 #, no-wrap
12961 msgid ""
12962 " pwrite path content offset\n"
12963 "\n"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
12968 msgid ""
12969 "This command writes to part of a file.  It writes the data buffer C<content> "
12970 "to the file C<path> starting at offset C<offset>."
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
12975 msgid ""
12976 "This command implements the L<pwrite(2)> system call, and like that system "
12977 "call it may not write the full data requested.  The return value is the "
12978 "number of bytes that were actually written to the file.  This could even be "
12979 "0, although short writes are unlikely for regular files in ordinary "
12980 "circumstances."
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:3796
12985 msgid "See also L</pread>, L</pwrite-device>."
12986 msgstr "Див. також L</pread>, L</pwrite-device>."
12987
12988 #. type: =head2
12989 #: ../fish/guestfish-actions.pod:3801
12990 msgid "pwrite-device"
12991 msgstr "pwrite-device"
12992
12993 #. type: verbatim
12994 #: ../fish/guestfish-actions.pod:3803
12995 #, no-wrap
12996 msgid ""
12997 " pwrite-device device content offset\n"
12998 "\n"
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
13003 msgid ""
13004 "This command writes to part of a device.  It writes the data buffer "
13005 "C<content> to C<device> starting at offset C<offset>."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
13010 msgid ""
13011 "This command implements the L<pwrite(2)> system call, and like that system "
13012 "call it may not write the full data requested (although short writes to disk "
13013 "devices and partitions are probably impossible with standard Linux kernels)."
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../fish/guestfish-actions.pod:3813
13018 msgid "See also L</pwrite>."
13019 msgstr "Див. також L</pwrite>."
13020
13021 #. type: =head2
13022 #: ../fish/guestfish-actions.pod:3818
13023 msgid "read-file"
13024 msgstr "read-file"
13025
13026 #. type: verbatim
13027 #: ../fish/guestfish-actions.pod:3820
13028 #, no-wrap
13029 msgid ""
13030 " read-file path\n"
13031 "\n"
13032 msgstr ""
13033 " read-file шлях\n"
13034 "\n"
13035
13036 #. type: textblock
13037 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
13038 msgid "This calls returns the contents of the file C<path> as a buffer."
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:3825
13043 msgid ""
13044 "Unlike L</cat>, this function can correctly handle files that contain "
13045 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13046 "is limited in the total size of file that can be handled."
13047 msgstr ""
13048
13049 #. type: =head2
13050 #: ../fish/guestfish-actions.pod:3833
13051 msgid "read-lines"
13052 msgstr "read-lines"
13053
13054 #. type: verbatim
13055 #: ../fish/guestfish-actions.pod:3835
13056 #, no-wrap
13057 msgid ""
13058 " read-lines path\n"
13059 "\n"
13060 msgstr ""
13061 " read-lines шлях\n"
13062 "\n"
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
13066 msgid ""
13067 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13068 "C<CRLF> character sequences are I<not> returned."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3842
13073 msgid ""
13074 "Note that this function cannot correctly handle binary files (specifically, "
13075 "files containing C<\\0> character which is treated as end of line).  For "
13076 "those you need to use the L</read-file> function which has a more complex "
13077 "interface."
13078 msgstr ""
13079
13080 #. type: =head2
13081 #: ../fish/guestfish-actions.pod:3847
13082 msgid "readdir"
13083 msgstr "readdir"
13084
13085 #. type: verbatim
13086 #: ../fish/guestfish-actions.pod:3849
13087 #, no-wrap
13088 msgid ""
13089 " readdir dir\n"
13090 "\n"
13091 msgstr ""
13092 " readdir каталог\n"
13093 "\n"
13094
13095 #. type: textblock
13096 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
13097 msgid "This returns the list of directory entries in directory C<dir>."
13098 msgstr ""
13099
13100 #. type: textblock
13101 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
13102 msgid ""
13103 "All entries in the directory are returned, including C<.> and C<..>.  The "
13104 "entries are I<not> sorted, but returned in the same order as the underlying "
13105 "filesystem."
13106 msgstr ""
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
13110 msgid ""
13111 "Also this call returns basic file type information about each file.  The "
13112 "C<ftyp> field will contain one of the following characters:"
13113 msgstr ""
13114
13115 #. type: =item
13116 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13117 msgid "'b'"
13118 msgstr "'b'"
13119
13120 #. type: textblock
13121 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
13122 msgid "Block special"
13123 msgstr "Блоковий особливий"
13124
13125 #. type: =item
13126 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
13127 msgid "'c'"
13128 msgstr "'c'"
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
13132 msgid "Char special"
13133 msgstr "Символьний особливий"
13134
13135 #. type: =item
13136 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
13137 msgid "'d'"
13138 msgstr "'d'"
13139
13140 #. type: textblock
13141 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
13142 msgid "Directory"
13143 msgstr "Каталог"
13144
13145 #. type: =item
13146 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
13147 msgid "'f'"
13148 msgstr "'f'"
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
13152 msgid "FIFO (named pipe)"
13153 msgstr "FIFO (іменований канал)"
13154
13155 #. type: =item
13156 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13157 msgid "'l'"
13158 msgstr "'l'"
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13162 msgid "Symbolic link"
13163 msgstr "Символічне посилання"
13164
13165 #. type: =item
13166 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
13167 msgid "'r'"
13168 msgstr "'r'"
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13172 msgid "Regular file"
13173 msgstr "Звичайний файл"
13174
13175 #. type: =item
13176 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
13177 msgid "'s'"
13178 msgstr "'s'"
13179
13180 #. type: textblock
13181 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
13182 msgid "Socket"
13183 msgstr "Сокет"
13184
13185 #. type: =item
13186 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
13187 msgid "'u'"
13188 msgstr "'u'"
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
13192 msgid "Unknown file type"
13193 msgstr "Невідомий тип файла"
13194
13195 #. type: =item
13196 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
13197 msgid "'?'"
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
13202 msgid ""
13203 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13204 msgstr ""
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:3901
13208 msgid ""
13209 "This function is primarily intended for use by programs.  To get a simple "
13210 "list of names, use L</ls>.  To get a printable directory for human "
13211 "consumption, use L</ll>."
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:3905
13216 msgid "readlink"
13217 msgstr "readlink"
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:3907
13221 #, no-wrap
13222 msgid ""
13223 " readlink path\n"
13224 "\n"
13225 msgstr ""
13226 " readlink шлях\n"
13227 "\n"
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
13231 msgid "This command reads the target of a symbolic link."
13232 msgstr ""
13233
13234 #. type: =head2
13235 #: ../fish/guestfish-actions.pod:3911
13236 msgid "readlinklist"
13237 msgstr "readlinklist"
13238
13239 #. type: verbatim
13240 #: ../fish/guestfish-actions.pod:3913
13241 #, no-wrap
13242 msgid ""
13243 " readlinklist path 'names ...'\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
13249 msgid ""
13250 "This call allows you to do a C<readlink> operation on multiple files, where "
13251 "all files are in the directory C<path>.  C<names> is the list of files from "
13252 "this directory."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
13257 msgid ""
13258 "On return you get a list of strings, with a one-to-one correspondence to the "
13259 "C<names> list.  Each string is the value of the symbolic link."
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
13264 msgid ""
13265 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13266 "result string is the empty string C<\"\">.  However the whole operation is "
13267 "completed even if there were C<readlink(2)> errors, and so you can call this "
13268 "function with names where you don't know if they are symbolic links already "
13269 "(albeit slightly less efficient)."
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
13274 msgid ""
13275 "This call is intended for programs that want to efficiently list a directory "
13276 "contents without making many round-trips.  Very long directory listings "
13277 "might cause the protocol message size to be exceeded, causing this call to "
13278 "fail.  The caller must split up such requests into smaller groups of names."
13279 msgstr ""
13280
13281 #. type: =head2
13282 #: ../fish/guestfish-actions.pod:3937
13283 msgid "realpath"
13284 msgstr "realpath"
13285
13286 #. type: verbatim
13287 #: ../fish/guestfish-actions.pod:3939
13288 #, no-wrap
13289 msgid ""
13290 " realpath path\n"
13291 "\n"
13292 msgstr ""
13293 " realpath шлях\n"
13294 "\n"
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
13298 msgid ""
13299 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13300 "has no C<.>, C<..> or symbolic link path elements."
13301 msgstr ""
13302
13303 #. type: =head2
13304 #: ../fish/guestfish-actions.pod:3944
13305 msgid "removexattr"
13306 msgstr "removexattr"
13307
13308 #. type: verbatim
13309 #: ../fish/guestfish-actions.pod:3946
13310 #, no-wrap
13311 msgid ""
13312 " removexattr xattr path\n"
13313 "\n"
13314 msgstr ""
13315
13316 #. type: textblock
13317 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
13318 msgid ""
13319 "This call removes the extended attribute named C<xattr> of the file C<path>."
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../fish/guestfish-actions.pod:3951
13324 msgid "See also: L</lremovexattr>, L<attr(5)>."
13325 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13326
13327 #. type: =head2
13328 #: ../fish/guestfish-actions.pod:3953
13329 msgid "resize2fs"
13330 msgstr "resize2fs"
13331
13332 #. type: verbatim
13333 #: ../fish/guestfish-actions.pod:3955
13334 #, no-wrap
13335 msgid ""
13336 " resize2fs device\n"
13337 "\n"
13338 msgstr ""
13339 " resize2fs пристрій\n"
13340 "\n"
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
13344 msgid ""
13345 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13346 "underlying device."
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:3960
13351 msgid ""
13352 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13353 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13354 "gives an error about this and sometimes not.  In any case, it is always safe "
13355 "to call L</e2fsck-f> before calling this function."
13356 msgstr ""
13357
13358 #. type: =head2
13359 #: ../fish/guestfish-actions.pod:3966
13360 msgid "resize2fs-M"
13361 msgstr "resize2fs-M"
13362
13363 #. type: verbatim
13364 #: ../fish/guestfish-actions.pod:3968
13365 #, no-wrap
13366 msgid ""
13367 " resize2fs-M device\n"
13368 "\n"
13369 msgstr ""
13370 " resize2fs-M пристрій\n"
13371 "\n"
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3970
13375 msgid ""
13376 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13377 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13378 "command."
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:3974
13383 msgid ""
13384 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13385 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13386 "multiplied together, give the resulting size of the minimal filesystem in "
13387 "bytes."
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3979
13392 msgid "resize2fs-size"
13393 msgstr "resize2fs-size"
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3981
13397 #, no-wrap
13398 msgid ""
13399 " resize2fs-size device size\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3983
13405 msgid ""
13406 "This command is the same as L</resize2fs> except that it allows you to "
13407 "specify the new size (in bytes) explicitly."
13408 msgstr ""
13409
13410 #. type: =head2
13411 #: ../fish/guestfish-actions.pod:3986
13412 msgid "rm"
13413 msgstr "rm"
13414
13415 #. type: verbatim
13416 #: ../fish/guestfish-actions.pod:3988
13417 #, no-wrap
13418 msgid ""
13419 " rm path\n"
13420 "\n"
13421 msgstr ""
13422 " rm шлях\n"
13423 "\n"
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
13427 msgid "Remove the single file C<path>."
13428 msgstr ""
13429
13430 #. type: =head2
13431 #: ../fish/guestfish-actions.pod:3992
13432 msgid "rm-rf"
13433 msgstr "rm-rf"
13434
13435 #. type: verbatim
13436 #: ../fish/guestfish-actions.pod:3994
13437 #, no-wrap
13438 msgid ""
13439 " rm-rf path\n"
13440 "\n"
13441 msgstr ""
13442 " rm-rf шлях\n"
13443 "\n"
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
13447 msgid ""
13448 "Remove the file or directory C<path>, recursively removing the contents if "
13449 "its a directory.  This is like the C<rm -rf> shell command."
13450 msgstr ""
13451
13452 #. type: =head2
13453 #: ../fish/guestfish-actions.pod:4000
13454 msgid "rmdir"
13455 msgstr "rmdir"
13456
13457 #. type: verbatim
13458 #: ../fish/guestfish-actions.pod:4002
13459 #, no-wrap
13460 msgid ""
13461 " rmdir path\n"
13462 "\n"
13463 msgstr ""
13464 " rmdir шлях\n"
13465 "\n"
13466
13467 #. type: textblock
13468 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
13469 msgid "Remove the single directory C<path>."
13470 msgstr ""
13471
13472 #. type: =head2
13473 #: ../fish/guestfish-actions.pod:4006
13474 msgid "rmmountpoint"
13475 msgstr "rmmountpoint"
13476
13477 #. type: verbatim
13478 #: ../fish/guestfish-actions.pod:4008
13479 #, no-wrap
13480 msgid ""
13481 " rmmountpoint exemptpath\n"
13482 "\n"
13483 msgstr ""
13484
13485 #. type: textblock
13486 #: ../fish/guestfish-actions.pod:4010
13487 msgid ""
13488 "This calls removes a mountpoint that was previously created with L</"
13489 "mkmountpoint>.  See L</mkmountpoint> for full details."
13490 msgstr ""
13491
13492 #. type: =head2
13493 #: ../fish/guestfish-actions.pod:4014
13494 msgid "scrub-device"
13495 msgstr "scrub-device"
13496
13497 #. type: verbatim
13498 #: ../fish/guestfish-actions.pod:4016
13499 #, no-wrap
13500 msgid ""
13501 " scrub-device device\n"
13502 "\n"
13503 msgstr ""
13504 " scrub-device пристрій\n"
13505 "\n"
13506
13507 #. type: textblock
13508 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
13509 msgid ""
13510 "This command writes patterns over C<device> to make data retrieval more "
13511 "difficult."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
13516 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105
13517 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
13518 msgid ""
13519 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13520 "more details."
13521 msgstr ""
13522
13523 #. type: =head2
13524 #: ../fish/guestfish-actions.pod:4027
13525 msgid "scrub-file"
13526 msgstr "scrub-file"
13527
13528 #. type: verbatim
13529 #: ../fish/guestfish-actions.pod:4029
13530 #, no-wrap
13531 msgid ""
13532 " scrub-file file\n"
13533 "\n"
13534 msgstr ""
13535 " scrub-file файл\n"
13536 "\n"
13537
13538 #. type: textblock
13539 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
13540 msgid ""
13541 "This command writes patterns over a file to make data retrieval more "
13542 "difficult."
13543 msgstr ""
13544
13545 #. type: textblock
13546 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
13547 msgid "The file is I<removed> after scrubbing."
13548 msgstr ""
13549
13550 #. type: =head2
13551 #: ../fish/guestfish-actions.pod:4039
13552 msgid "scrub-freespace"
13553 msgstr "scrub-freespace"
13554
13555 #. type: verbatim
13556 #: ../fish/guestfish-actions.pod:4041
13557 #, no-wrap
13558 msgid ""
13559 " scrub-freespace dir\n"
13560 "\n"
13561 msgstr ""
13562 " scrub-freespace каталог\n"
13563 "\n"
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:4043
13567 msgid ""
13568 "This command creates the directory C<dir> and then fills it with files until "
13569 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13570 "deletes them.  The intention is to scrub any free space on the partition "
13571 "containing C<dir>."
13572 msgstr ""
13573
13574 #. type: =head2
13575 #: ../fish/guestfish-actions.pod:4052
13576 msgid "set-append"
13577 msgstr "set-append"
13578
13579 #. type: =head2
13580 #: ../fish/guestfish-actions.pod:4054
13581 msgid "append"
13582 msgstr ""
13583
13584 #. type: verbatim
13585 #: ../fish/guestfish-actions.pod:4056
13586 #, no-wrap
13587 msgid ""
13588 " set-append append\n"
13589 "\n"
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
13594 msgid ""
13595 "This function is used to add additional options to the guest kernel command "
13596 "line."
13597 msgstr ""
13598
13599 #. type: textblock
13600 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
13601 msgid ""
13602 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13603 "environment variable."
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
13608 msgid ""
13609 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13610 "(libguestfs always adds a few of its own)."
13611 msgstr ""
13612
13613 #. type: =head2
13614 #: ../fish/guestfish-actions.pod:4067
13615 msgid "set-attach-method"
13616 msgstr "set-attach-method"
13617
13618 #. type: =head2
13619 #: ../fish/guestfish-actions.pod:4069
13620 msgid "attach-method"
13621 msgstr ""
13622
13623 #. type: verbatim
13624 #: ../fish/guestfish-actions.pod:4071
13625 #, no-wrap
13626 msgid ""
13627 " set-attach-method attachmethod\n"
13628 "\n"
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
13633 msgid ""
13634 "Set the method that libguestfs uses to connect to the back end guestfsd "
13635 "daemon.  Possible methods are:"
13636 msgstr ""
13637
13638 #. type: =item
13639 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13640 #: ../src/guestfs.pod:2687
13641 msgid "C<appliance>"
13642 msgstr "C<appliance>"
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
13646 msgid ""
13647 "Launch an appliance and connect to it.  This is the ordinary method and the "
13648 "default."
13649 msgstr ""
13650
13651 #. type: =item
13652 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13653 msgid "C<unix:I<path>>"
13654 msgstr "C<unix:I<шлях>>"
13655
13656 #. type: textblock
13657 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13658 msgid "Connect to the Unix domain socket I<path>."
13659 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13660
13661 #. type: textblock
13662 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
13663 msgid ""
13664 "This method lets you connect to an existing daemon or (using virtio-serial) "
13665 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13666 "RUNNING DAEMONS>."
13667 msgstr ""
13668
13669 #. type: =head2
13670 #: ../fish/guestfish-actions.pod:4093
13671 msgid "set-autosync"
13672 msgstr "set-autosync"
13673
13674 #. type: =head2
13675 #: ../fish/guestfish-actions.pod:4095
13676 msgid "autosync"
13677 msgstr "autosync"
13678
13679 #. type: verbatim
13680 #: ../fish/guestfish-actions.pod:4097
13681 #, no-wrap
13682 msgid ""
13683 " set-autosync true|false\n"
13684 "\n"
13685 msgstr ""
13686 " set-autosync true|false\n"
13687 "\n"
13688
13689 #. type: textblock
13690 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
13691 msgid ""
13692 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13693 "effort attempt to make filesystems consistent and synchronized when the "
13694 "handle is closed (also if the program exits without closing handles)."
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13699 msgid ""
13700 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13701 "disabled by default)."
13702 msgstr ""
13703
13704 #. type: =head2
13705 #: ../fish/guestfish-actions.pod:4107
13706 msgid "set-direct"
13707 msgstr "set-direct"
13708
13709 #. type: =head2
13710 #: ../fish/guestfish-actions.pod:4109
13711 msgid "direct"
13712 msgstr "direct"
13713
13714 #. type: verbatim
13715 #: ../fish/guestfish-actions.pod:4111
13716 #, no-wrap
13717 msgid ""
13718 " set-direct true|false\n"
13719 "\n"
13720 msgstr ""
13721 " set-direct true|false\n"
13722 "\n"
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
13726 msgid ""
13727 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13728 "passed directly through to the appliance once it is launched."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../fish/guestfish-actions.pod:4117
13733 msgid ""
13734 "One consequence of this is that log messages aren't caught by the library "
13735 "and handled by L</set-log-message-callback>, but go straight to stdout."
13736 msgstr ""
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
13740 msgid "You probably don't want to use this unless you know what you are doing."
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
13745 msgid "The default is disabled."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:4126
13750 msgid "set-e2label"
13751 msgstr "set-e2label"
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:4128
13755 #, no-wrap
13756 msgid ""
13757 " set-e2label device label\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
13763 msgid ""
13764 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13765 "C<label>.  Filesystem labels are limited to 16 characters."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:4134
13770 msgid ""
13771 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13772 "label on a filesystem."
13773 msgstr ""
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:4137
13777 msgid "set-e2uuid"
13778 msgstr "set-e2uuid"
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:4139
13782 #, no-wrap
13783 msgid ""
13784 " set-e2uuid device uuid\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
13790 msgid ""
13791 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13792 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13793 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13794 msgstr ""
13795
13796 #. type: textblock
13797 #: ../fish/guestfish-actions.pod:4146
13798 msgid ""
13799 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13800 "UUID of a filesystem."
13801 msgstr ""
13802
13803 #. type: =head2
13804 #: ../fish/guestfish-actions.pod:4149
13805 msgid "set-memsize"
13806 msgstr "set-memsize"
13807
13808 #. type: =head2
13809 #: ../fish/guestfish-actions.pod:4151
13810 msgid "memsize"
13811 msgstr ""
13812
13813 #. type: verbatim
13814 #: ../fish/guestfish-actions.pod:4153
13815 #, no-wrap
13816 msgid ""
13817 " set-memsize memsize\n"
13818 "\n"
13819 msgstr ""
13820
13821 #. type: textblock
13822 #: ../fish/guestfish-actions.pod:4155
13823 msgid ""
13824 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13825 "This only has any effect if called before L</launch>."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
13830 msgid ""
13831 "You can also change this by setting the environment variable "
13832 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13833 msgstr ""
13834
13835 #. type: =head2
13836 #: ../fish/guestfish-actions.pod:4166
13837 msgid "set-network"
13838 msgstr "set-network"
13839
13840 #. type: =head2
13841 #: ../fish/guestfish-actions.pod:4168
13842 msgid "network"
13843 msgstr "network"
13844
13845 #. type: verbatim
13846 #: ../fish/guestfish-actions.pod:4170
13847 #, no-wrap
13848 msgid ""
13849 " set-network true|false\n"
13850 "\n"
13851 msgstr ""
13852 " set-network true|false\n"
13853 "\n"
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
13857 msgid ""
13858 "If C<network> is true, then the network is enabled in the libguestfs "
13859 "appliance.  The default is false."
13860 msgstr ""
13861
13862 #. type: textblock
13863 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
13864 msgid ""
13865 "This affects whether commands are able to access the network (see L<guestfs"
13866 "(3)/RUNNING COMMANDS>)."
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:4178
13871 msgid ""
13872 "You must call this before calling L</launch>, otherwise it has no effect."
13873 msgstr ""
13874
13875 #. type: =head2
13876 #: ../fish/guestfish-actions.pod:4181
13877 msgid "set-path"
13878 msgstr "set-path"
13879
13880 #. type: verbatim
13881 #: ../fish/guestfish-actions.pod:4185
13882 #, no-wrap
13883 msgid ""
13884 " set-path searchpath\n"
13885 "\n"
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
13890 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
13895 msgid ""
13896 "The default is C<$libdir/guestfs> unless overridden by setting "
13897 "C<LIBGUESTFS_PATH> environment variable."
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13902 msgid "Setting C<path> to C<NULL> restores the default path."
13903 msgstr ""
13904
13905 #. type: =head2
13906 #: ../fish/guestfish-actions.pod:4194
13907 msgid "set-pgroup"
13908 msgstr ""
13909
13910 #. type: =head2
13911 #: ../fish/guestfish-actions.pod:4196
13912 msgid "pgroup"
13913 msgstr ""
13914
13915 #. type: verbatim
13916 #: ../fish/guestfish-actions.pod:4198
13917 #, no-wrap
13918 msgid ""
13919 " set-pgroup true|false\n"
13920 "\n"
13921 msgstr ""
13922
13923 #. type: textblock
13924 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
13925 msgid ""
13926 "If C<pgroup> is true, child processes are placed into their own process "
13927 "group."
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
13932 msgid ""
13933 "The practical upshot of this is that signals like C<SIGINT> (from users "
13934 "pressing C<^C>) won't be received by the child process."
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
13939 msgid ""
13940 "The default for this flag is false, because usually you want C<^C> to kill "
13941 "the subprocess."
13942 msgstr ""
13943
13944 #. type: =head2
13945 #: ../fish/guestfish-actions.pod:4209
13946 msgid "set-qemu"
13947 msgstr "set-qemu"
13948
13949 #. type: =head2
13950 #: ../fish/guestfish-actions.pod:4211
13951 msgid "qemu"
13952 msgstr "qemu"
13953
13954 #. type: verbatim
13955 #: ../fish/guestfish-actions.pod:4213
13956 #, no-wrap
13957 msgid ""
13958 " set-qemu qemu\n"
13959 "\n"
13960 msgstr ""
13961 " set-qemu qemu\n"
13962 "\n"
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
13966 msgid "Set the qemu binary that we will use."
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
13971 msgid ""
13972 "The default is chosen when the library was compiled by the configure script."
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13977 msgid ""
13978 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13979 "variable."
13980 msgstr ""
13981
13982 #. type: textblock
13983 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
13984 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13989 msgid ""
13990 "Note that you should call this function as early as possible after creating "
13991 "the handle.  This is because some pre-launch operations depend on testing "
13992 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13993 "don't retest features, and so you might see inconsistent results.  Using the "
13994 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13995 "the qemu binary at the same time as the handle is created."
13996 msgstr ""
13997
13998 #. type: =head2
13999 #: ../fish/guestfish-actions.pod:4233
14000 msgid "set-recovery-proc"
14001 msgstr "set-recovery-proc"
14002
14003 #. type: =head2
14004 #: ../fish/guestfish-actions.pod:4235
14005 msgid "recovery-proc"
14006 msgstr "recovery-proc"
14007
14008 #. type: verbatim
14009 #: ../fish/guestfish-actions.pod:4237
14010 #, no-wrap
14011 msgid ""
14012 " set-recovery-proc true|false\n"
14013 "\n"
14014 msgstr ""
14015 " set-recovery-proc true|false\n"
14016 "\n"
14017
14018 #. type: textblock
14019 #: ../fish/guestfish-actions.pod:4239
14020 msgid ""
14021 "If this is called with the parameter C<false> then L</launch> does not "
14022 "create a recovery process.  The purpose of the recovery process is to stop "
14023 "runaway qemu processes in the case where the main program aborts abruptly."
14024 msgstr ""
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:4244
14028 msgid ""
14029 "This only has any effect if called before L</launch>, and the default is "
14030 "true."
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
14035 msgid ""
14036 "About the only time when you would want to disable this is if the main "
14037 "process will fork itself into the background (\"daemonize\" itself).  In "
14038 "this case the recovery process thinks that the main program has disappeared "
14039 "and so kills qemu, which is not very helpful."
14040 msgstr ""
14041
14042 #. type: =head2
14043 #: ../fish/guestfish-actions.pod:4253
14044 msgid "set-selinux"
14045 msgstr "set-selinux"
14046
14047 #. type: =head2
14048 #: ../fish/guestfish-actions.pod:4255
14049 msgid "selinux"
14050 msgstr "selinux"
14051
14052 #. type: verbatim
14053 #: ../fish/guestfish-actions.pod:4257
14054 #, no-wrap
14055 msgid ""
14056 " set-selinux true|false\n"
14057 "\n"
14058 msgstr ""
14059 " set-selinux true|false\n"
14060 "\n"
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
14064 msgid ""
14065 "This sets the selinux flag that is passed to the appliance at boot time.  "
14066 "The default is C<selinux=0> (disabled)."
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
14071 msgid ""
14072 "Note that if SELinux is enabled, it is always in Permissive mode "
14073 "(C<enforcing=0>)."
14074 msgstr ""
14075
14076 #. type: =head2
14077 #: ../fish/guestfish-actions.pod:4268
14078 msgid "set-trace"
14079 msgstr "set-trace"
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:4270
14083 msgid "trace"
14084 msgstr "trace"
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:4272
14088 #, no-wrap
14089 msgid ""
14090 " set-trace true|false\n"
14091 "\n"
14092 msgstr ""
14093 " set-trace true|false\n"
14094 "\n"
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
14098 msgid ""
14099 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14100 "return values are traced."
14101 msgstr ""
14102
14103 #. type: textblock
14104 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
14105 msgid ""
14106 "If you want to trace C API calls into libguestfs (and other libraries) then "
14107 "possibly a better way is to use the external ltrace(1) command."
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
14112 msgid ""
14113 "Command traces are disabled unless the environment variable "
14114 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:4284
14119 msgid ""
14120 "Trace messages are normally sent to C<stderr>, unless you register a "
14121 "callback to send them somewhere else (see L</set-event-callback>)."
14122 msgstr ""
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:4288
14126 msgid "set-verbose"
14127 msgstr "set-verbose"
14128
14129 #. type: =head2
14130 #: ../fish/guestfish-actions.pod:4290
14131 msgid "verbose"
14132 msgstr ""
14133
14134 #. type: verbatim
14135 #: ../fish/guestfish-actions.pod:4292
14136 #, no-wrap
14137 msgid ""
14138 " set-verbose true|false\n"
14139 "\n"
14140 msgstr ""
14141 " set-verbose true|false\n"
14142 "\n"
14143
14144 #. type: textblock
14145 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
14146 msgid "If C<verbose> is true, this turns on verbose messages."
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
14151 msgid ""
14152 "Verbose messages are disabled unless the environment variable "
14153 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:4299
14158 msgid ""
14159 "Verbose messages are normally sent to C<stderr>, unless you register a "
14160 "callback to send them somewhere else (see L</set-event-callback>)."
14161 msgstr ""
14162
14163 #. type: =head2
14164 #: ../fish/guestfish-actions.pod:4303
14165 msgid "setcon"
14166 msgstr "setcon"
14167
14168 #. type: verbatim
14169 #: ../fish/guestfish-actions.pod:4305
14170 #, no-wrap
14171 msgid ""
14172 " setcon context\n"
14173 "\n"
14174 msgstr ""
14175 " setcon контекст\n"
14176 "\n"
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
14180 msgid ""
14181 "This sets the SELinux security context of the daemon to the string "
14182 "C<context>."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
14187 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14188 msgstr ""
14189
14190 #. type: =head2
14191 #: ../fish/guestfish-actions.pod:4312
14192 msgid "setxattr"
14193 msgstr "setxattr"
14194
14195 #. type: verbatim
14196 #: ../fish/guestfish-actions.pod:4314
14197 #, no-wrap
14198 msgid ""
14199 " setxattr xattr val vallen path\n"
14200 "\n"
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
14205 msgid ""
14206 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14207 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:4320
14212 msgid "See also: L</lsetxattr>, L<attr(5)>."
14213 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14214
14215 #. type: =head2
14216 #: ../fish/guestfish-actions.pod:4322
14217 msgid "sfdisk"
14218 msgstr "sfdisk"
14219
14220 #. type: verbatim
14221 #: ../fish/guestfish-actions.pod:4324
14222 #, no-wrap
14223 msgid ""
14224 " sfdisk device cyls heads sectors 'lines ...'\n"
14225 "\n"
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6513
14230 msgid ""
14231 "This is a direct interface to the L<sfdisk(8)> program for creating "
14232 "partitions on block devices."
14233 msgstr ""
14234
14235 #. type: textblock
14236 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6516
14237 msgid "C<device> should be a block device, for example C</dev/sda>."
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
14242 msgid ""
14243 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14244 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14245 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14246 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14247 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14248 "the kernel) cannot work out the right geometry and you will need to tell it."
14249 msgstr ""
14250
14251 #. type: textblock
14252 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6526
14253 msgid ""
14254 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14255 "refer to the L<sfdisk(8)> manpage."
14256 msgstr ""
14257
14258 #. type: textblock
14259 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6529
14260 msgid ""
14261 "To create a single partition occupying the whole disk, you would pass "
14262 "C<lines> as a single element list, when the single element being the string "
14263 "C<,> (comma)."
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:4346
14268 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14269 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375
14273 #: ../fish/guestfish-actions.pod:4397
14274 msgid ""
14275 "This function is deprecated.  In new code, use the L</part_add> call instead."
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:4359
14280 msgid "sfdiskM"
14281 msgstr "sfdiskM"
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:4361
14285 #, no-wrap
14286 msgid ""
14287 " sfdiskM device 'lines ...'\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:4363
14293 msgid ""
14294 "This is a simplified interface to the L</sfdisk> command, where partition "
14295 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14296 "you don't need to specify the cyls, heads and sectors parameters which were "
14297 "rarely if ever used anyway."
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:4369
14302 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14303 msgstr ""
14304 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:4382
14308 msgid "sfdisk-N"
14309 msgstr "sfdisk-N"
14310
14311 #. type: verbatim
14312 #: ../fish/guestfish-actions.pod:4384
14313 #, no-wrap
14314 msgid ""
14315 " sfdisk-N device partnum cyls heads sectors line\n"
14316 "\n"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6591
14321 msgid ""
14322 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14323 "(note: C<n> counts from 1)."
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4389
14328 msgid ""
14329 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14330 "cyls/heads/sectors parameters."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4392
14335 msgid "See also: L</part-add>"
14336 msgstr "Див. також L</part-add>"
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:4404
14340 msgid "sfdisk-disk-geometry"
14341 msgstr "sfdisk-disk-geometry"
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:4406
14345 #, no-wrap
14346 msgid ""
14347 " sfdisk-disk-geometry device\n"
14348 "\n"
14349 msgstr ""
14350 " sfdisk-disk-geometry пристрій\n"
14351 "\n"
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:4408
14355 msgid ""
14356 "This displays the disk geometry of C<device> read from the partition table.  "
14357 "Especially in the case where the underlying block device has been resized, "
14358 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14359 "kernel-geometry>)."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
14364 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
14365 msgid "The result is in human-readable format, and not designed to be parsed."
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:4416
14370 msgid "sfdisk-kernel-geometry"
14371 msgstr "sfdisk-kernel-geometry"
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:4418
14375 #, no-wrap
14376 msgid ""
14377 " sfdisk-kernel-geometry device\n"
14378 "\n"
14379 msgstr ""
14380 " sfdisk-kernel-geometry пристрій\n"
14381 "\n"
14382
14383 #. type: textblock
14384 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
14385 msgid "This displays the kernel's idea of the geometry of C<device>."
14386 msgstr ""
14387
14388 #. type: =head2
14389 #: ../fish/guestfish-actions.pod:4425
14390 msgid "sfdisk-l"
14391 msgstr "sfdisk-l"
14392
14393 #. type: verbatim
14394 #: ../fish/guestfish-actions.pod:4427
14395 #, no-wrap
14396 msgid ""
14397 " sfdisk-l device\n"
14398 "\n"
14399 msgstr ""
14400 " sfdisk-l пристрій\n"
14401 "\n"
14402
14403 #. type: textblock
14404 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6654
14405 msgid ""
14406 "This displays the partition table on C<device>, in the human-readable output "
14407 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14408 msgstr ""
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:4433
14412 msgid "See also: L</part-list>"
14413 msgstr "Див. також L</part-list>"
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4435
14417 msgid ""
14418 "This function is deprecated.  In new code, use the L</part_list> call "
14419 "instead."
14420 msgstr ""
14421
14422 #. type: =head2
14423 #: ../fish/guestfish-actions.pod:4442
14424 msgid "sh"
14425 msgstr "sh"
14426
14427 #. type: verbatim
14428 #: ../fish/guestfish-actions.pod:4444
14429 #, no-wrap
14430 msgid ""
14431 " sh command\n"
14432 "\n"
14433 msgstr ""
14434 " sh команда\n"
14435 "\n"
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
14439 msgid ""
14440 "This call runs a command from the guest filesystem via the guest's C</bin/"
14441 "sh>."
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4449
14446 msgid "This is like L</command>, but passes the command to:"
14447 msgstr ""
14448
14449 #. type: verbatim
14450 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14451 #, no-wrap
14452 msgid ""
14453 " /bin/sh -c \"command\"\n"
14454 "\n"
14455 msgstr ""
14456
14457 #. type: textblock
14458 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
14459 msgid ""
14460 "Depending on the guest's shell, this usually results in wildcards being "
14461 "expanded, shell expressions being interpolated and so on."
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../fish/guestfish-actions.pod:4457
14466 msgid "All the provisos about L</command> apply to this call."
14467 msgstr ""
14468
14469 #. type: =head2
14470 #: ../fish/guestfish-actions.pod:4459
14471 msgid "sh-lines"
14472 msgstr "sh-lines"
14473
14474 #. type: verbatim
14475 #: ../fish/guestfish-actions.pod:4461
14476 #, no-wrap
14477 msgid ""
14478 " sh-lines command\n"
14479 "\n"
14480 msgstr ""
14481 " sh-lines команда\n"
14482 "\n"
14483
14484 #. type: textblock
14485 #: ../fish/guestfish-actions.pod:4463
14486 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14487 msgstr ""
14488
14489 #. type: textblock
14490 #: ../fish/guestfish-actions.pod:4466
14491 msgid "See also: L</command-lines>"
14492 msgstr "Див. також L</command-lines>"
14493
14494 #. type: =head2
14495 #: ../fish/guestfish-actions.pod:4468
14496 msgid "sleep"
14497 msgstr "sleep"
14498
14499 #. type: verbatim
14500 #: ../fish/guestfish-actions.pod:4470
14501 #, no-wrap
14502 msgid ""
14503 " sleep secs\n"
14504 "\n"
14505 msgstr ""
14506 " sleep час_у_секундах\n"
14507 "\n"
14508
14509 #. type: textblock
14510 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
14511 msgid "Sleep for C<secs> seconds."
14512 msgstr ""
14513
14514 #. type: =head2
14515 #: ../fish/guestfish-actions.pod:4474
14516 msgid "stat"
14517 msgstr "stat"
14518
14519 #. type: verbatim
14520 #: ../fish/guestfish-actions.pod:4476
14521 #, no-wrap
14522 msgid ""
14523 " stat path\n"
14524 "\n"
14525 msgstr ""
14526 " stat шлях\n"
14527 "\n"
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
14531 msgid "This is the same as the C<stat(2)> system call."
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:4482
14536 msgid "statvfs"
14537 msgstr "statvfs"
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:4484
14541 #, no-wrap
14542 msgid ""
14543 " statvfs path\n"
14544 "\n"
14545 msgstr ""
14546 " statvfs шлях\n"
14547 "\n"
14548
14549 #. type: textblock
14550 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
14551 msgid ""
14552 "Returns file system statistics for any mounted file system.  C<path> should "
14553 "be a file or directory in the mounted file system (typically it is the mount "
14554 "point itself, but it doesn't need to be)."
14555 msgstr ""
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
14559 msgid "This is the same as the C<statvfs(2)> system call."
14560 msgstr ""
14561
14562 #. type: =head2
14563 #: ../fish/guestfish-actions.pod:4492
14564 msgid "strings"
14565 msgstr "strings"
14566
14567 #. type: verbatim
14568 #: ../fish/guestfish-actions.pod:4494
14569 #, no-wrap
14570 msgid ""
14571 " strings path\n"
14572 "\n"
14573 msgstr ""
14574 " strings шлях\n"
14575 "\n"
14576
14577 #. type: textblock
14578 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
14579 msgid ""
14580 "This runs the L<strings(1)> command on a file and returns the list of "
14581 "printable strings found."
14582 msgstr ""
14583
14584 #. type: =head2
14585 #: ../fish/guestfish-actions.pod:4502
14586 msgid "strings-e"
14587 msgstr "strings-e"
14588
14589 #. type: verbatim
14590 #: ../fish/guestfish-actions.pod:4504
14591 #, no-wrap
14592 msgid ""
14593 " strings-e encoding path\n"
14594 "\n"
14595 msgstr ""
14596 " strings-e кодування шлях\n"
14597 "\n"
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:4506
14601 msgid ""
14602 "This is like the L</strings> command, but allows you to specify the encoding "
14603 "of strings that are looked for in the source file C<path>."
14604 msgstr ""
14605
14606 #. type: textblock
14607 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
14608 msgid "Allowed encodings are:"
14609 msgstr "Можливими кодуваннями є:"
14610
14611 #. type: =item
14612 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
14613 msgid "s"
14614 msgstr "s"
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:4516
14618 msgid ""
14619 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14620 "ISO-8859-X (this is what L</strings> uses)."
14621 msgstr ""
14622
14623 #. type: =item
14624 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14625 msgid "S"
14626 msgstr "S"
14627
14628 #. type: textblock
14629 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
14630 msgid "Single 8-bit-byte characters."
14631 msgstr "Окремі 8-бітові-байтові символи."
14632
14633 #. type: =item
14634 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
14635 msgid "b"
14636 msgstr "b"
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
14640 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14641 msgstr ""
14642
14643 #. type: =item
14644 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14645 msgid "l (lower case letter L)"
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14650 msgid ""
14651 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14652 "examining binaries in Windows guests."
14653 msgstr ""
14654
14655 #. type: =item
14656 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14657 msgid "B"
14658 msgstr "B"
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14662 msgid "32-bit big endian such as UCS-4BE."
14663 msgstr ""
14664
14665 #. type: =item
14666 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14667 msgid "L"
14668 msgstr "L"
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
14672 msgid "32-bit little endian such as UCS-4LE."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
14677 msgid "The returned strings are transcoded to UTF-8."
14678 msgstr ""
14679
14680 #. type: =head2
14681 #: ../fish/guestfish-actions.pod:4548
14682 msgid "swapoff-device"
14683 msgstr "swapoff-device"
14684
14685 #. type: verbatim
14686 #: ../fish/guestfish-actions.pod:4550
14687 #, no-wrap
14688 msgid ""
14689 " swapoff-device device\n"
14690 "\n"
14691 msgstr ""
14692 " swapoff-device пристрій\n"
14693 "\n"
14694
14695 #. type: textblock
14696 #: ../fish/guestfish-actions.pod:4552
14697 msgid ""
14698 "This command disables the libguestfs appliance swap device or partition "
14699 "named C<device>.  See L</swapon-device>."
14700 msgstr ""
14701
14702 #. type: =head2
14703 #: ../fish/guestfish-actions.pod:4556
14704 msgid "swapoff-file"
14705 msgstr "swapoff-file"
14706
14707 #. type: verbatim
14708 #: ../fish/guestfish-actions.pod:4558
14709 #, no-wrap
14710 msgid ""
14711 " swapoff-file file\n"
14712 "\n"
14713 msgstr ""
14714 " swapoff-file файл\n"
14715 "\n"
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
14719 msgid "This command disables the libguestfs appliance swap on file."
14720 msgstr ""
14721
14722 #. type: =head2
14723 #: ../fish/guestfish-actions.pod:4562
14724 msgid "swapoff-label"
14725 msgstr "swapoff-label"
14726
14727 #. type: verbatim
14728 #: ../fish/guestfish-actions.pod:4564
14729 #, no-wrap
14730 msgid ""
14731 " swapoff-label label\n"
14732 "\n"
14733 msgstr ""
14734 " swapoff-label мітка\n"
14735 "\n"
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
14739 msgid ""
14740 "This command disables the libguestfs appliance swap on labeled swap "
14741 "partition."
14742 msgstr ""
14743
14744 #. type: =head2
14745 #: ../fish/guestfish-actions.pod:4569
14746 msgid "swapoff-uuid"
14747 msgstr "swapoff-uuid"
14748
14749 #. type: verbatim
14750 #: ../fish/guestfish-actions.pod:4571
14751 #, no-wrap
14752 msgid ""
14753 " swapoff-uuid uuid\n"
14754 "\n"
14755 msgstr ""
14756 " swapoff-uuid uuid\n"
14757 "\n"
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
14761 msgid ""
14762 "This command disables the libguestfs appliance swap partition with the given "
14763 "UUID."
14764 msgstr ""
14765
14766 #. type: =head2
14767 #: ../fish/guestfish-actions.pod:4576
14768 msgid "swapon-device"
14769 msgstr "swapon-device"
14770
14771 #. type: verbatim
14772 #: ../fish/guestfish-actions.pod:4578
14773 #, no-wrap
14774 msgid ""
14775 " swapon-device device\n"
14776 "\n"
14777 msgstr ""
14778 " swapon-device пристрій\n"
14779 "\n"
14780
14781 #. type: textblock
14782 #: ../fish/guestfish-actions.pod:4580
14783 msgid ""
14784 "This command enables the libguestfs appliance to use the swap device or "
14785 "partition named C<device>.  The increased memory is made available for all "
14786 "commands, for example those run using L</command> or L</sh>."
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
14791 msgid ""
14792 "Note that you should not swap to existing guest swap partitions unless you "
14793 "know what you are doing.  They may contain hibernation information, or other "
14794 "information that the guest doesn't want you to trash.  You also risk leaking "
14795 "information about the host to the guest this way.  Instead, attach a new "
14796 "host device to the guest and swap on that."
14797 msgstr ""
14798
14799 #. type: =head2
14800 #: ../fish/guestfish-actions.pod:4592
14801 msgid "swapon-file"
14802 msgstr "swapon-file"
14803
14804 #. type: verbatim
14805 #: ../fish/guestfish-actions.pod:4594
14806 #, no-wrap
14807 msgid ""
14808 " swapon-file file\n"
14809 "\n"
14810 msgstr ""
14811 " swapon-file файл\n"
14812 "\n"
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:4596
14816 msgid ""
14817 "This command enables swap to a file.  See L</swapon-device> for other notes."
14818 msgstr ""
14819
14820 #. type: =head2
14821 #: ../fish/guestfish-actions.pod:4599
14822 msgid "swapon-label"
14823 msgstr "swapon-label"
14824
14825 #. type: verbatim
14826 #: ../fish/guestfish-actions.pod:4601
14827 #, no-wrap
14828 msgid ""
14829 " swapon-label label\n"
14830 "\n"
14831 msgstr ""
14832 " swapon-label мітка\n"
14833 "\n"
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:4603
14837 msgid ""
14838 "This command enables swap to a labeled swap partition.  See L</swapon-"
14839 "device> for other notes."
14840 msgstr ""
14841
14842 #. type: =head2
14843 #: ../fish/guestfish-actions.pod:4606
14844 msgid "swapon-uuid"
14845 msgstr "swapon-uuid"
14846
14847 #. type: verbatim
14848 #: ../fish/guestfish-actions.pod:4608
14849 #, no-wrap
14850 msgid ""
14851 " swapon-uuid uuid\n"
14852 "\n"
14853 msgstr ""
14854 " swapon-uuid uuid\n"
14855 "\n"
14856
14857 #. type: textblock
14858 #: ../fish/guestfish-actions.pod:4610
14859 msgid ""
14860 "This command enables swap to a swap partition with the given UUID.  See L</"
14861 "swapon-device> for other notes."
14862 msgstr ""
14863
14864 #. type: =head2
14865 #: ../fish/guestfish-actions.pod:4613
14866 msgid "sync"
14867 msgstr "sync"
14868
14869 #. type: verbatim
14870 #: ../fish/guestfish-actions.pod:4615
14871 #, no-wrap
14872 msgid ""
14873 " sync\n"
14874 "\n"
14875 msgstr ""
14876 " sync\n"
14877 "\n"
14878
14879 #. type: textblock
14880 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
14881 msgid ""
14882 "This syncs the disk, so that any writes are flushed through to the "
14883 "underlying disk image."
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
14888 msgid ""
14889 "You should always call this if you have modified a disk image, before "
14890 "closing the handle."
14891 msgstr ""
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-actions.pod:4623
14895 msgid "tail"
14896 msgstr "tail"
14897
14898 #. type: verbatim
14899 #: ../fish/guestfish-actions.pod:4625
14900 #, no-wrap
14901 msgid ""
14902 " tail path\n"
14903 "\n"
14904 msgstr ""
14905 " tail шлях\n"
14906 "\n"
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
14910 msgid ""
14911 "This command returns up to the last 10 lines of a file as a list of strings."
14912 msgstr ""
14913
14914 #. type: =head2
14915 #: ../fish/guestfish-actions.pod:4633
14916 msgid "tail-n"
14917 msgstr "tail-n"
14918
14919 #. type: verbatim
14920 #: ../fish/guestfish-actions.pod:4635
14921 #, no-wrap
14922 msgid ""
14923 " tail-n nrlines path\n"
14924 "\n"
14925 msgstr ""
14926
14927 #. type: textblock
14928 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
14929 msgid ""
14930 "If the parameter C<nrlines> is a positive number, this returns the last "
14931 "C<nrlines> lines of the file C<path>."
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
14936 msgid ""
14937 "If the parameter C<nrlines> is a negative number, this returns lines from "
14938 "the file C<path>, starting with the C<-nrlines>th line."
14939 msgstr ""
14940
14941 #. type: =head2
14942 #: ../fish/guestfish-actions.pod:4648
14943 msgid "tar-in"
14944 msgstr "tar-in"
14945
14946 #. type: verbatim
14947 #: ../fish/guestfish-actions.pod:4650
14948 #, no-wrap
14949 msgid ""
14950 " tar-in (tarfile|-) directory\n"
14951 "\n"
14952 msgstr ""
14953 " tar-in (файл_tar|-) каталог\n"
14954 "\n"
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
14958 msgid ""
14959 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14960 "tar file) into C<directory>."
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:4655
14965 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14966 msgstr ""
14967
14968 #. type: =head2
14969 #: ../fish/guestfish-actions.pod:4660
14970 msgid "tar-out"
14971 msgstr "tar-out"
14972
14973 #. type: verbatim
14974 #: ../fish/guestfish-actions.pod:4662
14975 #, no-wrap
14976 msgid ""
14977 " tar-out directory (tarfile|-)\n"
14978 "\n"
14979 msgstr ""
14980 " tar-out каталог (файл tar|-)\n"
14981 "\n"
14982
14983 #. type: textblock
14984 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
14985 msgid ""
14986 "This command packs the contents of C<directory> and downloads it to local "
14987 "file C<tarfile>."
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:4667
14992 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14993 msgstr ""
14994
14995 #. type: =head2
14996 #: ../fish/guestfish-actions.pod:4672
14997 msgid "tgz-in"
14998 msgstr "tgz-in"
14999
15000 #. type: verbatim
15001 #: ../fish/guestfish-actions.pod:4674
15002 #, no-wrap
15003 msgid ""
15004 " tgz-in (tarball|-) directory\n"
15005 "\n"
15006 msgstr ""
15007 " tgz-in (архів tar|-) каталог\n"
15008 "\n"
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
15012 msgid ""
15013 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15014 "tar file) into C<directory>."
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4679
15019 msgid "To upload an uncompressed tarball, use L</tar-in>."
15020 msgstr ""
15021
15022 #. type: =head2
15023 #: ../fish/guestfish-actions.pod:4683
15024 msgid "tgz-out"
15025 msgstr "tgz-out"
15026
15027 #. type: verbatim
15028 #: ../fish/guestfish-actions.pod:4685
15029 #, no-wrap
15030 msgid ""
15031 " tgz-out directory (tarball|-)\n"
15032 "\n"
15033 msgstr ""
15034 " tgz-out каталог (архів tar|-)\n"
15035 "\n"
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
15039 msgid ""
15040 "This command packs the contents of C<directory> and downloads it to local "
15041 "file C<tarball>."
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:4690
15046 msgid "To download an uncompressed tarball, use L</tar-out>."
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../fish/guestfish-actions.pod:4694
15051 msgid "touch"
15052 msgstr "touch"
15053
15054 #. type: verbatim
15055 #: ../fish/guestfish-actions.pod:4696
15056 #, no-wrap
15057 msgid ""
15058 " touch path\n"
15059 "\n"
15060 msgstr ""
15061 " touch шлях\n"
15062 "\n"
15063
15064 #. type: textblock
15065 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
15066 msgid ""
15067 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15068 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15069 "length file."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
15074 msgid ""
15075 "This command only works on regular files, and will fail on other file types "
15076 "such as directories, symbolic links, block special etc."
15077 msgstr ""
15078
15079 #. type: =head2
15080 #: ../fish/guestfish-actions.pod:4705
15081 msgid "truncate"
15082 msgstr "truncate"
15083
15084 #. type: verbatim
15085 #: ../fish/guestfish-actions.pod:4707
15086 #, no-wrap
15087 msgid ""
15088 " truncate path\n"
15089 "\n"
15090 msgstr ""
15091 " truncate шлях\n"
15092 "\n"
15093
15094 #. type: textblock
15095 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
15096 msgid ""
15097 "This command truncates C<path> to a zero-length file.  The file must exist "
15098 "already."
15099 msgstr ""
15100
15101 #. type: =head2
15102 #: ../fish/guestfish-actions.pod:4712
15103 msgid "truncate-size"
15104 msgstr "truncate-size"
15105
15106 #. type: verbatim
15107 #: ../fish/guestfish-actions.pod:4714
15108 #, no-wrap
15109 msgid ""
15110 " truncate-size path size\n"
15111 "\n"
15112 msgstr ""
15113 " truncate-size шлях розмір\n"
15114 "\n"
15115
15116 #. type: textblock
15117 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
15118 msgid ""
15119 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15120 "already."
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4719
15125 msgid ""
15126 "If the current file size is less than C<size> then the file is extended to "
15127 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15128 "blocks are not allocated for the file until you write to it).  To create a "
15129 "non-sparse file of zeroes, use L</fallocate64> instead."
15130 msgstr ""
15131
15132 #. type: =head2
15133 #: ../fish/guestfish-actions.pod:4725
15134 msgid "tune2fs-l"
15135 msgstr "tune2fs-l"
15136
15137 #. type: verbatim
15138 #: ../fish/guestfish-actions.pod:4727
15139 #, no-wrap
15140 msgid ""
15141 " tune2fs-l device\n"
15142 "\n"
15143 msgstr ""
15144 " tune2fs-l пристрій\n"
15145 "\n"
15146
15147 #. type: textblock
15148 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
15149 msgid ""
15150 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15151 "C<device>."
15152 msgstr ""
15153
15154 #. type: textblock
15155 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
15156 msgid ""
15157 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15158 "for more details.  The list of fields returned isn't clearly defined, and "
15159 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15160 "and the filesystem itself."
15161 msgstr ""
15162
15163 #. type: =head2
15164 #: ../fish/guestfish-actions.pod:4737
15165 msgid "txz-in"
15166 msgstr "txz-in"
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-actions.pod:4739
15170 #, no-wrap
15171 msgid ""
15172 " txz-in (tarball|-) directory\n"
15173 "\n"
15174 msgstr ""
15175 " txz-in (архів tar|-) каталог\n"
15176 "\n"
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
15180 msgid ""
15181 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15182 "tar file) into C<directory>."
15183 msgstr ""
15184
15185 #. type: =head2
15186 #: ../fish/guestfish-actions.pod:4746
15187 msgid "txz-out"
15188 msgstr "txz-out"
15189
15190 #. type: verbatim
15191 #: ../fish/guestfish-actions.pod:4748
15192 #, no-wrap
15193 msgid ""
15194 " txz-out directory (tarball|-)\n"
15195 "\n"
15196 msgstr ""
15197 " txz-out каталог (архів tar|-)\n"
15198 "\n"
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
15202 msgid ""
15203 "This command packs the contents of C<directory> and downloads it to local "
15204 "file C<tarball> (as an xz compressed tar archive)."
15205 msgstr ""
15206
15207 #. type: =head2
15208 #: ../fish/guestfish-actions.pod:4755
15209 msgid "umask"
15210 msgstr "umask"
15211
15212 #. type: verbatim
15213 #: ../fish/guestfish-actions.pod:4757
15214 #, no-wrap
15215 msgid ""
15216 " umask mask\n"
15217 "\n"
15218 msgstr ""
15219 " umask маска\n"
15220 "\n"
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
15224 msgid ""
15225 "This function sets the mask used for creating new files and device nodes to "
15226 "C<mask & 0777>."
15227 msgstr ""
15228
15229 #. type: textblock
15230 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
15231 msgid ""
15232 "Typical umask values would be C<022> which creates new files with "
15233 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15234 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15235 msgstr ""
15236
15237 #. type: textblock
15238 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15239 msgid ""
15240 "The default umask is C<022>.  This is important because it means that "
15241 "directories and device nodes will be created with C<0644> or C<0755> mode "
15242 "even if you specify C<0777>."
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4771
15247 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15248 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
15252 msgid "This call returns the previous umask."
15253 msgstr ""
15254
15255 #. type: =head2
15256 #: ../fish/guestfish-actions.pod:4776
15257 msgid "umount"
15258 msgstr "umount"
15259
15260 #. type: =head2
15261 #: ../fish/guestfish-actions.pod:4778
15262 msgid "unmount"
15263 msgstr "unmount"
15264
15265 #. type: verbatim
15266 #: ../fish/guestfish-actions.pod:4780
15267 #, no-wrap
15268 msgid ""
15269 " umount pathordevice\n"
15270 "\n"
15271 msgstr ""
15272 " umount шлях_або_пристрій\n"
15273 "\n"
15274
15275 #. type: textblock
15276 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
15277 msgid ""
15278 "This unmounts the given filesystem.  The filesystem may be specified either "
15279 "by its mountpoint (path) or the device which contains the filesystem."
15280 msgstr ""
15281
15282 #. type: =head2
15283 #: ../fish/guestfish-actions.pod:4786
15284 msgid "umount-all"
15285 msgstr "umount-all"
15286
15287 #. type: =head2
15288 #: ../fish/guestfish-actions.pod:4788
15289 msgid "unmount-all"
15290 msgstr "unmount-all"
15291
15292 #. type: verbatim
15293 #: ../fish/guestfish-actions.pod:4790
15294 #, no-wrap
15295 msgid ""
15296 " umount-all\n"
15297 "\n"
15298 msgstr ""
15299 " umount-all\n"
15300 "\n"
15301
15302 #. type: textblock
15303 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
15304 msgid "This unmounts all mounted filesystems."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
15309 msgid "Some internal mounts are not unmounted by this call."
15310 msgstr ""
15311
15312 #. type: =head2
15313 #: ../fish/guestfish-actions.pod:4796
15314 msgid "upload"
15315 msgstr "upload"
15316
15317 #. type: verbatim
15318 #: ../fish/guestfish-actions.pod:4798
15319 #, no-wrap
15320 msgid ""
15321 " upload (filename|-) remotefilename\n"
15322 "\n"
15323 msgstr ""
15324 " upload (назва_файла|-) назва_віддаленого_файла\n"
15325 "\n"
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813
15329 #: ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
15330 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../fish/guestfish-actions.pod:4805
15335 msgid "See also L</download>."
15336 msgstr "Див. також L</download>."
15337
15338 #. type: =head2
15339 #: ../fish/guestfish-actions.pod:4809
15340 msgid "upload-offset"
15341 msgstr "upload-offset"
15342
15343 #. type: verbatim
15344 #: ../fish/guestfish-actions.pod:4811
15345 #, no-wrap
15346 msgid ""
15347 " upload-offset (filename|-) remotefilename offset\n"
15348 "\n"
15349 msgstr ""
15350 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15351 "\n"
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
15355 msgid ""
15356 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15357 "The intention is to overwrite parts of existing files or devices, although "
15358 "if a non-existant file is specified then it is created with a \"hole\" "
15359 "before C<offset>.  The size of the data written is implicit in the size of "
15360 "the source C<filename>."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4823
15365 msgid ""
15366 "Note that there is no limit on the amount of data that can be uploaded with "
15367 "this call, unlike with L</pwrite>, and this call always writes the full "
15368 "amount unless an error occurs."
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:4828
15373 msgid "See also L</upload>, L</pwrite>."
15374 msgstr "Див. також L</upload>, L</pwrite>."
15375
15376 #. type: =head2
15377 #: ../fish/guestfish-actions.pod:4832
15378 msgid "utimens"
15379 msgstr "utimens"
15380
15381 #. type: verbatim
15382 #: ../fish/guestfish-actions.pod:4834
15383 #, no-wrap
15384 msgid ""
15385 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15386 "\n"
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
15391 msgid "This command sets the timestamps of a file with nanosecond precision."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
15396 msgid ""
15397 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15398 "from the epoch."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
15403 msgid ""
15404 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15405 "nanoseconds from the epoch."
15406 msgstr ""
15407
15408 #. type: textblock
15409 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
15410 msgid ""
15411 "If the C<*nsecs> field contains the special value C<-1> then the "
15412 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15413 "ignored in this case)."
15414 msgstr ""
15415
15416 #. type: textblock
15417 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
15418 msgid ""
15419 "If the C<*nsecs> field contains the special value C<-2> then the "
15420 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15421 "in this case)."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-actions.pod:4853
15426 msgid "version"
15427 msgstr "version"
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish-actions.pod:4855
15431 #, no-wrap
15432 msgid ""
15433 " version\n"
15434 "\n"
15435 msgstr ""
15436 " version\n"
15437 "\n"
15438
15439 #. type: textblock
15440 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
15441 msgid ""
15442 "Return the libguestfs version number that the program is linked against."
15443 msgstr ""
15444
15445 #. type: textblock
15446 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
15447 msgid ""
15448 "Note that because of dynamic linking this is not necessarily the version of "
15449 "libguestfs that you compiled against.  You can compile the program, and then "
15450 "at runtime dynamically link against a completely different C<libguestfs.so> "
15451 "library."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15456 msgid ""
15457 "This call was added in version C<1.0.58>.  In previous versions of "
15458 "libguestfs there was no way to get the version number.  From C code you can "
15459 "use dynamic linker functions to find out if this symbol exists (if it "
15460 "doesn't, then it's an earlier version)."
15461 msgstr ""
15462
15463 #. type: textblock
15464 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
15465 msgid ""
15466 "The call returns a structure with four elements.  The first three (C<major>, "
15467 "C<minor> and C<release>) are numbers and correspond to the usual version "
15468 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15469 "but may be used for distro-specific information."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
15474 msgid ""
15475 "To construct the original version string: C<$major.$minor.$release$extra>"
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
15480 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15481 msgstr ""
15482
15483 #. type: textblock
15484 #: ../fish/guestfish-actions.pod:4882
15485 msgid ""
15486 "I<Note:> Don't use this call to test for availability of features.  In "
15487 "enterprise distributions we backport features from later versions into "
15488 "earlier versions, making this an unreliable way to test for features.  Use "
15489 "L</available> instead."
15490 msgstr ""
15491
15492 #. type: =head2
15493 #: ../fish/guestfish-actions.pod:4888
15494 msgid "vfs-label"
15495 msgstr "vfs-label"
15496
15497 #. type: verbatim
15498 #: ../fish/guestfish-actions.pod:4890
15499 #, no-wrap
15500 msgid ""
15501 " vfs-label device\n"
15502 "\n"
15503 msgstr ""
15504 " vfs-label пристрій\n"
15505 "\n"
15506
15507 #. type: textblock
15508 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
15509 msgid "This returns the filesystem label of the filesystem on C<device>."
15510 msgstr ""
15511
15512 #. type: textblock
15513 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
15514 msgid "If the filesystem is unlabeled, this returns the empty string."
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4897
15519 msgid "To find a filesystem from the label, use L</findfs-label>."
15520 msgstr ""
15521
15522 #. type: =head2
15523 #: ../fish/guestfish-actions.pod:4899
15524 msgid "vfs-type"
15525 msgstr "vfs-type"
15526
15527 #. type: verbatim
15528 #: ../fish/guestfish-actions.pod:4901
15529 #, no-wrap
15530 msgid ""
15531 " vfs-type device\n"
15532 "\n"
15533 msgstr ""
15534 " vfs-type пристрій\n"
15535 "\n"
15536
15537 #. type: textblock
15538 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
15539 msgid ""
15540 "This command gets the filesystem type corresponding to the filesystem on "
15541 "C<device>."
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
15546 msgid ""
15547 "For most filesystems, the result is the name of the Linux VFS module which "
15548 "would be used to mount this filesystem if you mounted it without specifying "
15549 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15550 msgstr ""
15551
15552 #. type: =head2
15553 #: ../fish/guestfish-actions.pod:4911
15554 msgid "vfs-uuid"
15555 msgstr "vfs-uuid"
15556
15557 #. type: verbatim
15558 #: ../fish/guestfish-actions.pod:4913
15559 #, no-wrap
15560 msgid ""
15561 " vfs-uuid device\n"
15562 "\n"
15563 msgstr ""
15564 " vfs-uuid пристрій\n"
15565 "\n"
15566
15567 #. type: textblock
15568 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
15569 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
15574 msgid "If the filesystem does not have a UUID, this returns the empty string."
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../fish/guestfish-actions.pod:4920
15579 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15580 msgstr ""
15581
15582 #. type: =head2
15583 #: ../fish/guestfish-actions.pod:4922
15584 msgid "vg-activate"
15585 msgstr "vg-activate"
15586
15587 #. type: verbatim
15588 #: ../fish/guestfish-actions.pod:4924
15589 #, no-wrap
15590 msgid ""
15591 " vg-activate true|false 'volgroups ...'\n"
15592 "\n"
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
15597 msgid ""
15598 "This command activates or (if C<activate> is false) deactivates all logical "
15599 "volumes in the listed volume groups C<volgroups>."
15600 msgstr ""
15601
15602 #. type: textblock
15603 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
15604 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15605 msgstr ""
15606
15607 #. type: textblock
15608 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15609 msgid ""
15610 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15611 "activated or deactivated."
15612 msgstr ""
15613
15614 #. type: =head2
15615 #: ../fish/guestfish-actions.pod:4934
15616 msgid "vg-activate-all"
15617 msgstr "vg-activate-all"
15618
15619 #. type: verbatim
15620 #: ../fish/guestfish-actions.pod:4936
15621 #, no-wrap
15622 msgid ""
15623 " vg-activate-all true|false\n"
15624 "\n"
15625 msgstr ""
15626 " vg-activate-all true|false\n"
15627 "\n"
15628
15629 #. type: textblock
15630 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
15631 msgid ""
15632 "This command activates or (if C<activate> is false) deactivates all logical "
15633 "volumes in all volume groups."
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
15638 msgid "This command is the same as running C<vgchange -a y|n>"
15639 msgstr ""
15640
15641 #. type: =head2
15642 #: ../fish/guestfish-actions.pod:4943
15643 msgid "vgcreate"
15644 msgstr "vgcreate"
15645
15646 #. type: verbatim
15647 #: ../fish/guestfish-actions.pod:4945
15648 #, no-wrap
15649 msgid ""
15650 " vgcreate volgroup 'physvols ...'\n"
15651 "\n"
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
15656 msgid ""
15657 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15658 "of physical volumes C<physvols>."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../fish/guestfish-actions.pod:4950
15663 msgid "vglvuuids"
15664 msgstr "vglvuuids"
15665
15666 #. type: verbatim
15667 #: ../fish/guestfish-actions.pod:4952
15668 #, no-wrap
15669 msgid ""
15670 " vglvuuids vgname\n"
15671 "\n"
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
15676 msgid ""
15677 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15678 "volumes created in this volume group."
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4957
15683 msgid ""
15684 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15685 "logical volumes and volume groups."
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../fish/guestfish-actions.pod:4960
15690 msgid "See also L</vgpvuuids>."
15691 msgstr "Див. також L</vgpvuuids>."
15692
15693 #. type: =head2
15694 #: ../fish/guestfish-actions.pod:4962
15695 msgid "vgpvuuids"
15696 msgstr "vgpvuuids"
15697
15698 #. type: verbatim
15699 #: ../fish/guestfish-actions.pod:4964
15700 #, no-wrap
15701 msgid ""
15702 " vgpvuuids vgname\n"
15703 "\n"
15704 msgstr ""
15705
15706 #. type: textblock
15707 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
15708 msgid ""
15709 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15710 "volumes that this volume group resides on."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4969
15715 msgid ""
15716 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15717 "physical volumes and volume groups."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4972
15722 msgid "See also L</vglvuuids>."
15723 msgstr "Див. також L</vglvuuids>."
15724
15725 #. type: =head2
15726 #: ../fish/guestfish-actions.pod:4974
15727 msgid "vgremove"
15728 msgstr "vgremove"
15729
15730 #. type: verbatim
15731 #: ../fish/guestfish-actions.pod:4976
15732 #, no-wrap
15733 msgid ""
15734 " vgremove vgname\n"
15735 "\n"
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
15740 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15741 msgstr ""
15742
15743 #. type: textblock
15744 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
15745 msgid ""
15746 "This also forcibly removes all logical volumes in the volume group (if any)."
15747 msgstr ""
15748
15749 #. type: =head2
15750 #: ../fish/guestfish-actions.pod:4983
15751 msgid "vgrename"
15752 msgstr "vgrename"
15753
15754 #. type: verbatim
15755 #: ../fish/guestfish-actions.pod:4985
15756 #, no-wrap
15757 msgid ""
15758 " vgrename volgroup newvolgroup\n"
15759 "\n"
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
15764 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15765 msgstr ""
15766
15767 #. type: =head2
15768 #: ../fish/guestfish-actions.pod:4989
15769 msgid "vgs"
15770 msgstr "vgs"
15771
15772 #. type: verbatim
15773 #: ../fish/guestfish-actions.pod:4991
15774 #, no-wrap
15775 msgid ""
15776 " vgs\n"
15777 "\n"
15778 msgstr ""
15779 " vgs\n"
15780 "\n"
15781
15782 #. type: textblock
15783 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
15784 msgid ""
15785 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15786 "> command."
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
15791 msgid ""
15792 "This returns a list of just the volume group names that were detected (eg. "
15793 "C<VolGroup00>)."
15794 msgstr ""
15795
15796 #. type: textblock
15797 #: ../fish/guestfish-actions.pod:4999
15798 msgid "See also L</vgs-full>."
15799 msgstr "Див. також L</vgs-full>."
15800
15801 #. type: =head2
15802 #: ../fish/guestfish-actions.pod:5001
15803 msgid "vgs-full"
15804 msgstr "vgs-full"
15805
15806 #. type: verbatim
15807 #: ../fish/guestfish-actions.pod:5003
15808 #, no-wrap
15809 msgid ""
15810 " vgs-full\n"
15811 "\n"
15812 msgstr ""
15813 " vgs-full\n"
15814 "\n"
15815
15816 #. type: textblock
15817 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
15818 msgid ""
15819 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15820 "> command.  The \"full\" version includes all fields."
15821 msgstr ""
15822
15823 #. type: =head2
15824 #: ../fish/guestfish-actions.pod:5008
15825 msgid "vgscan"
15826 msgstr "vgscan"
15827
15828 #. type: verbatim
15829 #: ../fish/guestfish-actions.pod:5010
15830 #, no-wrap
15831 msgid ""
15832 " vgscan\n"
15833 "\n"
15834 msgstr ""
15835 " vgscan\n"
15836 "\n"
15837
15838 #. type: textblock
15839 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
15840 msgid ""
15841 "This rescans all block devices and rebuilds the list of LVM physical "
15842 "volumes, volume groups and logical volumes."
15843 msgstr ""
15844
15845 #. type: =head2
15846 #: ../fish/guestfish-actions.pod:5015
15847 msgid "vguuid"
15848 msgstr "vguuid"
15849
15850 #. type: verbatim
15851 #: ../fish/guestfish-actions.pod:5017
15852 #, no-wrap
15853 msgid ""
15854 " vguuid vgname\n"
15855 "\n"
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
15860 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15861 msgstr ""
15862
15863 #. type: =head2
15864 #: ../fish/guestfish-actions.pod:5021
15865 msgid "wc-c"
15866 msgstr "wc-c"
15867
15868 #. type: verbatim
15869 #: ../fish/guestfish-actions.pod:5023
15870 #, no-wrap
15871 msgid ""
15872 " wc-c path\n"
15873 "\n"
15874 msgstr ""
15875 " wc-c шлях\n"
15876 "\n"
15877
15878 #. type: textblock
15879 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
15880 msgid ""
15881 "This command counts the characters in a file, using the C<wc -c> external "
15882 "command."
15883 msgstr ""
15884
15885 #. type: =head2
15886 #: ../fish/guestfish-actions.pod:5028
15887 msgid "wc-l"
15888 msgstr "wc-l"
15889
15890 #. type: verbatim
15891 #: ../fish/guestfish-actions.pod:5030
15892 #, no-wrap
15893 msgid ""
15894 " wc-l path\n"
15895 "\n"
15896 msgstr ""
15897 " wc-l шлях\n"
15898 "\n"
15899
15900 #. type: textblock
15901 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
15902 msgid ""
15903 "This command counts the lines in a file, using the C<wc -l> external command."
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-actions.pod:5035
15908 msgid "wc-w"
15909 msgstr "wc-w"
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-actions.pod:5037
15913 #, no-wrap
15914 msgid ""
15915 " wc-w path\n"
15916 "\n"
15917 msgstr ""
15918 " wc-w шлях\n"
15919 "\n"
15920
15921 #. type: textblock
15922 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
15923 msgid ""
15924 "This command counts the words in a file, using the C<wc -w> external command."
15925 msgstr ""
15926
15927 #. type: =head2
15928 #: ../fish/guestfish-actions.pod:5042
15929 msgid "write"
15930 msgstr "write"
15931
15932 #. type: verbatim
15933 #: ../fish/guestfish-actions.pod:5044
15934 #, no-wrap
15935 msgid ""
15936 " write path content\n"
15937 "\n"
15938 msgstr ""
15939 " write шлях дані\n"
15940 "\n"
15941
15942 #. type: textblock
15943 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
15944 msgid ""
15945 "This call creates a file called C<path>.  The content of the file is the "
15946 "string C<content> (which can contain any 8 bit data)."
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:5049
15951 msgid "See also L</write-append>."
15952 msgstr ""
15953
15954 #. type: =head2
15955 #: ../fish/guestfish-actions.pod:5054
15956 msgid "write-append"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../fish/guestfish-actions.pod:5056
15961 #, no-wrap
15962 msgid ""
15963 " write-append path content\n"
15964 "\n"
15965 msgstr ""
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
15969 msgid ""
15970 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15971 "not exist, then a new file is created."
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:5061
15976 msgid "See also L</write>."
15977 msgstr ""
15978
15979 #. type: =head2
15980 #: ../fish/guestfish-actions.pod:5066
15981 msgid "write-file"
15982 msgstr "write-file"
15983
15984 #. type: verbatim
15985 #: ../fish/guestfish-actions.pod:5068
15986 #, no-wrap
15987 msgid ""
15988 " write-file path content size\n"
15989 "\n"
15990 msgstr ""
15991
15992 #. type: textblock
15993 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7695
15994 msgid ""
15995 "This call creates a file called C<path>.  The contents of the file is the "
15996 "string C<content> (which can contain any 8 bit data), with length C<size>."
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7699
16001 msgid ""
16002 "As a special case, if C<size> is C<0> then the length is calculated using "
16003 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7703
16008 msgid ""
16009 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16010 "I<not> work, even if the length is specified."
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5084
16015 msgid ""
16016 "This function is deprecated.  In new code, use the L</write> call instead."
16017 msgstr ""
16018
16019 #. type: =head2
16020 #: ../fish/guestfish-actions.pod:5091
16021 msgid "zegrep"
16022 msgstr "zegrep"
16023
16024 #. type: verbatim
16025 #: ../fish/guestfish-actions.pod:5093
16026 #, no-wrap
16027 msgid ""
16028 " zegrep regex path\n"
16029 "\n"
16030 msgstr ""
16031 " zegrep формальний_вираз шлях\n"
16032 "\n"
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
16036 msgid ""
16037 "This calls the external C<zegrep> program and returns the matching lines."
16038 msgstr ""
16039
16040 #. type: =head2
16041 #: ../fish/guestfish-actions.pod:5101
16042 msgid "zegrepi"
16043 msgstr "zegrepi"
16044
16045 #. type: verbatim
16046 #: ../fish/guestfish-actions.pod:5103
16047 #, no-wrap
16048 msgid ""
16049 " zegrepi regex path\n"
16050 "\n"
16051 msgstr ""
16052
16053 #. type: textblock
16054 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
16055 msgid ""
16056 "This calls the external C<zegrep -i> program and returns the matching lines."
16057 msgstr ""
16058
16059 #. type: =head2
16060 #: ../fish/guestfish-actions.pod:5111
16061 msgid "zero"
16062 msgstr "zero"
16063
16064 #. type: verbatim
16065 #: ../fish/guestfish-actions.pod:5113
16066 #, no-wrap
16067 msgid ""
16068 " zero device\n"
16069 "\n"
16070 msgstr ""
16071 " zero пристрій\n"
16072 "\n"
16073
16074 #. type: textblock
16075 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
16076 msgid "This command writes zeroes over the first few blocks of C<device>."
16077 msgstr ""
16078
16079 #. type: textblock
16080 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
16081 msgid ""
16082 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16083 "securely wipe the device).  It should be sufficient to remove any partition "
16084 "tables, filesystem superblocks and so on."
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish-actions.pod:5121
16089 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16090 msgstr ""
16091
16092 #. type: =head2
16093 #: ../fish/guestfish-actions.pod:5124
16094 msgid "zero-device"
16095 msgstr "zero-device"
16096
16097 #. type: verbatim
16098 #: ../fish/guestfish-actions.pod:5126
16099 #, no-wrap
16100 msgid ""
16101 " zero-device device\n"
16102 "\n"
16103 msgstr ""
16104 " zero-device пристрій\n"
16105 "\n"
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:5128
16109 msgid ""
16110 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16111 "which just zeroes the first few blocks of a device."
16112 msgstr ""
16113
16114 #. type: =head2
16115 #: ../fish/guestfish-actions.pod:5135
16116 msgid "zerofree"
16117 msgstr "zerofree"
16118
16119 #. type: verbatim
16120 #: ../fish/guestfish-actions.pod:5137
16121 #, no-wrap
16122 msgid ""
16123 " zerofree device\n"
16124 "\n"
16125 msgstr ""
16126 " zerofree пристрій\n"
16127 "\n"
16128
16129 #. type: textblock
16130 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
16131 msgid ""
16132 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16133 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16134 "possible to compress the filesystem more effectively."
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
16139 msgid "You should B<not> run this program if the filesystem is mounted."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
16144 msgid ""
16145 "It is possible that using this program can damage the filesystem or data on "
16146 "the filesystem."
16147 msgstr ""
16148
16149 #. type: =head2
16150 #: ../fish/guestfish-actions.pod:5150
16151 msgid "zfgrep"
16152 msgstr "zfgrep"
16153
16154 #. type: verbatim
16155 #: ../fish/guestfish-actions.pod:5152
16156 #, no-wrap
16157 msgid ""
16158 " zfgrep pattern path\n"
16159 "\n"
16160 msgstr ""
16161 " zfgrep шаблон шлях\n"
16162 "\n"
16163
16164 #. type: textblock
16165 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
16166 msgid ""
16167 "This calls the external C<zfgrep> program and returns the matching lines."
16168 msgstr ""
16169
16170 #. type: =head2
16171 #: ../fish/guestfish-actions.pod:5160
16172 msgid "zfgrepi"
16173 msgstr "zfgrepi"
16174
16175 #. type: verbatim
16176 #: ../fish/guestfish-actions.pod:5162
16177 #, no-wrap
16178 msgid ""
16179 " zfgrepi pattern path\n"
16180 "\n"
16181 msgstr ""
16182 " zfgrepi шаблон шлях\n"
16183 "\n"
16184
16185 #. type: textblock
16186 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
16187 msgid ""
16188 "This calls the external C<zfgrep -i> program and returns the matching lines."
16189 msgstr ""
16190
16191 #. type: =head2
16192 #: ../fish/guestfish-actions.pod:5170
16193 msgid "zfile"
16194 msgstr "zfile"
16195
16196 #. type: verbatim
16197 #: ../fish/guestfish-actions.pod:5172
16198 #, no-wrap
16199 msgid ""
16200 " zfile meth path\n"
16201 "\n"
16202 msgstr ""
16203 " zfile метод шлях\n"
16204 "\n"
16205
16206 #. type: textblock
16207 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7870
16208 msgid ""
16209 "This command runs C<file> after first decompressing C<path> using C<method>."
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7873
16214 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16215 msgstr ""
16216
16217 #. type: textblock
16218 #: ../fish/guestfish-actions.pod:5179
16219 msgid ""
16220 "Since 1.0.63, use L</file> instead which can now process compressed files."
16221 msgstr ""
16222
16223 #. type: textblock
16224 #: ../fish/guestfish-actions.pod:5182
16225 msgid ""
16226 "This function is deprecated.  In new code, use the L</file> call instead."
16227 msgstr ""
16228
16229 #. type: =head2
16230 #: ../fish/guestfish-actions.pod:5189
16231 msgid "zgrep"
16232 msgstr "zgrep"
16233
16234 #. type: verbatim
16235 #: ../fish/guestfish-actions.pod:5191
16236 #, no-wrap
16237 msgid ""
16238 " zgrep regex path\n"
16239 "\n"
16240 msgstr ""
16241 " zgrep формальний_вираз шлях\n"
16242 "\n"
16243
16244 #. type: textblock
16245 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
16246 msgid ""
16247 "This calls the external C<zgrep> program and returns the matching lines."
16248 msgstr ""
16249
16250 #. type: =head2
16251 #: ../fish/guestfish-actions.pod:5199
16252 msgid "zgrepi"
16253 msgstr "zgrepi"
16254
16255 #. type: verbatim
16256 #: ../fish/guestfish-actions.pod:5201
16257 #, no-wrap
16258 msgid ""
16259 " zgrepi regex path\n"
16260 "\n"
16261 msgstr ""
16262 " zgrepi формальний_вираз шлях\n"
16263 "\n"
16264
16265 #. type: textblock
16266 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
16267 msgid ""
16268 "This calls the external C<zgrep -i> program and returns the matching lines."
16269 msgstr ""
16270
16271 #. type: =head2
16272 #: ../fish/guestfish-commands.pod:1
16273 msgid "alloc"
16274 msgstr "alloc"
16275
16276 #. type: =head2
16277 #: ../fish/guestfish-commands.pod:3
16278 msgid "allocate"
16279 msgstr ""
16280
16281 #. type: verbatim
16282 #: ../fish/guestfish-commands.pod:5
16283 #, no-wrap
16284 msgid ""
16285 " alloc filename size\n"
16286 "\n"
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-commands.pod:7
16291 msgid ""
16292 "This creates an empty (zeroed) file of the given size, and then adds so it "
16293 "can be further examined."
16294 msgstr ""
16295
16296 #. type: textblock
16297 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16298 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16303 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../fish/guestfish-commands.pod:14
16308 msgid ""
16309 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16310 "image, see L</PREPARED DISK IMAGES>."
16311 msgstr ""
16312
16313 #. type: =head2
16314 #: ../fish/guestfish-commands.pod:17
16315 msgid "copy-in"
16316 msgstr "copy-in"
16317
16318 #. type: verbatim
16319 #: ../fish/guestfish-commands.pod:19
16320 #, no-wrap
16321 msgid ""
16322 " copy-in local [local ...] /remotedir\n"
16323 "\n"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-commands.pod:21
16328 msgid ""
16329 "C<copy-in> copies local files or directories recursively into the disk "
16330 "image, placing them in the directory called C</remotedir> (which must "
16331 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16332 "other commands as necessary."
16333 msgstr ""
16334
16335 #. type: textblock
16336 #: ../fish/guestfish-commands.pod:26
16337 msgid ""
16338 "Multiple local files and directories can be specified, but the last "
16339 "parameter must always be a remote directory.  Wildcards cannot be used."
16340 msgstr ""
16341
16342 #. type: =head2
16343 #: ../fish/guestfish-commands.pod:30
16344 msgid "copy-out"
16345 msgstr "copy-out"
16346
16347 #. type: verbatim
16348 #: ../fish/guestfish-commands.pod:32
16349 #, no-wrap
16350 msgid ""
16351 " copy-out remote [remote ...] localdir\n"
16352 "\n"
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish-commands.pod:34
16357 msgid ""
16358 "C<copy-out> copies remote files or directories recursively out of the disk "
16359 "image, placing them on the host disk in a local directory called C<localdir> "
16360 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16361 "download>, L</tar-out> and other commands as necessary."
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish-commands.pod:40
16366 msgid ""
16367 "Multiple remote files and directories can be specified, but the last "
16368 "parameter must always be a local directory.  To download to the current "
16369 "directory, use C<.> as in:"
16370 msgstr ""
16371
16372 #. type: verbatim
16373 #: ../fish/guestfish-commands.pod:44
16374 #, no-wrap
16375 msgid ""
16376 " copy-out /home .\n"
16377 "\n"
16378 msgstr ""
16379 " copy-out /home .\n"
16380 "\n"
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-commands.pod:46
16384 msgid ""
16385 "Wildcards cannot be used in the ordinary command, but you can use them with "
16386 "the help of L</glob> like this:"
16387 msgstr ""
16388
16389 #. type: verbatim
16390 #: ../fish/guestfish-commands.pod:49
16391 #, no-wrap
16392 msgid ""
16393 " glob copy-out /home/* .\n"
16394 "\n"
16395 msgstr ""
16396 " glob copy-out /home/* .\n"
16397 "\n"
16398
16399 #. type: =head2
16400 #: ../fish/guestfish-commands.pod:51
16401 msgid "display"
16402 msgstr ""
16403
16404 #. type: verbatim
16405 #: ../fish/guestfish-commands.pod:53
16406 #, no-wrap
16407 msgid ""
16408 " display filename\n"
16409 "\n"
16410 msgstr ""
16411
16412 #. type: textblock
16413 #: ../fish/guestfish-commands.pod:55
16414 msgid ""
16415 "Use C<display> (a graphical display program) to display an image file.  It "
16416 "downloads the file, and runs C<display> on it."
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../fish/guestfish-commands.pod:58
16421 msgid ""
16422 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16423 "environment variable.  For example to use the GNOME display program:"
16424 msgstr ""
16425
16426 #. type: verbatim
16427 #: ../fish/guestfish-commands.pod:61
16428 #, no-wrap
16429 msgid ""
16430 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16431 "\n"
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-commands.pod:63
16436 msgid "See also L<display(1)>."
16437 msgstr ""
16438
16439 #. type: =head2
16440 #: ../fish/guestfish-commands.pod:65
16441 msgid "echo"
16442 msgstr "echo"
16443
16444 #. type: verbatim
16445 #: ../fish/guestfish-commands.pod:67
16446 #, no-wrap
16447 msgid ""
16448 " echo [params ...]\n"
16449 "\n"
16450 msgstr ""
16451 " echo [параметри...]\n"
16452 "\n"
16453
16454 #. type: textblock
16455 #: ../fish/guestfish-commands.pod:69
16456 msgid "This echos the parameters to the terminal."
16457 msgstr ""
16458
16459 #. type: =head2
16460 #: ../fish/guestfish-commands.pod:71
16461 msgid "edit"
16462 msgstr "edit"
16463
16464 #. type: =head2
16465 #: ../fish/guestfish-commands.pod:73
16466 msgid "vi"
16467 msgstr "vi"
16468
16469 #. type: =head2
16470 #: ../fish/guestfish-commands.pod:75
16471 msgid "emacs"
16472 msgstr "emacs"
16473
16474 #. type: verbatim
16475 #: ../fish/guestfish-commands.pod:77
16476 #, no-wrap
16477 msgid ""
16478 " edit filename\n"
16479 "\n"
16480 msgstr ""
16481 " edit назва_файла\n"
16482 "\n"
16483
16484 #. type: textblock
16485 #: ../fish/guestfish-commands.pod:79
16486 msgid ""
16487 "This is used to edit a file.  It downloads the file, edits it locally using "
16488 "your editor, then uploads the result."
16489 msgstr ""
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-commands.pod:82
16493 msgid ""
16494 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16495 "or C<emacs> you will get those corresponding editors."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-commands.pod:86
16500 msgid "glob"
16501 msgstr "glob"
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-commands.pod:88
16505 #, no-wrap
16506 msgid ""
16507 " glob command args...\n"
16508 "\n"
16509 msgstr ""
16510 " glob команда параметри...\n"
16511 "\n"
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-commands.pod:90
16515 msgid ""
16516 "Expand wildcards in any paths in the args list, and run C<command> "
16517 "repeatedly on each matching path."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../fish/guestfish-commands.pod:93
16522 msgid "See L</WILDCARDS AND GLOBBING>."
16523 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16524
16525 #. type: =head2
16526 #: ../fish/guestfish-commands.pod:95
16527 msgid "hexedit"
16528 msgstr "hexedit"
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish-commands.pod:97
16532 #, no-wrap
16533 msgid ""
16534 " hexedit <filename|device>\n"
16535 " hexedit <filename|device> <max>\n"
16536 " hexedit <filename|device> <start> <max>\n"
16537 "\n"
16538 msgstr ""
16539
16540 #. type: textblock
16541 #: ../fish/guestfish-commands.pod:101
16542 msgid ""
16543 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16544 "device."
16545 msgstr ""
16546
16547 #. type: textblock
16548 #: ../fish/guestfish-commands.pod:104
16549 msgid ""
16550 "This command works by downloading potentially the whole file or device, "
16551 "editing it locally, then uploading it.  If the file or device is large, you "
16552 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16553 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16554 "usual modifiers allowed such as C<1M> (1 megabyte)."
16555 msgstr ""
16556
16557 #. type: textblock
16558 #: ../fish/guestfish-commands.pod:111
16559 msgid "For example to edit the first few sectors of a disk you might do:"
16560 msgstr ""
16561
16562 #. type: verbatim
16563 #: ../fish/guestfish-commands.pod:114
16564 #, no-wrap
16565 msgid ""
16566 " hexedit /dev/sda 1M\n"
16567 "\n"
16568 msgstr ""
16569 " hexedit /dev/sda 1M\n"
16570 "\n"
16571
16572 #. type: textblock
16573 #: ../fish/guestfish-commands.pod:116
16574 msgid ""
16575 "which would allow you to edit anywhere within the first megabyte of the disk."
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../fish/guestfish-commands.pod:119
16580 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16581 msgstr ""
16582
16583 #. type: verbatim
16584 #: ../fish/guestfish-commands.pod:121
16585 #, no-wrap
16586 msgid ""
16587 " hexedit /dev/sda1 0x400 0x400\n"
16588 "\n"
16589 msgstr ""
16590 " hexedit /dev/sda1 0x400 0x400\n"
16591 "\n"
16592
16593 #. type: textblock
16594 #: ../fish/guestfish-commands.pod:123
16595 msgid "(assuming the superblock is in the standard location)."
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish-commands.pod:125
16600 msgid ""
16601 "This command requires the external L<hexedit(1)> program.  You can specify "
16602 "another program to use by setting the C<HEXEDITOR> environment variable."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-commands.pod:129
16607 msgid "See also L</hexdump>."
16608 msgstr "Див. також L</hexdump>."
16609
16610 #. type: =head2
16611 #: ../fish/guestfish-commands.pod:131
16612 msgid "lcd"
16613 msgstr "lcd"
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish-commands.pod:133
16617 #, no-wrap
16618 msgid ""
16619 " lcd directory\n"
16620 "\n"
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-commands.pod:135
16625 msgid ""
16626 "Change the local directory, ie. the current directory of guestfish itself."
16627 msgstr ""
16628
16629 #. type: textblock
16630 #: ../fish/guestfish-commands.pod:138
16631 msgid "Note that C<!cd> won't do what you might expect."
16632 msgstr ""
16633
16634 #. type: =head2
16635 #: ../fish/guestfish-commands.pod:140
16636 msgid "man"
16637 msgstr "man"
16638
16639 #. type: =head2
16640 #: ../fish/guestfish-commands.pod:142
16641 msgid "manual"
16642 msgstr ""
16643
16644 #. type: verbatim
16645 #: ../fish/guestfish-commands.pod:144
16646 #, no-wrap
16647 msgid ""
16648 "  man\n"
16649 "\n"
16650 msgstr ""
16651 "  man\n"
16652 "\n"
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-commands.pod:146
16656 msgid "Opens the manual page for guestfish."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../fish/guestfish-commands.pod:148
16661 msgid "more"
16662 msgstr "more"
16663
16664 #. type: =head2
16665 #: ../fish/guestfish-commands.pod:150
16666 msgid "less"
16667 msgstr "less"
16668
16669 #. type: verbatim
16670 #: ../fish/guestfish-commands.pod:152
16671 #, no-wrap
16672 msgid ""
16673 " more filename\n"
16674 "\n"
16675 msgstr ""
16676
16677 #. type: verbatim
16678 #: ../fish/guestfish-commands.pod:154
16679 #, no-wrap
16680 msgid ""
16681 " less filename\n"
16682 "\n"
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish-commands.pod:156
16687 msgid "This is used to view a file."
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-commands.pod:158
16692 msgid ""
16693 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16694 "C<less> you will get the C<less> command specifically."
16695 msgstr ""
16696
16697 #. type: =head2
16698 #: ../fish/guestfish-commands.pod:161
16699 msgid "reopen"
16700 msgstr "reopen"
16701
16702 #. type: verbatim
16703 #: ../fish/guestfish-commands.pod:163
16704 #, no-wrap
16705 msgid ""
16706 "  reopen\n"
16707 "\n"
16708 msgstr ""
16709
16710 #. type: textblock
16711 #: ../fish/guestfish-commands.pod:165
16712 msgid ""
16713 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16714 "normally, because the handle is closed properly when guestfish exits.  "
16715 "However this is occasionally useful for testing."
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../fish/guestfish-commands.pod:169
16720 msgid "sparse"
16721 msgstr "sparse"
16722
16723 #. type: verbatim
16724 #: ../fish/guestfish-commands.pod:171
16725 #, no-wrap
16726 msgid ""
16727 " sparse filename size\n"
16728 "\n"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-commands.pod:173
16733 msgid ""
16734 "This creates an empty sparse file of the given size, and then adds so it can "
16735 "be further examined."
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../fish/guestfish-commands.pod:176
16740 msgid ""
16741 "In all respects it works the same as the L</alloc> command, except that the "
16742 "image file is allocated sparsely, which means that disk blocks are not "
16743 "assigned to the file until they are needed.  Sparse disk files only use "
16744 "space when written to, but they are slower and there is a danger you could "
16745 "run out of real disk space during a write operation."
16746 msgstr ""
16747
16748 #. type: =head2
16749 #: ../fish/guestfish-commands.pod:186
16750 msgid "supported"
16751 msgstr "supported"
16752
16753 #. type: verbatim
16754 #: ../fish/guestfish-commands.pod:188
16755 #, no-wrap
16756 msgid ""
16757 " supported\n"
16758 "\n"
16759 msgstr ""
16760 " supported\n"
16761 "\n"
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-commands.pod:190
16765 msgid ""
16766 "This command returns a list of the optional groups known to the daemon, and "
16767 "indicates which ones are supported by this build of the libguestfs appliance."
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish-commands.pod:194
16772 msgid "See also L<guestfs(3)/AVAILABILITY>."
16773 msgstr ""
16774
16775 #. type: =head2
16776 #: ../fish/guestfish-commands.pod:196
16777 msgid "time"
16778 msgstr "time"
16779
16780 #. type: verbatim
16781 #: ../fish/guestfish-commands.pod:198
16782 #, no-wrap
16783 msgid ""
16784 " time command args...\n"
16785 "\n"
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-commands.pod:200
16790 msgid ""
16791 "Run the command as usual, but print the elapsed time afterwards.  This can "
16792 "be useful for benchmarking operations."
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../fish/guestfish.pod:5
16797 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16798 msgstr ""
16799
16800 #. type: verbatim
16801 #: ../fish/guestfish.pod:9
16802 #, no-wrap
16803 msgid ""
16804 " guestfish [--options] [commands]\n"
16805 "\n"
16806 msgstr ""
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish.pod:11
16810 #, no-wrap
16811 msgid ""
16812 " guestfish\n"
16813 "\n"
16814 msgstr ""
16815
16816 #. type: verbatim
16817 #: ../fish/guestfish.pod:13
16818 #, no-wrap
16819 msgid ""
16820 " guestfish [--ro|--rw] -a disk.img\n"
16821 "\n"
16822 msgstr ""
16823
16824 #. type: verbatim
16825 #: ../fish/guestfish.pod:15
16826 #, no-wrap
16827 msgid ""
16828 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16829 "\n"
16830 msgstr ""
16831
16832 #. type: verbatim
16833 #: ../fish/guestfish.pod:17
16834 #, no-wrap
16835 msgid ""
16836 " guestfish -d libvirt-domain\n"
16837 "\n"
16838 msgstr ""
16839
16840 #. type: verbatim
16841 #: ../fish/guestfish.pod:19
16842 #, no-wrap
16843 msgid ""
16844 " guestfish [--ro|--rw] -a disk.img -i\n"
16845 "\n"
16846 msgstr ""
16847
16848 #. type: verbatim
16849 #: ../fish/guestfish.pod:21
16850 #, no-wrap
16851 msgid ""
16852 " guestfish -d libvirt-domain -i\n"
16853 "\n"
16854 msgstr ""
16855
16856 #. type: textblock
16857 #: ../fish/guestfish.pod:25
16858 msgid ""
16859 "Using guestfish in read/write mode on live virtual machines can be "
16860 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16861 "option to use guestfish safely if the disk image or virtual machine might be "
16862 "live."
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../fish/guestfish.pod:32
16867 msgid ""
16868 "Guestfish is a shell and command-line tool for examining and modifying "
16869 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16870 "functionality of the guestfs API, see L<guestfs(3)>."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:36
16875 msgid ""
16876 "Guestfish gives you structured access to the libguestfs API, from shell "
16877 "scripts or the command line or interactively.  If you want to rescue a "
16878 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16879 "command."
16880 msgstr ""
16881
16882 #. type: =head2
16883 #: ../fish/guestfish.pod:43
16884 msgid "As an interactive shell"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish.pod:45
16889 #, no-wrap
16890 msgid ""
16891 " $ guestfish\n"
16892 " \n"
16893 msgstr ""
16894
16895 #. type: verbatim
16896 #: ../fish/guestfish.pod:47
16897 #, no-wrap
16898 msgid ""
16899 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16900 " editing virtual machine filesystems.\n"
16901 " \n"
16902 msgstr ""
16903
16904 #. type: verbatim
16905 #: ../fish/guestfish.pod:50
16906 #, no-wrap
16907 msgid ""
16908 " Type: 'help' for a list of commands\n"
16909 "       'man' to read the manual\n"
16910 "       'quit' to quit the shell\n"
16911 " \n"
16912 msgstr ""
16913
16914 #. type: verbatim
16915 #: ../fish/guestfish.pod:54
16916 #, no-wrap
16917 msgid ""
16918 " ><fs> add-ro disk.img\n"
16919 " ><fs> run\n"
16920 " ><fs> list-filesystems\n"
16921 " /dev/sda1: ext4\n"
16922 " /dev/vg_guest/lv_root: ext4\n"
16923 " /dev/vg_guest/lv_swap: swap\n"
16924 " ><fs> mount /dev/vg_guest/lv_root /\n"
16925 " ><fs> cat /etc/fstab\n"
16926 " # /etc/fstab\n"
16927 " # Created by anaconda\n"
16928 " [...]\n"
16929 " ><fs> exit\n"
16930 "\n"
16931 msgstr ""
16932
16933 #. type: =head2
16934 #: ../fish/guestfish.pod:67
16935 msgid "From shell scripts"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish.pod:69
16940 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16941 msgstr ""
16942
16943 #. type: verbatim
16944 #: ../fish/guestfish.pod:71
16945 #, no-wrap
16946 msgid ""
16947 " guestfish <<_EOF_\n"
16948 " add disk.img\n"
16949 " run\n"
16950 " mount /dev/vg_guest/lv_root /\n"
16951 " write /etc/motd \"Welcome, new users\"\n"
16952 " _EOF_\n"
16953 "\n"
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish.pod:78
16958 msgid "List the LVM logical volumes in a disk image:"
16959 msgstr ""
16960
16961 #. type: verbatim
16962 #: ../fish/guestfish.pod:80
16963 #, no-wrap
16964 msgid ""
16965 " guestfish -a disk.img --ro <<_EOF_\n"
16966 " run\n"
16967 " lvs\n"
16968 " _EOF_\n"
16969 "\n"
16970 msgstr ""
16971
16972 #. type: textblock
16973 #: ../fish/guestfish.pod:85
16974 msgid "List all the filesystems in a disk image:"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish.pod:87
16979 #, no-wrap
16980 msgid ""
16981 " guestfish -a disk.img --ro <<_EOF_\n"
16982 " run\n"
16983 " list-filesystems\n"
16984 " _EOF_\n"
16985 "\n"
16986 msgstr ""
16987
16988 #. type: =head2
16989 #: ../fish/guestfish.pod:92
16990 msgid "On one command line"
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16995 msgid "Update C</etc/resolv.conf> in a guest:"
16996 msgstr ""
16997
16998 #. type: verbatim
16999 #: ../fish/guestfish.pod:96
17000 #, no-wrap
17001 msgid ""
17002 " guestfish \\\n"
17003 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17004 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17005 "\n"
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish.pod:100
17010 msgid "Edit C</boot/grub/grub.conf> interactively:"
17011 msgstr ""
17012
17013 #. type: verbatim
17014 #: ../fish/guestfish.pod:102
17015 #, no-wrap
17016 msgid ""
17017 " guestfish --rw --add disk.img \\\n"
17018 "   --mount /dev/vg_guest/lv_root \\\n"
17019 "   --mount /dev/sda1:/boot \\\n"
17020 "   edit /boot/grub/grub.conf\n"
17021 "\n"
17022 msgstr ""
17023
17024 #. type: =head2
17025 #: ../fish/guestfish.pod:107
17026 msgid "Mount disks automatically"
17027 msgstr ""
17028
17029 #. type: textblock
17030 #: ../fish/guestfish.pod:109
17031 msgid ""
17032 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17033 msgstr ""
17034
17035 #. type: verbatim
17036 #: ../fish/guestfish.pod:112
17037 #, no-wrap
17038 msgid ""
17039 " guestfish --ro -a disk.img -i cat /etc/group\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: verbatim
17044 #: ../fish/guestfish.pod:114
17045 #, no-wrap
17046 msgid ""
17047 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17048 "\n"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish.pod:116
17053 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17054 msgstr ""
17055
17056 #. type: verbatim
17057 #: ../fish/guestfish.pod:118
17058 #, no-wrap
17059 msgid ""
17060 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17061 "\n"
17062 msgstr ""
17063
17064 #. type: =head2
17065 #: ../fish/guestfish.pod:120
17066 msgid "As a script interpreter"
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish.pod:122
17071 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17072 msgstr ""
17073
17074 #. type: verbatim
17075 #: ../fish/guestfish.pod:124
17076 #, no-wrap
17077 msgid ""
17078 " #!/usr/bin/guestfish -f\n"
17079 " sparse test1.img 100M\n"
17080 " run\n"
17081 " part-disk /dev/sda mbr\n"
17082 " mkfs ext2 /dev/sda1\n"
17083 "\n"
17084 msgstr ""
17085
17086 #. type: =head2
17087 #: ../fish/guestfish.pod:130
17088 msgid "Start with a prepared disk"
17089 msgstr ""
17090
17091 #. type: textblock
17092 #: ../fish/guestfish.pod:132
17093 msgid ""
17094 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17095 "single ext2-formatted partition:"
17096 msgstr ""
17097
17098 #. type: verbatim
17099 #: ../fish/guestfish.pod:135
17100 #, no-wrap
17101 msgid ""
17102 " guestfish -N fs\n"
17103 "\n"
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish.pod:137
17108 msgid "To list what is available do:"
17109 msgstr ""
17110
17111 #. type: verbatim
17112 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
17113 #, no-wrap
17114 msgid ""
17115 " guestfish -N help | less\n"
17116 "\n"
17117 msgstr ""
17118
17119 #. type: =head2
17120 #: ../fish/guestfish.pod:141
17121 msgid "Remote control"
17122 msgstr "Дистанційне керування"
17123
17124 #. type: verbatim
17125 #: ../fish/guestfish.pod:143
17126 #, no-wrap
17127 msgid ""
17128 " eval \"`guestfish --listen`\"\n"
17129 " guestfish --remote add-ro disk.img\n"
17130 " guestfish --remote run\n"
17131 " guestfish --remote lvs\n"
17132 "\n"
17133 msgstr ""
17134 " eval \"`guestfish --listen`\"\n"
17135 " guestfish --remote add-ro disk.img\n"
17136 " guestfish --remote run\n"
17137 " guestfish --remote lvs\n"
17138 "\n"
17139
17140 #. type: textblock
17141 #: ../fish/guestfish.pod:154
17142 msgid "Displays general help on options."
17143 msgstr ""
17144
17145 #. type: =item
17146 #: ../fish/guestfish.pod:158
17147 msgid "B<--cmd-help>"
17148 msgstr "B<--cmd-help>"
17149
17150 #. type: textblock
17151 #: ../fish/guestfish.pod:160
17152 msgid "Lists all available guestfish commands."
17153 msgstr ""
17154
17155 #. type: =item
17156 #: ../fish/guestfish.pod:162
17157 msgid "B<-h cmd>"
17158 msgstr "B<-h команда>"
17159
17160 #. type: =item
17161 #: ../fish/guestfish.pod:164
17162 msgid "B<--cmd-help cmd>"
17163 msgstr "B<--cmd-help команда>"
17164
17165 #. type: textblock
17166 #: ../fish/guestfish.pod:166
17167 msgid "Displays detailed help on a single command C<cmd>."
17168 msgstr ""
17169
17170 #. type: =item
17171 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17172 msgid "B<-a image>"
17173 msgstr "B<-a образ>"
17174
17175 #. type: =item
17176 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17177 msgid "B<--add image>"
17178 msgstr "B<--add образ>"
17179
17180 #. type: textblock
17181 #: ../fish/guestfish.pod:172
17182 msgid "Add a block device or virtual machine image to the shell."
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../fish/guestfish.pod:177
17187 msgid ""
17188 "Using this flag is mostly equivalent to using the C<add> command, with "
17189 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17190 "the I<--format=...> flag was given."
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17195 msgid ""
17196 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17197 "URI to use.  The default is to use the default libvirt connection."
17198 msgstr ""
17199
17200 #. type: =item
17201 #: ../fish/guestfish.pod:189
17202 msgid "B<--csh>"
17203 msgstr "B<--csh>"
17204
17205 #. type: textblock
17206 #: ../fish/guestfish.pod:191
17207 msgid ""
17208 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17209 "section L</REMOTE CONTROL AND CSH> below."
17210 msgstr ""
17211
17212 #. type: =item
17213 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17214 msgid "B<-d libvirt-domain>"
17215 msgstr "B<-d домен-libvirt>"
17216
17217 #. type: =item
17218 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17219 msgid "B<--domain libvirt-domain>"
17220 msgstr "B<--domain домен-libvirt>"
17221
17222 #. type: textblock
17223 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17224 msgid ""
17225 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17226 "used, then any libvirt domain can be used.  However in write mode, only "
17227 "libvirt domains which are shut down can be named here."
17228 msgstr ""
17229
17230 #. type: textblock
17231 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17232 msgid "Domain UUIDs can be used instead of names."
17233 msgstr ""
17234
17235 #. type: textblock
17236 #: ../fish/guestfish.pod:204
17237 msgid ""
17238 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17239 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17240 "if the I<--format:...> flag was given."
17241 msgstr ""
17242
17243 #. type: =item
17244 #: ../fish/guestfish.pod:208
17245 msgid "B<-D>"
17246 msgstr "B<-D>"
17247
17248 #. type: =item
17249 #: ../fish/guestfish.pod:210
17250 msgid "B<--no-dest-paths>"
17251 msgstr "B<--no-dest-paths>"
17252
17253 #. type: textblock
17254 #: ../fish/guestfish.pod:212
17255 msgid ""
17256 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17257 "to hit the tab key to complete paths on the guest filesystem, but this "
17258 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17259 "allow this feature to be disabled."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17264 msgid ""
17265 "When prompting for keys and passphrases, guestfish normally turns echoing "
17266 "off so you cannot see what you are typing.  If you are not worried about "
17267 "Tempest attacks and there is no one else in the room you can specify this "
17268 "flag to see what you are typing."
17269 msgstr ""
17270
17271 #. type: =item
17272 #: ../fish/guestfish.pod:224
17273 msgid "B<-f file>"
17274 msgstr "B<-f файл>"
17275
17276 #. type: =item
17277 #: ../fish/guestfish.pod:226
17278 msgid "B<--file file>"
17279 msgstr "B<--file файл>"
17280
17281 #. type: textblock
17282 #: ../fish/guestfish.pod:228
17283 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17284 msgstr ""
17285
17286 #. type: verbatim
17287 #: ../fish/guestfish.pod:231
17288 #, no-wrap
17289 msgid ""
17290 " #!/usr/bin/guestfish -f\n"
17291 "\n"
17292 msgstr ""
17293 " #!/usr/bin/guestfish -f\n"
17294 "\n"
17295
17296 #. type: verbatim
17297 #: ../fish/guestfish.pod:244
17298 #, no-wrap
17299 msgid ""
17300 " guestfish --format=raw -a disk.img\n"
17301 "\n"
17302 msgstr ""
17303 " guestfish --format=raw -a disk.img\n"
17304 "\n"
17305
17306 #. type: verbatim
17307 #: ../fish/guestfish.pod:248
17308 #, no-wrap
17309 msgid ""
17310 " guestfish --format=raw -a disk.img --format -a another.img\n"
17311 "\n"
17312 msgstr ""
17313 " guestfish --format=raw -a disk.img --format -a another.img\n"
17314 "\n"
17315
17316 #. type: textblock
17317 #: ../fish/guestfish.pod:253
17318 msgid ""
17319 "If you have untrusted raw-format guest disk images, you should use this "
17320 "option to specify the disk format.  This avoids a possible security problem "
17321 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17322 msgstr ""
17323
17324 #. type: =item
17325 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17326 msgid "B<--inspector>"
17327 msgstr "B<--inspector>"
17328
17329 #. type: textblock
17330 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17331 msgid ""
17332 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17333 "system and mount filesystems as they would be mounted on the real virtual "
17334 "machine."
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish.pod:266
17339 msgid "Typical usage is either:"
17340 msgstr ""
17341
17342 #. type: verbatim
17343 #: ../fish/guestfish.pod:268
17344 #, no-wrap
17345 msgid ""
17346 " guestfish -d myguest -i\n"
17347 "\n"
17348 msgstr ""
17349 " guestfish -d myguest -i\n"
17350 "\n"
17351
17352 #. type: textblock
17353 #: ../fish/guestfish.pod:270
17354 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17355 msgstr ""
17356
17357 #. type: verbatim
17358 #: ../fish/guestfish.pod:272
17359 #, no-wrap
17360 msgid ""
17361 " guestfish --ro -d myguest -i\n"
17362 "\n"
17363 msgstr ""
17364 " guestfish --ro -d myguest -i\n"
17365 "\n"
17366
17367 #. type: textblock
17368 #: ../fish/guestfish.pod:274
17369 msgid "(for active domains, readonly), or specify the block device directly:"
17370 msgstr ""
17371
17372 #. type: verbatim
17373 #: ../fish/guestfish.pod:276
17374 #, no-wrap
17375 msgid ""
17376 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17377 "\n"
17378 msgstr ""
17379 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17380 "\n"
17381
17382 #. type: textblock
17383 #: ../fish/guestfish.pod:278
17384 msgid ""
17385 "Note that the command line syntax changed slightly over older versions of "
17386 "guestfish.  You can still use the old syntax:"
17387 msgstr ""
17388
17389 #. type: verbatim
17390 #: ../fish/guestfish.pod:281
17391 #, no-wrap
17392 msgid ""
17393 " guestfish [--ro] -i disk.img\n"
17394 "\n"
17395 msgstr ""
17396 " guestfish [--ro] -i disk.img\n"
17397 "\n"
17398
17399 #. type: verbatim
17400 #: ../fish/guestfish.pod:283
17401 #, no-wrap
17402 msgid ""
17403 " guestfish [--ro] -i libvirt-domain\n"
17404 "\n"
17405 msgstr ""
17406
17407 #. type: textblock
17408 #: ../fish/guestfish.pod:285
17409 msgid ""
17410 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17411 "then using other commands to mount the filesystems that were found."
17412 msgstr ""
17413
17414 #. type: =item
17415 #: ../fish/guestfish.pod:294
17416 msgid "B<--listen>"
17417 msgstr "B<--listen>"
17418
17419 #. type: textblock
17420 #: ../fish/guestfish.pod:296
17421 msgid ""
17422 "Fork into the background and listen for remote commands.  See section L</"
17423 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17424 msgstr ""
17425
17426 #. type: =item
17427 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17428 msgid "B<--live>"
17429 msgstr "B<--live>"
17430
17431 #. type: textblock
17432 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17433 msgid ""
17434 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17435 "ATTACHING TO RUNNING DAEMONS>)."
17436 msgstr ""
17437
17438 #. type: =item
17439 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17440 msgid "B<-m dev[:mountpoint[:options]]>"
17441 msgstr ""
17442
17443 #. type: =item
17444 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17445 msgid "B<--mount dev[:mountpoint[:options]]>"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../fish/guestfish.pod:308
17450 msgid "Mount the named partition or logical volume on the given mountpoint."
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish.pod:310
17455 msgid "If the mountpoint is omitted, it defaults to C</>."
17456 msgstr ""
17457
17458 #. type: textblock
17459 #: ../fish/guestfish.pod:312
17460 msgid "You have to mount something on C</> before most commands will work."
17461 msgstr ""
17462
17463 #. type: textblock
17464 #: ../fish/guestfish.pod:314
17465 msgid ""
17466 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17467 "launched."
17468 msgstr ""
17469
17470 #. type: textblock
17471 #: ../fish/guestfish.pod:317
17472 msgid ""
17473 "If you don't know what filesystems a disk image contains, you can either run "
17474 "guestfish without this option, then list the partitions, filesystems and LVs "
17475 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17476 "commands), or you can use the L<virt-filesystems(1)> program."
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17481 msgid ""
17482 "The third (and rarely used) part of the mount parameter is the list of mount "
17483 "options used to mount the underlying filesystem.  If this is not given, then "
17484 "the mount options are either the empty string or C<ro> (the latter if the "
17485 "I<--ro> flag is used).  By specifying the mount options, you override this "
17486 "default choice.  Probably the only time you would use this is to enable ACLs "
17487 "and/or extended attributes if the filesystem can support them:"
17488 msgstr ""
17489
17490 #. type: verbatim
17491 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17492 #, no-wrap
17493 msgid ""
17494 " -m /dev/sda1:/:acl,user_xattr\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish.pod:333
17500 msgid "Using this flag is equivalent to using the C<mount-options> command."
17501 msgstr ""
17502
17503 #. type: =item
17504 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17505 #: ../resize/virt-resize.pod:352
17506 msgid "B<-n>"
17507 msgstr "B<-n>"
17508
17509 #. type: =item
17510 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17511 msgid "B<--no-sync>"
17512 msgstr "B<--no-sync>"
17513
17514 #. type: textblock
17515 #: ../fish/guestfish.pod:339
17516 msgid ""
17517 "Disable autosync.  This is enabled by default.  See the discussion of "
17518 "autosync in the L<guestfs(3)> manpage."
17519 msgstr ""
17520
17521 #. type: =item
17522 #: ../fish/guestfish.pod:342
17523 msgid "B<-N type>"
17524 msgstr "B<-N тип>"
17525
17526 #. type: =item
17527 #: ../fish/guestfish.pod:344
17528 msgid "B<--new type>"
17529 msgstr "B<--new тип>"
17530
17531 #. type: =item
17532 #: ../fish/guestfish.pod:346
17533 msgid "B<-N help>"
17534 msgstr "B<-N help>"
17535
17536 #. type: textblock
17537 #: ../fish/guestfish.pod:348
17538 msgid ""
17539 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17540 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17541 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17542 "IMAGES> below."
17543 msgstr ""
17544
17545 #. type: =item
17546 #: ../fish/guestfish.pod:353
17547 msgid "B<--progress-bars>"
17548 msgstr "B<--progress-bars>"
17549
17550 #. type: textblock
17551 #: ../fish/guestfish.pod:355
17552 msgid "Enable progress bars, even when guestfish is used non-interactively."
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish.pod:357
17557 msgid ""
17558 "Progress bars are enabled by default when guestfish is used as an "
17559 "interactive shell."
17560 msgstr ""
17561
17562 #. type: =item
17563 #: ../fish/guestfish.pod:360
17564 msgid "B<--no-progress-bars>"
17565 msgstr "B<--no-progress-bars>"
17566
17567 #. type: textblock
17568 #: ../fish/guestfish.pod:362
17569 msgid "Disable progress bars."
17570 msgstr ""
17571
17572 #. type: =item
17573 #: ../fish/guestfish.pod:364
17574 msgid "B<--remote[=pid]>"
17575 msgstr "B<--remote[=pid]>"
17576
17577 #. type: textblock
17578 #: ../fish/guestfish.pod:366
17579 msgid ""
17580 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17581 "CONTROL GUESTFISH OVER A SOCKET> below."
17582 msgstr ""
17583
17584 #. type: =item
17585 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17586 #: ../rescue/virt-rescue.pod:161
17587 msgid "B<-r>"
17588 msgstr "B<-r>"
17589
17590 #. type: =item
17591 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17592 #: ../rescue/virt-rescue.pod:163
17593 msgid "B<--ro>"
17594 msgstr "B<--ro>"
17595
17596 #. type: textblock
17597 #: ../fish/guestfish.pod:373
17598 msgid ""
17599 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17600 "mounts are done read-only."
17601 msgstr ""
17602
17603 #. type: textblock
17604 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17605 msgid ""
17606 "The option must always be used if the disk image or virtual machine might be "
17607 "running, and is generally recommended in cases where you don't need write "
17608 "access to the disk."
17609 msgstr ""
17610
17611 #. type: textblock
17612 #: ../fish/guestfish.pod:380
17613 msgid ""
17614 "Note that prepared disk images created with I<-N> are not affected by this "
17615 "option.  Also commands like C<add> are not affected - you have to specify "
17616 "the C<readonly:true> option explicitly if you need it."
17617 msgstr ""
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:384
17621 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17622 msgstr ""
17623
17624 #. type: =item
17625 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17626 #: ../rescue/virt-rescue.pod:173
17627 msgid "B<--selinux>"
17628 msgstr "B<--selinux>"
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:388
17632 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17633 msgstr ""
17634
17635 #. type: textblock
17636 #: ../fish/guestfish.pod:394
17637 msgid ""
17638 "Enable very verbose messages.  This is particularly useful if you find a bug."
17639 msgstr ""
17640
17641 #. type: textblock
17642 #: ../fish/guestfish.pod:401
17643 msgid "Display the guestfish / libguestfs version number and exit."
17644 msgstr ""
17645
17646 #. type: =item
17647 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17648 #: ../rescue/virt-rescue.pod:190
17649 msgid "B<-w>"
17650 msgstr "B<-w>"
17651
17652 #. type: =item
17653 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17654 #: ../rescue/virt-rescue.pod:192
17655 msgid "B<--rw>"
17656 msgstr "B<--rw>"
17657
17658 #. type: textblock
17659 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17660 msgid ""
17661 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17662 "mounts are done read-write."
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:410
17667 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17668 msgstr ""
17669
17670 #. type: textblock
17671 #: ../fish/guestfish.pod:414
17672 msgid "Echo each command before executing it."
17673 msgstr ""
17674
17675 #. type: =head1
17676 #: ../fish/guestfish.pod:418
17677 msgid "COMMANDS ON COMMAND LINE"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:420
17682 msgid ""
17683 "Any additional (non-option) arguments are treated as commands to execute."
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish.pod:423
17688 msgid ""
17689 "Commands to execute should be separated by a colon (C<:>), where the colon "
17690 "is a separate parameter.  Thus:"
17691 msgstr ""
17692
17693 #. type: verbatim
17694 #: ../fish/guestfish.pod:426
17695 #, no-wrap
17696 msgid ""
17697 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17698 "\n"
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish.pod:428
17703 msgid ""
17704 "If there are no additional arguments, then we enter a shell, either an "
17705 "interactive shell with a prompt (if the input is a terminal) or a non-"
17706 "interactive shell."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish.pod:432
17711 msgid ""
17712 "In either command line mode or non-interactive shell, the first command that "
17713 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17714 "prompt) if a command fails, you can continue to enter commands."
17715 msgstr ""
17716
17717 #. type: =head1
17718 #: ../fish/guestfish.pod:437
17719 msgid "USING launch (OR run)"
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:439
17724 msgid ""
17725 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17726 "then launch it, then mount any disks you need, and finally issue actions/"
17727 "commands.  So the general order of the day is:"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish.pod:447
17732 msgid "add or -a/--add"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:451
17737 msgid "launch (aka run)"
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish.pod:455
17742 msgid "mount or -m/--mount"
17743 msgstr ""
17744
17745 #. type: textblock
17746 #: ../fish/guestfish.pod:459
17747 msgid "any other commands"
17748 msgstr ""
17749
17750 #. type: textblock
17751 #: ../fish/guestfish.pod:463
17752 msgid ""
17753 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17754 "guest before mounting or performing any other commands."
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:466
17759 msgid ""
17760 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17761 "I<--new> options were given then C<run> is done automatically, simply "
17762 "because guestfish can't perform the action you asked for without doing this."
17763 msgstr ""
17764
17765 #. type: =head1
17766 #: ../fish/guestfish.pod:471
17767 msgid "OPENING DISKS FOR READ AND WRITE"
17768 msgstr ""
17769
17770 #. type: textblock
17771 #: ../fish/guestfish.pod:473
17772 msgid ""
17773 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17774 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17775 "I<-i> and I<-m> open disk images read-only or for writing."
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:478
17780 msgid ""
17781 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17782 "opening disk images supplied on the command line for write.  To open a disk "
17783 "image read-only you have to do I<-a image --ro>."
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:482
17788 msgid ""
17789 "This matters: If you accidentally open a live VM disk image writable then "
17790 "you will cause irreversible disk corruption."
17791 msgstr ""
17792
17793 #. type: textblock
17794 #: ../fish/guestfish.pod:485
17795 msgid ""
17796 "In a future libguestfs we intend to change the default the other way.  Disk "
17797 "images will be opened read-only.  You will have to either specify "
17798 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17799 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17800 "access for disk images specified by those other command line options."
17801 msgstr ""
17802
17803 #. type: textblock
17804 #: ../fish/guestfish.pod:492
17805 msgid ""
17806 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17807 "which does nothing (it is already the default).  However it is highly "
17808 "recommended that you use this option to indicate that you need write access, "
17809 "and prepare your scripts for the day when this option will be required for "
17810 "write access."
17811 msgstr ""
17812
17813 #. type: textblock
17814 #: ../fish/guestfish.pod:498
17815 msgid ""
17816 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17817 "other libguestfs program apart from guestfish and guestmount."
17818 msgstr ""
17819
17820 #. type: =head1
17821 #: ../fish/guestfish.pod:501
17822 msgid "QUOTING"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:503
17827 msgid ""
17828 "You can quote ordinary parameters using either single or double quotes.  For "
17829 "example:"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish.pod:506
17834 #, no-wrap
17835 msgid ""
17836 " add \"file with a space.img\"\n"
17837 "\n"
17838 msgstr ""
17839
17840 #. type: verbatim
17841 #: ../fish/guestfish.pod:508
17842 #, no-wrap
17843 msgid ""
17844 " rm '/file name'\n"
17845 "\n"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish.pod:510
17850 #, no-wrap
17851 msgid ""
17852 " rm '/\"'\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish.pod:512
17858 msgid ""
17859 "A few commands require a list of strings to be passed.  For these, use a "
17860 "whitespace-separated list, enclosed in quotes.  Strings containing "
17861 "whitespace to be passed through must be enclosed in single quotes.  A "
17862 "literal single quote must be escaped with a backslash."
17863 msgstr ""
17864
17865 #. type: verbatim
17866 #: ../fish/guestfish.pod:517
17867 #, no-wrap
17868 msgid ""
17869 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17870 " command \"/bin/echo 'foo      bar'\"\n"
17871 " command \"/bin/echo \\'foo\\'\"\n"
17872 "\n"
17873 msgstr ""
17874
17875 #. type: =head2
17876 #: ../fish/guestfish.pod:521
17877 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish.pod:523
17882 msgid ""
17883 "In double-quoted arguments (only) use backslash to insert special characters:"
17884 msgstr ""
17885
17886 #. type: =item
17887 #: ../fish/guestfish.pod:528
17888 msgid "C<\\a>"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish.pod:530
17893 msgid "Alert (bell) character."
17894 msgstr ""
17895
17896 #. type: =item
17897 #: ../fish/guestfish.pod:532
17898 msgid "C<\\b>"
17899 msgstr ""
17900
17901 #. type: textblock
17902 #: ../fish/guestfish.pod:534
17903 msgid "Backspace character."
17904 msgstr ""
17905
17906 #. type: =item
17907 #: ../fish/guestfish.pod:536
17908 msgid "C<\\f>"
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish.pod:538
17913 msgid "Form feed character."
17914 msgstr ""
17915
17916 #. type: =item
17917 #: ../fish/guestfish.pod:540
17918 msgid "C<\\n>"
17919 msgstr ""
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:542
17923 msgid "Newline character."
17924 msgstr ""
17925
17926 #. type: =item
17927 #: ../fish/guestfish.pod:544
17928 msgid "C<\\r>"
17929 msgstr ""
17930
17931 #. type: textblock
17932 #: ../fish/guestfish.pod:546
17933 msgid "Carriage return character."
17934 msgstr ""
17935
17936 #. type: =item
17937 #: ../fish/guestfish.pod:548
17938 msgid "C<\\t>"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish.pod:550
17943 msgid "Horizontal tab character."
17944 msgstr ""
17945
17946 #. type: =item
17947 #: ../fish/guestfish.pod:552
17948 msgid "C<\\v>"
17949 msgstr ""
17950
17951 #. type: textblock
17952 #: ../fish/guestfish.pod:554
17953 msgid "Vertical tab character."
17954 msgstr ""
17955
17956 #. type: =item
17957 #: ../fish/guestfish.pod:556
17958 msgid "C<\\\">"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:558
17963 msgid "A literal double quote character."
17964 msgstr ""
17965
17966 #. type: =item
17967 #: ../fish/guestfish.pod:560
17968 msgid "C<\\ooo>"
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../fish/guestfish.pod:562
17973 msgid ""
17974 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17975 "(unlike C)."
17976 msgstr ""
17977
17978 #. type: =item
17979 #: ../fish/guestfish.pod:565
17980 msgid "C<\\xhh>"
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../fish/guestfish.pod:567
17985 msgid ""
17986 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish.pod:570
17991 msgid ""
17992 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17993 "strings."
17994 msgstr ""
17995
17996 #. type: =item
17997 #: ../fish/guestfish.pod:573
17998 msgid "C<\\\\>"
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish.pod:575
18003 msgid "A literal backslash character."
18004 msgstr ""
18005
18006 #. type: =head1
18007 #: ../fish/guestfish.pod:579
18008 msgid "OPTIONAL ARGUMENTS"
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish.pod:581
18013 msgid ""
18014 "Some commands take optional arguments.  These arguments appear in this "
18015 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18016 msgstr ""
18017
18018 #. type: verbatim
18019 #: ../fish/guestfish.pod:585
18020 #, no-wrap
18021 msgid ""
18022 " add-drive-opts filename\n"
18023 "\n"
18024 msgstr ""
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish.pod:587
18028 #, no-wrap
18029 msgid ""
18030 " add-drive-opts filename readonly:true\n"
18031 "\n"
18032 msgstr ""
18033
18034 #. type: verbatim
18035 #: ../fish/guestfish.pod:589
18036 #, no-wrap
18037 msgid ""
18038 " add-drive-opts filename format:qcow2 readonly:false\n"
18039 "\n"
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish.pod:591
18044 msgid ""
18045 "Each optional argument can appear at most once.  All optional arguments must "
18046 "appear after the required ones."
18047 msgstr ""
18048
18049 #. type: =head1
18050 #: ../fish/guestfish.pod:594
18051 msgid "NUMBERS"
18052 msgstr "ЧИСЛА"
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:596
18056 msgid ""
18057 "This section applies to all commands which can take integers as parameters."
18058 msgstr ""
18059
18060 #. type: =head2
18061 #: ../fish/guestfish.pod:599
18062 msgid "SIZE SUFFIX"
18063 msgstr ""
18064
18065 #. type: textblock
18066 #: ../fish/guestfish.pod:601
18067 msgid ""
18068 "When the command takes a parameter measured in bytes, you can use one of the "
18069 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18070 msgstr ""
18071
18072 #. type: =item
18073 #: ../fish/guestfish.pod:607
18074 msgid "B<k> or B<K> or B<KiB>"
18075 msgstr "B<k>, B<K> або B<KiB>"
18076
18077 #. type: textblock
18078 #: ../fish/guestfish.pod:609
18079 msgid "The size in kilobytes (multiplied by 1024)."
18080 msgstr ""
18081
18082 #. type: =item
18083 #: ../fish/guestfish.pod:611
18084 msgid "B<KB>"
18085 msgstr "B<KB>"
18086
18087 #. type: textblock
18088 #: ../fish/guestfish.pod:613
18089 msgid "The size in SI 1000 byte units."
18090 msgstr ""
18091
18092 #. type: =item
18093 #: ../fish/guestfish.pod:615
18094 msgid "B<M> or B<MiB>"
18095 msgstr "B<M> або B<MiB>"
18096
18097 #. type: textblock
18098 #: ../fish/guestfish.pod:617
18099 msgid "The size in megabytes (multiplied by 1048576)."
18100 msgstr ""
18101
18102 #. type: =item
18103 #: ../fish/guestfish.pod:619
18104 msgid "B<MB>"
18105 msgstr "B<MB>"
18106
18107 #. type: textblock
18108 #: ../fish/guestfish.pod:621
18109 msgid "The size in SI 1000000 byte units."
18110 msgstr ""
18111
18112 #. type: =item
18113 #: ../fish/guestfish.pod:623
18114 msgid "B<G> or B<GiB>"
18115 msgstr "B<G> або B<GiB>"
18116
18117 #. type: textblock
18118 #: ../fish/guestfish.pod:625
18119 msgid "The size in gigabytes (multiplied by 2**30)."
18120 msgstr "Розмір у гігабайтах (з множником 2**30)."
18121
18122 #. type: =item
18123 #: ../fish/guestfish.pod:627
18124 msgid "B<GB>"
18125 msgstr "B<GB>"
18126
18127 #. type: textblock
18128 #: ../fish/guestfish.pod:629
18129 msgid "The size in SI 10**9 byte units."
18130 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18131
18132 #. type: =item
18133 #: ../fish/guestfish.pod:631
18134 msgid "B<T> or B<TiB>"
18135 msgstr "B<T> або B<TiB>"
18136
18137 #. type: textblock
18138 #: ../fish/guestfish.pod:633
18139 msgid "The size in terabytes (multiplied by 2**40)."
18140 msgstr "Розмір у терабайтах (з множником 2**40)."
18141
18142 #. type: =item
18143 #: ../fish/guestfish.pod:635
18144 msgid "B<TB>"
18145 msgstr "B<TB>"
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:637
18149 msgid "The size in SI 10**12 byte units."
18150 msgstr ""
18151
18152 #. type: =item
18153 #: ../fish/guestfish.pod:639
18154 msgid "B<P> or B<PiB>"
18155 msgstr "B<P> або B<PiB>"
18156
18157 #. type: textblock
18158 #: ../fish/guestfish.pod:641
18159 msgid "The size in petabytes (multiplied by 2**50)."
18160 msgstr ""
18161
18162 #. type: =item
18163 #: ../fish/guestfish.pod:643
18164 msgid "B<PB>"
18165 msgstr "B<PB>"
18166
18167 #. type: textblock
18168 #: ../fish/guestfish.pod:645
18169 msgid "The size in SI 10**15 byte units."
18170 msgstr ""
18171
18172 #. type: =item
18173 #: ../fish/guestfish.pod:647
18174 msgid "B<E> or B<EiB>"
18175 msgstr "B<E> або B<EiB>"
18176
18177 #. type: textblock
18178 #: ../fish/guestfish.pod:649
18179 msgid "The size in exabytes (multiplied by 2**60)."
18180 msgstr ""
18181
18182 #. type: =item
18183 #: ../fish/guestfish.pod:651
18184 msgid "B<EB>"
18185 msgstr "B<EB>"
18186
18187 #. type: textblock
18188 #: ../fish/guestfish.pod:653
18189 msgid "The size in SI 10**18 byte units."
18190 msgstr ""
18191
18192 #. type: =item
18193 #: ../fish/guestfish.pod:655
18194 msgid "B<Z> or B<ZiB>"
18195 msgstr "B<Z> або B<ZiB>"
18196
18197 #. type: textblock
18198 #: ../fish/guestfish.pod:657
18199 msgid "The size in zettabytes (multiplied by 2**70)."
18200 msgstr ""
18201
18202 #. type: =item
18203 #: ../fish/guestfish.pod:659
18204 msgid "B<ZB>"
18205 msgstr "B<ZB>"
18206
18207 #. type: textblock
18208 #: ../fish/guestfish.pod:661
18209 msgid "The size in SI 10**21 byte units."
18210 msgstr ""
18211
18212 #. type: =item
18213 #: ../fish/guestfish.pod:663
18214 msgid "B<Y> or B<YiB>"
18215 msgstr "B<Y> або B<YiB>"
18216
18217 #. type: textblock
18218 #: ../fish/guestfish.pod:665
18219 msgid "The size in yottabytes (multiplied by 2**80)."
18220 msgstr ""
18221
18222 #. type: =item
18223 #: ../fish/guestfish.pod:667
18224 msgid "B<YB>"
18225 msgstr "B<YB>"
18226
18227 #. type: textblock
18228 #: ../fish/guestfish.pod:669
18229 msgid "The size in SI 10**24 byte units."
18230 msgstr ""
18231
18232 #. type: verbatim
18233 #: ../fish/guestfish.pod:675
18234 #, no-wrap
18235 msgid ""
18236 " truncate-size /file 1G\n"
18237 "\n"
18238 msgstr ""
18239
18240 #. type: textblock
18241 #: ../fish/guestfish.pod:677
18242 msgid "would truncate the file to 1 gigabyte."
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:679
18247 msgid ""
18248 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18249 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18250 "suffix will probably not do what you expect."
18251 msgstr ""
18252
18253 #. type: =head2
18254 #: ../fish/guestfish.pod:683
18255 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18256 msgstr ""
18257
18258 #. type: textblock
18259 #: ../fish/guestfish.pod:685
18260 msgid ""
18261 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18262 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18263 msgstr ""
18264
18265 #. type: verbatim
18266 #: ../fish/guestfish.pod:688
18267 #, no-wrap
18268 msgid ""
18269 " 1234      decimal number 1234\n"
18270 " 02322     octal number, equivalent to decimal 1234\n"
18271 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18272 "\n"
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish.pod:692
18277 msgid ""
18278 "When using the C<chmod> command, you almost always want to specify an octal "
18279 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18280 "L<chmod(1)> program):"
18281 msgstr ""
18282
18283 #. type: verbatim
18284 #: ../fish/guestfish.pod:696
18285 #, no-wrap
18286 msgid ""
18287 " chmod 0777 /public  # OK\n"
18288 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18289 "\n"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish.pod:699
18294 msgid ""
18295 "Commands that return numbers usually print them in decimal, but some "
18296 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18297 "octal, preceeded by C<0>)."
18298 msgstr ""
18299
18300 #. type: =head1
18301 #: ../fish/guestfish.pod:703
18302 msgid "WILDCARDS AND GLOBBING"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../fish/guestfish.pod:705
18307 msgid ""
18308 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18309 "(globbing) by default.  So for example the following will not do what you "
18310 "expect:"
18311 msgstr ""
18312
18313 #. type: verbatim
18314 #: ../fish/guestfish.pod:709
18315 #, no-wrap
18316 msgid ""
18317 " rm-rf /home/*\n"
18318 "\n"
18319 msgstr ""
18320
18321 #. type: textblock
18322 #: ../fish/guestfish.pod:711
18323 msgid ""
18324 "Assuming you don't have a directory called literally C</home/*> then the "
18325 "above command will return an error."
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../fish/guestfish.pod:714
18330 msgid "To perform wildcard expansion, use the C<glob> command."
18331 msgstr ""
18332
18333 #. type: verbatim
18334 #: ../fish/guestfish.pod:716
18335 #, no-wrap
18336 msgid ""
18337 " glob rm-rf /home/*\n"
18338 "\n"
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../fish/guestfish.pod:718
18343 msgid ""
18344 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18345 "many times), equivalent to:"
18346 msgstr ""
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish.pod:721
18350 #, no-wrap
18351 msgid ""
18352 " rm-rf /home/jim\n"
18353 " rm-rf /home/joe\n"
18354 " rm-rf /home/mary\n"
18355 "\n"
18356 msgstr ""
18357
18358 #. type: textblock
18359 #: ../fish/guestfish.pod:725
18360 msgid "C<glob> only works on simple guest paths and not on device names."
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish.pod:727
18365 msgid ""
18366 "If you have several parameters, each containing a wildcard, then glob will "
18367 "perform a Cartesian product."
18368 msgstr ""
18369
18370 #. type: =head1
18371 #: ../fish/guestfish.pod:730
18372 msgid "COMMENTS"
18373 msgstr "КОМЕНТАРІ"
18374
18375 #. type: textblock
18376 #: ../fish/guestfish.pod:732
18377 msgid ""
18378 "Any line which starts with a I<#> character is treated as a comment and "
18379 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18380 "a command.  For example:"
18381 msgstr ""
18382
18383 #. type: verbatim
18384 #: ../fish/guestfish.pod:736
18385 #, no-wrap
18386 msgid ""
18387 " # this is a comment\n"
18388 "         # this is a comment\n"
18389 " foo # NOT a comment\n"
18390 "\n"
18391 msgstr ""
18392
18393 #. type: textblock
18394 #: ../fish/guestfish.pod:740
18395 msgid "Blank lines are also ignored."
18396 msgstr ""
18397
18398 #. type: =head1
18399 #: ../fish/guestfish.pod:742
18400 msgid "RUNNING COMMANDS LOCALLY"
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish.pod:744
18405 msgid ""
18406 "Any line which starts with a I<!> character is treated as a command sent to "
18407 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18408 msgstr ""
18409
18410 #. type: verbatim
18411 #: ../fish/guestfish.pod:748
18412 #, no-wrap
18413 msgid ""
18414 " !mkdir local\n"
18415 " tgz-out /remote local/remote-data.tar.gz\n"
18416 "\n"
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish.pod:751
18421 msgid ""
18422 "will create a directory C<local> on the host, and then export the contents "
18423 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18424 "(See C<tgz-out>)."
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:755
18429 msgid ""
18430 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18431 "effect, due to the way that subprocesses work in Unix."
18432 msgstr ""
18433
18434 #. type: =head2
18435 #: ../fish/guestfish.pod:758
18436 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18437 msgstr ""
18438
18439 #. type: textblock
18440 #: ../fish/guestfish.pod:760
18441 msgid ""
18442 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18443 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18444 "and executed as guestfish commands."
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:764
18449 msgid ""
18450 "Thus you can use shell script to construct arbitrary guestfish commands "
18451 "which are then parsed by guestfish."
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish.pod:767
18456 msgid ""
18457 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18458 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18459 "if we use a shell script to create the guestfish commands for us:"
18460 msgstr ""
18461
18462 #. type: verbatim
18463 #: ../fish/guestfish.pod:772
18464 #, no-wrap
18465 msgid ""
18466 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18467 "\n"
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:774
18472 msgid "or with names like C</foo.001>:"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../fish/guestfish.pod:776
18477 #, no-wrap
18478 msgid ""
18479 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18480 "\n"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish.pod:778
18485 msgid ""
18486 "When using guestfish interactively it can be helpful to just run the shell "
18487 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18488 "ordinary I<!> local command), see what guestfish commands it would run, and "
18489 "when you are happy with those prepend the C<E<lt>> character to run the "
18490 "guestfish commands for real."
18491 msgstr ""
18492
18493 #. type: =head1
18494 #: ../fish/guestfish.pod:784
18495 msgid "PIPES"
18496 msgstr "КАНАЛИ"
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:786
18500 msgid ""
18501 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18502 "command (a guestfish command) to the second command (any host command).  For "
18503 "example:"
18504 msgstr ""
18505
18506 #. type: verbatim
18507 #: ../fish/guestfish.pod:790
18508 #, no-wrap
18509 msgid ""
18510 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18511 "\n"
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:792
18516 msgid ""
18517 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18518 "program).  The above command would list all accounts in the guest filesystem "
18519 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18520 msgstr ""
18521
18522 #. type: verbatim
18523 #: ../fish/guestfish.pod:797
18524 #, no-wrap
18525 msgid ""
18526 " hexdump /bin/ls | head\n"
18527 " list-devices | tail -1\n"
18528 " tgz-out / - | tar ztf -\n"
18529 "\n"
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:801
18534 msgid ""
18535 "The space before the pipe symbol is required, any space after the pipe "
18536 "symbol is optional.  Everything after the pipe symbol is just passed "
18537 "straight to the host shell, so it can contain redirections, globs and "
18538 "anything else that makes sense on the host side."
18539 msgstr ""
18540
18541 #. type: textblock
18542 #: ../fish/guestfish.pod:806
18543 msgid ""
18544 "To use a literal argument which begins with a pipe symbol, you have to quote "
18545 "it, eg:"
18546 msgstr ""
18547
18548 #. type: verbatim
18549 #: ../fish/guestfish.pod:809
18550 #, no-wrap
18551 msgid ""
18552 " echo \"|\"\n"
18553 "\n"
18554 msgstr ""
18555
18556 #. type: =head1
18557 #: ../fish/guestfish.pod:811
18558 msgid "HOME DIRECTORIES"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:813
18563 msgid ""
18564 "If a parameter starts with the character C<~> then the tilde may be expanded "
18565 "as a home directory path (either C<~> for the current user's home directory, "
18566 "or C<~user> for another user)."
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:817
18571 msgid ""
18572 "Note that home directory expansion happens for users known I<on the host>, "
18573 "not in the guest filesystem."
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish.pod:820
18578 msgid ""
18579 "To use a literal argument which begins with a tilde, you have to quote it, "
18580 "eg:"
18581 msgstr ""
18582
18583 #. type: verbatim
18584 #: ../fish/guestfish.pod:823
18585 #, no-wrap
18586 msgid ""
18587 " echo \"~\"\n"
18588 "\n"
18589 msgstr ""
18590
18591 #. type: =head2
18592 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18593 msgid "ENCRYPTED DISKS"
18594 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18595
18596 #. type: textblock
18597 #: ../fish/guestfish.pod:827
18598 msgid ""
18599 "Libguestfs has some support for Linux guests encrypted according to the "
18600 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18601 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18602 "LUKS is supported."
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fish/guestfish.pod:832
18607 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish.pod:834
18612 #, no-wrap
18613 msgid ""
18614 " ><fs> vfs-type /dev/sda2\n"
18615 " crypto_LUKS\n"
18616 "\n"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish.pod:837
18621 msgid ""
18622 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18623 "device called C</dev/mapper/luksdev>."
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:840
18628 #, no-wrap
18629 msgid ""
18630 " ><fs> luks-open /dev/sda2 luksdev\n"
18631 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18632 "\n"
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:843
18637 msgid ""
18638 "Finally you have to tell LVM to scan for volume groups on the newly created "
18639 "mapper device:"
18640 msgstr ""
18641
18642 #. type: verbatim
18643 #: ../fish/guestfish.pod:846
18644 #, no-wrap
18645 msgid ""
18646 " vgscan\n"
18647 " vg-activate-all true\n"
18648 "\n"
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fish/guestfish.pod:849
18653 msgid "The logical volume(s) can now be mounted in the usual way."
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish.pod:851
18658 msgid ""
18659 "Before closing a LUKS device you must unmount any logical volumes on it and "
18660 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18661 "one.  Then you can close the mapper device:"
18662 msgstr ""
18663
18664 #. type: verbatim
18665 #: ../fish/guestfish.pod:855
18666 #, no-wrap
18667 msgid ""
18668 " vg-activate false /dev/VG\n"
18669 " luks-close /dev/mapper/luksdev\n"
18670 "\n"
18671 msgstr ""
18672
18673 #. type: textblock
18674 #: ../fish/guestfish.pod:860
18675 msgid ""
18676 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18677 "letters and paths (with some limitations).  The following commands are "
18678 "equivalent:"
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:864
18683 #, no-wrap
18684 msgid ""
18685 " file /WINDOWS/system32/config/system.LOG\n"
18686 "\n"
18687 msgstr ""
18688
18689 #. type: verbatim
18690 #: ../fish/guestfish.pod:866
18691 #, no-wrap
18692 msgid ""
18693 " file win:\\windows\\system32\\config\\system.log\n"
18694 "\n"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:868
18699 #, no-wrap
18700 msgid ""
18701 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18702 "\n"
18703 msgstr ""
18704
18705 #. type: textblock
18706 #: ../fish/guestfish.pod:870
18707 msgid ""
18708 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18709 "where the drive is mounted, prepending that to the path, changing all "
18710 "backslash characters to forward slash, then resolving the result using L</"
18711 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18712 "the parameter might be rewritten like this:"
18713 msgstr ""
18714
18715 #. type: verbatim
18716 #: ../fish/guestfish.pod:876
18717 #, no-wrap
18718 msgid ""
18719 " win:e:\\foo\\bar => /e/FOO/bar\n"
18720 "\n"
18721 msgstr ""
18722
18723 #. type: textblock
18724 #: ../fish/guestfish.pod:878
18725 msgid "This only works in argument positions that expect a path."
18726 msgstr ""
18727
18728 #. type: =head1
18729 #: ../fish/guestfish.pod:880
18730 msgid "UPLOADING AND DOWNLOADING FILES"
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:882
18735 msgid ""
18736 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18737 "others which upload from or download to a local file, you can use the "
18738 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18739 msgstr ""
18740
18741 #. type: verbatim
18742 #: ../fish/guestfish.pod:886
18743 #, no-wrap
18744 msgid ""
18745 " upload - /foo\n"
18746 "\n"
18747 msgstr ""
18748
18749 #. type: textblock
18750 #: ../fish/guestfish.pod:888
18751 msgid ""
18752 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18753 msgstr ""
18754
18755 #. type: verbatim
18756 #: ../fish/guestfish.pod:891
18757 #, no-wrap
18758 msgid ""
18759 " tar-out /etc - | tar tf -\n"
18760 "\n"
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../fish/guestfish.pod:893
18765 msgid ""
18766 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18767 "command (see L</PIPES>)."
18768 msgstr ""
18769
18770 #. type: textblock
18771 #: ../fish/guestfish.pod:896
18772 msgid ""
18773 "When using C<-> to read from stdin, the input is read up to the end of "
18774 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18775 "some arbitrary end marker:"
18776 msgstr ""
18777
18778 #. type: verbatim
18779 #: ../fish/guestfish.pod:900
18780 #, no-wrap
18781 msgid ""
18782 " upload -<<END /foo\n"
18783 " input line 1\n"
18784 " input line 2\n"
18785 " input line 3\n"
18786 " END\n"
18787 "\n"
18788 msgstr ""
18789
18790 #. type: textblock
18791 #: ../fish/guestfish.pod:906
18792 msgid ""
18793 "Any string of characters can be used instead of C<END>.  The end marker must "
18794 "appear on a line of its own, without any preceeding or following characters "
18795 "(not even spaces)."
18796 msgstr ""
18797
18798 #. type: textblock
18799 #: ../fish/guestfish.pod:910
18800 msgid ""
18801 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18802 "upload local files (so-called \"FileIn\" parameters in the generator)."
18803 msgstr ""
18804
18805 #. type: =head1
18806 #: ../fish/guestfish.pod:913
18807 msgid "EXIT ON ERROR BEHAVIOUR"
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fish/guestfish.pod:915
18812 msgid ""
18813 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18814 "taking commands from a human over a tty), and will exit on the first error "
18815 "in non-interactive mode (scripts, commands given on the command line)."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:920
18820 msgid ""
18821 "If you prefix a command with a I<-> character, then that command will not "
18822 "cause guestfish to exit, even if that (one) command returns an error."
18823 msgstr ""
18824
18825 #. type: =head1
18826 #: ../fish/guestfish.pod:924
18827 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/guestfish.pod:926
18832 msgid ""
18833 "Guestfish can be remote-controlled over a socket.  This is useful "
18834 "particularly in shell scripts where you want to make several different "
18835 "changes to a filesystem, but you don't want the overhead of starting up a "
18836 "guestfish process each time."
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish.pod:931
18841 msgid "Start a guestfish server process using:"
18842 msgstr ""
18843
18844 #. type: verbatim
18845 #: ../fish/guestfish.pod:933
18846 #, no-wrap
18847 msgid ""
18848 " eval \"`guestfish --listen`\"\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/guestfish.pod:935
18854 msgid "and then send it commands by doing:"
18855 msgstr ""
18856
18857 #. type: verbatim
18858 #: ../fish/guestfish.pod:937
18859 #, no-wrap
18860 msgid ""
18861 " guestfish --remote cmd [...]\n"
18862 "\n"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:939
18867 msgid "To cause the server to exit, send it the exit command:"
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../fish/guestfish.pod:943
18872 msgid ""
18873 "Note that the server will normally exit if there is an error in a command.  "
18874 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18875 "BEHAVIOUR>."
18876 msgstr ""
18877
18878 #. type: =head2
18879 #: ../fish/guestfish.pod:947
18880 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:949
18885 msgid ""
18886 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18887 "is how the I<--remote> option knows where to send the commands.  You can "
18888 "have several guestfish listener processes running using:"
18889 msgstr ""
18890
18891 #. type: verbatim
18892 #: ../fish/guestfish.pod:953
18893 #, no-wrap
18894 msgid ""
18895 " eval \"`guestfish --listen`\"\n"
18896 " pid1=$GUESTFISH_PID\n"
18897 " eval \"`guestfish --listen`\"\n"
18898 " pid2=$GUESTFISH_PID\n"
18899 " ...\n"
18900 " guestfish --remote=$pid1 cmd\n"
18901 " guestfish --remote=$pid2 cmd\n"
18902 "\n"
18903 msgstr ""
18904
18905 #. type: =head2
18906 #: ../fish/guestfish.pod:961
18907 msgid "REMOTE CONTROL AND CSH"
18908 msgstr ""
18909
18910 #. type: textblock
18911 #: ../fish/guestfish.pod:963
18912 msgid ""
18913 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18914 "option:"
18915 msgstr ""
18916
18917 #. type: verbatim
18918 #: ../fish/guestfish.pod:966
18919 #, no-wrap
18920 msgid ""
18921 " eval \"`guestfish --listen --csh`\"\n"
18922 "\n"
18923 msgstr ""
18924
18925 #. type: =head2
18926 #: ../fish/guestfish.pod:968
18927 msgid "REMOTE CONTROL DETAILS"
18928 msgstr ""
18929
18930 #. type: textblock
18931 #: ../fish/guestfish.pod:970
18932 msgid ""
18933 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18934 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18935 "and C<$PID> is the process ID of the server."
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:974
18940 msgid "Guestfish client and server versions must match exactly."
18941 msgstr ""
18942
18943 #. type: =head1
18944 #: ../fish/guestfish.pod:976
18945 msgid "PREPARED DISK IMAGES"
18946 msgstr ""
18947
18948 #. type: textblock
18949 #: ../fish/guestfish.pod:978
18950 msgid ""
18951 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18952 "preformatted disk images that guestfish can make for you to save typing.  "
18953 "This is particularly useful for testing purposes.  This option is used "
18954 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18955 "can be mixed with I<-a>)."
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/guestfish.pod:984
18960 msgid ""
18961 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18962 "the second and so on.  Existing files in the current directory are "
18963 "I<overwritten>."
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish.pod:988
18968 msgid ""
18969 "The type briefly describes how the disk should be sized, partitioned, how "
18970 "filesystem(s) should be created, and how content should be added.  "
18971 "Optionally the type can be followed by extra parameters, separated by C<:> "
18972 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18973 "allocated disk, containing a single partition, with the partition formatted "
18974 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18975 "disk instead."
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../fish/guestfish.pod:996
18980 msgid "To list the available types and any extra parameters they take, run:"
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/guestfish.pod:1000
18985 msgid ""
18986 "Note that the prepared filesystem is not mounted.  You would usually have to "
18987 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/guestfish.pod:1004
18992 msgid ""
18993 "If any I<-N> or I<--new> options are given, the guest is automatically "
18994 "launched."
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:1009
18999 msgid "Create a 100MB disk with an ext4-formatted partition:"
19000 msgstr ""
19001
19002 #. type: verbatim
19003 #: ../fish/guestfish.pod:1011
19004 #, no-wrap
19005 msgid ""
19006 " guestfish -N fs:ext4\n"
19007 "\n"
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../fish/guestfish.pod:1013
19012 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19013 msgstr ""
19014
19015 #. type: verbatim
19016 #: ../fish/guestfish.pod:1015
19017 #, no-wrap
19018 msgid ""
19019 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19020 "\n"
19021 msgstr ""
19022
19023 #. type: textblock
19024 #: ../fish/guestfish.pod:1017
19025 msgid "Create a blank 200MB disk:"
19026 msgstr ""
19027
19028 #. type: verbatim
19029 #: ../fish/guestfish.pod:1019
19030 #, no-wrap
19031 msgid ""
19032 " guestfish -N disk:200M\n"
19033 "\n"
19034 msgstr ""
19035
19036 #. type: =head1
19037 #: ../fish/guestfish.pod:1021
19038 msgid "PROGRESS BARS"
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:1023
19043 msgid ""
19044 "Some (not all) long-running commands send progress notification messages as "
19045 "they are running.  Guestfish turns these messages into progress bars."
19046 msgstr ""
19047
19048 #. type: textblock
19049 #: ../fish/guestfish.pod:1027
19050 msgid ""
19051 "When a command that supports progress bars takes longer than two seconds to "
19052 "run, and if progress bars are enabled, then you will see one appearing below "
19053 "the command:"
19054 msgstr ""
19055
19056 #. type: verbatim
19057 #: ../fish/guestfish.pod:1031
19058 #, no-wrap
19059 msgid ""
19060 " ><fs> copy-size /large-file /another-file 2048M\n"
19061 " / 10% [#####-----------------------------------------] 00:30\n"
19062 "\n"
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fish/guestfish.pod:1034
19067 msgid ""
19068 "The spinner on the left hand side moves round once for every progress "
19069 "notification received from the backend.  This is a (reasonably) golden "
19070 "assurance that the command is \"doing something\" even if the progress bar "
19071 "is not moving, because the command is able to send the progress "
19072 "notifications.  When the bar reaches 100% and the command finishes, the "
19073 "spinner disappears."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish.pod:1041
19078 msgid ""
19079 "Progress bars are enabled by default when guestfish is used interactively.  "
19080 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19081 "and you can disable them completely using I<--no-progress-bars>."
19082 msgstr ""
19083
19084 #. type: =head1
19085 #: ../fish/guestfish.pod:1046
19086 msgid "GUESTFISH COMMANDS"
19087 msgstr ""
19088
19089 #. type: textblock
19090 #: ../fish/guestfish.pod:1048
19091 msgid ""
19092 "The commands in this section are guestfish convenience commands, in other "
19093 "words, they are not part of the L<guestfs(3)> API."
19094 msgstr ""
19095
19096 #. type: =head2
19097 #: ../fish/guestfish.pod:1051
19098 msgid "help"
19099 msgstr "help"
19100
19101 #. type: verbatim
19102 #: ../fish/guestfish.pod:1053
19103 #, no-wrap
19104 msgid ""
19105 " help\n"
19106 " help cmd\n"
19107 "\n"
19108 msgstr ""
19109 " help\n"
19110 " help команда\n"
19111 "\n"
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:1056
19115 msgid "Without any parameter, this provides general help."
19116 msgstr "Без параметра показує загальну довідкову інформацію."
19117
19118 #. type: textblock
19119 #: ../fish/guestfish.pod:1058
19120 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19121 msgstr ""
19122
19123 #. type: =head2
19124 #: ../fish/guestfish.pod:1060
19125 msgid "quit | exit"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:1062
19130 msgid "This exits guestfish.  You can also use C<^D> key."
19131 msgstr ""
19132
19133 #. type: textblock
19134 #: ../fish/guestfish.pod:1064
19135 msgid "@FISH_COMMANDS@"
19136 msgstr ""
19137
19138 #. type: =head1
19139 #: ../fish/guestfish.pod:1066
19140 msgid "COMMANDS"
19141 msgstr "КОМАНДИ"
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1474
19145 msgid "@ACTIONS@"
19146 msgstr "@ACTIONS@"
19147
19148 #. type: =head1
19149 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
19150 msgid "EXIT CODE"
19151 msgstr "КОД ВИХОДУ"
19152
19153 #. type: textblock
19154 #: ../fish/guestfish.pod:1072
19155 msgid ""
19156 "guestfish returns 0 if the commands completed without error, or 1 if there "
19157 "was an error."
19158 msgstr ""
19159
19160 #. type: =item
19161 #: ../fish/guestfish.pod:1079
19162 msgid "EDITOR"
19163 msgstr "РЕДАКТОР"
19164
19165 #. type: textblock
19166 #: ../fish/guestfish.pod:1081
19167 msgid ""
19168 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19169 "C<vi>."
19170 msgstr ""
19171
19172 #. type: =item
19173 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2969
19174 msgid "FEBOOTSTRAP_KERNEL"
19175 msgstr ""
19176
19177 #. type: =item
19178 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2971
19179 msgid "FEBOOTSTRAP_MODULES"
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2973
19184 msgid ""
19185 "These two environment variables allow the kernel that libguestfs uses in the "
19186 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19187 "most recent host kernel is chosen.  For more information about kernel "
19188 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19189 "available in febootstrap E<ge> 3.8."
19190 msgstr ""
19191
19192 #. type: =item
19193 #: ../fish/guestfish.pod:1094
19194 msgid "GUESTFISH_DISPLAY_IMAGE"
19195 msgstr ""
19196
19197 #. type: textblock
19198 #: ../fish/guestfish.pod:1096
19199 msgid ""
19200 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19201 "If not set, it uses L<display(1)>."
19202 msgstr ""
19203
19204 #. type: =item
19205 #: ../fish/guestfish.pod:1099
19206 msgid "GUESTFISH_PID"
19207 msgstr ""
19208
19209 #. type: textblock
19210 #: ../fish/guestfish.pod:1101
19211 msgid ""
19212 "Used with the I<--remote> option to specify the remote guestfish process to "
19213 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19214 msgstr ""
19215
19216 #. type: =item
19217 #: ../fish/guestfish.pod:1105
19218 msgid "HEXEDITOR"
19219 msgstr ""
19220
19221 #. type: textblock
19222 #: ../fish/guestfish.pod:1107
19223 msgid ""
19224 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19225 "not specified, the external L<hexedit(1)> program is used."
19226 msgstr ""
19227
19228 #. type: =item
19229 #: ../fish/guestfish.pod:1111
19230 msgid "HOME"
19231 msgstr "ДОМІВКА"
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:1113
19235 msgid ""
19236 "If compiled with GNU readline support, various files in the home directory "
19237 "can be used.  See L</FILES>."
19238 msgstr ""
19239
19240 #. type: =item
19241 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2979
19242 msgid "LIBGUESTFS_APPEND"
19243 msgstr ""
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2981
19247 msgid "Pass additional options to the guest kernel."
19248 msgstr ""
19249
19250 #. type: =item
19251 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2983
19252 msgid "LIBGUESTFS_DEBUG"
19253 msgstr "LIBGUESTFS_DEBUG"
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:1122
19257 msgid ""
19258 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19259 "effect as using the B<-v> option."
19260 msgstr ""
19261
19262 #. type: =item
19263 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2988
19264 msgid "LIBGUESTFS_MEMSIZE"
19265 msgstr "LIBGUESTFS_MEMSIZE"
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2990
19269 msgid ""
19270 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19271 msgstr ""
19272
19273 #. type: verbatim
19274 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2993
19275 #, no-wrap
19276 msgid ""
19277 " LIBGUESTFS_MEMSIZE=700\n"
19278 "\n"
19279 msgstr ""
19280 " LIBGUESTFS_MEMSIZE=700\n"
19281 "\n"
19282
19283 #. type: =item
19284 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2995
19285 msgid "LIBGUESTFS_PATH"
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../fish/guestfish.pod:1134
19290 msgid ""
19291 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19292 "the discussion of paths in L<guestfs(3)>."
19293 msgstr ""
19294
19295 #. type: =item
19296 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3000
19297 msgid "LIBGUESTFS_QEMU"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3002
19302 msgid ""
19303 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19304 "which was found at compile time by the configure script is used."
19305 msgstr ""
19306
19307 #. type: =item
19308 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3008
19309 msgid "LIBGUESTFS_TRACE"
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../fish/guestfish.pod:1145
19314 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19315 msgstr ""
19316
19317 #. type: =item
19318 #: ../fish/guestfish.pod:1147
19319 msgid "PAGER"
19320 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19321
19322 #. type: textblock
19323 #: ../fish/guestfish.pod:1149
19324 msgid ""
19325 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19326 "C<more>."
19327 msgstr ""
19328
19329 #. type: =item
19330 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3013
19331 msgid "TMPDIR"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3015
19336 msgid ""
19337 "Location of temporary directory, defaults to C</tmp> except for the cached "
19338 "supermin appliance which defaults to C</var/tmp>."
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3018
19343 msgid ""
19344 "If libguestfs was compiled to use the supermin appliance then the real "
19345 "appliance is cached in this directory, shared between all handles belonging "
19346 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19347 "use in case C</var/tmp> is not large enough."
19348 msgstr ""
19349
19350 #. type: =head1
19351 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288
19352 #: ../rescue/virt-rescue.pod:269
19353 msgid "FILES"
19354 msgstr "ФАЙЛИ"
19355
19356 #. type: =item
19357 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292
19358 #: ../rescue/virt-rescue.pod:273
19359 msgid "$HOME/.libguestfs-tools.rc"
19360 msgstr ""
19361
19362 #. type: =item
19363 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294
19364 #: ../rescue/virt-rescue.pod:275
19365 msgid "/etc/libguestfs-tools.conf"
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296
19370 #: ../rescue/virt-rescue.pod:277
19371 msgid ""
19372 "This configuration file controls the default read-only or read-write mode "
19373 "(I<--ro> or I<--rw>)."
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:1176
19378 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19379 msgstr ""
19380
19381 #. type: =item
19382 #: ../fish/guestfish.pod:1178
19383 msgid "$HOME/.guestfish"
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:1180
19388 msgid ""
19389 "If compiled with GNU readline support, then the command history is saved in "
19390 "this file."
19391 msgstr ""
19392
19393 #. type: =item
19394 #: ../fish/guestfish.pod:1183
19395 msgid "$HOME/.inputrc"
19396 msgstr ""
19397
19398 #. type: =item
19399 #: ../fish/guestfish.pod:1185
19400 msgid "/etc/inputrc"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fish/guestfish.pod:1187
19405 msgid ""
19406 "If compiled with GNU readline support, then these files can be used to "
19407 "configure readline.  For further information, please see L<readline(3)/"
19408 "INITIALIZATION FILE>."
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fish/guestfish.pod:1191
19413 msgid "To write rules which only apply to guestfish, use:"
19414 msgstr ""
19415
19416 #. type: verbatim
19417 #: ../fish/guestfish.pod:1193
19418 #, no-wrap
19419 msgid ""
19420 " $if guestfish\n"
19421 " ...\n"
19422 " $endif\n"
19423 "\n"
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../fish/guestfish.pod:1197
19428 msgid ""
19429 "Variables that you can set in inputrc that change the behaviour of guestfish "
19430 "in useful ways include:"
19431 msgstr ""
19432
19433 #. type: =item
19434 #: ../fish/guestfish.pod:1202
19435 msgid "completion-ignore-case (default: on)"
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fish/guestfish.pod:1204
19440 msgid ""
19441 "By default, guestfish will ignore case when tab-completing paths on the "
19442 "disk.  Use:"
19443 msgstr ""
19444
19445 #. type: verbatim
19446 #: ../fish/guestfish.pod:1207
19447 #, no-wrap
19448 msgid ""
19449 " set completion-ignore-case off\n"
19450 "\n"
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../fish/guestfish.pod:1209
19455 msgid "to make guestfish case sensitive."
19456 msgstr ""
19457
19458 #. type: =item
19459 #: ../fish/guestfish.pod:1213
19460 msgid "test1.img"
19461 msgstr ""
19462
19463 #. type: =item
19464 #: ../fish/guestfish.pod:1215
19465 msgid "test2.img (etc)"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:1217
19470 msgid ""
19471 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19472 "will be created in the file C<test1.img> in the current directory.  The "
19473 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19474 "the same name will be overwritten."
19475 msgstr ""
19476
19477 #. type: textblock
19478 #: ../fish/guestfish.pod:1226
19479 msgid ""
19480 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19481 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19482 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19483 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19484 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19485 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3104
19490 #: ../test-tool/libguestfs-test-tool.pod:99
19491 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19492 msgstr ""
19493
19494 #. type: textblock
19495 #: ../fish/virt-copy-in.pod:5
19496 msgid ""
19497 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19498 msgstr ""
19499
19500 #. type: verbatim
19501 #: ../fish/virt-copy-in.pod:9
19502 #, no-wrap
19503 msgid ""
19504 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19505 "\n"
19506 msgstr ""
19507
19508 #. type: verbatim
19509 #: ../fish/virt-copy-in.pod:11
19510 #, no-wrap
19511 msgid ""
19512 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19513 "\n"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/virt-copy-in.pod:15
19518 msgid ""
19519 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19520 "causing disk corruption.  The virtual machine must be shut down before you "
19521 "use this command."
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../fish/virt-copy-in.pod:21
19526 msgid ""
19527 "C<virt-copy-in> copies files and directories from the local disk into a "
19528 "virtual machine disk image or named libvirt domain."
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/virt-copy-in.pod:24
19533 msgid ""
19534 "You can give one of more filenames and directories on the command line.  "
19535 "Directories are copied in recursively.  The final parameter must be the "
19536 "destination directory in the disk image which must be an absolute path "
19537 "starting with a C</> character."
19538 msgstr ""
19539
19540 #. type: verbatim
19541 #: ../fish/virt-copy-in.pod:33
19542 #, no-wrap
19543 msgid ""
19544 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19545 "\n"
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19550 msgid "Upload a home directory to a guest:"
19551 msgstr ""
19552
19553 #. type: verbatim
19554 #: ../fish/virt-copy-in.pod:37
19555 #, no-wrap
19556 msgid ""
19557 " virt-copy-in -d MyGuest skel /home\n"
19558 "\n"
19559 msgstr ""
19560
19561 #. type: =head1
19562 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19563 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19564 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19565 msgstr ""
19566
19567 #. type: textblock
19568 #: ../fish/virt-copy-in.pod:41
19569 msgid ""
19570 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19571 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19572 "are probably better off using guestfish directly."
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19577 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19578 msgid ""
19579 "Since the shell script just passes options straight to guestfish, read "
19580 "L<guestfish(1)> to see the full list of options."
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../fish/virt-copy-in.pod:52
19585 #, fuzzy
19586 #| msgid ""
19587 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19588 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19589 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19590 #| "libguestfs.org/>."
19591 msgid ""
19592 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19593 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19594 msgstr ""
19595 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19596 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19597 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19598 "org/>."
19599
19600 #. type: textblock
19601 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19602 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19603 #, fuzzy
19604 #| msgid "Copyright (C) 2009 Red Hat Inc."
19605 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19606 msgstr "© Red Hat Inc., 2009"
19607
19608 #. type: textblock
19609 #: ../fish/virt-copy-out.pod:5
19610 msgid ""
19611 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19612 "image."
19613 msgstr ""
19614
19615 #. type: verbatim
19616 #: ../fish/virt-copy-out.pod:9
19617 #, no-wrap
19618 msgid ""
19619 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19620 "\n"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/virt-copy-out.pod:11
19625 #, no-wrap
19626 msgid ""
19627 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19628 "\n"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/virt-copy-out.pod:15
19633 msgid ""
19634 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19635 "image or named libvirt domain."
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fish/virt-copy-out.pod:18
19640 msgid ""
19641 "You can give one of more filenames and directories on the command line.  "
19642 "Directories are copied out recursively."
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/virt-copy-out.pod:23
19647 msgid "Download the home directories from a virtual machine:"
19648 msgstr ""
19649
19650 #. type: verbatim
19651 #: ../fish/virt-copy-out.pod:25
19652 #, no-wrap
19653 msgid ""
19654 " mkdir homes\n"
19655 " virt-copy-out -d MyGuest /home homes\n"
19656 "\n"
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../fish/virt-copy-out.pod:30
19661 msgid ""
19662 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19663 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19664 "are probably better off using guestfish directly."
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/virt-copy-out.pod:41
19669 #, fuzzy
19670 #| msgid ""
19671 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19672 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19673 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19674 #| "libguestfs.org/>."
19675 msgid ""
19676 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19677 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19678 msgstr ""
19679 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19680 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19681 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19682 "org/>."
19683
19684 #. type: textblock
19685 #: ../fish/virt-tar-in.pod:5
19686 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19687 msgstr ""
19688
19689 #. type: verbatim
19690 #: ../fish/virt-tar-in.pod:9
19691 #, no-wrap
19692 msgid ""
19693 " virt-tar-in -a disk.img data.tar /destination\n"
19694 "\n"
19695 msgstr ""
19696
19697 #. type: verbatim
19698 #: ../fish/virt-tar-in.pod:11
19699 #, no-wrap
19700 msgid ""
19701 " virt-tar-in -d domain data.tar /destination\n"
19702 "\n"
19703 msgstr ""
19704
19705 #. type: verbatim
19706 #: ../fish/virt-tar-in.pod:13
19707 #, no-wrap
19708 msgid ""
19709 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19710 "\n"
19711 msgstr ""
19712
19713 #. type: textblock
19714 #: ../fish/virt-tar-in.pod:17
19715 msgid ""
19716 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19717 "causing disk corruption.  The virtual machine must be shut down before you "
19718 "use this command."
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/virt-tar-in.pod:23
19723 msgid ""
19724 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19725 "image or named libvirt domain."
19726 msgstr ""
19727
19728 #. type: textblock
19729 #: ../fish/virt-tar-in.pod:26
19730 msgid ""
19731 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19732 "standard input.  The second parameter is the absolute target directory to "
19733 "unpack into."
19734 msgstr ""
19735
19736 #. type: verbatim
19737 #: ../fish/virt-tar-in.pod:34
19738 #, no-wrap
19739 msgid ""
19740 " virt-tar-in -d MyGuest homes.tar /home\n"
19741 "\n"
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../fish/virt-tar-in.pod:38
19746 msgid ""
19747 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19748 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19749 "probably better off using guestfish directly."
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/virt-tar-in.pod:49
19754 #, fuzzy
19755 #| msgid ""
19756 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19757 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19758 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19759 #| "libguestfs.org/>."
19760 msgid ""
19761 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19762 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19763 "org/>."
19764 msgstr ""
19765 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19766 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19767 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19768 "org/>."
19769
19770 #. type: textblock
19771 #: ../fish/virt-tar-out.pod:5
19772 msgid ""
19773 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../fish/virt-tar-out.pod:9
19778 #, no-wrap
19779 msgid ""
19780 " virt-tar-out -a disk.img /dir files.tar\n"
19781 "\n"
19782 msgstr ""
19783
19784 #. type: verbatim
19785 #: ../fish/virt-tar-out.pod:11
19786 #, no-wrap
19787 msgid ""
19788 " virt-tar-out -d domain /dir files.tar\n"
19789 "\n"
19790 msgstr ""
19791
19792 #. type: verbatim
19793 #: ../fish/virt-tar-out.pod:13
19794 #, no-wrap
19795 msgid ""
19796 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19797 "\n"
19798 msgstr ""
19799
19800 #. type: textblock
19801 #: ../fish/virt-tar-out.pod:17
19802 msgid ""
19803 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/virt-tar-out.pod:20
19808 msgid ""
19809 "The first parameter is the absolute path of the virtual machine directory.  "
19810 "The second parameter is the tar file to write.  Use C<-> to write to "
19811 "standard output."
19812 msgstr ""
19813
19814 #. type: textblock
19815 #: ../fish/virt-tar-out.pod:26
19816 msgid "Download the home directories from a guest:"
19817 msgstr ""
19818
19819 #. type: verbatim
19820 #: ../fish/virt-tar-out.pod:28
19821 #, no-wrap
19822 msgid ""
19823 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19824 "\n"
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/virt-tar-out.pod:32
19829 msgid ""
19830 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19831 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19832 "are probably better off using guestfish directly."
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/virt-tar-out.pod:43
19837 #, fuzzy
19838 #| msgid ""
19839 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19840 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19841 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19842 #| "libguestfs.org/>."
19843 msgid ""
19844 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19845 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19846 msgstr ""
19847 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19848 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19849 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19850 "org/>."
19851
19852 #. type: textblock
19853 #: ../fuse/guestmount.pod:5
19854 msgid ""
19855 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19856 msgstr ""
19857
19858 #. type: verbatim
19859 #: ../fuse/guestmount.pod:9
19860 #, no-wrap
19861 msgid ""
19862 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19863 "\n"
19864 msgstr ""
19865
19866 #. type: verbatim
19867 #: ../fuse/guestmount.pod:11
19868 #, no-wrap
19869 msgid ""
19870 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19871 "\n"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fuse/guestmount.pod:13
19876 #, no-wrap
19877 msgid ""
19878 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fuse/guestmount.pod:17
19884 msgid ""
19885 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19886 "machines.  If you do this, you risk disk corruption in the VM."
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fuse/guestmount.pod:22
19891 msgid ""
19892 "The guestmount program can be used to mount virtual machine filesystems and "
19893 "other disk images on the host.  It uses libguestfs for access to the guest "
19894 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19895 "a mountable device."
19896 msgstr ""
19897
19898 #. type: textblock
19899 #: ../fuse/guestmount.pod:27
19900 msgid ""
19901 "Along with other options, you have to give at least one device (I<-a> "
19902 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19903 "option) or use the I<-i> inspection option.  How this works is better "
19904 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19905 "below."
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fuse/guestmount.pod:33
19910 msgid ""
19911 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19912 "by you, and the filesystem will not be visible to any other users unless you "
19913 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19914 "the filesystem, use the C<fusermount -u> command."
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../fuse/guestmount.pod:41
19919 msgid ""
19920 "For a typical Windows guest which has its main filesystem on the first "
19921 "partition:"
19922 msgstr ""
19923
19924 #. type: verbatim
19925 #: ../fuse/guestmount.pod:44
19926 #, no-wrap
19927 msgid ""
19928 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19929 "\n"
19930 msgstr ""
19931
19932 #. type: textblock
19933 #: ../fuse/guestmount.pod:46
19934 msgid ""
19935 "For a typical Linux guest which has a /boot filesystem on the first "
19936 "partition, and the root filesystem on a logical volume:"
19937 msgstr ""
19938
19939 #. type: verbatim
19940 #: ../fuse/guestmount.pod:49
19941 #, no-wrap
19942 msgid ""
19943 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19944 "\n"
19945 msgstr ""
19946
19947 #. type: textblock
19948 #: ../fuse/guestmount.pod:51
19949 msgid "To get libguestfs to detect guest mountpoints for you:"
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fuse/guestmount.pod:53
19954 #, no-wrap
19955 msgid ""
19956 " guestmount -a guest.img -i --ro /mnt\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fuse/guestmount.pod:55
19962 msgid "For a libvirt guest called \"Guest\" you could do:"
19963 msgstr ""
19964
19965 #. type: verbatim
19966 #: ../fuse/guestmount.pod:57
19967 #, no-wrap
19968 msgid ""
19969 " guestmount -d Guest -i --ro /mnt\n"
19970 "\n"
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fuse/guestmount.pod:59
19975 msgid ""
19976 "If you don't know what filesystems are contained in a guest or disk image, "
19977 "use L<virt-filesystems(1)> first:"
19978 msgstr ""
19979
19980 #. type: verbatim
19981 #: ../fuse/guestmount.pod:62
19982 #, no-wrap
19983 msgid ""
19984 " virt-filesystems MyGuest\n"
19985 "\n"
19986 msgstr ""
19987
19988 #. type: textblock
19989 #: ../fuse/guestmount.pod:64
19990 msgid ""
19991 "If you want to trace the libguestfs calls but without excessive debugging "
19992 "information, we recommend:"
19993 msgstr ""
19994
19995 #. type: verbatim
19996 #: ../fuse/guestmount.pod:67
19997 #, no-wrap
19998 msgid ""
19999 " guestmount [...] --trace /mnt\n"
20000 "\n"
20001 msgstr ""
20002
20003 #. type: textblock
20004 #: ../fuse/guestmount.pod:69
20005 msgid "If you want to debug the program, we recommend:"
20006 msgstr ""
20007
20008 #. type: verbatim
20009 #: ../fuse/guestmount.pod:71
20010 #, no-wrap
20011 msgid ""
20012 " guestmount [...] --trace --verbose /mnt\n"
20013 "\n"
20014 msgstr ""
20015
20016 #. type: =head1
20017 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20018 #: ../resize/virt-resize.pod:486
20019 msgid "NOTES"
20020 msgstr "ПРИМІТКИ"
20021
20022 #. type: =head2
20023 #: ../fuse/guestmount.pod:75
20024 msgid "Other users cannot see the filesystem by default"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fuse/guestmount.pod:77
20029 msgid ""
20030 "If you mount a filesystem as one user (eg. root), then other users will not "
20031 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20032 "option when mounting:"
20033 msgstr ""
20034
20035 #. type: verbatim
20036 #: ../fuse/guestmount.pod:81
20037 #, no-wrap
20038 msgid ""
20039 " sudo guestmount [...] -o allow_other /mnt\n"
20040 "\n"
20041 msgstr ""
20042
20043 #. type: textblock
20044 #: ../fuse/guestmount.pod:91
20045 msgid "Add a block device or virtual machine image."
20046 msgstr ""
20047
20048 #. type: =item
20049 #: ../fuse/guestmount.pod:114
20050 msgid "B<--dir-cache-timeout N>"
20051 msgstr "B<--dir-cache-timeout N>"
20052
20053 #. type: textblock
20054 #: ../fuse/guestmount.pod:116
20055 msgid ""
20056 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20057 "seconds.  The readdir cache [actually, there are several semi-independent "
20058 "caches] is populated after a readdir(2) call with the stat and extended "
20059 "attributes of the files in the directory, in anticipation that they will be "
20060 "requested soon after."
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fuse/guestmount.pod:122
20065 msgid ""
20066 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20067 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20068 "requests, only cache existing ones."
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../fuse/guestmount.pod:142
20073 msgid ""
20074 "If you have untrusted raw-format guest disk images, you should use this "
20075 "option to specify the disk format.  This avoids a possible security problem "
20076 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20077 "guestfs_add_drive_opts>."
20078 msgstr ""
20079
20080 #. type: =item
20081 #: ../fuse/guestmount.pod:147
20082 msgid "B<--fuse-help>"
20083 msgstr "B<--fuse-help>"
20084
20085 #. type: textblock
20086 #: ../fuse/guestmount.pod:149
20087 msgid "Display help on special FUSE options (see I<-o> below)."
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fuse/guestmount.pod:153
20092 msgid "Display brief help and exit."
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fuse/guestmount.pod:177
20097 msgid ""
20098 "Mount the named partition or logical volume on the given mountpoint B<in the "
20099 "guest> (this has nothing to do with mountpoints in the host)."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fuse/guestmount.pod:180
20104 msgid ""
20105 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20106 "something on C</>."
20107 msgstr ""
20108
20109 #. type: textblock
20110 #: ../fuse/guestmount.pod:197
20111 msgid ""
20112 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20113 "unmounted.  If you specify this option, then we don't attempt to sync the "
20114 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20115 msgstr ""
20116
20117 #. type: =item
20118 #: ../fuse/guestmount.pod:202
20119 #, fuzzy
20120 #| msgid "B<--partition>"
20121 msgid "B<-o option>"
20122 msgstr "B<--partition>"
20123
20124 #. type: =item
20125 #: ../fuse/guestmount.pod:204
20126 #, fuzzy
20127 #| msgid "B<--partition>"
20128 msgid "B<--option option>"
20129 msgstr "B<--partition>"
20130
20131 #. type: textblock
20132 #: ../fuse/guestmount.pod:206
20133 msgid "Pass extra options to FUSE."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fuse/guestmount.pod:208
20138 msgid ""
20139 "To get a list of all the extra options supported by FUSE, use the command "
20140 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20141 "of them are a good idea."
20142 msgstr ""
20143
20144 #. type: verbatim
20145 #: ../fuse/guestmount.pod:212
20146 #, no-wrap
20147 msgid ""
20148 " guestmount --fuse-help\n"
20149 "\n"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../fuse/guestmount.pod:214
20154 msgid "Some potentially useful FUSE options:"
20155 msgstr ""
20156
20157 #. type: =item
20158 #: ../fuse/guestmount.pod:218
20159 msgid "B<-o allow_other>"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fuse/guestmount.pod:220
20164 msgid "Allow other users to see the filesystem."
20165 msgstr ""
20166
20167 #. type: =item
20168 #: ../fuse/guestmount.pod:222
20169 msgid "B<-o attr_timeout=N>"
20170 msgstr "B<-o attr_timeout=N>"
20171
20172 #. type: textblock
20173 #: ../fuse/guestmount.pod:224
20174 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20175 msgstr ""
20176
20177 #. type: =item
20178 #: ../fuse/guestmount.pod:226
20179 msgid "B<-o kernel_cache>"
20180 msgstr ""
20181
20182 #. type: textblock
20183 #: ../fuse/guestmount.pod:228
20184 msgid ""
20185 "Allow the kernel to cache files (reduces the number of reads that have to go "
20186 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20187 "afford the extra memory usage."
20188 msgstr ""
20189
20190 #. type: =item
20191 #: ../fuse/guestmount.pod:232
20192 msgid "B<-o uid=N> B<-o gid=N>"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fuse/guestmount.pod:234
20197 msgid ""
20198 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20199 "the chosen values."
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fuse/guestmount.pod:243
20204 msgid ""
20205 "Add devices and mount everything read-only.  Also disallow writes and make "
20206 "the disk appear read-only to FUSE."
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../fuse/guestmount.pod:246
20211 msgid ""
20212 "This is highly recommended if you are not going to edit the guest disk.  If "
20213 "the guest is running and this option is I<not> supplied, then there is a "
20214 "strong risk of disk corruption in the guest.  We try to prevent this from "
20215 "happening, but it is not always possible."
20216 msgstr ""
20217
20218 #. type: textblock
20219 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20220 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fuse/guestmount.pod:255
20225 msgid "Enable SELinux support for the guest."
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fuse/guestmount.pod:261
20230 msgid "Enable verbose messages from underlying libguestfs."
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fuse/guestmount.pod:267
20235 msgid "Display the program version and exit."
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20240 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20241 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20242 msgstr ""
20243
20244 #. type: =item
20245 #: ../fuse/guestmount.pod:280
20246 #, fuzzy
20247 #| msgid "B<--ro>"
20248 msgid "B<--trace>"
20249 msgstr "B<--ro>"
20250
20251 #. type: textblock
20252 #: ../fuse/guestmount.pod:282
20253 msgid "Trace libguestfs calls and entry into each FUSE function."
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../fuse/guestmount.pod:284
20258 msgid "This also stops the daemon from forking into the background."
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fuse/guestmount.pod:305
20263 msgid ""
20264 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20265 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20266 "net/>."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fuse/guestmount.pod:320
20271 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../inspector/virt-inspector.pod:5
20276 msgid ""
20277 "virt-inspector - Display operating system version and other information "
20278 "about a virtual machine"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../inspector/virt-inspector.pod:9
20283 #, fuzzy, no-wrap
20284 #| msgid ""
20285 #| " virt-list-partitions [--options] domname\n"
20286 #| "\n"
20287 msgid ""
20288 " virt-inspector [--options] -d domname\n"
20289 "\n"
20290 msgstr ""
20291 " virt-list-partitions [--параметри] назва_домену\n"
20292 "\n"
20293
20294 #. type: verbatim
20295 #: ../inspector/virt-inspector.pod:11
20296 #, fuzzy, no-wrap
20297 #| msgid ""
20298 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20299 #| "\n"
20300 msgid ""
20301 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20302 "\n"
20303 msgstr ""
20304 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20305 "\n"
20306
20307 #. type: verbatim
20308 #: ../inspector/virt-inspector.pod:15
20309 #, fuzzy, no-wrap
20310 #| msgid ""
20311 #| " virt-list-partitions [--options] domname\n"
20312 #| "\n"
20313 msgid ""
20314 " virt-inspector domname\n"
20315 "\n"
20316 msgstr ""
20317 " virt-list-partitions [--параметри] назва_домену\n"
20318 "\n"
20319
20320 #. type: verbatim
20321 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20322 #, fuzzy, no-wrap
20323 #| msgid ""
20324 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20325 #| "\n"
20326 msgid ""
20327 " virt-inspector disk.img [disk.img ...]\n"
20328 "\n"
20329 msgstr ""
20330 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20331 "\n"
20332
20333 #. type: textblock
20334 #: ../inspector/virt-inspector.pod:21
20335 msgid ""
20336 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20337 "determine the version of the operating system and other information about "
20338 "the virtual machine."
20339 msgstr ""
20340
20341 #. type: textblock
20342 #: ../inspector/virt-inspector.pod:25
20343 msgid "Virt-inspector produces XML output for feeding into other programs."
20344 msgstr ""
20345
20346 #. type: textblock
20347 #: ../inspector/virt-inspector.pod:27
20348 msgid ""
20349 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20350 "the libvirt domain (see: C<virsh list --all>)."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../inspector/virt-inspector.pod:30
20355 msgid ""
20356 "You can also run virt-inspector directly on disk images from a single "
20357 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20358 "has several block devices, in which case you should list several I<-a> "
20359 "options one after another, with the first corresponding to the guest's C</"
20360 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../inspector/virt-inspector.pod:37
20365 msgid ""
20366 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20367 "keys and similar."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../inspector/virt-inspector.pod:40
20372 msgid ""
20373 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20374 "inspect several virtual machines, you have to run virt-inspector several "
20375 "times (for example, from a shell script for-loop)."
20376 msgstr ""
20377
20378 #. type: textblock
20379 #: ../inspector/virt-inspector.pod:45
20380 msgid ""
20381 "Because virt-inspector needs direct access to guest images, it won't "
20382 "normally work over remote libvirt connections."
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../inspector/virt-inspector.pod:48
20387 msgid ""
20388 "All of the information available from virt-inspector is also available "
20389 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20390 "The same information can also be fetched using guestfish or via libguestfs "
20391 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20392 "WITH OTHER PROGRAMMING LANGUAGES>)."
20393 msgstr ""
20394
20395 #. type: textblock
20396 #: ../inspector/virt-inspector.pod:81
20397 msgid ""
20398 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20399 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20400 "at all."
20401 msgstr ""
20402
20403 #. type: textblock
20404 #: ../inspector/virt-inspector.pod:94
20405 msgid ""
20406 "When prompting for keys and passphrases, virt-inspector normally turns "
20407 "echoing off so you cannot see what you are typing.  If you are not worried "
20408 "about Tempest attacks and there is no one else in the room you can specify "
20409 "this flag to see what you are typing."
20410 msgstr ""
20411
20412 #. type: textblock
20413 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20414 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20415 #: ../tools/virt-win-reg.pl:144
20416 msgid ""
20417 "Specify the format of disk images given on the command line.  If this is "
20418 "omitted then the format is autodetected from the content of the disk image."
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20423 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20424 #: ../tools/virt-win-reg.pl:148
20425 msgid ""
20426 "If disk images are requested from libvirt, then this program asks libvirt "
20427 "for this information.  In this case, the value of the format parameter is "
20428 "ignored."
20429 msgstr ""
20430
20431 #. type: textblock
20432 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20433 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20434 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20435 #: ../tools/virt-win-reg.pl:152
20436 msgid ""
20437 "If working with untrusted raw-format guest disk images, you should ensure "
20438 "the format is always specified."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../inspector/virt-inspector.pod:139
20443 msgid "Previous versions of virt-inspector allowed you to write either:"
20444 msgstr ""
20445
20446 #. type: verbatim
20447 #: ../inspector/virt-inspector.pod:145
20448 #, fuzzy, no-wrap
20449 #| msgid ""
20450 #| " inspect-get-hostname root\n"
20451 #| "\n"
20452 msgid ""
20453 " virt-inspector guestname\n"
20454 "\n"
20455 msgstr ""
20456 " inspect-get-hostname корінь\n"
20457 "\n"
20458
20459 #. type: =head1
20460 #: ../inspector/virt-inspector.pod:153
20461 msgid "XML FORMAT"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../inspector/virt-inspector.pod:155
20466 msgid ""
20467 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20468 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20469 "just an overview."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../inspector/virt-inspector.pod:159
20474 msgid ""
20475 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20476 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20477 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20478 "which is vanishingly rare in real world VMs."
20479 msgstr ""
20480
20481 #. type: =head2
20482 #: ../inspector/virt-inspector.pod:164
20483 msgid "E<lt>operatingsystemE<gt>"
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../inspector/virt-inspector.pod:166
20488 msgid ""
20489 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20490 "describe the operating system, its architecture, the descriptive \"product "
20491 "name\" string, the type of OS and so on, as in this example:"
20492 msgstr ""
20493
20494 #. type: verbatim
20495 #: ../inspector/virt-inspector.pod:170
20496 #, no-wrap
20497 msgid ""
20498 " <operatingsystems>\n"
20499 "   <operatingsystem>\n"
20500 "     <root>/dev/sda2</root>\n"
20501 "     <name>windows</name>\n"
20502 "     <arch>i386</arch>\n"
20503 "     <distro>windows</distro>\n"
20504 "     <product_name>Windows 7 Enterprise</product_name>\n"
20505 "     <product_variant>Client</product_variant>\n"
20506 "     <major_version>6</major_version>\n"
20507 "     <minor_version>1</minor_version>\n"
20508 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20509 "     <format>installed</format>\n"
20510 "\n"
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../inspector/virt-inspector.pod:183
20515 msgid ""
20516 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20517 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20518 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20519 "architecture.  The other fields are fairly self-explanatory, but because "
20520 "these fields are taken directly from the libguestfs inspection API you can "
20521 "find precise information from L<guestfs(3)/INSPECTION>."
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../inspector/virt-inspector.pod:191
20526 msgid ""
20527 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20528 "of view of libguestfs (block devices may have completely different names "
20529 "inside the VM itself)."
20530 msgstr ""
20531
20532 #. type: =head2
20533 #: ../inspector/virt-inspector.pod:195
20534 #, fuzzy
20535 #| msgid "mountpoints"
20536 msgid "E<lt>mountpointsE<gt>"
20537 msgstr "mountpoints"
20538
20539 #. type: textblock
20540 #: ../inspector/virt-inspector.pod:197
20541 msgid ""
20542 "Un*x-like guests typically have multiple filesystems which are mounted at "
20543 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20544 "element which looks like this:"
20545 msgstr ""
20546
20547 #. type: verbatim
20548 #: ../inspector/virt-inspector.pod:201
20549 #, no-wrap
20550 msgid ""
20551 " <operatingsystems>\n"
20552 "   <operatingsystem>\n"
20553 "     ...\n"
20554 "     <mountpoints>\n"
20555 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20556 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20557 "     </mountpoints>\n"
20558 "\n"
20559 msgstr ""
20560
20561 #. type: textblock
20562 #: ../inspector/virt-inspector.pod:209
20563 msgid ""
20564 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20565 "and may have completely different names inside the guest.  Only mountable "
20566 "filesystems appear in this list, not things like swap devices."
20567 msgstr ""
20568
20569 #. type: =head2
20570 #: ../inspector/virt-inspector.pod:214
20571 #, fuzzy
20572 #| msgid "list-filesystems"
20573 msgid "E<lt>filesystemsE<gt>"
20574 msgstr "list-filesystems"
20575
20576 #. type: textblock
20577 #: ../inspector/virt-inspector.pod:216
20578 msgid ""
20579 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20580 "filesystems belonging to the guest, including swap and empty partitions.  "
20581 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20582 "this OS or shared with this OS and other OSes)."
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../inspector/virt-inspector.pod:222
20587 msgid "You might see something like this:"
20588 msgstr ""
20589
20590 #. type: verbatim
20591 #: ../inspector/virt-inspector.pod:224
20592 #, no-wrap
20593 msgid ""
20594 " <operatingsystems>\n"
20595 "   <operatingsystem>\n"
20596 "     ...\n"
20597 "     <filesystems>\n"
20598 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20599 "         <type>ext4</type>\n"
20600 "         <label>Fedora-13-x86_64</label>\n"
20601 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20602 "       </filesystem>\n"
20603 "\n"
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../inspector/virt-inspector.pod:234
20608 msgid ""
20609 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20610 "the label, and the UUID."
20611 msgstr ""
20612
20613 #. type: =head2
20614 #: ../inspector/virt-inspector.pod:237
20615 msgid "E<lt>applicationsE<gt>"
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../inspector/virt-inspector.pod:239
20620 msgid ""
20621 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20622 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20623 "machine."
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../inspector/virt-inspector.pod:243
20628 msgid ""
20629 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20630 "Typical values would be C<rpm> and C<deb>."
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../inspector/virt-inspector.pod:246
20635 msgid ""
20636 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20637 "Typical values include C<yum>, C<up2date> and C<apt>"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../inspector/virt-inspector.pod:249
20642 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20643 msgstr ""
20644
20645 #. type: verbatim
20646 #: ../inspector/virt-inspector.pod:252
20647 #, no-wrap
20648 msgid ""
20649 " <operatingsystems>\n"
20650 "   <operatingsystem>\n"
20651 "     ...\n"
20652 "     <applications>\n"
20653 "       <application>\n"
20654 "         <name>coreutils</name>\n"
20655 "         <version>8.5</version>\n"
20656 "         <release>1</release>\n"
20657 "       </application>\n"
20658 "\n"
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../inspector/virt-inspector.pod:262
20663 msgid ""
20664 "The version and release fields may not be available for some types guests.  "
20665 "Other fields are possible, see L<guestfs(3)/"
20666 "guestfs_inspect_list_applications>."
20667 msgstr ""
20668
20669 #. type: =head2
20670 #: ../inspector/virt-inspector.pod:266
20671 msgid "E<lt>drive_mappingsE<gt>"
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../inspector/virt-inspector.pod:268
20676 msgid ""
20677 "For operating systems like Windows which use drive letters, virt-inspector "
20678 "is able to find out how drive letters map to filesystems."
20679 msgstr ""
20680
20681 #. type: verbatim
20682 #: ../inspector/virt-inspector.pod:272
20683 #, no-wrap
20684 msgid ""
20685 " <operatingsystems>\n"
20686 "   <operatingsystem>\n"
20687 "     ...\n"
20688 "     <drive_mappings>\n"
20689 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20690 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20691 "     </drive_mappings>\n"
20692 "\n"
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../inspector/virt-inspector.pod:280
20697 msgid ""
20698 "In the example above, drive C maps to the filesystem on the second partition "
20699 "on the first disk, and drive E maps to the filesystem on the first partition "
20700 "on the second disk."
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../inspector/virt-inspector.pod:284
20705 msgid ""
20706 "Note that this only covers permanent local filesystem mappings, not things "
20707 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20708 "here."
20709 msgstr ""
20710
20711 #. type: =head2
20712 #: ../inspector/virt-inspector.pod:288
20713 #, fuzzy
20714 #| msgid "B<-s E<lt>NE<gt>>"
20715 msgid "E<lt>iconE<gt>"
20716 msgstr "B<-s E<lt>NE<gt>>"
20717
20718 #. type: textblock
20719 #: ../inspector/virt-inspector.pod:290
20720 msgid ""
20721 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20722 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20723 "very large and high quality."
20724 msgstr ""
20725
20726 #. type: verbatim
20727 #: ../inspector/virt-inspector.pod:294
20728 #, no-wrap
20729 msgid ""
20730 " <operatingsystems>\n"
20731 "   <operatingsystem>\n"
20732 "     ...\n"
20733 "     <icon>\n"
20734 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20735 "       [... many lines of base64 data ...]\n"
20736 "     </icon>\n"
20737 "\n"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../inspector/virt-inspector.pod:302
20742 msgid ""
20743 "To display the icon, you have to extract it and convert the base64 data back "
20744 "to a binary file.  Use an XPath query or simply an editor to extract the "
20745 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20746 "to a PNG file:"
20747 msgstr ""
20748
20749 #. type: verbatim
20750 #: ../inspector/virt-inspector.pod:307
20751 #, no-wrap
20752 msgid ""
20753 " base64 -i -d < icon.data > icon.png\n"
20754 "\n"
20755 msgstr ""
20756
20757 #. type: =head2
20758 #: ../inspector/virt-inspector.pod:309
20759 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../inspector/virt-inspector.pod:311
20764 msgid ""
20765 "Virt-inspector can detect some operating system installers on install disks, "
20766 "live CDs, bootable USB keys and more."
20767 msgstr ""
20768
20769 #. type: textblock
20770 #: ../inspector/virt-inspector.pod:314
20771 msgid ""
20772 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20773 "fields may be present to indicate a live CD, network installer, or one part "
20774 "of a multipart CD.  For example:"
20775 msgstr ""
20776
20777 #. type: verbatim
20778 #: ../inspector/virt-inspector.pod:318
20779 #, no-wrap
20780 msgid ""
20781 " <operatingsystems>\n"
20782 "   <operatingsystem>\n"
20783 "     <root>/dev/sda</root>\n"
20784 "     <name>linux</name>\n"
20785 "     <arch>i386</arch>\n"
20786 "     <distro>ubuntu</distro>\n"
20787 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20788 "     <major_version>10</major_version>\n"
20789 "     <minor_version>10</minor_version>\n"
20790 "     <format>installer</format>\n"
20791 "     <live/>\n"
20792 "\n"
20793 msgstr ""
20794
20795 #. type: =head1
20796 #: ../inspector/virt-inspector.pod:330
20797 msgid "USING XPATH"
20798 msgstr ""
20799
20800 #. type: textblock
20801 #: ../inspector/virt-inspector.pod:332
20802 msgid ""
20803 "You can use the XPath query language, and/or the xpath tool, in order to "
20804 "select parts of the XML."
20805 msgstr ""
20806
20807 #. type: verbatim
20808 #: ../inspector/virt-inspector.pod:337
20809 #, no-wrap
20810 msgid ""
20811 " $ virt-inspector -d Guest | xpath //filesystems\n"
20812 " Found 1 nodes:\n"
20813 " -- NODE --\n"
20814 " <filesystems>\n"
20815 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20816 "        <type>ext4</type>\n"
20817 " [etc]\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: verbatim
20822 #: ../inspector/virt-inspector.pod:345
20823 #, no-wrap
20824 msgid ""
20825 " $ virt-inspector -d Guest | \\\n"
20826 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20827 " Query didn't return a nodeset. Value: ext4\n"
20828 "\n"
20829 msgstr ""
20830
20831 #. type: =head1
20832 #: ../inspector/virt-inspector.pod:356
20833 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../inspector/virt-inspector.pod:358
20838 msgid ""
20839 "Early versions of libguestfs shipped with a different virt-inspector program "
20840 "written in Perl (the current version is written in C).  The XML output of "
20841 "the Perl virt-inspector was different and it could also output in other "
20842 "formats like text."
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../inspector/virt-inspector.pod:363
20847 msgid ""
20848 "The old virt-inspector is no longer supported or shipped with libguestfs."
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../inspector/virt-inspector.pod:366
20853 msgid ""
20854 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20855 "versions of virt-inspector with different names:"
20856 msgstr ""
20857
20858 #. type: verbatim
20859 #: ../inspector/virt-inspector.pod:369
20860 #, no-wrap
20861 msgid ""
20862 " virt-inspector     Old Perl version.\n"
20863 " virt-inspector2    New C version.\n"
20864 "\n"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../inspector/virt-inspector.pod:374
20869 msgid ""
20870 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20871 ">, L<http://libguestfs.org/>."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../inspector/virt-inspector.pod:390
20876 msgid "Matthew Booth L<mbooth@redhat.com>"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../java/examples/guestfs-java.pod:5
20881 msgid "guestfs-java - How to use libguestfs from Java"
20882 msgstr ""
20883
20884 #. type: verbatim
20885 #: ../java/examples/guestfs-java.pod:9
20886 #, no-wrap
20887 msgid ""
20888 " import com.redhat.et.libguestfs.*;\n"
20889 " \n"
20890 msgstr ""
20891
20892 #. type: verbatim
20893 #: ../java/examples/guestfs-java.pod:11
20894 #, no-wrap
20895 msgid ""
20896 " GuestFS g = new GuestFS ();\n"
20897 " g.add_drive_opts (\"disk.img\", null);\n"
20898 " g.launch ();\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../java/examples/guestfs-java.pod:17
20904 msgid ""
20905 "This manual page documents how to call libguestfs from the Java programming "
20906 "language.  This page just documents the differences from the C API and gives "
20907 "some examples.  If you are not familiar with using libguestfs, you also need "
20908 "to read L<guestfs(3)>."
20909 msgstr ""
20910
20911 #. type: =head2
20912 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20913 msgid "CLOSING THE HANDLE"
20914 msgstr ""
20915
20916 #. type: textblock
20917 #: ../java/examples/guestfs-java.pod:24
20918 msgid ""
20919 "The handle is closed when it is reaped by the garbage collector.  Because "
20920 "libguestfs handles include a lot of state, it is also possible to close (and "
20921 "hence free) them explicitly by calling the C<close> method."
20922 msgstr ""
20923
20924 #. type: =head2
20925 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20926 #: ../python/examples/guestfs-python.pod:21
20927 #: ../ruby/examples/guestfs-ruby.pod:22
20928 #, fuzzy
20929 #| msgid "OPTIONS"
20930 msgid "EXCEPTIONS"
20931 msgstr "ПАРАМЕТРИ"
20932
20933 #. type: textblock
20934 #: ../java/examples/guestfs-java.pod:31
20935 msgid ""
20936 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20937 "exception.  This has a single parameter which is the error message (a "
20938 "C<String>)."
20939 msgstr ""
20940
20941 #. type: textblock
20942 #: ../java/examples/guestfs-java.pod:35
20943 msgid "Calling any method on a closed handle raises the same exception."
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../java/examples/guestfs-java.pod:47
20948 #, fuzzy
20949 #| msgid ""
20950 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20951 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20952 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20953 msgid ""
20954 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20955 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20956 "libguestfs.org/>, L<http://caml.inria.fr/>."
20957 msgstr ""
20958 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20959 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
20960 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20961
20962 #. type: textblock
20963 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20964 #, fuzzy
20965 #| msgid "Copyright (C) 2009 Red Hat Inc."
20966 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20967 msgstr "© Red Hat Inc., 2009"
20968
20969 #. type: textblock
20970 #: ../ocaml/examples/guestfs-ocaml.pod:5
20971 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../ocaml/examples/guestfs-ocaml.pod:9
20976 msgid "Module style:"
20977 msgstr ""
20978
20979 #. type: verbatim
20980 #: ../ocaml/examples/guestfs-ocaml.pod:11
20981 #, no-wrap
20982 msgid ""
20983 " let g = Guestfs.create () in\n"
20984 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20985 " Guestfs.launch g;\n"
20986 "\n"
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../ocaml/examples/guestfs-ocaml.pod:15
20991 msgid "Object-oriented style:"
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../ocaml/examples/guestfs-ocaml.pod:17
20996 #, no-wrap
20997 msgid ""
20998 " let g = new Guestfs.guestfs () in\n"
20999 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21000 " g#launch ();\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: verbatim
21005 #: ../ocaml/examples/guestfs-ocaml.pod:21
21006 #, no-wrap
21007 msgid ""
21008 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21009 "or:\n"
21010 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21011 "\n"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../ocaml/examples/guestfs-ocaml.pod:27
21016 msgid ""
21017 "This manual page documents how to call libguestfs from the OCaml programming "
21018 "language.  This page just documents the differences from the C API and gives "
21019 "some examples.  If you are not familiar with using libguestfs, you also need "
21020 "to read L<guestfs(3)>."
21021 msgstr ""
21022
21023 #. type: =head2
21024 #: ../ocaml/examples/guestfs-ocaml.pod:32
21025 msgid "PROGRAMMING STYLES"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../ocaml/examples/guestfs-ocaml.pod:34
21030 msgid ""
21031 "There are two different programming styles supported by the OCaml bindings.  "
21032 "You can use a module style, with each C function mapped to an OCaml function:"
21033 msgstr ""
21034
21035 #. type: verbatim
21036 #: ../ocaml/examples/guestfs-ocaml.pod:38
21037 #, fuzzy, no-wrap
21038 #| msgid ""
21039 #| " int guestfs_last_errno (guestfs_h *g);\n"
21040 #| "\n"
21041 msgid ""
21042 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21043 "\n"
21044 msgstr ""
21045 " int guestfs_last_errno (guestfs_h *g);\n"
21046 "\n"
21047
21048 #. type: textblock
21049 #: ../ocaml/examples/guestfs-ocaml.pod:40
21050 msgid "becomes:"
21051 msgstr ""
21052
21053 #. type: verbatim
21054 #: ../ocaml/examples/guestfs-ocaml.pod:42
21055 #, no-wrap
21056 msgid ""
21057 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21058 "\n"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../ocaml/examples/guestfs-ocaml.pod:44
21063 msgid ""
21064 "Alternately you can use an object-oriented style, calling methods on the "
21065 "class C<Guestfs.guestfs>:"
21066 msgstr ""
21067
21068 #. type: verbatim
21069 #: ../ocaml/examples/guestfs-ocaml.pod:47
21070 #, no-wrap
21071 msgid ""
21072 " method set_verbose : bool -> unit\n"
21073 "\n"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../ocaml/examples/guestfs-ocaml.pod:49
21078 msgid ""
21079 "The object-oriented style is usually briefer, and the minor performance "
21080 "penalty isn't noticable in the general overhead of performing libguestfs "
21081 "functions."
21082 msgstr ""
21083
21084 #. type: textblock
21085 #: ../ocaml/examples/guestfs-ocaml.pod:55
21086 msgid ""
21087 "The handle is closed when it is reaped by the garbage collector.  Because "
21088 "libguestfs handles include a lot of state, it is also possible to close (and "
21089 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21090 "method."
21091 msgstr ""
21092
21093 #. type: textblock
21094 #: ../ocaml/examples/guestfs-ocaml.pod:62
21095 msgid ""
21096 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21097 "exception.  This has a single parameter which is the error message (a "
21098 "string)."
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../ocaml/examples/guestfs-ocaml.pod:66
21103 msgid ""
21104 "Calling any function/method on a closed handle raises C<Guestfs."
21105 "Handle_closed>.  The single parameter is the name of the function that you "
21106 "called."
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../ocaml/examples/guestfs-ocaml.pod:80
21111 #, fuzzy
21112 #| msgid ""
21113 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21114 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21115 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21116 msgid ""
21117 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21118 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21119 "libguestfs.org/>, L<http://caml.inria.fr/>."
21120 msgstr ""
21121 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21122 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21123 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21124
21125 #. type: textblock
21126 #: ../perl/examples/guestfs-perl.pod:5
21127 msgid "guestfs-perl - How to use libguestfs from Perl"
21128 msgstr ""
21129
21130 #. type: verbatim
21131 #: ../perl/examples/guestfs-perl.pod:9
21132 #, no-wrap
21133 msgid ""
21134 " use Sys::Guestfs;\n"
21135 " \n"
21136 msgstr ""
21137
21138 #. type: verbatim
21139 #: ../perl/examples/guestfs-perl.pod:11
21140 #, no-wrap
21141 msgid ""
21142 " my $h = Sys::Guestfs->new ();\n"
21143 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21144 " $h->launch ();\n"
21145 " $h->mount_options ('', '/dev/sda1', '/');\n"
21146 " $h->touch ('/hello');\n"
21147 " $h->sync ();\n"
21148 "\n"
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../perl/examples/guestfs-perl.pod:20
21153 msgid ""
21154 "This manual page documents how to call libguestfs from the Perl programming "
21155 "language.  This page just documents the differences from the C API and gives "
21156 "some examples.  If you are not familiar with using libguestfs, you also need "
21157 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21158 msgstr ""
21159
21160 #. type: =head2
21161 #: ../perl/examples/guestfs-perl.pod:26
21162 msgid "ERRORS"
21163 msgstr ""
21164
21165 #. type: textblock
21166 #: ../perl/examples/guestfs-perl.pod:28
21167 msgid ""
21168 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21169 ">)."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../perl/examples/guestfs-perl.pod:41
21174 #, fuzzy
21175 #| msgid ""
21176 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21177 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21178 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21179 msgid ""
21180 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21181 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21182 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21183 msgstr ""
21184 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21185 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21186 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21187
21188 #. type: textblock
21189 #: ../python/examples/guestfs-python.pod:5
21190 msgid "guestfs-python - How to use libguestfs from Python"
21191 msgstr ""
21192
21193 #. type: verbatim
21194 #: ../python/examples/guestfs-python.pod:9
21195 #, no-wrap
21196 msgid ""
21197 " import guestfs\n"
21198 " g = guestfs.GuestFS ()\n"
21199 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21200 " g.launch\n"
21201 "\n"
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../python/examples/guestfs-python.pod:16
21206 msgid ""
21207 "This manual page documents how to call libguestfs from the Python "
21208 "programming language.  This page just documents the differences from the C "
21209 "API and gives some examples.  If you are not familiar with using libguestfs, "
21210 "you also need to read L<guestfs(3)>."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../python/examples/guestfs-python.pod:23
21215 msgid ""
21216 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21217 "single string argument which is the error message."
21218 msgstr ""
21219
21220 #. type: =head2
21221 #: ../python/examples/guestfs-python.pod:26
21222 msgid "MORE DOCUMENTATION"
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../python/examples/guestfs-python.pod:28
21227 msgid "Type:"
21228 msgstr ""
21229
21230 #. type: verbatim
21231 #: ../python/examples/guestfs-python.pod:30
21232 #, no-wrap
21233 msgid ""
21234 " $ python\n"
21235 " >>> import guestfs\n"
21236 " >>> help (guestfs)\n"
21237 "\n"
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../python/examples/guestfs-python.pod:44
21242 #, fuzzy
21243 #| msgid ""
21244 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21245 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21246 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21247 msgid ""
21248 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21249 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21250 "libguestfs.org/>."
21251 msgstr ""
21252 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21253 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21254 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21255
21256 #. type: textblock
21257 #: ../rescue/virt-rescue.pod:5
21258 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21259 msgstr ""
21260
21261 #. type: verbatim
21262 #: ../rescue/virt-rescue.pod:9
21263 #, fuzzy, no-wrap
21264 #| msgid ""
21265 #| " virt-list-partitions [--options] domname\n"
21266 #| "\n"
21267 msgid ""
21268 " virt-rescue [--options] -d domname\n"
21269 "\n"
21270 msgstr ""
21271 " virt-list-partitions [--параметри] назва_домену\n"
21272 "\n"
21273
21274 #. type: verbatim
21275 #: ../rescue/virt-rescue.pod:11
21276 #, fuzzy, no-wrap
21277 #| msgid ""
21278 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21279 #| "\n"
21280 msgid ""
21281 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21282 "\n"
21283 msgstr ""
21284 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21285 "\n"
21286
21287 #. type: verbatim
21288 #: ../rescue/virt-rescue.pod:15
21289 #, fuzzy, no-wrap
21290 #| msgid ""
21291 #| " virt-list-partitions [--options] domname\n"
21292 #| "\n"
21293 msgid ""
21294 " virt-rescue [--options] domname\n"
21295 "\n"
21296 msgstr ""
21297 " virt-list-partitions [--параметри] назва_домену\n"
21298 "\n"
21299
21300 #. type: verbatim
21301 #: ../rescue/virt-rescue.pod:17
21302 #, fuzzy, no-wrap
21303 #| msgid ""
21304 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21305 #| "\n"
21306 msgid ""
21307 " virt-rescue [--options] disk.img [disk.img ...]\n"
21308 "\n"
21309 msgstr ""
21310 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21311 "\n"
21312
21313 #. type: textblock
21314 #: ../rescue/virt-rescue.pod:21
21315 msgid ""
21316 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21317 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21318 "you from doing this, but doesn't catch all cases."
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../rescue/virt-rescue.pod:25
21323 msgid ""
21324 "However if you use the I<--ro> (read only) option, then you can attach a "
21325 "shell to a live virtual machine.  The results might be strange or "
21326 "inconsistent at times but you won't get disk corruption."
21327 msgstr ""
21328
21329 #. type: textblock
21330 #: ../rescue/virt-rescue.pod:31
21331 msgid ""
21332 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21333 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21334 "recovery tools which you can use to examine or rescue a virtual machine or "
21335 "disk image."
21336 msgstr ""
21337
21338 #. type: textblock
21339 #: ../rescue/virt-rescue.pod:36
21340 msgid ""
21341 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21342 "on disk image(s):"
21343 msgstr ""
21344
21345 #. type: verbatim
21346 #: ../rescue/virt-rescue.pod:39
21347 #, no-wrap
21348 msgid ""
21349 " virt-rescue -d GuestName\n"
21350 "\n"
21351 msgstr ""
21352
21353 #. type: verbatim
21354 #: ../rescue/virt-rescue.pod:41
21355 #, no-wrap
21356 msgid ""
21357 " virt-rescue --ro -a /path/to/disk.img\n"
21358 "\n"
21359 msgstr ""
21360
21361 #. type: verbatim
21362 #: ../rescue/virt-rescue.pod:43
21363 #, no-wrap
21364 msgid ""
21365 " virt-rescue -a /dev/sdc\n"
21366 "\n"
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../rescue/virt-rescue.pod:45
21371 msgid "For live VMs you I<must> use the --ro option."
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../rescue/virt-rescue.pod:47
21376 msgid ""
21377 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21378 "in an interactive bash shell where you can use many ordinary Linux "
21379 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21380 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21381 "is an empty directory called C</sysroot> where you can mount filesystems."
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../rescue/virt-rescue.pod:54
21386 msgid ""
21387 "In the example below, we list logical volumes, then choose one to mount "
21388 "under C</sysroot>:"
21389 msgstr ""
21390
21391 #. type: verbatim
21392 #: ../rescue/virt-rescue.pod:57
21393 #, no-wrap
21394 msgid ""
21395 " ><rescue> lvs\n"
21396 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21397 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21398 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21399 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21400 " ><rescue> ls /sysroot\n"
21401 "\n"
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../rescue/virt-rescue.pod:64
21406 msgid ""
21407 "If you don't know what filesystems are available on the virtual machine then "
21408 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../rescue/virt-rescue.pod:70
21413 msgid ""
21414 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21415 "virtual machine.  For example you can use it on a blank file if you want to "
21416 "partition that file (although we would recommend using L<guestfish(1)> "
21417 "instead as it is more suitable for this purpose).  You can even use virt-"
21418 "rescue on things like SD cards."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../rescue/virt-rescue.pod:76
21423 msgid ""
21424 "Virt-rescue does not require root.  You only need to run it as root if you "
21425 "need root to open the disk image."
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../rescue/virt-rescue.pod:79
21430 msgid ""
21431 "This tool is just designed for quick interactive hacking on a virtual "
21432 "machine.  For more structured access to a virtual machine disk image, you "
21433 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21434 "make scripted changes to guests, use L<guestfish(1)>."
21435 msgstr ""
21436
21437 #. type: =item
21438 #: ../rescue/virt-rescue.pod:103
21439 msgid "B<--append kernelopts>"
21440 msgstr ""
21441
21442 #. type: textblock
21443 #: ../rescue/virt-rescue.pod:105
21444 msgid "Pass additional options to the rescue kernel."
21445 msgstr ""
21446
21447 #. type: verbatim
21448 #: ../rescue/virt-rescue.pod:135
21449 #, fuzzy, no-wrap
21450 #| msgid ""
21451 #| " guestfish --format=raw -a disk.img\n"
21452 #| "\n"
21453 msgid ""
21454 " virt-rescue --format=raw -a disk.img\n"
21455 "\n"
21456 msgstr ""
21457 " guestfish --format=raw -a disk.img\n"
21458 "\n"
21459
21460 #. type: verbatim
21461 #: ../rescue/virt-rescue.pod:139
21462 #, fuzzy, no-wrap
21463 #| msgid ""
21464 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21465 #| "\n"
21466 msgid ""
21467 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21468 "\n"
21469 msgstr ""
21470 " guestfish --format=raw -a disk.img --format -a another.img\n"
21471 "\n"
21472
21473 #. type: =item
21474 #: ../rescue/virt-rescue.pod:148
21475 msgid "B<-m MB>"
21476 msgstr ""
21477
21478 #. type: =item
21479 #: ../rescue/virt-rescue.pod:150
21480 #, fuzzy
21481 #| msgid "B<--merge>"
21482 msgid "B<--memsize MB>"
21483 msgstr "B<--merge>"
21484
21485 #. type: textblock
21486 #: ../rescue/virt-rescue.pod:152
21487 msgid ""
21488 "Change the amount of memory allocated to the rescue system.  The default is "
21489 "set by libguestfs and is small but adequate for running system tools.  The "
21490 "occasional program might need more memory.  The parameter is specified in "
21491 "megabytes."
21492 msgstr ""
21493
21494 #. type: =item
21495 #: ../rescue/virt-rescue.pod:157
21496 #, fuzzy
21497 #| msgid "B<--inspector>"
21498 msgid "B<--network>"
21499 msgstr "B<--inspector>"
21500
21501 #. type: textblock
21502 #: ../rescue/virt-rescue.pod:159
21503 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../rescue/virt-rescue.pod:165
21508 msgid "Open the image read-only."
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../rescue/virt-rescue.pod:175
21513 msgid ""
21514 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21515 "SELINUX> before using this option."
21516 msgstr ""
21517
21518 #. type: textblock
21519 #: ../rescue/virt-rescue.pod:194
21520 msgid ""
21521 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21522 "are done read-write."
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../rescue/virt-rescue.pod:207
21527 msgid "Previous versions of virt-rescue allowed you to write either:"
21528 msgstr ""
21529
21530 #. type: verbatim
21531 #: ../rescue/virt-rescue.pod:209
21532 #, fuzzy, no-wrap
21533 #| msgid ""
21534 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21535 #| "\n"
21536 msgid ""
21537 " virt-rescue disk.img [disk.img ...]\n"
21538 "\n"
21539 msgstr ""
21540 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21541 "\n"
21542
21543 #. type: verbatim
21544 #: ../rescue/virt-rescue.pod:213
21545 #, fuzzy, no-wrap
21546 #| msgid ""
21547 #| " file-architecture filename\n"
21548 #| "\n"
21549 msgid ""
21550 " virt-rescue guestname\n"
21551 "\n"
21552 msgstr ""
21553 " file-architecture назва_файла\n"
21554 "\n"
21555
21556 #. type: =head1
21557 #: ../rescue/virt-rescue.pod:221
21558 msgid "NETWORK"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../rescue/virt-rescue.pod:223
21563 msgid ""
21564 "Adding the I<--network> option enables QEMU user networking in the rescue "
21565 "appliance.  There are some differences between user networking and ordinary "
21566 "networking:"
21567 msgstr ""
21568
21569 #. type: =item
21570 #: ../rescue/virt-rescue.pod:229
21571 msgid "ping does not work"
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../rescue/virt-rescue.pod:231
21576 msgid ""
21577 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21578 "send the ping packets, and because virt-rescue must be able to run as non-"
21579 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21580 "The ping command will appear to resolve addresses but will not be able to "
21581 "send or receive any packets.  This does not mean that the network is not "
21582 "working."
21583 msgstr ""
21584
21585 #. type: =item
21586 #: ../rescue/virt-rescue.pod:238
21587 msgid "cannot receive connections"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../rescue/virt-rescue.pod:240
21592 msgid "QEMU user networking cannot receive incoming connections."
21593 msgstr ""
21594
21595 #. type: =item
21596 #: ../rescue/virt-rescue.pod:242
21597 msgid "making TCP connections"
21598 msgstr ""
21599
21600 #. type: textblock
21601 #: ../rescue/virt-rescue.pod:244
21602 msgid ""
21603 "The virt-rescue appliance needs to be small and so does not include many "
21604 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21605 "make TCP connections from the shell using the magical C</dev/tcp/"
21606 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21607 msgstr ""
21608
21609 #. type: verbatim
21610 #: ../rescue/virt-rescue.pod:249
21611 #, no-wrap
21612 msgid ""
21613 " exec 3<>/dev/tcp/redhat.com/80\n"
21614 " echo \"GET /\" >&3\n"
21615 " cat <&3\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../rescue/virt-rescue.pod:253
21621 msgid "See L<bash(1)> for more details."
21622 msgstr ""
21623
21624 #. type: textblock
21625 #: ../rescue/virt-rescue.pod:259
21626 msgid ""
21627 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21628 "ENVIRONMENT VARIABLES> for the complete list."
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../rescue/virt-rescue.pod:286
21633 #, fuzzy
21634 #| msgid ""
21635 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21636 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21637 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21638 msgid ""
21639 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21640 "libguestfs.org/>."
21641 msgstr ""
21642 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21643 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21644 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21645
21646 #. type: textblock
21647 #: ../resize/virt-resize.pod:5
21648 msgid "virt-resize - Resize a virtual machine disk"
21649 msgstr ""
21650
21651 #. type: verbatim
21652 #: ../resize/virt-resize.pod:9
21653 #, no-wrap
21654 msgid ""
21655 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21656 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21657 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../resize/virt-resize.pod:15
21663 msgid ""
21664 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21665 "larger or smaller overall, and resizing or deleting any partitions contained "
21666 "within."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../resize/virt-resize.pod:19
21671 msgid ""
21672 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21673 "not> be used on live virtual machines - for consistent results, shut the "
21674 "virtual machine down before resizing it."
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../resize/virt-resize.pod:23
21679 msgid ""
21680 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21681 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21682 msgstr ""
21683
21684 #. type: =item
21685 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21686 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
21687 msgid "1."
21688 msgstr "1."
21689
21690 #. type: textblock
21691 #: ../resize/virt-resize.pod:33
21692 msgid ""
21693 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21694 "fill the extra 5GB of space."
21695 msgstr ""
21696
21697 #. type: verbatim
21698 #: ../resize/virt-resize.pod:36
21699 #, no-wrap
21700 msgid ""
21701 " virt-filesystems --long -h --all -a olddisk\n"
21702 " \n"
21703 msgstr ""
21704
21705 #. type: verbatim
21706 #: ../resize/virt-resize.pod:38
21707 #, no-wrap
21708 msgid ""
21709 " truncate -r olddisk newdisk\n"
21710 " truncate -s +5G newdisk\n"
21711 " \n"
21712 msgstr ""
21713
21714 #. type: verbatim
21715 #: ../resize/virt-resize.pod:41
21716 #, no-wrap
21717 msgid ""
21718 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21719 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21720 "\n"
21721 msgstr ""
21722
21723 #. type: =item
21724 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21725 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
21726 msgid "2."
21727 msgstr "2."
21728
21729 #. type: textblock
21730 #: ../resize/virt-resize.pod:46
21731 msgid ""
21732 "As above, but make the /boot partition 200MB bigger, while giving the "
21733 "remaining space to /dev/sda2:"
21734 msgstr ""
21735
21736 #. type: verbatim
21737 #: ../resize/virt-resize.pod:49
21738 #, no-wrap
21739 msgid ""
21740 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21741 "   olddisk newdisk\n"
21742 "\n"
21743 msgstr ""
21744
21745 #. type: =item
21746 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
21747 msgid "3."
21748 msgstr "3."
21749
21750 #. type: textblock
21751 #: ../resize/virt-resize.pod:54
21752 msgid ""
21753 "As in the first example, but expand a logical volume as the final step.  "
21754 "This is what you would typically use for Linux guests that use LVM:"
21755 msgstr ""
21756
21757 #. type: verbatim
21758 #: ../resize/virt-resize.pod:58
21759 #, no-wrap
21760 msgid ""
21761 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21762 "   olddisk newdisk\n"
21763 "\n"
21764 msgstr ""
21765
21766 #. type: =item
21767 #: ../resize/virt-resize.pod:61
21768 msgid "4."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../resize/virt-resize.pod:63
21773 msgid ""
21774 "As in the first example, but the output format will be qcow2 instead of a "
21775 "raw disk:"
21776 msgstr ""
21777
21778 #. type: verbatim
21779 #: ../resize/virt-resize.pod:66
21780 #, no-wrap
21781 msgid ""
21782 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21783 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21784 "\n"
21785 msgstr ""
21786
21787 #. type: =head1
21788 #: ../resize/virt-resize.pod:71
21789 msgid "DETAILED USAGE"
21790 msgstr ""
21791
21792 #. type: =head2
21793 #: ../resize/virt-resize.pod:73
21794 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21795 msgstr ""
21796
21797 #. type: =item
21798 #: ../resize/virt-resize.pod:77
21799 msgid "1. Shut down the virtual machine"
21800 msgstr ""
21801
21802 #. type: =item
21803 #: ../resize/virt-resize.pod:79
21804 msgid "2. Locate input disk image"
21805 msgstr ""
21806
21807 #. type: textblock
21808 #: ../resize/virt-resize.pod:81
21809 msgid ""
21810 "Locate the input disk image (ie. the file or device on the host containing "
21811 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21812 "dumpxml> like this to find the disk image name:"
21813 msgstr ""
21814
21815 #. type: verbatim
21816 #: ../resize/virt-resize.pod:85
21817 #, no-wrap
21818 msgid ""
21819 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21820 " Found 1 nodes:\n"
21821 " -- NODE --\n"
21822 " <source dev=\"/dev/vg/lv_guest\" />\n"
21823 "\n"
21824 msgstr ""
21825
21826 #. type: =item
21827 #: ../resize/virt-resize.pod:90
21828 msgid "3. Look at current sizing"
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../resize/virt-resize.pod:92
21833 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21834 msgstr ""
21835
21836 #. type: verbatim
21837 #: ../resize/virt-resize.pod:95
21838 #, no-wrap
21839 msgid ""
21840 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21841 " Name       Type       Size  Parent\n"
21842 " /dev/sda1  partition  101M  /dev/sda\n"
21843 " /dev/sda2  partition  7.9G  /dev/sda\n"
21844 " /dev/sda   device     8.0G  -\n"
21845 "\n"
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../resize/virt-resize.pod:101
21850 msgid ""
21851 "(This example is a virtual machine with an 8 GB disk which we would like to "
21852 "expand up to 10 GB)."
21853 msgstr ""
21854
21855 #. type: =item
21856 #: ../resize/virt-resize.pod:104
21857 msgid "4. Create output disk"
21858 msgstr ""
21859
21860 #. type: textblock
21861 #: ../resize/virt-resize.pod:106
21862 msgid ""
21863 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21864 "to store the resized output disk."
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../resize/virt-resize.pod:109
21869 msgid ""
21870 "To store the resized disk image in a file, create a file of a suitable size:"
21871 msgstr ""
21872
21873 #. type: verbatim
21874 #: ../resize/virt-resize.pod:112
21875 #, no-wrap
21876 msgid ""
21877 " # rm -f outdisk\n"
21878 " # truncate -s 10G outdisk\n"
21879 "\n"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../resize/virt-resize.pod:115
21884 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21885 msgstr ""
21886
21887 #. type: verbatim
21888 #: ../resize/virt-resize.pod:117
21889 #, no-wrap
21890 msgid ""
21891 " # lvcreate -L 10G -n lv_name vg_name\n"
21892 "\n"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../resize/virt-resize.pod:119
21897 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21898 msgstr ""
21899
21900 #. type: verbatim
21901 #: ../resize/virt-resize.pod:121
21902 #, no-wrap
21903 msgid ""
21904 " # virsh pool-list\n"
21905 " # virsh vol-create-as poolname newvol 10G\n"
21906 "\n"
21907 msgstr ""
21908
21909 #. type: =item
21910 #: ../resize/virt-resize.pod:124
21911 msgid "5. Resize"
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../resize/virt-resize.pod:126
21916 msgid ""
21917 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21918 "file) and the output disk.  The output disk is the one created in the "
21919 "previous step."
21920 msgstr ""
21921
21922 #. type: verbatim
21923 #: ../resize/virt-resize.pod:130
21924 #, no-wrap
21925 msgid ""
21926 " # virt-resize indisk outdisk\n"
21927 "\n"
21928 msgstr ""
21929
21930 #. type: textblock
21931 #: ../resize/virt-resize.pod:132
21932 msgid ""
21933 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21934 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21935 "larger, then an extra, empty partition is created at the end of the disk "
21936 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21937 "error."
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../resize/virt-resize.pod:138
21942 msgid ""
21943 "More realistically you'd want to expand existing partitions in the disk "
21944 "image by passing extra options (for the full list see the L</OPTIONS> "
21945 "section below)."
21946 msgstr ""
21947
21948 #. type: textblock
21949 #: ../resize/virt-resize.pod:142
21950 msgid ""
21951 "L</--expand> is the most useful option.  It expands the named partition "
21952 "within the disk to fill any extra space:"
21953 msgstr ""
21954
21955 #. type: verbatim
21956 #: ../resize/virt-resize.pod:145
21957 #, no-wrap
21958 msgid ""
21959 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21960 "\n"
21961 msgstr ""
21962
21963 #. type: textblock
21964 #: ../resize/virt-resize.pod:147
21965 msgid ""
21966 "(In this case, an extra partition is I<not> created at the end of the disk, "
21967 "because there will be no unused space)."
21968 msgstr ""
21969
21970 #. type: textblock
21971 #: ../resize/virt-resize.pod:150
21972 msgid ""
21973 "L</--resize> is the other commonly used option.  The following would "
21974 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21975 "rest of the available space:"
21976 msgstr ""
21977
21978 #. type: verbatim
21979 #: ../resize/virt-resize.pod:154
21980 #, no-wrap
21981 msgid ""
21982 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21983 "     indisk outdisk\n"
21984 "\n"
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../resize/virt-resize.pod:157
21989 msgid ""
21990 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21991 "if virt-resize knows how, it will resize the contents, the equivalent of "
21992 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21993 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21994 "filesystems, so you would have to online resize them after booting the guest."
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../resize/virt-resize.pod:164
21999 msgid "Other options are covered below."
22000 msgstr ""
22001
22002 #. type: =item
22003 #: ../resize/virt-resize.pod:166
22004 msgid "6. Test"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../resize/virt-resize.pod:168
22009 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../resize/virt-resize.pod:170
22014 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22015 msgstr ""
22016
22017 #. type: verbatim
22018 #: ../resize/virt-resize.pod:172
22019 #, fuzzy, no-wrap
22020 #| msgid ""
22021 #| " edit filename\n"
22022 #| "\n"
22023 msgid ""
22024 " # virsh edit guestname\n"
22025 "\n"
22026 msgstr ""
22027 " edit назва_файла\n"
22028 "\n"
22029
22030 #. type: textblock
22031 #: ../resize/virt-resize.pod:174
22032 msgid ""
22033 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22034 "html#elementsDisks>"
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../resize/virt-resize.pod:177
22039 msgid "Then start up the domain with the new, resized disk:"
22040 msgstr ""
22041
22042 #. type: verbatim
22043 #: ../resize/virt-resize.pod:179
22044 #, fuzzy, no-wrap
22045 #| msgid ""
22046 #| " ln-s target linkname\n"
22047 #| "\n"
22048 msgid ""
22049 " # virsh start guestname\n"
22050 "\n"
22051 msgstr ""
22052 " ln-s призначення назва_посилання\n"
22053 "\n"
22054
22055 #. type: textblock
22056 #: ../resize/virt-resize.pod:181
22057 msgid ""
22058 "and check that it still works.  See also the L</NOTES> section below for "
22059 "additional information."
22060 msgstr ""
22061
22062 #. type: =item
22063 #: ../resize/virt-resize.pod:184
22064 msgid "7. Resize LVs etc inside the guest"
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../resize/virt-resize.pod:186
22069 msgid "(This can also be done offline using L<guestfish(1)>)"
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../resize/virt-resize.pod:188
22074 msgid ""
22075 "Once the guest has booted you should see the new space available, at least "
22076 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22077 "may need to resize LVs inside PVs, and also resize filesystem types that "
22078 "virt-resize does not know how to expand."
22079 msgstr ""
22080
22081 #. type: =head2
22082 #: ../resize/virt-resize.pod:195
22083 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../resize/virt-resize.pod:197
22088 msgid ""
22089 "Shrinking is somewhat more complex than expanding, and only an overview is "
22090 "given here."
22091 msgstr ""
22092
22093 #. type: textblock
22094 #: ../resize/virt-resize.pod:200
22095 msgid ""
22096 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22097 "filesystems).  The user has to shrink content before passing the disk image "
22098 "to virt-resize, and virt-resize will check that the content has been shrunk "
22099 "properly."
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../resize/virt-resize.pod:205
22104 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../resize/virt-resize.pod:207
22109 msgid ""
22110 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22111 "steps 3 and 4 above to allocate a new disk image."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../resize/virt-resize.pod:210
22116 msgid ""
22117 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22118 msgstr ""
22119
22120 #. type: =head2
22121 #: ../resize/virt-resize.pod:213
22122 msgid "IGNORING OR DELETING PARTITIONS"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../resize/virt-resize.pod:215
22127 msgid ""
22128 "virt-resize also gives a convenient way to ignore or delete partitions when "
22129 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22130 "up the copy where you don't care about the existing contents of a "
22131 "partition.  Deleting a partition removes it completely, but note that it "
22132 "also renumbers any partitions after the one which is deleted, which can "
22133 "leave some guests unbootable."
22134 msgstr ""
22135
22136 #. type: =head2
22137 #: ../resize/virt-resize.pod:222
22138 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22139 msgstr ""
22140
22141 #. type: textblock
22142 #: ../resize/virt-resize.pod:224
22143 msgid ""
22144 "If the input disk is in qcow2 format, then you may prefer that the output is "
22145 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22146 "the fly.  The output format is simply determined by the format of the empty "
22147 "output container that you provide.  Thus to create qcow2 output, use:"
22148 msgstr ""
22149
22150 #. type: verbatim
22151 #: ../resize/virt-resize.pod:230
22152 #, no-wrap
22153 msgid ""
22154 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22155 "\n"
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../resize/virt-resize.pod:232
22160 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../resize/virt-resize.pod:234
22165 msgid "Similarly, to get non-sparse raw output use:"
22166 msgstr ""
22167
22168 #. type: verbatim
22169 #: ../resize/virt-resize.pod:236
22170 #, fuzzy, no-wrap
22171 #| msgid ""
22172 #| " fallocate path len\n"
22173 #| "\n"
22174 msgid ""
22175 " fallocate -l size outdisk\n"
22176 "\n"
22177 msgstr ""
22178 " fallocate шлях довжина\n"
22179 "\n"
22180
22181 #. type: textblock
22182 #: ../resize/virt-resize.pod:238
22183 msgid ""
22184 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22185 "dev/zero of=outdisk bs=1M count=..>)"
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../resize/virt-resize.pod:247
22190 msgid "Display help."
22191 msgstr ""
22192
22193 #. type: =item
22194 #: ../resize/virt-resize.pod:249
22195 msgid "B<-d>"
22196 msgstr ""
22197
22198 #. type: =item
22199 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22200 #: ../tools/virt-win-reg.pl:120
22201 msgid "B<--debug>"
22202 msgstr "B<--debug>"
22203
22204 #. type: textblock
22205 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22206 msgid "Enable debugging messages."
22207 msgstr ""
22208
22209 #. type: =item
22210 #: ../resize/virt-resize.pod:255
22211 #, fuzzy
22212 #| msgid "B<--no-dest-paths>"
22213 msgid "B<--delete part>"
22214 msgstr "B<--no-dest-paths>"
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:257
22218 msgid ""
22219 "Delete the named partition.  It would be more accurate to describe this as "
22220 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22221 "the original disk image is left intact."
22222 msgstr ""
22223
22224 #. type: textblock
22225 #: ../resize/virt-resize.pod:261
22226 msgid ""
22227 "Note that when you delete a partition, then anything contained in the "
22228 "partition is also deleted.  Furthermore, this causes any partitions that "
22229 "come after to be I<renumbered>, which can easily make your guest unbootable."
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22234 #: ../resize/virt-resize.pod:448
22235 msgid "You can give this option multiple times."
22236 msgstr ""
22237
22238 #. type: =item
22239 #: ../resize/virt-resize.pod:268
22240 #, fuzzy
22241 #| msgid "B<--partition>"
22242 msgid "B<--expand part>"
22243 msgstr "B<--partition>"
22244
22245 #. type: textblock
22246 #: ../resize/virt-resize.pod:270
22247 msgid ""
22248 "Expand the named partition so it uses up all extra space (space left over "
22249 "after any other resize changes that you request have been done)."
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../resize/virt-resize.pod:273
22254 msgid ""
22255 "If virt-resize knows how, it will expand the direct content of the "
22256 "partition.  For example, if the partition is an LVM PV, it will expand the "
22257 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22258 "content it doesn't know about alone."
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../resize/virt-resize.pod:278
22263 msgid "Currently virt-resize can resize:"
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../resize/virt-resize.pod:284
22268 msgid "ext2, ext3 and ext4 filesystems."
22269 msgstr ""
22270
22271 #. type: textblock
22272 #: ../resize/virt-resize.pod:288
22273 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../resize/virt-resize.pod:290
22278 msgid ""
22279 "The filesystem must have been shut down consistently last time it was used.  "
22280 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22281 "consistency check, so at the first boot after resizing Windows will check "
22282 "the disk."
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../resize/virt-resize.pod:297
22287 msgid ""
22288 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22289 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22290 "resize LVs as desired after boot."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../resize/virt-resize.pod:303
22295 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22296 msgstr ""
22297
22298 #. type: textblock
22299 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22300 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22301 msgstr ""
22302
22303 #. type: =item
22304 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22305 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22306 #: ../tools/virt-win-reg.pl:142
22307 msgid "B<--format> raw"
22308 msgstr ""
22309
22310 #. type: textblock
22311 #: ../resize/virt-resize.pod:311
22312 msgid ""
22313 "Specify the format of the input disk image.  If this flag is not given then "
22314 "it is auto-detected from the image itself."
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../resize/virt-resize.pod:317
22319 msgid ""
22320 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22321 "AND NON-SPARSE RAW FORMATS>."
22322 msgstr ""
22323
22324 #. type: =item
22325 #: ../resize/virt-resize.pod:320
22326 #, fuzzy
22327 #| msgid "B<--format>"
22328 msgid "B<--ignore part>"
22329 msgstr "B<--format>"
22330
22331 #. type: textblock
22332 #: ../resize/virt-resize.pod:322
22333 msgid ""
22334 "Ignore the named partition.  Effectively this means the partition is "
22335 "allocated on the destination disk, but the content is not copied across from "
22336 "the source disk.  The content of the partition will be blank (all zero "
22337 "bytes)."
22338 msgstr ""
22339
22340 #. type: =item
22341 #: ../resize/virt-resize.pod:329
22342 msgid "B<--LV-expand logvol>"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../resize/virt-resize.pod:331
22347 msgid ""
22348 "This takes the logical volume and, as a final step, expands it to fill all "
22349 "the space available in its volume group.  A typical usage, assuming a Linux "
22350 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22351 "lv_root> would be:"
22352 msgstr ""
22353
22354 #. type: verbatim
22355 #: ../resize/virt-resize.pod:336
22356 #, no-wrap
22357 msgid ""
22358 " virt-resize indisk outdisk \\\n"
22359 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22360 "\n"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../resize/virt-resize.pod:339
22365 msgid ""
22366 "This would first expand the partition (and PV), and then expand the root "
22367 "device to fill the extra space in the PV."
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../resize/virt-resize.pod:342
22372 msgid ""
22373 "The contents of the LV are also resized if virt-resize knows how to do "
22374 "that.  You can stop virt-resize from trying to expand the content by using "
22375 "the option I<--no-expand-content>."
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../resize/virt-resize.pod:346
22380 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../resize/virt-resize.pod:348
22385 msgid ""
22386 "You can give this option multiple times, I<but> it doesn't make sense to do "
22387 "this unless the logical volumes you specify are all in different volume "
22388 "groups."
22389 msgstr ""
22390
22391 #. type: =item
22392 #: ../resize/virt-resize.pod:354
22393 #, fuzzy
22394 #| msgid "B<--debug>"
22395 msgid "B<--dryrun>"
22396 msgstr "B<--debug>"
22397
22398 #. type: textblock
22399 #: ../resize/virt-resize.pod:356
22400 msgid "Print a summary of what would be done, but don't do anything."
22401 msgstr ""
22402
22403 #. type: =item
22404 #: ../resize/virt-resize.pod:358
22405 msgid "B<--no-copy-boot-loader>"
22406 msgstr ""
22407
22408 #. type: textblock
22409 #: ../resize/virt-resize.pod:360
22410 msgid ""
22411 "By default, virt-resize copies over some sectors at the start of the disk "
22412 "(up to the beginning of the first partition).  Commonly these sectors "
22413 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22414 "in order for the guest to boot correctly."
22415 msgstr ""
22416
22417 #. type: textblock
22418 #: ../resize/virt-resize.pod:365
22419 msgid ""
22420 "If you specify this flag, then this initial copy is not done.  You may need "
22421 "to reinstall the boot loader in this case."
22422 msgstr ""
22423
22424 #. type: =item
22425 #: ../resize/virt-resize.pod:368
22426 #, fuzzy
22427 #| msgid "B<--partition>"
22428 msgid "B<--no-extra-partition>"
22429 msgstr "B<--partition>"
22430
22431 #. type: textblock
22432 #: ../resize/virt-resize.pod:370
22433 msgid ""
22434 "By default, virt-resize creates an extra partition if there is any extra, "
22435 "unused space after all resizing has happened.  Use this option to prevent "
22436 "the extra partition from being created.  If you do this then the extra space "
22437 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22438 "tool in the guest."
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../resize/virt-resize.pod:376
22443 msgid ""
22444 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22445 "will be created."
22446 msgstr ""
22447
22448 #. type: =item
22449 #: ../resize/virt-resize.pod:379
22450 #, fuzzy
22451 #| msgid "B<--no-dest-paths>"
22452 msgid "B<--no-expand-content>"
22453 msgstr "B<--no-dest-paths>"
22454
22455 #. type: textblock
22456 #: ../resize/virt-resize.pod:381
22457 msgid ""
22458 "By default, virt-resize will try to expand the direct contents of "
22459 "partitions, if it knows how (see I<--expand> option above)."
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../resize/virt-resize.pod:384
22464 msgid ""
22465 "If you give the I<--no-expand-content> option then virt-resize will not "
22466 "attempt this."
22467 msgstr ""
22468
22469 #. type: =item
22470 #: ../resize/virt-resize.pod:387
22471 #, fuzzy
22472 #| msgid "ntfsresize-size"
22473 msgid "B<--ntfsresize-force>"
22474 msgstr "ntfsresize-size"
22475
22476 #. type: textblock
22477 #: ../resize/virt-resize.pod:389
22478 msgid ""
22479 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22480 "the NTFS disk is marked as needing a consistency check.  You have to use "
22481 "this option if you want to resize a Windows guest multiple times without "
22482 "booting into Windows between each resize."
22483 msgstr ""
22484
22485 #. type: =item
22486 #: ../resize/virt-resize.pod:395
22487 #, fuzzy
22488 #| msgid "B<--format>"
22489 msgid "B<--output-format> raw"
22490 msgstr "B<--format>"
22491
22492 #. type: textblock
22493 #: ../resize/virt-resize.pod:397
22494 msgid ""
22495 "Specify the format of the output disk image.  If this flag is not given then "
22496 "it is auto-detected from the image itself."
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../resize/virt-resize.pod:403
22501 msgid ""
22502 "Note that this option I<does not create> the output format.  This option "
22503 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22504 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22505 "SPARSE RAW FORMATS>."
22506 msgstr ""
22507
22508 #. type: =item
22509 #: ../resize/virt-resize.pod:408
22510 msgid "B<-q>"
22511 msgstr ""
22512
22513 #. type: =item
22514 #: ../resize/virt-resize.pod:410
22515 #, fuzzy
22516 #| msgid "B<--live>"
22517 msgid "B<--quiet>"
22518 msgstr "B<--live>"
22519
22520 #. type: textblock
22521 #: ../resize/virt-resize.pod:412
22522 msgid "Don't print the summary."
22523 msgstr ""
22524
22525 #. type: =item
22526 #: ../resize/virt-resize.pod:414
22527 #, fuzzy
22528 #| msgid "B<part_size>"
22529 msgid "B<--resize part=size>"
22530 msgstr "B<part_size>"
22531
22532 #. type: textblock
22533 #: ../resize/virt-resize.pod:416
22534 msgid ""
22535 "Resize the named partition (expanding or shrinking it) so that it has the "
22536 "given size."
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../resize/virt-resize.pod:419
22541 msgid ""
22542 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22543 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22544 "size; or as a relative number or percentage.  For example:"
22545 msgstr ""
22546
22547 #. type: verbatim
22548 #: ../resize/virt-resize.pod:425
22549 #, fuzzy, no-wrap
22550 #| msgid ""
22551 #| " hexedit /dev/sda 1M\n"
22552 #| "\n"
22553 msgid ""
22554 " --resize /dev/sda2=10G\n"
22555 "\n"
22556 msgstr ""
22557 " hexedit /dev/sda 1M\n"
22558 "\n"
22559
22560 #. type: verbatim
22561 #: ../resize/virt-resize.pod:427
22562 #, fuzzy, no-wrap
22563 #| msgid ""
22564 #| " pvresize device\n"
22565 #| "\n"
22566 msgid ""
22567 " --resize /dev/sda4=90%\n"
22568 "\n"
22569 msgstr ""
22570 " pvresize пристрій\n"
22571 "\n"
22572
22573 #. type: verbatim
22574 #: ../resize/virt-resize.pod:429
22575 #, fuzzy, no-wrap
22576 #| msgid ""
22577 #| " hexedit /dev/sda 1M\n"
22578 #| "\n"
22579 msgid ""
22580 " --resize /dev/sda2=+1G\n"
22581 "\n"
22582 msgstr ""
22583 " hexedit /dev/sda 1M\n"
22584 "\n"
22585
22586 #. type: verbatim
22587 #: ../resize/virt-resize.pod:431
22588 #, fuzzy, no-wrap
22589 #| msgid ""
22590 #| " hexedit /dev/sda 1M\n"
22591 #| "\n"
22592 msgid ""
22593 " --resize /dev/sda2=-200M\n"
22594 "\n"
22595 msgstr ""
22596 " hexedit /dev/sda 1M\n"
22597 "\n"
22598
22599 #. type: verbatim
22600 #: ../resize/virt-resize.pod:433
22601 #, fuzzy, no-wrap
22602 #| msgid ""
22603 #| " hexedit /dev/sda 1M\n"
22604 #| "\n"
22605 msgid ""
22606 " --resize /dev/sda1=+128K\n"
22607 "\n"
22608 msgstr ""
22609 " hexedit /dev/sda 1M\n"
22610 "\n"
22611
22612 #. type: verbatim
22613 #: ../resize/virt-resize.pod:435
22614 #, fuzzy, no-wrap
22615 #| msgid ""
22616 #| " hexedit /dev/sda 1M\n"
22617 #| "\n"
22618 msgid ""
22619 " --resize /dev/sda1=+10%\n"
22620 "\n"
22621 msgstr ""
22622 " hexedit /dev/sda 1M\n"
22623 "\n"
22624
22625 #. type: verbatim
22626 #: ../resize/virt-resize.pod:437
22627 #, fuzzy, no-wrap
22628 #| msgid ""
22629 #| " hexedit /dev/sda 1M\n"
22630 #| "\n"
22631 msgid ""
22632 " --resize /dev/sda1=-10%\n"
22633 "\n"
22634 msgstr ""
22635 " hexedit /dev/sda 1M\n"
22636 "\n"
22637
22638 #. type: textblock
22639 #: ../resize/virt-resize.pod:439
22640 msgid ""
22641 "You can increase the size of any partition.  Virt-resize will expand the "
22642 "direct content of the partition if it knows how (see I<--expand> below)."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../resize/virt-resize.pod:443
22647 msgid ""
22648 "You can only I<decrease> the size of partitions that contain filesystems or "
22649 "PVs which have already been shrunk.  Virt-resize will check this has been "
22650 "done before proceeding, or else will print an error (see also I<--resize-"
22651 "force>)."
22652 msgstr ""
22653
22654 #. type: =item
22655 #: ../resize/virt-resize.pod:450
22656 msgid "B<--resize-force part=size>"
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../resize/virt-resize.pod:452
22661 msgid ""
22662 "This is the same as I<--resize> except that it will let you decrease the "
22663 "size of any partition.  Generally this means you will lose any data which "
22664 "was at the end of the partition you shrink, but you may not care about that "
22665 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22666 "as a swap partition)."
22667 msgstr ""
22668
22669 #. type: textblock
22670 #: ../resize/virt-resize.pod:458
22671 msgid "See also the I<--ignore> option."
22672 msgstr ""
22673
22674 #. type: =item
22675 #: ../resize/virt-resize.pod:460
22676 #, fuzzy
22677 #| msgid "B<--partition>"
22678 msgid "B<--shrink part>"
22679 msgstr "B<--partition>"
22680
22681 #. type: textblock
22682 #: ../resize/virt-resize.pod:462
22683 msgid ""
22684 "Shrink the named partition until the overall disk image fits in the "
22685 "destination.  The named partition B<must> contain a filesystem or PV which "
22686 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22687 "online tools).  Virt-resize will check this and give an error if it has not "
22688 "been done."
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../resize/virt-resize.pod:468
22693 msgid ""
22694 "The amount by which the overall disk must be shrunk (after carrying out all "
22695 "other operations requested by the user) is called the \"deficit\".  For "
22696 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22697 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22698 "would give an error unless the user specified a partition to shrink and that "
22699 "partition had more than a gigabyte of free space."
22700 msgstr ""
22701
22702 #. type: =head2
22703 #: ../resize/virt-resize.pod:488
22704 msgid "\"Partition 1 does not end on cylinder boundary.\""
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../resize/virt-resize.pod:490
22709 msgid ""
22710 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22711 "means the partitions will not be aligned to the ancient CHS geometry.  "
22712 "However CHS geometry is meaningless for disks manufactured since the early "
22713 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22714 "cylinders is not required by any modern operating system."
22715 msgstr ""
22716
22717 #. type: =head2
22718 #: ../resize/virt-resize.pod:497
22719 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22720 msgstr ""
22721
22722 #. type: textblock
22723 #: ../resize/virt-resize.pod:499
22724 msgid ""
22725 "In Windows Vista and later versions, Microsoft switched to using a separate "
22726 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22727 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22728 "the boot partition.  Doing so seems to break the guest completely.  However "
22729 "expanding the second partition (ie. C: drive) should work."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../resize/virt-resize.pod:506
22734 msgid ""
22735 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22736 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22737 "it find errors) is nothing to worry about."
22738 msgstr ""
22739
22740 #. type: =head2
22741 #: ../resize/virt-resize.pod:510
22742 msgid "GUEST BOOT STUCK AT \"GRUB\""
22743 msgstr ""
22744
22745 #. type: textblock
22746 #: ../resize/virt-resize.pod:512
22747 msgid ""
22748 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22749 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22750 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22751 "although we think is to do with partition alignment."
22752 msgstr ""
22753
22754 #. type: verbatim
22755 #: ../resize/virt-resize.pod:517
22756 #, no-wrap
22757 msgid ""
22758 " guestfish -i -a newdisk\n"
22759 " ><fs> cat /boot/grub/device.map\n"
22760 " # check the contents of this file are sensible or\n"
22761 " # edit the file if necessary\n"
22762 " ><fs> grub-install / /dev/vda\n"
22763 " ><fs> exit\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../resize/virt-resize.pod:524
22769 msgid ""
22770 "For more flexible guest reconfiguration, including if you need to specify "
22771 "other parameters to grub-install, use L<virt-rescue(1)>."
22772 msgstr ""
22773
22774 #. type: =head1
22775 #: ../resize/virt-resize.pod:527
22776 msgid "ALTERNATIVE TOOLS"
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../resize/virt-resize.pod:529
22781 msgid ""
22782 "There are several proprietary tools for resizing partitions.  We won't "
22783 "mention any here."
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../resize/virt-resize.pod:532
22788 msgid ""
22789 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22790 "operations on disk images.  They can resize and move partitions, but I don't "
22791 "think they can do anything with the contents, and they certainly don't "
22792 "understand LVM."
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../resize/virt-resize.pod:537
22797 msgid ""
22798 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22799 "but at a much lower level.  You will probably end up hand-calculating sector "
22800 "offsets, which is something that virt-resize was designed to avoid.  If you "
22801 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22802 "I<--debug> flag."
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../resize/virt-resize.pod:552
22807 msgid ""
22808 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22809 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22810 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22811 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../ruby/examples/guestfs-ruby.pod:5
22816 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22817 msgstr ""
22818
22819 #. type: verbatim
22820 #: ../ruby/examples/guestfs-ruby.pod:9
22821 #, no-wrap
22822 msgid ""
22823 " require 'guestfs'\n"
22824 " g = Guestfs::Guestfs.new()\n"
22825 " g.add_drive_opts(\"disk.img\",\n"
22826 "                  :readonly => 1, :format => \"raw\")\n"
22827 " g.launch()\n"
22828 "\n"
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../ruby/examples/guestfs-ruby.pod:17
22833 msgid ""
22834 "This manual page documents how to call libguestfs from the Ruby programming "
22835 "language.  This page just documents the differences from the C API and gives "
22836 "some examples.  If you are not familiar with using libguestfs, you also need "
22837 "to read L<guestfs(3)>."
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../ruby/examples/guestfs-ruby.pod:24
22842 msgid ""
22843 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22844 "This has a single parameter which is the error message (a string)."
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../ruby/examples/guestfs-ruby.pod:38
22849 #, fuzzy
22850 #| msgid ""
22851 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22852 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22853 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22854 msgid ""
22855 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22856 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22857 "libguestfs.org/>."
22858 msgstr ""
22859 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22860 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22861 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22862
22863 #. type: =head2
22864 #: ../src/guestfs-actions.pod:1
22865 msgid "guestfs_add_cdrom"
22866 msgstr ""
22867
22868 #. type: verbatim
22869 #: ../src/guestfs-actions.pod:3
22870 #, no-wrap
22871 msgid ""
22872 " int\n"
22873 " guestfs_add_cdrom (guestfs_h *g,\n"
22874 "                    const char *filename);\n"
22875 "\n"
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../src/guestfs-actions.pod:17
22880 msgid ""
22881 "This call checks for the existence of C<filename>.  This stops you from "
22882 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22883 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22884 "instead."
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../src/guestfs-actions.pod:24
22889 msgid ""
22890 "If you just want to add an ISO file (often you use this as an efficient way "
22891 "to transfer large files into the guest), then you should probably use "
22892 "C<guestfs_add_drive_ro> instead."
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
22897 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22898 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
22899 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22900 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
22901 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
22902 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
22903 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
22904 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
22905 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
22906 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
22907 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
22908 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
22909 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
22910 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
22911 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
22912 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
22913 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508
22914 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
22915 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
22916 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485
22917 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581
22918 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636
22919 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850
22920 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
22921 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
22922 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014
22923 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051
22924 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097
22925 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
22926 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205
22927 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253
22928 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282
22929 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314
22930 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427
22931 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491
22932 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527
22933 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557
22934 #: ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588
22935 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4623
22936 #: ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766
22937 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
22938 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
22939 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
22940 #: ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907
22941 #: ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4975
22942 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034
22943 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
22944 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5160
22945 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5250
22946 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302
22947 #: ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460
22948 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539
22949 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589
22950 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672
22951 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699
22952 #: ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007
22953 #: ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040
22954 #: ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066
22955 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092
22956 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129
22957 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167
22958 #: ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215
22959 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256
22960 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296
22961 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332
22962 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379
22963 #: ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422
22964 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465
22965 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499
22966 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6566
22967 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6721
22968 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854
22969 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880
22970 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915
22971 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941
22972 #: ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015
22973 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048
22974 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081
22975 #: ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114
22976 #: ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164
22977 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
22978 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270
22979 #: ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422
22980 #: ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451
22981 #: ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519
22982 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7597
22983 #: ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680
22984 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7773
22985 #: ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
22986 msgid "This function returns 0 on success or -1 on error."
22987 msgstr ""
22988
22989 #. type: textblock
22990 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
22991 #: ../src/guestfs-actions.pod:275
22992 msgid ""
22993 "This function is deprecated.  In new code, use the L</"
22994 "guestfs_add_drive_opts> call instead."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22999 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
23000 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
23001 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
23002 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
23003 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
23004 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
23005 #: ../src/guestfs-actions.pod:7606
23006 msgid "(Added in 0.3)"
23007 msgstr ""
23008
23009 #. type: =head2
23010 #: ../src/guestfs-actions.pod:41
23011 msgid "guestfs_add_domain"
23012 msgstr ""
23013
23014 #. type: verbatim
23015 #: ../src/guestfs-actions.pod:43
23016 #, no-wrap
23017 msgid ""
23018 " int\n"
23019 " guestfs_add_domain (guestfs_h *g,\n"
23020 "                     const char *dom,\n"
23021 "                     ...);\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23027 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
23028 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
23029 #: ../src/guestfs-actions.pod:5178
23030 msgid ""
23031 "You may supply a list of optional arguments to this call.  Use zero or more "
23032 "of the following pairs of parameters, and terminate the list with C<-1> on "
23033 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23034 msgstr ""
23035
23036 #. type: verbatim
23037 #: ../src/guestfs-actions.pod:53
23038 #, no-wrap
23039 msgid ""
23040 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23041 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23042 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23043 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23044 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23045 "\n"
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../src/guestfs-actions.pod:59
23050 msgid ""
23051 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23052 "It works by connecting to libvirt, requesting the domain and domain XML from "
23053 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23054 "one."
23055 msgstr ""
23056
23057 #. type: textblock
23058 #: ../src/guestfs-actions.pod:94
23059 msgid ""
23060 "The other optional parameters are passed directly through to "
23061 "C<guestfs_add_drive_opts>."
23062 msgstr ""
23063
23064 #. type: textblock
23065 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23066 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
23067 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
23068 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
23069 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
23070 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
23071 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
23072 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
23073 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
23074 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
23075 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
23076 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
23077 #: ../src/guestfs-actions.pod:7643
23078 msgid "On error this function returns -1."
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../src/guestfs-actions.pod:99
23083 msgid "(Added in 1.7.4)"
23084 msgstr ""
23085
23086 #. type: =head2
23087 #: ../src/guestfs-actions.pod:101
23088 msgid "guestfs_add_domain_va"
23089 msgstr ""
23090
23091 #. type: verbatim
23092 #: ../src/guestfs-actions.pod:103
23093 #, no-wrap
23094 msgid ""
23095 " int\n"
23096 " guestfs_add_domain_va (guestfs_h *g,\n"
23097 "                        const char *dom,\n"
23098 "                        va_list args);\n"
23099 "\n"
23100 msgstr ""
23101
23102 #. type: textblock
23103 #: ../src/guestfs-actions.pod:108
23104 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23109 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23110 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
23111 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
23112 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
23113 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
23114 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
23115 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23116 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23117
23118 #. type: =head2
23119 #: ../src/guestfs-actions.pod:112
23120 msgid "guestfs_add_domain_argv"
23121 msgstr "guestfs_add_domain_argv"
23122
23123 #. type: verbatim
23124 #: ../src/guestfs-actions.pod:114
23125 #, no-wrap
23126 msgid ""
23127 " int\n"
23128 " guestfs_add_domain_argv (guestfs_h *g,\n"
23129 "                          const char *dom,\n"
23130 "                          const struct guestfs_add_domain_argv *optargs);\n"
23131 "\n"
23132 msgstr ""
23133
23134 #. type: textblock
23135 #: ../src/guestfs-actions.pod:119
23136 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23137 msgstr ""
23138
23139 #. type: =head2
23140 #: ../src/guestfs-actions.pod:123
23141 msgid "guestfs_add_drive"
23142 msgstr ""
23143
23144 #. type: verbatim
23145 #: ../src/guestfs-actions.pod:125
23146 #, no-wrap
23147 msgid ""
23148 " int\n"
23149 " guestfs_add_drive (guestfs_h *g,\n"
23150 "                    const char *filename);\n"
23151 "\n"
23152 msgstr ""
23153
23154 #. type: textblock
23155 #: ../src/guestfs-actions.pod:129
23156 msgid ""
23157 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23158 "optional parameters, so the disk is added writable, with the format being "
23159 "detected automatically."
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../src/guestfs-actions.pod:133
23164 msgid ""
23165 "Automatic detection of the format opens you up to a potential security hole "
23166 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23167 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23168 "you should think about replacing calls to this function with calls to "
23169 "C<guestfs_add_drive_opts>, and specifying the format."
23170 msgstr ""
23171
23172 #. type: =head2
23173 #: ../src/guestfs-actions.pod:144
23174 msgid "guestfs_add_drive_opts"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../src/guestfs-actions.pod:146
23179 #, no-wrap
23180 msgid ""
23181 " int\n"
23182 " guestfs_add_drive_opts (guestfs_h *g,\n"
23183 "                         const char *filename,\n"
23184 "                         ...);\n"
23185 "\n"
23186 msgstr ""
23187
23188 #. type: verbatim
23189 #: ../src/guestfs-actions.pod:156
23190 #, no-wrap
23191 msgid ""
23192 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23193 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23194 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23195 "\n"
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../src/guestfs-actions.pod:185
23200 msgid ""
23201 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23202 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23203 "Possible formats include C<raw> and C<qcow2>."
23204 msgstr ""
23205
23206 #. type: textblock
23207 #: ../src/guestfs-actions.pod:196
23208 msgid ""
23209 "This rarely-used option lets you emulate the behaviour of the deprecated "
23210 "C<guestfs_add_drive_with_if> call (q.v.)"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../src/guestfs-actions.pod:203
23215 msgid "(Added in 1.5.23)"
23216 msgstr ""
23217
23218 #. type: =head2
23219 #: ../src/guestfs-actions.pod:205
23220 msgid "guestfs_add_drive_opts_va"
23221 msgstr ""
23222
23223 #. type: verbatim
23224 #: ../src/guestfs-actions.pod:207
23225 #, no-wrap
23226 msgid ""
23227 " int\n"
23228 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23229 "                            const char *filename,\n"
23230 "                            va_list args);\n"
23231 "\n"
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../src/guestfs-actions.pod:212
23236 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23237 msgstr ""
23238
23239 #. type: =head2
23240 #: ../src/guestfs-actions.pod:216
23241 msgid "guestfs_add_drive_opts_argv"
23242 msgstr ""
23243
23244 #. type: verbatim
23245 #: ../src/guestfs-actions.pod:218
23246 #, no-wrap
23247 msgid ""
23248 " int\n"
23249 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23250 "                              const char *filename,\n"
23251 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23252 "\n"
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../src/guestfs-actions.pod:223
23257 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23258 msgstr ""
23259
23260 #. type: =head2
23261 #: ../src/guestfs-actions.pod:227
23262 msgid "guestfs_add_drive_ro"
23263 msgstr ""
23264
23265 #. type: verbatim
23266 #: ../src/guestfs-actions.pod:229
23267 #, no-wrap
23268 msgid ""
23269 " int\n"
23270 " guestfs_add_drive_ro (guestfs_h *g,\n"
23271 "                       const char *filename);\n"
23272 "\n"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../src/guestfs-actions.pod:233
23277 msgid ""
23278 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23279 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23280 "disk is added read-only, with the format being detected automatically."
23281 msgstr ""
23282
23283 #. type: textblock
23284 #: ../src/guestfs-actions.pod:240
23285 msgid "(Added in 1.0.38)"
23286 msgstr ""
23287
23288 #. type: =head2
23289 #: ../src/guestfs-actions.pod:242
23290 msgid "guestfs_add_drive_ro_with_if"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../src/guestfs-actions.pod:244
23295 #, no-wrap
23296 msgid ""
23297 " int\n"
23298 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23299 "                               const char *filename,\n"
23300 "                               const char *iface);\n"
23301 "\n"
23302 msgstr ""
23303
23304 #. type: textblock
23305 #: ../src/guestfs-actions.pod:249
23306 msgid ""
23307 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23308 "QEMU interface emulation to use at run time."
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23313 #: ../src/guestfs-actions.pod:2431
23314 msgid "(Added in 1.0.84)"
23315 msgstr ""
23316
23317 #. type: =head2
23318 #: ../src/guestfs-actions.pod:263
23319 msgid "guestfs_add_drive_with_if"
23320 msgstr ""
23321
23322 #. type: verbatim
23323 #: ../src/guestfs-actions.pod:265
23324 #, no-wrap
23325 msgid ""
23326 " int\n"
23327 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23328 "                            const char *filename,\n"
23329 "                            const char *iface);\n"
23330 "\n"
23331 msgstr ""
23332
23333 #. type: textblock
23334 #: ../src/guestfs-actions.pod:270
23335 msgid ""
23336 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23337 "QEMU interface emulation to use at run time."
23338 msgstr ""
23339
23340 #. type: =head2
23341 #: ../src/guestfs-actions.pod:284
23342 msgid "guestfs_aug_clear"
23343 msgstr ""
23344
23345 #. type: verbatim
23346 #: ../src/guestfs-actions.pod:286
23347 #, no-wrap
23348 msgid ""
23349 " int\n"
23350 " guestfs_aug_clear (guestfs_h *g,\n"
23351 "                    const char *augpath);\n"
23352 "\n"
23353 msgstr ""
23354
23355 #. type: textblock
23356 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
23357 msgid "(Added in 1.3.4)"
23358 msgstr ""
23359
23360 #. type: =head2
23361 #: ../src/guestfs-actions.pod:297
23362 msgid "guestfs_aug_close"
23363 msgstr ""
23364
23365 #. type: verbatim
23366 #: ../src/guestfs-actions.pod:299
23367 #, no-wrap
23368 msgid ""
23369 " int\n"
23370 " guestfs_aug_close (guestfs_h *g);\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../src/guestfs-actions.pod:302
23376 msgid ""
23377 "Close the current Augeas handle and free up any resources used by it.  After "
23378 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23379 "any other Augeas functions."
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23384 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23385 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
23386 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
23387 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
23388 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
23389 #: ../src/guestfs-actions.pod:5846
23390 msgid "(Added in 0.7)"
23391 msgstr ""
23392
23393 #. type: =head2
23394 #: ../src/guestfs-actions.pod:311
23395 msgid "guestfs_aug_defnode"
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../src/guestfs-actions.pod:313
23400 #, no-wrap
23401 msgid ""
23402 " struct guestfs_int_bool *\n"
23403 " guestfs_aug_defnode (guestfs_h *g,\n"
23404 "                      const char *name,\n"
23405 "                      const char *expr,\n"
23406 "                      const char *val);\n"
23407 "\n"
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../src/guestfs-actions.pod:322
23412 msgid ""
23413 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23414 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23415 "containing that single node."
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../src/guestfs-actions.pod:330
23420 msgid ""
23421 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23422 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23423 msgstr ""
23424
23425 #. type: =head2
23426 #: ../src/guestfs-actions.pod:336
23427 msgid "guestfs_aug_defvar"
23428 msgstr ""
23429
23430 #. type: verbatim
23431 #: ../src/guestfs-actions.pod:338
23432 #, no-wrap
23433 msgid ""
23434 " int\n"
23435 " guestfs_aug_defvar (guestfs_h *g,\n"
23436 "                     const char *name,\n"
23437 "                     const char *expr);\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: =head2
23442 #: ../src/guestfs-actions.pod:354
23443 msgid "guestfs_aug_get"
23444 msgstr ""
23445
23446 #. type: verbatim
23447 #: ../src/guestfs-actions.pod:356
23448 #, no-wrap
23449 msgid ""
23450 " char *\n"
23451 " guestfs_aug_get (guestfs_h *g,\n"
23452 "                  const char *augpath);\n"
23453 "\n"
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
23458 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
23459 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
23460 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
23461 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
23462 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
23463 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
23464 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
23465 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2204
23466 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
23467 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
23468 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
23469 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
23470 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
23471 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
23472 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
23473 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
23474 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
23475 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
23476 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
23477 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6660
23478 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
23479 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
23480 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7878
23481 msgid ""
23482 "This function returns a string, or NULL on error.  I<The caller must free "
23483 "the returned string after use>."
23484 msgstr ""
23485
23486 #. type: =head2
23487 #: ../src/guestfs-actions.pod:368
23488 msgid "guestfs_aug_init"
23489 msgstr ""
23490
23491 #. type: verbatim
23492 #: ../src/guestfs-actions.pod:370
23493 #, no-wrap
23494 msgid ""
23495 " int\n"
23496 " guestfs_aug_init (guestfs_h *g,\n"
23497 "                   const char *root,\n"
23498 "                   int flags);\n"
23499 "\n"
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../src/guestfs-actions.pod:379
23504 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../src/guestfs-actions.pod:414
23509 msgid "Do not load the tree in C<guestfs_aug_init>."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:418
23514 msgid "To close the handle, you can call C<guestfs_aug_close>."
23515 msgstr ""
23516
23517 #. type: =head2
23518 #: ../src/guestfs-actions.pod:426
23519 msgid "guestfs_aug_insert"
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../src/guestfs-actions.pod:428
23524 #, no-wrap
23525 msgid ""
23526 " int\n"
23527 " guestfs_aug_insert (guestfs_h *g,\n"
23528 "                     const char *augpath,\n"
23529 "                     const char *label,\n"
23530 "                     int before);\n"
23531 "\n"
23532 msgstr ""
23533
23534 #. type: =head2
23535 #: ../src/guestfs-actions.pod:446
23536 msgid "guestfs_aug_load"
23537 msgstr ""
23538
23539 #. type: verbatim
23540 #: ../src/guestfs-actions.pod:448
23541 #, no-wrap
23542 msgid ""
23543 " int\n"
23544 " guestfs_aug_load (guestfs_h *g);\n"
23545 "\n"
23546 msgstr ""
23547
23548 #. type: =head2
23549 #: ../src/guestfs-actions.pod:460
23550 msgid "guestfs_aug_ls"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../src/guestfs-actions.pod:462
23555 #, no-wrap
23556 msgid ""
23557 " char **\n"
23558 " guestfs_aug_ls (guestfs_h *g,\n"
23559 "                 const char *augpath);\n"
23560 "\n"
23561 msgstr ""
23562
23563 #. type: textblock
23564 #: ../src/guestfs-actions.pod:466
23565 msgid ""
23566 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23567 "sorting the resulting nodes into alphabetical order."
23568 msgstr ""
23569
23570 #. type: textblock
23571 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
23572 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
23573 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
23574 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
23575 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
23576 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
23577 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
23578 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
23579 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
23580 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
23581 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
23582 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
23583 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
23584 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
23585 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
23586 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
23587 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
23588 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
23589 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
23590 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
23591 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
23592 #: ../src/guestfs-actions.pod:7919
23593 msgid ""
23594 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23595 ">), or NULL if there was an error.  I<The caller must free the strings and "
23596 "the array after use>."
23597 msgstr ""
23598
23599 #. type: textblock
23600 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
23601 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
23602 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
23603 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
23604 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
23605 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
23606 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
23607 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
23608 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
23609 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
23610 #: ../src/guestfs-actions.pod:7718
23611 msgid "(Added in 0.8)"
23612 msgstr ""
23613
23614 #. type: =head2
23615 #: ../src/guestfs-actions.pod:475
23616 msgid "guestfs_aug_match"
23617 msgstr ""
23618
23619 #. type: verbatim
23620 #: ../src/guestfs-actions.pod:477
23621 #, no-wrap
23622 msgid ""
23623 " char **\n"
23624 " guestfs_aug_match (guestfs_h *g,\n"
23625 "                    const char *augpath);\n"
23626 "\n"
23627 msgstr ""
23628
23629 #. type: =head2
23630 #: ../src/guestfs-actions.pod:491
23631 msgid "guestfs_aug_mv"
23632 msgstr ""
23633
23634 #. type: verbatim
23635 #: ../src/guestfs-actions.pod:493
23636 #, no-wrap
23637 msgid ""
23638 " int\n"
23639 " guestfs_aug_mv (guestfs_h *g,\n"
23640 "                 const char *src,\n"
23641 "                 const char *dest);\n"
23642 "\n"
23643 msgstr ""
23644
23645 #. type: =head2
23646 #: ../src/guestfs-actions.pod:505
23647 msgid "guestfs_aug_rm"
23648 msgstr ""
23649
23650 #. type: verbatim
23651 #: ../src/guestfs-actions.pod:507
23652 #, no-wrap
23653 msgid ""
23654 " int\n"
23655 " guestfs_aug_rm (guestfs_h *g,\n"
23656 "                 const char *augpath);\n"
23657 "\n"
23658 msgstr ""
23659
23660 #. type: =head2
23661 #: ../src/guestfs-actions.pod:519
23662 msgid "guestfs_aug_save"
23663 msgstr ""
23664
23665 #. type: verbatim
23666 #: ../src/guestfs-actions.pod:521
23667 #, no-wrap
23668 msgid ""
23669 " int\n"
23670 " guestfs_aug_save (guestfs_h *g);\n"
23671 "\n"
23672 msgstr ""
23673
23674 #. type: textblock
23675 #: ../src/guestfs-actions.pod:526
23676 msgid ""
23677 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23678 "are saved."
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../src/guestfs-actions.pod:533
23683 msgid "guestfs_aug_set"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../src/guestfs-actions.pod:535
23688 #, no-wrap
23689 msgid ""
23690 " int\n"
23691 " guestfs_aug_set (guestfs_h *g,\n"
23692 "                  const char *augpath,\n"
23693 "                  const char *val);\n"
23694 "\n"
23695 msgstr ""
23696
23697 #. type: textblock
23698 #: ../src/guestfs-actions.pod:542
23699 msgid ""
23700 "In the Augeas API, it is possible to clear a node by setting the value to "
23701 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23702 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23703 msgstr ""
23704
23705 #. type: =head2
23706 #: ../src/guestfs-actions.pod:551
23707 msgid "guestfs_available"
23708 msgstr ""
23709
23710 #. type: verbatim
23711 #: ../src/guestfs-actions.pod:553
23712 #, no-wrap
23713 msgid ""
23714 " int\n"
23715 " guestfs_available (guestfs_h *g,\n"
23716 "                    char *const *groups);\n"
23717 "\n"
23718 msgstr ""
23719
23720 #. type: textblock
23721 #: ../src/guestfs-actions.pod:561
23722 msgid ""
23723 "The libguestfs groups, and the functions that those groups correspond to, "
23724 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23725 "runtime by calling C<guestfs_available_all_groups>."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../src/guestfs-actions.pod:585
23730 msgid "You must call C<guestfs_launch> before calling this function."
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../src/guestfs-actions.pod:607
23735 msgid ""
23736 "This call was added in version C<1.0.80>.  In previous versions of "
23737 "libguestfs all you could do would be to speculatively execute a command to "
23738 "find out if the daemon implemented it.  See also C<guestfs_version>."
23739 msgstr ""
23740
23741 #. type: textblock
23742 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
23743 msgid "(Added in 1.0.80)"
23744 msgstr ""
23745
23746 #. type: =head2
23747 #: ../src/guestfs-actions.pod:618
23748 msgid "guestfs_available_all_groups"
23749 msgstr ""
23750
23751 #. type: verbatim
23752 #: ../src/guestfs-actions.pod:620
23753 #, no-wrap
23754 msgid ""
23755 " char **\n"
23756 " guestfs_available_all_groups (guestfs_h *g);\n"
23757 "\n"
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../src/guestfs-actions.pod:623
23762 msgid ""
23763 "This command returns a list of all optional groups that this daemon knows "
23764 "about.  Note this returns both supported and unsupported groups.  To find "
23765 "out which ones the daemon can actually support you have to call "
23766 "C<guestfs_available> on each member of the returned list."
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../src/guestfs-actions.pod:629
23771 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../src/guestfs-actions.pod:635
23776 msgid "(Added in 1.3.15)"
23777 msgstr ""
23778
23779 #. type: =head2
23780 #: ../src/guestfs-actions.pod:637
23781 msgid "guestfs_base64_in"
23782 msgstr ""
23783
23784 #. type: verbatim
23785 #: ../src/guestfs-actions.pod:639
23786 #, no-wrap
23787 msgid ""
23788 " int\n"
23789 " guestfs_base64_in (guestfs_h *g,\n"
23790 "                    const char *base64file,\n"
23791 "                    const char *filename);\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
23797 msgid "(Added in 1.3.5)"
23798 msgstr ""
23799
23800 #. type: =head2
23801 #: ../src/guestfs-actions.pod:651
23802 msgid "guestfs_base64_out"
23803 msgstr ""
23804
23805 #. type: verbatim
23806 #: ../src/guestfs-actions.pod:653
23807 #, no-wrap
23808 msgid ""
23809 " int\n"
23810 " guestfs_base64_out (guestfs_h *g,\n"
23811 "                     const char *filename,\n"
23812 "                     const char *base64file);\n"
23813 "\n"
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../src/guestfs-actions.pod:665
23818 msgid "guestfs_blockdev_flushbufs"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../src/guestfs-actions.pod:667
23823 #, no-wrap
23824 msgid ""
23825 " int\n"
23826 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23827 "                             const char *device);\n"
23828 "\n"
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
23833 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
23834 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
23835 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
23836 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
23837 msgid "(Added in 0.9.3)"
23838 msgstr ""
23839
23840 #. type: =head2
23841 #: ../src/guestfs-actions.pod:680
23842 msgid "guestfs_blockdev_getbsz"
23843 msgstr ""
23844
23845 #. type: verbatim
23846 #: ../src/guestfs-actions.pod:682
23847 #, no-wrap
23848 msgid ""
23849 " int\n"
23850 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23851 "                          const char *device);\n"
23852 "\n"
23853 msgstr ""
23854
23855 #. type: =head2
23856 #: ../src/guestfs-actions.pod:697
23857 msgid "guestfs_blockdev_getro"
23858 msgstr ""
23859
23860 #. type: verbatim
23861 #: ../src/guestfs-actions.pod:699
23862 #, no-wrap
23863 msgid ""
23864 " int\n"
23865 " guestfs_blockdev_getro (guestfs_h *g,\n"
23866 "                         const char *device);\n"
23867 "\n"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
23872 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
23873 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
23874 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
23875 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
23876 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
23877 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
23878 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
23879 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
23880 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
23881 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
23882 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
23883 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
23884 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
23885 #: ../src/guestfs-actions.pod:5339
23886 msgid "This function returns a C truth value on success or -1 on error."
23887 msgstr ""
23888
23889 #. type: =head2
23890 #: ../src/guestfs-actions.pod:712
23891 msgid "guestfs_blockdev_getsize64"
23892 msgstr ""
23893
23894 #. type: verbatim
23895 #: ../src/guestfs-actions.pod:714
23896 #, no-wrap
23897 msgid ""
23898 " int64_t\n"
23899 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23900 "                             const char *device);\n"
23901 "\n"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../src/guestfs-actions.pod:720
23906 msgid "See also C<guestfs_blockdev_getsz>."
23907 msgstr ""
23908
23909 #. type: =head2
23910 #: ../src/guestfs-actions.pod:728
23911 msgid "guestfs_blockdev_getss"
23912 msgstr ""
23913
23914 #. type: verbatim
23915 #: ../src/guestfs-actions.pod:730
23916 #, no-wrap
23917 msgid ""
23918 " int\n"
23919 " guestfs_blockdev_getss (guestfs_h *g,\n"
23920 "                         const char *device);\n"
23921 "\n"
23922 msgstr ""
23923
23924 #. type: textblock
23925 #: ../src/guestfs-actions.pod:737
23926 msgid ""
23927 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23928 "that)."
23929 msgstr ""
23930
23931 #. type: =head2
23932 #: ../src/guestfs-actions.pod:746
23933 msgid "guestfs_blockdev_getsz"
23934 msgstr ""
23935
23936 #. type: verbatim
23937 #: ../src/guestfs-actions.pod:748
23938 #, no-wrap
23939 msgid ""
23940 " int64_t\n"
23941 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23942 "                         const char *device);\n"
23943 "\n"
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../src/guestfs-actions.pod:755
23948 msgid ""
23949 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23950 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23951 msgstr ""
23952
23953 #. type: =head2
23954 #: ../src/guestfs-actions.pod:765
23955 msgid "guestfs_blockdev_rereadpt"
23956 msgstr ""
23957
23958 #. type: verbatim
23959 #: ../src/guestfs-actions.pod:767
23960 #, no-wrap
23961 msgid ""
23962 " int\n"
23963 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23964 "                            const char *device);\n"
23965 "\n"
23966 msgstr ""
23967
23968 #. type: =head2
23969 #: ../src/guestfs-actions.pod:779
23970 msgid "guestfs_blockdev_setbsz"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../src/guestfs-actions.pod:781
23975 #, no-wrap
23976 msgid ""
23977 " int\n"
23978 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23979 "                          const char *device,\n"
23980 "                          int blocksize);\n"
23981 "\n"
23982 msgstr ""
23983
23984 #. type: =head2
23985 #: ../src/guestfs-actions.pod:797
23986 msgid "guestfs_blockdev_setro"
23987 msgstr ""
23988
23989 #. type: verbatim
23990 #: ../src/guestfs-actions.pod:799
23991 #, no-wrap
23992 msgid ""
23993 " int\n"
23994 " guestfs_blockdev_setro (guestfs_h *g,\n"
23995 "                         const char *device);\n"
23996 "\n"
23997 msgstr ""
23998
23999 #. type: =head2
24000 #: ../src/guestfs-actions.pod:811
24001 msgid "guestfs_blockdev_setrw"
24002 msgstr ""
24003
24004 #. type: verbatim
24005 #: ../src/guestfs-actions.pod:813
24006 #, no-wrap
24007 msgid ""
24008 " int\n"
24009 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24010 "                         const char *device);\n"
24011 "\n"
24012 msgstr ""
24013
24014 #. type: =head2
24015 #: ../src/guestfs-actions.pod:825
24016 msgid "guestfs_btrfs_filesystem_resize"
24017 msgstr ""
24018
24019 #. type: verbatim
24020 #: ../src/guestfs-actions.pod:827
24021 #, no-wrap
24022 msgid ""
24023 " int\n"
24024 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24025 "                                  const char *mountpoint,\n"
24026 "                                  ...);\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../src/guestfs-actions.pod:837
24032 #, no-wrap
24033 msgid ""
24034 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24035 "\n"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../src/guestfs-actions.pod:860
24040 msgid "(Added in 1.11.17)"
24041 msgstr ""
24042
24043 #. type: =head2
24044 #: ../src/guestfs-actions.pod:862
24045 msgid "guestfs_btrfs_filesystem_resize_va"
24046 msgstr ""
24047
24048 #. type: verbatim
24049 #: ../src/guestfs-actions.pod:864
24050 #, no-wrap
24051 msgid ""
24052 " int\n"
24053 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24054 "                                     const char *mountpoint,\n"
24055 "                                     va_list args);\n"
24056 "\n"
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../src/guestfs-actions.pod:869
24061 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24062 msgstr ""
24063
24064 #. type: =head2
24065 #: ../src/guestfs-actions.pod:873
24066 msgid "guestfs_btrfs_filesystem_resize_argv"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../src/guestfs-actions.pod:875
24071 #, no-wrap
24072 msgid ""
24073 " int\n"
24074 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24075 "                                       const char *mountpoint,\n"
24076 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24077 "\n"
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../src/guestfs-actions.pod:880
24082 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24083 msgstr ""
24084
24085 #. type: =head2
24086 #: ../src/guestfs-actions.pod:884
24087 msgid "guestfs_case_sensitive_path"
24088 msgstr ""
24089
24090 #. type: verbatim
24091 #: ../src/guestfs-actions.pod:886
24092 #, no-wrap
24093 msgid ""
24094 " char *\n"
24095 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24096 "                              const char *path);\n"
24097 "\n"
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../src/guestfs-actions.pod:912
24102 msgid ""
24103 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24104 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24105 "how the directories were originally created under Windows)."
24106 msgstr ""
24107
24108 #. type: textblock
24109 #: ../src/guestfs-actions.pod:920
24110 msgid "See also C<guestfs_realpath>."
24111 msgstr ""
24112
24113 #. type: textblock
24114 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
24115 msgid "(Added in 1.0.75)"
24116 msgstr ""
24117
24118 #. type: =head2
24119 #: ../src/guestfs-actions.pod:927
24120 msgid "guestfs_cat"
24121 msgstr ""
24122
24123 #. type: verbatim
24124 #: ../src/guestfs-actions.pod:929
24125 #, no-wrap
24126 msgid ""
24127 " char *\n"
24128 " guestfs_cat (guestfs_h *g,\n"
24129 "              const char *path);\n"
24130 "\n"
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../src/guestfs-actions.pod:935
24135 msgid ""
24136 "Note that this function cannot correctly handle binary files (specifically, "
24137 "files containing C<\\0> character which is treated as end of string).  For "
24138 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24139 "functions which have a more complex interface."
24140 msgstr ""
24141
24142 #. type: textblock
24143 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
24144 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
24145 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
24146 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
24147 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
24148 #: ../src/guestfs-actions.pod:7554
24149 msgid "(Added in 0.4)"
24150 msgstr ""
24151
24152 #. type: =head2
24153 #: ../src/guestfs-actions.pod:948
24154 msgid "guestfs_checksum"
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../src/guestfs-actions.pod:950
24159 #, no-wrap
24160 msgid ""
24161 " char *\n"
24162 " guestfs_checksum (guestfs_h *g,\n"
24163 "                   const char *csumtype,\n"
24164 "                   const char *path);\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../src/guestfs-actions.pod:996
24170 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../src/guestfs-actions.pod:998
24175 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
24180 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
24181 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
24182 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
24183 msgid "(Added in 1.0.2)"
24184 msgstr ""
24185
24186 #. type: =head2
24187 #: ../src/guestfs-actions.pod:1005
24188 msgid "guestfs_checksum_device"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../src/guestfs-actions.pod:1007
24193 #, no-wrap
24194 msgid ""
24195 " char *\n"
24196 " guestfs_checksum_device (guestfs_h *g,\n"
24197 "                          const char *csumtype,\n"
24198 "                          const char *device);\n"
24199 "\n"
24200 msgstr ""
24201
24202 #. type: textblock
24203 #: ../src/guestfs-actions.pod:1012
24204 msgid ""
24205 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24206 "device named C<device>.  For the types of checksums supported see the "
24207 "C<guestfs_checksum> command."
24208 msgstr ""
24209
24210 #. type: textblock
24211 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
24212 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
24213 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
24214 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
24215 #: ../src/guestfs-actions.pod:7566
24216 msgid "(Added in 1.3.2)"
24217 msgstr ""
24218
24219 #. type: =head2
24220 #: ../src/guestfs-actions.pod:1021
24221 msgid "guestfs_checksums_out"
24222 msgstr ""
24223
24224 #. type: verbatim
24225 #: ../src/guestfs-actions.pod:1023
24226 #, no-wrap
24227 msgid ""
24228 " int\n"
24229 " guestfs_checksums_out (guestfs_h *g,\n"
24230 "                        const char *csumtype,\n"
24231 "                        const char *directory,\n"
24232 "                        const char *sumsfile);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:1043
24238 msgid "(Added in 1.3.7)"
24239 msgstr ""
24240
24241 #. type: =head2
24242 #: ../src/guestfs-actions.pod:1045
24243 msgid "guestfs_chmod"
24244 msgstr ""
24245
24246 #. type: verbatim
24247 #: ../src/guestfs-actions.pod:1047
24248 #, no-wrap
24249 msgid ""
24250 " int\n"
24251 " guestfs_chmod (guestfs_h *g,\n"
24252 "                int mode,\n"
24253 "                const char *path);\n"
24254 "\n"
24255 msgstr ""
24256
24257 #. type: =head2
24258 #: ../src/guestfs-actions.pod:1065
24259 msgid "guestfs_chown"
24260 msgstr ""
24261
24262 #. type: verbatim
24263 #: ../src/guestfs-actions.pod:1067
24264 #, no-wrap
24265 msgid ""
24266 " int\n"
24267 " guestfs_chown (guestfs_h *g,\n"
24268 "                int owner,\n"
24269 "                int group,\n"
24270 "                const char *path);\n"
24271 "\n"
24272 msgstr ""
24273
24274 #. type: =head2
24275 #: ../src/guestfs-actions.pod:1083
24276 msgid "guestfs_command"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../src/guestfs-actions.pod:1085
24281 #, no-wrap
24282 msgid ""
24283 " char *\n"
24284 " guestfs_command (guestfs_h *g,\n"
24285 "                  char *const *arguments);\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../src/guestfs-actions.pod:1094
24291 msgid ""
24292 "The single parameter is an argv-style list of arguments.  The first element "
24293 "is the name of the program to run.  Subsequent elements are parameters.  The "
24294 "list must be non-empty (ie. must contain a program name).  Note that the "
24295 "command runs directly, and is I<not> invoked via the shell (see "
24296 "C<guestfs_sh>)."
24297 msgstr ""
24298
24299 #. type: textblock
24300 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
24301 #: ../src/guestfs-actions.pod:1610
24302 msgid "(Added in 0.9.1)"
24303 msgstr ""
24304
24305 #. type: =head2
24306 #: ../src/guestfs-actions.pod:1127
24307 msgid "guestfs_command_lines"
24308 msgstr ""
24309
24310 #. type: verbatim
24311 #: ../src/guestfs-actions.pod:1129
24312 #, no-wrap
24313 msgid ""
24314 " char **\n"
24315 " guestfs_command_lines (guestfs_h *g,\n"
24316 "                        char *const *arguments);\n"
24317 "\n"
24318 msgstr ""
24319
24320 #. type: textblock
24321 #: ../src/guestfs-actions.pod:1133
24322 msgid ""
24323 "This is the same as C<guestfs_command>, but splits the result into a list of "
24324 "lines."
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../src/guestfs-actions.pod:1136
24329 msgid "See also: C<guestfs_sh_lines>"
24330 msgstr ""
24331
24332 #. type: =head2
24333 #: ../src/guestfs-actions.pod:1147
24334 msgid "guestfs_config"
24335 msgstr ""
24336
24337 #. type: verbatim
24338 #: ../src/guestfs-actions.pod:1149
24339 #, no-wrap
24340 msgid ""
24341 " int\n"
24342 " guestfs_config (guestfs_h *g,\n"
24343 "                 const char *qemuparam,\n"
24344 "                 const char *qemuvalue);\n"
24345 "\n"
24346 msgstr ""
24347
24348 #. type: =head2
24349 #: ../src/guestfs-actions.pod:1167
24350 msgid "guestfs_copy_size"
24351 msgstr ""
24352
24353 #. type: verbatim
24354 #: ../src/guestfs-actions.pod:1169
24355 #, no-wrap
24356 msgid ""
24357 " int\n"
24358 " guestfs_copy_size (guestfs_h *g,\n"
24359 "                    const char *src,\n"
24360 "                    const char *dest,\n"
24361 "                    int64_t size);\n"
24362 "\n"
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
24367 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
24368 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
24369 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
24370 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
24371 #: ../src/guestfs-actions.pod:7794
24372 msgid ""
24373 "This long-running command can generate progress notification messages so "
24374 "that the caller can display a progress bar or indicator.  To receive these "
24375 "messages, the caller must register a progress event callback.  See L<guestfs"
24376 "(3)/GUESTFS_EVENT_PROGRESS>."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
24381 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
24382 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
24383 msgid "(Added in 1.0.87)"
24384 msgstr ""
24385
24386 #. type: =head2
24387 #: ../src/guestfs-actions.pod:1190
24388 msgid "guestfs_cp"
24389 msgstr ""
24390
24391 #. type: verbatim
24392 #: ../src/guestfs-actions.pod:1192
24393 #, no-wrap
24394 msgid ""
24395 " int\n"
24396 " guestfs_cp (guestfs_h *g,\n"
24397 "             const char *src,\n"
24398 "             const char *dest);\n"
24399 "\n"
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
24404 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
24405 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
24406 #: ../src/guestfs-actions.pod:5591
24407 msgid "(Added in 1.0.18)"
24408 msgstr ""
24409
24410 #. type: =head2
24411 #: ../src/guestfs-actions.pod:1204
24412 msgid "guestfs_cp_a"
24413 msgstr ""
24414
24415 #. type: verbatim
24416 #: ../src/guestfs-actions.pod:1206
24417 #, no-wrap
24418 msgid ""
24419 " int\n"
24420 " guestfs_cp_a (guestfs_h *g,\n"
24421 "               const char *src,\n"
24422 "               const char *dest);\n"
24423 "\n"
24424 msgstr ""
24425
24426 #. type: =head2
24427 #: ../src/guestfs-actions.pod:1218
24428 msgid "guestfs_dd"
24429 msgstr ""
24430
24431 #. type: verbatim
24432 #: ../src/guestfs-actions.pod:1220
24433 #, no-wrap
24434 msgid ""
24435 " int\n"
24436 " guestfs_dd (guestfs_h *g,\n"
24437 "             const char *src,\n"
24438 "             const char *dest);\n"
24439 "\n"
24440 msgstr ""
24441
24442 #. type: textblock
24443 #: ../src/guestfs-actions.pod:1230
24444 msgid ""
24445 "If the destination is a device, it must be as large or larger than the "
24446 "source file or device, otherwise the copy will fail.  This command cannot do "
24447 "partial copies (see C<guestfs_copy_size>)."
24448 msgstr ""
24449
24450 #. type: =head2
24451 #: ../src/guestfs-actions.pod:1238
24452 msgid "guestfs_df"
24453 msgstr ""
24454
24455 #. type: verbatim
24456 #: ../src/guestfs-actions.pod:1240
24457 #, no-wrap
24458 msgid ""
24459 " char *\n"
24460 " guestfs_df (guestfs_h *g);\n"
24461 "\n"
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
24466 msgid ""
24467 "This command is mostly useful for interactive sessions.  It is I<not> "
24468 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24469 "from programs."
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
24474 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
24475 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
24476 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
24477 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
24478 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
24479 #: ../src/guestfs-actions.pod:7645
24480 msgid "(Added in 1.0.54)"
24481 msgstr ""
24482
24483 #. type: =head2
24484 #: ../src/guestfs-actions.pod:1254
24485 msgid "guestfs_df_h"
24486 msgstr ""
24487
24488 #. type: verbatim
24489 #: ../src/guestfs-actions.pod:1256
24490 #, no-wrap
24491 msgid ""
24492 " char *\n"
24493 " guestfs_df_h (guestfs_h *g);\n"
24494 "\n"
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../src/guestfs-actions.pod:1271
24499 msgid "guestfs_dmesg"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../src/guestfs-actions.pod:1273
24504 #, no-wrap
24505 msgid ""
24506 " char *\n"
24507 " guestfs_dmesg (guestfs_h *g);\n"
24508 "\n"
24509 msgstr ""
24510
24511 #. type: textblock
24512 #: ../src/guestfs-actions.pod:1280
24513 msgid ""
24514 "Another way to get the same information is to enable verbose messages with "
24515 "C<guestfs_set_verbose> or by setting the environment variable "
24516 "C<LIBGUESTFS_DEBUG=1> before running the program."
24517 msgstr ""
24518
24519 #. type: =head2
24520 #: ../src/guestfs-actions.pod:1290
24521 msgid "guestfs_download"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../src/guestfs-actions.pod:1292
24526 #, no-wrap
24527 msgid ""
24528 " int\n"
24529 " guestfs_download (guestfs_h *g,\n"
24530 "                   const char *remotefilename,\n"
24531 "                   const char *filename);\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: textblock
24536 #: ../src/guestfs-actions.pod:1302
24537 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:1313
24542 msgid "guestfs_download_offset"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:1315
24547 #, no-wrap
24548 msgid ""
24549 " int\n"
24550 " guestfs_download_offset (guestfs_h *g,\n"
24551 "                          const char *remotefilename,\n"
24552 "                          const char *filename,\n"
24553 "                          int64_t offset,\n"
24554 "                          int64_t size);\n"
24555 "\n"
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../src/guestfs-actions.pod:1328
24560 msgid ""
24561 "Note that there is no limit on the amount of data that can be downloaded "
24562 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24563 "full amount unless an error occurs."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../src/guestfs-actions.pod:1333
24568 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
24573 msgid "(Added in 1.5.17)"
24574 msgstr ""
24575
24576 #. type: =head2
24577 #: ../src/guestfs-actions.pod:1344
24578 msgid "guestfs_drop_caches"
24579 msgstr ""
24580
24581 #. type: verbatim
24582 #: ../src/guestfs-actions.pod:1346
24583 #, no-wrap
24584 msgid ""
24585 " int\n"
24586 " guestfs_drop_caches (guestfs_h *g,\n"
24587 "                      int whattodrop);\n"
24588 "\n"
24589 msgstr ""
24590
24591 #. type: =head2
24592 #: ../src/guestfs-actions.pod:1364
24593 msgid "guestfs_du"
24594 msgstr ""
24595
24596 #. type: verbatim
24597 #: ../src/guestfs-actions.pod:1366
24598 #, no-wrap
24599 msgid ""
24600 " int64_t\n"
24601 " guestfs_du (guestfs_h *g,\n"
24602 "             const char *path);\n"
24603 "\n"
24604 msgstr ""
24605
24606 #. type: =head2
24607 #: ../src/guestfs-actions.pod:1389
24608 msgid "guestfs_e2fsck_f"
24609 msgstr ""
24610
24611 #. type: verbatim
24612 #: ../src/guestfs-actions.pod:1391
24613 #, no-wrap
24614 msgid ""
24615 " int\n"
24616 " guestfs_e2fsck_f (guestfs_h *g,\n"
24617 "                   const char *device);\n"
24618 "\n"
24619 msgstr ""
24620
24621 #. type: textblock
24622 #: ../src/guestfs-actions.pod:1399
24623 msgid ""
24624 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24625 "Normally you should use C<guestfs_fsck>."
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../src/guestfs-actions.pod:1404
24630 msgid "(Added in 1.0.29)"
24631 msgstr ""
24632
24633 #. type: =head2
24634 #: ../src/guestfs-actions.pod:1406
24635 msgid "guestfs_echo_daemon"
24636 msgstr ""
24637
24638 #. type: verbatim
24639 #: ../src/guestfs-actions.pod:1408
24640 #, no-wrap
24641 msgid ""
24642 " char *\n"
24643 " guestfs_echo_daemon (guestfs_h *g,\n"
24644 "                      char *const *words);\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../src/guestfs-actions.pod:1417
24650 msgid "See also C<guestfs_ping_daemon>."
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
24655 #: ../src/guestfs-actions.pod:6448
24656 msgid "(Added in 1.0.69)"
24657 msgstr ""
24658
24659 #. type: =head2
24660 #: ../src/guestfs-actions.pod:1424
24661 msgid "guestfs_egrep"
24662 msgstr ""
24663
24664 #. type: verbatim
24665 #: ../src/guestfs-actions.pod:1426
24666 #, no-wrap
24667 msgid ""
24668 " char **\n"
24669 " guestfs_egrep (guestfs_h *g,\n"
24670 "                const char *regex,\n"
24671 "                const char *path);\n"
24672 "\n"
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
24677 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
24678 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
24679 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
24680 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
24681 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
24682 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
24683 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
24684 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
24685 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
24686 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
24687 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
24688 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
24689 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
24690 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
24691 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
24692 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
24693 msgid "(Added in 1.0.66)"
24694 msgstr ""
24695
24696 #. type: =head2
24697 #: ../src/guestfs-actions.pod:1443
24698 msgid "guestfs_egrepi"
24699 msgstr ""
24700
24701 #. type: verbatim
24702 #: ../src/guestfs-actions.pod:1445
24703 #, no-wrap
24704 msgid ""
24705 " char **\n"
24706 " guestfs_egrepi (guestfs_h *g,\n"
24707 "                 const char *regex,\n"
24708 "                 const char *path);\n"
24709 "\n"
24710 msgstr ""
24711
24712 #. type: =head2
24713 #: ../src/guestfs-actions.pod:1462
24714 msgid "guestfs_equal"
24715 msgstr ""
24716
24717 #. type: verbatim
24718 #: ../src/guestfs-actions.pod:1464
24719 #, no-wrap
24720 msgid ""
24721 " int\n"
24722 " guestfs_equal (guestfs_h *g,\n"
24723 "                const char *file1,\n"
24724 "                const char *file2);\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: =head2
24729 #: ../src/guestfs-actions.pod:1478
24730 msgid "guestfs_exists"
24731 msgstr ""
24732
24733 #. type: verbatim
24734 #: ../src/guestfs-actions.pod:1480
24735 #, no-wrap
24736 msgid ""
24737 " int\n"
24738 " guestfs_exists (guestfs_h *g,\n"
24739 "                 const char *path);\n"
24740 "\n"
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../src/guestfs-actions.pod:1487
24745 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24746 msgstr ""
24747
24748 #. type: =head2
24749 #: ../src/guestfs-actions.pod:1493
24750 msgid "guestfs_fallocate"
24751 msgstr ""
24752
24753 #. type: verbatim
24754 #: ../src/guestfs-actions.pod:1495
24755 #, no-wrap
24756 msgid ""
24757 " int\n"
24758 " guestfs_fallocate (guestfs_h *g,\n"
24759 "                    const char *path,\n"
24760 "                    int len);\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: textblock
24765 #: ../src/guestfs-actions.pod:1510
24766 msgid ""
24767 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
24768 "call instead."
24769 msgstr ""
24770
24771 #. type: =head2
24772 #: ../src/guestfs-actions.pod:1519
24773 msgid "guestfs_fallocate64"
24774 msgstr ""
24775
24776 #. type: verbatim
24777 #: ../src/guestfs-actions.pod:1521
24778 #, no-wrap
24779 msgid ""
24780 " int\n"
24781 " guestfs_fallocate64 (guestfs_h *g,\n"
24782 "                      const char *path,\n"
24783 "                      int64_t len);\n"
24784 "\n"
24785 msgstr ""
24786
24787 #. type: textblock
24788 #: ../src/guestfs-actions.pod:1530
24789 msgid ""
24790 "Note that this call allocates disk blocks for the file.  To create a sparse "
24791 "file use C<guestfs_truncate_size> instead."
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../src/guestfs-actions.pod:1533
24796 msgid ""
24797 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24798 "oversight it only allowed 30 bit lengths to be specified, effectively "
24799 "limiting the maximum size of files created through that call to 1GB."
24800 msgstr ""
24801
24802 #. type: textblock
24803 #: ../src/guestfs-actions.pod:1544
24804 msgid "(Added in 1.3.17)"
24805 msgstr ""
24806
24807 #. type: =head2
24808 #: ../src/guestfs-actions.pod:1546
24809 msgid "guestfs_fgrep"
24810 msgstr ""
24811
24812 #. type: verbatim
24813 #: ../src/guestfs-actions.pod:1548
24814 #, no-wrap
24815 msgid ""
24816 " char **\n"
24817 " guestfs_fgrep (guestfs_h *g,\n"
24818 "                const char *pattern,\n"
24819 "                const char *path);\n"
24820 "\n"
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../src/guestfs-actions.pod:1565
24825 msgid "guestfs_fgrepi"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../src/guestfs-actions.pod:1567
24830 #, no-wrap
24831 msgid ""
24832 " char **\n"
24833 " guestfs_fgrepi (guestfs_h *g,\n"
24834 "                 const char *pattern,\n"
24835 "                 const char *path);\n"
24836 "\n"
24837 msgstr ""
24838
24839 #. type: =head2
24840 #: ../src/guestfs-actions.pod:1584
24841 msgid "guestfs_file"
24842 msgstr ""
24843
24844 #. type: verbatim
24845 #: ../src/guestfs-actions.pod:1586
24846 #, no-wrap
24847 msgid ""
24848 " char *\n"
24849 " guestfs_file (guestfs_h *g,\n"
24850 "               const char *path);\n"
24851 "\n"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../src/guestfs-actions.pod:1604
24856 msgid ""
24857 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24858 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../src/guestfs-actions.pod:1612
24863 msgid "guestfs_file_architecture"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../src/guestfs-actions.pod:1614
24868 #, no-wrap
24869 msgid ""
24870 " char *\n"
24871 " guestfs_file_architecture (guestfs_h *g,\n"
24872 "                            const char *filename);\n"
24873 "\n"
24874 msgstr ""
24875
24876 #. type: textblock
24877 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
24878 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
24879 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
24880 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
24881 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
24882 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
24883 #: ../src/guestfs-actions.pod:3541
24884 msgid "(Added in 1.5.3)"
24885 msgstr ""
24886
24887 #. type: =head2
24888 #: ../src/guestfs-actions.pod:1724
24889 msgid "guestfs_filesize"
24890 msgstr ""
24891
24892 #. type: verbatim
24893 #: ../src/guestfs-actions.pod:1726
24894 #, no-wrap
24895 msgid ""
24896 " int64_t\n"
24897 " guestfs_filesize (guestfs_h *g,\n"
24898 "                   const char *file);\n"
24899 "\n"
24900 msgstr ""
24901
24902 #. type: textblock
24903 #: ../src/guestfs-actions.pod:1732
24904 msgid ""
24905 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24906 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24907 "devices, use C<guestfs_blockdev_getsize64>."
24908 msgstr ""
24909
24910 #. type: textblock
24911 #: ../src/guestfs-actions.pod:1738
24912 msgid "(Added in 1.0.82)"
24913 msgstr ""
24914
24915 #. type: =head2
24916 #: ../src/guestfs-actions.pod:1740
24917 msgid "guestfs_fill"
24918 msgstr ""
24919
24920 #. type: verbatim
24921 #: ../src/guestfs-actions.pod:1742
24922 #, no-wrap
24923 msgid ""
24924 " int\n"
24925 " guestfs_fill (guestfs_h *g,\n"
24926 "               int c,\n"
24927 "               int len,\n"
24928 "               const char *path);\n"
24929 "\n"
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../src/guestfs-actions.pod:1752
24934 msgid ""
24935 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24936 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24937 "bytes use C<guestfs_fill_pattern>."
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../src/guestfs-actions.pod:1764
24942 msgid "(Added in 1.0.79)"
24943 msgstr ""
24944
24945 #. type: =head2
24946 #: ../src/guestfs-actions.pod:1766
24947 msgid "guestfs_fill_pattern"
24948 msgstr ""
24949
24950 #. type: verbatim
24951 #: ../src/guestfs-actions.pod:1768
24952 #, no-wrap
24953 msgid ""
24954 " int\n"
24955 " guestfs_fill_pattern (guestfs_h *g,\n"
24956 "                       const char *pattern,\n"
24957 "                       int len,\n"
24958 "                       const char *path);\n"
24959 "\n"
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../src/guestfs-actions.pod:1774
24964 msgid ""
24965 "This function is like C<guestfs_fill> except that it creates a new file of "
24966 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24967 "pattern is truncated if necessary to ensure the length of the file is "
24968 "exactly C<len> bytes."
24969 msgstr ""
24970
24971 #. type: textblock
24972 #: ../src/guestfs-actions.pod:1786
24973 msgid "(Added in 1.3.12)"
24974 msgstr ""
24975
24976 #. type: =head2
24977 #: ../src/guestfs-actions.pod:1788
24978 msgid "guestfs_find"
24979 msgstr ""
24980
24981 #. type: verbatim
24982 #: ../src/guestfs-actions.pod:1790
24983 #, no-wrap
24984 msgid ""
24985 " char **\n"
24986 " guestfs_find (guestfs_h *g,\n"
24987 "               const char *directory);\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../src/guestfs-actions.pod:1806
24993 msgid ""
24994 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24995 msgstr ""
24996
24997 #. type: textblock
24998 #: ../src/guestfs-actions.pod:1819
24999 msgid "See also C<guestfs_find0>."
25000 msgstr ""
25001
25002 #. type: textblock
25003 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
25004 #: ../src/guestfs-actions.pod:6009
25005 msgid "(Added in 1.0.27)"
25006 msgstr ""
25007
25008 #. type: =head2
25009 #: ../src/guestfs-actions.pod:1830
25010 msgid "guestfs_find0"
25011 msgstr ""
25012
25013 #. type: verbatim
25014 #: ../src/guestfs-actions.pod:1832
25015 #, no-wrap
25016 msgid ""
25017 " int\n"
25018 " guestfs_find0 (guestfs_h *g,\n"
25019 "                const char *directory,\n"
25020 "                const char *files);\n"
25021 "\n"
25022 msgstr ""
25023
25024 #. type: textblock
25025 #: ../src/guestfs-actions.pod:1841
25026 msgid ""
25027 "This command works the same way as C<guestfs_find> with the following "
25028 "exceptions:"
25029 msgstr ""
25030
25031 #. type: textblock
25032 #: ../src/guestfs-actions.pod:1868
25033 msgid "(Added in 1.0.74)"
25034 msgstr ""
25035
25036 #. type: =head2
25037 #: ../src/guestfs-actions.pod:1870
25038 msgid "guestfs_findfs_label"
25039 msgstr ""
25040
25041 #. type: verbatim
25042 #: ../src/guestfs-actions.pod:1872
25043 #, no-wrap
25044 msgid ""
25045 " char *\n"
25046 " guestfs_findfs_label (guestfs_h *g,\n"
25047 "                       const char *label);\n"
25048 "\n"
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../src/guestfs-actions.pod:1880
25053 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25054 msgstr ""
25055
25056 #. type: =head2
25057 #: ../src/guestfs-actions.pod:1887
25058 msgid "guestfs_findfs_uuid"
25059 msgstr ""
25060
25061 #. type: verbatim
25062 #: ../src/guestfs-actions.pod:1889
25063 #, no-wrap
25064 msgid ""
25065 " char *\n"
25066 " guestfs_findfs_uuid (guestfs_h *g,\n"
25067 "                      const char *uuid);\n"
25068 "\n"
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../src/guestfs-actions.pod:1897
25073 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25074 msgstr ""
25075
25076 #. type: =head2
25077 #: ../src/guestfs-actions.pod:1904
25078 msgid "guestfs_fsck"
25079 msgstr ""
25080
25081 #. type: verbatim
25082 #: ../src/guestfs-actions.pod:1906
25083 #, no-wrap
25084 msgid ""
25085 " int\n"
25086 " guestfs_fsck (guestfs_h *g,\n"
25087 "               const char *fstype,\n"
25088 "               const char *device);\n"
25089 "\n"
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
25094 msgid "(Added in 1.0.16)"
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:1943
25099 msgid "guestfs_get_append"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:1945
25104 #, no-wrap
25105 msgid ""
25106 " const char *\n"
25107 " guestfs_get_append (guestfs_h *g);\n"
25108 "\n"
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../src/guestfs-actions.pod:1953
25113 msgid ""
25114 "This function returns a string which may be NULL.  There is no way to return "
25115 "an error from this function.  The string is owned by the guest handle and "
25116 "must I<not> be freed."
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
25121 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
25122 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
25123 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
25124 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
25125 msgid "(Added in 1.0.26)"
25126 msgstr ""
25127
25128 #. type: =head2
25129 #: ../src/guestfs-actions.pod:1959
25130 msgid "guestfs_get_attach_method"
25131 msgstr ""
25132
25133 #. type: verbatim
25134 #: ../src/guestfs-actions.pod:1961
25135 #, no-wrap
25136 msgid ""
25137 " char *\n"
25138 " guestfs_get_attach_method (guestfs_h *g);\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:1964
25144 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
25149 msgid "(Added in 1.9.8)"
25150 msgstr ""
25151
25152 #. type: =head2
25153 #: ../src/guestfs-actions.pod:1971
25154 msgid "guestfs_get_autosync"
25155 msgstr ""
25156
25157 #. type: verbatim
25158 #: ../src/guestfs-actions.pod:1973
25159 #, no-wrap
25160 msgid ""
25161 " int\n"
25162 " guestfs_get_autosync (guestfs_h *g);\n"
25163 "\n"
25164 msgstr ""
25165
25166 #. type: =head2
25167 #: ../src/guestfs-actions.pod:1982
25168 msgid "guestfs_get_direct"
25169 msgstr ""
25170
25171 #. type: verbatim
25172 #: ../src/guestfs-actions.pod:1984
25173 #, no-wrap
25174 msgid ""
25175 " int\n"
25176 " guestfs_get_direct (guestfs_h *g);\n"
25177 "\n"
25178 msgstr ""
25179
25180 #. type: textblock
25181 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
25182 msgid "(Added in 1.0.72)"
25183 msgstr ""
25184
25185 #. type: =head2
25186 #: ../src/guestfs-actions.pod:1993
25187 msgid "guestfs_get_e2label"
25188 msgstr ""
25189
25190 #. type: verbatim
25191 #: ../src/guestfs-actions.pod:1995
25192 #, no-wrap
25193 msgid ""
25194 " char *\n"
25195 " guestfs_get_e2label (guestfs_h *g,\n"
25196 "                      const char *device);\n"
25197 "\n"
25198 msgstr ""
25199
25200 #. type: textblock
25201 #: ../src/guestfs-actions.pod:2005
25202 msgid ""
25203 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
25204 "call instead."
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
25209 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
25210 msgid "(Added in 1.0.15)"
25211 msgstr ""
25212
25213 #. type: =head2
25214 #: ../src/guestfs-actions.pod:2014
25215 msgid "guestfs_get_e2uuid"
25216 msgstr ""
25217
25218 #. type: verbatim
25219 #: ../src/guestfs-actions.pod:2016
25220 #, no-wrap
25221 msgid ""
25222 " char *\n"
25223 " guestfs_get_e2uuid (guestfs_h *g,\n"
25224 "                     const char *device);\n"
25225 "\n"
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../src/guestfs-actions.pod:2026
25230 msgid ""
25231 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
25232 "instead."
25233 msgstr ""
25234
25235 #. type: =head2
25236 #: ../src/guestfs-actions.pod:2035
25237 msgid "guestfs_get_memsize"
25238 msgstr ""
25239
25240 #. type: verbatim
25241 #: ../src/guestfs-actions.pod:2037
25242 #, no-wrap
25243 msgid ""
25244 " int\n"
25245 " guestfs_get_memsize (guestfs_h *g);\n"
25246 "\n"
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../src/guestfs-actions.pod:2043
25251 msgid ""
25252 "If C<guestfs_set_memsize> was not called on this handle, and if "
25253 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25254 "value for memsize."
25255 msgstr ""
25256
25257 #. type: textblock
25258 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
25259 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
25260 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
25261 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
25262 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
25263 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
25264 msgid "(Added in 1.0.55)"
25265 msgstr ""
25266
25267 #. type: =head2
25268 #: ../src/guestfs-actions.pod:2054
25269 msgid "guestfs_get_network"
25270 msgstr ""
25271
25272 #. type: verbatim
25273 #: ../src/guestfs-actions.pod:2056
25274 #, no-wrap
25275 msgid ""
25276 " int\n"
25277 " guestfs_get_network (guestfs_h *g);\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
25283 msgid "(Added in 1.5.4)"
25284 msgstr ""
25285
25286 #. type: =head2
25287 #: ../src/guestfs-actions.pod:2065
25288 msgid "guestfs_get_path"
25289 msgstr ""
25290
25291 #. type: verbatim
25292 #: ../src/guestfs-actions.pod:2067
25293 #, no-wrap
25294 msgid ""
25295 " const char *\n"
25296 " guestfs_get_path (guestfs_h *g);\n"
25297 "\n"
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
25302 msgid ""
25303 "This function returns a string, or NULL on error.  The string is owned by "
25304 "the guest handle and must I<not> be freed."
25305 msgstr ""
25306
25307 #. type: =head2
25308 #: ../src/guestfs-actions.pod:2080
25309 msgid "guestfs_get_pgroup"
25310 msgstr ""
25311
25312 #. type: verbatim
25313 #: ../src/guestfs-actions.pod:2082
25314 #, no-wrap
25315 msgid ""
25316 " int\n"
25317 " guestfs_get_pgroup (guestfs_h *g);\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: textblock
25322 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
25323 #: ../src/guestfs-actions.pod:7685
25324 #, fuzzy
25325 #| msgid "(Added in 1.5.1)"
25326 msgid "(Added in 1.11.18)"
25327 msgstr "(Додано у 1.5.1)"
25328
25329 #. type: =head2
25330 #: ../src/guestfs-actions.pod:2091
25331 msgid "guestfs_get_pid"
25332 msgstr ""
25333
25334 #. type: verbatim
25335 #: ../src/guestfs-actions.pod:2093
25336 #, no-wrap
25337 msgid ""
25338 " int\n"
25339 " guestfs_get_pid (guestfs_h *g);\n"
25340 "\n"
25341 msgstr ""
25342
25343 #. type: textblock
25344 #: ../src/guestfs-actions.pod:2103
25345 msgid "(Added in 1.0.56)"
25346 msgstr ""
25347
25348 #. type: =head2
25349 #: ../src/guestfs-actions.pod:2105
25350 msgid "guestfs_get_qemu"
25351 msgstr ""
25352
25353 #. type: verbatim
25354 #: ../src/guestfs-actions.pod:2107
25355 #, no-wrap
25356 msgid ""
25357 " const char *\n"
25358 " guestfs_get_qemu (guestfs_h *g);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
25364 msgid "(Added in 1.0.6)"
25365 msgstr ""
25366
25367 #. type: =head2
25368 #: ../src/guestfs-actions.pod:2120
25369 msgid "guestfs_get_recovery_proc"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../src/guestfs-actions.pod:2122
25374 #, no-wrap
25375 msgid ""
25376 " int\n"
25377 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25378 "\n"
25379 msgstr ""
25380
25381 #. type: textblock
25382 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
25383 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
25384 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
25385 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
25386 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
25387 #: ../src/guestfs-actions.pod:7308
25388 msgid "(Added in 1.0.77)"
25389 msgstr ""
25390
25391 #. type: =head2
25392 #: ../src/guestfs-actions.pod:2131
25393 msgid "guestfs_get_selinux"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../src/guestfs-actions.pod:2133
25398 #, no-wrap
25399 msgid ""
25400 " int\n"
25401 " guestfs_get_selinux (guestfs_h *g);\n"
25402 "\n"
25403 msgstr ""
25404
25405 #. type: textblock
25406 #: ../src/guestfs-actions.pod:2136
25407 msgid ""
25408 "This returns the current setting of the selinux flag which is passed to the "
25409 "appliance at boot time.  See C<guestfs_set_selinux>."
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
25414 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
25415 msgid "(Added in 1.0.67)"
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:2146
25420 msgid "guestfs_get_state"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:2148
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_get_state (guestfs_h *g);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: =head2
25433 #: ../src/guestfs-actions.pod:2160
25434 msgid "guestfs_get_trace"
25435 msgstr ""
25436
25437 #. type: verbatim
25438 #: ../src/guestfs-actions.pod:2162
25439 #, no-wrap
25440 msgid ""
25441 " int\n"
25442 " guestfs_get_trace (guestfs_h *g);\n"
25443 "\n"
25444 msgstr ""
25445
25446 #. type: =head2
25447 #: ../src/guestfs-actions.pod:2171
25448 msgid "guestfs_get_umask"
25449 msgstr ""
25450
25451 #. type: verbatim
25452 #: ../src/guestfs-actions.pod:2173
25453 #, no-wrap
25454 msgid ""
25455 " int\n"
25456 " guestfs_get_umask (guestfs_h *g);\n"
25457 "\n"
25458 msgstr ""
25459
25460 #. type: textblock
25461 #: ../src/guestfs-actions.pod:2176
25462 msgid ""
25463 "Return the current umask.  By default the umask is C<022> unless it has been "
25464 "set by calling C<guestfs_umask>."
25465 msgstr ""
25466
25467 #. type: =head2
25468 #: ../src/guestfs-actions.pod:2183
25469 msgid "guestfs_get_verbose"
25470 msgstr ""
25471
25472 #. type: verbatim
25473 #: ../src/guestfs-actions.pod:2185
25474 #, no-wrap
25475 msgid ""
25476 " int\n"
25477 " guestfs_get_verbose (guestfs_h *g);\n"
25478 "\n"
25479 msgstr ""
25480
25481 #. type: =head2
25482 #: ../src/guestfs-actions.pod:2194
25483 msgid "guestfs_getcon"
25484 msgstr ""
25485
25486 #. type: verbatim
25487 #: ../src/guestfs-actions.pod:2196
25488 #, no-wrap
25489 msgid ""
25490 " char *\n"
25491 " guestfs_getcon (guestfs_h *g);\n"
25492 "\n"
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:2201
25497 msgid ""
25498 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../src/guestfs-actions.pod:2209
25503 msgid "guestfs_getxattr"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../src/guestfs-actions.pod:2211
25508 #, no-wrap
25509 msgid ""
25510 " char *\n"
25511 " guestfs_getxattr (guestfs_h *g,\n"
25512 "                   const char *path,\n"
25513 "                   const char *name,\n"
25514 "                   size_t *size_r);\n"
25515 "\n"
25516 msgstr ""
25517
25518 #. type: textblock
25519 #: ../src/guestfs-actions.pod:2217
25520 msgid ""
25521 "Get a single extended attribute from file C<path> named C<name>.  This call "
25522 "follows symlinks.  If you want to lookup an extended attribute for the "
25523 "symlink itself, use C<guestfs_lgetxattr>."
25524 msgstr ""
25525
25526 #. type: textblock
25527 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
25528 msgid ""
25529 "Normally it is better to get all extended attributes from a file in one go "
25530 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25531 "implementations are buggy and do not provide a way to list out attributes.  "
25532 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25533 "extended attributes you want in advance and call this function."
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../src/guestfs-actions.pod:2231
25538 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25539 msgstr ""
25540
25541 #. type: textblock
25542 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
25543 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
25544 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
25545 #: ../src/guestfs-actions.pod:5817
25546 msgid ""
25547 "This function returns a buffer, or NULL on error.  The size of the returned "
25548 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25549 "after use>."
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
25554 msgid "(Added in 1.7.24)"
25555 msgstr ""
25556
25557 #. type: =head2
25558 #: ../src/guestfs-actions.pod:2239
25559 msgid "guestfs_getxattrs"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../src/guestfs-actions.pod:2241
25564 #, no-wrap
25565 msgid ""
25566 " struct guestfs_xattr_list *\n"
25567 " guestfs_getxattrs (guestfs_h *g,\n"
25568 "                    const char *path);\n"
25569 "\n"
25570 msgstr ""
25571
25572 #. type: textblock
25573 #: ../src/guestfs-actions.pod:2251
25574 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
25579 #: ../src/guestfs-actions.pod:4393
25580 msgid ""
25581 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25582 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
25587 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
25588 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
25589 #: ../src/guestfs-actions.pod:7888
25590 msgid "(Added in 1.0.59)"
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../src/guestfs-actions.pod:2259
25595 msgid "guestfs_glob_expand"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../src/guestfs-actions.pod:2261
25600 #, no-wrap
25601 msgid ""
25602 " char **\n"
25603 " guestfs_glob_expand (guestfs_h *g,\n"
25604 "                      const char *pattern);\n"
25605 "\n"
25606 msgstr ""
25607
25608 #. type: textblock
25609 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
25610 #: ../src/guestfs-actions.pod:6711
25611 msgid "(Added in 1.0.50)"
25612 msgstr ""
25613
25614 #. type: =head2
25615 #: ../src/guestfs-actions.pod:2282
25616 msgid "guestfs_grep"
25617 msgstr ""
25618
25619 #. type: verbatim
25620 #: ../src/guestfs-actions.pod:2284
25621 #, no-wrap
25622 msgid ""
25623 " char **\n"
25624 " guestfs_grep (guestfs_h *g,\n"
25625 "               const char *regex,\n"
25626 "               const char *path);\n"
25627 "\n"
25628 msgstr ""
25629
25630 #. type: =head2
25631 #: ../src/guestfs-actions.pod:2301
25632 msgid "guestfs_grepi"
25633 msgstr ""
25634
25635 #. type: verbatim
25636 #: ../src/guestfs-actions.pod:2303
25637 #, no-wrap
25638 msgid ""
25639 " char **\n"
25640 " guestfs_grepi (guestfs_h *g,\n"
25641 "                const char *regex,\n"
25642 "                const char *path);\n"
25643 "\n"
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:2320
25648 msgid "guestfs_grub_install"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:2322
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_grub_install (guestfs_h *g,\n"
25657 "                       const char *root,\n"
25658 "                       const char *device);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:2343
25664 msgid "(Added in 1.0.17)"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:2345
25669 msgid "guestfs_head"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:2347
25674 #, no-wrap
25675 msgid ""
25676 " char **\n"
25677 " guestfs_head (guestfs_h *g,\n"
25678 "               const char *path);\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: =head2
25683 #: ../src/guestfs-actions.pod:2363
25684 msgid "guestfs_head_n"
25685 msgstr ""
25686
25687 #. type: verbatim
25688 #: ../src/guestfs-actions.pod:2365
25689 #, no-wrap
25690 msgid ""
25691 " char **\n"
25692 " guestfs_head_n (guestfs_h *g,\n"
25693 "                 int nrlines,\n"
25694 "                 const char *path);\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:2387
25700 msgid "guestfs_hexdump"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:2389
25705 #, no-wrap
25706 msgid ""
25707 " char *\n"
25708 " guestfs_hexdump (guestfs_h *g,\n"
25709 "                  const char *path);\n"
25710 "\n"
25711 msgstr ""
25712
25713 #. type: textblock
25714 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
25715 #: ../src/guestfs-actions.pod:6830
25716 msgid "(Added in 1.0.22)"
25717 msgstr ""
25718
25719 #. type: =head2
25720 #: ../src/guestfs-actions.pod:2404
25721 msgid "guestfs_initrd_cat"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../src/guestfs-actions.pod:2406
25726 #, no-wrap
25727 msgid ""
25728 " char *\n"
25729 " guestfs_initrd_cat (guestfs_h *g,\n"
25730 "                     const char *initrdpath,\n"
25731 "                     const char *filename,\n"
25732 "                     size_t *size_r);\n"
25733 "\n"
25734 msgstr ""
25735
25736 #. type: textblock
25737 #: ../src/guestfs-actions.pod:2422
25738 msgid "See also C<guestfs_initrd_list>."
25739 msgstr ""
25740
25741 #. type: =head2
25742 #: ../src/guestfs-actions.pod:2433
25743 msgid "guestfs_initrd_list"
25744 msgstr ""
25745
25746 #. type: verbatim
25747 #: ../src/guestfs-actions.pod:2435
25748 #, no-wrap
25749 msgid ""
25750 " char **\n"
25751 " guestfs_initrd_list (guestfs_h *g,\n"
25752 "                      const char *path);\n"
25753 "\n"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../src/guestfs-actions.pod:2455
25758 msgid "guestfs_inotify_add_watch"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../src/guestfs-actions.pod:2457
25763 #, no-wrap
25764 msgid ""
25765 " int64_t\n"
25766 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25767 "                            const char *path,\n"
25768 "                            int mask);\n"
25769 "\n"
25770 msgstr ""
25771
25772 #. type: =head2
25773 #: ../src/guestfs-actions.pod:2476
25774 msgid "guestfs_inotify_close"
25775 msgstr ""
25776
25777 #. type: verbatim
25778 #: ../src/guestfs-actions.pod:2478
25779 #, no-wrap
25780 msgid ""
25781 " int\n"
25782 " guestfs_inotify_close (guestfs_h *g);\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../src/guestfs-actions.pod:2489
25788 msgid "guestfs_inotify_files"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../src/guestfs-actions.pod:2491
25793 #, no-wrap
25794 msgid ""
25795 " char **\n"
25796 " guestfs_inotify_files (guestfs_h *g);\n"
25797 "\n"
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../src/guestfs-actions.pod:2494
25802 msgid ""
25803 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25804 "returns a list of pathnames of objects that were touched.  The returned "
25805 "pathnames are sorted and deduplicated."
25806 msgstr ""
25807
25808 #. type: =head2
25809 #: ../src/guestfs-actions.pod:2504
25810 msgid "guestfs_inotify_init"
25811 msgstr ""
25812
25813 #. type: verbatim
25814 #: ../src/guestfs-actions.pod:2506
25815 #, no-wrap
25816 msgid ""
25817 " int\n"
25818 " guestfs_inotify_init (guestfs_h *g,\n"
25819 "                       int maxevents);\n"
25820 "\n"
25821 msgstr ""
25822
25823 #. type: textblock
25824 #: ../src/guestfs-actions.pod:2514
25825 msgid ""
25826 "C<maxevents> is the maximum number of events which will be queued up between "
25827 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25828 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25829 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25830 "throws away events, but records the fact that it threw them away by setting "
25831 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25832 "C<guestfs_inotify_read>)."
25833 msgstr ""
25834
25835 #. type: textblock
25836 #: ../src/guestfs-actions.pod:2524
25837 msgid ""
25838 "Before any events are generated, you have to add some watches to the "
25839 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25840 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25841 msgstr ""
25842
25843 #. type: textblock
25844 #: ../src/guestfs-actions.pod:2530
25845 msgid ""
25846 "Queued up events should be read periodically by calling "
25847 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25848 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25849 "often enough then you risk the internal queue overflowing."
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:2537
25854 msgid ""
25855 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25856 "This also removes any watches automatically."
25857 msgstr ""
25858
25859 #. type: =head2
25860 #: ../src/guestfs-actions.pod:2550
25861 msgid "guestfs_inotify_read"
25862 msgstr ""
25863
25864 #. type: verbatim
25865 #: ../src/guestfs-actions.pod:2552
25866 #, no-wrap
25867 msgid ""
25868 " struct guestfs_inotify_event_list *\n"
25869 " guestfs_inotify_read (guestfs_h *g);\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: textblock
25874 #: ../src/guestfs-actions.pod:2566
25875 msgid ""
25876 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25877 "there was an error.  I<The caller must call "
25878 "C<guestfs_free_inotify_event_list> after use>."
25879 msgstr ""
25880
25881 #. type: =head2
25882 #: ../src/guestfs-actions.pod:2572
25883 msgid "guestfs_inotify_rm_watch"
25884 msgstr ""
25885
25886 #. type: verbatim
25887 #: ../src/guestfs-actions.pod:2574
25888 #, no-wrap
25889 msgid ""
25890 " int\n"
25891 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25892 "                           int wd);\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../src/guestfs-actions.pod:2578
25898 msgid ""
25899 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25900 msgstr ""
25901
25902 #. type: =head2
25903 #: ../src/guestfs-actions.pod:2585
25904 msgid "guestfs_inspect_get_arch"
25905 msgstr ""
25906
25907 #. type: verbatim
25908 #: ../src/guestfs-actions.pod:2587
25909 #, no-wrap
25910 msgid ""
25911 " char *\n"
25912 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25913 "                           const char *root);\n"
25914 "\n"
25915 msgstr ""
25916
25917 #. type: textblock
25918 #: ../src/guestfs-actions.pod:2591
25919 msgid ""
25920 "This returns the architecture of the inspected operating system.  The "
25921 "possible return values are listed under C<guestfs_file_architecture>."
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:2605
25926 msgid "guestfs_inspect_get_distro"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:2607
25931 #, no-wrap
25932 msgid ""
25933 " char *\n"
25934 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25935 "                             const char *root);\n"
25936 "\n"
25937 msgstr ""
25938
25939 #. type: =head2
25940 #: ../src/guestfs-actions.pod:2695
25941 msgid "guestfs_inspect_get_drive_mappings"
25942 msgstr ""
25943
25944 #. type: verbatim
25945 #: ../src/guestfs-actions.pod:2697
25946 #, no-wrap
25947 msgid ""
25948 " char **\n"
25949 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25950 "                                     const char *root);\n"
25951 "\n"
25952 msgstr ""
25953
25954 #. type: textblock
25955 #: ../src/guestfs-actions.pod:2726
25956 msgid ""
25957 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25958 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25959 msgstr ""
25960
25961 #. type: textblock
25962 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
25963 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
25964 #: ../src/guestfs-actions.pod:7132
25965 msgid ""
25966 "This function returns a NULL-terminated array of strings, or NULL if there "
25967 "was an error.  The array of strings will always have length C<2n+1>, where "
25968 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25969 "caller must free the strings and the array after use>."
25970 msgstr ""
25971
25972 #. type: textblock
25973 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
25974 msgid "(Added in 1.9.17)"
25975 msgstr ""
25976
25977 #. type: =head2
25978 #: ../src/guestfs-actions.pod:2738
25979 msgid "guestfs_inspect_get_filesystems"
25980 msgstr ""
25981
25982 #. type: verbatim
25983 #: ../src/guestfs-actions.pod:2740
25984 #, no-wrap
25985 msgid ""
25986 " char **\n"
25987 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25988 "                                  const char *root);\n"
25989 "\n"
25990 msgstr ""
25991
25992 #. type: textblock
25993 #: ../src/guestfs-actions.pod:2752
25994 msgid ""
25995 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25996 "C<guestfs_inspect_get_mountpoints>."
25997 msgstr ""
25998
25999 #. type: =head2
26000 #: ../src/guestfs-actions.pod:2761
26001 msgid "guestfs_inspect_get_format"
26002 msgstr ""
26003
26004 #. type: verbatim
26005 #: ../src/guestfs-actions.pod:2763
26006 #, no-wrap
26007 msgid ""
26008 " char *\n"
26009 " guestfs_inspect_get_format (guestfs_h *g,\n"
26010 "                             const char *root);\n"
26011 "\n"
26012 msgstr ""
26013
26014 #. type: textblock
26015 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
26016 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
26017 #: ../src/guestfs-actions.pod:6028
26018 msgid "(Added in 1.9.4)"
26019 msgstr ""
26020
26021 #. type: =head2
26022 #: ../src/guestfs-actions.pod:2799
26023 msgid "guestfs_inspect_get_hostname"
26024 msgstr ""
26025
26026 #. type: verbatim
26027 #: ../src/guestfs-actions.pod:2801
26028 #, no-wrap
26029 msgid ""
26030 " char *\n"
26031 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26032 "                               const char *root);\n"
26033 "\n"
26034 msgstr ""
26035
26036 #. type: textblock
26037 #: ../src/guestfs-actions.pod:2816
26038 msgid "(Added in 1.7.9)"
26039 msgstr ""
26040
26041 #. type: =head2
26042 #: ../src/guestfs-actions.pod:2818
26043 msgid "guestfs_inspect_get_icon"
26044 msgstr ""
26045
26046 #. type: verbatim
26047 #: ../src/guestfs-actions.pod:2820
26048 #, no-wrap
26049 msgid ""
26050 " char *\n"
26051 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26052 "                           const char *root,\n"
26053 "                           size_t *size_r,\n"
26054 "                           ...);\n"
26055 "\n"
26056 msgstr ""
26057
26058 #. type: verbatim
26059 #: ../src/guestfs-actions.pod:2831
26060 #, no-wrap
26061 msgid ""
26062 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26063 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26064 "\n"
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
26069 #: ../src/guestfs-actions.pod:4977
26070 msgid "(Added in 1.11.12)"
26071 msgstr ""
26072
26073 #. type: =head2
26074 #: ../src/guestfs-actions.pod:2900
26075 msgid "guestfs_inspect_get_icon_va"
26076 msgstr ""
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:2902
26080 #, no-wrap
26081 msgid ""
26082 " char *\n"
26083 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26084 "                              const char *root,\n"
26085 "                              size_t *size_r,\n"
26086 "                              va_list args);\n"
26087 "\n"
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:2908
26092 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26093 msgstr ""
26094
26095 #. type: =head2
26096 #: ../src/guestfs-actions.pod:2912
26097 msgid "guestfs_inspect_get_icon_argv"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../src/guestfs-actions.pod:2914
26102 #, no-wrap
26103 msgid ""
26104 " char *\n"
26105 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26106 "                                const char *root,\n"
26107 "                                size_t *size_r,\n"
26108 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: textblock
26113 #: ../src/guestfs-actions.pod:2920
26114 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26115 msgstr ""
26116
26117 #. type: =head2
26118 #: ../src/guestfs-actions.pod:2924
26119 msgid "guestfs_inspect_get_major_version"
26120 msgstr ""
26121
26122 #. type: verbatim
26123 #: ../src/guestfs-actions.pod:2926
26124 #, no-wrap
26125 msgid ""
26126 " int\n"
26127 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26128 "                                    const char *root);\n"
26129 "\n"
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:2948
26134 msgid "guestfs_inspect_get_minor_version"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:2950
26139 #, no-wrap
26140 msgid ""
26141 " int\n"
26142 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26143 "                                    const char *root);\n"
26144 "\n"
26145 msgstr ""
26146
26147 #. type: textblock
26148 #: ../src/guestfs-actions.pod:2959
26149 msgid ""
26150 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26151 "C<guestfs_inspect_get_major_version>."
26152 msgstr ""
26153
26154 #. type: =head2
26155 #: ../src/guestfs-actions.pod:2966
26156 msgid "guestfs_inspect_get_mountpoints"
26157 msgstr ""
26158
26159 #. type: verbatim
26160 #: ../src/guestfs-actions.pod:2968
26161 #, no-wrap
26162 msgid ""
26163 " char **\n"
26164 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26165 "                                  const char *root);\n"
26166 "\n"
26167 msgstr ""
26168
26169 #. type: textblock
26170 #: ../src/guestfs-actions.pod:2989
26171 msgid ""
26172 "For operating systems like Windows which still use drive letters, this call "
26173 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26174 "information about the mapping of drive letters to partitions, see "
26175 "C<guestfs_inspect_get_drive_mappings>."
26176 msgstr ""
26177
26178 #. type: textblock
26179 #: ../src/guestfs-actions.pod:2995
26180 msgid ""
26181 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26182 "C<guestfs_inspect_get_filesystems>."
26183 msgstr ""
26184
26185 #. type: =head2
26186 #: ../src/guestfs-actions.pod:3006
26187 msgid "guestfs_inspect_get_package_format"
26188 msgstr ""
26189
26190 #. type: verbatim
26191 #: ../src/guestfs-actions.pod:3008
26192 #, no-wrap
26193 msgid ""
26194 " char *\n"
26195 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26196 "                                     const char *root);\n"
26197 "\n"
26198 msgstr ""
26199
26200 #. type: textblock
26201 #: ../src/guestfs-actions.pod:3012
26202 msgid ""
26203 "This function and C<guestfs_inspect_get_package_management> return the "
26204 "package format and package management tool used by the inspected operating "
26205 "system.  For example for Fedora these functions would return C<rpm> (package "
26206 "format) and C<yum> (package management)."
26207 msgstr ""
26208
26209 #. type: textblock
26210 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
26211 msgid "(Added in 1.7.5)"
26212 msgstr ""
26213
26214 #. type: =head2
26215 #: ../src/guestfs-actions.pod:3032
26216 msgid "guestfs_inspect_get_package_management"
26217 msgstr ""
26218
26219 #. type: verbatim
26220 #: ../src/guestfs-actions.pod:3034
26221 #, no-wrap
26222 msgid ""
26223 " char *\n"
26224 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26225 "                                         const char *root);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:3038
26231 msgid ""
26232 "C<guestfs_inspect_get_package_format> and this function return the package "
26233 "format and package management tool used by the inspected operating system.  "
26234 "For example for Fedora these functions would return C<rpm> (package format) "
26235 "and C<yum> (package management)."
26236 msgstr ""
26237
26238 #. type: =head2
26239 #: ../src/guestfs-actions.pod:3060
26240 msgid "guestfs_inspect_get_product_name"
26241 msgstr ""
26242
26243 #. type: verbatim
26244 #: ../src/guestfs-actions.pod:3062
26245 #, no-wrap
26246 msgid ""
26247 " char *\n"
26248 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26249 "                                   const char *root);\n"
26250 "\n"
26251 msgstr ""
26252
26253 #. type: =head2
26254 #: ../src/guestfs-actions.pod:3081
26255 msgid "guestfs_inspect_get_product_variant"
26256 msgstr ""
26257
26258 #. type: verbatim
26259 #: ../src/guestfs-actions.pod:3083
26260 #, no-wrap
26261 msgid ""
26262 " char *\n"
26263 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26264 "                                      const char *root);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../src/guestfs-actions.pod:3106
26270 msgid ""
26271 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26272 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26273 msgstr ""
26274
26275 #. type: textblock
26276 #: ../src/guestfs-actions.pod:3113
26277 msgid "(Added in 1.9.13)"
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../src/guestfs-actions.pod:3115
26282 msgid "guestfs_inspect_get_roots"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:3117
26287 #, no-wrap
26288 msgid ""
26289 " char **\n"
26290 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../src/guestfs-actions.pod:3120
26296 msgid ""
26297 "This function is a convenient way to get the list of root devices, as "
26298 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26299 "the whole inspection process."
26300 msgstr ""
26301
26302 #. type: textblock
26303 #: ../src/guestfs-actions.pod:3124
26304 msgid ""
26305 "This returns an empty list if either no root devices were found or the "
26306 "caller has not called C<guestfs_inspect_os>."
26307 msgstr ""
26308
26309 #. type: textblock
26310 #: ../src/guestfs-actions.pod:3133
26311 msgid "(Added in 1.7.3)"
26312 msgstr ""
26313
26314 #. type: =head2
26315 #: ../src/guestfs-actions.pod:3135
26316 msgid "guestfs_inspect_get_type"
26317 msgstr ""
26318
26319 #. type: verbatim
26320 #: ../src/guestfs-actions.pod:3137
26321 #, no-wrap
26322 msgid ""
26323 " char *\n"
26324 " guestfs_inspect_get_type (guestfs_h *g,\n"
26325 "                           const char *root);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: =head2
26330 #: ../src/guestfs-actions.pod:3174
26331 msgid "guestfs_inspect_get_windows_current_control_set"
26332 msgstr ""
26333
26334 #. type: verbatim
26335 #: ../src/guestfs-actions.pod:3176
26336 #, no-wrap
26337 msgid ""
26338 " char *\n"
26339 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26340 "                                                  const char *root);\n"
26341 "\n"
26342 msgstr ""
26343
26344 #. type: =head2
26345 #: ../src/guestfs-actions.pod:3194
26346 msgid "guestfs_inspect_get_windows_systemroot"
26347 msgstr ""
26348
26349 #. type: verbatim
26350 #: ../src/guestfs-actions.pod:3196
26351 #, no-wrap
26352 msgid ""
26353 " char *\n"
26354 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26355 "                                         const char *root);\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../src/guestfs-actions.pod:3212
26361 msgid "(Added in 1.5.25)"
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../src/guestfs-actions.pod:3214
26366 msgid "guestfs_inspect_is_live"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../src/guestfs-actions.pod:3216
26371 #, no-wrap
26372 msgid ""
26373 " int\n"
26374 " guestfs_inspect_is_live (guestfs_h *g,\n"
26375 "                          const char *root);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:3220
26381 msgid ""
26382 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26383 "disk), then this returns true if a live image was detected on the disk."
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:3230
26388 msgid "guestfs_inspect_is_multipart"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:3232
26393 #, no-wrap
26394 msgid ""
26395 " int\n"
26396 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26397 "                               const char *root);\n"
26398 "\n"
26399 msgstr ""
26400
26401 #. type: textblock
26402 #: ../src/guestfs-actions.pod:3236
26403 msgid ""
26404 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26405 "disk), then this returns true if the disk is part of a set."
26406 msgstr ""
26407
26408 #. type: =head2
26409 #: ../src/guestfs-actions.pod:3246
26410 msgid "guestfs_inspect_is_netinst"
26411 msgstr ""
26412
26413 #. type: verbatim
26414 #: ../src/guestfs-actions.pod:3248
26415 #, no-wrap
26416 msgid ""
26417 " int\n"
26418 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26419 "                             const char *root);\n"
26420 "\n"
26421 msgstr ""
26422
26423 #. type: textblock
26424 #: ../src/guestfs-actions.pod:3252
26425 msgid ""
26426 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26427 "disk), then this returns true if the disk is a network installer, ie. not a "
26428 "self-contained install CD but one which is likely to require network access "
26429 "to complete the install."
26430 msgstr ""
26431
26432 #. type: =head2
26433 #: ../src/guestfs-actions.pod:3264
26434 msgid "guestfs_inspect_list_applications"
26435 msgstr ""
26436
26437 #. type: verbatim
26438 #: ../src/guestfs-actions.pod:3266
26439 #, no-wrap
26440 msgid ""
26441 " struct guestfs_application_list *\n"
26442 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26443 "                                    const char *root);\n"
26444 "\n"
26445 msgstr ""
26446
26447 #. type: textblock
26448 #: ../src/guestfs-actions.pod:3272
26449 msgid ""
26450 "I<Note:> This call works differently from other parts of the inspection "
26451 "API.  You have to call C<guestfs_inspect_os>, then "
26452 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26453 "this.  Listing applications is a significantly more difficult operation "
26454 "which requires access to the full filesystem.  Also note that unlike the "
26455 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26456 "the libguestfs handle, this call actually reads parts of the mounted "
26457 "filesystems during the call."
26458 msgstr ""
26459
26460 #. type: textblock
26461 #: ../src/guestfs-actions.pod:3362
26462 msgid ""
26463 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26464 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26465 "after use>."
26466 msgstr ""
26467
26468 #. type: textblock
26469 #: ../src/guestfs-actions.pod:3366
26470 msgid "(Added in 1.7.8)"
26471 msgstr ""
26472
26473 #. type: =head2
26474 #: ../src/guestfs-actions.pod:3368
26475 msgid "guestfs_inspect_os"
26476 msgstr ""
26477
26478 #. type: verbatim
26479 #: ../src/guestfs-actions.pod:3370
26480 #, no-wrap
26481 msgid ""
26482 " char **\n"
26483 " guestfs_inspect_os (guestfs_h *g);\n"
26484 "\n"
26485 msgstr ""
26486
26487 #. type: textblock
26488 #: ../src/guestfs-actions.pod:3386
26489 msgid ""
26490 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26491 "functions in order to query further information about each operating system, "
26492 "such as the name and version."
26493 msgstr ""
26494
26495 #. type: textblock
26496 #: ../src/guestfs-actions.pod:3391
26497 msgid ""
26498 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26499 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26500 "the contents.  This should be called with no disks currently mounted.  The "
26501 "function may also use Augeas, so any existing Augeas handle will be closed."
26502 msgstr ""
26503
26504 #. type: textblock
26505 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
26506 #: ../src/guestfs-actions.pod:3816
26507 msgid "See also C<guestfs_list_filesystems>."
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../src/guestfs-actions.pod:3411
26512 msgid "guestfs_is_blockdev"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../src/guestfs-actions.pod:3413
26517 #, no-wrap
26518 msgid ""
26519 " int\n"
26520 " guestfs_is_blockdev (guestfs_h *g,\n"
26521 "                      const char *path);\n"
26522 "\n"
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
26527 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
26528 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
26529 #: ../src/guestfs-actions.pod:3581
26530 msgid "See also C<guestfs_stat>."
26531 msgstr ""
26532
26533 #. type: textblock
26534 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
26535 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
26536 #: ../src/guestfs-actions.pod:3585
26537 msgid "(Added in 1.5.10)"
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:3426
26542 msgid "guestfs_is_busy"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:3428
26547 #, no-wrap
26548 msgid ""
26549 " int\n"
26550 " guestfs_is_busy (guestfs_h *g);\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: =head2
26555 #: ../src/guestfs-actions.pod:3440
26556 msgid "guestfs_is_chardev"
26557 msgstr ""
26558
26559 #. type: verbatim
26560 #: ../src/guestfs-actions.pod:3442
26561 #, no-wrap
26562 msgid ""
26563 " int\n"
26564 " guestfs_is_chardev (guestfs_h *g,\n"
26565 "                     const char *path);\n"
26566 "\n"
26567 msgstr ""
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:3455
26571 msgid "guestfs_is_config"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:3457
26576 #, no-wrap
26577 msgid ""
26578 " int\n"
26579 " guestfs_is_config (guestfs_h *g);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: =head2
26584 #: ../src/guestfs-actions.pod:3469
26585 msgid "guestfs_is_dir"
26586 msgstr ""
26587
26588 #. type: verbatim
26589 #: ../src/guestfs-actions.pod:3471
26590 #, no-wrap
26591 msgid ""
26592 " int\n"
26593 " guestfs_is_dir (guestfs_h *g,\n"
26594 "                 const char *path);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: =head2
26599 #: ../src/guestfs-actions.pod:3485
26600 msgid "guestfs_is_fifo"
26601 msgstr ""
26602
26603 #. type: verbatim
26604 #: ../src/guestfs-actions.pod:3487
26605 #, no-wrap
26606 msgid ""
26607 " int\n"
26608 " guestfs_is_fifo (guestfs_h *g,\n"
26609 "                  const char *path);\n"
26610 "\n"
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:3500
26615 msgid "guestfs_is_file"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:3502
26620 #, no-wrap
26621 msgid ""
26622 " int\n"
26623 " guestfs_is_file (guestfs_h *g,\n"
26624 "                  const char *path);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../src/guestfs-actions.pod:3516
26630 msgid "guestfs_is_launching"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../src/guestfs-actions.pod:3518
26635 #, no-wrap
26636 msgid ""
26637 " int\n"
26638 " guestfs_is_launching (guestfs_h *g);\n"
26639 "\n"
26640 msgstr ""
26641
26642 #. type: =head2
26643 #: ../src/guestfs-actions.pod:3530
26644 msgid "guestfs_is_lv"
26645 msgstr ""
26646
26647 #. type: verbatim
26648 #: ../src/guestfs-actions.pod:3532
26649 #, no-wrap
26650 msgid ""
26651 " int\n"
26652 " guestfs_is_lv (guestfs_h *g,\n"
26653 "                const char *device);\n"
26654 "\n"
26655 msgstr ""
26656
26657 #. type: =head2
26658 #: ../src/guestfs-actions.pod:3543
26659 msgid "guestfs_is_ready"
26660 msgstr ""
26661
26662 #. type: verbatim
26663 #: ../src/guestfs-actions.pod:3545
26664 #, no-wrap
26665 msgid ""
26666 " int\n"
26667 " guestfs_is_ready (guestfs_h *g);\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../src/guestfs-actions.pod:3557
26673 msgid "guestfs_is_socket"
26674 msgstr ""
26675
26676 #. type: verbatim
26677 #: ../src/guestfs-actions.pod:3559
26678 #, no-wrap
26679 msgid ""
26680 " int\n"
26681 " guestfs_is_socket (guestfs_h *g,\n"
26682 "                    const char *path);\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../src/guestfs-actions.pod:3572
26688 msgid "guestfs_is_symlink"
26689 msgstr ""
26690
26691 #. type: verbatim
26692 #: ../src/guestfs-actions.pod:3574
26693 #, no-wrap
26694 msgid ""
26695 " int\n"
26696 " guestfs_is_symlink (guestfs_h *g,\n"
26697 "                     const char *path);\n"
26698 "\n"
26699 msgstr ""
26700
26701 #. type: =head2
26702 #: ../src/guestfs-actions.pod:3587
26703 msgid "guestfs_is_zero"
26704 msgstr ""
26705
26706 #. type: verbatim
26707 #: ../src/guestfs-actions.pod:3589
26708 #, no-wrap
26709 msgid ""
26710 " int\n"
26711 " guestfs_is_zero (guestfs_h *g,\n"
26712 "                  const char *path);\n"
26713 "\n"
26714 msgstr ""
26715
26716 #. type: textblock
26717 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
26718 msgid "(Added in 1.11.8)"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:3600
26723 msgid "guestfs_is_zero_device"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:3602
26728 #, no-wrap
26729 msgid ""
26730 " int\n"
26731 " guestfs_is_zero_device (guestfs_h *g,\n"
26732 "                         const char *device);\n"
26733 "\n"
26734 msgstr ""
26735
26736 #. type: =head2
26737 #: ../src/guestfs-actions.pod:3614
26738 msgid "guestfs_kill_subprocess"
26739 msgstr ""
26740
26741 #. type: verbatim
26742 #: ../src/guestfs-actions.pod:3616
26743 #, no-wrap
26744 msgid ""
26745 " int\n"
26746 " guestfs_kill_subprocess (guestfs_h *g);\n"
26747 "\n"
26748 msgstr ""
26749
26750 #. type: =head2
26751 #: ../src/guestfs-actions.pod:3625
26752 msgid "guestfs_launch"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:3627
26757 #, no-wrap
26758 msgid ""
26759 " int\n"
26760 " guestfs_launch (guestfs_h *g);\n"
26761 "\n"
26762 msgstr ""
26763
26764 #. type: =head2
26765 #: ../src/guestfs-actions.pod:3645
26766 msgid "guestfs_lchown"
26767 msgstr ""
26768
26769 #. type: verbatim
26770 #: ../src/guestfs-actions.pod:3647
26771 #, no-wrap
26772 msgid ""
26773 " int\n"
26774 " guestfs_lchown (guestfs_h *g,\n"
26775 "                 int owner,\n"
26776 "                 int group,\n"
26777 "                 const char *path);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: textblock
26782 #: ../src/guestfs-actions.pod:3653
26783 msgid ""
26784 "Change the file owner to C<owner> and group to C<group>.  This is like "
26785 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26786 "changed, not the target."
26787 msgstr ""
26788
26789 #. type: =head2
26790 #: ../src/guestfs-actions.pod:3665
26791 msgid "guestfs_lgetxattr"
26792 msgstr ""
26793
26794 #. type: verbatim
26795 #: ../src/guestfs-actions.pod:3667
26796 #, no-wrap
26797 msgid ""
26798 " char *\n"
26799 " guestfs_lgetxattr (guestfs_h *g,\n"
26800 "                    const char *path,\n"
26801 "                    const char *name,\n"
26802 "                    size_t *size_r);\n"
26803 "\n"
26804 msgstr ""
26805
26806 #. type: textblock
26807 #: ../src/guestfs-actions.pod:3687
26808 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:3695
26813 msgid "guestfs_lgetxattrs"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:3697
26818 #, no-wrap
26819 msgid ""
26820 " struct guestfs_xattr_list *\n"
26821 " guestfs_lgetxattrs (guestfs_h *g,\n"
26822 "                     const char *path);\n"
26823 "\n"
26824 msgstr ""
26825
26826 #. type: textblock
26827 #: ../src/guestfs-actions.pod:3701
26828 msgid ""
26829 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26830 "then it returns the extended attributes of the link itself."
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:3711
26835 msgid "guestfs_list_9p"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:3713
26840 #, no-wrap
26841 msgid ""
26842 " char **\n"
26843 " guestfs_list_9p (guestfs_h *g);\n"
26844 "\n"
26845 msgstr ""
26846
26847 #. type: =head2
26848 #: ../src/guestfs-actions.pod:3725
26849 msgid "guestfs_list_devices"
26850 msgstr ""
26851
26852 #. type: verbatim
26853 #: ../src/guestfs-actions.pod:3727
26854 #, no-wrap
26855 msgid ""
26856 " char **\n"
26857 " guestfs_list_devices (guestfs_h *g);\n"
26858 "\n"
26859 msgstr ""
26860
26861 #. type: =head2
26862 #: ../src/guestfs-actions.pod:3742
26863 msgid "guestfs_list_dm_devices"
26864 msgstr ""
26865
26866 #. type: verbatim
26867 #: ../src/guestfs-actions.pod:3744
26868 #, no-wrap
26869 msgid ""
26870 " char **\n"
26871 " guestfs_list_dm_devices (guestfs_h *g);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: textblock
26876 #: ../src/guestfs-actions.pod:3749
26877 msgid ""
26878 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26879 "previous call to C<guestfs_luks_open>."
26880 msgstr ""
26881
26882 #. type: textblock
26883 #: ../src/guestfs-actions.pod:3752
26884 msgid ""
26885 "Device mapper devices which correspond to logical volumes are I<not> "
26886 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26887 "volumes."
26888 msgstr ""
26889
26890 #. type: textblock
26891 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
26892 msgid "(Added in 1.11.15)"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:3762
26897 msgid "guestfs_list_filesystems"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:3764
26902 #, no-wrap
26903 msgid ""
26904 " char **\n"
26905 " guestfs_list_filesystems (guestfs_h *g);\n"
26906 "\n"
26907 msgstr ""
26908
26909 #. type: textblock
26910 #: ../src/guestfs-actions.pod:3784
26911 msgid ""
26912 "This command runs other libguestfs commands, which might include "
26913 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26914 "soon after launch and only when nothing is mounted."
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../src/guestfs-actions.pod:3788
26919 msgid ""
26920 "Not all of the filesystems returned will be mountable.  In particular, swap "
26921 "partitions are returned in the list.  Also this command does not check that "
26922 "each filesystem found is valid and mountable, and some filesystems might be "
26923 "mountable but require special options.  Filesystems may not all belong to a "
26924 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
26929 msgid "(Added in 1.5.15)"
26930 msgstr ""
26931
26932 #. type: =head2
26933 #: ../src/guestfs-actions.pod:3804
26934 msgid "guestfs_list_partitions"
26935 msgstr "guestfs_list_partitions"
26936
26937 #. type: verbatim
26938 #: ../src/guestfs-actions.pod:3806
26939 #, no-wrap
26940 msgid ""
26941 " char **\n"
26942 " guestfs_list_partitions (guestfs_h *g);\n"
26943 "\n"
26944 msgstr ""
26945 " char **\n"
26946 " guestfs_list_partitions (guestfs_h *g);\n"
26947 "\n"
26948
26949 #. type: textblock
26950 #: ../src/guestfs-actions.pod:3813
26951 msgid ""
26952 "This does not return logical volumes.  For that you will need to call "
26953 "C<guestfs_lvs>."
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:3824
26958 msgid "guestfs_ll"
26959 msgstr "guestfs_ll"
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:3826
26963 #, no-wrap
26964 msgid ""
26965 " char *\n"
26966 " guestfs_ll (guestfs_h *g,\n"
26967 "             const char *directory);\n"
26968 "\n"
26969 msgstr ""
26970 " char *\n"
26971 " guestfs_ll (guestfs_h *g,\n"
26972 "             const char *directory);\n"
26973 "\n"
26974
26975 #. type: =head2
26976 #: ../src/guestfs-actions.pod:3841
26977 msgid "guestfs_ln"
26978 msgstr "guestfs_ln"
26979
26980 #. type: verbatim
26981 #: ../src/guestfs-actions.pod:3843
26982 #, no-wrap
26983 msgid ""
26984 " int\n"
26985 " guestfs_ln (guestfs_h *g,\n"
26986 "             const char *target,\n"
26987 "             const char *linkname);\n"
26988 "\n"
26989 msgstr ""
26990 " int\n"
26991 " guestfs_ln (guestfs_h *g,\n"
26992 "             const char *target,\n"
26993 "             const char *linkname);\n"
26994 "\n"
26995
26996 #. type: =head2
26997 #: ../src/guestfs-actions.pod:3854
26998 msgid "guestfs_ln_f"
26999 msgstr "guestfs_ln_f"
27000
27001 #. type: verbatim
27002 #: ../src/guestfs-actions.pod:3856
27003 #, no-wrap
27004 msgid ""
27005 " int\n"
27006 " guestfs_ln_f (guestfs_h *g,\n"
27007 "               const char *target,\n"
27008 "               const char *linkname);\n"
27009 "\n"
27010 msgstr ""
27011 " int\n"
27012 " guestfs_ln_f (guestfs_h *g,\n"
27013 "               const char *target,\n"
27014 "               const char *linkname);\n"
27015 "\n"
27016
27017 #. type: =head2
27018 #: ../src/guestfs-actions.pod:3868
27019 msgid "guestfs_ln_s"
27020 msgstr "guestfs_ln_s"
27021
27022 #. type: verbatim
27023 #: ../src/guestfs-actions.pod:3870
27024 #, no-wrap
27025 msgid ""
27026 " int\n"
27027 " guestfs_ln_s (guestfs_h *g,\n"
27028 "               const char *target,\n"
27029 "               const char *linkname);\n"
27030 "\n"
27031 msgstr ""
27032 " int\n"
27033 " guestfs_ln_s (guestfs_h *g,\n"
27034 "               const char *target,\n"
27035 "               const char *linkname);\n"
27036 "\n"
27037
27038 #. type: =head2
27039 #: ../src/guestfs-actions.pod:3881
27040 msgid "guestfs_ln_sf"
27041 msgstr "guestfs_ln_sf"
27042
27043 #. type: verbatim
27044 #: ../src/guestfs-actions.pod:3883
27045 #, no-wrap
27046 msgid ""
27047 " int\n"
27048 " guestfs_ln_sf (guestfs_h *g,\n"
27049 "                const char *target,\n"
27050 "                const char *linkname);\n"
27051 "\n"
27052 msgstr ""
27053 " int\n"
27054 " guestfs_ln_sf (guestfs_h *g,\n"
27055 "                const char *target,\n"
27056 "                const char *linkname);\n"
27057 "\n"
27058
27059 #. type: =head2
27060 #: ../src/guestfs-actions.pod:3895
27061 msgid "guestfs_lremovexattr"
27062 msgstr "guestfs_lremovexattr"
27063
27064 #. type: verbatim
27065 #: ../src/guestfs-actions.pod:3897
27066 #, no-wrap
27067 msgid ""
27068 " int\n"
27069 " guestfs_lremovexattr (guestfs_h *g,\n"
27070 "                       const char *xattr,\n"
27071 "                       const char *path);\n"
27072 "\n"
27073 msgstr ""
27074 " int\n"
27075 " guestfs_lremovexattr (guestfs_h *g,\n"
27076 "                       const char *xattr,\n"
27077 "                       const char *path);\n"
27078 "\n"
27079
27080 #. type: textblock
27081 #: ../src/guestfs-actions.pod:3902
27082 msgid ""
27083 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27084 "link, then it removes an extended attribute of the link itself."
27085 msgstr ""
27086
27087 #. type: =head2
27088 #: ../src/guestfs-actions.pod:3910
27089 msgid "guestfs_ls"
27090 msgstr "guestfs_ls"
27091
27092 #. type: verbatim
27093 #: ../src/guestfs-actions.pod:3912
27094 #, no-wrap
27095 msgid ""
27096 " char **\n"
27097 " guestfs_ls (guestfs_h *g,\n"
27098 "             const char *directory);\n"
27099 "\n"
27100 msgstr ""
27101 " char **\n"
27102 " guestfs_ls (guestfs_h *g,\n"
27103 "             const char *directory);\n"
27104 "\n"
27105
27106 #. type: textblock
27107 #: ../src/guestfs-actions.pod:3920
27108 msgid ""
27109 "This command is mostly useful for interactive sessions.  Programs should "
27110 "probably use C<guestfs_readdir> instead."
27111 msgstr ""
27112
27113 #. type: =head2
27114 #: ../src/guestfs-actions.pod:3929
27115 msgid "guestfs_lsetxattr"
27116 msgstr "guestfs_lsetxattr"
27117
27118 #. type: verbatim
27119 #: ../src/guestfs-actions.pod:3931
27120 #, no-wrap
27121 msgid ""
27122 " int\n"
27123 " guestfs_lsetxattr (guestfs_h *g,\n"
27124 "                    const char *xattr,\n"
27125 "                    const char *val,\n"
27126 "                    int vallen,\n"
27127 "                    const char *path);\n"
27128 "\n"
27129 msgstr ""
27130 " int\n"
27131 " guestfs_lsetxattr (guestfs_h *g,\n"
27132 "                    const char *xattr,\n"
27133 "                    const char *val,\n"
27134 "                    int vallen,\n"
27135 "                    const char *path);\n"
27136 "\n"
27137
27138 #. type: textblock
27139 #: ../src/guestfs-actions.pod:3938
27140 msgid ""
27141 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27142 "then it sets an extended attribute of the link itself."
27143 msgstr ""
27144
27145 #. type: =head2
27146 #: ../src/guestfs-actions.pod:3946
27147 msgid "guestfs_lstat"
27148 msgstr "guestfs_lstat"
27149
27150 #. type: verbatim
27151 #: ../src/guestfs-actions.pod:3948
27152 #, no-wrap
27153 msgid ""
27154 " struct guestfs_stat *\n"
27155 " guestfs_lstat (guestfs_h *g,\n"
27156 "                const char *path);\n"
27157 "\n"
27158 msgstr ""
27159 " struct guestfs_stat *\n"
27160 " guestfs_lstat (guestfs_h *g,\n"
27161 "                const char *path);\n"
27162 "\n"
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:3954
27166 msgid ""
27167 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27168 "link, then the link is stat-ed, not the file it refers to."
27169 msgstr ""
27170
27171 #. type: textblock
27172 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
27173 msgid ""
27174 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27175 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27176 msgstr ""
27177
27178 #. type: textblock
27179 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
27180 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
27181 msgid "(Added in 0.9.2)"
27182 msgstr "(Додано у 0.9.2)"
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:3966
27186 msgid "guestfs_lstatlist"
27187 msgstr "guestfs_lstatlist"
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:3968
27191 #, no-wrap
27192 msgid ""
27193 " struct guestfs_stat_list *\n"
27194 " guestfs_lstatlist (guestfs_h *g,\n"
27195 "                    const char *path,\n"
27196 "                    char *const *names);\n"
27197 "\n"
27198 msgstr ""
27199 " struct guestfs_stat_list *\n"
27200 " guestfs_lstatlist (guestfs_h *g,\n"
27201 "                    const char *path,\n"
27202 "                    char *const *names);\n"
27203 "\n"
27204
27205 #. type: textblock
27206 #: ../src/guestfs-actions.pod:3973
27207 msgid ""
27208 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27209 "files, where all files are in the directory C<path>.  C<names> is the list "
27210 "of files from this directory."
27211 msgstr ""
27212
27213 #. type: textblock
27214 #: ../src/guestfs-actions.pod:3982
27215 msgid ""
27216 "This call is intended for programs that want to efficiently list a directory "
27217 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27218 "for a similarly efficient call for getting extended attributes.  Very long "
27219 "directory listings might cause the protocol message size to be exceeded, "
27220 "causing this call to fail.  The caller must split up such requests into "
27221 "smaller groups of names."
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../src/guestfs-actions.pod:3990
27226 msgid ""
27227 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27228 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:3996
27233 msgid "guestfs_luks_add_key"
27234 msgstr "guestfs_luks_add_key"
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:3998
27238 #, no-wrap
27239 msgid ""
27240 " int\n"
27241 " guestfs_luks_add_key (guestfs_h *g,\n"
27242 "                       const char *device,\n"
27243 "                       const char *key,\n"
27244 "                       const char *newkey,\n"
27245 "                       int keyslot);\n"
27246 "\n"
27247 msgstr ""
27248 " int\n"
27249 " guestfs_luks_add_key (guestfs_h *g,\n"
27250 "                       const char *device,\n"
27251 "                       const char *key,\n"
27252 "                       const char *newkey,\n"
27253 "                       int keyslot);\n"
27254 "\n"
27255
27256 #. type: textblock
27257 #: ../src/guestfs-actions.pod:4010
27258 msgid ""
27259 "Note that if C<keyslot> already contains a key, then this command will "
27260 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
27265 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
27266 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
27267 msgid ""
27268 "This function takes a key or passphrase parameter which could contain "
27269 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27270 "information."
27271 msgstr ""
27272
27273 #. type: textblock
27274 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
27275 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
27276 msgid "(Added in 1.5.2)"
27277 msgstr "(Додано у 1.5.2)"
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:4022
27281 msgid "guestfs_luks_close"
27282 msgstr "guestfs_luks_close"
27283
27284 #. type: verbatim
27285 #: ../src/guestfs-actions.pod:4024
27286 #, no-wrap
27287 msgid ""
27288 " int\n"
27289 " guestfs_luks_close (guestfs_h *g,\n"
27290 "                     const char *device);\n"
27291 "\n"
27292 msgstr ""
27293 " int\n"
27294 " guestfs_luks_close (guestfs_h *g,\n"
27295 "                     const char *device);\n"
27296 "\n"
27297
27298 #. type: textblock
27299 #: ../src/guestfs-actions.pod:4028
27300 msgid ""
27301 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27302 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27303 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27304 "underlying block device."
27305 msgstr ""
27306
27307 #. type: textblock
27308 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
27309 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
27310 #: ../src/guestfs-actions.pod:4255
27311 msgid "(Added in 1.5.1)"
27312 msgstr "(Додано у 1.5.1)"
27313
27314 #. type: =head2
27315 #: ../src/guestfs-actions.pod:4038
27316 msgid "guestfs_luks_format"
27317 msgstr "guestfs_luks_format"
27318
27319 #. type: verbatim
27320 #: ../src/guestfs-actions.pod:4040
27321 #, no-wrap
27322 msgid ""
27323 " int\n"
27324 " guestfs_luks_format (guestfs_h *g,\n"
27325 "                      const char *device,\n"
27326 "                      const char *key,\n"
27327 "                      int keyslot);\n"
27328 "\n"
27329 msgstr ""
27330 " int\n"
27331 " guestfs_luks_format (guestfs_h *g,\n"
27332 "                      const char *device,\n"
27333 "                      const char *key,\n"
27334 "                      int keyslot);\n"
27335 "\n"
27336
27337 #. type: =head2
27338 #: ../src/guestfs-actions.pod:4062
27339 msgid "guestfs_luks_format_cipher"
27340 msgstr "guestfs_luks_format_cipher"
27341
27342 #. type: verbatim
27343 #: ../src/guestfs-actions.pod:4064
27344 #, no-wrap
27345 msgid ""
27346 " int\n"
27347 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27348 "                             const char *device,\n"
27349 "                             const char *key,\n"
27350 "                             int keyslot,\n"
27351 "                             const char *cipher);\n"
27352 "\n"
27353 msgstr ""
27354 " int\n"
27355 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27356 "                             const char *device,\n"
27357 "                             const char *key,\n"
27358 "                             int keyslot,\n"
27359 "                             const char *cipher);\n"
27360 "\n"
27361
27362 #. type: textblock
27363 #: ../src/guestfs-actions.pod:4071
27364 msgid ""
27365 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27366 "set the C<cipher> used."
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:4085
27371 msgid "guestfs_luks_kill_slot"
27372 msgstr "guestfs_luks_kill_slot"
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:4087
27376 #, no-wrap
27377 msgid ""
27378 " int\n"
27379 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27380 "                         const char *device,\n"
27381 "                         const char *key,\n"
27382 "                         int keyslot);\n"
27383 "\n"
27384 msgstr ""
27385 " int\n"
27386 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27387 "                         const char *device,\n"
27388 "                         const char *key,\n"
27389 "                         int keyslot);\n"
27390 "\n"
27391
27392 #. type: =head2
27393 #: ../src/guestfs-actions.pod:4105
27394 msgid "guestfs_luks_open"
27395 msgstr "guestfs_luks_open"
27396
27397 #. type: verbatim
27398 #: ../src/guestfs-actions.pod:4107
27399 #, no-wrap
27400 msgid ""
27401 " int\n"
27402 " guestfs_luks_open (guestfs_h *g,\n"
27403 "                    const char *device,\n"
27404 "                    const char *key,\n"
27405 "                    const char *mapname);\n"
27406 "\n"
27407 msgstr ""
27408 " int\n"
27409 " guestfs_luks_open (guestfs_h *g,\n"
27410 "                    const char *device,\n"
27411 "                    const char *key,\n"
27412 "                    const char *mapname);\n"
27413 "\n"
27414
27415 #. type: textblock
27416 #: ../src/guestfs-actions.pod:4125
27417 msgid ""
27418 "If this block device contains LVM volume groups, then calling "
27419 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27420 "visible."
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:4129
27425 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27426 msgstr ""
27427
27428 #. type: =head2
27429 #: ../src/guestfs-actions.pod:4140
27430 msgid "guestfs_luks_open_ro"
27431 msgstr "guestfs_luks_open_ro"
27432
27433 #. type: verbatim
27434 #: ../src/guestfs-actions.pod:4142
27435 #, no-wrap
27436 msgid ""
27437 " int\n"
27438 " guestfs_luks_open_ro (guestfs_h *g,\n"
27439 "                       const char *device,\n"
27440 "                       const char *key,\n"
27441 "                       const char *mapname);\n"
27442 "\n"
27443 msgstr ""
27444 " int\n"
27445 " guestfs_luks_open_ro (guestfs_h *g,\n"
27446 "                       const char *device,\n"
27447 "                       const char *key,\n"
27448 "                       const char *mapname);\n"
27449 "\n"
27450
27451 #. type: textblock
27452 #: ../src/guestfs-actions.pod:4148
27453 msgid ""
27454 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27455 "created."
27456 msgstr ""
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:4159
27460 msgid "guestfs_lvcreate"
27461 msgstr "guestfs_lvcreate"
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:4161
27465 #, no-wrap
27466 msgid ""
27467 " int\n"
27468 " guestfs_lvcreate (guestfs_h *g,\n"
27469 "                   const char *logvol,\n"
27470 "                   const char *volgroup,\n"
27471 "                   int mbytes);\n"
27472 "\n"
27473 msgstr ""
27474 " int\n"
27475 " guestfs_lvcreate (guestfs_h *g,\n"
27476 "                   const char *logvol,\n"
27477 "                   const char *volgroup,\n"
27478 "                   int mbytes);\n"
27479 "\n"
27480
27481 #. type: =head2
27482 #: ../src/guestfs-actions.pod:4174
27483 msgid "guestfs_lvm_canonical_lv_name"
27484 msgstr "guestfs_lvm_canonical_lv_name"
27485
27486 #. type: verbatim
27487 #: ../src/guestfs-actions.pod:4176
27488 #, no-wrap
27489 msgid ""
27490 " char *\n"
27491 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27492 "                                const char *lvname);\n"
27493 "\n"
27494 msgstr ""
27495 " char *\n"
27496 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27497 "                                const char *lvname);\n"
27498 "\n"
27499
27500 #. type: textblock
27501 #: ../src/guestfs-actions.pod:4187
27502 msgid "See also C<guestfs_is_lv>."
27503 msgstr ""
27504
27505 #. type: textblock
27506 #: ../src/guestfs-actions.pod:4192
27507 msgid "(Added in 1.5.24)"
27508 msgstr "(Додано у 1.5.24)"
27509
27510 #. type: =head2
27511 #: ../src/guestfs-actions.pod:4194
27512 msgid "guestfs_lvm_clear_filter"
27513 msgstr "guestfs_lvm_clear_filter"
27514
27515 #. type: verbatim
27516 #: ../src/guestfs-actions.pod:4196
27517 #, no-wrap
27518 msgid ""
27519 " int\n"
27520 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27521 "\n"
27522 msgstr ""
27523 " int\n"
27524 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27525 "\n"
27526
27527 #. type: textblock
27528 #: ../src/guestfs-actions.pod:4199
27529 msgid ""
27530 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27531 "see every block device."
27532 msgstr ""
27533
27534 #. type: =head2
27535 #: ../src/guestfs-actions.pod:4209
27536 msgid "guestfs_lvm_remove_all"
27537 msgstr "guestfs_lvm_remove_all"
27538
27539 #. type: verbatim
27540 #: ../src/guestfs-actions.pod:4211
27541 #, no-wrap
27542 msgid ""
27543 " int\n"
27544 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27545 "\n"
27546 msgstr ""
27547 " int\n"
27548 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27549 "\n"
27550
27551 #. type: =head2
27552 #: ../src/guestfs-actions.pod:4224
27553 msgid "guestfs_lvm_set_filter"
27554 msgstr "guestfs_lvm_set_filter"
27555
27556 #. type: verbatim
27557 #: ../src/guestfs-actions.pod:4226
27558 #, no-wrap
27559 msgid ""
27560 " int\n"
27561 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27562 "                         char *const *devices);\n"
27563 "\n"
27564 msgstr ""
27565 " int\n"
27566 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27567 "                         char *const *devices);\n"
27568 "\n"
27569
27570 #. type: =head2
27571 #: ../src/guestfs-actions.pod:4257
27572 msgid "guestfs_lvremove"
27573 msgstr "guestfs_lvremove"
27574
27575 #. type: verbatim
27576 #: ../src/guestfs-actions.pod:4259
27577 #, no-wrap
27578 msgid ""
27579 " int\n"
27580 " guestfs_lvremove (guestfs_h *g,\n"
27581 "                   const char *device);\n"
27582 "\n"
27583 msgstr ""
27584 " int\n"
27585 " guestfs_lvremove (guestfs_h *g,\n"
27586 "                   const char *device);\n"
27587 "\n"
27588
27589 #. type: textblock
27590 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
27591 #: ../src/guestfs-actions.pod:7508
27592 msgid "(Added in 1.0.13)"
27593 msgstr "(Додано у 1.0.13)"
27594
27595 #. type: =head2
27596 #: ../src/guestfs-actions.pod:4273
27597 msgid "guestfs_lvrename"
27598 msgstr "guestfs_lvrename"
27599
27600 #. type: verbatim
27601 #: ../src/guestfs-actions.pod:4275
27602 #, no-wrap
27603 msgid ""
27604 " int\n"
27605 " guestfs_lvrename (guestfs_h *g,\n"
27606 "                   const char *logvol,\n"
27607 "                   const char *newlogvol);\n"
27608 "\n"
27609 msgstr ""
27610 " int\n"
27611 " guestfs_lvrename (guestfs_h *g,\n"
27612 "                   const char *logvol,\n"
27613 "                   const char *newlogvol);\n"
27614 "\n"
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
27618 msgid "(Added in 1.0.83)"
27619 msgstr "(Додано у 1.0.83)"
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:4286
27623 msgid "guestfs_lvresize"
27624 msgstr "guestfs_lvresize"
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:4288
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_lvresize (guestfs_h *g,\n"
27632 "                   const char *device,\n"
27633 "                   int mbytes);\n"
27634 "\n"
27635 msgstr ""
27636 " int\n"
27637 " guestfs_lvresize (guestfs_h *g,\n"
27638 "                   const char *device,\n"
27639 "                   int mbytes);\n"
27640 "\n"
27641
27642 #. type: =head2
27643 #: ../src/guestfs-actions.pod:4301
27644 msgid "guestfs_lvresize_free"
27645 msgstr "guestfs_lvresize_free"
27646
27647 #. type: verbatim
27648 #: ../src/guestfs-actions.pod:4303
27649 #, no-wrap
27650 msgid ""
27651 " int\n"
27652 " guestfs_lvresize_free (guestfs_h *g,\n"
27653 "                        const char *lv,\n"
27654 "                        int percent);\n"
27655 "\n"
27656 msgstr ""
27657 " int\n"
27658 " guestfs_lvresize_free (guestfs_h *g,\n"
27659 "                        const char *lv,\n"
27660 "                        int percent);\n"
27661 "\n"
27662
27663 #. type: textblock
27664 #: ../src/guestfs-actions.pod:4316
27665 msgid "(Added in 1.3.3)"
27666 msgstr "(Додано у 1.3.3)"
27667
27668 #. type: =head2
27669 #: ../src/guestfs-actions.pod:4318
27670 msgid "guestfs_lvs"
27671 msgstr "guestfs_lvs"
27672
27673 #. type: verbatim
27674 #: ../src/guestfs-actions.pod:4320
27675 #, no-wrap
27676 msgid ""
27677 " char **\n"
27678 " guestfs_lvs (guestfs_h *g);\n"
27679 "\n"
27680 msgstr ""
27681 " char **\n"
27682 " guestfs_lvs (guestfs_h *g);\n"
27683 "\n"
27684
27685 #. type: textblock
27686 #: ../src/guestfs-actions.pod:4329
27687 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27688 msgstr ""
27689
27690 #. type: =head2
27691 #: ../src/guestfs-actions.pod:4337
27692 msgid "guestfs_lvs_full"
27693 msgstr "guestfs_lvs_full"
27694
27695 #. type: verbatim
27696 #: ../src/guestfs-actions.pod:4339
27697 #, no-wrap
27698 msgid ""
27699 " struct guestfs_lvm_lv_list *\n"
27700 " guestfs_lvs_full (guestfs_h *g);\n"
27701 "\n"
27702 msgstr ""
27703 " struct guestfs_lvm_lv_list *\n"
27704 " guestfs_lvs_full (guestfs_h *g);\n"
27705 "\n"
27706
27707 #. type: textblock
27708 #: ../src/guestfs-actions.pod:4345
27709 msgid ""
27710 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27711 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27712 msgstr ""
27713
27714 #. type: =head2
27715 #: ../src/guestfs-actions.pod:4351
27716 msgid "guestfs_lvuuid"
27717 msgstr "guestfs_lvuuid"
27718
27719 #. type: verbatim
27720 #: ../src/guestfs-actions.pod:4353
27721 #, no-wrap
27722 msgid ""
27723 " char *\n"
27724 " guestfs_lvuuid (guestfs_h *g,\n"
27725 "                 const char *device);\n"
27726 "\n"
27727 msgstr ""
27728 " char *\n"
27729 " guestfs_lvuuid (guestfs_h *g,\n"
27730 "                 const char *device);\n"
27731 "\n"
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:4364
27735 msgid "guestfs_lxattrlist"
27736 msgstr "guestfs_lxattrlist"
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:4366
27740 #, no-wrap
27741 msgid ""
27742 " struct guestfs_xattr_list *\n"
27743 " guestfs_lxattrlist (guestfs_h *g,\n"
27744 "                     const char *path,\n"
27745 "                     char *const *names);\n"
27746 "\n"
27747 msgstr ""
27748 " struct guestfs_xattr_list *\n"
27749 " guestfs_lxattrlist (guestfs_h *g,\n"
27750 "                     const char *path,\n"
27751 "                     char *const *names);\n"
27752 "\n"
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:4385
27756 msgid ""
27757 "This call is intended for programs that want to efficiently list a directory "
27758 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27759 "a similarly efficient call for getting standard stats.  Very long directory "
27760 "listings might cause the protocol message size to be exceeded, causing this "
27761 "call to fail.  The caller must split up such requests into smaller groups of "
27762 "names."
27763 msgstr ""
27764
27765 #. type: =head2
27766 #: ../src/guestfs-actions.pod:4399
27767 msgid "guestfs_mkdir"
27768 msgstr "guestfs_mkdir"
27769
27770 #. type: verbatim
27771 #: ../src/guestfs-actions.pod:4401
27772 #, no-wrap
27773 msgid ""
27774 " int\n"
27775 " guestfs_mkdir (guestfs_h *g,\n"
27776 "                const char *path);\n"
27777 "\n"
27778 msgstr ""
27779 " int\n"
27780 " guestfs_mkdir (guestfs_h *g,\n"
27781 "                const char *path);\n"
27782 "\n"
27783
27784 #. type: =head2
27785 #: ../src/guestfs-actions.pod:4411
27786 msgid "guestfs_mkdir_mode"
27787 msgstr "guestfs_mkdir_mode"
27788
27789 #. type: verbatim
27790 #: ../src/guestfs-actions.pod:4413
27791 #, no-wrap
27792 msgid ""
27793 " int\n"
27794 " guestfs_mkdir_mode (guestfs_h *g,\n"
27795 "                     const char *path,\n"
27796 "                     int mode);\n"
27797 "\n"
27798 msgstr ""
27799 " int\n"
27800 " guestfs_mkdir_mode (guestfs_h *g,\n"
27801 "                     const char *path,\n"
27802 "                     int mode);\n"
27803 "\n"
27804
27805 #. type: textblock
27806 #: ../src/guestfs-actions.pod:4425
27807 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:4431
27812 msgid "guestfs_mkdir_p"
27813 msgstr "guestfs_mkdir_p"
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:4433
27817 #, no-wrap
27818 msgid ""
27819 " int\n"
27820 " guestfs_mkdir_p (guestfs_h *g,\n"
27821 "                  const char *path);\n"
27822 "\n"
27823 msgstr ""
27824 " int\n"
27825 " guestfs_mkdir_p (guestfs_h *g,\n"
27826 "                  const char *path);\n"
27827 "\n"
27828
27829 #. type: =head2
27830 #: ../src/guestfs-actions.pod:4444
27831 msgid "guestfs_mkdtemp"
27832 msgstr "guestfs_mkdtemp"
27833
27834 #. type: verbatim
27835 #: ../src/guestfs-actions.pod:4446
27836 #, no-wrap
27837 msgid ""
27838 " char *\n"
27839 " guestfs_mkdtemp (guestfs_h *g,\n"
27840 "                  const char *template);\n"
27841 "\n"
27842 msgstr ""
27843 " char *\n"
27844 " guestfs_mkdtemp (guestfs_h *g,\n"
27845 "                  const char *template);\n"
27846 "\n"
27847
27848 #. type: =head2
27849 #: ../src/guestfs-actions.pod:4474
27850 msgid "guestfs_mke2fs_J"
27851 msgstr "guestfs_mke2fs_J"
27852
27853 #. type: verbatim
27854 #: ../src/guestfs-actions.pod:4476
27855 #, no-wrap
27856 msgid ""
27857 " int\n"
27858 " guestfs_mke2fs_J (guestfs_h *g,\n"
27859 "                   const char *fstype,\n"
27860 "                   int blocksize,\n"
27861 "                   const char *device,\n"
27862 "                   const char *journal);\n"
27863 "\n"
27864 msgstr ""
27865 " int\n"
27866 " guestfs_mke2fs_J (guestfs_h *g,\n"
27867 "                   const char *fstype,\n"
27868 "                   int blocksize,\n"
27869 "                   const char *device,\n"
27870 "                   const char *journal);\n"
27871 "\n"
27872
27873 #. type: textblock
27874 #: ../src/guestfs-actions.pod:4489
27875 msgid "See also C<guestfs_mke2journal>."
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
27880 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
27881 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
27882 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
27883 msgid "(Added in 1.0.68)"
27884 msgstr "(Додано у 1.0.68)"
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:4495
27888 msgid "guestfs_mke2fs_JL"
27889 msgstr "guestfs_mke2fs_JL"
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:4497
27893 #, no-wrap
27894 msgid ""
27895 " int\n"
27896 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27897 "                    const char *fstype,\n"
27898 "                    int blocksize,\n"
27899 "                    const char *device,\n"
27900 "                    const char *label);\n"
27901 "\n"
27902 msgstr ""
27903 " int\n"
27904 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27905 "                    const char *fstype,\n"
27906 "                    int blocksize,\n"
27907 "                    const char *device,\n"
27908 "                    const char *label);\n"
27909 "\n"
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:4507
27913 msgid "See also C<guestfs_mke2journal_L>."
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:4513
27918 msgid "guestfs_mke2fs_JU"
27919 msgstr "guestfs_mke2fs_JU"
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:4515
27923 #, no-wrap
27924 msgid ""
27925 " int\n"
27926 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27927 "                    const char *fstype,\n"
27928 "                    int blocksize,\n"
27929 "                    const char *device,\n"
27930 "                    const char *uuid);\n"
27931 "\n"
27932 msgstr ""
27933 " int\n"
27934 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27935 "                    const char *fstype,\n"
27936 "                    int blocksize,\n"
27937 "                    const char *device,\n"
27938 "                    const char *uuid);\n"
27939 "\n"
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:4525
27943 msgid "See also C<guestfs_mke2journal_U>."
27944 msgstr ""
27945
27946 #. type: =head2
27947 #: ../src/guestfs-actions.pod:4531
27948 msgid "guestfs_mke2journal"
27949 msgstr "guestfs_mke2journal"
27950
27951 #. type: verbatim
27952 #: ../src/guestfs-actions.pod:4533
27953 #, no-wrap
27954 msgid ""
27955 " int\n"
27956 " guestfs_mke2journal (guestfs_h *g,\n"
27957 "                      int blocksize,\n"
27958 "                      const char *device);\n"
27959 "\n"
27960 msgstr ""
27961 " int\n"
27962 " guestfs_mke2journal (guestfs_h *g,\n"
27963 "                      int blocksize,\n"
27964 "                      const char *device);\n"
27965 "\n"
27966
27967 #. type: =head2
27968 #: ../src/guestfs-actions.pod:4547
27969 msgid "guestfs_mke2journal_L"
27970 msgstr "guestfs_mke2journal_L"
27971
27972 #. type: verbatim
27973 #: ../src/guestfs-actions.pod:4549
27974 #, no-wrap
27975 msgid ""
27976 " int\n"
27977 " guestfs_mke2journal_L (guestfs_h *g,\n"
27978 "                        int blocksize,\n"
27979 "                        const char *label,\n"
27980 "                        const char *device);\n"
27981 "\n"
27982 msgstr ""
27983 " int\n"
27984 " guestfs_mke2journal_L (guestfs_h *g,\n"
27985 "                        int blocksize,\n"
27986 "                        const char *label,\n"
27987 "                        const char *device);\n"
27988 "\n"
27989
27990 #. type: =head2
27991 #: ../src/guestfs-actions.pod:4561
27992 msgid "guestfs_mke2journal_U"
27993 msgstr "guestfs_mke2journal_U"
27994
27995 #. type: verbatim
27996 #: ../src/guestfs-actions.pod:4563
27997 #, no-wrap
27998 msgid ""
27999 " int\n"
28000 " guestfs_mke2journal_U (guestfs_h *g,\n"
28001 "                        int blocksize,\n"
28002 "                        const char *uuid,\n"
28003 "                        const char *device);\n"
28004 "\n"
28005 msgstr ""
28006 " int\n"
28007 " guestfs_mke2journal_U (guestfs_h *g,\n"
28008 "                        int blocksize,\n"
28009 "                        const char *uuid,\n"
28010 "                        const char *device);\n"
28011 "\n"
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:4575
28015 msgid "guestfs_mkfifo"
28016 msgstr "guestfs_mkfifo"
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:4577
28020 #, no-wrap
28021 msgid ""
28022 " int\n"
28023 " guestfs_mkfifo (guestfs_h *g,\n"
28024 "                 int mode,\n"
28025 "                 const char *path);\n"
28026 "\n"
28027 msgstr ""
28028 " int\n"
28029 " guestfs_mkfifo (guestfs_h *g,\n"
28030 "                 int mode,\n"
28031 "                 const char *path);\n"
28032 "\n"
28033
28034 #. type: textblock
28035 #: ../src/guestfs-actions.pod:4582
28036 msgid ""
28037 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28038 "is just a convenient wrapper around C<guestfs_mknod>."
28039 msgstr ""
28040
28041 #. type: =head2
28042 #: ../src/guestfs-actions.pod:4592
28043 msgid "guestfs_mkfs"
28044 msgstr "guestfs_mkfs"
28045
28046 #. type: verbatim
28047 #: ../src/guestfs-actions.pod:4594
28048 #, no-wrap
28049 msgid ""
28050 " int\n"
28051 " guestfs_mkfs (guestfs_h *g,\n"
28052 "               const char *fstype,\n"
28053 "               const char *device);\n"
28054 "\n"
28055 msgstr ""
28056 " int\n"
28057 " guestfs_mkfs (guestfs_h *g,\n"
28058 "               const char *fstype,\n"
28059 "               const char *device);\n"
28060 "\n"
28061
28062 #. type: =head2
28063 #: ../src/guestfs-actions.pod:4607
28064 msgid "guestfs_mkfs_b"
28065 msgstr "guestfs_mkfs_b"
28066
28067 #. type: verbatim
28068 #: ../src/guestfs-actions.pod:4609
28069 #, no-wrap
28070 msgid ""
28071 " int\n"
28072 " guestfs_mkfs_b (guestfs_h *g,\n"
28073 "                 const char *fstype,\n"
28074 "                 int blocksize,\n"
28075 "                 const char *device);\n"
28076 "\n"
28077 msgstr ""
28078 " int\n"
28079 " guestfs_mkfs_b (guestfs_h *g,\n"
28080 "                 const char *fstype,\n"
28081 "                 int blocksize,\n"
28082 "                 const char *device);\n"
28083 "\n"
28084
28085 #. type: textblock
28086 #: ../src/guestfs-actions.pod:4615
28087 msgid ""
28088 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28089 "block size of the resulting filesystem.  Supported block sizes depend on the "
28090 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28091 msgstr ""
28092
28093 #. type: textblock
28094 #: ../src/guestfs-actions.pod:4625
28095 msgid ""
28096 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
28097 "call instead."
28098 msgstr ""
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:4634
28102 msgid "guestfs_mkfs_opts"
28103 msgstr "guestfs_mkfs_opts"
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:4636
28107 #, no-wrap
28108 msgid ""
28109 " int\n"
28110 " guestfs_mkfs_opts (guestfs_h *g,\n"
28111 "                    const char *fstype,\n"
28112 "                    const char *device,\n"
28113 "                    ...);\n"
28114 "\n"
28115 msgstr ""
28116 " int\n"
28117 " guestfs_mkfs_opts (guestfs_h *g,\n"
28118 "                    const char *fstype,\n"
28119 "                    const char *device,\n"
28120 "                    ...);\n"
28121 "\n"
28122
28123 #. type: verbatim
28124 #: ../src/guestfs-actions.pod:4647
28125 #, no-wrap
28126 msgid ""
28127 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28128 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28129 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28130 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28131 "\n"
28132 msgstr ""
28133
28134 #. type: textblock
28135 #: ../src/guestfs-actions.pod:4695
28136 msgid "(Added in 1.7.19)"
28137 msgstr "(Додано у 1.7.19)"
28138
28139 #. type: =head2
28140 #: ../src/guestfs-actions.pod:4697
28141 msgid "guestfs_mkfs_opts_va"
28142 msgstr "guestfs_mkfs_opts_va"
28143
28144 #. type: verbatim
28145 #: ../src/guestfs-actions.pod:4699
28146 #, no-wrap
28147 msgid ""
28148 " int\n"
28149 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28150 "                       const char *fstype,\n"
28151 "                       const char *device,\n"
28152 "                       va_list args);\n"
28153 "\n"
28154 msgstr ""
28155 " int\n"
28156 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28157 "                       const char *fstype,\n"
28158 "                       const char *device,\n"
28159 "                       va_list args);\n"
28160 "\n"
28161
28162 #. type: textblock
28163 #: ../src/guestfs-actions.pod:4705
28164 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:4709
28169 msgid "guestfs_mkfs_opts_argv"
28170 msgstr "guestfs_mkfs_opts_argv"
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:4711
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28178 "                         const char *fstype,\n"
28179 "                         const char *device,\n"
28180 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28181 "\n"
28182 msgstr ""
28183 " int\n"
28184 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28185 "                         const char *fstype,\n"
28186 "                         const char *device,\n"
28187 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28188 "\n"
28189
28190 #. type: textblock
28191 #: ../src/guestfs-actions.pod:4717
28192 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28193 msgstr ""
28194
28195 #. type: =head2
28196 #: ../src/guestfs-actions.pod:4721
28197 msgid "guestfs_mkmountpoint"
28198 msgstr "guestfs_mkmountpoint"
28199
28200 #. type: verbatim
28201 #: ../src/guestfs-actions.pod:4723
28202 #, no-wrap
28203 msgid ""
28204 " int\n"
28205 " guestfs_mkmountpoint (guestfs_h *g,\n"
28206 "                       const char *exemptpath);\n"
28207 "\n"
28208 msgstr ""
28209 " int\n"
28210 " guestfs_mkmountpoint (guestfs_h *g,\n"
28211 "                       const char *exemptpath);\n"
28212 "\n"
28213
28214 #. type: textblock
28215 #: ../src/guestfs-actions.pod:4727
28216 msgid ""
28217 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28218 "that can be used to create extra mountpoints before mounting the first "
28219 "filesystem."
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:4751
28224 msgid ""
28225 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28226 "may get unexpected errors if you try to mix these calls.  It is safest to "
28227 "manually unmount filesystems and remove mountpoints after use."
28228 msgstr ""
28229
28230 #. type: textblock
28231 #: ../src/guestfs-actions.pod:4755
28232 msgid ""
28233 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28234 "first, so for this to work for manual mountpoints, you must ensure that the "
28235 "innermost mountpoints have the longest pathnames, as in the example code "
28236 "above."
28237 msgstr ""
28238
28239 #. type: textblock
28240 #: ../src/guestfs-actions.pod:4762
28241 msgid ""
28242 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28243 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28244 "can also trigger these issues."
28245 msgstr ""
28246
28247 #. type: textblock
28248 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
28249 #: ../src/guestfs-actions.pod:6094
28250 msgid "(Added in 1.0.62)"
28251 msgstr "(Додано у 1.0.62)"
28252
28253 #. type: =head2
28254 #: ../src/guestfs-actions.pod:4770
28255 msgid "guestfs_mknod"
28256 msgstr ""
28257
28258 #. type: verbatim
28259 #: ../src/guestfs-actions.pod:4772
28260 #, no-wrap
28261 msgid ""
28262 " int\n"
28263 " guestfs_mknod (guestfs_h *g,\n"
28264 "                int mode,\n"
28265 "                int devmajor,\n"
28266 "                int devminor,\n"
28267 "                const char *path);\n"
28268 "\n"
28269 msgstr ""
28270
28271 #. type: textblock
28272 #: ../src/guestfs-actions.pod:4787
28273 msgid ""
28274 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28275 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28276 "regular file).  These constants are available in the standard Linux header "
28277 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28278 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28279 "the appropriate constant for you."
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:4801
28284 msgid "guestfs_mknod_b"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:4803
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_mknod_b (guestfs_h *g,\n"
28293 "                  int mode,\n"
28294 "                  int devmajor,\n"
28295 "                  int devminor,\n"
28296 "                  const char *path);\n"
28297 "\n"
28298 msgstr ""
28299
28300 #. type: textblock
28301 #: ../src/guestfs-actions.pod:4810
28302 msgid ""
28303 "This call creates a block device node called C<path> with mode C<mode> and "
28304 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28305 "wrapper around C<guestfs_mknod>."
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../src/guestfs-actions.pod:4820
28310 msgid "guestfs_mknod_c"
28311 msgstr ""
28312
28313 #. type: verbatim
28314 #: ../src/guestfs-actions.pod:4822
28315 #, no-wrap
28316 msgid ""
28317 " int\n"
28318 " guestfs_mknod_c (guestfs_h *g,\n"
28319 "                  int mode,\n"
28320 "                  int devmajor,\n"
28321 "                  int devminor,\n"
28322 "                  const char *path);\n"
28323 "\n"
28324 msgstr ""
28325
28326 #. type: textblock
28327 #: ../src/guestfs-actions.pod:4829
28328 msgid ""
28329 "This call creates a char device node called C<path> with mode C<mode> and "
28330 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28331 "wrapper around C<guestfs_mknod>."
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:4839
28336 msgid "guestfs_mkswap"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:4841
28341 #, no-wrap
28342 msgid ""
28343 " int\n"
28344 " guestfs_mkswap (guestfs_h *g,\n"
28345 "                 const char *device);\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:4851
28351 msgid "guestfs_mkswap_L"
28352 msgstr ""
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:4853
28356 #, no-wrap
28357 msgid ""
28358 " int\n"
28359 " guestfs_mkswap_L (guestfs_h *g,\n"
28360 "                   const char *label,\n"
28361 "                   const char *device);\n"
28362 "\n"
28363 msgstr ""
28364
28365 #. type: =head2
28366 #: ../src/guestfs-actions.pod:4868
28367 msgid "guestfs_mkswap_U"
28368 msgstr ""
28369
28370 #. type: verbatim
28371 #: ../src/guestfs-actions.pod:4870
28372 #, no-wrap
28373 msgid ""
28374 " int\n"
28375 " guestfs_mkswap_U (guestfs_h *g,\n"
28376 "                   const char *uuid,\n"
28377 "                   const char *device);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:4881
28383 msgid "guestfs_mkswap_file"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:4883
28388 #, no-wrap
28389 msgid ""
28390 " int\n"
28391 " guestfs_mkswap_file (guestfs_h *g,\n"
28392 "                      const char *path);\n"
28393 "\n"
28394 msgstr ""
28395
28396 #. type: textblock
28397 #: ../src/guestfs-actions.pod:4889
28398 msgid ""
28399 "This command just writes a swap file signature to an existing file.  To "
28400 "create the file itself, use something like C<guestfs_fallocate>."
28401 msgstr ""
28402
28403 #. type: =head2
28404 #: ../src/guestfs-actions.pod:4896
28405 msgid "guestfs_modprobe"
28406 msgstr ""
28407
28408 #. type: verbatim
28409 #: ../src/guestfs-actions.pod:4898
28410 #, no-wrap
28411 msgid ""
28412 " int\n"
28413 " guestfs_modprobe (guestfs_h *g,\n"
28414 "                   const char *modulename);\n"
28415 "\n"
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:4911
28420 msgid "guestfs_mount"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:4913
28425 #, no-wrap
28426 msgid ""
28427 " int\n"
28428 " guestfs_mount (guestfs_h *g,\n"
28429 "                const char *device,\n"
28430 "                const char *mountpoint);\n"
28431 "\n"
28432 msgstr ""
28433
28434 #. type: textblock
28435 #: ../src/guestfs-actions.pod:4932
28436 msgid ""
28437 "B<Important note:> When you use this call, the filesystem options C<sync> "
28438 "and C<noatime> are set implicitly.  This was originally done because we "
28439 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28440 "very large negative performance impact and negligible effect on "
28441 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28442 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28443 "(use an empty string for the first parameter if you don't want any options)."
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:4944
28448 msgid ""
28449 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
28450 "call instead."
28451 msgstr ""
28452
28453 #. type: =head2
28454 #: ../src/guestfs-actions.pod:4953
28455 msgid "guestfs_mount_9p"
28456 msgstr ""
28457
28458 #. type: verbatim
28459 #: ../src/guestfs-actions.pod:4955
28460 #, no-wrap
28461 msgid ""
28462 " int\n"
28463 " guestfs_mount_9p (guestfs_h *g,\n"
28464 "                   const char *mounttag,\n"
28465 "                   const char *mountpoint,\n"
28466 "                   ...);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: verbatim
28471 #: ../src/guestfs-actions.pod:4966
28472 #, no-wrap
28473 msgid ""
28474 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28475 "\n"
28476 msgstr ""
28477
28478 #. type: =head2
28479 #: ../src/guestfs-actions.pod:4979
28480 msgid "guestfs_mount_9p_va"
28481 msgstr ""
28482
28483 #. type: verbatim
28484 #: ../src/guestfs-actions.pod:4981
28485 #, no-wrap
28486 msgid ""
28487 " int\n"
28488 " guestfs_mount_9p_va (guestfs_h *g,\n"
28489 "                      const char *mounttag,\n"
28490 "                      const char *mountpoint,\n"
28491 "                      va_list args);\n"
28492 "\n"
28493 msgstr ""
28494
28495 #. type: textblock
28496 #: ../src/guestfs-actions.pod:4987
28497 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28498 msgstr ""
28499
28500 #. type: =head2
28501 #: ../src/guestfs-actions.pod:4991
28502 msgid "guestfs_mount_9p_argv"
28503 msgstr ""
28504
28505 #. type: verbatim
28506 #: ../src/guestfs-actions.pod:4993
28507 #, no-wrap
28508 msgid ""
28509 " int\n"
28510 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28511 "                        const char *mounttag,\n"
28512 "                        const char *mountpoint,\n"
28513 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28514 "\n"
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../src/guestfs-actions.pod:4999
28519 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28520 msgstr ""
28521
28522 #. type: =head2
28523 #: ../src/guestfs-actions.pod:5003
28524 msgid "guestfs_mount_loop"
28525 msgstr ""
28526
28527 #. type: verbatim
28528 #: ../src/guestfs-actions.pod:5005
28529 #, no-wrap
28530 msgid ""
28531 " int\n"
28532 " guestfs_mount_loop (guestfs_h *g,\n"
28533 "                     const char *file,\n"
28534 "                     const char *mountpoint);\n"
28535 "\n"
28536 msgstr ""
28537
28538 #. type: =head2
28539 #: ../src/guestfs-actions.pod:5018
28540 msgid "guestfs_mount_options"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:5020
28545 #, no-wrap
28546 msgid ""
28547 " int\n"
28548 " guestfs_mount_options (guestfs_h *g,\n"
28549 "                        const char *options,\n"
28550 "                        const char *device,\n"
28551 "                        const char *mountpoint);\n"
28552 "\n"
28553 msgstr ""
28554
28555 #. type: textblock
28556 #: ../src/guestfs-actions.pod:5026
28557 msgid ""
28558 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28559 "the mount options as for the L<mount(8)> I<-o> flag."
28560 msgstr ""
28561
28562 #. type: textblock
28563 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
28564 #: ../src/guestfs-actions.pod:5067
28565 msgid "(Added in 1.0.10)"
28566 msgstr ""
28567
28568 #. type: =head2
28569 #: ../src/guestfs-actions.pod:5038
28570 msgid "guestfs_mount_ro"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../src/guestfs-actions.pod:5040
28575 #, no-wrap
28576 msgid ""
28577 " int\n"
28578 " guestfs_mount_ro (guestfs_h *g,\n"
28579 "                   const char *device,\n"
28580 "                   const char *mountpoint);\n"
28581 "\n"
28582 msgstr ""
28583
28584 #. type: textblock
28585 #: ../src/guestfs-actions.pod:5045
28586 msgid ""
28587 "This is the same as the C<guestfs_mount> command, but it mounts the "
28588 "filesystem with the read-only (I<-o ro>) flag."
28589 msgstr ""
28590
28591 #. type: =head2
28592 #: ../src/guestfs-actions.pod:5052
28593 msgid "guestfs_mount_vfs"
28594 msgstr ""
28595
28596 #. type: verbatim
28597 #: ../src/guestfs-actions.pod:5054
28598 #, no-wrap
28599 msgid ""
28600 " int\n"
28601 " guestfs_mount_vfs (guestfs_h *g,\n"
28602 "                    const char *options,\n"
28603 "                    const char *vfstype,\n"
28604 "                    const char *device,\n"
28605 "                    const char *mountpoint);\n"
28606 "\n"
28607 msgstr ""
28608
28609 #. type: textblock
28610 #: ../src/guestfs-actions.pod:5061
28611 msgid ""
28612 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28613 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28614 "t> flags."
28615 msgstr ""
28616
28617 #. type: =head2
28618 #: ../src/guestfs-actions.pod:5069
28619 msgid "guestfs_mountpoints"
28620 msgstr ""
28621
28622 #. type: verbatim
28623 #: ../src/guestfs-actions.pod:5071
28624 #, no-wrap
28625 msgid ""
28626 " char **\n"
28627 " guestfs_mountpoints (guestfs_h *g);\n"
28628 "\n"
28629 msgstr ""
28630
28631 #. type: textblock
28632 #: ../src/guestfs-actions.pod:5074
28633 msgid ""
28634 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28635 "devices.  This one returns a hash table (map) of device name to directory "
28636 "where the device is mounted."
28637 msgstr ""
28638
28639 #. type: =head2
28640 #: ../src/guestfs-actions.pod:5086
28641 msgid "guestfs_mounts"
28642 msgstr ""
28643
28644 #. type: verbatim
28645 #: ../src/guestfs-actions.pod:5088
28646 #, no-wrap
28647 msgid ""
28648 " char **\n"
28649 " guestfs_mounts (guestfs_h *g);\n"
28650 "\n"
28651 msgstr ""
28652
28653 #. type: textblock
28654 #: ../src/guestfs-actions.pod:5096
28655 msgid "See also: C<guestfs_mountpoints>"
28656 msgstr ""
28657
28658 #. type: =head2
28659 #: ../src/guestfs-actions.pod:5104
28660 msgid "guestfs_mv"
28661 msgstr ""
28662
28663 #. type: verbatim
28664 #: ../src/guestfs-actions.pod:5106
28665 #, no-wrap
28666 msgid ""
28667 " int\n"
28668 " guestfs_mv (guestfs_h *g,\n"
28669 "             const char *src,\n"
28670 "             const char *dest);\n"
28671 "\n"
28672 msgstr ""
28673
28674 #. type: =head2
28675 #: ../src/guestfs-actions.pod:5118
28676 msgid "guestfs_ntfs_3g_probe"
28677 msgstr ""
28678
28679 #. type: verbatim
28680 #: ../src/guestfs-actions.pod:5120
28681 #, no-wrap
28682 msgid ""
28683 " int\n"
28684 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28685 "                        int rw,\n"
28686 "                        const char *device);\n"
28687 "\n"
28688 msgstr ""
28689
28690 #. type: textblock
28691 #: ../src/guestfs-actions.pod:5139
28692 msgid "(Added in 1.0.43)"
28693 msgstr ""
28694
28695 #. type: =head2
28696 #: ../src/guestfs-actions.pod:5141
28697 msgid "guestfs_ntfsresize"
28698 msgstr ""
28699
28700 #. type: verbatim
28701 #: ../src/guestfs-actions.pod:5143
28702 #, no-wrap
28703 msgid ""
28704 " int\n"
28705 " guestfs_ntfsresize (guestfs_h *g,\n"
28706 "                     const char *device);\n"
28707 "\n"
28708 msgstr ""
28709
28710 #. type: textblock
28711 #: ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5252
28712 msgid ""
28713 "This function is deprecated.  In new code, use the L</"
28714 "guestfs_ntfsresize_opts> call instead."
28715 msgstr ""
28716
28717 #. type: =head2
28718 #: ../src/guestfs-actions.pod:5171
28719 msgid "guestfs_ntfsresize_opts"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../src/guestfs-actions.pod:5173
28724 #, no-wrap
28725 msgid ""
28726 " int\n"
28727 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28728 "                          const char *device,\n"
28729 "                          ...);\n"
28730 "\n"
28731 msgstr ""
28732
28733 #. type: verbatim
28734 #: ../src/guestfs-actions.pod:5183
28735 #, no-wrap
28736 msgid ""
28737 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28738 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:5203
28744 msgid ""
28745 "After the resize operation, the filesystem is always marked as requiring a "
28746 "consistency check (for safety).  You have to boot into Windows to perform "
28747 "this check and clear this condition.  If you I<don't> set the C<force> "
28748 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28749 "times on a single filesystem without booting into Windows between each "
28750 "resize."
28751 msgstr ""
28752
28753 #. type: =head2
28754 #: ../src/guestfs-actions.pod:5218
28755 msgid "guestfs_ntfsresize_opts_va"
28756 msgstr ""
28757
28758 #. type: verbatim
28759 #: ../src/guestfs-actions.pod:5220
28760 #, no-wrap
28761 msgid ""
28762 " int\n"
28763 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28764 "                             const char *device,\n"
28765 "                             va_list args);\n"
28766 "\n"
28767 msgstr ""
28768
28769 #. type: textblock
28770 #: ../src/guestfs-actions.pod:5225
28771 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28772 msgstr ""
28773
28774 #. type: =head2
28775 #: ../src/guestfs-actions.pod:5229
28776 msgid "guestfs_ntfsresize_opts_argv"
28777 msgstr ""
28778
28779 #. type: verbatim
28780 #: ../src/guestfs-actions.pod:5231
28781 #, no-wrap
28782 msgid ""
28783 " int\n"
28784 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28785 "                               const char *device,\n"
28786 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28787 "\n"
28788 msgstr ""
28789
28790 #. type: textblock
28791 #: ../src/guestfs-actions.pod:5236
28792 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28793 msgstr ""
28794
28795 #. type: =head2
28796 #: ../src/guestfs-actions.pod:5240
28797 msgid "guestfs_ntfsresize_size"
28798 msgstr ""
28799
28800 #. type: verbatim
28801 #: ../src/guestfs-actions.pod:5242
28802 #, no-wrap
28803 msgid ""
28804 " int\n"
28805 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28806 "                          const char *device,\n"
28807 "                          int64_t size);\n"
28808 "\n"
28809 msgstr ""
28810
28811 #. type: textblock
28812 #: ../src/guestfs-actions.pod:5247
28813 msgid ""
28814 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28815 "to specify the new size (in bytes) explicitly."
28816 msgstr ""
28817
28818 #. type: textblock
28819 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
28820 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
28821 #: ../src/guestfs-actions.pod:7665
28822 msgid "(Added in 1.3.14)"
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:5261
28827 msgid "guestfs_part_add"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:5263
28832 #, no-wrap
28833 msgid ""
28834 " int\n"
28835 " guestfs_part_add (guestfs_h *g,\n"
28836 "                   const char *device,\n"
28837 "                   const char *prlogex,\n"
28838 "                   int64_t startsect,\n"
28839 "                   int64_t endsect);\n"
28840 "\n"
28841 msgstr ""
28842
28843 #. type: textblock
28844 #: ../src/guestfs-actions.pod:5270
28845 msgid ""
28846 "This command adds a partition to C<device>.  If there is no partition table "
28847 "on the device, call C<guestfs_part_init> first."
28848 msgstr ""
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:5282
28852 msgid ""
28853 "Creating a partition which covers the whole disk is not so easy.  Use "
28854 "C<guestfs_part_disk> to do that."
28855 msgstr ""
28856
28857 #. type: textblock
28858 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
28859 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
28860 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
28861 #: ../src/guestfs-actions.pod:5559
28862 msgid "(Added in 1.0.78)"
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:5289
28867 msgid "guestfs_part_del"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:5291
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_part_del (guestfs_h *g,\n"
28876 "                   const char *device,\n"
28877 "                   int partnum);\n"
28878 "\n"
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:5306
28883 msgid "guestfs_part_disk"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:5308
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_part_disk (guestfs_h *g,\n"
28892 "                    const char *device,\n"
28893 "                    const char *parttype);\n"
28894 "\n"
28895 msgstr ""
28896
28897 #. type: textblock
28898 #: ../src/guestfs-actions.pod:5313
28899 msgid ""
28900 "This command is simply a combination of C<guestfs_part_init> followed by "
28901 "C<guestfs_part_add> to create a single primary partition covering the whole "
28902 "disk."
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:5317
28907 msgid ""
28908 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28909 "possible values are described in C<guestfs_part_init>."
28910 msgstr ""
28911
28912 #. type: =head2
28913 #: ../src/guestfs-actions.pod:5327
28914 msgid "guestfs_part_get_bootable"
28915 msgstr ""
28916
28917 #. type: verbatim
28918 #: ../src/guestfs-actions.pod:5329
28919 #, no-wrap
28920 msgid ""
28921 " int\n"
28922 " guestfs_part_get_bootable (guestfs_h *g,\n"
28923 "                            const char *device,\n"
28924 "                            int partnum);\n"
28925 "\n"
28926 msgstr ""
28927
28928 #. type: textblock
28929 #: ../src/guestfs-actions.pod:5337
28930 msgid "See also C<guestfs_part_set_bootable>."
28931 msgstr ""
28932
28933 #. type: =head2
28934 #: ../src/guestfs-actions.pod:5343
28935 msgid "guestfs_part_get_mbr_id"
28936 msgstr ""
28937
28938 #. type: verbatim
28939 #: ../src/guestfs-actions.pod:5345
28940 #, no-wrap
28941 msgid ""
28942 " int\n"
28943 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28944 "                          const char *device,\n"
28945 "                          int partnum);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
28951 msgid ""
28952 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28953 "undefined results for other partition table types (see "
28954 "C<guestfs_part_get_parttype>)."
28955 msgstr ""
28956
28957 #. type: =head2
28958 #: ../src/guestfs-actions.pod:5361
28959 msgid "guestfs_part_get_parttype"
28960 msgstr ""
28961
28962 #. type: verbatim
28963 #: ../src/guestfs-actions.pod:5363
28964 #, no-wrap
28965 msgid ""
28966 " char *\n"
28967 " guestfs_part_get_parttype (guestfs_h *g,\n"
28968 "                            const char *device);\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: textblock
28973 #: ../src/guestfs-actions.pod:5370
28974 msgid ""
28975 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28976 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28977 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28978 msgstr ""
28979
28980 #. type: =head2
28981 #: ../src/guestfs-actions.pod:5380
28982 msgid "guestfs_part_init"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../src/guestfs-actions.pod:5382
28987 #, no-wrap
28988 msgid ""
28989 " int\n"
28990 " guestfs_part_init (guestfs_h *g,\n"
28991 "                    const char *device,\n"
28992 "                    const char *parttype);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:5391
28998 msgid ""
28999 "Initially there are no partitions.  Following this, you should call "
29000 "C<guestfs_part_add> for each partition required."
29001 msgstr ""
29002
29003 #. type: =head2
29004 #: ../src/guestfs-actions.pod:5464
29005 msgid "guestfs_part_list"
29006 msgstr "guestfs_part_list"
29007
29008 #. type: verbatim
29009 #: ../src/guestfs-actions.pod:5466
29010 #, no-wrap
29011 msgid ""
29012 " struct guestfs_partition_list *\n"
29013 " guestfs_part_list (guestfs_h *g,\n"
29014 "                    const char *device);\n"
29015 "\n"
29016 msgstr ""
29017 " struct guestfs_partition_list *\n"
29018 " guestfs_part_list (guestfs_h *g,\n"
29019 "                    const char *device);\n"
29020 "\n"
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:5483
29024 msgid ""
29025 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29026 "the device's sector size, see C<guestfs_blockdev_getss>."
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../src/guestfs-actions.pod:5496
29031 msgid ""
29032 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29033 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29034 "use>."
29035 msgstr ""
29036
29037 #. type: =head2
29038 #: ../src/guestfs-actions.pod:5502
29039 msgid "guestfs_part_set_bootable"
29040 msgstr ""
29041
29042 #. type: verbatim
29043 #: ../src/guestfs-actions.pod:5504
29044 #, no-wrap
29045 msgid ""
29046 " int\n"
29047 " guestfs_part_set_bootable (guestfs_h *g,\n"
29048 "                            const char *device,\n"
29049 "                            int partnum,\n"
29050 "                            int bootable);\n"
29051 "\n"
29052 msgstr ""
29053
29054 #. type: =head2
29055 #: ../src/guestfs-actions.pod:5521
29056 msgid "guestfs_part_set_mbr_id"
29057 msgstr ""
29058
29059 #. type: verbatim
29060 #: ../src/guestfs-actions.pod:5523
29061 #, no-wrap
29062 msgid ""
29063 " int\n"
29064 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29065 "                          const char *device,\n"
29066 "                          int partnum,\n"
29067 "                          int idbyte);\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: =head2
29072 #: ../src/guestfs-actions.pod:5543
29073 msgid "guestfs_part_set_name"
29074 msgstr ""
29075
29076 #. type: verbatim
29077 #: ../src/guestfs-actions.pod:5545
29078 #, no-wrap
29079 msgid ""
29080 " int\n"
29081 " guestfs_part_set_name (guestfs_h *g,\n"
29082 "                        const char *device,\n"
29083 "                        int partnum,\n"
29084 "                        const char *name);\n"
29085 "\n"
29086 msgstr ""
29087
29088 #. type: =head2
29089 #: ../src/guestfs-actions.pod:5561
29090 msgid "guestfs_part_to_dev"
29091 msgstr ""
29092
29093 #. type: verbatim
29094 #: ../src/guestfs-actions.pod:5563
29095 #, no-wrap
29096 msgid ""
29097 " char *\n"
29098 " guestfs_part_to_dev (guestfs_h *g,\n"
29099 "                      const char *partition);\n"
29100 "\n"
29101 msgstr ""
29102
29103 #. type: textblock
29104 #: ../src/guestfs-actions.pod:5571
29105 msgid ""
29106 "The named partition must exist, for example as a string returned from "
29107 "C<guestfs_list_partitions>."
29108 msgstr ""
29109
29110 #. type: =head2
29111 #: ../src/guestfs-actions.pod:5579
29112 msgid "guestfs_ping_daemon"
29113 msgstr ""
29114
29115 #. type: verbatim
29116 #: ../src/guestfs-actions.pod:5581
29117 #, no-wrap
29118 msgid ""
29119 " int\n"
29120 " guestfs_ping_daemon (guestfs_h *g);\n"
29121 "\n"
29122 msgstr ""
29123
29124 #. type: =head2
29125 #: ../src/guestfs-actions.pod:5593
29126 msgid "guestfs_pread"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../src/guestfs-actions.pod:5595
29131 #, no-wrap
29132 msgid ""
29133 " char *\n"
29134 " guestfs_pread (guestfs_h *g,\n"
29135 "                const char *path,\n"
29136 "                int count,\n"
29137 "                int64_t offset,\n"
29138 "                size_t *size_r);\n"
29139 "\n"
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../src/guestfs-actions.pod:5608
29144 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29145 msgstr ""
29146
29147 #. type: =head2
29148 #: ../src/guestfs-actions.pod:5619
29149 msgid "guestfs_pread_device"
29150 msgstr ""
29151
29152 #. type: verbatim
29153 #: ../src/guestfs-actions.pod:5621
29154 #, no-wrap
29155 msgid ""
29156 " char *\n"
29157 " guestfs_pread_device (guestfs_h *g,\n"
29158 "                       const char *device,\n"
29159 "                       int count,\n"
29160 "                       int64_t offset,\n"
29161 "                       size_t *size_r);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:5634
29167 msgid "See also C<guestfs_pread>."
29168 msgstr ""
29169
29170 #. type: textblock
29171 #: ../src/guestfs-actions.pod:5643
29172 msgid "(Added in 1.5.21)"
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:5645
29177 msgid "guestfs_pvcreate"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:5647
29182 #, no-wrap
29183 msgid ""
29184 " int\n"
29185 " guestfs_pvcreate (guestfs_h *g,\n"
29186 "                   const char *device);\n"
29187 "\n"
29188 msgstr ""
29189
29190 #. type: =head2
29191 #: ../src/guestfs-actions.pod:5659
29192 msgid "guestfs_pvremove"
29193 msgstr ""
29194
29195 #. type: verbatim
29196 #: ../src/guestfs-actions.pod:5661
29197 #, no-wrap
29198 msgid ""
29199 " int\n"
29200 " guestfs_pvremove (guestfs_h *g,\n"
29201 "                   const char *device);\n"
29202 "\n"
29203 msgstr ""
29204
29205 #. type: =head2
29206 #: ../src/guestfs-actions.pod:5676
29207 msgid "guestfs_pvresize"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../src/guestfs-actions.pod:5678
29212 #, no-wrap
29213 msgid ""
29214 " int\n"
29215 " guestfs_pvresize (guestfs_h *g,\n"
29216 "                   const char *device);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:5689
29222 msgid "guestfs_pvresize_size"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:5691
29227 #, no-wrap
29228 msgid ""
29229 " int\n"
29230 " guestfs_pvresize_size (guestfs_h *g,\n"
29231 "                        const char *device,\n"
29232 "                        int64_t size);\n"
29233 "\n"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:5696
29238 msgid ""
29239 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29240 "specify the new size (in bytes) explicitly."
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:5703
29245 msgid "guestfs_pvs"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:5705
29250 #, no-wrap
29251 msgid ""
29252 " char **\n"
29253 " guestfs_pvs (guestfs_h *g);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: textblock
29258 #: ../src/guestfs-actions.pod:5714
29259 msgid "See also C<guestfs_pvs_full>."
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:5722
29264 msgid "guestfs_pvs_full"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:5724
29269 #, no-wrap
29270 msgid ""
29271 " struct guestfs_lvm_pv_list *\n"
29272 " guestfs_pvs_full (guestfs_h *g);\n"
29273 "\n"
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../src/guestfs-actions.pod:5730
29278 msgid ""
29279 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29280 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:5736
29285 msgid "guestfs_pvuuid"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:5738
29290 #, no-wrap
29291 msgid ""
29292 " char *\n"
29293 " guestfs_pvuuid (guestfs_h *g,\n"
29294 "                 const char *device);\n"
29295 "\n"
29296 msgstr ""
29297
29298 #. type: =head2
29299 #: ../src/guestfs-actions.pod:5749
29300 msgid "guestfs_pwrite"
29301 msgstr ""
29302
29303 #. type: verbatim
29304 #: ../src/guestfs-actions.pod:5751
29305 #, no-wrap
29306 msgid ""
29307 " int\n"
29308 " guestfs_pwrite (guestfs_h *g,\n"
29309 "                 const char *path,\n"
29310 "                 const char *content,\n"
29311 "                 size_t content_size,\n"
29312 "                 int64_t offset);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../src/guestfs-actions.pod:5767
29318 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29319 msgstr ""
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:5776
29323 msgid "guestfs_pwrite_device"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:5778
29328 #, no-wrap
29329 msgid ""
29330 " int\n"
29331 " guestfs_pwrite_device (guestfs_h *g,\n"
29332 "                        const char *device,\n"
29333 "                        const char *content,\n"
29334 "                        size_t content_size,\n"
29335 "                        int64_t offset);\n"
29336 "\n"
29337 msgstr ""
29338
29339 #. type: textblock
29340 #: ../src/guestfs-actions.pod:5793
29341 msgid "See also C<guestfs_pwrite>."
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:5800
29346 msgid "(Added in 1.5.20)"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:5802
29351 msgid "guestfs_read_file"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:5804
29356 #, no-wrap
29357 msgid ""
29358 " char *\n"
29359 " guestfs_read_file (guestfs_h *g,\n"
29360 "                    const char *path,\n"
29361 "                    size_t *size_r);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: textblock
29366 #: ../src/guestfs-actions.pod:5812
29367 msgid ""
29368 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29369 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29370 "function is limited in the total size of file that can be handled."
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../src/guestfs-actions.pod:5824
29375 msgid "(Added in 1.0.63)"
29376 msgstr ""
29377
29378 #. type: =head2
29379 #: ../src/guestfs-actions.pod:5826
29380 msgid "guestfs_read_lines"
29381 msgstr ""
29382
29383 #. type: verbatim
29384 #: ../src/guestfs-actions.pod:5828
29385 #, no-wrap
29386 msgid ""
29387 " char **\n"
29388 " guestfs_read_lines (guestfs_h *g,\n"
29389 "                     const char *path);\n"
29390 "\n"
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../src/guestfs-actions.pod:5837
29395 msgid ""
29396 "Note that this function cannot correctly handle binary files (specifically, "
29397 "files containing C<\\0> character which is treated as end of line).  For "
29398 "those you need to use the C<guestfs_read_file> function which has a more "
29399 "complex interface."
29400 msgstr ""
29401
29402 #. type: =head2
29403 #: ../src/guestfs-actions.pod:5848
29404 msgid "guestfs_readdir"
29405 msgstr ""
29406
29407 #. type: verbatim
29408 #: ../src/guestfs-actions.pod:5850
29409 #, no-wrap
29410 msgid ""
29411 " struct guestfs_dirent_list *\n"
29412 " guestfs_readdir (guestfs_h *g,\n"
29413 "                  const char *dir);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:5904
29419 msgid ""
29420 "This function is primarily intended for use by programs.  To get a simple "
29421 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29422 "consumption, use C<guestfs_ll>."
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:5908
29427 msgid ""
29428 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29429 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29430 msgstr ""
29431
29432 #. type: =head2
29433 #: ../src/guestfs-actions.pod:5914
29434 msgid "guestfs_readlink"
29435 msgstr ""
29436
29437 #. type: verbatim
29438 #: ../src/guestfs-actions.pod:5916
29439 #, no-wrap
29440 msgid ""
29441 " char *\n"
29442 " guestfs_readlink (guestfs_h *g,\n"
29443 "                   const char *path);\n"
29444 "\n"
29445 msgstr ""
29446
29447 #. type: =head2
29448 #: ../src/guestfs-actions.pod:5927
29449 msgid "guestfs_readlinklist"
29450 msgstr ""
29451
29452 #. type: verbatim
29453 #: ../src/guestfs-actions.pod:5929
29454 #, no-wrap
29455 msgid ""
29456 " char **\n"
29457 " guestfs_readlinklist (guestfs_h *g,\n"
29458 "                       const char *path,\n"
29459 "                       char *const *names);\n"
29460 "\n"
29461 msgstr ""
29462
29463 #. type: =head2
29464 #: ../src/guestfs-actions.pod:5962
29465 msgid "guestfs_realpath"
29466 msgstr ""
29467
29468 #. type: verbatim
29469 #: ../src/guestfs-actions.pod:5964
29470 #, no-wrap
29471 msgid ""
29472 " char *\n"
29473 " guestfs_realpath (guestfs_h *g,\n"
29474 "                   const char *path);\n"
29475 "\n"
29476 msgstr ""
29477
29478 #. type: =head2
29479 #: ../src/guestfs-actions.pod:5976
29480 msgid "guestfs_removexattr"
29481 msgstr ""
29482
29483 #. type: verbatim
29484 #: ../src/guestfs-actions.pod:5978
29485 #, no-wrap
29486 msgid ""
29487 " int\n"
29488 " guestfs_removexattr (guestfs_h *g,\n"
29489 "                      const char *xattr,\n"
29490 "                      const char *path);\n"
29491 "\n"
29492 msgstr ""
29493
29494 #. type: textblock
29495 #: ../src/guestfs-actions.pod:5986
29496 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29497 msgstr ""
29498
29499 #. type: =head2
29500 #: ../src/guestfs-actions.pod:5992
29501 msgid "guestfs_resize2fs"
29502 msgstr ""
29503
29504 #. type: verbatim
29505 #: ../src/guestfs-actions.pod:5994
29506 #, no-wrap
29507 msgid ""
29508 " int\n"
29509 " guestfs_resize2fs (guestfs_h *g,\n"
29510 "                    const char *device);\n"
29511 "\n"
29512 msgstr ""
29513
29514 #. type: textblock
29515 #: ../src/guestfs-actions.pod:6001
29516 msgid ""
29517 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29518 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29519 "sometimes gives an error about this and sometimes not.  In any case, it is "
29520 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29521 msgstr ""
29522
29523 #. type: =head2
29524 #: ../src/guestfs-actions.pod:6011
29525 msgid "guestfs_resize2fs_M"
29526 msgstr ""
29527
29528 #. type: verbatim
29529 #: ../src/guestfs-actions.pod:6013
29530 #, no-wrap
29531 msgid ""
29532 " int\n"
29533 " guestfs_resize2fs_M (guestfs_h *g,\n"
29534 "                      const char *device);\n"
29535 "\n"
29536 msgstr ""
29537
29538 #. type: textblock
29539 #: ../src/guestfs-actions.pod:6017
29540 msgid ""
29541 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29542 "resized to its minimum size.  This works like the I<-M> option to the "
29543 "C<resize2fs> command."
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../src/guestfs-actions.pod:6021
29548 msgid ""
29549 "To get the resulting size of the filesystem you should call "
29550 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29551 "These two numbers, multiplied together, give the resulting size of the "
29552 "minimal filesystem in bytes."
29553 msgstr ""
29554
29555 #. type: =head2
29556 #: ../src/guestfs-actions.pod:6030
29557 msgid "guestfs_resize2fs_size"
29558 msgstr ""
29559
29560 #. type: verbatim
29561 #: ../src/guestfs-actions.pod:6032
29562 #, no-wrap
29563 msgid ""
29564 " int\n"
29565 " guestfs_resize2fs_size (guestfs_h *g,\n"
29566 "                         const char *device,\n"
29567 "                         int64_t size);\n"
29568 "\n"
29569 msgstr ""
29570
29571 #. type: textblock
29572 #: ../src/guestfs-actions.pod:6037
29573 msgid ""
29574 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29575 "to specify the new size (in bytes) explicitly."
29576 msgstr ""
29577
29578 #. type: =head2
29579 #: ../src/guestfs-actions.pod:6044
29580 msgid "guestfs_rm"
29581 msgstr ""
29582
29583 #. type: verbatim
29584 #: ../src/guestfs-actions.pod:6046
29585 #, no-wrap
29586 msgid ""
29587 " int\n"
29588 " guestfs_rm (guestfs_h *g,\n"
29589 "             const char *path);\n"
29590 "\n"
29591 msgstr ""
29592
29593 #. type: =head2
29594 #: ../src/guestfs-actions.pod:6056
29595 msgid "guestfs_rm_rf"
29596 msgstr ""
29597
29598 #. type: verbatim
29599 #: ../src/guestfs-actions.pod:6058
29600 #, no-wrap
29601 msgid ""
29602 " int\n"
29603 " guestfs_rm_rf (guestfs_h *g,\n"
29604 "                const char *path);\n"
29605 "\n"
29606 msgstr ""
29607
29608 #. type: =head2
29609 #: ../src/guestfs-actions.pod:6070
29610 msgid "guestfs_rmdir"
29611 msgstr ""
29612
29613 #. type: verbatim
29614 #: ../src/guestfs-actions.pod:6072
29615 #, no-wrap
29616 msgid ""
29617 " int\n"
29618 " guestfs_rmdir (guestfs_h *g,\n"
29619 "                const char *path);\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: =head2
29624 #: ../src/guestfs-actions.pod:6082
29625 msgid "guestfs_rmmountpoint"
29626 msgstr ""
29627
29628 #. type: verbatim
29629 #: ../src/guestfs-actions.pod:6084
29630 #, no-wrap
29631 msgid ""
29632 " int\n"
29633 " guestfs_rmmountpoint (guestfs_h *g,\n"
29634 "                       const char *exemptpath);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: textblock
29639 #: ../src/guestfs-actions.pod:6088
29640 msgid ""
29641 "This calls removes a mountpoint that was previously created with "
29642 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:6096
29647 msgid "guestfs_scrub_device"
29648 msgstr ""
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:6098
29652 #, no-wrap
29653 msgid ""
29654 " int\n"
29655 " guestfs_scrub_device (guestfs_h *g,\n"
29656 "                       const char *device);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: textblock
29661 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
29662 #: ../src/guestfs-actions.pod:6150
29663 msgid "(Added in 1.0.52)"
29664 msgstr ""
29665
29666 #. type: =head2
29667 #: ../src/guestfs-actions.pod:6115
29668 msgid "guestfs_scrub_file"
29669 msgstr ""
29670
29671 #. type: verbatim
29672 #: ../src/guestfs-actions.pod:6117
29673 #, no-wrap
29674 msgid ""
29675 " int\n"
29676 " guestfs_scrub_file (guestfs_h *g,\n"
29677 "                     const char *file);\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: =head2
29682 #: ../src/guestfs-actions.pod:6133
29683 msgid "guestfs_scrub_freespace"
29684 msgstr ""
29685
29686 #. type: verbatim
29687 #: ../src/guestfs-actions.pod:6135
29688 #, no-wrap
29689 msgid ""
29690 " int\n"
29691 " guestfs_scrub_freespace (guestfs_h *g,\n"
29692 "                          const char *dir);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:6139
29698 msgid ""
29699 "This command creates the directory C<dir> and then fills it with files until "
29700 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29701 "and deletes them.  The intention is to scrub any free space on the partition "
29702 "containing C<dir>."
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:6152
29707 msgid "guestfs_set_append"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:6154
29712 #, no-wrap
29713 msgid ""
29714 " int\n"
29715 " guestfs_set_append (guestfs_h *g,\n"
29716 "                     const char *append);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:6171
29722 msgid "guestfs_set_attach_method"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:6173
29727 #, no-wrap
29728 msgid ""
29729 " int\n"
29730 " guestfs_set_attach_method (guestfs_h *g,\n"
29731 "                            const char *attachmethod);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: =head2
29736 #: ../src/guestfs-actions.pod:6201
29737 msgid "guestfs_set_autosync"
29738 msgstr ""
29739
29740 #. type: verbatim
29741 #: ../src/guestfs-actions.pod:6203
29742 #, no-wrap
29743 msgid ""
29744 " int\n"
29745 " guestfs_set_autosync (guestfs_h *g,\n"
29746 "                       int autosync);\n"
29747 "\n"
29748 msgstr ""
29749
29750 #. type: =head2
29751 #: ../src/guestfs-actions.pod:6219
29752 msgid "guestfs_set_direct"
29753 msgstr ""
29754
29755 #. type: verbatim
29756 #: ../src/guestfs-actions.pod:6221
29757 #, no-wrap
29758 msgid ""
29759 " int\n"
29760 " guestfs_set_direct (guestfs_h *g,\n"
29761 "                     int direct);\n"
29762 "\n"
29763 msgstr ""
29764
29765 #. type: textblock
29766 #: ../src/guestfs-actions.pod:6229
29767 msgid ""
29768 "One consequence of this is that log messages aren't caught by the library "
29769 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29770 "stdout."
29771 msgstr ""
29772
29773 #. type: =head2
29774 #: ../src/guestfs-actions.pod:6242
29775 msgid "guestfs_set_e2label"
29776 msgstr ""
29777
29778 #. type: verbatim
29779 #: ../src/guestfs-actions.pod:6244
29780 #, no-wrap
29781 msgid ""
29782 " int\n"
29783 " guestfs_set_e2label (guestfs_h *g,\n"
29784 "                      const char *device,\n"
29785 "                      const char *label);\n"
29786 "\n"
29787 msgstr ""
29788
29789 #. type: textblock
29790 #: ../src/guestfs-actions.pod:6253
29791 msgid ""
29792 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29793 "the existing label on a filesystem."
29794 msgstr ""
29795
29796 #. type: =head2
29797 #: ../src/guestfs-actions.pod:6260
29798 msgid "guestfs_set_e2uuid"
29799 msgstr ""
29800
29801 #. type: verbatim
29802 #: ../src/guestfs-actions.pod:6262
29803 #, no-wrap
29804 msgid ""
29805 " int\n"
29806 " guestfs_set_e2uuid (guestfs_h *g,\n"
29807 "                     const char *device,\n"
29808 "                     const char *uuid);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:6272
29814 msgid ""
29815 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29816 "the existing UUID of a filesystem."
29817 msgstr ""
29818
29819 #. type: =head2
29820 #: ../src/guestfs-actions.pod:6279
29821 msgid "guestfs_set_memsize"
29822 msgstr ""
29823
29824 #. type: verbatim
29825 #: ../src/guestfs-actions.pod:6281
29826 #, no-wrap
29827 msgid ""
29828 " int\n"
29829 " guestfs_set_memsize (guestfs_h *g,\n"
29830 "                      int memsize);\n"
29831 "\n"
29832 msgstr ""
29833
29834 #. type: textblock
29835 #: ../src/guestfs-actions.pod:6285
29836 msgid ""
29837 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29838 "This only has any effect if called before C<guestfs_launch>."
29839 msgstr ""
29840
29841 #. type: =head2
29842 #: ../src/guestfs-actions.pod:6300
29843 msgid "guestfs_set_network"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../src/guestfs-actions.pod:6302
29848 #, no-wrap
29849 msgid ""
29850 " int\n"
29851 " guestfs_set_network (guestfs_h *g,\n"
29852 "                      int network);\n"
29853 "\n"
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:6312
29858 msgid ""
29859 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29860 "effect."
29861 msgstr ""
29862
29863 #. type: =head2
29864 #: ../src/guestfs-actions.pod:6319
29865 msgid "guestfs_set_path"
29866 msgstr ""
29867
29868 #. type: verbatim
29869 #: ../src/guestfs-actions.pod:6321
29870 #, no-wrap
29871 msgid ""
29872 " int\n"
29873 " guestfs_set_path (guestfs_h *g,\n"
29874 "                   const char *searchpath);\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: =head2
29879 #: ../src/guestfs-actions.pod:6336
29880 msgid "guestfs_set_pgroup"
29881 msgstr ""
29882
29883 #. type: verbatim
29884 #: ../src/guestfs-actions.pod:6338
29885 #, no-wrap
29886 msgid ""
29887 " int\n"
29888 " guestfs_set_pgroup (guestfs_h *g,\n"
29889 "                     int pgroup);\n"
29890 "\n"
29891 msgstr ""
29892
29893 #. type: =head2
29894 #: ../src/guestfs-actions.pod:6355
29895 msgid "guestfs_set_qemu"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:6357
29900 #, no-wrap
29901 msgid ""
29902 " int\n"
29903 " guestfs_set_qemu (guestfs_h *g,\n"
29904 "                   const char *qemu);\n"
29905 "\n"
29906 msgstr ""
29907
29908 #. type: =head2
29909 #: ../src/guestfs-actions.pod:6383
29910 msgid "guestfs_set_recovery_proc"
29911 msgstr ""
29912
29913 #. type: verbatim
29914 #: ../src/guestfs-actions.pod:6385
29915 #, no-wrap
29916 msgid ""
29917 " int\n"
29918 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29919 "                            int recoveryproc);\n"
29920 "\n"
29921 msgstr ""
29922
29923 #. type: textblock
29924 #: ../src/guestfs-actions.pod:6389
29925 msgid ""
29926 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29927 "not create a recovery process.  The purpose of the recovery process is to "
29928 "stop runaway qemu processes in the case where the main program aborts "
29929 "abruptly."
29930 msgstr ""
29931
29932 #. type: textblock
29933 #: ../src/guestfs-actions.pod:6394
29934 msgid ""
29935 "This only has any effect if called before C<guestfs_launch>, and the default "
29936 "is true."
29937 msgstr ""
29938
29939 #. type: =head2
29940 #: ../src/guestfs-actions.pod:6407
29941 msgid "guestfs_set_selinux"
29942 msgstr ""
29943
29944 #. type: verbatim
29945 #: ../src/guestfs-actions.pod:6409
29946 #, no-wrap
29947 msgid ""
29948 " int\n"
29949 " guestfs_set_selinux (guestfs_h *g,\n"
29950 "                      int selinux);\n"
29951 "\n"
29952 msgstr ""
29953
29954 #. type: =head2
29955 #: ../src/guestfs-actions.pod:6426
29956 msgid "guestfs_set_trace"
29957 msgstr ""
29958
29959 #. type: verbatim
29960 #: ../src/guestfs-actions.pod:6428
29961 #, no-wrap
29962 msgid ""
29963 " int\n"
29964 " guestfs_set_trace (guestfs_h *g,\n"
29965 "                    int trace);\n"
29966 "\n"
29967 msgstr ""
29968
29969 #. type: textblock
29970 #: ../src/guestfs-actions.pod:6442
29971 msgid ""
29972 "Trace messages are normally sent to C<stderr>, unless you register a "
29973 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:6450
29978 msgid "guestfs_set_verbose"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:6452
29983 #, no-wrap
29984 msgid ""
29985 " int\n"
29986 " guestfs_set_verbose (guestfs_h *g,\n"
29987 "                      int verbose);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: textblock
29992 #: ../src/guestfs-actions.pod:6461
29993 msgid ""
29994 "Verbose messages are normally sent to C<stderr>, unless you register a "
29995 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:6469
30000 msgid "guestfs_setcon"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:6471
30005 #, no-wrap
30006 msgid ""
30007 " int\n"
30008 " guestfs_setcon (guestfs_h *g,\n"
30009 "                 const char *context);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:6484
30015 msgid "guestfs_setxattr"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:6486
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_setxattr (guestfs_h *g,\n"
30024 "                   const char *xattr,\n"
30025 "                   const char *val,\n"
30026 "                   int vallen,\n"
30027 "                   const char *path);\n"
30028 "\n"
30029 msgstr ""
30030
30031 #. type: textblock
30032 #: ../src/guestfs-actions.pod:6497
30033 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30034 msgstr ""
30035
30036 #. type: =head2
30037 #: ../src/guestfs-actions.pod:6503
30038 msgid "guestfs_sfdisk"
30039 msgstr ""
30040
30041 #. type: verbatim
30042 #: ../src/guestfs-actions.pod:6505
30043 #, no-wrap
30044 msgid ""
30045 " int\n"
30046 " guestfs_sfdisk (guestfs_h *g,\n"
30047 "                 const char *device,\n"
30048 "                 int cyls,\n"
30049 "                 int heads,\n"
30050 "                 int sectors,\n"
30051 "                 char *const *lines);\n"
30052 "\n"
30053 msgstr ""
30054
30055 #. type: textblock
30056 #: ../src/guestfs-actions.pod:6533
30057 msgid ""
30058 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30059 msgstr ""
30060
30061 #. type: textblock
30062 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
30063 #: ../src/guestfs-actions.pod:6604
30064 msgid ""
30065 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
30066 "instead."
30067 msgstr ""
30068
30069 #. type: =head2
30070 #: ../src/guestfs-actions.pod:6550
30071 msgid "guestfs_sfdiskM"
30072 msgstr ""
30073
30074 #. type: verbatim
30075 #: ../src/guestfs-actions.pod:6552
30076 #, no-wrap
30077 msgid ""
30078 " int\n"
30079 " guestfs_sfdiskM (guestfs_h *g,\n"
30080 "                  const char *device,\n"
30081 "                  char *const *lines);\n"
30082 "\n"
30083 msgstr ""
30084
30085 #. type: textblock
30086 #: ../src/guestfs-actions.pod:6557
30087 msgid ""
30088 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30089 "partition sizes are specified in megabytes only (rounded to the nearest "
30090 "cylinder) and you don't need to specify the cyls, heads and sectors "
30091 "parameters which were rarely if ever used anyway."
30092 msgstr ""
30093
30094 #. type: textblock
30095 #: ../src/guestfs-actions.pod:6563
30096 msgid ""
30097 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30098 "C<guestfs_part_disk>"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:6580
30103 msgid "guestfs_sfdisk_N"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:6582
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_sfdisk_N (guestfs_h *g,\n"
30112 "                   const char *device,\n"
30113 "                   int partnum,\n"
30114 "                   int cyls,\n"
30115 "                   int heads,\n"
30116 "                   int sectors,\n"
30117 "                   const char *line);\n"
30118 "\n"
30119 msgstr ""
30120
30121 #. type: textblock
30122 #: ../src/guestfs-actions.pod:6594
30123 msgid ""
30124 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30125 "for the cyls/heads/sectors parameters."
30126 msgstr ""
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:6597
30130 msgid "See also: C<guestfs_part_add>"
30131 msgstr ""
30132
30133 #. type: =head2
30134 #: ../src/guestfs-actions.pod:6613
30135 msgid "guestfs_sfdisk_disk_geometry"
30136 msgstr ""
30137
30138 #. type: verbatim
30139 #: ../src/guestfs-actions.pod:6615
30140 #, no-wrap
30141 msgid ""
30142 " char *\n"
30143 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30144 "                               const char *device);\n"
30145 "\n"
30146 msgstr ""
30147
30148 #. type: textblock
30149 #: ../src/guestfs-actions.pod:6619
30150 msgid ""
30151 "This displays the disk geometry of C<device> read from the partition table.  "
30152 "Especially in the case where the underlying block device has been resized, "
30153 "this can be different from the kernel's idea of the geometry (see "
30154 "C<guestfs_sfdisk_kernel_geometry>)."
30155 msgstr ""
30156
30157 #. type: =head2
30158 #: ../src/guestfs-actions.pod:6632
30159 msgid "guestfs_sfdisk_kernel_geometry"
30160 msgstr ""
30161
30162 #. type: verbatim
30163 #: ../src/guestfs-actions.pod:6634
30164 #, no-wrap
30165 msgid ""
30166 " char *\n"
30167 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30168 "                                 const char *device);\n"
30169 "\n"
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:6648
30174 msgid "guestfs_sfdisk_l"
30175 msgstr ""
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:6650
30179 #, no-wrap
30180 msgid ""
30181 " char *\n"
30182 " guestfs_sfdisk_l (guestfs_h *g,\n"
30183 "                   const char *device);\n"
30184 "\n"
30185 msgstr ""
30186
30187 #. type: textblock
30188 #: ../src/guestfs-actions.pod:6658
30189 msgid "See also: C<guestfs_part_list>"
30190 msgstr ""
30191
30192 #. type: textblock
30193 #: ../src/guestfs-actions.pod:6663
30194 msgid ""
30195 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
30196 "call instead."
30197 msgstr ""
30198
30199 #. type: =head2
30200 #: ../src/guestfs-actions.pod:6672
30201 msgid "guestfs_sh"
30202 msgstr ""
30203
30204 #. type: verbatim
30205 #: ../src/guestfs-actions.pod:6674
30206 #, no-wrap
30207 msgid ""
30208 " char *\n"
30209 " guestfs_sh (guestfs_h *g,\n"
30210 "             const char *command);\n"
30211 "\n"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../src/guestfs-actions.pod:6681
30216 msgid "This is like C<guestfs_command>, but passes the command to:"
30217 msgstr ""
30218
30219 #. type: textblock
30220 #: ../src/guestfs-actions.pod:6689
30221 msgid "All the provisos about C<guestfs_command> apply to this call."
30222 msgstr ""
30223
30224 #. type: =head2
30225 #: ../src/guestfs-actions.pod:6696
30226 msgid "guestfs_sh_lines"
30227 msgstr ""
30228
30229 #. type: verbatim
30230 #: ../src/guestfs-actions.pod:6698
30231 #, no-wrap
30232 msgid ""
30233 " char **\n"
30234 " guestfs_sh_lines (guestfs_h *g,\n"
30235 "                   const char *command);\n"
30236 "\n"
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-actions.pod:6702
30241 msgid ""
30242 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30243 "lines."
30244 msgstr ""
30245
30246 #. type: textblock
30247 #: ../src/guestfs-actions.pod:6705
30248 msgid "See also: C<guestfs_command_lines>"
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../src/guestfs-actions.pod:6713
30253 msgid "guestfs_sleep"
30254 msgstr ""
30255
30256 #. type: verbatim
30257 #: ../src/guestfs-actions.pod:6715
30258 #, no-wrap
30259 msgid ""
30260 " int\n"
30261 " guestfs_sleep (guestfs_h *g,\n"
30262 "                int secs);\n"
30263 "\n"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:6723
30268 msgid "(Added in 1.0.41)"
30269 msgstr ""
30270
30271 #. type: =head2
30272 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
30273 msgid "guestfs_stat"
30274 msgstr ""
30275
30276 #. type: verbatim
30277 #: ../src/guestfs-actions.pod:6727
30278 #, no-wrap
30279 msgid ""
30280 " struct guestfs_stat *\n"
30281 " guestfs_stat (guestfs_h *g,\n"
30282 "               const char *path);\n"
30283 "\n"
30284 msgstr ""
30285
30286 #. type: =head2
30287 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
30288 msgid "guestfs_statvfs"
30289 msgstr ""
30290
30291 #. type: verbatim
30292 #: ../src/guestfs-actions.pod:6743
30293 #, no-wrap
30294 msgid ""
30295 " struct guestfs_statvfs *\n"
30296 " guestfs_statvfs (guestfs_h *g,\n"
30297 "                  const char *path);\n"
30298 "\n"
30299 msgstr ""
30300
30301 #. type: textblock
30302 #: ../src/guestfs-actions.pod:6753
30303 msgid ""
30304 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30305 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30306 msgstr ""
30307
30308 #. type: =head2
30309 #: ../src/guestfs-actions.pod:6759
30310 msgid "guestfs_strings"
30311 msgstr ""
30312
30313 #. type: verbatim
30314 #: ../src/guestfs-actions.pod:6761
30315 #, no-wrap
30316 msgid ""
30317 " char **\n"
30318 " guestfs_strings (guestfs_h *g,\n"
30319 "                  const char *path);\n"
30320 "\n"
30321 msgstr ""
30322
30323 #. type: =head2
30324 #: ../src/guestfs-actions.pod:6777
30325 msgid "guestfs_strings_e"
30326 msgstr ""
30327
30328 #. type: verbatim
30329 #: ../src/guestfs-actions.pod:6779
30330 #, no-wrap
30331 msgid ""
30332 " char **\n"
30333 " guestfs_strings_e (guestfs_h *g,\n"
30334 "                    const char *encoding,\n"
30335 "                    const char *path);\n"
30336 "\n"
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../src/guestfs-actions.pod:6784
30341 msgid ""
30342 "This is like the C<guestfs_strings> command, but allows you to specify the "
30343 "encoding of strings that are looked for in the source file C<path>."
30344 msgstr ""
30345
30346 #. type: textblock
30347 #: ../src/guestfs-actions.pod:6794
30348 msgid ""
30349 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30350 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:6832
30355 msgid "guestfs_swapoff_device"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:6834
30360 #, no-wrap
30361 msgid ""
30362 " int\n"
30363 " guestfs_swapoff_device (guestfs_h *g,\n"
30364 "                         const char *device);\n"
30365 "\n"
30366 msgstr ""
30367
30368 #. type: textblock
30369 #: ../src/guestfs-actions.pod:6838
30370 msgid ""
30371 "This command disables the libguestfs appliance swap device or partition "
30372 "named C<device>.  See C<guestfs_swapon_device>."
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs-actions.pod:6846
30377 msgid "guestfs_swapoff_file"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-actions.pod:6848
30382 #, no-wrap
30383 msgid ""
30384 " int\n"
30385 " guestfs_swapoff_file (guestfs_h *g,\n"
30386 "                       const char *file);\n"
30387 "\n"
30388 msgstr ""
30389
30390 #. type: =head2
30391 #: ../src/guestfs-actions.pod:6858
30392 msgid "guestfs_swapoff_label"
30393 msgstr ""
30394
30395 #. type: verbatim
30396 #: ../src/guestfs-actions.pod:6860
30397 #, no-wrap
30398 msgid ""
30399 " int\n"
30400 " guestfs_swapoff_label (guestfs_h *g,\n"
30401 "                        const char *label);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: =head2
30406 #: ../src/guestfs-actions.pod:6871
30407 msgid "guestfs_swapoff_uuid"
30408 msgstr ""
30409
30410 #. type: verbatim
30411 #: ../src/guestfs-actions.pod:6873
30412 #, no-wrap
30413 msgid ""
30414 " int\n"
30415 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30416 "                       const char *uuid);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: =head2
30421 #: ../src/guestfs-actions.pod:6884
30422 msgid "guestfs_swapon_device"
30423 msgstr ""
30424
30425 #. type: verbatim
30426 #: ../src/guestfs-actions.pod:6886
30427 #, no-wrap
30428 msgid ""
30429 " int\n"
30430 " guestfs_swapon_device (guestfs_h *g,\n"
30431 "                        const char *device);\n"
30432 "\n"
30433 msgstr ""
30434
30435 #. type: textblock
30436 #: ../src/guestfs-actions.pod:6890
30437 msgid ""
30438 "This command enables the libguestfs appliance to use the swap device or "
30439 "partition named C<device>.  The increased memory is made available for all "
30440 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30441 msgstr ""
30442
30443 #. type: =head2
30444 #: ../src/guestfs-actions.pod:6906
30445 msgid "guestfs_swapon_file"
30446 msgstr ""
30447
30448 #. type: verbatim
30449 #: ../src/guestfs-actions.pod:6908
30450 #, no-wrap
30451 msgid ""
30452 " int\n"
30453 " guestfs_swapon_file (guestfs_h *g,\n"
30454 "                      const char *file);\n"
30455 "\n"
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs-actions.pod:6912
30460 msgid ""
30461 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30462 "notes."
30463 msgstr ""
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:6919
30467 msgid "guestfs_swapon_label"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:6921
30472 #, no-wrap
30473 msgid ""
30474 " int\n"
30475 " guestfs_swapon_label (guestfs_h *g,\n"
30476 "                       const char *label);\n"
30477 "\n"
30478 msgstr ""
30479
30480 #. type: textblock
30481 #: ../src/guestfs-actions.pod:6925
30482 msgid ""
30483 "This command enables swap to a labeled swap partition.  See "
30484 "C<guestfs_swapon_device> for other notes."
30485 msgstr ""
30486
30487 #. type: =head2
30488 #: ../src/guestfs-actions.pod:6932
30489 msgid "guestfs_swapon_uuid"
30490 msgstr ""
30491
30492 #. type: verbatim
30493 #: ../src/guestfs-actions.pod:6934
30494 #, no-wrap
30495 msgid ""
30496 " int\n"
30497 " guestfs_swapon_uuid (guestfs_h *g,\n"
30498 "                      const char *uuid);\n"
30499 "\n"
30500 msgstr ""
30501
30502 #. type: textblock
30503 #: ../src/guestfs-actions.pod:6938
30504 msgid ""
30505 "This command enables swap to a swap partition with the given UUID.  See "
30506 "C<guestfs_swapon_device> for other notes."
30507 msgstr ""
30508
30509 #. type: =head2
30510 #: ../src/guestfs-actions.pod:6945
30511 msgid "guestfs_sync"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../src/guestfs-actions.pod:6947
30516 #, no-wrap
30517 msgid ""
30518 " int\n"
30519 " guestfs_sync (guestfs_h *g);\n"
30520 "\n"
30521 msgstr ""
30522
30523 #. type: =head2
30524 #: ../src/guestfs-actions.pod:6960
30525 msgid "guestfs_tail"
30526 msgstr ""
30527
30528 #. type: verbatim
30529 #: ../src/guestfs-actions.pod:6962
30530 #, no-wrap
30531 msgid ""
30532 " char **\n"
30533 " guestfs_tail (guestfs_h *g,\n"
30534 "               const char *path);\n"
30535 "\n"
30536 msgstr ""
30537
30538 #. type: =head2
30539 #: ../src/guestfs-actions.pod:6978
30540 msgid "guestfs_tail_n"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-actions.pod:6980
30545 #, no-wrap
30546 msgid ""
30547 " char **\n"
30548 " guestfs_tail_n (guestfs_h *g,\n"
30549 "                 int nrlines,\n"
30550 "                 const char *path);\n"
30551 "\n"
30552 msgstr ""
30553
30554 #. type: =head2
30555 #: ../src/guestfs-actions.pod:7002
30556 msgid "guestfs_tar_in"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-actions.pod:7004
30561 #, no-wrap
30562 msgid ""
30563 " int\n"
30564 " guestfs_tar_in (guestfs_h *g,\n"
30565 "                 const char *tarfile,\n"
30566 "                 const char *directory);\n"
30567 "\n"
30568 msgstr ""
30569
30570 #. type: textblock
30571 #: ../src/guestfs-actions.pod:7012
30572 msgid ""
30573 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30574 msgstr ""
30575
30576 #. type: textblock
30577 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
30578 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
30579 msgid "(Added in 1.0.3)"
30580 msgstr ""
30581
30582 #. type: =head2
30583 #: ../src/guestfs-actions.pod:7019
30584 msgid "guestfs_tar_out"
30585 msgstr ""
30586
30587 #. type: verbatim
30588 #: ../src/guestfs-actions.pod:7021
30589 #, no-wrap
30590 msgid ""
30591 " int\n"
30592 " guestfs_tar_out (guestfs_h *g,\n"
30593 "                  const char *directory,\n"
30594 "                  const char *tarfile);\n"
30595 "\n"
30596 msgstr ""
30597
30598 #. type: textblock
30599 #: ../src/guestfs-actions.pod:7029
30600 msgid ""
30601 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30602 "C<guestfs_txz_out>."
30603 msgstr ""
30604
30605 #. type: =head2
30606 #: ../src/guestfs-actions.pod:7036
30607 msgid "guestfs_tgz_in"
30608 msgstr ""
30609
30610 #. type: verbatim
30611 #: ../src/guestfs-actions.pod:7038
30612 #, no-wrap
30613 msgid ""
30614 " int\n"
30615 " guestfs_tgz_in (guestfs_h *g,\n"
30616 "                 const char *tarball,\n"
30617 "                 const char *directory);\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: textblock
30622 #: ../src/guestfs-actions.pod:7046
30623 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30624 msgstr ""
30625
30626 #. type: =head2
30627 #: ../src/guestfs-actions.pod:7052
30628 msgid "guestfs_tgz_out"
30629 msgstr ""
30630
30631 #. type: verbatim
30632 #: ../src/guestfs-actions.pod:7054
30633 #, no-wrap
30634 msgid ""
30635 " int\n"
30636 " guestfs_tgz_out (guestfs_h *g,\n"
30637 "                  const char *directory,\n"
30638 "                  const char *tarball);\n"
30639 "\n"
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../src/guestfs-actions.pod:7062
30644 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30645 msgstr ""
30646
30647 #. type: =head2
30648 #: ../src/guestfs-actions.pod:7068
30649 msgid "guestfs_touch"
30650 msgstr ""
30651
30652 #. type: verbatim
30653 #: ../src/guestfs-actions.pod:7070
30654 #, no-wrap
30655 msgid ""
30656 " int\n"
30657 " guestfs_touch (guestfs_h *g,\n"
30658 "                const char *path);\n"
30659 "\n"
30660 msgstr ""
30661
30662 #. type: =head2
30663 #: ../src/guestfs-actions.pod:7085
30664 msgid "guestfs_truncate"
30665 msgstr ""
30666
30667 #. type: verbatim
30668 #: ../src/guestfs-actions.pod:7087
30669 #, no-wrap
30670 msgid ""
30671 " int\n"
30672 " guestfs_truncate (guestfs_h *g,\n"
30673 "                   const char *path);\n"
30674 "\n"
30675 msgstr ""
30676
30677 #. type: =head2
30678 #: ../src/guestfs-actions.pod:7098
30679 msgid "guestfs_truncate_size"
30680 msgstr ""
30681
30682 #. type: verbatim
30683 #: ../src/guestfs-actions.pod:7100
30684 #, no-wrap
30685 msgid ""
30686 " int\n"
30687 " guestfs_truncate_size (guestfs_h *g,\n"
30688 "                        const char *path,\n"
30689 "                        int64_t size);\n"
30690 "\n"
30691 msgstr ""
30692
30693 #. type: textblock
30694 #: ../src/guestfs-actions.pod:7108
30695 msgid ""
30696 "If the current file size is less than C<size> then the file is extended to "
30697 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30698 "blocks are not allocated for the file until you write to it).  To create a "
30699 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30700 msgstr ""
30701
30702 #. type: =head2
30703 #: ../src/guestfs-actions.pod:7118
30704 msgid "guestfs_tune2fs_l"
30705 msgstr ""
30706
30707 #. type: verbatim
30708 #: ../src/guestfs-actions.pod:7120
30709 #, no-wrap
30710 msgid ""
30711 " char **\n"
30712 " guestfs_tune2fs_l (guestfs_h *g,\n"
30713 "                    const char *device);\n"
30714 "\n"
30715 msgstr ""
30716
30717 #. type: =head2
30718 #: ../src/guestfs-actions.pod:7140
30719 msgid "guestfs_txz_in"
30720 msgstr ""
30721
30722 #. type: verbatim
30723 #: ../src/guestfs-actions.pod:7142
30724 #, no-wrap
30725 msgid ""
30726 " int\n"
30727 " guestfs_txz_in (guestfs_h *g,\n"
30728 "                 const char *tarball,\n"
30729 "                 const char *directory);\n"
30730 "\n"
30731 msgstr ""
30732
30733 #. type: =head2
30734 #: ../src/guestfs-actions.pod:7154
30735 msgid "guestfs_txz_out"
30736 msgstr ""
30737
30738 #. type: verbatim
30739 #: ../src/guestfs-actions.pod:7156
30740 #, no-wrap
30741 msgid ""
30742 " int\n"
30743 " guestfs_txz_out (guestfs_h *g,\n"
30744 "                  const char *directory,\n"
30745 "                  const char *tarball);\n"
30746 "\n"
30747 msgstr ""
30748
30749 #. type: =head2
30750 #: ../src/guestfs-actions.pod:7168
30751 msgid "guestfs_umask"
30752 msgstr ""
30753
30754 #. type: verbatim
30755 #: ../src/guestfs-actions.pod:7170
30756 #, no-wrap
30757 msgid ""
30758 " int\n"
30759 " guestfs_umask (guestfs_h *g,\n"
30760 "                int mask);\n"
30761 "\n"
30762 msgstr ""
30763
30764 #. type: textblock
30765 #: ../src/guestfs-actions.pod:7186
30766 msgid ""
30767 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30768 "C<guestfs_mkdir>."
30769 msgstr ""
30770
30771 #. type: =head2
30772 #: ../src/guestfs-actions.pod:7195
30773 msgid "guestfs_umount"
30774 msgstr ""
30775
30776 #. type: verbatim
30777 #: ../src/guestfs-actions.pod:7197
30778 #, no-wrap
30779 msgid ""
30780 " int\n"
30781 " guestfs_umount (guestfs_h *g,\n"
30782 "                 const char *pathordevice);\n"
30783 "\n"
30784 msgstr ""
30785
30786 #. type: =head2
30787 #: ../src/guestfs-actions.pod:7209
30788 msgid "guestfs_umount_all"
30789 msgstr ""
30790
30791 #. type: verbatim
30792 #: ../src/guestfs-actions.pod:7211
30793 #, no-wrap
30794 msgid ""
30795 " int\n"
30796 " guestfs_umount_all (guestfs_h *g);\n"
30797 "\n"
30798 msgstr ""
30799
30800 #. type: =head2
30801 #: ../src/guestfs-actions.pod:7222
30802 msgid "guestfs_upload"
30803 msgstr ""
30804
30805 #. type: verbatim
30806 #: ../src/guestfs-actions.pod:7224
30807 #, no-wrap
30808 msgid ""
30809 " int\n"
30810 " guestfs_upload (guestfs_h *g,\n"
30811 "                 const char *filename,\n"
30812 "                 const char *remotefilename);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs-actions.pod:7234
30818 msgid "See also C<guestfs_download>."
30819 msgstr ""
30820
30821 #. type: =head2
30822 #: ../src/guestfs-actions.pod:7245
30823 msgid "guestfs_upload_offset"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../src/guestfs-actions.pod:7247
30828 #, no-wrap
30829 msgid ""
30830 " int\n"
30831 " guestfs_upload_offset (guestfs_h *g,\n"
30832 "                        const char *filename,\n"
30833 "                        const char *remotefilename,\n"
30834 "                        int64_t offset);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: textblock
30839 #: ../src/guestfs-actions.pod:7263
30840 msgid ""
30841 "Note that there is no limit on the amount of data that can be uploaded with "
30842 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30843 "full amount unless an error occurs."
30844 msgstr ""
30845
30846 #. type: textblock
30847 #: ../src/guestfs-actions.pod:7268
30848 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30849 msgstr ""
30850
30851 #. type: =head2
30852 #: ../src/guestfs-actions.pod:7279
30853 msgid "guestfs_utimens"
30854 msgstr ""
30855
30856 #. type: verbatim
30857 #: ../src/guestfs-actions.pod:7281
30858 #, no-wrap
30859 msgid ""
30860 " int\n"
30861 " guestfs_utimens (guestfs_h *g,\n"
30862 "                  const char *path,\n"
30863 "                  int64_t atsecs,\n"
30864 "                  int64_t atnsecs,\n"
30865 "                  int64_t mtsecs,\n"
30866 "                  int64_t mtnsecs);\n"
30867 "\n"
30868 msgstr ""
30869
30870 #. type: =head2
30871 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
30872 msgid "guestfs_version"
30873 msgstr ""
30874
30875 #. type: verbatim
30876 #: ../src/guestfs-actions.pod:7312
30877 #, no-wrap
30878 msgid ""
30879 " struct guestfs_version *\n"
30880 " guestfs_version (guestfs_h *g);\n"
30881 "\n"
30882 msgstr ""
30883
30884 #. type: textblock
30885 #: ../src/guestfs-actions.pod:7340
30886 msgid ""
30887 "I<Note:> Don't use this call to test for availability of features.  In "
30888 "enterprise distributions we backport features from later versions into "
30889 "earlier versions, making this an unreliable way to test for features.  Use "
30890 "C<guestfs_available> instead."
30891 msgstr ""
30892
30893 #. type: textblock
30894 #: ../src/guestfs-actions.pod:7346
30895 msgid ""
30896 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30897 "error.  I<The caller must call C<guestfs_free_version> after use>."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs-actions.pod:7350
30902 msgid "(Added in 1.0.58)"
30903 msgstr ""
30904
30905 #. type: =head2
30906 #: ../src/guestfs-actions.pod:7352
30907 msgid "guestfs_vfs_label"
30908 msgstr ""
30909
30910 #. type: verbatim
30911 #: ../src/guestfs-actions.pod:7354
30912 #, no-wrap
30913 msgid ""
30914 " char *\n"
30915 " guestfs_vfs_label (guestfs_h *g,\n"
30916 "                    const char *device);\n"
30917 "\n"
30918 msgstr ""
30919
30920 #. type: textblock
30921 #: ../src/guestfs-actions.pod:7363
30922 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
30927 msgid "(Added in 1.3.18)"
30928 msgstr ""
30929
30930 #. type: =head2
30931 #: ../src/guestfs-actions.pod:7370
30932 msgid "guestfs_vfs_type"
30933 msgstr ""
30934
30935 #. type: verbatim
30936 #: ../src/guestfs-actions.pod:7372
30937 #, no-wrap
30938 msgid ""
30939 " char *\n"
30940 " guestfs_vfs_type (guestfs_h *g,\n"
30941 "                   const char *device);\n"
30942 "\n"
30943 msgstr ""
30944
30945 #. type: =head2
30946 #: ../src/guestfs-actions.pod:7389
30947 msgid "guestfs_vfs_uuid"
30948 msgstr ""
30949
30950 #. type: verbatim
30951 #: ../src/guestfs-actions.pod:7391
30952 #, no-wrap
30953 msgid ""
30954 " char *\n"
30955 " guestfs_vfs_uuid (guestfs_h *g,\n"
30956 "                   const char *device);\n"
30957 "\n"
30958 msgstr ""
30959
30960 #. type: textblock
30961 #: ../src/guestfs-actions.pod:7400
30962 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30963 msgstr ""
30964
30965 #. type: =head2
30966 #: ../src/guestfs-actions.pod:7407
30967 msgid "guestfs_vg_activate"
30968 msgstr ""
30969
30970 #. type: verbatim
30971 #: ../src/guestfs-actions.pod:7409
30972 #, no-wrap
30973 msgid ""
30974 " int\n"
30975 " guestfs_vg_activate (guestfs_h *g,\n"
30976 "                      int activate,\n"
30977 "                      char *const *volgroups);\n"
30978 "\n"
30979 msgstr ""
30980
30981 #. type: =head2
30982 #: ../src/guestfs-actions.pod:7426
30983 msgid "guestfs_vg_activate_all"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-actions.pod:7428
30988 #, no-wrap
30989 msgid ""
30990 " int\n"
30991 " guestfs_vg_activate_all (guestfs_h *g,\n"
30992 "                          int activate);\n"
30993 "\n"
30994 msgstr ""
30995
30996 #. type: =head2
30997 #: ../src/guestfs-actions.pod:7441
30998 msgid "guestfs_vgcreate"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs-actions.pod:7443
31003 #, no-wrap
31004 msgid ""
31005 " int\n"
31006 " guestfs_vgcreate (guestfs_h *g,\n"
31007 "                   const char *volgroup,\n"
31008 "                   char *const *physvols);\n"
31009 "\n"
31010 msgstr ""
31011
31012 #. type: =head2
31013 #: ../src/guestfs-actions.pod:7455
31014 msgid "guestfs_vglvuuids"
31015 msgstr ""
31016
31017 #. type: verbatim
31018 #: ../src/guestfs-actions.pod:7457
31019 #, no-wrap
31020 msgid ""
31021 " char **\n"
31022 " guestfs_vglvuuids (guestfs_h *g,\n"
31023 "                    const char *vgname);\n"
31024 "\n"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs-actions.pod:7464
31029 msgid ""
31030 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31031 "associate logical volumes and volume groups."
31032 msgstr ""
31033
31034 #. type: textblock
31035 #: ../src/guestfs-actions.pod:7467
31036 msgid "See also C<guestfs_vgpvuuids>."
31037 msgstr ""
31038
31039 #. type: =head2
31040 #: ../src/guestfs-actions.pod:7475
31041 msgid "guestfs_vgpvuuids"
31042 msgstr ""
31043
31044 #. type: verbatim
31045 #: ../src/guestfs-actions.pod:7477
31046 #, no-wrap
31047 msgid ""
31048 " char **\n"
31049 " guestfs_vgpvuuids (guestfs_h *g,\n"
31050 "                    const char *vgname);\n"
31051 "\n"
31052 msgstr ""
31053
31054 #. type: textblock
31055 #: ../src/guestfs-actions.pod:7484
31056 msgid ""
31057 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31058 "associate physical volumes and volume groups."
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs-actions.pod:7487
31063 msgid "See also C<guestfs_vglvuuids>."
31064 msgstr ""
31065
31066 #. type: =head2
31067 #: ../src/guestfs-actions.pod:7495
31068 msgid "guestfs_vgremove"
31069 msgstr ""
31070
31071 #. type: verbatim
31072 #: ../src/guestfs-actions.pod:7497
31073 #, no-wrap
31074 msgid ""
31075 " int\n"
31076 " guestfs_vgremove (guestfs_h *g,\n"
31077 "                   const char *vgname);\n"
31078 "\n"
31079 msgstr ""
31080
31081 #. type: =head2
31082 #: ../src/guestfs-actions.pod:7510
31083 msgid "guestfs_vgrename"
31084 msgstr ""
31085
31086 #. type: verbatim
31087 #: ../src/guestfs-actions.pod:7512
31088 #, no-wrap
31089 msgid ""
31090 " int\n"
31091 " guestfs_vgrename (guestfs_h *g,\n"
31092 "                   const char *volgroup,\n"
31093 "                   const char *newvolgroup);\n"
31094 "\n"
31095 msgstr ""
31096
31097 #. type: =head2
31098 #: ../src/guestfs-actions.pod:7523
31099 msgid "guestfs_vgs"
31100 msgstr ""
31101
31102 #. type: verbatim
31103 #: ../src/guestfs-actions.pod:7525
31104 #, no-wrap
31105 msgid ""
31106 " char **\n"
31107 " guestfs_vgs (guestfs_h *g);\n"
31108 "\n"
31109 msgstr ""
31110
31111 #. type: textblock
31112 #: ../src/guestfs-actions.pod:7534
31113 msgid "See also C<guestfs_vgs_full>."
31114 msgstr ""
31115
31116 #. type: =head2
31117 #: ../src/guestfs-actions.pod:7542
31118 msgid "guestfs_vgs_full"
31119 msgstr ""
31120
31121 #. type: verbatim
31122 #: ../src/guestfs-actions.pod:7544
31123 #, no-wrap
31124 msgid ""
31125 " struct guestfs_lvm_vg_list *\n"
31126 " guestfs_vgs_full (guestfs_h *g);\n"
31127 "\n"
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs-actions.pod:7550
31132 msgid ""
31133 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31134 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31135 msgstr ""
31136
31137 #. type: =head2
31138 #: ../src/guestfs-actions.pod:7556
31139 msgid "guestfs_vgscan"
31140 msgstr ""
31141
31142 #. type: verbatim
31143 #: ../src/guestfs-actions.pod:7558
31144 #, no-wrap
31145 msgid ""
31146 " int\n"
31147 " guestfs_vgscan (guestfs_h *g);\n"
31148 "\n"
31149 msgstr ""
31150
31151 #. type: =head2
31152 #: ../src/guestfs-actions.pod:7568
31153 msgid "guestfs_vguuid"
31154 msgstr ""
31155
31156 #. type: verbatim
31157 #: ../src/guestfs-actions.pod:7570
31158 #, no-wrap
31159 msgid ""
31160 " char *\n"
31161 " guestfs_vguuid (guestfs_h *g,\n"
31162 "                 const char *vgname);\n"
31163 "\n"
31164 msgstr ""
31165
31166 #. type: =head2
31167 #: ../src/guestfs-actions.pod:7581
31168 msgid "guestfs_wait_ready"
31169 msgstr ""
31170
31171 #. type: verbatim
31172 #: ../src/guestfs-actions.pod:7583
31173 #, no-wrap
31174 msgid ""
31175 " int\n"
31176 " guestfs_wait_ready (guestfs_h *g);\n"
31177 "\n"
31178 msgstr ""
31179
31180 #. type: textblock
31181 #: ../src/guestfs-actions.pod:7586
31182 msgid "This function is a no op."
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs-actions.pod:7588
31187 msgid ""
31188 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31189 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31190 "is no longer necessary because C<guestfs_launch> now does the waiting."
31191 msgstr ""
31192
31193 #. type: textblock
31194 #: ../src/guestfs-actions.pod:7593
31195 msgid ""
31196 "If you see any calls to this function in code then you can just remove them, "
31197 "unless you want to retain compatibility with older versions of the API."
31198 msgstr ""
31199
31200 #. type: textblock
31201 #: ../src/guestfs-actions.pod:7599
31202 msgid ""
31203 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
31204 "instead."
31205 msgstr ""
31206
31207 #. type: =head2
31208 #: ../src/guestfs-actions.pod:7608
31209 msgid "guestfs_wc_c"
31210 msgstr ""
31211
31212 #. type: verbatim
31213 #: ../src/guestfs-actions.pod:7610
31214 #, no-wrap
31215 msgid ""
31216 " int\n"
31217 " guestfs_wc_c (guestfs_h *g,\n"
31218 "               const char *path);\n"
31219 "\n"
31220 msgstr ""
31221
31222 #. type: =head2
31223 #: ../src/guestfs-actions.pod:7621
31224 msgid "guestfs_wc_l"
31225 msgstr ""
31226
31227 #. type: verbatim
31228 #: ../src/guestfs-actions.pod:7623
31229 #, no-wrap
31230 msgid ""
31231 " int\n"
31232 " guestfs_wc_l (guestfs_h *g,\n"
31233 "               const char *path);\n"
31234 "\n"
31235 msgstr ""
31236
31237 #. type: =head2
31238 #: ../src/guestfs-actions.pod:7634
31239 msgid "guestfs_wc_w"
31240 msgstr ""
31241
31242 #. type: verbatim
31243 #: ../src/guestfs-actions.pod:7636
31244 #, no-wrap
31245 msgid ""
31246 " int\n"
31247 " guestfs_wc_w (guestfs_h *g,\n"
31248 "               const char *path);\n"
31249 "\n"
31250 msgstr ""
31251
31252 #. type: =head2
31253 #: ../src/guestfs-actions.pod:7647
31254 msgid "guestfs_write"
31255 msgstr ""
31256
31257 #. type: verbatim
31258 #: ../src/guestfs-actions.pod:7649
31259 #, no-wrap
31260 msgid ""
31261 " int\n"
31262 " guestfs_write (guestfs_h *g,\n"
31263 "                const char *path,\n"
31264 "                const char *content,\n"
31265 "                size_t content_size);\n"
31266 "\n"
31267 msgstr ""
31268
31269 #. type: textblock
31270 #: ../src/guestfs-actions.pod:7658
31271 msgid "See also C<guestfs_write_append>."
31272 msgstr ""
31273
31274 #. type: =head2
31275 #: ../src/guestfs-actions.pod:7667
31276 msgid "guestfs_write_append"
31277 msgstr ""
31278
31279 #. type: verbatim
31280 #: ../src/guestfs-actions.pod:7669
31281 #, no-wrap
31282 msgid ""
31283 " int\n"
31284 " guestfs_write_append (guestfs_h *g,\n"
31285 "                       const char *path,\n"
31286 "                       const char *content,\n"
31287 "                       size_t content_size);\n"
31288 "\n"
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:7678
31293 msgid "See also C<guestfs_write>."
31294 msgstr ""
31295
31296 #. type: =head2
31297 #: ../src/guestfs-actions.pod:7687
31298 msgid "guestfs_write_file"
31299 msgstr "guestfs_write_file"
31300
31301 #. type: verbatim
31302 #: ../src/guestfs-actions.pod:7689
31303 #, no-wrap
31304 msgid ""
31305 " int\n"
31306 " guestfs_write_file (guestfs_h *g,\n"
31307 "                     const char *path,\n"
31308 "                     const char *content,\n"
31309 "                     int size);\n"
31310 "\n"
31311 msgstr ""
31312 " int\n"
31313 " guestfs_write_file (guestfs_h *g,\n"
31314 "                     const char *path,\n"
31315 "                     const char *content,\n"
31316 "                     int size);\n"
31317 "\n"
31318
31319 #. type: textblock
31320 #: ../src/guestfs-actions.pod:7711
31321 msgid ""
31322 "This function is deprecated.  In new code, use the L</guestfs_write> call "
31323 "instead."
31324 msgstr ""
31325
31326 #. type: =head2
31327 #: ../src/guestfs-actions.pod:7720
31328 msgid "guestfs_zegrep"
31329 msgstr "guestfs_zegrep"
31330
31331 #. type: verbatim
31332 #: ../src/guestfs-actions.pod:7722
31333 #, no-wrap
31334 msgid ""
31335 " char **\n"
31336 " guestfs_zegrep (guestfs_h *g,\n"
31337 "                 const char *regex,\n"
31338 "                 const char *path);\n"
31339 "\n"
31340 msgstr ""
31341 " char **\n"
31342 " guestfs_zegrep (guestfs_h *g,\n"
31343 "                 const char *regex,\n"
31344 "                 const char *path);\n"
31345 "\n"
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:7739
31349 msgid "guestfs_zegrepi"
31350 msgstr "guestfs_zegrepi"
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:7741
31354 #, no-wrap
31355 msgid ""
31356 " char **\n"
31357 " guestfs_zegrepi (guestfs_h *g,\n"
31358 "                  const char *regex,\n"
31359 "                  const char *path);\n"
31360 "\n"
31361 msgstr ""
31362 " char **\n"
31363 " guestfs_zegrepi (guestfs_h *g,\n"
31364 "                  const char *regex,\n"
31365 "                  const char *path);\n"
31366 "\n"
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:7758
31370 msgid "guestfs_zero"
31371 msgstr "guestfs_zero"
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:7760
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_zero (guestfs_h *g,\n"
31379 "               const char *device);\n"
31380 "\n"
31381 msgstr ""
31382 " int\n"
31383 " guestfs_zero (guestfs_h *g,\n"
31384 "               const char *device);\n"
31385 "\n"
31386
31387 #. type: textblock
31388 #: ../src/guestfs-actions.pod:7770
31389 msgid ""
31390 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31391 "C<guestfs_is_zero_device>"
31392 msgstr ""
31393
31394 #. type: =head2
31395 #: ../src/guestfs-actions.pod:7782
31396 msgid "guestfs_zero_device"
31397 msgstr "guestfs_zero_device"
31398
31399 #. type: verbatim
31400 #: ../src/guestfs-actions.pod:7784
31401 #, no-wrap
31402 msgid ""
31403 " int\n"
31404 " guestfs_zero_device (guestfs_h *g,\n"
31405 "                      const char *device);\n"
31406 "\n"
31407 msgstr ""
31408 " int\n"
31409 " guestfs_zero_device (guestfs_h *g,\n"
31410 "                      const char *device);\n"
31411 "\n"
31412
31413 #. type: textblock
31414 #: ../src/guestfs-actions.pod:7788
31415 msgid ""
31416 "This command writes zeroes over the entire C<device>.  Compare with "
31417 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31418 msgstr ""
31419
31420 #. type: textblock
31421 #: ../src/guestfs-actions.pod:7802
31422 msgid "(Added in 1.3.1)"
31423 msgstr "(Додано у 1.3.1)"
31424
31425 #. type: =head2
31426 #: ../src/guestfs-actions.pod:7804
31427 msgid "guestfs_zerofree"
31428 msgstr "guestfs_zerofree"
31429
31430 #. type: verbatim
31431 #: ../src/guestfs-actions.pod:7806
31432 #, no-wrap
31433 msgid ""
31434 " int\n"
31435 " guestfs_zerofree (guestfs_h *g,\n"
31436 "                   const char *device);\n"
31437 "\n"
31438 msgstr ""
31439 " int\n"
31440 " guestfs_zerofree (guestfs_h *g,\n"
31441 "                   const char *device);\n"
31442 "\n"
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:7825
31446 msgid "guestfs_zfgrep"
31447 msgstr "guestfs_zfgrep"
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:7827
31451 #, no-wrap
31452 msgid ""
31453 " char **\n"
31454 " guestfs_zfgrep (guestfs_h *g,\n"
31455 "                 const char *pattern,\n"
31456 "                 const char *path);\n"
31457 "\n"
31458 msgstr ""
31459 " char **\n"
31460 " guestfs_zfgrep (guestfs_h *g,\n"
31461 "                 const char *pattern,\n"
31462 "                 const char *path);\n"
31463 "\n"
31464
31465 #. type: =head2
31466 #: ../src/guestfs-actions.pod:7844
31467 msgid "guestfs_zfgrepi"
31468 msgstr "guestfs_zfgrepi"
31469
31470 #. type: verbatim
31471 #: ../src/guestfs-actions.pod:7846
31472 #, no-wrap
31473 msgid ""
31474 " char **\n"
31475 " guestfs_zfgrepi (guestfs_h *g,\n"
31476 "                  const char *pattern,\n"
31477 "                  const char *path);\n"
31478 "\n"
31479 msgstr ""
31480 " char **\n"
31481 " guestfs_zfgrepi (guestfs_h *g,\n"
31482 "                  const char *pattern,\n"
31483 "                  const char *path);\n"
31484 "\n"
31485
31486 #. type: =head2
31487 #: ../src/guestfs-actions.pod:7863
31488 msgid "guestfs_zfile"
31489 msgstr "guestfs_zfile"
31490
31491 #. type: verbatim
31492 #: ../src/guestfs-actions.pod:7865
31493 #, no-wrap
31494 msgid ""
31495 " char *\n"
31496 " guestfs_zfile (guestfs_h *g,\n"
31497 "                const char *meth,\n"
31498 "                const char *path);\n"
31499 "\n"
31500 msgstr ""
31501 " char *\n"
31502 " guestfs_zfile (guestfs_h *g,\n"
31503 "                const char *meth,\n"
31504 "                const char *path);\n"
31505 "\n"
31506
31507 #. type: textblock
31508 #: ../src/guestfs-actions.pod:7875
31509 msgid ""
31510 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31511 "files."
31512 msgstr ""
31513
31514 #. type: textblock
31515 #: ../src/guestfs-actions.pod:7881
31516 msgid ""
31517 "This function is deprecated.  In new code, use the L</guestfs_file> call "
31518 "instead."
31519 msgstr ""
31520
31521 #. type: =head2
31522 #: ../src/guestfs-actions.pod:7890
31523 msgid "guestfs_zgrep"
31524 msgstr "guestfs_zgrep"
31525
31526 #. type: verbatim
31527 #: ../src/guestfs-actions.pod:7892
31528 #, no-wrap
31529 msgid ""
31530 " char **\n"
31531 " guestfs_zgrep (guestfs_h *g,\n"
31532 "                const char *regex,\n"
31533 "                const char *path);\n"
31534 "\n"
31535 msgstr ""
31536 " char **\n"
31537 " guestfs_zgrep (guestfs_h *g,\n"
31538 "                const char *regex,\n"
31539 "                const char *path);\n"
31540 "\n"
31541
31542 #. type: =head2
31543 #: ../src/guestfs-actions.pod:7909
31544 msgid "guestfs_zgrepi"
31545 msgstr "guestfs_zgrepi"
31546
31547 #. type: verbatim
31548 #: ../src/guestfs-actions.pod:7911
31549 #, no-wrap
31550 msgid ""
31551 " char **\n"
31552 " guestfs_zgrepi (guestfs_h *g,\n"
31553 "                 const char *regex,\n"
31554 "                 const char *path);\n"
31555 "\n"
31556 msgstr ""
31557 " char **\n"
31558 " guestfs_zgrepi (guestfs_h *g,\n"
31559 "                 const char *regex,\n"
31560 "                 const char *path);\n"
31561 "\n"
31562
31563 #. type: =item
31564 #: ../src/guestfs-availability.pod:3
31565 msgid "B<augeas>"
31566 msgstr "B<augeas>"
31567
31568 #. type: textblock
31569 #: ../src/guestfs-availability.pod:5
31570 msgid ""
31571 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31572 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31573 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31574 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31575 "L</guestfs_aug_save> L</guestfs_aug_set>"
31576 msgstr ""
31577
31578 #. type: =item
31579 #: ../src/guestfs-availability.pod:21
31580 msgid "B<btrfs>"
31581 msgstr ""
31582
31583 #. type: textblock
31584 #: ../src/guestfs-availability.pod:23
31585 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31586 msgstr ""
31587
31588 #. type: =item
31589 #: ../src/guestfs-availability.pod:26
31590 msgid "B<inotify>"
31591 msgstr "B<inotify>"
31592
31593 #. type: textblock
31594 #: ../src/guestfs-availability.pod:28
31595 msgid ""
31596 "The following functions: L</guestfs_inotify_add_watch> L</"
31597 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31598 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31599 msgstr ""
31600
31601 #. type: =item
31602 #: ../src/guestfs-availability.pod:36
31603 msgid "B<linuxfsuuid>"
31604 msgstr "B<linuxfsuuid>"
31605
31606 #. type: textblock
31607 #: ../src/guestfs-availability.pod:38
31608 msgid ""
31609 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31610 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31611 msgstr ""
31612
31613 #. type: =item
31614 #: ../src/guestfs-availability.pod:45
31615 msgid "B<linuxmodules>"
31616 msgstr "B<linuxmodules>"
31617
31618 #. type: textblock
31619 #: ../src/guestfs-availability.pod:47
31620 msgid "The following functions: L</guestfs_modprobe>"
31621 msgstr ""
31622
31623 #. type: =item
31624 #: ../src/guestfs-availability.pod:50
31625 msgid "B<linuxxattrs>"
31626 msgstr "B<linuxxattrs>"
31627
31628 #. type: textblock
31629 #: ../src/guestfs-availability.pod:52
31630 msgid ""
31631 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31632 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31633 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31634 "guestfs_setxattr>"
31635 msgstr ""
31636
31637 #. type: =item
31638 #: ../src/guestfs-availability.pod:63
31639 msgid "B<luks>"
31640 msgstr "B<luks>"
31641
31642 #. type: textblock
31643 #: ../src/guestfs-availability.pod:65
31644 msgid ""
31645 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31646 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31647 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31648 msgstr ""
31649
31650 #. type: =item
31651 #: ../src/guestfs-availability.pod:74
31652 msgid "B<lvm2>"
31653 msgstr "B<lvm2>"
31654
31655 #. type: textblock
31656 #: ../src/guestfs-availability.pod:76
31657 msgid ""
31658 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31659 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31660 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31661 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31662 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31663 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31664 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31665 msgstr ""
31666
31667 #. type: =item
31668 #: ../src/guestfs-availability.pod:99
31669 msgid "B<mknod>"
31670 msgstr "B<mknod>"
31671
31672 #. type: textblock
31673 #: ../src/guestfs-availability.pod:101
31674 msgid ""
31675 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31676 "guestfs_mknod_b> L</guestfs_mknod_c>"
31677 msgstr ""
31678
31679 #. type: =item
31680 #: ../src/guestfs-availability.pod:107
31681 msgid "B<ntfs3g>"
31682 msgstr "B<ntfs3g>"
31683
31684 #. type: textblock
31685 #: ../src/guestfs-availability.pod:109
31686 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31687 msgstr ""
31688
31689 #. type: =item
31690 #: ../src/guestfs-availability.pod:112
31691 msgid "B<ntfsprogs>"
31692 msgstr "B<ntfsprogs>"
31693
31694 #. type: textblock
31695 #: ../src/guestfs-availability.pod:114
31696 msgid ""
31697 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31698 "L</guestfs_ntfsresize_size>"
31699 msgstr ""
31700
31701 #. type: =item
31702 #: ../src/guestfs-availability.pod:119
31703 msgid "B<realpath>"
31704 msgstr "B<realpath>"
31705
31706 #. type: textblock
31707 #: ../src/guestfs-availability.pod:121
31708 msgid "The following functions: L</guestfs_realpath>"
31709 msgstr ""
31710
31711 #. type: =item
31712 #: ../src/guestfs-availability.pod:124
31713 msgid "B<scrub>"
31714 msgstr "B<scrub>"
31715
31716 #. type: textblock
31717 #: ../src/guestfs-availability.pod:126
31718 msgid ""
31719 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31720 "guestfs_scrub_freespace>"
31721 msgstr ""
31722
31723 #. type: =item
31724 #: ../src/guestfs-availability.pod:131
31725 msgid "B<selinux>"
31726 msgstr "B<selinux>"
31727
31728 #. type: textblock
31729 #: ../src/guestfs-availability.pod:133
31730 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31731 msgstr ""
31732
31733 #. type: =item
31734 #: ../src/guestfs-availability.pod:137
31735 msgid "B<xz>"
31736 msgstr "B<xz>"
31737
31738 #. type: textblock
31739 #: ../src/guestfs-availability.pod:139
31740 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31741 msgstr ""
31742
31743 #. type: =item
31744 #: ../src/guestfs-availability.pod:143
31745 msgid "B<zerofree>"
31746 msgstr "B<zerofree>"
31747
31748 #. type: textblock
31749 #: ../src/guestfs-availability.pod:145
31750 msgid "The following functions: L</guestfs_zerofree>"
31751 msgstr ""
31752
31753 #. type: =head2
31754 #: ../src/guestfs-structs.pod:1
31755 msgid "guestfs_int_bool"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs-structs.pod:3
31760 #, no-wrap
31761 msgid ""
31762 " struct guestfs_int_bool {\n"
31763 "   int32_t i;\n"
31764 "   int32_t b;\n"
31765 " };\n"
31766 " \n"
31767 msgstr ""
31768
31769 #. type: verbatim
31770 #: ../src/guestfs-structs.pod:8
31771 #, no-wrap
31772 msgid ""
31773 " struct guestfs_int_bool_list {\n"
31774 "   uint32_t len; /* Number of elements in list. */\n"
31775 "   struct guestfs_int_bool *val; /* Elements. */\n"
31776 " };\n"
31777 " \n"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-structs.pod:13
31782 #, no-wrap
31783 msgid ""
31784 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31785 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31786 "\n"
31787 msgstr ""
31788
31789 #. type: =head2
31790 #: ../src/guestfs-structs.pod:16
31791 msgid "guestfs_lvm_pv"
31792 msgstr ""
31793
31794 #. type: verbatim
31795 #: ../src/guestfs-structs.pod:18
31796 #, no-wrap
31797 msgid ""
31798 " struct guestfs_lvm_pv {\n"
31799 "   char *pv_name;\n"
31800 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31801 "   char pv_uuid[32];\n"
31802 "   char *pv_fmt;\n"
31803 "   uint64_t pv_size;\n"
31804 "   uint64_t dev_size;\n"
31805 "   uint64_t pv_free;\n"
31806 "   uint64_t pv_used;\n"
31807 "   char *pv_attr;\n"
31808 "   int64_t pv_pe_count;\n"
31809 "   int64_t pv_pe_alloc_count;\n"
31810 "   char *pv_tags;\n"
31811 "   uint64_t pe_start;\n"
31812 "   int64_t pv_mda_count;\n"
31813 "   uint64_t pv_mda_free;\n"
31814 " };\n"
31815 " \n"
31816 msgstr ""
31817
31818 #. type: verbatim
31819 #: ../src/guestfs-structs.pod:36
31820 #, no-wrap
31821 msgid ""
31822 " struct guestfs_lvm_pv_list {\n"
31823 "   uint32_t len; /* Number of elements in list. */\n"
31824 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31825 " };\n"
31826 " \n"
31827 msgstr ""
31828
31829 #. type: verbatim
31830 #: ../src/guestfs-structs.pod:41
31831 #, no-wrap
31832 msgid ""
31833 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31834 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31835 "\n"
31836 msgstr ""
31837
31838 #. type: =head2
31839 #: ../src/guestfs-structs.pod:44
31840 msgid "guestfs_lvm_vg"
31841 msgstr ""
31842
31843 #. type: verbatim
31844 #: ../src/guestfs-structs.pod:46
31845 #, no-wrap
31846 msgid ""
31847 " struct guestfs_lvm_vg {\n"
31848 "   char *vg_name;\n"
31849 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31850 "   char vg_uuid[32];\n"
31851 "   char *vg_fmt;\n"
31852 "   char *vg_attr;\n"
31853 "   uint64_t vg_size;\n"
31854 "   uint64_t vg_free;\n"
31855 "   char *vg_sysid;\n"
31856 "   uint64_t vg_extent_size;\n"
31857 "   int64_t vg_extent_count;\n"
31858 "   int64_t vg_free_count;\n"
31859 "   int64_t max_lv;\n"
31860 "   int64_t max_pv;\n"
31861 "   int64_t pv_count;\n"
31862 "   int64_t lv_count;\n"
31863 "   int64_t snap_count;\n"
31864 "   int64_t vg_seqno;\n"
31865 "   char *vg_tags;\n"
31866 "   int64_t vg_mda_count;\n"
31867 "   uint64_t vg_mda_free;\n"
31868 " };\n"
31869 " \n"
31870 msgstr ""
31871
31872 #. type: verbatim
31873 #: ../src/guestfs-structs.pod:69
31874 #, no-wrap
31875 msgid ""
31876 " struct guestfs_lvm_vg_list {\n"
31877 "   uint32_t len; /* Number of elements in list. */\n"
31878 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31879 " };\n"
31880 " \n"
31881 msgstr ""
31882
31883 #. type: verbatim
31884 #: ../src/guestfs-structs.pod:74
31885 #, no-wrap
31886 msgid ""
31887 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31888 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31889 "\n"
31890 msgstr ""
31891
31892 #. type: =head2
31893 #: ../src/guestfs-structs.pod:77
31894 msgid "guestfs_lvm_lv"
31895 msgstr ""
31896
31897 #. type: verbatim
31898 #: ../src/guestfs-structs.pod:79
31899 #, no-wrap
31900 msgid ""
31901 " struct guestfs_lvm_lv {\n"
31902 "   char *lv_name;\n"
31903 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31904 "   char lv_uuid[32];\n"
31905 "   char *lv_attr;\n"
31906 "   int64_t lv_major;\n"
31907 "   int64_t lv_minor;\n"
31908 "   int64_t lv_kernel_major;\n"
31909 "   int64_t lv_kernel_minor;\n"
31910 "   uint64_t lv_size;\n"
31911 "   int64_t seg_count;\n"
31912 "   char *origin;\n"
31913 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31914 "   float snap_percent;\n"
31915 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31916 "   float copy_percent;\n"
31917 "   char *move_pv;\n"
31918 "   char *lv_tags;\n"
31919 "   char *mirror_log;\n"
31920 "   char *modules;\n"
31921 " };\n"
31922 " \n"
31923 msgstr ""
31924
31925 #. type: verbatim
31926 #: ../src/guestfs-structs.pod:101
31927 #, no-wrap
31928 msgid ""
31929 " struct guestfs_lvm_lv_list {\n"
31930 "   uint32_t len; /* Number of elements in list. */\n"
31931 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31932 " };\n"
31933 " \n"
31934 msgstr ""
31935
31936 #. type: verbatim
31937 #: ../src/guestfs-structs.pod:106
31938 #, no-wrap
31939 msgid ""
31940 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31941 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31942 "\n"
31943 msgstr ""
31944
31945 #. type: verbatim
31946 #: ../src/guestfs-structs.pod:111
31947 #, no-wrap
31948 msgid ""
31949 " struct guestfs_stat {\n"
31950 "   int64_t dev;\n"
31951 "   int64_t ino;\n"
31952 "   int64_t mode;\n"
31953 "   int64_t nlink;\n"
31954 "   int64_t uid;\n"
31955 "   int64_t gid;\n"
31956 "   int64_t rdev;\n"
31957 "   int64_t size;\n"
31958 "   int64_t blksize;\n"
31959 "   int64_t blocks;\n"
31960 "   int64_t atime;\n"
31961 "   int64_t mtime;\n"
31962 "   int64_t ctime;\n"
31963 " };\n"
31964 " \n"
31965 msgstr ""
31966
31967 #. type: verbatim
31968 #: ../src/guestfs-structs.pod:127
31969 #, no-wrap
31970 msgid ""
31971 " struct guestfs_stat_list {\n"
31972 "   uint32_t len; /* Number of elements in list. */\n"
31973 "   struct guestfs_stat *val; /* Elements. */\n"
31974 " };\n"
31975 " \n"
31976 msgstr ""
31977
31978 #. type: verbatim
31979 #: ../src/guestfs-structs.pod:132
31980 #, no-wrap
31981 msgid ""
31982 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31983 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31984 "\n"
31985 msgstr ""
31986
31987 #. type: verbatim
31988 #: ../src/guestfs-structs.pod:137
31989 #, no-wrap
31990 msgid ""
31991 " struct guestfs_statvfs {\n"
31992 "   int64_t bsize;\n"
31993 "   int64_t frsize;\n"
31994 "   int64_t blocks;\n"
31995 "   int64_t bfree;\n"
31996 "   int64_t bavail;\n"
31997 "   int64_t files;\n"
31998 "   int64_t ffree;\n"
31999 "   int64_t favail;\n"
32000 "   int64_t fsid;\n"
32001 "   int64_t flag;\n"
32002 "   int64_t namemax;\n"
32003 " };\n"
32004 " \n"
32005 msgstr ""
32006
32007 #. type: verbatim
32008 #: ../src/guestfs-structs.pod:151
32009 #, no-wrap
32010 msgid ""
32011 " struct guestfs_statvfs_list {\n"
32012 "   uint32_t len; /* Number of elements in list. */\n"
32013 "   struct guestfs_statvfs *val; /* Elements. */\n"
32014 " };\n"
32015 " \n"
32016 msgstr ""
32017
32018 #. type: verbatim
32019 #: ../src/guestfs-structs.pod:156
32020 #, no-wrap
32021 msgid ""
32022 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32023 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32024 "\n"
32025 msgstr ""
32026
32027 #. type: =head2
32028 #: ../src/guestfs-structs.pod:159
32029 msgid "guestfs_dirent"
32030 msgstr ""
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-structs.pod:161
32034 #, no-wrap
32035 msgid ""
32036 " struct guestfs_dirent {\n"
32037 "   int64_t ino;\n"
32038 "   char ftyp;\n"
32039 "   char *name;\n"
32040 " };\n"
32041 " \n"
32042 msgstr ""
32043
32044 #. type: verbatim
32045 #: ../src/guestfs-structs.pod:167
32046 #, no-wrap
32047 msgid ""
32048 " struct guestfs_dirent_list {\n"
32049 "   uint32_t len; /* Number of elements in list. */\n"
32050 "   struct guestfs_dirent *val; /* Elements. */\n"
32051 " };\n"
32052 " \n"
32053 msgstr ""
32054
32055 #. type: verbatim
32056 #: ../src/guestfs-structs.pod:172
32057 #, no-wrap
32058 msgid ""
32059 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32060 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32061 "\n"
32062 msgstr ""
32063
32064 #. type: verbatim
32065 #: ../src/guestfs-structs.pod:177
32066 #, no-wrap
32067 msgid ""
32068 " struct guestfs_version {\n"
32069 "   int64_t major;\n"
32070 "   int64_t minor;\n"
32071 "   int64_t release;\n"
32072 "   char *extra;\n"
32073 " };\n"
32074 " \n"
32075 msgstr ""
32076
32077 #. type: verbatim
32078 #: ../src/guestfs-structs.pod:184
32079 #, no-wrap
32080 msgid ""
32081 " struct guestfs_version_list {\n"
32082 "   uint32_t len; /* Number of elements in list. */\n"
32083 "   struct guestfs_version *val; /* Elements. */\n"
32084 " };\n"
32085 " \n"
32086 msgstr ""
32087
32088 #. type: verbatim
32089 #: ../src/guestfs-structs.pod:189
32090 #, no-wrap
32091 msgid ""
32092 " void guestfs_free_version (struct guestfs_free_version *);\n"
32093 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32094 "\n"
32095 msgstr ""
32096
32097 #. type: =head2
32098 #: ../src/guestfs-structs.pod:192
32099 msgid "guestfs_xattr"
32100 msgstr ""
32101
32102 #. type: verbatim
32103 #: ../src/guestfs-structs.pod:194
32104 #, no-wrap
32105 msgid ""
32106 " struct guestfs_xattr {\n"
32107 "   char *attrname;\n"
32108 "   /* The next two fields describe a byte array. */\n"
32109 "   uint32_t attrval_len;\n"
32110 "   char *attrval;\n"
32111 " };\n"
32112 " \n"
32113 msgstr ""
32114
32115 #. type: verbatim
32116 #: ../src/guestfs-structs.pod:201
32117 #, no-wrap
32118 msgid ""
32119 " struct guestfs_xattr_list {\n"
32120 "   uint32_t len; /* Number of elements in list. */\n"
32121 "   struct guestfs_xattr *val; /* Elements. */\n"
32122 " };\n"
32123 " \n"
32124 msgstr ""
32125
32126 #. type: verbatim
32127 #: ../src/guestfs-structs.pod:206
32128 #, no-wrap
32129 msgid ""
32130 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32131 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32132 "\n"
32133 msgstr ""
32134
32135 #. type: =head2
32136 #: ../src/guestfs-structs.pod:209
32137 msgid "guestfs_inotify_event"
32138 msgstr ""
32139
32140 #. type: verbatim
32141 #: ../src/guestfs-structs.pod:211
32142 #, no-wrap
32143 msgid ""
32144 " struct guestfs_inotify_event {\n"
32145 "   int64_t in_wd;\n"
32146 "   uint32_t in_mask;\n"
32147 "   uint32_t in_cookie;\n"
32148 "   char *in_name;\n"
32149 " };\n"
32150 " \n"
32151 msgstr ""
32152
32153 #. type: verbatim
32154 #: ../src/guestfs-structs.pod:218
32155 #, no-wrap
32156 msgid ""
32157 " struct guestfs_inotify_event_list {\n"
32158 "   uint32_t len; /* Number of elements in list. */\n"
32159 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32160 " };\n"
32161 " \n"
32162 msgstr ""
32163
32164 #. type: verbatim
32165 #: ../src/guestfs-structs.pod:223
32166 #, no-wrap
32167 msgid ""
32168 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32169 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32170 "\n"
32171 msgstr ""
32172
32173 #. type: =head2
32174 #: ../src/guestfs-structs.pod:226
32175 msgid "guestfs_partition"
32176 msgstr ""
32177
32178 #. type: verbatim
32179 #: ../src/guestfs-structs.pod:228
32180 #, no-wrap
32181 msgid ""
32182 " struct guestfs_partition {\n"
32183 "   int32_t part_num;\n"
32184 "   uint64_t part_start;\n"
32185 "   uint64_t part_end;\n"
32186 "   uint64_t part_size;\n"
32187 " };\n"
32188 " \n"
32189 msgstr ""
32190
32191 #. type: verbatim
32192 #: ../src/guestfs-structs.pod:235
32193 #, no-wrap
32194 msgid ""
32195 " struct guestfs_partition_list {\n"
32196 "   uint32_t len; /* Number of elements in list. */\n"
32197 "   struct guestfs_partition *val; /* Elements. */\n"
32198 " };\n"
32199 " \n"
32200 msgstr ""
32201
32202 #. type: verbatim
32203 #: ../src/guestfs-structs.pod:240
32204 #, no-wrap
32205 msgid ""
32206 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32207 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32208 "\n"
32209 msgstr ""
32210
32211 #. type: =head2
32212 #: ../src/guestfs-structs.pod:243
32213 msgid "guestfs_application"
32214 msgstr ""
32215
32216 #. type: verbatim
32217 #: ../src/guestfs-structs.pod:245
32218 #, no-wrap
32219 msgid ""
32220 " struct guestfs_application {\n"
32221 "   char *app_name;\n"
32222 "   char *app_display_name;\n"
32223 "   int32_t app_epoch;\n"
32224 "   char *app_version;\n"
32225 "   char *app_release;\n"
32226 "   char *app_install_path;\n"
32227 "   char *app_trans_path;\n"
32228 "   char *app_publisher;\n"
32229 "   char *app_url;\n"
32230 "   char *app_source_package;\n"
32231 "   char *app_summary;\n"
32232 "   char *app_description;\n"
32233 " };\n"
32234 " \n"
32235 msgstr ""
32236
32237 #. type: verbatim
32238 #: ../src/guestfs-structs.pod:260
32239 #, no-wrap
32240 msgid ""
32241 " struct guestfs_application_list {\n"
32242 "   uint32_t len; /* Number of elements in list. */\n"
32243 "   struct guestfs_application *val; /* Elements. */\n"
32244 " };\n"
32245 " \n"
32246 msgstr ""
32247
32248 #. type: verbatim
32249 #: ../src/guestfs-structs.pod:265
32250 #, no-wrap
32251 msgid ""
32252 " void guestfs_free_application (struct guestfs_free_application *);\n"
32253 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32254 "\n"
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs.pod:5
32259 msgid "guestfs - Library for accessing and modifying virtual machine images"
32260 msgstr ""
32261 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32262 "машин"
32263
32264 #. type: verbatim
32265 #: ../src/guestfs.pod:11
32266 #, no-wrap
32267 msgid ""
32268 " guestfs_h *g = guestfs_create ();\n"
32269 " guestfs_add_drive (g, \"guest.img\");\n"
32270 " guestfs_launch (g);\n"
32271 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32272 " guestfs_touch (g, \"/hello\");\n"
32273 " guestfs_umount (g, \"/\");\n"
32274 " guestfs_close (g);\n"
32275 "\n"
32276 msgstr ""
32277 " guestfs_h *g = guestfs_create ();\n"
32278 " guestfs_add_drive (g, \"guest.img\");\n"
32279 " guestfs_launch (g);\n"
32280 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32281 " guestfs_touch (g, \"/hello\");\n"
32282 " guestfs_umount (g, \"/\");\n"
32283 " guestfs_close (g);\n"
32284 "\n"
32285
32286 #. type: textblock
32287 #: ../src/guestfs.pod:25
32288 msgid ""
32289 "Libguestfs is a library for accessing and modifying guest disk images.  "
32290 "Amongst the things this is good for: making batch configuration changes to "
32291 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32292 "between virtualization systems (see also: virt-p2v), performing partial "
32293 "backups, performing partial guest clones, cloning guests and changing "
32294 "registry/UUID/hostname info, and much else besides."
32295 msgstr ""
32296
32297 #. type: textblock
32298 #: ../src/guestfs.pod:33
32299 msgid ""
32300 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32301 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32302 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32303 "qcow2, vmdk."
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs.pod:38
32308 msgid ""
32309 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32310 "what filesystem is in each LV, etc.).  It can also run commands in the "
32311 "context of the guest.  Also you can access filesystems over FUSE."
32312 msgstr ""
32313
32314 #. type: textblock
32315 #: ../src/guestfs.pod:43
32316 msgid ""
32317 "Libguestfs is a library that can be linked with C and C++ management "
32318 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32319 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32320 "line."
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs.pod:48
32325 msgid ""
32326 "You don't need to be root to use libguestfs, although obviously you do need "
32327 "enough permissions to access the disk images."
32328 msgstr ""
32329
32330 #. type: textblock
32331 #: ../src/guestfs.pod:51
32332 msgid ""
32333 "Libguestfs is a large API because it can do many things.  For a gentle "
32334 "introduction, please read the L</API OVERVIEW> section next."
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:54
32339 msgid ""
32340 "There are also some example programs in the L<guestfs-examples(3)> manual "
32341 "page."
32342 msgstr ""
32343
32344 #. type: =head1
32345 #: ../src/guestfs.pod:57
32346 msgid "API OVERVIEW"
32347 msgstr "ОГЛЯД API"
32348
32349 #. type: textblock
32350 #: ../src/guestfs.pod:59
32351 msgid ""
32352 "This section provides a gentler overview of the libguestfs API.  We also try "
32353 "to group API calls together, where that may not be obvious from reading "
32354 "about the individual calls in the main section of this manual."
32355 msgstr ""
32356
32357 #. type: =head2
32358 #: ../src/guestfs.pod:64
32359 msgid "HANDLES"
32360 msgstr "ОБРОБНИКИ"
32361
32362 #. type: textblock
32363 #: ../src/guestfs.pod:66
32364 msgid ""
32365 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32366 "must add at least one disk image to the handle, followed by launching the "
32367 "handle, then performing whatever operations you want, and finally closing "
32368 "the handle.  By convention we use the single letter C<g> for the name of the "
32369 "handle variable, although of course you can use any name you want."
32370 msgstr ""
32371
32372 #. type: textblock
32373 #: ../src/guestfs.pod:73
32374 msgid "The general structure of all libguestfs-using programs looks like this:"
32375 msgstr ""
32376
32377 #. type: verbatim
32378 #: ../src/guestfs.pod:76
32379 #, no-wrap
32380 msgid ""
32381 " guestfs_h *g = guestfs_create ();\n"
32382 " \n"
32383 msgstr ""
32384 " guestfs_h *g = guestfs_create ();\n"
32385 " \n"
32386
32387 #. type: verbatim
32388 #: ../src/guestfs.pod:78
32389 #, no-wrap
32390 msgid ""
32391 " /* Call guestfs_add_drive additional times if there are\n"
32392 "  * multiple disk images.\n"
32393 "  */\n"
32394 " guestfs_add_drive (g, \"guest.img\");\n"
32395 " \n"
32396 msgstr ""
32397
32398 #. type: verbatim
32399 #: ../src/guestfs.pod:83
32400 #, no-wrap
32401 msgid ""
32402 " /* Most manipulation calls won't work until you've launched\n"
32403 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32404 "  * and _before_ other commands.\n"
32405 "  */\n"
32406 " guestfs_launch (g);\n"
32407 " \n"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs.pod:89
32412 #, no-wrap
32413 msgid ""
32414 " /* Now you can examine what partitions, LVs etc are available.\n"
32415 "  */\n"
32416 " char **partitions = guestfs_list_partitions (g);\n"
32417 " char **logvols = guestfs_lvs (g);\n"
32418 " \n"
32419 msgstr ""
32420 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32421 "  */\n"
32422 " char **partitions = guestfs_list_partitions (g);\n"
32423 " char **logvols = guestfs_lvs (g);\n"
32424 " \n"
32425
32426 #. type: verbatim
32427 #: ../src/guestfs.pod:94
32428 #, no-wrap
32429 msgid ""
32430 " /* To access a filesystem in the image, you must mount it.\n"
32431 "  */\n"
32432 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32433 " \n"
32434 msgstr ""
32435 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32436 "  */\n"
32437 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32438 " \n"
32439
32440 #. type: verbatim
32441 #: ../src/guestfs.pod:98
32442 #, no-wrap
32443 msgid ""
32444 " /* Now you can perform filesystem actions on the guest\n"
32445 "  * disk image.\n"
32446 "  */\n"
32447 " guestfs_touch (g, \"/hello\");\n"
32448 " \n"
32449 msgstr ""
32450
32451 #. type: verbatim
32452 #: ../src/guestfs.pod:103
32453 #, no-wrap
32454 msgid ""
32455 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32456 "  * it is done automatically when you close the handle.  See\n"
32457 "  * discussion of autosync in this page.\n"
32458 "  */\n"
32459 " guestfs_sync (g);\n"
32460 " \n"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs.pod:109
32465 #, no-wrap
32466 msgid ""
32467 " /* Close the handle 'g'. */\n"
32468 " guestfs_close (g);\n"
32469 "\n"
32470 msgstr ""
32471 " /* Закрити дескриптор 'g'. */\n"
32472 " guestfs_close (g);\n"
32473 "\n"
32474
32475 #. type: textblock
32476 #: ../src/guestfs.pod:112
32477 msgid ""
32478 "The code above doesn't include any error checking.  In real code you should "
32479 "check return values carefully for errors.  In general all functions that "
32480 "return integers return C<-1> on error, and all functions that return "
32481 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32482 "how to handle errors, and consult the documentation for each function call "
32483 "below to see precisely how they return error indications.  See L<guestfs-"
32484 "examples(3)> for fully worked examples."
32485 msgstr ""
32486
32487 #. type: =head2
32488 #: ../src/guestfs.pod:121
32489 msgid "DISK IMAGES"
32490 msgstr "ОБРАЗИ ДИСКІВ"
32491
32492 #. type: textblock
32493 #: ../src/guestfs.pod:123
32494 msgid ""
32495 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32496 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32497 "actual block device, or simply an empty file of zeroes that you have created "
32498 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32499 "of these."
32500 msgstr ""
32501
32502 #. type: textblock
32503 #: ../src/guestfs.pod:129
32504 msgid ""
32505 "The call you should use in modern code for adding drives is L</"
32506 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32507 "specifying that the format is raw, do:"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs.pod:133
32512 #, no-wrap
32513 msgid ""
32514 " guestfs_add_drive_opts (g, filename,\n"
32515 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32516 "                         -1);\n"
32517 "\n"
32518 msgstr ""
32519 " guestfs_add_drive_opts (g, filename,\n"
32520 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32521 "                         -1);\n"
32522 "\n"
32523
32524 #. type: textblock
32525 #: ../src/guestfs.pod:137
32526 msgid "You can add a disk read-only using:"
32527 msgstr "Ви можете додати диск у режимі лише читання:"
32528
32529 #. type: verbatim
32530 #: ../src/guestfs.pod:139
32531 #, no-wrap
32532 msgid ""
32533 " guestfs_add_drive_opts (g, filename,\n"
32534 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32535 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32536 "                         -1);\n"
32537 "\n"
32538 msgstr ""
32539 " guestfs_add_drive_opts (g, filename,\n"
32540 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32541 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32542 "                         -1);\n"
32543 "\n"
32544
32545 #. type: textblock
32546 #: ../src/guestfs.pod:144
32547 msgid ""
32548 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32549 "libguestfs won't modify the file."
32550 msgstr ""
32551
32552 #. type: textblock
32553 #: ../src/guestfs.pod:147
32554 msgid ""
32555 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32556 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32557 "corruption, but adding it read-only is safe."
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:151
32562 msgid ""
32563 "You must add at least one disk image, and you may add multiple disk images.  "
32564 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32565 "first one you added), C</dev/sdb> (for the second one you added), etc."
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs.pod:156
32570 msgid ""
32571 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32572 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32573 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs.pod:161
32578 msgid "MOUNTING"
32579 msgstr "МОНТУВАННЯ"
32580
32581 #. type: textblock
32582 #: ../src/guestfs.pod:163
32583 msgid ""
32584 "Before you can read or write files, create directories and so on in a disk "
32585 "image that contains filesystems, you have to mount those filesystems using "
32586 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32587 "a disk image contains (for example) one partition with a filesystem on that "
32588 "partition, then you can mount it directly:"
32589 msgstr ""
32590
32591 #. type: verbatim
32592 #: ../src/guestfs.pod:170
32593 #, no-wrap
32594 msgid ""
32595 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32596 "\n"
32597 msgstr ""
32598 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32599 "\n"
32600
32601 #. type: textblock
32602 #: ../src/guestfs.pod:172
32603 msgid ""
32604 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32605 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32606 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32607 "that these are libguestfs virtual devices, and are nothing to do with host "
32608 "devices."
32609 msgstr ""
32610
32611 #. type: textblock
32612 #: ../src/guestfs.pod:178
32613 msgid ""
32614 "If you are given a disk image and you don't know what it contains then you "
32615 "have to find out.  Libguestfs can do that too: use L</"
32616 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32617 "LVs, and either try mounting each to see what is mountable, or else examine "
32618 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32619 "filesystems, use L</guestfs_list_filesystems>."
32620 msgstr ""
32621
32622 #. type: textblock
32623 #: ../src/guestfs.pod:186
32624 msgid ""
32625 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32626 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32627 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32628 msgstr ""
32629
32630 #. type: textblock
32631 #: ../src/guestfs.pod:191
32632 msgid ""
32633 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32634 "several other variations of the C<guestfs_mount_*> call."
32635 msgstr ""
32636
32637 #. type: =head2
32638 #: ../src/guestfs.pod:194
32639 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32640 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32641
32642 #. type: textblock
32643 #: ../src/guestfs.pod:196
32644 msgid ""
32645 "The majority of the libguestfs API consists of fairly low-level calls for "
32646 "accessing and modifying the files, directories, symlinks etc on mounted "
32647 "filesystems.  There are over a hundred such calls which you can find listed "
32648 "in detail below in this man page, and we don't even pretend to cover them "
32649 "all in this overview."
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs.pod:202
32654 msgid ""
32655 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32656 "mount point."
32657 msgstr ""
32658 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32659 "точкою монтування."
32660
32661 #. type: textblock
32662 #: ../src/guestfs.pod:205
32663 msgid ""
32664 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32665 "the file called C<\"etc/passwd\"> then you could do:"
32666 msgstr ""
32667 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32668 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32669 "таким кодом:"
32670
32671 #. type: verbatim
32672 #: ../src/guestfs.pod:208
32673 #, no-wrap
32674 msgid ""
32675 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32676 "\n"
32677 msgstr ""
32678 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32679 "\n"
32680
32681 #. type: textblock
32682 #: ../src/guestfs.pod:210
32683 msgid ""
32684 "This would return C<data> as a newly allocated buffer containing the full "
32685 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32686 "or C<NULL> if there was an error."
32687 msgstr ""
32688
32689 #. type: textblock
32690 #: ../src/guestfs.pod:214
32691 msgid ""
32692 "As another example, to create a top-level directory on that filesystem "
32693 "called C<\"var\"> you would do:"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs.pod:217
32698 #, no-wrap
32699 msgid ""
32700 " guestfs_mkdir (g, \"/var\");\n"
32701 "\n"
32702 msgstr ""
32703 " guestfs_mkdir (g, \"/var\");\n"
32704 "\n"
32705
32706 #. type: textblock
32707 #: ../src/guestfs.pod:219
32708 msgid "To create a symlink you could do:"
32709 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32710
32711 #. type: verbatim
32712 #: ../src/guestfs.pod:221
32713 #, no-wrap
32714 msgid ""
32715 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32716 "               \"/etc/rc3.d/S30portmap\");\n"
32717 "\n"
32718 msgstr ""
32719 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32720 "               \"/etc/rc3.d/S30portmap\");\n"
32721 "\n"
32722
32723 #. type: textblock
32724 #: ../src/guestfs.pod:224
32725 msgid ""
32726 "Libguestfs will reject attempts to use relative paths and there is no "
32727 "concept of a current working directory."
32728 msgstr ""
32729
32730 #. type: textblock
32731 #: ../src/guestfs.pod:227
32732 msgid ""
32733 "Libguestfs can return errors in many situations: for example if the "
32734 "filesystem isn't writable, or if a file or directory that you requested "
32735 "doesn't exist.  If you are using the C API (documented here)  you have to "
32736 "check for those error conditions after each call.  (Other language bindings "
32737 "turn these errors into exceptions)."
32738 msgstr ""
32739
32740 #. type: textblock
32741 #: ../src/guestfs.pod:233
32742 msgid ""
32743 "File writes are affected by the per-handle umask, set by calling L</"
32744 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32745 msgstr ""
32746
32747 #. type: =head2
32748 #: ../src/guestfs.pod:236
32749 msgid "PARTITIONING"
32750 msgstr "ПОДІЛ НА РОЗДІЛИ"
32751
32752 #. type: textblock
32753 #: ../src/guestfs.pod:238
32754 msgid ""
32755 "Libguestfs contains API calls to read, create and modify partition tables on "
32756 "disk images."
32757 msgstr ""
32758
32759 #. type: textblock
32760 #: ../src/guestfs.pod:241
32761 msgid ""
32762 "In the common case where you want to create a single partition covering the "
32763 "whole disk, you should use the L</guestfs_part_disk> call:"
32764 msgstr ""
32765
32766 #. type: verbatim
32767 #: ../src/guestfs.pod:245
32768 #, no-wrap
32769 msgid ""
32770 " const char *parttype = \"mbr\";\n"
32771 " if (disk_is_larger_than_2TB)\n"
32772 "   parttype = \"gpt\";\n"
32773 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32774 "\n"
32775 msgstr ""
32776 " const char *parttype = \"mbr\";\n"
32777 " if (disk_is_larger_than_2TB)\n"
32778 "   parttype = \"gpt\";\n"
32779 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32780 "\n"
32781
32782 #. type: textblock
32783 #: ../src/guestfs.pod:250
32784 msgid ""
32785 "Obviously this effectively wipes anything that was on that disk image before."
32786 msgstr ""
32787
32788 #. type: =head2
32789 #: ../src/guestfs.pod:253
32790 msgid "LVM2"
32791 msgstr "LVM2"
32792
32793 #. type: textblock
32794 #: ../src/guestfs.pod:255
32795 msgid ""
32796 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32797 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32798 "you familiarize yourself with the concepts of physical volumes, volume "
32799 "groups and logical volumes."
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs.pod:260
32804 msgid ""
32805 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32806 "tldp.org/HOWTO/LVM-HOWTO/>."
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs.pod:263
32811 msgid "DOWNLOADING"
32812 msgstr "ОТРИМАННЯ ДАНИХ"
32813
32814 #. type: textblock
32815 #: ../src/guestfs.pod:265
32816 msgid ""
32817 "Use L</guestfs_cat> to download small, text only files.  This call is "
32818 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32819 "NUL (C<\\0>) characters.  However the API is very simple to use."
32820 msgstr ""
32821
32822 #. type: textblock
32823 #: ../src/guestfs.pod:269
32824 msgid ""
32825 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32826 "bit data, since it returns a (pointer, size) pair.  However it is still "
32827 "limited to \"small\" files, less than 2 MB."
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs.pod:273
32832 msgid ""
32833 "L</guestfs_download> can be used to download any file, with no limits on "
32834 "content or size (even files larger than 4 GB)."
32835 msgstr ""
32836
32837 #. type: textblock
32838 #: ../src/guestfs.pod:276
32839 msgid ""
32840 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32841 msgstr ""
32842
32843 #. type: =head2
32844 #: ../src/guestfs.pod:279
32845 msgid "UPLOADING"
32846 msgstr "ВИВАНТАЖЕННЯ"
32847
32848 #. type: textblock
32849 #: ../src/guestfs.pod:281
32850 msgid ""
32851 "It's often the case that you want to write a file or files to the disk image."
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs.pod:284
32856 msgid ""
32857 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32858 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32859 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32860 "of other functions for creating test files, for example L</guestfs_fill> and "
32861 "L</guestfs_fill_pattern>."
32862 msgstr ""
32863
32864 #. type: textblock
32865 #: ../src/guestfs.pod:290
32866 msgid ""
32867 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32868 "file content or size (even files larger than 4 GB)."
32869 msgstr ""
32870
32871 #. type: textblock
32872 #: ../src/guestfs.pod:293
32873 msgid ""
32874 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs.pod:295
32879 msgid ""
32880 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32881 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32882 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32883 "in a predictable way (eg. adding it last after all other drives) then you "
32884 "can get the device name from L</guestfs_list_devices> and mount it directly "
32885 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32886 "portable between kernel versions, and they don't support labels or UUIDs.  "
32887 "If you want to pre-build an image or you need to mount it using a label or "
32888 "UUID, use an ISO image instead."
32889 msgstr ""
32890
32891 #. type: =head2
32892 #: ../src/guestfs.pod:306
32893 msgid "COPYING"
32894 msgstr "КОПІЮВАННЯ"
32895
32896 #. type: textblock
32897 #: ../src/guestfs.pod:308
32898 msgid ""
32899 "There are various different commands for copying between files and devices "
32900 "and in and out of the guest filesystem.  These are summarised in the table "
32901 "below."
32902 msgstr ""
32903
32904 #. type: =item
32905 #: ../src/guestfs.pod:314
32906 msgid "B<file> to B<file>"
32907 msgstr "B<файл> у B<файл>"
32908
32909 #. type: textblock
32910 #: ../src/guestfs.pod:316
32911 msgid ""
32912 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32913 "directories recursively."
32914 msgstr ""
32915
32916 #. type: =item
32917 #: ../src/guestfs.pod:319
32918 msgid "B<file or device> to B<file or device>"
32919 msgstr "B<файл або пристрій> у B<файл або пристрій>"
32920
32921 #. type: textblock
32922 #: ../src/guestfs.pod:321
32923 msgid ""
32924 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32925 "devices in the guest."
32926 msgstr ""
32927
32928 #. type: textblock
32929 #: ../src/guestfs.pod:324
32930 msgid "Example: duplicate the contents of an LV:"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs.pod:326
32935 #, no-wrap
32936 msgid ""
32937 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32938 "\n"
32939 msgstr ""
32940 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32941 "\n"
32942
32943 #. type: textblock
32944 #: ../src/guestfs.pod:328
32945 msgid ""
32946 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32947 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32948 "guestfs_copy_size>."
32949 msgstr ""
32950
32951 #. type: =item
32952 #: ../src/guestfs.pod:332
32953 msgid "B<file on the host> to B<file or device>"
32954 msgstr ""
32955
32956 #. type: textblock
32957 #: ../src/guestfs.pod:334
32958 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32959 msgstr ""
32960
32961 #. type: =item
32962 #: ../src/guestfs.pod:336
32963 msgid "B<file or device> to B<file on the host>"
32964 msgstr ""
32965
32966 #. type: textblock
32967 #: ../src/guestfs.pod:338
32968 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32969 msgstr ""
32970
32971 #. type: =head2
32972 #: ../src/guestfs.pod:342
32973 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32974 msgstr ""
32975
32976 #. type: textblock
32977 #: ../src/guestfs.pod:344
32978 msgid ""
32979 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32980 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32981 "appears you can only upload and download to files.  However many Un*x-like "
32982 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32983 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32984 "and arbitrary file descriptor N."
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:352
32989 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32990 msgstr ""
32991
32992 #. type: verbatim
32993 #: ../src/guestfs.pod:355
32994 #, no-wrap
32995 msgid ""
32996 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32997 "\n"
32998 msgstr ""
32999 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33000 "\n"
33001
33002 #. type: textblock
33003 #: ../src/guestfs.pod:357
33004 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33005 msgstr ""
33006
33007 #. type: verbatim
33008 #: ../src/guestfs.pod:359
33009 #, no-wrap
33010 msgid ""
33011 " char devfd[64];\n"
33012 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33013 " guestfs_tar_out (g, \"/\", devfd);\n"
33014 "\n"
33015 msgstr ""
33016 " char devfd[64];\n"
33017 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33018 " guestfs_tar_out (g, \"/\", devfd);\n"
33019 "\n"
33020
33021 #. type: =head2
33022 #: ../src/guestfs.pod:363
33023 msgid "LISTING FILES"
33024 msgstr "СПИСКИ ФАЙЛІВ"
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:365
33028 msgid ""
33029 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33030 "L<guestfish(1)>-equivalent command C<ll>)."
33031 msgstr ""
33032
33033 #. type: textblock
33034 #: ../src/guestfs.pod:368
33035 msgid ""
33036 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33037 "programs, as a flat list of strings."
33038 msgstr ""
33039
33040 #. type: textblock
33041 #: ../src/guestfs.pod:371
33042 msgid ""
33043 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33044 "directory, plus additional information about each one.  It is more "
33045 "equivalent to using the L<readdir(3)> call on a local filesystem."
33046 msgstr ""
33047
33048 #. type: textblock
33049 #: ../src/guestfs.pod:375
33050 msgid ""
33051 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33052 msgstr ""
33053
33054 #. type: =head2
33055 #: ../src/guestfs.pod:378
33056 msgid "RUNNING COMMANDS"
33057 msgstr "ВИКОНАННЯ КОМАНД"
33058
33059 #. type: textblock
33060 #: ../src/guestfs.pod:380
33061 msgid ""
33062 "Although libguestfs is primarily an API for manipulating files inside guest "
33063 "images, we also provide some limited facilities for running commands inside "
33064 "guests."
33065 msgstr ""
33066
33067 #. type: textblock
33068 #: ../src/guestfs.pod:384
33069 msgid "There are many limitations to this:"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:390
33074 msgid ""
33075 "The kernel version that the command runs under will be different from what "
33076 "it expects."
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs.pod:395
33081 msgid ""
33082 "If the command needs to communicate with daemons, then most likely they "
33083 "won't be running."
33084 msgstr ""
33085
33086 #. type: textblock
33087 #: ../src/guestfs.pod:400
33088 msgid "The command will be running in limited memory."
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs.pod:404
33093 msgid ""
33094 "The network may not be available unless you enable it (see L</"
33095 "guestfs_set_network>)."
33096 msgstr ""
33097
33098 #. type: textblock
33099 #: ../src/guestfs.pod:409
33100 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33101 msgstr ""
33102
33103 #. type: textblock
33104 #: ../src/guestfs.pod:413
33105 msgid ""
33106 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:418
33111 msgid ""
33112 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33113 "See L</SELINUX> in this manpage."
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:423
33118 msgid ""
33119 "I<Security:> It is not safe to run commands from untrusted, possibly "
33120 "malicious guests.  These commands may attempt to exploit your program by "
33121 "sending unexpected output.  They could also try to exploit the Linux kernel "
33122 "or qemu provided by the libguestfs appliance.  They could use the network "
33123 "provided by the libguestfs appliance to bypass ordinary network partitions "
33124 "and firewalls.  They could use the elevated privileges or different SELinux "
33125 "context of your program to their advantage."
33126 msgstr ""
33127
33128 #. type: textblock
33129 #: ../src/guestfs.pod:432
33130 msgid ""
33131 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33132 "(a script which runs when the guest next boots normally), and to have this "
33133 "script run the commands you want in the normal context of the running guest, "
33134 "network security and so on.  For information about other security issues, "
33135 "see L</SECURITY>."
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:440
33140 msgid ""
33141 "The two main API calls to run commands are L</guestfs_command> and L</"
33142 "guestfs_sh> (there are also variations)."
33143 msgstr ""
33144
33145 #. type: textblock
33146 #: ../src/guestfs.pod:443
33147 msgid ""
33148 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33149 "shell globs, redirections, etc will work."
33150 msgstr ""
33151
33152 #. type: =head2
33153 #: ../src/guestfs.pod:446
33154 msgid "CONFIGURATION FILES"
33155 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33156
33157 #. type: textblock
33158 #: ../src/guestfs.pod:448
33159 msgid ""
33160 "To read and write configuration files in Linux guest filesystems, we "
33161 "strongly recommend using Augeas.  For example, Augeas understands how to "
33162 "read and write, say, a Linux shadow password file or X.org configuration "
33163 "file, and so avoids you having to write that code."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:453
33168 msgid ""
33169 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33170 "document Augeas itself here because there is excellent documentation on the "
33171 "L<http://augeas.net/> website."
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs.pod:457
33176 msgid ""
33177 "If you don't want to use Augeas (you fool!) then try calling L</"
33178 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33179 "over."
33180 msgstr ""
33181
33182 #. type: =head2
33183 #: ../src/guestfs.pod:461
33184 msgid "SELINUX"
33185 msgstr "SELINUX"
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:463
33189 msgid ""
33190 "We support SELinux guests.  To ensure that labeling happens correctly in "
33191 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:471
33196 msgid "Before launching, do:"
33197 msgstr ""
33198
33199 #. type: verbatim
33200 #: ../src/guestfs.pod:473
33201 #, no-wrap
33202 msgid ""
33203 " guestfs_set_selinux (g, 1);\n"
33204 "\n"
33205 msgstr ""
33206 " guestfs_set_selinux (g, 1);\n"
33207 "\n"
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:477
33211 msgid ""
33212 "After mounting the guest's filesystem(s), load the policy.  This is best "
33213 "done by running the L<load_policy(8)> command in the guest itself:"
33214 msgstr ""
33215
33216 #. type: verbatim
33217 #: ../src/guestfs.pod:481
33218 #, no-wrap
33219 msgid ""
33220 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33221 "\n"
33222 msgstr ""
33223 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33224 "\n"
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:483
33228 msgid ""
33229 "(Older versions of C<load_policy> require you to specify the name of the "
33230 "policy file)."
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs.pod:488
33235 msgid ""
33236 "Optionally, set the security context for the API.  The correct security "
33237 "context to use can only be known by inspecting the guest.  As an example:"
33238 msgstr ""
33239
33240 #. type: verbatim
33241 #: ../src/guestfs.pod:492
33242 #, no-wrap
33243 msgid ""
33244 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33245 "\n"
33246 msgstr ""
33247 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33248 "\n"
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:496
33252 msgid "This will work for running commands and editing existing files."
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:498
33257 msgid ""
33258 "When new files are created, you may need to label them explicitly, for "
33259 "example by running the external command C<restorecon pathname>."
33260 msgstr ""
33261
33262 #. type: =head2
33263 #: ../src/guestfs.pod:502
33264 msgid "UMASK"
33265 msgstr "UMASK"
33266
33267 #. type: textblock
33268 #: ../src/guestfs.pod:504
33269 msgid ""
33270 "Certain calls are affected by the current file mode creation mask (the "
33271 "\"umask\").  In particular ones which create files or directories, such as "
33272 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33273 "either the default mode that the file is created with or modifies the mode "
33274 "that you supply."
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:510
33279 msgid ""
33280 "The default umask is C<022>, so files are created with modes such as C<0644> "
33281 "and directories with C<0755>."
33282 msgstr ""
33283
33284 #. type: textblock
33285 #: ../src/guestfs.pod:513
33286 msgid ""
33287 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33288 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33289 "guestfs_chmod> after creating each file or directory."
33290 msgstr ""
33291
33292 #. type: textblock
33293 #: ../src/guestfs.pod:517
33294 msgid "For more information about umask, see L<umask(2)>."
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs.pod:521
33299 msgid ""
33300 "Libguestfs allows you to access Linux guests which have been encrypted using "
33301 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33302 "standard.  This includes nearly all whole disk encryption systems used by "
33303 "modern Linux guests."
33304 msgstr ""
33305
33306 #. type: textblock
33307 #: ../src/guestfs.pod:527
33308 msgid ""
33309 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33310 "returns the string C<crypto_LUKS>)."
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:530
33315 msgid ""
33316 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33317 "will require the passphrase!"
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:533
33322 msgid ""
33323 "Opening a LUKS device creates a new device mapper device called C</dev/"
33324 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33325 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33326 "from and encrypted to the underlying block device respectively."
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs.pod:539
33331 msgid ""
33332 "LVM volume groups on the device can be made visible by calling L</"
33333 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33334 "(s) can now be mounted in the usual way."
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs.pod:543
33339 msgid ""
33340 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33341 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33342 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33343 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33344 "underlying encrypted block device)."
33345 msgstr ""
33346
33347 #. type: =head2
33348 #: ../src/guestfs.pod:550
33349 msgid "INSPECTION"
33350 msgstr "ПЕРЕВІРКА"
33351
33352 #. type: textblock
33353 #: ../src/guestfs.pod:552
33354 msgid ""
33355 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33356 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33357 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33358 "version 1.5.3 the most frequently used part of this library has been "
33359 "rewritten in C and moved into the core code)."
33360 msgstr ""
33361
33362 #. type: textblock
33363 #: ../src/guestfs.pod:559
33364 msgid ""
33365 "Add all disks belonging to the unknown virtual machine and call L</"
33366 "guestfs_launch> in the usual way."
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:562
33371 msgid ""
33372 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33373 "and certain heuristics, and returns a list of operating systems that were "
33374 "found.  An empty list means none were found.  A single element is the root "
33375 "filesystem of the operating system.  For dual- or multi-boot guests, "
33376 "multiple roots can be returned, each one corresponding to a separate "
33377 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33378 "world of virtualization, but since this scenario can happen, we have built "
33379 "libguestfs to deal with it.)"
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:571
33384 msgid ""
33385 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33386 "to get additional details about that operating system.  For example, call L</"
33387 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33388 "Windows and Linux-based operating systems respectively."
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs.pod:577
33393 msgid ""
33394 "Un*x-like and Linux-based operating systems usually consist of several "
33395 "filesystems which are mounted at boot time (for example, a separate boot "
33396 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33397 "filesystems correspond to mount points.  Call "
33398 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33399 "hash table like this example:"
33400 msgstr ""
33401
33402 #. type: verbatim
33403 #: ../src/guestfs.pod:584
33404 #, no-wrap
33405 msgid ""
33406 " /boot => /dev/sda1\n"
33407 " /     => /dev/vg_guest/lv_root\n"
33408 " /usr  => /dev/vg_guest/lv_usr\n"
33409 "\n"
33410 msgstr ""
33411 " /boot => /dev/sda1\n"
33412 " /     => /dev/vg_guest/lv_root\n"
33413 " /usr  => /dev/vg_guest/lv_usr\n"
33414 "\n"
33415
33416 #. type: textblock
33417 #: ../src/guestfs.pod:588
33418 msgid ""
33419 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33420 "filesystems as suggested."
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs.pod:591
33425 msgid ""
33426 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33427 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33428 msgstr ""
33429
33430 #. type: textblock
33431 #: ../src/guestfs.pod:595
33432 msgid ""
33433 "Inspection currently only works for some common operating systems.  "
33434 "Contributors are welcome to send patches for other operating systems that we "
33435 "currently cannot detect."
33436 msgstr ""
33437
33438 #. type: textblock
33439 #: ../src/guestfs.pod:599
33440 msgid ""
33441 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33442 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33443 "encrypted devices."
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:603
33448 msgid ""
33449 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33450 "inspection and caches the results in the guest handle.  Subsequent calls to "
33451 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33452 "read the disks.  If you change the content of the guest disks, you can redo "
33453 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33454 "guestfs_inspect_list_applications> works a little differently from the other "
33455 "calls and does read the disks.  See documentation for that function for "
33456 "details)."
33457 msgstr ""
33458
33459 #. type: =head3
33460 #: ../src/guestfs.pod:612
33461 msgid "INSPECTING INSTALL DISKS"
33462 msgstr ""
33463
33464 #. type: textblock
33465 #: ../src/guestfs.pod:614
33466 msgid ""
33467 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33468 "CDs and more."
33469 msgstr ""
33470
33471 #. type: textblock
33472 #: ../src/guestfs.pod:617
33473 msgid ""
33474 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33475 "system, which currently can be C<installed> (a regular operating system) or "
33476 "C<installer> (some sort of install disk)."
33477 msgstr ""
33478
33479 #. type: textblock
33480 #: ../src/guestfs.pod:621
33481 msgid ""
33482 "Further information is available about the operating system that can be "
33483 "installed using the regular inspection APIs like L</"
33484 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:626
33489 msgid ""
33490 "Some additional information specific to installer disks is also available "
33491 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33492 "guestfs_inspect_is_multipart> calls."
33493 msgstr ""
33494
33495 #. type: =head2
33496 #: ../src/guestfs.pod:631
33497 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs.pod:633
33502 msgid ""
33503 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33504 "ntfs-3g.org/> driver."
33505 msgstr ""
33506
33507 #. type: =head3
33508 #: ../src/guestfs.pod:636
33509 msgid "DRIVE LETTERS AND PATHS"
33510 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33511
33512 #. type: textblock
33513 #: ../src/guestfs.pod:638
33514 msgid ""
33515 "DOS and Windows still use drive letters, and the filesystems are always "
33516 "treated as case insensitive by Windows itself, and therefore you might find "
33517 "a Windows configuration file referring to a path like C<c:\\windows"
33518 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33519 "might be referred to as C</WINDOWS/System32>."
33520 msgstr ""
33521
33522 #. type: textblock
33523 #: ../src/guestfs.pod:644
33524 msgid ""
33525 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33526 "L</guestfs_inspect_get_drive_mappings>)"
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:647
33531 msgid ""
33532 "Dealing with separator characters (backslash vs forward slash) is outside "
33533 "the scope of libguestfs, but usually a simple character replacement will "
33534 "work."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:651
33539 msgid ""
33540 "To resolve the case insensitivity of paths, call L</"
33541 "guestfs_case_sensitive_path>."
33542 msgstr ""
33543
33544 #. type: =head3
33545 #: ../src/guestfs.pod:654
33546 msgid "ACCESSING THE WINDOWS REGISTRY"
33547 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:656
33551 msgid ""
33552 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33553 "files, through the library C<hivex> which is part of the libguestfs project "
33554 "although ships as a separate tarball.  You have to locate and download the "
33555 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33556 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33557 "reg(1)> for more help on this issue."
33558 msgstr ""
33559
33560 #. type: =head3
33561 #: ../src/guestfs.pod:664
33562 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33563 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33564
33565 #. type: textblock
33566 #: ../src/guestfs.pod:666
33567 msgid ""
33568 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33569 "provide something which looks like a Linux symlink.  The way it tries to do "
33570 "the rewriting is described here:"
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs.pod:670
33575 msgid ""
33576 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33577 "symbolic-links/>"
33578 msgstr ""
33579 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33580 "symbolic-links/>"
33581
33582 #. type: textblock
33583 #: ../src/guestfs.pod:672
33584 msgid ""
33585 "The essential problem is that ntfs-3g simply does not have enough "
33586 "information to do a correct job.  NTFS links can contain drive letters and "
33587 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33588 "It is almost certainly the case that libguestfs callers should ignore what "
33589 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33590 msgstr ""
33591
33592 #. type: textblock
33593 #: ../src/guestfs.pod:679
33594 msgid ""
33595 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33596 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33597 "attribute, and read the raw reparse data from that (you can find the format "
33598 "documented in various places around the web)."
33599 msgstr ""
33600
33601 #. type: =head3
33602 #: ../src/guestfs.pod:684
33603 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33604 msgstr ""
33605
33606 #. type: textblock
33607 #: ../src/guestfs.pod:686
33608 msgid ""
33609 "There are other useful extended attributes that can be read from ntfs-3g "
33610 "filesystems (using L</guestfs_getxattr>).  See:"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:689
33615 msgid ""
33616 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33617 msgstr ""
33618 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33619
33620 #. type: =head2
33621 #: ../src/guestfs.pod:691
33622 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33623 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33624
33625 #. type: textblock
33626 #: ../src/guestfs.pod:693
33627 msgid ""
33628 "Although we don't want to discourage you from using the C API, we will "
33629 "mention here that the same API is also available in other languages."
33630 msgstr ""
33631
33632 #. type: textblock
33633 #: ../src/guestfs.pod:696
33634 msgid ""
33635 "The API is broadly identical in all supported languages.  This means that "
33636 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33637 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33638 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33639 "each language."
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs.pod:702
33644 msgid ""
33645 "Error messages are automatically transformed into exceptions if the language "
33646 "supports it."
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:705
33651 msgid ""
33652 "We don't try to \"object orientify\" parts of the API in OO languages, "
33653 "although contributors are welcome to write higher level APIs above what we "
33654 "provide in their favourite languages if they wish."
33655 msgstr ""
33656
33657 #. type: =item
33658 #: ../src/guestfs.pod:711
33659 msgid "B<C++>"
33660 msgstr "B<C++>"
33661
33662 #. type: textblock
33663 #: ../src/guestfs.pod:713
33664 msgid ""
33665 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33666 "identical to the C API.  C++ classes and exceptions are not used."
33667 msgstr ""
33668
33669 #. type: =item
33670 #: ../src/guestfs.pod:717
33671 msgid "B<C#>"
33672 msgstr "B<C#>"
33673
33674 #. type: textblock
33675 #: ../src/guestfs.pod:719
33676 msgid ""
33677 "The C# bindings are highly experimental.  Please read the warnings at the "
33678 "top of C<csharp/Libguestfs.cs>."
33679 msgstr ""
33680
33681 #. type: =item
33682 #: ../src/guestfs.pod:722
33683 msgid "B<Haskell>"
33684 msgstr "B<Haskell>"
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:724
33688 msgid ""
33689 "This is the only language binding that is working but incomplete.  Only "
33690 "calls which return simple integers have been bound in Haskell, and we are "
33691 "looking for help to complete this binding."
33692 msgstr ""
33693
33694 #. type: =item
33695 #: ../src/guestfs.pod:728
33696 msgid "B<Java>"
33697 msgstr "B<Java>"
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:730
33701 msgid ""
33702 "Full documentation is contained in the Javadoc which is distributed with "
33703 "libguestfs.  For examples, see L<guestfs-java(3)>."
33704 msgstr ""
33705
33706 #. type: =item
33707 #: ../src/guestfs.pod:733
33708 msgid "B<OCaml>"
33709 msgstr "B<OCaml>"
33710
33711 #. type: textblock
33712 #: ../src/guestfs.pod:735
33713 msgid "See L<guestfs-ocaml(3)>."
33714 msgstr "Див. L<guestfs-ocaml(3)>."
33715
33716 #. type: =item
33717 #: ../src/guestfs.pod:737
33718 msgid "B<Perl>"
33719 msgstr "B<Perl>"
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:739
33723 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33724 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33725
33726 #. type: =item
33727 #: ../src/guestfs.pod:741
33728 msgid "B<PHP>"
33729 msgstr "B<PHP>"
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:743
33733 msgid ""
33734 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33735 "the php-libguestfs package for your distribution."
33736 msgstr ""
33737
33738 #. type: textblock
33739 #: ../src/guestfs.pod:746
33740 msgid "The PHP binding only works correctly on 64 bit machines."
33741 msgstr ""
33742
33743 #. type: =item
33744 #: ../src/guestfs.pod:748
33745 msgid "B<Python>"
33746 msgstr "B<Python>"
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:750
33750 msgid "See L<guestfs-python(3)>."
33751 msgstr "Див. L<guestfs-python(3)>."
33752
33753 #. type: =item
33754 #: ../src/guestfs.pod:752
33755 msgid "B<Ruby>"
33756 msgstr "B<Ruby>"
33757
33758 #. type: textblock
33759 #: ../src/guestfs.pod:754
33760 msgid "See L<guestfs-ruby(3)>."
33761 msgstr "Див. L<guestfs-ruby(3)>."
33762
33763 #. type: =item
33764 #: ../src/guestfs.pod:756
33765 msgid "B<shell scripts>"
33766 msgstr "B<скрипти оболонки>"
33767
33768 #. type: textblock
33769 #: ../src/guestfs.pod:758
33770 msgid "See L<guestfish(1)>."
33771 msgstr "Див. L<guestfish(1)>."
33772
33773 #. type: =head2
33774 #: ../src/guestfs.pod:762
33775 msgid "LIBGUESTFS GOTCHAS"
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs.pod:764
33780 msgid ""
33781 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33782 "system [...] that works in the way it is documented but is counterintuitive "
33783 "and almost invites mistakes.\""
33784 msgstr ""
33785
33786 #. type: textblock
33787 #: ../src/guestfs.pod:768
33788 msgid ""
33789 "Since we developed libguestfs and the associated tools, there are several "
33790 "things we would have designed differently, but are now stuck with for "
33791 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33792 "release, you can expect these to change.  Beware of them."
33793 msgstr ""
33794
33795 #. type: =item
33796 #: ../src/guestfs.pod:776
33797 msgid "Autosync / forgetting to sync."
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:778
33802 msgid ""
33803 "I<Update:> Autosync is enabled by default for all API users starting from "
33804 "libguestfs 1.5.24.  This section only applies to older versions."
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:781
33809 msgid ""
33810 "When modifying a filesystem from C or another language, you B<must> unmount "
33811 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33812 "libguestfs handle.  You can also call:"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs.pod:785
33817 #, no-wrap
33818 msgid ""
33819 " guestfs_set_autosync (g, 1);\n"
33820 "\n"
33821 msgstr ""
33822 " guestfs_set_autosync (g, 1);\n"
33823 "\n"
33824
33825 #. type: textblock
33826 #: ../src/guestfs.pod:787
33827 msgid ""
33828 "to have the unmount/sync done automatically for you when the handle 'g' is "
33829 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33830 msgstr ""
33831
33832 #. type: textblock
33833 #: ../src/guestfs.pod:791
33834 msgid ""
33835 "If you forget to do this, then it is entirely possible that your changes "
33836 "won't be written out, or will be partially written, or (very rarely) that "
33837 "you'll get disk corruption."
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:795
33842 msgid ""
33843 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33844 "guestfish scripts that forget to sync will work just fine, which can make "
33845 "this very puzzling if you are trying to debug a problem."
33846 msgstr ""
33847
33848 #. type: =item
33849 #: ../src/guestfs.pod:799
33850 msgid "Mount option C<-o sync> should not be the default."
33851 msgstr ""
33852
33853 #. type: textblock
33854 #: ../src/guestfs.pod:801
33855 msgid ""
33856 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33857 "However C<-o sync> does not add any reliability benefit, but does have a "
33858 "very large performance impact."
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:805
33863 msgid ""
33864 "The work around is to use L</guestfs_mount_options> and set the mount "
33865 "options that you actually want to use."
33866 msgstr ""
33867
33868 #. type: =item
33869 #: ../src/guestfs.pod:808
33870 msgid "Read-only should be the default."
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:810
33875 msgid ""
33876 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33877 "specify I<--rw> if you want to make changes to the image."
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs.pod:813
33882 msgid "This would reduce the potential to corrupt live VM images."
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:815
33887 msgid ""
33888 "Note that many filesystems change the disk when you just mount and unmount, "
33889 "even if you didn't perform any writes.  You need to use L</"
33890 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33891 msgstr ""
33892
33893 #. type: =item
33894 #: ../src/guestfs.pod:819
33895 msgid "guestfish command line is hard to use."
33896 msgstr ""
33897
33898 #. type: textblock
33899 #: ../src/guestfs.pod:821
33900 msgid ""
33901 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33902 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33903 "exist, so it fails.  In earlier versions of guestfish the error message was "
33904 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33905 "we should have used C<guestfish -c command> to run commands."
33906 msgstr ""
33907
33908 #. type: =item
33909 #: ../src/guestfs.pod:828
33910 msgid "guestfish megabyte modifiers don't work right on all commands"
33911 msgstr ""
33912
33913 #. type: textblock
33914 #: ../src/guestfs.pod:830
33915 msgid ""
33916 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33917 "other modifiers).  What guestfish actually does is to multiply the number "
33918 "part by the modifier part and pass the result to the C API.  However this "
33919 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33920 "expecting some other unit (eg. megabytes)."
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:837
33925 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33926 msgstr ""
33927
33928 #. type: verbatim
33929 #: ../src/guestfs.pod:839
33930 #, no-wrap
33931 msgid ""
33932 " lvcreate LV VG 100M\n"
33933 "\n"
33934 msgstr ""
33935 " lvcreate LV VG 100M\n"
33936 "\n"
33937
33938 #. type: textblock
33939 #: ../src/guestfs.pod:841
33940 msgid ""
33941 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33942 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33943 "megabytes * megabytes) logical volume.  The error message you get from this "
33944 "is also a little obscure."
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs.pod:846
33949 msgid ""
33950 "This could be fixed in the generator by specially marking parameters and "
33951 "return values which take bytes or other units."
33952 msgstr ""
33953
33954 #. type: =item
33955 #: ../src/guestfs.pod:849
33956 msgid "Ambiguity between devices and paths"
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs.pod:851
33961 msgid ""
33962 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33963 "sdb2>) and a similar pathname.  A file might just happen to be called "
33964 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs.pod:856
33969 msgid ""
33970 "In the current API we usually resolve this ambiguity by having two separate "
33971 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33972 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33973 "detecting if the path supplied begins with C</dev/>."
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:862
33978 msgid ""
33979 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33980 "make paths/devices into structured names.  One way to do this would be to "
33981 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33982 "aspect of grub.  Another way would be to use a structured type, equivalent "
33983 "to this OCaml type:"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs.pod:868
33988 #, no-wrap
33989 msgid ""
33990 " type path = Path of string | Device of int | Partition of int * int\n"
33991 "\n"
33992 msgstr ""
33993
33994 #. type: textblock
33995 #: ../src/guestfs.pod:870
33996 msgid "which would allow you to pass arguments like:"
33997 msgstr ""
33998
33999 #. type: verbatim
34000 #: ../src/guestfs.pod:872
34001 #, no-wrap
34002 msgid ""
34003 " Path \"/foo/bar\"\n"
34004 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34005 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34006 " Path \"/dev/sdb2\"    (* not a device *)\n"
34007 "\n"
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:877
34012 msgid ""
34013 "As you can see there are still problems to resolve even with this "
34014 "representation.  Also consider how it might work in guestfish."
34015 msgstr ""
34016
34017 #. type: =head2
34018 #: ../src/guestfs.pod:882
34019 msgid "KEYS AND PASSPHRASES"
34020 msgstr "КЛЮЧІ І ПАРОЛІ"
34021
34022 #. type: textblock
34023 #: ../src/guestfs.pod:884
34024 msgid ""
34025 "Certain libguestfs calls take a parameter that contains sensitive key "
34026 "material, passed in as a C string."
34027 msgstr ""
34028
34029 #. type: textblock
34030 #: ../src/guestfs.pod:887
34031 msgid ""
34032 "In the future we would hope to change the libguestfs implementation so that "
34033 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34034 "swap.  However this is I<not> done at the moment, because of the complexity "
34035 "of such an implementation."
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs.pod:892
34040 msgid ""
34041 "Therefore you should be aware that any key parameter you pass to libguestfs "
34042 "might end up being written out to the swap partition.  If this is a concern, "
34043 "scrub the swap partition or don't use libguestfs on encrypted devices."
34044 msgstr ""
34045
34046 #. type: =head2
34047 #: ../src/guestfs.pod:897
34048 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:899
34053 msgid ""
34054 "All high-level libguestfs actions are synchronous.  If you want to use "
34055 "libguestfs asynchronously then you must create a thread."
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:902
34060 msgid ""
34061 "Only use the handle from a single thread.  Either use the handle exclusively "
34062 "from one thread, or provide your own mutex so that two threads cannot issue "
34063 "calls on the same handle at the same time."
34064 msgstr ""
34065
34066 #. type: textblock
34067 #: ../src/guestfs.pod:906
34068 msgid ""
34069 "See the graphical program guestfs-browser for one possible architecture for "
34070 "multithreaded programs using libvirt and libguestfs."
34071 msgstr ""
34072
34073 #. type: =head2
34074 #: ../src/guestfs.pod:909
34075 msgid "PATH"
34076 msgstr "ШЛЯХ"
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:911
34080 msgid ""
34081 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34082 "internal path."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:914
34087 msgid ""
34088 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34089 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs.pod:917
34094 msgid ""
34095 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34096 "to change the directories that libguestfs will search in.  The value is a "
34097 "colon-separated list of paths.  The current directory is I<not> searched "
34098 "unless the path contains an empty element or C<.>.  For example "
34099 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34100 "then C</usr/lib/guestfs>."
34101 msgstr ""
34102
34103 #. type: =head2
34104 #: ../src/guestfs.pod:924
34105 msgid "QEMU WRAPPERS"
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs.pod:926
34110 msgid ""
34111 "If you want to compile your own qemu, run qemu from a non-standard location, "
34112 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34113 "around qemu."
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs.pod:930
34118 msgid ""
34119 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34120 "last command in the shell script (so that qemu replaces the shell and "
34121 "becomes the direct child of the libguestfs-using program).  If you don't do "
34122 "this, then the qemu process won't be cleaned up correctly."
34123 msgstr ""
34124
34125 #. type: textblock
34126 #: ../src/guestfs.pod:935
34127 msgid ""
34128 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34129 "source:"
34130 msgstr ""
34131
34132 #. type: verbatim
34133 #: ../src/guestfs.pod:938
34134 #, no-wrap
34135 msgid ""
34136 " #!/bin/sh -\n"
34137 " qemudir=/home/rjones/d/qemu\n"
34138 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34139 "\n"
34140 msgstr ""
34141 " #!/bin/sh -\n"
34142 " qemudir=/home/rjones/d/qemu\n"
34143 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34144 "\n"
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:942
34148 msgid ""
34149 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34150 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34151 "example:"
34152 msgstr ""
34153
34154 #. type: verbatim
34155 #: ../src/guestfs.pod:946
34156 #, no-wrap
34157 msgid ""
34158 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34159 "\n"
34160 msgstr ""
34161 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34162 "\n"
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:948
34166 msgid ""
34167 "Note that libguestfs also calls qemu with the -help and -version options in "
34168 "order to determine features."
34169 msgstr ""
34170
34171 #. type: =head2
34172 #: ../src/guestfs.pod:951
34173 msgid "ATTACHING TO RUNNING DAEMONS"
34174 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34175
34176 #. type: textblock
34177 #: ../src/guestfs.pod:953
34178 msgid ""
34179 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34180 "babies.  Use with caution."
34181 msgstr ""
34182
34183 #. type: textblock
34184 #: ../src/guestfs.pod:956
34185 msgid ""
34186 "I<Note (2):> This section explains how to attach to a running daemon from a "
34187 "low level perspective.  For most users, simply using virt tools such as "
34188 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34189 msgstr ""
34190
34191 #. type: =head3
34192 #: ../src/guestfs.pod:960
34193 msgid "Using guestfs_set_attach_method"
34194 msgstr "За допомогою guestfs_set_attach_method"
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:962
34198 msgid ""
34199 "By calling L</guestfs_set_attach_method> you can change how the library "
34200 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34201 "ARCHITECTURE> for some background)."
34202 msgstr ""
34203
34204 #. type: textblock
34205 #: ../src/guestfs.pod:966
34206 msgid ""
34207 "The normal attach method is C<appliance>, where a small appliance is created "
34208 "containing the daemon, and then the library connects to this."
34209 msgstr ""
34210
34211 #. type: textblock
34212 #: ../src/guestfs.pod:969
34213 msgid ""
34214 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34215 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34216 "daemon over the Unix domain socket."
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:973
34221 msgid ""
34222 "The normal use for this is to connect to a running virtual machine that "
34223 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34224 "files inside the live virtual machine."
34225 msgstr ""
34226
34227 #. type: =head3
34228 #: ../src/guestfs.pod:977
34229 msgid "Using guestfs_add_domain with live flag"
34230 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34231
34232 #. type: textblock
34233 #: ../src/guestfs.pod:979
34234 msgid ""
34235 "L</guestfs_add_domain> provides some help for getting the correct attach "
34236 "method.  If you pass the C<live> option to this function, then (if the "
34237 "virtual machine is running) it will examine the libvirt XML looking for a "
34238 "virtio-serial channel to connect to:"
34239 msgstr ""
34240
34241 #. type: verbatim
34242 #: ../src/guestfs.pod:985
34243 #, no-wrap
34244 msgid ""
34245 " <domain>\n"
34246 "   ...\n"
34247 "   <devices>\n"
34248 "     ...\n"
34249 "     <channel type='unix'>\n"
34250 "       <source mode='bind' path='/path/to/socket'/>\n"
34251 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34252 "     </channel>\n"
34253 "     ...\n"
34254 "   </devices>\n"
34255 " </domain>\n"
34256 "\n"
34257 msgstr ""
34258 " <domain>\n"
34259 "   ...\n"
34260 "   <devices>\n"
34261 "     ...\n"
34262 "     <channel type='unix'>\n"
34263 "       <source mode='bind' path='/path/to/socket'/>\n"
34264 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34265 "     </channel>\n"
34266 "     ...\n"
34267 "   </devices>\n"
34268 " </domain>\n"
34269 "\n"
34270
34271 #. type: textblock
34272 #: ../src/guestfs.pod:997
34273 msgid ""
34274 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34275 "method to C<unix:/path/to/socket>."
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1000
34280 msgid ""
34281 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34282 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34283 "to attach to and modify live virtual machines."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:1004
34288 msgid ""
34289 "The virtual machine needs to have been set up beforehand so that it has the "
34290 "virtio-serial channel and so that guestfsd is running inside it."
34291 msgstr ""
34292
34293 #. type: =head2
34294 #: ../src/guestfs.pod:1008
34295 msgid "ABI GUARANTEE"
34296 msgstr "ГАРАНТІЯ ЩОДО ABI"
34297
34298 #. type: textblock
34299 #: ../src/guestfs.pod:1010
34300 msgid ""
34301 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34302 "actions as outlined in this section.  Although we will deprecate some "
34303 "actions, for example if they get replaced by newer calls, we will keep the "
34304 "old actions forever.  This allows you the developer to program in confidence "
34305 "against the libguestfs API."
34306 msgstr ""
34307
34308 #. type: =head2
34309 #: ../src/guestfs.pod:1016
34310 msgid "BLOCK DEVICE NAMING"
34311 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34312
34313 #. type: textblock
34314 #: ../src/guestfs.pod:1018
34315 msgid ""
34316 "In the kernel there is now quite a profusion of schemata for naming block "
34317 "devices (in this context, by I<block device> I mean a physical or virtual "
34318 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34319 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34320 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34321 "for the old IDE driver (particularly for SATA devices) those devices also "
34322 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34323 "paravirtualized drivers.  This has created several different naming systems, "
34324 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34325 msgstr ""
34326
34327 #. type: textblock
34328 #: ../src/guestfs.pod:1030
34329 msgid ""
34330 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34331 "Linux kernel to access block devices.  We can run a variety of appliances "
34332 "based on a variety of Linux kernels."
34333 msgstr ""
34334
34335 #. type: textblock
34336 #: ../src/guestfs.pod:1034
34337 msgid ""
34338 "This causes a problem for libguestfs because many API calls use device or "
34339 "partition names.  Working scripts and the recipe (example) scripts that we "
34340 "make available over the internet could fail if the naming scheme changes."
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:1039
34345 msgid ""
34346 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34347 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34348 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34349 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs.pod:1045
34354 msgid ""
34355 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34356 "L</guestfs_list_partitions> and similar calls return the true names of the "
34357 "devices and partitions as known to the appliance."
34358 msgstr ""
34359
34360 #. type: =head3
34361 #: ../src/guestfs.pod:1050
34362 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34363 msgstr ""
34364
34365 #. type: textblock
34366 #: ../src/guestfs.pod:1052
34367 msgid ""
34368 "Usually this translation is transparent.  However in some (very rare)  cases "
34369 "you may need to know the exact algorithm.  Such cases include where you use "
34370 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34371 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs.pod:1058
34376 msgid ""
34377 "The algorithm is applied only to I<parameters> which are known to be either "
34378 "device or partition names.  Return values from functions such as L</"
34379 "guestfs_list_devices> are never changed."
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:1066
34384 msgid "Is the string a parameter which is a device or partition name?"
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:1070
34389 msgid "Does the string begin with C</dev/sd>?"
34390 msgstr "Чи починається рядок з C</dev/sd>?"
34391
34392 #. type: textblock
34393 #: ../src/guestfs.pod:1074
34394 msgid ""
34395 "Does the named device exist? If so, we use that device.  However if I<not> "
34396 "then we continue with this algorithm."
34397 msgstr ""
34398
34399 #. type: textblock
34400 #: ../src/guestfs.pod:1079
34401 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:1081
34406 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:1083
34411 msgid "If that named device exists, use it.  If not, continue."
34412 msgstr ""
34413
34414 #. type: textblock
34415 #: ../src/guestfs.pod:1087
34416 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../src/guestfs.pod:1089
34421 msgid "If that named device exists, use it.  If not, return an error."
34422 msgstr ""
34423
34424 #. type: =head3
34425 #: ../src/guestfs.pod:1093
34426 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34427 msgstr ""
34428
34429 #. type: textblock
34430 #: ../src/guestfs.pod:1095
34431 msgid ""
34432 "Although the standard naming scheme and automatic translation is useful for "
34433 "simple programs and guestfish scripts, for larger programs it is best not to "
34434 "rely on this mechanism."
34435 msgstr ""
34436
34437 #. type: textblock
34438 #: ../src/guestfs.pod:1099
34439 msgid ""
34440 "Where possible for maximum future portability programs using libguestfs "
34441 "should use these future-proof techniques:"
34442 msgstr ""
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:1106
34446 msgid ""
34447 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34448 "device names, and then use those names directly."
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs.pod:1109
34453 msgid ""
34454 "Since those device names exist by definition, they will never be translated."
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:1114
34459 msgid ""
34460 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34461 "filesystem labels."
34462 msgstr ""
34463
34464 #. type: =head1
34465 #: ../src/guestfs.pod:1119
34466 msgid "SECURITY"
34467 msgstr "БЕЗПЕКА"
34468
34469 #. type: textblock
34470 #: ../src/guestfs.pod:1121
34471 msgid ""
34472 "This section discusses security implications of using libguestfs, "
34473 "particularly with untrusted or malicious guests or disk images."
34474 msgstr ""
34475
34476 #. type: =head2
34477 #: ../src/guestfs.pod:1124
34478 msgid "GENERAL SECURITY CONSIDERATIONS"
34479 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:1126
34483 msgid ""
34484 "Be careful with any files or data that you download from a guest (by "
34485 "\"download\" we mean not just the L</guestfs_download> command but any "
34486 "command that reads files, filenames, directories or anything else from a "
34487 "disk image).  An attacker could manipulate the data to fool your program "
34488 "into doing the wrong thing.  Consider cases such as:"
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs.pod:1136
34493 msgid "the data (file etc) not being present"
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs.pod:1140
34498 msgid "being present but empty"
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1144
34503 msgid "being much larger than normal"
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:1148
34508 msgid "containing arbitrary 8 bit data"
34509 msgstr ""
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:1152
34513 msgid "being in an unexpected character encoding"
34514 msgstr ""
34515
34516 #. type: textblock
34517 #: ../src/guestfs.pod:1156
34518 msgid "containing homoglyphs."
34519 msgstr ""
34520
34521 #. type: =head2
34522 #: ../src/guestfs.pod:1160
34523 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34524 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34525
34526 #. type: textblock
34527 #: ../src/guestfs.pod:1162
34528 msgid ""
34529 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34530 "(VFS) module can sometimes be escalated into exploits by deliberately "
34531 "creating a malicious, malformed filesystem.  These exploits are very severe "
34532 "for two reasons.  Firstly there are very many filesystem drivers in the "
34533 "kernel, and many of them are infrequently used and not much developer "
34534 "attention has been paid to the code.  Linux userspace helps potential "
34535 "crackers by detecting the filesystem type and automatically choosing the "
34536 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34537 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34538 "exploit (worse in some ways), giving immediate and total access to the "
34539 "system right down to the hardware level."
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:1175
34544 msgid ""
34545 "That explains why you should never mount a filesystem from an untrusted "
34546 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34547 "inside a qemu virtual machine, usually running as a non-root user.  The "
34548 "attacker would need to write a filesystem which first exploited the kernel, "
34549 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34550 "the libguestfs protocol, and finally to be as serious as the host kernel "
34551 "exploit it would need to escalate its privileges to root.  This multi-step "
34552 "escalation, performed by a static piece of data, is thought to be extremely "
34553 "hard to do, although we never say 'never' about security issues."
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:1186
34558 msgid ""
34559 "In any case callers can reduce the attack surface by forcing the filesystem "
34560 "type when mounting (use L</guestfs_mount_vfs>)."
34561 msgstr ""
34562
34563 #. type: =head2
34564 #: ../src/guestfs.pod:1189
34565 msgid "PROTOCOL SECURITY"
34566 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:1191
34570 msgid ""
34571 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34572 "defined upper message size.  However a program that uses libguestfs must "
34573 "also take care - for example you can write a program that downloads a binary "
34574 "from a disk image and executes it locally, and no amount of protocol "
34575 "security will save you from the consequences."
34576 msgstr ""
34577
34578 #. type: =head2
34579 #: ../src/guestfs.pod:1197
34580 msgid "INSPECTION SECURITY"
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:1199
34585 msgid ""
34586 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34587 "directly from the guest, and these could contain any 8 bit data.  Callers "
34588 "should be careful to escape these before printing them to a structured file "
34589 "(for example, use HTML escaping if creating a web page)."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1205
34594 msgid ""
34595 "Guest configuration may be altered in unusual ways by the administrator of "
34596 "the virtual machine, and may not reflect reality (particularly for untrusted "
34597 "or actively malicious guests).  For example we parse the hostname from "
34598 "configuration files like C</etc/sysconfig/network> that we find in the "
34599 "guest, but the guest administrator can easily manipulate these files to "
34600 "provide the wrong hostname."
34601 msgstr ""
34602
34603 #. type: textblock
34604 #: ../src/guestfs.pod:1213
34605 msgid ""
34606 "The inspection API parses guest configuration using two external libraries: "
34607 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34608 "designed to be robust in the face of malicious data, although denial of "
34609 "service attacks are still possible, for example with oversized configuration "
34610 "files."
34611 msgstr ""
34612
34613 #. type: =head2
34614 #: ../src/guestfs.pod:1219
34615 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34616 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:1221
34620 msgid ""
34621 "Be very cautious about running commands from the guest.  By running a "
34622 "command in the guest, you are giving CPU time to a binary that you do not "
34623 "control, under the same user account as the library, albeit wrapped in qemu "
34624 "virtualization.  More information and alternatives can be found in the "
34625 "section L</RUNNING COMMANDS>."
34626 msgstr ""
34627
34628 #. type: =head2
34629 #: ../src/guestfs.pod:1227
34630 msgid "CVE-2010-3851"
34631 msgstr "CVE-2010-3851"
34632
34633 #. type: textblock
34634 #: ../src/guestfs.pod:1229
34635 msgid "https://bugzilla.redhat.com/642934"
34636 msgstr "https://bugzilla.redhat.com/642934"
34637
34638 #. type: textblock
34639 #: ../src/guestfs.pod:1231
34640 msgid ""
34641 "This security bug concerns the automatic disk format detection that qemu "
34642 "does on disk images."
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:1234
34647 msgid ""
34648 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34649 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34650 "for one of the known headers, and if none is found then assuming the disk "
34651 "image must be raw."
34652 msgstr ""
34653
34654 #. type: textblock
34655 #: ../src/guestfs.pod:1239
34656 msgid ""
34657 "This allows a guest which has been given a raw disk image to write some "
34658 "other header.  At next boot (or when the disk image is accessed by "
34659 "libguestfs) qemu would do autodetection and think the disk image format was, "
34660 "say, qcow2 based on the header written by the guest."
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:1244
34665 msgid ""
34666 "This in itself would not be a problem, but qcow2 offers many features, one "
34667 "of which is to allow a disk image to refer to another image (called the "
34668 "\"backing disk\").  It does this by placing the path to the backing disk "
34669 "into the qcow2 header.  This path is not validated and could point to any "
34670 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34671 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34672 "control of the attacker."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:1252
34677 msgid ""
34678 "In libguestfs this is rather hard to exploit except under two circumstances:"
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:1259
34683 msgid "You have enabled the network or have opened the disk in write mode."
34684 msgstr ""
34685
34686 #. type: textblock
34687 #: ../src/guestfs.pod:1263
34688 msgid ""
34689 "You are also running untrusted code from the guest (see L</RUNNING "
34690 "COMMANDS>)."
34691 msgstr ""
34692
34693 #. type: textblock
34694 #: ../src/guestfs.pod:1268
34695 msgid ""
34696 "The way to avoid this is to specify the expected disk format when adding "
34697 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34698 "should always do this if the disk is raw format, and it's a good idea for "
34699 "other cases too."
34700 msgstr ""
34701
34702 #. type: textblock
34703 #: ../src/guestfs.pod:1273
34704 msgid ""
34705 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34706 "format is fetched from libvirt and passed through."
34707 msgstr ""
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:1276
34711 msgid ""
34712 "For libguestfs tools, use the I<--format> command line parameter as "
34713 "appropriate."
34714 msgstr ""
34715
34716 #. type: =head1
34717 #: ../src/guestfs.pod:1279
34718 msgid "CONNECTION MANAGEMENT"
34719 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34720
34721 #. type: =head2
34722 #: ../src/guestfs.pod:1281
34723 msgid "guestfs_h *"
34724 msgstr "guestfs_h *"
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:1283
34728 msgid ""
34729 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34730 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34731 "handle and release all resources used."
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:1287
34736 msgid ""
34737 "For information on using multiple handles and threads, see the section L</"
34738 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34739 msgstr ""
34740
34741 #. type: =head2
34742 #: ../src/guestfs.pod:1290
34743 msgid "guestfs_create"
34744 msgstr "guestfs_create"
34745
34746 #. type: verbatim
34747 #: ../src/guestfs.pod:1292
34748 #, no-wrap
34749 msgid ""
34750 " guestfs_h *guestfs_create (void);\n"
34751 "\n"
34752 msgstr ""
34753 " guestfs_h *guestfs_create (void);\n"
34754 "\n"
34755
34756 #. type: textblock
34757 #: ../src/guestfs.pod:1294
34758 msgid "Create a connection handle."
34759 msgstr "Створити дескриптор з’єднання."
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:1296
34763 msgid ""
34764 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34765 "NULL."
34766 msgstr ""
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:1299
34770 msgid ""
34771 "You have to \"configure\" the handle after creating it.  This includes "
34772 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34773 "handle at least once."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:1303
34778 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:1305
34783 msgid ""
34784 "You may also want to configure error handling for the handle.  See the L</"
34785 "ERROR HANDLING> section below."
34786 msgstr ""
34787
34788 #. type: =head2
34789 #: ../src/guestfs.pod:1308
34790 msgid "guestfs_close"
34791 msgstr "guestfs_close"
34792
34793 #. type: verbatim
34794 #: ../src/guestfs.pod:1310
34795 #, no-wrap
34796 msgid ""
34797 " void guestfs_close (guestfs_h *g);\n"
34798 "\n"
34799 msgstr ""
34800 " void guestfs_close (guestfs_h *g);\n"
34801 "\n"
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:1312
34805 msgid "This closes the connection handle and frees up all resources used."
34806 msgstr ""
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:1314
34810 msgid ""
34811 "If autosync was set on the handle and the handle was launched, then this "
34812 "implicitly calls various functions to unmount filesystems and sync the "
34813 "disk.  See L</guestfs_set_autosync> for more details."
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:1318
34818 msgid "If a close callback was set on the handle, then it is called."
34819 msgstr ""
34820
34821 #. type: =head1
34822 #: ../src/guestfs.pod:1320
34823 msgid "ERROR HANDLING"
34824 msgstr "ОБРОБКА ПОМИЛОК"
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:1322
34828 msgid ""
34829 "API functions can return errors.  For example, almost all functions that "
34830 "return C<int> will return C<-1> to indicate an error."
34831 msgstr ""
34832
34833 #. type: textblock
34834 #: ../src/guestfs.pod:1325
34835 msgid ""
34836 "Additional information is available for errors: an error message string and "
34837 "optionally an error number (errno) if the thing that failed was a system "
34838 "call."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:1329
34843 msgid ""
34844 "You can get at the additional information about the last error on the handle "
34845 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34846 "up an error handler with L</guestfs_set_error_handler>."
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:1334
34851 msgid ""
34852 "When the handle is created, a default error handler is installed which "
34853 "prints the error message string to C<stderr>.  For small short-running "
34854 "command line programs it is sufficient to do:"
34855 msgstr ""
34856
34857 #. type: verbatim
34858 #: ../src/guestfs.pod:1338
34859 #, no-wrap
34860 msgid ""
34861 " if (guestfs_launch (g) == -1)\n"
34862 "   exit (EXIT_FAILURE);\n"
34863 "\n"
34864 msgstr ""
34865 " if (guestfs_launch (g) == -1)\n"
34866 "   exit (EXIT_FAILURE);\n"
34867 "\n"
34868
34869 #. type: textblock
34870 #: ../src/guestfs.pod:1341
34871 msgid ""
34872 "since the default error handler will ensure that an error message has been "
34873 "printed to C<stderr> before the program exits."
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:1344
34878 msgid ""
34879 "For other programs the caller will almost certainly want to install an "
34880 "alternate error handler or do error handling in-line like this:"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs.pod:1347
34885 #, no-wrap
34886 msgid ""
34887 " g = guestfs_create ();\n"
34888 " \n"
34889 msgstr ""
34890 " g = guestfs_create ();\n"
34891 " \n"
34892
34893 #. type: verbatim
34894 #: ../src/guestfs.pod:1349
34895 #, no-wrap
34896 msgid ""
34897 " /* This disables the default behaviour of printing errors\n"
34898 "    on stderr. */\n"
34899 " guestfs_set_error_handler (g, NULL, NULL);\n"
34900 " \n"
34901 msgstr ""
34902
34903 #. type: verbatim
34904 #: ../src/guestfs.pod:1353
34905 #, no-wrap
34906 msgid ""
34907 " if (guestfs_launch (g) == -1) {\n"
34908 "   /* Examine the error message and print it etc. */\n"
34909 "   char *msg = guestfs_last_error (g);\n"
34910 "   int errnum = guestfs_last_errno (g);\n"
34911 "   fprintf (stderr, \"%s\\n\", msg);\n"
34912 "   /* ... */\n"
34913 "  }\n"
34914 "\n"
34915 msgstr ""
34916 " if (guestfs_launch (g) == -1) {\n"
34917 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
34918 "   char *msg = guestfs_last_error (g);\n"
34919 "   int errnum = guestfs_last_errno (g);\n"
34920 "   fprintf (stderr, \"%s\\n\", msg);\n"
34921 "   /* ... */\n"
34922 "  }\n"
34923 "\n"
34924
34925 #. type: textblock
34926 #: ../src/guestfs.pod:1361
34927 msgid ""
34928 "Out of memory errors are handled differently.  The default action is to call "
34929 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34930 "guestfs_set_out_of_memory_handler>."
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:1365
34935 msgid ""
34936 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34937 "because there is no handle if this happens there is no way to get additional "
34938 "error information.  However L</guestfs_create> is supposed to be a "
34939 "lightweight operation which can only fail because of insufficient memory (it "
34940 "returns NULL in this case)."
34941 msgstr ""
34942
34943 #. type: =head2
34944 #: ../src/guestfs.pod:1371
34945 msgid "guestfs_last_error"
34946 msgstr "guestfs_last_error"
34947
34948 #. type: verbatim
34949 #: ../src/guestfs.pod:1373
34950 #, no-wrap
34951 msgid ""
34952 " const char *guestfs_last_error (guestfs_h *g);\n"
34953 "\n"
34954 msgstr ""
34955 " const char *guestfs_last_error (guestfs_h *g);\n"
34956 "\n"
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:1375
34960 msgid ""
34961 "This returns the last error message that happened on C<g>.  If there has not "
34962 "been an error since the handle was created, then this returns C<NULL>."
34963 msgstr ""
34964
34965 #. type: textblock
34966 #: ../src/guestfs.pod:1379
34967 msgid ""
34968 "The lifetime of the returned string is until the next error occurs, or L</"
34969 "guestfs_close> is called."
34970 msgstr ""
34971
34972 #. type: =head2
34973 #: ../src/guestfs.pod:1382
34974 msgid "guestfs_last_errno"
34975 msgstr "guestfs_last_errno"
34976
34977 #. type: verbatim
34978 #: ../src/guestfs.pod:1384
34979 #, no-wrap
34980 msgid ""
34981 " int guestfs_last_errno (guestfs_h *g);\n"
34982 "\n"
34983 msgstr ""
34984 " int guestfs_last_errno (guestfs_h *g);\n"
34985 "\n"
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:1386
34989 msgid "This returns the last error number (errno) that happened on C<g>."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:1388
34994 msgid "If successful, an errno integer not equal to zero is returned."
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:1390
34999 msgid ""
35000 "If no error, this returns 0.  This call can return 0 in three situations:"
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:1397
35005 msgid "There has not been any error on the handle."
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:1401
35010 msgid ""
35011 "There has been an error but the errno was meaningless.  This corresponds to "
35012 "the case where the error did not come from a failed system call, but for "
35013 "some other reason."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:1407
35018 msgid ""
35019 "There was an error from a failed system call, but for some reason the errno "
35020 "was not captured and returned.  This usually indicates a bug in libguestfs."
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs.pod:1413
35025 msgid ""
35026 "Libguestfs tries to convert the errno from inside the applicance into a "
35027 "corresponding errno for the caller (not entirely trivial: the appliance "
35028 "might be running a completely different operating system from the library "
35029 "and error numbers are not standardized across Un*xen).  If this could not be "
35030 "done, then the error is translated to C<EINVAL>.  In practice this should "
35031 "only happen in very rare circumstances."
35032 msgstr ""
35033
35034 #. type: =head2
35035 #: ../src/guestfs.pod:1421
35036 msgid "guestfs_set_error_handler"
35037 msgstr "guestfs_set_error_handler"
35038
35039 #. type: verbatim
35040 #: ../src/guestfs.pod:1423
35041 #, no-wrap
35042 msgid ""
35043 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35044 "                                           void *opaque,\n"
35045 "                                           const char *msg);\n"
35046 " void guestfs_set_error_handler (guestfs_h *g,\n"
35047 "                                 guestfs_error_handler_cb cb,\n"
35048 "                                 void *opaque);\n"
35049 "\n"
35050 msgstr ""
35051 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35052 "                                           void *opaque,\n"
35053 "                                           const char *msg);\n"
35054 " void guestfs_set_error_handler (guestfs_h *g,\n"
35055 "                                 guestfs_error_handler_cb cb,\n"
35056 "                                 void *opaque);\n"
35057 "\n"
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:1430
35061 msgid ""
35062 "The callback C<cb> will be called if there is an error.  The parameters "
35063 "passed to the callback are an opaque data pointer and the error message "
35064 "string."
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs.pod:1434
35069 msgid ""
35070 "C<errno> is not passed to the callback.  To get that the callback must call "
35071 "L</guestfs_last_errno>."
35072 msgstr ""
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:1437
35076 msgid ""
35077 "Note that the message string C<msg> is freed as soon as the callback "
35078 "function returns, so if you want to stash it somewhere you must make your "
35079 "own copy."
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:1441
35084 msgid "The default handler prints messages on C<stderr>."
35085 msgstr ""
35086
35087 #. type: textblock
35088 #: ../src/guestfs.pod:1443
35089 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35090 msgstr ""
35091
35092 #. type: =head2
35093 #: ../src/guestfs.pod:1445
35094 msgid "guestfs_get_error_handler"
35095 msgstr "guestfs_get_error_handler"
35096
35097 #. type: verbatim
35098 #: ../src/guestfs.pod:1447
35099 #, no-wrap
35100 msgid ""
35101 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35102 "                                                     void **opaque_rtn);\n"
35103 "\n"
35104 msgstr ""
35105 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35106 "                                                     void **opaque_rtn);\n"
35107 "\n"
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:1450
35111 msgid "Returns the current error handler callback."
35112 msgstr ""
35113
35114 #. type: =head2
35115 #: ../src/guestfs.pod:1452
35116 msgid "guestfs_set_out_of_memory_handler"
35117 msgstr "guestfs_set_out_of_memory_handler"
35118
35119 #. type: verbatim
35120 #: ../src/guestfs.pod:1454
35121 #, fuzzy, no-wrap
35122 #| msgid ""
35123 #| " typedef void (*guestfs_abort_cb) (void);\n"
35124 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35125 #| "                                        guestfs_abort_cb);\n"
35126 #| "\n"
35127 msgid ""
35128 " typedef void (*guestfs_abort_cb) (void);\n"
35129 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35130 "                                         guestfs_abort_cb);\n"
35131 "\n"
35132 msgstr ""
35133 " typedef void (*guestfs_abort_cb) (void);\n"
35134 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35135 "                                        guestfs_abort_cb);\n"
35136 "\n"
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:1458
35140 msgid ""
35141 "The callback C<cb> will be called if there is an out of memory situation.  "
35142 "I<Note this callback must not return>."
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:1461
35147 msgid "The default is to call L<abort(3)>."
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:1463
35152 msgid ""
35153 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35154 msgstr ""
35155
35156 #. type: =head2
35157 #: ../src/guestfs.pod:1466
35158 msgid "guestfs_get_out_of_memory_handler"
35159 msgstr "guestfs_get_out_of_memory_handler"
35160
35161 #. type: verbatim
35162 #: ../src/guestfs.pod:1468
35163 #, no-wrap
35164 msgid ""
35165 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35166 "\n"
35167 msgstr ""
35168 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35169 "\n"
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:1470
35173 msgid "This returns the current out of memory handler."
35174 msgstr ""
35175
35176 #. type: =head1
35177 #: ../src/guestfs.pod:1472
35178 msgid "API CALLS"
35179 msgstr "ВИКЛИКИ API"
35180
35181 #. type: =head1
35182 #: ../src/guestfs.pod:1476
35183 msgid "STRUCTURES"
35184 msgstr "СТРУКТУРИ"
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:1478
35188 msgid "@STRUCTS@"
35189 msgstr "@STRUCTS@"
35190
35191 #. type: =head1
35192 #: ../src/guestfs.pod:1480
35193 msgid "AVAILABILITY"
35194 msgstr "ДОСТУПНІСТЬ"
35195
35196 #. type: =head2
35197 #: ../src/guestfs.pod:1482
35198 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35199 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:1484
35203 msgid ""
35204 "Using L</guestfs_available> you can test availability of the following "
35205 "groups of functions.  This test queries the appliance to see if the "
35206 "appliance you are currently using supports the functionality."
35207 msgstr ""
35208
35209 #. type: textblock
35210 #: ../src/guestfs.pod:1489
35211 msgid "@AVAILABILITY@"
35212 msgstr "@AVAILABILITY@"
35213
35214 #. type: =head2
35215 #: ../src/guestfs.pod:1491
35216 msgid "GUESTFISH supported COMMAND"
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:1493
35221 msgid ""
35222 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35223 "prints out the available groups and whether they are supported by this build "
35224 "of libguestfs.  Note however that you have to do C<run> first."
35225 msgstr ""
35226
35227 #. type: =head2
35228 #: ../src/guestfs.pod:1498
35229 msgid "SINGLE CALLS AT COMPILE TIME"
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../src/guestfs.pod:1500
35234 msgid ""
35235 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35236 "function, such as:"
35237 msgstr ""
35238
35239 #. type: verbatim
35240 #: ../src/guestfs.pod:1503
35241 #, no-wrap
35242 msgid ""
35243 " #define LIBGUESTFS_HAVE_DD 1\n"
35244 "\n"
35245 msgstr ""
35246 " #define LIBGUESTFS_HAVE_DD 1\n"
35247 "\n"
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:1505
35251 msgid "if L</guestfs_dd> is available."
35252 msgstr ""
35253
35254 #. type: textblock
35255 #: ../src/guestfs.pod:1507
35256 msgid ""
35257 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35258 "function is available at compile time, we recommended using build tools such "
35259 "as autoconf or cmake.  For example in autotools you could use:"
35260 msgstr ""
35261
35262 #. type: verbatim
35263 #: ../src/guestfs.pod:1512
35264 #, no-wrap
35265 msgid ""
35266 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35267 " AC_CHECK_FUNCS([guestfs_dd])\n"
35268 "\n"
35269 msgstr ""
35270 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35271 " AC_CHECK_FUNCS([guestfs_dd])\n"
35272 "\n"
35273
35274 #. type: textblock
35275 #: ../src/guestfs.pod:1515
35276 msgid ""
35277 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35278 "in your program."
35279 msgstr ""
35280
35281 #. type: =head2
35282 #: ../src/guestfs.pod:1518
35283 msgid "SINGLE CALLS AT RUN TIME"
35284 msgstr ""
35285
35286 #. type: textblock
35287 #: ../src/guestfs.pod:1520
35288 msgid ""
35289 "Testing at compile time doesn't guarantee that a function really exists in "
35290 "the library.  The reason is that you might be dynamically linked against a "
35291 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35292 "This situation unfortunately results in a segmentation fault, which is a "
35293 "shortcoming of the C dynamic linking system itself."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:1527
35298 msgid ""
35299 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35300 "in this example program (note that you still need the compile time check as "
35301 "well):"
35302 msgstr ""
35303
35304 #. type: verbatim
35305 #: ../src/guestfs.pod:1531
35306 #, no-wrap
35307 msgid ""
35308 " #include <stdio.h>\n"
35309 " #include <stdlib.h>\n"
35310 " #include <unistd.h>\n"
35311 " #include <dlfcn.h>\n"
35312 " #include <guestfs.h>\n"
35313 " \n"
35314 msgstr ""
35315 " #include <stdio.h>\n"
35316 " #include <stdlib.h>\n"
35317 " #include <unistd.h>\n"
35318 " #include <dlfcn.h>\n"
35319 " #include <guestfs.h>\n"
35320 " \n"
35321
35322 #. type: verbatim
35323 #: ../src/guestfs.pod:1537
35324 #, no-wrap
35325 msgid ""
35326 " main ()\n"
35327 " {\n"
35328 " #ifdef LIBGUESTFS_HAVE_DD\n"
35329 "   void *dl;\n"
35330 "   int has_function;\n"
35331 " \n"
35332 msgstr ""
35333 " main ()\n"
35334 " {\n"
35335 " #ifdef LIBGUESTFS_HAVE_DD\n"
35336 "   void *dl;\n"
35337 "   int has_function;\n"
35338 " \n"
35339
35340 #. type: verbatim
35341 #: ../src/guestfs.pod:1543
35342 #, no-wrap
35343 msgid ""
35344 "   /* Test if the function guestfs_dd is really available. */\n"
35345 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35346 "   if (!dl) {\n"
35347 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35348 "     exit (EXIT_FAILURE);\n"
35349 "   }\n"
35350 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35351 "   dlclose (dl);\n"
35352 " \n"
35353 msgstr ""
35354
35355 #. type: verbatim
35356 #: ../src/guestfs.pod:1552
35357 #, no-wrap
35358 msgid ""
35359 "   if (!has_function)\n"
35360 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35361 "   else {\n"
35362 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35363 "     /* Now it's safe to call\n"
35364 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35365 "     */\n"
35366 "   }\n"
35367 " #else\n"
35368 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35369 " #endif\n"
35370 "  }\n"
35371 "\n"
35372 msgstr ""
35373
35374 #. type: textblock
35375 #: ../src/guestfs.pod:1565
35376 msgid ""
35377 "You may think the above is an awful lot of hassle, and it is.  There are "
35378 "other ways outside of the C linking system to ensure that this kind of "
35379 "incompatibility never arises, such as using package versioning:"
35380 msgstr ""
35381
35382 #. type: verbatim
35383 #: ../src/guestfs.pod:1570
35384 #, no-wrap
35385 msgid ""
35386 " Requires: libguestfs >= 1.0.80\n"
35387 "\n"
35388 msgstr ""
35389
35390 #. type: =head1
35391 #: ../src/guestfs.pod:1572
35392 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35393 msgstr ""
35394
35395 #. type: textblock
35396 #: ../src/guestfs.pod:1574
35397 msgid ""
35398 "A recent feature of the API is the introduction of calls which take optional "
35399 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35400 "takes variable arguments (ie. C<...>), as in this example:"
35401 msgstr ""
35402
35403 #. type: verbatim
35404 #: ../src/guestfs.pod:1579
35405 #, no-wrap
35406 msgid ""
35407 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35408 "\n"
35409 msgstr ""
35410 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35411 "\n"
35412
35413 #. type: textblock
35414 #: ../src/guestfs.pod:1581
35415 msgid ""
35416 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35417 "call with no optional arguments specified:"
35418 msgstr ""
35419
35420 #. type: verbatim
35421 #: ../src/guestfs.pod:1584
35422 #, no-wrap
35423 msgid ""
35424 " guestfs_add_drive_opts (g, filename, -1);\n"
35425 "\n"
35426 msgstr ""
35427 " guestfs_add_drive_opts (g, filename, -1);\n"
35428 "\n"
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:1586
35432 msgid "With a single optional argument:"
35433 msgstr ""
35434
35435 #. type: verbatim
35436 #: ../src/guestfs.pod:1588
35437 #, no-wrap
35438 msgid ""
35439 " guestfs_add_drive_opts (g, filename,\n"
35440 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35441 "                         -1);\n"
35442 "\n"
35443 msgstr ""
35444 " guestfs_add_drive_opts (g, filename,\n"
35445 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35446 "                         -1);\n"
35447 "\n"
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:1592
35451 msgid "With two:"
35452 msgstr ""
35453
35454 #. type: verbatim
35455 #: ../src/guestfs.pod:1594
35456 #, no-wrap
35457 msgid ""
35458 " guestfs_add_drive_opts (g, filename,\n"
35459 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35460 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35461 "                         -1);\n"
35462 "\n"
35463 msgstr ""
35464 " guestfs_add_drive_opts (g, filename,\n"
35465 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35466 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35467 "                         -1);\n"
35468 "\n"
35469
35470 #. type: textblock
35471 #: ../src/guestfs.pod:1599
35472 msgid ""
35473 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35474 "happen!"
35475 msgstr ""
35476
35477 #. type: =head2
35478 #: ../src/guestfs.pod:1602
35479 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35480 msgstr ""
35481
35482 #. type: textblock
35483 #: ../src/guestfs.pod:1604
35484 msgid ""
35485 "The second variant has the same name with the suffix C<_va>, which works the "
35486 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35487 "example function, this is declared:"
35488 msgstr ""
35489
35490 #. type: verbatim
35491 #: ../src/guestfs.pod:1608
35492 #, no-wrap
35493 msgid ""
35494 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35495 "                                va_list args);\n"
35496 "\n"
35497 msgstr ""
35498 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35499 "                                va_list args);\n"
35500 "\n"
35501
35502 #. type: =head2
35503 #: ../src/guestfs.pod:1611
35504 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:1613
35509 msgid ""
35510 "The third variant is useful where you need to construct these calls.  You "
35511 "pass in a structure where you fill in the optional fields.  The structure "
35512 "has a bitmask as the first element which you must set to indicate which "
35513 "fields you have filled in.  For our example function the structure and call "
35514 "are declared:"
35515 msgstr ""
35516
35517 #. type: verbatim
35518 #: ../src/guestfs.pod:1619
35519 #, no-wrap
35520 msgid ""
35521 " struct guestfs_add_drive_opts_argv {\n"
35522 "   uint64_t bitmask;\n"
35523 "   int readonly;\n"
35524 "   const char *format;\n"
35525 "   /* ... */\n"
35526 " };\n"
35527 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35528 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35529 "\n"
35530 msgstr ""
35531 " struct guestfs_add_drive_opts_argv {\n"
35532 "   uint64_t bitmask;\n"
35533 "   int readonly;\n"
35534 "   const char *format;\n"
35535 "   /* ... */\n"
35536 " };\n"
35537 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35538 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35539 "\n"
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:1628
35543 msgid "You could call it like this:"
35544 msgstr ""
35545
35546 #. type: verbatim
35547 #: ../src/guestfs.pod:1630
35548 #, no-wrap
35549 msgid ""
35550 " struct guestfs_add_drive_opts_argv optargs = {\n"
35551 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35552 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35553 "   .readonly = 1,\n"
35554 "   .format = \"qcow2\"\n"
35555 " };\n"
35556 " \n"
35557 msgstr ""
35558 " struct guestfs_add_drive_opts_argv optargs = {\n"
35559 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35560 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35561 "   .readonly = 1,\n"
35562 "   .format = \"qcow2\"\n"
35563 " };\n"
35564 " \n"
35565
35566 #. type: verbatim
35567 #: ../src/guestfs.pod:1637
35568 #, no-wrap
35569 msgid ""
35570 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35571 "\n"
35572 msgstr ""
35573 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35574 "\n"
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:1645
35578 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35579 msgstr ""
35580
35581 #. type: textblock
35582 #: ../src/guestfs.pod:1650
35583 msgid "You do not need to fill in all fields of the structure."
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:1654
35588 msgid ""
35589 "There must be a one-to-one correspondence between fields of the structure "
35590 "that are filled in, and bits set in the bitmask."
35591 msgstr ""
35592
35593 #. type: =head2
35594 #: ../src/guestfs.pod:1659
35595 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35596 msgstr ""
35597
35598 #. type: textblock
35599 #: ../src/guestfs.pod:1661
35600 msgid ""
35601 "In other languages, optional arguments are expressed in the way that is "
35602 "natural for that language.  We refer you to the language-specific "
35603 "documentation for more details on that."
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:1665
35608 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35609 msgstr ""
35610
35611 #. type: =head2
35612 #: ../src/guestfs.pod:1667
35613 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35614 msgstr ""
35615
35616 #. type: textblock
35617 #: ../src/guestfs.pod:1669
35618 msgid ""
35619 "B<Note:> This section documents the generic event mechanism introduced in "
35620 "libguestfs 1.10, which you should use in new code if possible.  The old "
35621 "functions C<guestfs_set_log_message_callback>, "
35622 "C<guestfs_set_subprocess_quit_callback>, "
35623 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35624 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35625 "page.  Because of the ABI guarantee, the old functions continue to work."
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:1678
35630 msgid ""
35631 "Handles generate events when certain things happen, such as log messages "
35632 "being generated, progress messages during long-running operations, or the "
35633 "handle being closed.  The API calls described below let you register a "
35634 "callback to be called when events happen.  You can register multiple "
35635 "callbacks (for the same, different or overlapping sets of events), and "
35636 "individually remove callbacks.  If callbacks are not removed, then they "
35637 "remain in force until the handle is closed."
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:1686
35642 msgid ""
35643 "In the current implementation, events are only generated synchronously: that "
35644 "means that events (and hence callbacks) can only happen while you are in the "
35645 "middle of making another libguestfs call.  The callback is called in the "
35646 "same thread."
35647 msgstr ""
35648
35649 #. type: textblock
35650 #: ../src/guestfs.pod:1691
35651 msgid ""
35652 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35653 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35654 msgstr ""
35655
35656 #. type: =head3
35657 #: ../src/guestfs.pod:1695
35658 msgid "CLASSES OF EVENTS"
35659 msgstr ""
35660
35661 #. type: =item
35662 #: ../src/guestfs.pod:1699
35663 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:1702
35668 msgid ""
35669 "The callback function will be called while the handle is being closed "
35670 "(synchronously from L</guestfs_close>)."
35671 msgstr ""
35672
35673 #. type: textblock
35674 #: ../src/guestfs.pod:1705
35675 msgid ""
35676 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35677 "handles that are open when the program exits.  This means that this callback "
35678 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35679 "problems in higher-level languages (eg. if your HLL interpreter has already "
35680 "been cleaned up by the time this is called, and if your callback then jumps "
35681 "into some HLL function)."
35682 msgstr ""
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:1712
35686 msgid ""
35687 "If no callback is registered: the handle is closed without any callback "
35688 "being invoked."
35689 msgstr ""
35690
35691 #. type: =item
35692 #: ../src/guestfs.pod:1715
35693 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:1718
35698 msgid ""
35699 "The callback function will be called when the child process quits, either "
35700 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35701 "corresponds to a transition from any state to the CONFIG state)."
35702 msgstr ""
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
35706 msgid "If no callback is registered: the event is ignored."
35707 msgstr ""
35708
35709 #. type: =item
35710 #: ../src/guestfs.pod:1724
35711 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:1727
35716 msgid ""
35717 "The callback function will be called when the child process becomes ready "
35718 "first time after it has been launched.  (This corresponds to a transition "
35719 "from LAUNCHING to the READY state)."
35720 msgstr ""
35721
35722 #. type: =item
35723 #: ../src/guestfs.pod:1733
35724 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:1736
35729 msgid ""
35730 "Some long-running operations can generate progress messages.  If this "
35731 "callback is registered, then it will be called each time a progress message "
35732 "is generated (usually two seconds after the operation started, and three "
35733 "times per second thereafter until it completes, although the frequency may "
35734 "change in future versions)."
35735 msgstr ""
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:1742
35739 msgid ""
35740 "The callback receives in the payload four unsigned 64 bit numbers which are "
35741 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:1745
35746 msgid ""
35747 "The units of C<total> are not defined, although for some operations C<total> "
35748 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35749 "or megabytes), and C<position> may be the portion which has been transferred."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:1750
35754 msgid "The only defined and stable parts of the API are:"
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:1756
35759 msgid ""
35760 "The callback can display to the user some type of progress bar or indicator "
35761 "which shows the ratio of C<position>:C<total>."
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:1761
35766 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:1765
35771 msgid ""
35772 "If any progress notification is sent during a call, then a final progress "
35773 "notification is always sent when C<position> = C<total> (I<unless> the call "
35774 "fails with an error)."
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:1769
35779 msgid ""
35780 "This is to simplify caller code, so callers can easily set the progress "
35781 "indicator to \"100%\" at the end of the operation, without requiring special "
35782 "code to detect this case."
35783 msgstr ""
35784
35785 #. type: textblock
35786 #: ../src/guestfs.pod:1775
35787 msgid ""
35788 "For some calls we are unable to estimate the progress of the call, but we "
35789 "can still generate progress messages to indicate activity.  This is known as "
35790 "\"pulse mode\", and is directly supported by certain progress bar "
35791 "implementations (eg. GtkProgressBar)."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:1780
35796 msgid ""
35797 "For these calls, zero or more progress messages are generated with "
35798 "C<position = 0> and C<total = 1>, followed by a final message with "
35799 "C<position = total = 1>."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:1784
35804 msgid ""
35805 "As noted above, if the call fails with an error then the final message may "
35806 "not be generated."
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:1789
35811 msgid ""
35812 "The callback also receives the procedure number (C<proc_nr>) and serial "
35813 "number (C<serial>) of the call.  These are only useful for debugging "
35814 "protocol issues, and the callback can normally ignore them.  The callback "
35815 "may want to print these numbers in error messages or debugging messages."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:1795
35820 msgid "If no callback is registered: progress messages are discarded."
35821 msgstr ""
35822
35823 #. type: =item
35824 #: ../src/guestfs.pod:1797
35825 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:1800
35830 msgid ""
35831 "The callback function is called whenever a log message is generated by qemu, "
35832 "the appliance kernel, guestfsd (daemon), or utility programs."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:1803
35837 msgid ""
35838 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35839 "guestfs_launch>) then additional debug messages are generated."
35840 msgstr ""
35841
35842 #. type: textblock
35843 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
35844 msgid ""
35845 "If no callback is registered: the messages are discarded unless the verbose "
35846 "flag is set in which case they are sent to stderr.  You can override the "
35847 "printing of verbose messages to stderr by setting up a callback."
35848 msgstr ""
35849
35850 #. type: =item
35851 #: ../src/guestfs.pod:1811
35852 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:1814
35857 msgid ""
35858 "The callback function is called whenever a log message is generated by the "
35859 "library part of libguestfs."
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:1817
35864 msgid ""
35865 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35866 "messages are generated."
35867 msgstr ""
35868
35869 #. type: =item
35870 #: ../src/guestfs.pod:1825
35871 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:1828
35876 msgid ""
35877 "The callback function is called whenever a trace message is generated.  This "
35878 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:1831
35883 msgid ""
35884 "If no callback is registered: the messages are sent to stderr.  You can "
35885 "override the printing of trace messages to stderr by setting up a callback."
35886 msgstr ""
35887
35888 #. type: =head3
35889 #: ../src/guestfs.pod:1837
35890 msgid "guestfs_set_event_callback"
35891 msgstr ""
35892
35893 #. type: verbatim
35894 #: ../src/guestfs.pod:1839
35895 #, no-wrap
35896 msgid ""
35897 " int guestfs_set_event_callback (guestfs_h *g,\n"
35898 "                                 guestfs_event_callback cb,\n"
35899 "                                 uint64_t event_bitmask,\n"
35900 "                                 int flags,\n"
35901 "                                 void *opaque);\n"
35902 "\n"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:1845
35907 msgid ""
35908 "This function registers a callback (C<cb>) for all event classes in the "
35909 "C<event_bitmask>."
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:1848
35914 msgid ""
35915 "For example, to register for all log message events, you could call this "
35916 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35917 "To register a single callback for all possible classes of events, use "
35918 "C<GUESTFS_EVENT_ALL>."
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:1854
35923 msgid "C<flags> should always be passed as 0."
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:1856
35928 msgid ""
35929 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35930 "it for any purpose."
35931 msgstr ""
35932
35933 #. type: textblock
35934 #: ../src/guestfs.pod:1859
35935 msgid ""
35936 "The return value is the event handle (an integer) which you can use to "
35937 "delete the callback (see below)."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:1862
35942 msgid ""
35943 "If there is an error, this function returns C<-1>, and sets the error in the "
35944 "handle in the usual way (see L</guestfs_last_error> etc.)"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:1865
35949 msgid ""
35950 "Callbacks remain in effect until they are deleted, or until the handle is "
35951 "closed."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:1868
35956 msgid ""
35957 "In the case where multiple callbacks are registered for a particular event "
35958 "class, all of the callbacks are called.  The order in which multiple "
35959 "callbacks are called is not defined."
35960 msgstr ""
35961
35962 #. type: =head3
35963 #: ../src/guestfs.pod:1872
35964 msgid "guestfs_delete_event_callback"
35965 msgstr ""
35966
35967 #. type: verbatim
35968 #: ../src/guestfs.pod:1874
35969 #, no-wrap
35970 msgid ""
35971 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35972 "\n"
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:1876
35977 msgid ""
35978 "Delete a callback that was previously registered.  C<event_handle> should be "
35979 "the integer that was returned by a previous call to "
35980 "C<guestfs_set_event_callback> on the same handle."
35981 msgstr ""
35982
35983 #. type: =head3
35984 #: ../src/guestfs.pod:1880
35985 msgid "guestfs_event_callback"
35986 msgstr ""
35987
35988 #. type: verbatim
35989 #: ../src/guestfs.pod:1882
35990 #, no-wrap
35991 msgid ""
35992 " typedef void (*guestfs_event_callback) (\n"
35993 "                  guestfs_h *g,\n"
35994 "                  void *opaque,\n"
35995 "                  uint64_t event,\n"
35996 "                  int event_handle,\n"
35997 "                  int flags,\n"
35998 "                  const char *buf, size_t buf_len,\n"
35999 "                  const uint64_t *array, size_t array_len);\n"
36000 "\n"
36001 msgstr ""
36002
36003 #. type: textblock
36004 #: ../src/guestfs.pod:1891
36005 msgid ""
36006 "This is the type of the event callback function that you have to provide."
36007 msgstr ""
36008
36009 #. type: textblock
36010 #: ../src/guestfs.pod:1894
36011 msgid ""
36012 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36013 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36014 "handle, and C<flags> which in the current API you should ignore."
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../src/guestfs.pod:1898
36019 msgid ""
36020 "The remaining parameters contain the event payload (if any).  Each event may "
36021 "contain a payload, which usually relates to the event class, but for future "
36022 "proofing your code should be written to handle any payload for any event "
36023 "class."
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:1903
36028 msgid ""
36029 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36030 "there is no message buffer).  Note that this message buffer can contain "
36031 "arbitrary 8 bit data, including NUL bytes."
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:1907
36036 msgid ""
36037 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36038 "moment this is only used for progress messages."
36039 msgstr ""
36040
36041 #. type: =head3
36042 #: ../src/guestfs.pod:1910
36043 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:1912
36048 msgid ""
36049 "One motivation for the generic event API was to allow GUI programs to "
36050 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36051 "unconditionally to C<stderr>."
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:1916
36056 msgid ""
36057 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36058 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36059 "messages are not events; you must capture error messages separately)."
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:1921
36064 msgid ""
36065 "Programs have to set up a callback to capture the classes of events of "
36066 "interest:"
36067 msgstr ""
36068
36069 #. type: verbatim
36070 #: ../src/guestfs.pod:1924
36071 #, no-wrap
36072 msgid ""
36073 " int eh =\n"
36074 "   guestfs_set_event_callback\n"
36075 "     (g, message_callback,\n"
36076 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36077 "      GUESTFS_EVENT_TRACE,\n"
36078 "      0, NULL) == -1)\n"
36079 " if (eh == -1) {\n"
36080 "   // handle error in the usual way\n"
36081 " }\n"
36082 "\n"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:1934
36087 msgid ""
36088 "The callback can then direct messages to the appropriate place.  In this "
36089 "example, messages are directed to syslog:"
36090 msgstr ""
36091
36092 #. type: verbatim
36093 #: ../src/guestfs.pod:1937
36094 #, no-wrap
36095 msgid ""
36096 " static void\n"
36097 " message_callback (\n"
36098 "         guestfs_h *g,\n"
36099 "         void *opaque,\n"
36100 "         uint64_t event,\n"
36101 "         int event_handle,\n"
36102 "         int flags,\n"
36103 "         const char *buf, size_t buf_len,\n"
36104 "         const uint64_t *array, size_t array_len)\n"
36105 " {\n"
36106 "   const int priority = LOG_USER|LOG_INFO;\n"
36107 "   if (buf_len > 0)\n"
36108 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36109 " }\n"
36110 "\n"
36111 msgstr ""
36112
36113 #. type: =head1
36114 #: ../src/guestfs.pod:1952
36115 msgid "CANCELLING LONG TRANSFERS"
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../src/guestfs.pod:1954
36120 msgid ""
36121 "Some operations can be cancelled by the caller while they are in progress.  "
36122 "Currently only operations that involve uploading or downloading data can be "
36123 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36124 "parameters in the generator)."
36125 msgstr ""
36126
36127 #. type: =head2
36128 #: ../src/guestfs.pod:1959
36129 msgid "guestfs_user_cancel"
36130 msgstr ""
36131
36132 #. type: verbatim
36133 #: ../src/guestfs.pod:1961
36134 #, no-wrap
36135 msgid ""
36136 " void guestfs_user_cancel (guestfs_h *g);\n"
36137 "\n"
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:1963
36142 msgid ""
36143 "C<guestfs_user_cancel> cancels the current upload or download operation."
36144 msgstr ""
36145
36146 #. type: textblock
36147 #: ../src/guestfs.pod:1966
36148 msgid ""
36149 "Unlike most other libguestfs calls, this function is signal safe and thread "
36150 "safe.  You can call it from a signal handler or from another thread, without "
36151 "needing to do any locking."
36152 msgstr ""
36153
36154 #. type: textblock
36155 #: ../src/guestfs.pod:1970
36156 msgid ""
36157 "The transfer that was in progress (if there is one) will stop shortly "
36158 "afterwards, and will return an error.  The errno (see L</"
36159 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36160 "out if the operation was cancelled or failed because of another error."
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:1976
36165 msgid ""
36166 "No cleanup is performed: for example, if a file was being uploaded then "
36167 "after cancellation there may be a partially uploaded file.  It is the "
36168 "caller's responsibility to clean up if necessary."
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../src/guestfs.pod:1980
36173 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs.pod:1982
36178 msgid ""
36179 "In an interactive text-based program, you might call it from a C<SIGINT> "
36180 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36181 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36182 "receive the C<^C> signal)."
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:1987
36187 msgid ""
36188 "In a graphical program, when the main thread is displaying a progress bar "
36189 "with a cancel button, wire up the cancel button to call this function."
36190 msgstr ""
36191
36192 #. type: =head1
36193 #: ../src/guestfs.pod:1991
36194 msgid "PRIVATE DATA AREA"
36195 msgstr ""
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:1993
36199 msgid ""
36200 "You can attach named pieces of private data to the libguestfs handle, fetch "
36201 "them by name, and walk over them, for the lifetime of the handle.  This is "
36202 "called the private data area and is only available from the C API."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:1998
36207 msgid "To attach a named piece of data, use the following call:"
36208 msgstr ""
36209
36210 #. type: verbatim
36211 #: ../src/guestfs.pod:2000
36212 #, no-wrap
36213 msgid ""
36214 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36215 "\n"
36216 msgstr ""
36217 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36218 "\n"
36219
36220 #. type: textblock
36221 #: ../src/guestfs.pod:2002
36222 msgid ""
36223 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36224 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36225 "overwritten."
36226 msgstr ""
36227
36228 #. type: textblock
36229 #: ../src/guestfs.pod:2006
36230 msgid ""
36231 "You can use any C<key> you want, but your key should I<not> start with an "
36232 "underscore character.  Keys beginning with an underscore character are "
36233 "reserved for internal libguestfs purposes (eg. for implementing language "
36234 "bindings).  It is recommended that you prefix the key with some unique "
36235 "string to avoid collisions with other users."
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:2012
36240 msgid "To retrieve the pointer, use:"
36241 msgstr ""
36242
36243 #. type: verbatim
36244 #: ../src/guestfs.pod:2014
36245 #, no-wrap
36246 msgid ""
36247 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36248 "\n"
36249 msgstr ""
36250 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36251 "\n"
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:2016
36255 msgid ""
36256 "This function returns C<NULL> if either no data is found associated with "
36257 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36258 "C<NULL>."
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:2020
36263 msgid ""
36264 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36265 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36266 "all.  In particular, libguestfs does I<not> try to free the data when the "
36267 "handle is closed.  If the data must be freed, then the caller must either "
36268 "free it before calling L</guestfs_close> or must set up a close callback to "
36269 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:2027
36274 msgid "To walk over all entries, use these two functions:"
36275 msgstr ""
36276
36277 #. type: verbatim
36278 #: ../src/guestfs.pod:2029
36279 #, no-wrap
36280 msgid ""
36281 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36282 "\n"
36283 msgstr ""
36284
36285 #. type: verbatim
36286 #: ../src/guestfs.pod:2031
36287 #, no-wrap
36288 msgid ""
36289 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36290 "\n"
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:2033
36295 msgid ""
36296 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36297 "not have any particular meaning -- keys are not returned in any defined "
36298 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36299 "corresponding data pointer is returned from the function.  C<NULL> is "
36300 "returned if there are no keys stored in the handle."
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:2039
36305 msgid ""
36306 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36307 "value of this function is also C<NULL> is there are no further entries to "
36308 "return."
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:2043
36313 msgid "Notes about walking over entries:"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:2049
36318 msgid ""
36319 "You must not call C<guestfs_set_private> while walking over the entries."
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../src/guestfs.pod:2054
36324 msgid ""
36325 "The handle maintains an internal iterator which is reset when you call "
36326 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36327 "call C<guestfs_set_private>."
36328 msgstr ""
36329
36330 #. type: textblock
36331 #: ../src/guestfs.pod:2060
36332 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36333 msgstr ""
36334
36335 #. type: verbatim
36336 #: ../src/guestfs.pod:2062
36337 #, no-wrap
36338 msgid ""
36339 " guestfs_set_private (g, key, NULL);\n"
36340 "\n"
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:2064
36345 msgid "then that C<key> is not returned when walking."
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:2068
36350 msgid ""
36351 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36352 "C<guestfs_next_private> or C<guestfs_set_private>."
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../src/guestfs.pod:2074
36357 msgid ""
36358 "The following example code shows how to print all keys and data pointers "
36359 "that are associated with the handle C<g>:"
36360 msgstr ""
36361
36362 #. type: verbatim
36363 #: ../src/guestfs.pod:2077
36364 #, no-wrap
36365 msgid ""
36366 " const char *key;\n"
36367 " void *data = guestfs_first_private (g, &key);\n"
36368 " while (data != NULL)\n"
36369 "   {\n"
36370 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36371 "     data = guestfs_next_private (g, &key);\n"
36372 "   }\n"
36373 "\n"
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:2085
36378 msgid ""
36379 "More commonly you are only interested in keys that begin with an application-"
36380 "specific prefix C<foo_>.  Modify the loop like so:"
36381 msgstr ""
36382
36383 #. type: verbatim
36384 #: ../src/guestfs.pod:2088
36385 #, no-wrap
36386 msgid ""
36387 " const char *key;\n"
36388 " void *data = guestfs_first_private (g, &key);\n"
36389 " while (data != NULL)\n"
36390 "   {\n"
36391 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36392 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36393 "     data = guestfs_next_private (g, &key);\n"
36394 "   }\n"
36395 "\n"
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:2097
36400 msgid ""
36401 "If you need to modify keys while walking, then you have to jump back to the "
36402 "beginning of the loop.  For example, to delete all keys prefixed with "
36403 "C<foo_>:"
36404 msgstr ""
36405
36406 #. type: verbatim
36407 #: ../src/guestfs.pod:2101
36408 #, no-wrap
36409 msgid ""
36410 "  const char *key;\n"
36411 "  void *data;\n"
36412 " again:\n"
36413 "  data = guestfs_first_private (g, &key);\n"
36414 "  while (data != NULL)\n"
36415 "    {\n"
36416 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36417 "        {\n"
36418 "          guestfs_set_private (g, key, NULL);\n"
36419 "          /* note that 'key' pointer is now invalid, and so is\n"
36420 "             the internal iterator */\n"
36421 "          goto again;\n"
36422 "        }\n"
36423 "      data = guestfs_next_private (g, &key);\n"
36424 "    }\n"
36425 "\n"
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:2117
36430 msgid ""
36431 "Note that the above loop is guaranteed to terminate because the keys are "
36432 "being deleted, but other manipulations of keys within the loop might not "
36433 "terminate unless you also maintain an indication of which keys have been "
36434 "visited."
36435 msgstr ""
36436
36437 #. type: =end
36438 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
36439 msgid "html"
36440 msgstr "html"
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:2124
36444 msgid ""
36445 "<!-- old anchor for the next section --> <a name="
36446 "\"state_machine_and_low_level_event_api\"/>"
36447 msgstr ""
36448 "<!-- old anchor for the next section --> <a name="
36449 "\"state_machine_and_low_level_event_api\"/>"
36450
36451 #. type: =head1
36452 #: ../src/guestfs.pod:2129
36453 msgid "ARCHITECTURE"
36454 msgstr "АРХІТЕКТУРА"
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:2131
36458 msgid ""
36459 "Internally, libguestfs is implemented by running an appliance (a special "
36460 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36461 "process of the main program."
36462 msgstr ""
36463
36464 #. type: verbatim
36465 #: ../src/guestfs.pod:2135
36466 #, no-wrap
36467 msgid ""
36468 "  ___________________\n"
36469 " /                   \\\n"
36470 " | main program      |\n"
36471 " |                   |\n"
36472 " |                   |           child process / appliance\n"
36473 " |                   |           __________________________\n"
36474 " |                   |          / qemu                     \\\n"
36475 " +-------------------+   RPC    |      +-----------------+ |\n"
36476 " | libguestfs     <--------------------> guestfsd        | |\n"
36477 " |                   |          |      +-----------------+ |\n"
36478 " \\___________________/          |      | Linux kernel    | |\n"
36479 "                                |      +--^--------------+ |\n"
36480 "                                \\_________|________________/\n"
36481 "                                          |\n"
36482 "                                   _______v______\n"
36483 "                                  /              \\\n"
36484 "                                  | Device or    |\n"
36485 "                                  | disk image   |\n"
36486 "                                  \\______________/\n"
36487 "\n"
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:2155
36492 msgid ""
36493 "The library, linked to the main program, creates the child process and hence "
36494 "the appliance in the L</guestfs_launch> function."
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:2158
36499 msgid ""
36500 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36501 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36502 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36503 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36504 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36505 "attached to the qemu process which translates device access by the "
36506 "appliance's Linux kernel into accesses to the image."
36507 msgstr ""
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:2167
36511 msgid ""
36512 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36513 "Although the disk image you are attached to might also be used by some "
36514 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36515 "care if both libguestfs's qemu process and your virtual machine are trying "
36516 "to update the disk image at the same time, since these usually results in "
36517 "massive disk corruption)."
36518 msgstr ""
36519
36520 #. type: =head1
36521 #: ../src/guestfs.pod:2174
36522 msgid "STATE MACHINE"
36523 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:2176
36527 msgid "libguestfs uses a state machine to model the child process:"
36528 msgstr ""
36529
36530 #. type: verbatim
36531 #: ../src/guestfs.pod:2178
36532 #, no-wrap
36533 msgid ""
36534 "                         |\n"
36535 "                    guestfs_create\n"
36536 "                         |\n"
36537 "                         |\n"
36538 "                     ____V_____\n"
36539 "                    /          \\\n"
36540 "                    |  CONFIG  |\n"
36541 "                    \\__________/\n"
36542 "                     ^ ^   ^  \\\n"
36543 "                    /  |    \\  \\ guestfs_launch\n"
36544 "                   /   |    _\\__V______\n"
36545 "                  /    |   /           \\\n"
36546 "                 /     |   | LAUNCHING |\n"
36547 "                /      |   \\___________/\n"
36548 "               /       |       /\n"
36549 "              /        |  guestfs_launch\n"
36550 "             /         |     /\n"
36551 "    ______  /        __|____V\n"
36552 "   /      \\ ------> /        \\\n"
36553 "   | BUSY |         | READY  |\n"
36554 "   \\______/ <------ \\________/\n"
36555 "\n"
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:2200
36560 msgid ""
36561 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36562 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36563 "(3) alternating between READY and BUSY as commands are issued to, and "
36564 "carried out by, the child process."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:2205
36569 msgid ""
36570 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36571 "asynchronously at any time (eg. due to some internal error), and that causes "
36572 "the state to transition back to CONFIG."
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:2209
36577 msgid ""
36578 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36579 "issued when in the CONFIG state."
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../src/guestfs.pod:2212
36584 msgid ""
36585 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36586 "L</guestfs_launch> blocks until the child process is READY to accept "
36587 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36588 "moves the state from CONFIG to LAUNCHING while it is running."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:2218
36593 msgid ""
36594 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36595 "state.  These API calls block waiting for the command to be carried out (ie. "
36596 "the state to transition to BUSY and then back to READY).  There are no non-"
36597 "blocking versions, and no way to issue more than one command per handle at "
36598 "the same time."
36599 msgstr ""
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:2224
36603 msgid ""
36604 "Finally, the child process sends asynchronous messages back to the main "
36605 "program, such as kernel log messages.  You can register a callback to "
36606 "receive these messages."
36607 msgstr ""
36608
36609 #. type: =head1
36610 #: ../src/guestfs.pod:2228
36611 msgid "INTERNALS"
36612 msgstr ""
36613
36614 #. type: =head2
36615 #: ../src/guestfs.pod:2230
36616 msgid "COMMUNICATION PROTOCOL"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:2232
36621 msgid ""
36622 "Don't rely on using this protocol directly.  This section documents how it "
36623 "currently works, but it may change at any time."
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../src/guestfs.pod:2235
36628 msgid ""
36629 "The protocol used to talk between the library and the daemon running inside "
36630 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36631 "1014, RFC 1832, RFC 4506)."
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:2239
36636 msgid ""
36637 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36638 "this file is automatically generated)."
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:2242
36643 msgid ""
36644 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36645 "and C<FileOut> parameters, which are handled with very simple request/reply "
36646 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36647 "parameters, which use the same request and reply messages, but they may also "
36648 "be followed by files sent using a chunked encoding."
36649 msgstr ""
36650
36651 #. type: =head3
36652 #: ../src/guestfs.pod:2249
36653 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../src/guestfs.pod:2251
36658 msgid "For ordinary functions, the request message is:"
36659 msgstr ""
36660
36661 #. type: verbatim
36662 #: ../src/guestfs.pod:2253
36663 #, no-wrap
36664 msgid ""
36665 " total length (header + arguments,\n"
36666 "      but not including the length word itself)\n"
36667 " struct guestfs_message_header (encoded as XDR)\n"
36668 " struct guestfs_<foo>_args (encoded as XDR)\n"
36669 "\n"
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:2258
36674 msgid ""
36675 "The total length field allows the daemon to allocate a fixed size buffer "
36676 "into which it slurps the rest of the message.  As a result, the total length "
36677 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36678 "effective size of any request is limited to somewhere under this size."
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:2264
36683 msgid ""
36684 "Note also that many functions don't take any arguments, in which case the "
36685 "C<guestfs_I<foo>_args> is completely omitted."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:2267
36690 msgid ""
36691 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36692 "receiver knows what type of args structure to expect, or none at all."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:2271
36697 msgid ""
36698 "For functions that take optional arguments, the optional arguments are "
36699 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36700 "arguments.  A bitmask in the header indicates which optional arguments are "
36701 "meaningful.  The bitmask is also checked to see if it contains bits set "
36702 "which the daemon does not know about (eg. if more optional arguments were "
36703 "added in a later version of the library), and this causes the call to be "
36704 "rejected."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:2279
36709 msgid "The reply message for ordinary functions is:"
36710 msgstr ""
36711
36712 #. type: verbatim
36713 #: ../src/guestfs.pod:2281
36714 #, no-wrap
36715 msgid ""
36716 " total length (header + ret,\n"
36717 "      but not including the length word itself)\n"
36718 " struct guestfs_message_header (encoded as XDR)\n"
36719 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36720 "\n"
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:2286
36725 msgid ""
36726 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36727 "functions that return no formal return values."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:2289
36732 msgid ""
36733 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:2292
36738 msgid ""
36739 "In the case of an error, a flag is set in the header, and the reply message "
36740 "is slightly changed:"
36741 msgstr ""
36742
36743 #. type: verbatim
36744 #: ../src/guestfs.pod:2295
36745 #, no-wrap
36746 msgid ""
36747 " total length (header + error,\n"
36748 "      but not including the length word itself)\n"
36749 " struct guestfs_message_header (encoded as XDR)\n"
36750 " struct guestfs_message_error (encoded as XDR)\n"
36751 "\n"
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:2300
36756 msgid ""
36757 "The C<guestfs_message_error> structure contains the error message as a "
36758 "string."
36759 msgstr ""
36760
36761 #. type: =head3
36762 #: ../src/guestfs.pod:2303
36763 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:2305
36768 msgid ""
36769 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36770 "The normal request message is sent (see above).  However this is followed by "
36771 "a sequence of file chunks."
36772 msgstr ""
36773
36774 #. type: verbatim
36775 #: ../src/guestfs.pod:2309
36776 #, no-wrap
36777 msgid ""
36778 " total length (header + arguments,\n"
36779 "      but not including the length word itself,\n"
36780 "      and not including the chunks)\n"
36781 " struct guestfs_message_header (encoded as XDR)\n"
36782 " struct guestfs_<foo>_args (encoded as XDR)\n"
36783 " sequence of chunks for FileIn param #0\n"
36784 " sequence of chunks for FileIn param #1 etc.\n"
36785 "\n"
36786 msgstr ""
36787
36788 #. type: textblock
36789 #: ../src/guestfs.pod:2317
36790 msgid "The \"sequence of chunks\" is:"
36791 msgstr ""
36792
36793 #. type: verbatim
36794 #: ../src/guestfs.pod:2319
36795 #, no-wrap
36796 msgid ""
36797 " length of chunk (not including length word itself)\n"
36798 " struct guestfs_chunk (encoded as XDR)\n"
36799 " length of chunk\n"
36800 " struct guestfs_chunk (encoded as XDR)\n"
36801 "   ...\n"
36802 " length of chunk\n"
36803 " struct guestfs_chunk (with data.data_len == 0)\n"
36804 "\n"
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:2327
36809 msgid ""
36810 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36811 "is set in the final chunk to indicate either successful completion or early "
36812 "cancellation."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:2331
36817 msgid ""
36818 "At time of writing there are no functions that have more than one FileIn "
36819 "parameter.  However this is (theoretically) supported, by sending the "
36820 "sequence of chunks for each FileIn parameter one after another (from left to "
36821 "right)."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:2336
36826 msgid ""
36827 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36828 "transfer.  The library does this by sending a chunk with a special flag set "
36829 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36830 "RPC, does I<not> send any reply, and goes back to reading the next request."
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:2342
36835 msgid ""
36836 "The daemon may also cancel.  It does this by writing a special word "
36837 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36838 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36839 "cancel chunk).  The special word is chosen so that even if cancellation "
36840 "happens right at the end of the transfer (after the library has finished "
36841 "writing and has started listening for the reply), the \"spurious\" cancel "
36842 "flag will not be confused with the reply message."
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:2351
36847 msgid ""
36848 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36849 "limit), and also files where the size is not known in advance (eg. from "
36850 "pipes or sockets).  However the chunks are rather small "
36851 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36852 "to keep much in memory."
36853 msgstr ""
36854
36855 #. type: =head3
36856 #: ../src/guestfs.pod:2357
36857 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36858 msgstr ""
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:2359
36862 msgid ""
36863 "The protocol for FileOut parameters is exactly the same as for FileIn "
36864 "parameters, but with the roles of daemon and library reversed."
36865 msgstr ""
36866
36867 #. type: verbatim
36868 #: ../src/guestfs.pod:2362
36869 #, no-wrap
36870 msgid ""
36871 " total length (header + ret,\n"
36872 "      but not including the length word itself,\n"
36873 "      and not including the chunks)\n"
36874 " struct guestfs_message_header (encoded as XDR)\n"
36875 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36876 " sequence of chunks for FileOut param #0\n"
36877 " sequence of chunks for FileOut param #1 etc.\n"
36878 "\n"
36879 msgstr ""
36880
36881 #. type: =head3
36882 #: ../src/guestfs.pod:2370
36883 msgid "INITIAL MESSAGE"
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:2372
36888 msgid ""
36889 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36890 "which indicates that the guest and daemon is alive.  This is what L</"
36891 "guestfs_launch> waits for."
36892 msgstr ""
36893
36894 #. type: =head3
36895 #: ../src/guestfs.pod:2376
36896 msgid "PROGRESS NOTIFICATION MESSAGES"
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:2378
36901 msgid ""
36902 "The daemon may send progress notification messages at any time.  These are "
36903 "distinguished by the normal length word being replaced by "
36904 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:2382
36909 msgid ""
36910 "The library turns them into progress callbacks (see L</"
36911 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36912 "if not."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:2386
36917 msgid ""
36918 "The daemon self-limits the frequency of progress messages it sends (see "
36919 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36920 "messages."
36921 msgstr ""
36922
36923 #. type: =head1
36924 #: ../src/guestfs.pod:2390
36925 msgid "LIBGUESTFS VERSION NUMBERS"
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:2392
36930 msgid ""
36931 "Since April 2010, libguestfs has started to make separate development and "
36932 "stable releases, along with corresponding branches in our git repository.  "
36933 "These separate releases can be identified by version number:"
36934 msgstr ""
36935
36936 #. type: verbatim
36937 #: ../src/guestfs.pod:2397
36938 #, no-wrap
36939 msgid ""
36940 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36941 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36942 "       |\n"
36943 "       v\n"
36944 " 1  .  3  .  5\n"
36945 " ^           ^\n"
36946 " |           |\n"
36947 " |           `-------- sub-version\n"
36948 " |\n"
36949 " `------ always '1' because we don't change the ABI\n"
36950 "\n"
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:2408
36955 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:2410
36960 msgid ""
36961 "As time passes we cherry pick fixes from the development branch and backport "
36962 "those into the stable branch, the effect being that the stable branch should "
36963 "get more stable and less buggy over time.  So the stable releases are ideal "
36964 "for people who don't need new features but would just like the software to "
36965 "work."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:2416
36970 msgid "Our criteria for backporting changes are:"
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:2422
36975 msgid ""
36976 "Documentation changes which don't affect any code are backported unless the "
36977 "documentation refers to a future feature which is not in stable."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:2428
36982 msgid ""
36983 "Bug fixes which are not controversial, fix obvious problems, and have been "
36984 "well tested are backported."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../src/guestfs.pod:2433
36989 msgid ""
36990 "Simple rearrangements of code which shouldn't affect how it works get "
36991 "backported.  This is so that the code in the two branches doesn't get too "
36992 "far out of step, allowing us to backport future fixes more easily."
36993 msgstr ""
36994
36995 #. type: textblock
36996 #: ../src/guestfs.pod:2439
36997 msgid ""
36998 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36999 "exceptional case: the new feature is required in order to implement an "
37000 "important bug fix."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:2445
37005 msgid ""
37006 "A new stable branch starts when we think the new features in development are "
37007 "substantial and compelling enough over the current stable branch to warrant "
37008 "it.  When that happens we create new stable and development versions 1.N.0 "
37009 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37010 "stable at this point, but by backporting fixes from development, that branch "
37011 "will stabilize over time."
37012 msgstr ""
37013
37014 #. type: =head1
37015 #: ../src/guestfs.pod:2453
37016 msgid "EXTENDING LIBGUESTFS"
37017 msgstr ""
37018
37019 #. type: =head2
37020 #: ../src/guestfs.pod:2455
37021 msgid "ADDING A NEW API ACTION"
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:2457
37026 msgid ""
37027 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37028 "documentation) are generated, and this makes it easy to extend the "
37029 "libguestfs API."
37030 msgstr ""
37031
37032 #. type: textblock
37033 #: ../src/guestfs.pod:2461
37034 msgid "To add a new API action there are two changes:"
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:2467
37039 msgid ""
37040 "You need to add a description of the call (name, parameters, return type, "
37041 "tests, documentation) to C<generator/generator_actions.ml>."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2470
37046 msgid ""
37047 "There are two sorts of API action, depending on whether the call goes "
37048 "through to the daemon in the appliance, or is serviced entirely by the "
37049 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37050 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37051 "an example of the latter, since a trace flag is maintained in the handle and "
37052 "all tracing is done on the library side."
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../src/guestfs.pod:2478
37057 msgid ""
37058 "Most new actions are of the first type, and get added to the "
37059 "C<daemon_functions> list.  Each function has a unique procedure number used "
37060 "in the RPC protocol which is assigned to that action when we publish "
37061 "libguestfs and cannot be reused.  Take the latest procedure number and "
37062 "increment it."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../src/guestfs.pod:2484
37067 msgid ""
37068 "For library-only actions of the second type, add to the "
37069 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37070 "library and do not travel over the RPC mechanism to the daemon, these "
37071 "functions do not need a procedure number, and so the procedure number is set "
37072 "to C<-1>."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:2492
37077 msgid "Implement the action (in C):"
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:2494
37082 msgid ""
37083 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37084 "C<daemon/> directory."
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2497
37089 msgid ""
37090 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37091 "(note: double underscore) in the C<src/> directory."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:2500
37096 msgid "In either case, use another function as an example of what to do."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:2504
37101 msgid "After making these changes, use C<make> to compile."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:2506
37106 msgid ""
37107 "Note that you don't need to implement the RPC, language bindings, manual "
37108 "pages or anything else.  It's all automatically generated from the OCaml "
37109 "description."
37110 msgstr ""
37111
37112 #. type: =head2
37113 #: ../src/guestfs.pod:2510
37114 msgid "ADDING TESTS FOR AN API ACTION"
37115 msgstr ""
37116
37117 #. type: textblock
37118 #: ../src/guestfs.pod:2512
37119 msgid ""
37120 "You can supply zero or as many tests as you want per API call.  The tests "
37121 "can either be added as part of the API description (C<generator/"
37122 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37123 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37124 "slower, so if possible use the first method."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:2518
37129 msgid ""
37130 "The following describes the test environment used when you add an API test "
37131 "in C<generator_actions.ml>."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:2521
37136 msgid "The test environment has 4 block devices:"
37137 msgstr ""
37138
37139 #. type: =item
37140 #: ../src/guestfs.pod:2525
37141 msgid "C</dev/sda> 500MB"
37142 msgstr "C</dev/sda> 500 МБ"
37143
37144 #. type: textblock
37145 #: ../src/guestfs.pod:2527
37146 msgid "General block device for testing."
37147 msgstr ""
37148
37149 #. type: =item
37150 #: ../src/guestfs.pod:2529
37151 msgid "C</dev/sdb> 50MB"
37152 msgstr "C</dev/sdb> 50 МБ"
37153
37154 #. type: textblock
37155 #: ../src/guestfs.pod:2531
37156 msgid ""
37157 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37158 "operations."
37159 msgstr ""
37160
37161 #. type: =item
37162 #: ../src/guestfs.pod:2534
37163 msgid "C</dev/sdc> 10MB"
37164 msgstr "C</dev/sdc> 10 МБ"
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:2536
37168 msgid "Used in a few tests where two block devices are needed."
37169 msgstr ""
37170
37171 #. type: =item
37172 #: ../src/guestfs.pod:2538
37173 msgid "C</dev/sdd>"
37174 msgstr "C</dev/sdd>"
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:2540
37178 msgid "ISO with fixed content (see C<images/test.iso>)."
37179 msgstr ""
37180
37181 #. type: textblock
37182 #: ../src/guestfs.pod:2544
37183 msgid ""
37184 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37185 "appliance and block devices are reused between tests.  So don't try testing "
37186 "L</guestfs_kill_subprocess> :-x"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:2548
37191 msgid ""
37192 "Each test starts with an initial scenario, selected using one of the "
37193 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37194 "initialize the disks mentioned above in a particular way as documented in "
37195 "C<generator_types.ml>.  You should not assume anything about the previous "
37196 "contents of other disks that are not initialized."
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../src/guestfs.pod:2554
37201 msgid ""
37202 "You can add a prerequisite clause to any individual test.  This is a run-"
37203 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37204 "testing a command which might not work on all variations of libguestfs "
37205 "builds.  A test that has prerequisite of C<Always> means to run "
37206 "unconditionally."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:2560
37211 msgid ""
37212 "In addition, packagers can skip individual tests by setting environment "
37213 "variables before running C<make check>."
37214 msgstr ""
37215
37216 #. type: verbatim
37217 #: ../src/guestfs.pod:2563
37218 #, no-wrap
37219 msgid ""
37220 " SKIP_TEST_<CMD>_<NUM>=1\n"
37221 "\n"
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:2565
37226 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../src/guestfs.pod:2567
37231 msgid "or:"
37232 msgstr "або:"
37233
37234 #. type: verbatim
37235 #: ../src/guestfs.pod:2569
37236 #, no-wrap
37237 msgid ""
37238 " SKIP_TEST_<CMD>=1\n"
37239 "\n"
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../src/guestfs.pod:2571
37244 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:2573
37249 msgid "Packagers can run only certain tests by setting for example:"
37250 msgstr ""
37251
37252 #. type: verbatim
37253 #: ../src/guestfs.pod:2575
37254 #, no-wrap
37255 msgid ""
37256 " TEST_ONLY=\"vfs_type zerofree\"\n"
37257 "\n"
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:2577
37262 msgid ""
37263 "See C<capitests/tests.c> for more details of how these environment variables "
37264 "work."
37265 msgstr ""
37266
37267 #. type: =head2
37268 #: ../src/guestfs.pod:2580
37269 msgid "DEBUGGING NEW API ACTIONS"
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:2582
37274 msgid "Test new actions work before submitting them."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:2584
37279 msgid "You can use guestfish to try out new commands."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:2586
37284 msgid ""
37285 "Debugging the daemon is a problem because it runs inside a minimal "
37286 "environment.  However you can fprintf messages in the daemon to stderr, and "
37287 "they will show up if you use C<guestfish -v>."
37288 msgstr ""
37289
37290 #. type: =head2
37291 #: ../src/guestfs.pod:2590
37292 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37293 msgstr ""
37294
37295 #. type: textblock
37296 #: ../src/guestfs.pod:2592
37297 msgid ""
37298 "Our C source code generally adheres to some basic code-formatting "
37299 "conventions.  The existing code base is not totally consistent on this "
37300 "front, but we do prefer that contributed code be formatted similarly.  In "
37301 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37302 "indentation level, and other than that, follow the K&R style."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:2598
37307 msgid ""
37308 "If you use Emacs, add the following to one of one of your start-up files (e."
37309 "g., ~/.emacs), to help ensure that you get indentation right:"
37310 msgstr ""
37311
37312 #. type: verbatim
37313 #: ../src/guestfs.pod:2601
37314 #, no-wrap
37315 msgid ""
37316 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37317 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37318 " (add-hook 'find-file-hook\n"
37319 "     '(lambda () (if (and buffer-file-name\n"
37320 "                          (string-match \"/libguestfs\\\\>\"\n"
37321 "                              (buffer-file-name))\n"
37322 "                          (not (string-equal mode-name \"Change Log\"))\n"
37323 "                          (not (string-equal mode-name \"Makefile\")))\n"
37324 "                     (setq indent-tabs-mode nil))))\n"
37325 " \n"
37326 msgstr ""
37327
37328 #. type: verbatim
37329 #: ../src/guestfs.pod:2611
37330 #, no-wrap
37331 msgid ""
37332 " ;;; When editing C sources in libguestfs, use this style.\n"
37333 " (defun libguestfs-c-mode ()\n"
37334 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37335 "   (interactive)\n"
37336 "   (c-set-style \"K&R\")\n"
37337 "   (setq c-indent-level 2)\n"
37338 "   (setq c-basic-offset 2))\n"
37339 " (add-hook 'c-mode-hook\n"
37340 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37341 "                               (buffer-file-name))\n"
37342 "                           (libguestfs-c-mode))))\n"
37343 "\n"
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:2623
37348 msgid "Enable warnings when compiling (and fix any problems this finds):"
37349 msgstr ""
37350
37351 #. type: verbatim
37352 #: ../src/guestfs.pod:2626
37353 #, no-wrap
37354 msgid ""
37355 " ./configure --enable-gcc-warnings\n"
37356 "\n"
37357 msgstr ""
37358 " ./configure --enable-gcc-warnings\n"
37359 "\n"
37360
37361 #. type: textblock
37362 #: ../src/guestfs.pod:2628
37363 msgid "Useful targets are:"
37364 msgstr ""
37365
37366 #. type: verbatim
37367 #: ../src/guestfs.pod:2630
37368 #, no-wrap
37369 msgid ""
37370 " make syntax-check  # checks the syntax of the C code\n"
37371 " make check         # runs the test suite\n"
37372 "\n"
37373 msgstr ""
37374
37375 #. type: =head2
37376 #: ../src/guestfs.pod:2633
37377 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37378 msgstr ""
37379
37380 #. type: textblock
37381 #: ../src/guestfs.pod:2635
37382 msgid ""
37383 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37384 "which are used to do shell quoting."
37385 msgstr ""
37386
37387 #. type: =item
37388 #: ../src/guestfs.pod:2640
37389 msgid "%Q"
37390 msgstr "%Q"
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:2642
37394 msgid ""
37395 "Simple shell quoted string.  Any spaces or other shell characters are "
37396 "escaped for you."
37397 msgstr ""
37398
37399 #. type: =item
37400 #: ../src/guestfs.pod:2645
37401 msgid "%R"
37402 msgstr "%R"
37403
37404 #. type: textblock
37405 #: ../src/guestfs.pod:2647
37406 msgid ""
37407 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37408 "the sysroot."
37409 msgstr ""
37410
37411 #. type: verbatim
37412 #: ../src/guestfs.pod:2654
37413 #, no-wrap
37414 msgid ""
37415 " asprintf (&cmd, \"cat %R\", path);\n"
37416 "\n"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:2656
37421 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37422 msgstr ""
37423
37424 #. type: textblock
37425 #: ../src/guestfs.pod:2658
37426 msgid ""
37427 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37428 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37429 "they are not passed via the shell (instead, straight to exec).  You probably "
37430 "want to use the C<sysroot_path()> function however."
37431 msgstr ""
37432
37433 #. type: =head2
37434 #: ../src/guestfs.pod:2664
37435 msgid "SUBMITTING YOUR NEW API ACTIONS"
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:2666
37440 msgid ""
37441 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37442 "libguestfs> and CC to L<rjones@redhat.com>."
37443 msgstr ""
37444
37445 #. type: =head2
37446 #: ../src/guestfs.pod:2670
37447 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2672
37452 msgid "We support i18n (gettext anyhow) in the library."
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:2674
37457 msgid ""
37458 "However many messages come from the daemon, and we don't translate those at "
37459 "the moment.  One reason is that the appliance generally has all locale files "
37460 "removed from it, because they take up a lot of space.  So we'd have to readd "
37461 "some of those, as well as copying our PO files into the appliance."
37462 msgstr ""
37463
37464 #. type: textblock
37465 #: ../src/guestfs.pod:2680
37466 msgid ""
37467 "Debugging messages are never translated, since they are intended for the "
37468 "programmers."
37469 msgstr ""
37470
37471 #. type: =head2
37472 #: ../src/guestfs.pod:2683
37473 msgid "SOURCE CODE SUBDIRECTORIES"
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../src/guestfs.pod:2689
37478 msgid "The libguestfs appliance, build scripts and so on."
37479 msgstr ""
37480
37481 #. type: =item
37482 #: ../src/guestfs.pod:2691
37483 msgid "C<capitests>"
37484 msgstr "C<capitests>"
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:2693
37488 msgid "Automated tests of the C API."
37489 msgstr ""
37490
37491 #. type: =item
37492 #: ../src/guestfs.pod:2695
37493 msgid "C<cat>"
37494 msgstr "C<cat>"
37495
37496 #. type: textblock
37497 #: ../src/guestfs.pod:2697
37498 msgid ""
37499 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37500 "documentation."
37501 msgstr ""
37502
37503 #. type: =item
37504 #: ../src/guestfs.pod:2700
37505 msgid "C<caution>"
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../src/guestfs.pod:2702
37510 msgid ""
37511 "Safety and liveness tests of components that libguestfs depends upon (not of "
37512 "libguestfs itself).  Mainly this is for qemu and the kernel."
37513 msgstr ""
37514
37515 #. type: =item
37516 #: ../src/guestfs.pod:2705
37517 msgid "C<contrib>"
37518 msgstr "C<contrib>"
37519
37520 #. type: textblock
37521 #: ../src/guestfs.pod:2707
37522 msgid "Outside contributions, experimental parts."
37523 msgstr ""
37524
37525 #. type: =item
37526 #: ../src/guestfs.pod:2709
37527 msgid "C<daemon>"
37528 msgstr "C<daemon>"
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:2711
37532 msgid ""
37533 "The daemon that runs inside the libguestfs appliance and carries out actions."
37534 msgstr ""
37535
37536 #. type: =item
37537 #: ../src/guestfs.pod:2714
37538 msgid "C<df>"
37539 msgstr "C<df>"
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:2716
37543 msgid "L<virt-df(1)> command and documentation."
37544 msgstr ""
37545
37546 #. type: =item
37547 #: ../src/guestfs.pod:2718
37548 msgid "C<edit>"
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:2720
37553 msgid "L<virt-edit(1)> command and documentation."
37554 msgstr ""
37555
37556 #. type: =item
37557 #: ../src/guestfs.pod:2722
37558 msgid "C<examples>"
37559 msgstr "C<examples>"
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:2724
37563 msgid "C API example code."
37564 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37565
37566 #. type: =item
37567 #: ../src/guestfs.pod:2726
37568 msgid "C<fish>"
37569 msgstr "C<fish>"
37570
37571 #. type: textblock
37572 #: ../src/guestfs.pod:2728
37573 msgid ""
37574 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37575 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37576 "L<virt-tar-out(1)>."
37577 msgstr ""
37578
37579 #. type: =item
37580 #: ../src/guestfs.pod:2732
37581 msgid "C<fuse>"
37582 msgstr "C<fuse>"
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:2734
37586 msgid ""
37587 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37588 msgstr ""
37589
37590 #. type: =item
37591 #: ../src/guestfs.pod:2736
37592 msgid "C<generator>"
37593 msgstr "C<generator>"
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2738
37597 msgid ""
37598 "The crucially important generator, used to automatically generate large "
37599 "amounts of boilerplate C code for things like RPC and bindings."
37600 msgstr ""
37601
37602 #. type: =item
37603 #: ../src/guestfs.pod:2741
37604 msgid "C<images>"
37605 msgstr "C<images>"
37606
37607 #. type: textblock
37608 #: ../src/guestfs.pod:2743
37609 msgid "Files used by the test suite."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:2745
37614 msgid "Some \"phony\" guest images which we test against."
37615 msgstr ""
37616
37617 #. type: =item
37618 #: ../src/guestfs.pod:2747
37619 msgid "C<inspector>"
37620 msgstr "C<inspector>"
37621
37622 #. type: textblock
37623 #: ../src/guestfs.pod:2749
37624 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37625 msgstr ""
37626
37627 #. type: =item
37628 #: ../src/guestfs.pod:2751
37629 msgid "C<logo>"
37630 msgstr "C<logo>"
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:2753
37634 msgid "Logo used on the website.  The fish is called Arthur by the way."
37635 msgstr ""
37636
37637 #. type: =item
37638 #: ../src/guestfs.pod:2755
37639 msgid "C<m4>"
37640 msgstr "C<m4>"
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:2757
37644 msgid "M4 macros used by autoconf."
37645 msgstr ""
37646
37647 #. type: =item
37648 #: ../src/guestfs.pod:2759
37649 msgid "C<po>"
37650 msgstr "C<po>"
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:2761
37654 msgid "Translations of simple gettext strings."
37655 msgstr "Переклади простих рядків gettext."
37656
37657 #. type: =item
37658 #: ../src/guestfs.pod:2763
37659 msgid "C<po-docs>"
37660 msgstr "C<po-docs>"
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:2765
37664 msgid ""
37665 "The build infrastructure and PO files for translations of manpages and POD "
37666 "files.  Eventually this will be combined with the C<po> directory, but that "
37667 "is rather complicated."
37668 msgstr ""
37669
37670 #. type: =item
37671 #: ../src/guestfs.pod:2769
37672 msgid "C<regressions>"
37673 msgstr "C<regressions>"
37674
37675 #. type: textblock
37676 #: ../src/guestfs.pod:2771
37677 msgid "Regression tests."
37678 msgstr "Тести на регресії."
37679
37680 #. type: =item
37681 #: ../src/guestfs.pod:2773
37682 msgid "C<rescue>"
37683 msgstr "C<rescue>"
37684
37685 #. type: textblock
37686 #: ../src/guestfs.pod:2775
37687 msgid "L<virt-rescue(1)> command and documentation."
37688 msgstr ""
37689
37690 #. type: =item
37691 #: ../src/guestfs.pod:2777
37692 msgid "C<src>"
37693 msgstr "C<src>"
37694
37695 #. type: textblock
37696 #: ../src/guestfs.pod:2779
37697 msgid "Source code to the C library."
37698 msgstr ""
37699
37700 #. type: =item
37701 #: ../src/guestfs.pod:2781
37702 msgid "C<tools>"
37703 msgstr "C<tools>"
37704
37705 #. type: textblock
37706 #: ../src/guestfs.pod:2783
37707 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37708 msgstr ""
37709
37710 #. type: =item
37711 #: ../src/guestfs.pod:2785
37712 msgid "C<test-tool>"
37713 msgstr "C<test-tool>"
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:2787
37717 msgid ""
37718 "Test tool for end users to test if their qemu/kernel combination will work "
37719 "with libguestfs."
37720 msgstr ""
37721
37722 #. type: =item
37723 #: ../src/guestfs.pod:2790
37724 msgid "C<csharp>"
37725 msgstr "C<csharp>"
37726
37727 #. type: =item
37728 #: ../src/guestfs.pod:2792
37729 msgid "C<haskell>"
37730 msgstr "C<haskell>"
37731
37732 #. type: =item
37733 #: ../src/guestfs.pod:2794
37734 msgid "C<java>"
37735 msgstr "C<java>"
37736
37737 #. type: =item
37738 #: ../src/guestfs.pod:2796
37739 msgid "C<ocaml>"
37740 msgstr "C<ocaml>"
37741
37742 #. type: =item
37743 #: ../src/guestfs.pod:2798
37744 msgid "C<php>"
37745 msgstr "C<php>"
37746
37747 #. type: =item
37748 #: ../src/guestfs.pod:2800
37749 msgid "C<perl>"
37750 msgstr "C<perl>"
37751
37752 #. type: =item
37753 #: ../src/guestfs.pod:2802
37754 msgid "C<python>"
37755 msgstr "C<python>"
37756
37757 #. type: =item
37758 #: ../src/guestfs.pod:2804
37759 msgid "C<ruby>"
37760 msgstr "C<ruby>"
37761
37762 #. type: textblock
37763 #: ../src/guestfs.pod:2806
37764 msgid "Language bindings."
37765 msgstr "Прив’язки до мов програмування."
37766
37767 #. type: =head2
37768 #: ../src/guestfs.pod:2810
37769 msgid "MAKING A STABLE RELEASE"
37770 msgstr ""
37771
37772 #. type: textblock
37773 #: ../src/guestfs.pod:2812
37774 msgid ""
37775 "When we make a stable release, there are several steps documented here.  See "
37776 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37777 "branch policy."
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../src/guestfs.pod:2820
37782 msgid ""
37783 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37784 msgstr ""
37785
37786 #. type: textblock
37787 #: ../src/guestfs.pod:2825
37788 msgid "Finalize RELEASE-NOTES."
37789 msgstr ""
37790
37791 #. type: textblock
37792 #: ../src/guestfs.pod:2829
37793 msgid "Update ROADMAP."
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2833
37798 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:2837
37803 msgid "Push and pull from Transifex."
37804 msgstr ""
37805
37806 #. type: textblock
37807 #: ../src/guestfs.pod:2839
37808 msgid "Run:"
37809 msgstr ""
37810
37811 #. type: verbatim
37812 #: ../src/guestfs.pod:2841
37813 #, no-wrap
37814 msgid ""
37815 " tx push -s\n"
37816 "\n"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:2843
37821 msgid "to push the latest POT files to Transifex.  Then run:"
37822 msgstr ""
37823
37824 #. type: verbatim
37825 #: ../src/guestfs.pod:2845
37826 #, no-wrap
37827 msgid ""
37828 " ./tx-pull.sh\n"
37829 "\n"
37830 msgstr ""
37831
37832 #. type: textblock
37833 #: ../src/guestfs.pod:2847
37834 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:2851
37839 msgid ""
37840 "Create new stable and development directories under L<http://libguestfs.org/"
37841 "download>."
37842 msgstr ""
37843
37844 #. type: textblock
37845 #: ../src/guestfs.pod:2856
37846 msgid "Create the branch in git:"
37847 msgstr ""
37848
37849 #. type: verbatim
37850 #: ../src/guestfs.pod:2858
37851 #, no-wrap
37852 msgid ""
37853 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37854 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37855 " git branch stable-1.XX\n"
37856 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37857 "\n"
37858 msgstr ""
37859
37860 #. type: =head1
37861 #: ../src/guestfs.pod:2865
37862 msgid "LIMITS"
37863 msgstr ""
37864
37865 #. type: =head2
37866 #: ../src/guestfs.pod:2867
37867 msgid "PROTOCOL LIMITS"
37868 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37869
37870 #. type: textblock
37871 #: ../src/guestfs.pod:2869
37872 msgid ""
37873 "Internally libguestfs uses a message-based protocol to pass API calls and "
37874 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37875 "plenty more detail about this).  The maximum message size used by the "
37876 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37877 "aware of this limit.  The API calls which may be affected are individually "
37878 "documented, with a link back to this section of the documentation."
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:2877
37883 msgid ""
37884 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37885 "a simple string.  Because this string is at some point internally encoded as "
37886 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37887 "the requested file is larger than this then you will get an error."
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:2883
37892 msgid ""
37893 "In order to transfer large files into and out of the guest filesystem, you "
37894 "need to use particular calls that support this.  The sections L</UPLOADING> "
37895 "and L</DOWNLOADING> document how to do this."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:2887
37900 msgid ""
37901 "You might also consider mounting the disk image using our FUSE filesystem "
37902 "support (L<guestmount(1)>)."
37903 msgstr ""
37904
37905 #. type: =head2
37906 #: ../src/guestfs.pod:2890
37907 msgid "MAXIMUM NUMBER OF DISKS"
37908 msgstr ""
37909
37910 #. type: textblock
37911 #: ../src/guestfs.pod:2892
37912 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37913 msgstr ""
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2895
37917 msgid ""
37918 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37919 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37920 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37921 "purposes."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:2900
37926 msgid ""
37927 "We are working to substantially raise this limit in future versions but it "
37928 "requires complex changes to qemu."
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:2903
37933 msgid ""
37934 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37935 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37936 "requires changes to qemu."
37937 msgstr ""
37938
37939 #. type: =head2
37940 #: ../src/guestfs.pod:2907
37941 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:2909
37946 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../src/guestfs.pod:2911
37951 msgid ""
37952 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
37953 "vda>, and C</dev/vda1> through C</dev/vda15>)."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:2914
37958 msgid ""
37959 "If you attach a disk with more than 15 partitions, the extra partitions are "
37960 "ignored by libguestfs."
37961 msgstr ""
37962
37963 #. type: =head2
37964 #: ../src/guestfs.pod:2917
37965 msgid "MAXIMUM SIZE OF A DISK"
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:2919
37970 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:2921
37975 msgid ""
37976 "We have tested block devices up to 1 exabyte (2**60 or "
37977 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37978 "filesystem."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2925
37983 msgid ""
37984 "Although libguestfs probably does not impose any limit, the underlying host "
37985 "storage will.  If you store disk images on a host ext4 filesystem, then the "
37986 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37987 "TB).  If you store disk images as host logical volumes then you are limited "
37988 "by the maximum size of an LV."
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../src/guestfs.pod:2931
37993 msgid ""
37994 "For the hugest disk image files, we recommend using XFS on the host for "
37995 "storage."
37996 msgstr ""
37997
37998 #. type: =head2
37999 #: ../src/guestfs.pod:2934
38000 msgid "MAXIMUM SIZE OF A PARTITION"
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:2936
38005 msgid ""
38006 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38007 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38008 "address a partition located beyond 2 TB on the disk."
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:2940
38013 msgid ""
38014 "It is recommended that you use GPT partitions on disks which are larger than "
38015 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38016 "which are theoretically larger than the largest disk we could support."
38017 msgstr ""
38018
38019 #. type: =head2
38020 #: ../src/guestfs.pod:2945
38021 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../src/guestfs.pod:2947
38026 msgid ""
38027 "This depends on the filesystem type.  libguestfs itself does not impose any "
38028 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38029 "what these limits are."
38030 msgstr ""
38031
38032 #. type: =head2
38033 #: ../src/guestfs.pod:2951
38034 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38035 msgstr ""
38036
38037 #. type: textblock
38038 #: ../src/guestfs.pod:2953
38039 msgid ""
38040 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38041 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38042 "uploads and downloads."
38043 msgstr ""
38044
38045 #. type: =head2
38046 #: ../src/guestfs.pod:2957
38047 msgid "INSPECTION LIMITS"
38048 msgstr ""
38049
38050 #. type: textblock
38051 #: ../src/guestfs.pod:2959
38052 msgid ""
38053 "The inspection code has several arbitrary limits on things like the size of "
38054 "Windows Registry hive it will read, and the length of product name.  These "
38055 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38056 "memory and disk space on the host, and should not be reached in practice.  "
38057 "See the source code for more information."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:2985
38062 msgid ""
38063 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38064 "effect as calling C<guestfs_set_verbose (g, 1)>."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:2997
38069 msgid ""
38070 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38071 "the discussion of paths in section L</PATH> above."
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:3006
38076 msgid "See also L</QEMU WRAPPERS> above."
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../src/guestfs.pod:3010
38081 msgid ""
38082 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38083 "effect as calling C<guestfs_set_trace (g, 1)>."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:3028
38088 msgid ""
38089 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38090 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38091 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38092 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38093 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38094 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38095 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38096 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38097 msgstr ""
38098
38099 #. type: textblock
38100 #: ../src/guestfs.pod:3058
38101 msgid ""
38102 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38103 "(8)>, L<disktype(1)>."
38104 msgstr ""
38105
38106 #. type: =head1
38107 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
38108 #: ../tools/virt-win-reg.pl:761
38109 msgid "BUGS"
38110 msgstr "ВАДИ"
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:3067
38114 msgid "To get a list of bugs against libguestfs use this link:"
38115 msgstr ""
38116 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38117 "посиланням:"
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:3069
38121 msgid ""
38122 "L<https://bugzilla.redhat.com/buglist.cgi?"
38123 "component=libguestfs&product=Virtualization+Tools>"
38124 msgstr ""
38125 "L<https://bugzilla.redhat.com/buglist.cgi?"
38126 "component=libguestfs&product=Virtualization+Tools>"
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:3071
38130 msgid "To report a new bug against libguestfs use this link:"
38131 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:3073
38135 msgid ""
38136 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38137 "component=libguestfs&product=Virtualization+Tools>"
38138 msgstr ""
38139 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38140 "component=libguestfs&product=Virtualization+Tools>"
38141
38142 #. type: textblock
38143 #: ../src/guestfs.pod:3075
38144 msgid "When reporting a bug, please check:"
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:3081
38149 msgid "That the bug hasn't been reported already."
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:3085
38154 msgid "That you are testing a recent version."
38155 msgstr ""
38156
38157 #. type: textblock
38158 #: ../src/guestfs.pod:3089
38159 msgid "Describe the bug accurately, and give a way to reproduce it."
38160 msgstr ""
38161
38162 #. type: textblock
38163 #: ../src/guestfs.pod:3093
38164 msgid ""
38165 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38166 "bug report."
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../test-tool/libguestfs-test-tool.pod:5
38171 msgid "libguestfs-test-tool - End user tests for libguestfs"
38172 msgstr ""
38173
38174 #. type: verbatim
38175 #: ../test-tool/libguestfs-test-tool.pod:9
38176 #, no-wrap
38177 msgid ""
38178 " libguestfs-test-tool [--options]\n"
38179 "\n"
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../test-tool/libguestfs-test-tool.pod:13
38184 msgid ""
38185 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38186 "and developers, to allow them to check basic libguestfs functionality is "
38187 "working.  This is needed because libguestfs occasionally breaks for reasons "
38188 "beyond our control: usually because of changes in the underlying qemu or "
38189 "kernel packages, or the host environment."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../test-tool/libguestfs-test-tool.pod:20
38194 msgid "If you suspect a problem in libguestfs, then just run:"
38195 msgstr ""
38196
38197 #. type: verbatim
38198 #: ../test-tool/libguestfs-test-tool.pod:22
38199 #, no-wrap
38200 msgid ""
38201 " libguestfs-test-tool\n"
38202 "\n"
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../test-tool/libguestfs-test-tool.pod:24
38207 msgid "It will print lots of diagnostic messages."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../test-tool/libguestfs-test-tool.pod:26
38212 msgid "If it runs to completion successfully, you will see this near the end:"
38213 msgstr ""
38214
38215 #. type: verbatim
38216 #: ../test-tool/libguestfs-test-tool.pod:28
38217 #, no-wrap
38218 msgid ""
38219 " ===== TEST FINISHED OK =====\n"
38220 "\n"
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../test-tool/libguestfs-test-tool.pod:30
38225 msgid "and the test tool will exit with code 0."
38226 msgstr ""
38227
38228 #. type: textblock
38229 #: ../test-tool/libguestfs-test-tool.pod:32
38230 msgid ""
38231 "If it fails (and/or exits with non-zero error code), please paste the "
38232 "B<complete, unedited> output of the test tool into a bug report.  More "
38233 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38234 "> website."
38235 msgstr ""
38236
38237 #. type: =item
38238 #: ../test-tool/libguestfs-test-tool.pod:41
38239 msgid "I<--help>"
38240 msgstr "I<--help>"
38241
38242 #. type: textblock
38243 #: ../test-tool/libguestfs-test-tool.pod:43
38244 msgid "Display short usage information and exit."
38245 msgstr ""
38246
38247 #. type: =item
38248 #: ../test-tool/libguestfs-test-tool.pod:45
38249 msgid "I<--qemu qemu_binary>"
38250 msgstr "I<--qemu виконуваний_файл_qemu>"
38251
38252 #. type: textblock
38253 #: ../test-tool/libguestfs-test-tool.pod:47
38254 msgid ""
38255 "If you have downloaded another qemu binary, point this option at the full "
38256 "path of the binary to try it."
38257 msgstr ""
38258
38259 #. type: =item
38260 #: ../test-tool/libguestfs-test-tool.pod:50
38261 msgid "I<--qemudir qemu_source_dir>"
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../test-tool/libguestfs-test-tool.pod:52
38266 msgid ""
38267 "If you have compiled qemu from source, point this option at the source "
38268 "directory to try it."
38269 msgstr ""
38270
38271 #. type: =item
38272 #: ../test-tool/libguestfs-test-tool.pod:55
38273 msgid "I<--timeout N>"
38274 msgstr "I<--timeout N>"
38275
38276 #. type: textblock
38277 #: ../test-tool/libguestfs-test-tool.pod:57
38278 msgid ""
38279 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38280 "does not usually need to be adjusted unless your machine is very slow."
38281 msgstr ""
38282
38283 #. type: =head1
38284 #: ../test-tool/libguestfs-test-tool.pod:63
38285 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../test-tool/libguestfs-test-tool.pod:65
38290 msgid ""
38291 "If you have compiled another version of qemu from source and would like to "
38292 "try that, then you can use the I<--qemudir> option to point to the qemu "
38293 "source directory."
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../test-tool/libguestfs-test-tool.pod:69
38298 msgid ""
38299 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38300 "option to point to the binary."
38301 msgstr ""
38302
38303 #. type: textblock
38304 #: ../test-tool/libguestfs-test-tool.pod:72
38305 msgid ""
38306 "When using an alternate qemu with libguestfs, usually you would need to "
38307 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38308 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38309 "use either of the I<--qemudir> or I<--qemu> options."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../test-tool/libguestfs-test-tool.pod:79
38314 msgid ""
38315 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38316 "I<1> if there was an error."
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../test-tool/libguestfs-test-tool.pod:84
38321 msgid ""
38322 "For the full list of environment variables which may affect libguestfs, "
38323 "please see the L<guestfs(3)> manual page."
38324 msgstr ""
38325
38326 #. type: textblock
38327 #: ../test-tool/libguestfs-test-tool.pod:89
38328 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38329 msgstr ""
38330
38331 #. type: textblock
38332 #: ../tools/virt-list-filesystems.pl:32
38333 msgid ""
38334 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38335 msgstr ""
38336
38337 #. type: verbatim
38338 #: ../tools/virt-list-filesystems.pl:36
38339 #, no-wrap
38340 msgid ""
38341 " virt-list-filesystems [--options] domname\n"
38342 "\n"
38343 msgstr ""
38344
38345 #. type: verbatim
38346 #: ../tools/virt-list-filesystems.pl:38
38347 #, no-wrap
38348 msgid ""
38349 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38350 "\n"
38351 msgstr ""
38352
38353 #. type: textblock
38354 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38355 msgid ""
38356 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38357 "replacement."
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../tools/virt-list-filesystems.pl:45
38362 msgid ""
38363 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38364 "are contained in a virtual machine or disk image."
38365 msgstr ""
38366
38367 #. type: textblock
38368 #: ../tools/virt-list-filesystems.pl:49
38369 msgid ""
38370 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38371 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38372 "> tool."
38373 msgstr ""
38374
38375 #. type: textblock
38376 #: ../tools/virt-list-filesystems.pl:112
38377 msgid ""
38378 "With this option, C<virt-list-filesystems> displays the type of each "
38379 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38380 msgstr ""
38381
38382 #. type: =item
38383 #: ../tools/virt-list-filesystems.pl:119
38384 #, fuzzy
38385 #| msgid "B<-a image>"
38386 msgid "B<-a>"
38387 msgstr "B<-a образ>"
38388
38389 #. type: textblock
38390 #: ../tools/virt-list-filesystems.pl:123
38391 msgid ""
38392 "Normally we only show mountable filesystems.  If this option is given then "
38393 "swap devices are shown too."
38394 msgstr ""
38395
38396 #. type: textblock
38397 #: ../tools/virt-list-filesystems.pl:197
38398 msgid ""
38399 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38400 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38401 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38402 msgstr ""
38403 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38404 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38405 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38406
38407 #. type: textblock
38408 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38409 msgid "Copyright (C) 2009 Red Hat Inc."
38410 msgstr "© Red Hat Inc., 2009"
38411
38412 #. type: textblock
38413 #: ../tools/virt-list-partitions.pl:32
38414 msgid ""
38415 "virt-list-partitions - List partitions in a virtual machine or disk image"
38416 msgstr ""
38417
38418 #. type: verbatim
38419 #: ../tools/virt-list-partitions.pl:36
38420 #, no-wrap
38421 msgid ""
38422 " virt-list-partitions [--options] domname\n"
38423 "\n"
38424 msgstr ""
38425 " virt-list-partitions [--параметри] назва_домену\n"
38426 "\n"
38427
38428 #. type: verbatim
38429 #: ../tools/virt-list-partitions.pl:38
38430 #, no-wrap
38431 msgid ""
38432 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38433 "\n"
38434 msgstr ""
38435 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38436 "\n"
38437
38438 #. type: textblock
38439 #: ../tools/virt-list-partitions.pl:45
38440 msgid ""
38441 "C<virt-list-partitions> is a command line tool to list the partitions that "
38442 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38443 "first step to using L<virt-resize(1)>."
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../tools/virt-list-partitions.pl:50
38448 msgid ""
38449 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38450 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38451 "> tool."
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../tools/virt-list-partitions.pl:113
38456 msgid "Show sizes in human-readable form (eg. \"1G\")."
38457 msgstr ""
38458
38459 #. type: textblock
38460 #: ../tools/virt-list-partitions.pl:123
38461 msgid ""
38462 "With this option, C<virt-list-partitions> displays the type and size of each "
38463 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38464 msgstr ""
38465
38466 #. type: =item
38467 #: ../tools/virt-list-partitions.pl:130
38468 msgid "B<-t>"
38469 msgstr ""
38470
38471 #. type: =item
38472 #: ../tools/virt-list-partitions.pl:132
38473 #, fuzzy
38474 #| msgid "B<-t> | B<--total>"
38475 msgid "B<--total>"
38476 msgstr "B<-t> | B<--total>"
38477
38478 #. type: textblock
38479 #: ../tools/virt-list-partitions.pl:134
38480 msgid ""
38481 "Display the total size of each block device (as a separate row or rows)."
38482 msgstr ""
38483
38484 #. type: textblock
38485 #: ../tools/virt-list-partitions.pl:267
38486 msgid ""
38487 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38488 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38489 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38490 msgstr ""
38491 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38492 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38493 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38494
38495 #. type: textblock
38496 #: ../tools/virt-list-partitions.pl:283
38497 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38498 msgstr "© Red Hat Inc., 2009–2010"
38499
38500 #. type: textblock
38501 #: ../tools/virt-make-fs.pl:37
38502 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38503 msgstr ""
38504
38505 #. type: verbatim
38506 #: ../tools/virt-make-fs.pl:41
38507 #, no-wrap
38508 msgid ""
38509 " virt-make-fs [--options] input.tar output.img\n"
38510 "\n"
38511 msgstr ""
38512
38513 #. type: verbatim
38514 #: ../tools/virt-make-fs.pl:43
38515 #, no-wrap
38516 msgid ""
38517 " virt-make-fs [--options] input.tar.gz output.img\n"
38518 "\n"
38519 msgstr ""
38520
38521 #. type: verbatim
38522 #: ../tools/virt-make-fs.pl:45
38523 #, no-wrap
38524 msgid ""
38525 " virt-make-fs [--options] directory output.img\n"
38526 "\n"
38527 msgstr ""
38528
38529 #. type: textblock
38530 #: ../tools/virt-make-fs.pl:49
38531 msgid ""
38532 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38533 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38534 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38535 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38536 "you want to attach these filesystems to existing virtual machines (eg. to "
38537 "import large amounts of read-only data to a VM)."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../tools/virt-make-fs.pl:57
38542 msgid "Basic usage is:"
38543 msgstr ""
38544
38545 #. type: verbatim
38546 #: ../tools/virt-make-fs.pl:59
38547 #, no-wrap
38548 msgid ""
38549 " virt-make-fs input output\n"
38550 "\n"
38551 msgstr ""
38552
38553 #. type: textblock
38554 #: ../tools/virt-make-fs.pl:61
38555 msgid ""
38556 "where C<input> is either a directory containing files that you want to add, "
38557 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38558 "C<output> is a disk image.  The input type is detected automatically.  The "
38559 "output disk image defaults to a raw ext2 image unless you specify extra "
38560 "flags (see L</OPTIONS> below)."
38561 msgstr ""
38562
38563 #. type: =head2
38564 #: ../tools/virt-make-fs.pl:67
38565 msgid "EXTRA SPACE"
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../tools/virt-make-fs.pl:69
38570 msgid ""
38571 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38572 "the files that it contains, but might have extra space.  Depending on how "
38573 "you are going to use the output, you might think this extra space is wasted "
38574 "and want to minimize it, or you might want to leave space so that more files "
38575 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38576 "but you can use the I<--size> flag to leave space in the filesystem if you "
38577 "want it."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../tools/virt-make-fs.pl:77
38582 msgid ""
38583 "An alternative way to leave extra space but not make the output image any "
38584 "bigger is to use an alternative disk image format (instead of the default "
38585 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38586 "image format (check your hypervisor supports this before using it).  This "
38587 "allows you to choose a large I<--size> but the extra space won't actually be "
38588 "allocated in the image until you try to store something in it."
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../tools/virt-make-fs.pl:85
38593 msgid ""
38594 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38595 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38596 "to build another image from scratch."
38597 msgstr ""
38598
38599 #. type: =head3
38600 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38601 #: ../tools/virt-make-fs.pl:142
38602 msgid "EXAMPLE"
38603 msgstr "ПРИКЛАД"
38604
38605 #. type: verbatim
38606 #: ../tools/virt-make-fs.pl:91
38607 #, no-wrap
38608 msgid ""
38609 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38610 "\n"
38611 msgstr ""
38612 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38613 "\n"
38614
38615 #. type: =head2
38616 #: ../tools/virt-make-fs.pl:93
38617 msgid "FILESYSTEM TYPE"
38618 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38619
38620 #. type: textblock
38621 #: ../tools/virt-make-fs.pl:95
38622 msgid ""
38623 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38624 "libguestfs supports can be used (but I<not> read-only formats like "
38625 "ISO9660).  Here are some of the more common choices:"
38626 msgstr ""
38627
38628 #. type: =item
38629 #: ../tools/virt-make-fs.pl:101
38630 msgid "I<ext3>"
38631 msgstr "I<ext3>"
38632
38633 #. type: textblock
38634 #: ../tools/virt-make-fs.pl:103
38635 msgid ""
38636 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38637 "you are not going to use the filesystem in a way that requires the journal, "
38638 "then this is just wasted overhead."
38639 msgstr ""
38640
38641 #. type: =item
38642 #: ../tools/virt-make-fs.pl:107
38643 msgid "I<ntfs> or I<vfat>"
38644 msgstr "I<ntfs> або I<vfat>"
38645
38646 #. type: textblock
38647 #: ../tools/virt-make-fs.pl:109
38648 msgid "Useful if exporting data to a Windows guest."
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../tools/virt-make-fs.pl:111
38653 msgid ""
38654 "I<Note for vfat>: The tar archive or local directory must only contain files "
38655 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38656 "program running within libguestfs is unable to change the ownership of non-"
38657 "root files, since vfat itself does not support this."
38658 msgstr ""
38659
38660 #. type: =item
38661 #: ../tools/virt-make-fs.pl:116
38662 msgid "I<minix>"
38663 msgstr "I<minix>"
38664
38665 #. type: textblock
38666 #: ../tools/virt-make-fs.pl:118
38667 msgid ""
38668 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38669 "total filesystem size."
38670 msgstr ""
38671
38672 #. type: verbatim
38673 #: ../tools/virt-make-fs.pl:125
38674 #, no-wrap
38675 msgid ""
38676 " virt-make-fs --type=minix input minixfs.img\n"
38677 "\n"
38678 msgstr ""
38679
38680 #. type: =head2
38681 #: ../tools/virt-make-fs.pl:127
38682 msgid "TO PARTITION OR NOT TO PARTITION"
38683 msgstr ""
38684
38685 #. type: textblock
38686 #: ../tools/virt-make-fs.pl:129
38687 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../tools/virt-make-fs.pl:131
38692 msgid ""
38693 "Adding a partition can make the disk image more compatible with certain "
38694 "virtualized operating systems which don't expect to see a filesystem "
38695 "directly located on a block device (Linux doesn't care and will happily "
38696 "handle both types)."
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../tools/virt-make-fs.pl:136
38701 msgid ""
38702 "On the other hand, if you have a partition table then the output image is no "
38703 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38704 "directly on a partitioned disk image.  (However libguestfs tools such as "
38705 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38706 msgstr ""
38707
38708 #. type: textblock
38709 #: ../tools/virt-make-fs.pl:144
38710 msgid "Add an MBR partition:"
38711 msgstr ""
38712
38713 #. type: verbatim
38714 #: ../tools/virt-make-fs.pl:146
38715 #, no-wrap
38716 msgid ""
38717 " virt-make-fs --partition -- input disk.img\n"
38718 "\n"
38719 msgstr ""
38720
38721 #. type: textblock
38722 #: ../tools/virt-make-fs.pl:148
38723 msgid ""
38724 "If the output disk image could be terabyte-sized or larger, it's better to "
38725 "use an EFI/GPT-compatible partition table:"
38726 msgstr ""
38727
38728 #. type: verbatim
38729 #: ../tools/virt-make-fs.pl:151
38730 #, no-wrap
38731 msgid ""
38732 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38733 "\n"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../tools/virt-make-fs.pl:179
38738 msgid "Enable debugging information."
38739 msgstr "Увімкнути виведення діагностичних даних."
38740
38741 #. type: =item
38742 #: ../tools/virt-make-fs.pl:185
38743 msgid "B<--size=E<lt>NE<gt>>"
38744 msgstr "B<--size=E<lt>NE<gt>>"
38745
38746 #. type: =item
38747 #: ../tools/virt-make-fs.pl:187
38748 msgid "B<--size=+E<lt>NE<gt>>"
38749 msgstr "B<--size=+E<lt>NE<gt>>"
38750
38751 #. type: =item
38752 #: ../tools/virt-make-fs.pl:189
38753 msgid "B<-s E<lt>NE<gt>>"
38754 msgstr "B<-s E<lt>NE<gt>>"
38755
38756 #. type: =item
38757 #: ../tools/virt-make-fs.pl:191
38758 msgid "B<-s +E<lt>NE<gt>>"
38759 msgstr "B<-s +E<lt>NE<gt>>"
38760
38761 #. type: textblock
38762 #: ../tools/virt-make-fs.pl:193
38763 msgid ""
38764 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38765 msgstr ""
38766
38767 #. type: textblock
38768 #: ../tools/virt-make-fs.pl:196
38769 msgid ""
38770 "If this option is I<not> given, then the output image will be just large "
38771 "enough to contain all the files, with not much wasted space."
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../tools/virt-make-fs.pl:199
38776 msgid ""
38777 "To choose a fixed size output disk, specify an absolute number followed by b/"
38778 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38779 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38780 "files, else you will get an error."
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../tools/virt-make-fs.pl:204
38785 msgid ""
38786 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38787 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38788 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38789 "the input files, and (approximately) an extra 200 MB free space."
38790 msgstr ""
38791
38792 #. type: textblock
38793 #: ../tools/virt-make-fs.pl:210
38794 msgid ""
38795 "Note that virt-make-fs estimates free space, and therefore will not produce "
38796 "filesystems containing precisely the free space requested.  (It is much more "
38797 "expensive and time-consuming to produce a filesystem which has precisely the "
38798 "desired free space)."
38799 msgstr ""
38800
38801 #. type: =item
38802 #: ../tools/virt-make-fs.pl:219
38803 msgid "B<--format=E<lt>fmtE<gt>>"
38804 msgstr ""
38805
38806 #. type: =item
38807 #: ../tools/virt-make-fs.pl:221
38808 msgid "B<-F E<lt>fmtE<gt>>"
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../tools/virt-make-fs.pl:223
38813 msgid "Choose the output disk image format."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../tools/virt-make-fs.pl:225
38818 msgid "The default is C<raw> (raw disk image)."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../tools/virt-make-fs.pl:227
38823 msgid ""
38824 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38825 "that would really make sense here is C<qcow2>."
38826 msgstr ""
38827
38828 #. type: =item
38829 #: ../tools/virt-make-fs.pl:234
38830 msgid "B<--type=E<lt>fsE<gt>>"
38831 msgstr ""
38832
38833 #. type: =item
38834 #: ../tools/virt-make-fs.pl:236
38835 msgid "B<-t E<lt>fsE<gt>>"
38836 msgstr ""
38837
38838 #. type: textblock
38839 #: ../tools/virt-make-fs.pl:238
38840 msgid "Choose the output filesystem type."
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../tools/virt-make-fs.pl:240
38845 msgid "The default is C<ext2>."
38846 msgstr "Типовим значенням є C<ext2>."
38847
38848 #. type: textblock
38849 #: ../tools/virt-make-fs.pl:242
38850 msgid ""
38851 "Any filesystem which is supported read-write by libguestfs can be used here."
38852 msgstr ""
38853
38854 #. type: =item
38855 #: ../tools/virt-make-fs.pl:249
38856 msgid "B<--partition>"
38857 msgstr "B<--partition>"
38858
38859 #. type: =item
38860 #: ../tools/virt-make-fs.pl:251
38861 msgid "B<--partition=E<lt>parttypeE<gt>>"
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../tools/virt-make-fs.pl:253
38866 msgid ""
38867 "If specified, this flag adds an MBR partition table to the output disk image."
38868 msgstr ""
38869
38870 #. type: textblock
38871 #: ../tools/virt-make-fs.pl:256
38872 msgid ""
38873 "You can change the partition table type, eg. I<--partition=gpt> for large "
38874 "disks."
38875 msgstr ""
38876
38877 #. type: textblock
38878 #: ../tools/virt-make-fs.pl:259
38879 msgid ""
38880 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38881 "might consider the next parameter to be the partition type.  For example:"
38882 msgstr ""
38883
38884 #. type: verbatim
38885 #: ../tools/virt-make-fs.pl:263
38886 #, no-wrap
38887 msgid ""
38888 " virt-make-fs --partition input.tar ...\n"
38889 "\n"
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../tools/virt-make-fs.pl:265
38894 msgid ""
38895 "would cause virt-make-fs to think you wanted to use a partition type of "
38896 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38897 "dash) between options and the input file argument:"
38898 msgstr ""
38899
38900 #. type: verbatim
38901 #: ../tools/virt-make-fs.pl:269
38902 #, no-wrap
38903 msgid ""
38904 " virt-make-fs --partition -- input.tar ...\n"
38905 "\n"
38906 msgstr ""
38907 " virt-make-fs --partition -- input.tar ...\n"
38908 "\n"
38909
38910 #. type: textblock
38911 #: ../tools/virt-make-fs.pl:541
38912 msgid ""
38913 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38914 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38915 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38916 msgstr ""
38917 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38918 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38919 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38920
38921 #. type: textblock
38922 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38923 msgid ""
38924 "When reporting bugs, please enable debugging and capture the I<complete> "
38925 "output:"
38926 msgstr ""
38927
38928 #. type: verbatim
38929 #: ../tools/virt-make-fs.pl:558
38930 #, no-wrap
38931 msgid ""
38932 " export LIBGUESTFS_DEBUG=1\n"
38933 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38934 "\n"
38935 msgstr ""
38936 " export LIBGUESTFS_DEBUG=1\n"
38937 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38938 "\n"
38939
38940 #. type: textblock
38941 #: ../tools/virt-make-fs.pl:561
38942 msgid ""
38943 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38944 "redhat.com/>"
38945 msgstr ""
38946
38947 #. type: textblock
38948 #: ../tools/virt-tar.pl:33
38949 msgid "virt-tar - Extract or upload files to a virtual machine"
38950 msgstr ""
38951
38952 #. type: verbatim
38953 #: ../tools/virt-tar.pl:37
38954 #, no-wrap
38955 msgid ""
38956 " virt-tar [--options] -x domname directory tarball\n"
38957 "\n"
38958 msgstr ""
38959
38960 #. type: verbatim
38961 #: ../tools/virt-tar.pl:39
38962 #, no-wrap
38963 msgid ""
38964 " virt-tar [--options] -u domname tarball directory\n"
38965 "\n"
38966 msgstr ""
38967
38968 #. type: verbatim
38969 #: ../tools/virt-tar.pl:41
38970 #, no-wrap
38971 msgid ""
38972 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38973 "\n"
38974 msgstr ""
38975
38976 #. type: verbatim
38977 #: ../tools/virt-tar.pl:43
38978 #, no-wrap
38979 msgid ""
38980 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38981 "\n"
38982 msgstr ""
38983
38984 #. type: =head2
38985 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38986 msgid "NOTE"
38987 msgstr "ПРИМІТКА"
38988
38989 #. type: textblock
38990 #: ../tools/virt-tar.pl:47
38991 msgid ""
38992 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
38993 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
38994 msgstr ""
38995
38996 #. type: textblock
38997 #: ../tools/virt-tar.pl:52
38998 msgid "Download C</home> from the VM into a local tarball:"
38999 msgstr ""
39000
39001 #. type: verbatim
39002 #: ../tools/virt-tar.pl:54
39003 #, no-wrap
39004 msgid ""
39005 " virt-tar -x domname /home home.tar\n"
39006 "\n"
39007 msgstr ""
39008
39009 #. type: verbatim
39010 #: ../tools/virt-tar.pl:56
39011 #, no-wrap
39012 msgid ""
39013 " virt-tar -zx domname /home home.tar.gz\n"
39014 "\n"
39015 msgstr ""
39016
39017 #. type: textblock
39018 #: ../tools/virt-tar.pl:58
39019 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39020 msgstr ""
39021
39022 #. type: verbatim
39023 #: ../tools/virt-tar.pl:60
39024 #, no-wrap
39025 msgid ""
39026 " virt-tar -u domname uploadstuff.tar /tmp\n"
39027 "\n"
39028 msgstr ""
39029
39030 #. type: verbatim
39031 #: ../tools/virt-tar.pl:62
39032 #, no-wrap
39033 msgid ""
39034 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39035 "\n"
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../tools/virt-tar.pl:66
39040 msgid ""
39041 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39042 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39043 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../tools/virt-tar.pl:71
39048 msgid ""
39049 "You can use I<-x> (extract) on live virtual machines, but you might get "
39050 "inconsistent results or errors if there is filesystem activity inside the "
39051 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39052 "work, but the only way to guarantee consistent results is if the virtual "
39053 "machine is shut down."
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../tools/virt-tar.pl:79
39058 msgid ""
39059 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39060 "parts of a guest filesystem.  There are many possibilities: making backups, "
39061 "uploading data files, snooping on guest activity, fixing or customizing "
39062 "guests, etc."
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../tools/virt-tar.pl:84
39067 msgid ""
39068 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39069 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39070 "should look at the L<guestfish(1)> tool."
39071 msgstr ""
39072
39073 #. type: textblock
39074 #: ../tools/virt-tar.pl:88
39075 msgid ""
39076 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39077 "its contents (recursively) from the virtual machine into a local tarball.  "
39078 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39079 "virtual machine.  You cannot use these two options together."
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../tools/virt-tar.pl:94
39084 msgid ""
39085 "In addition, you may need to use the I<-z> (gZip) option to enable "
39086 "compression.  When uploading, you have to specify I<-z> if the upload file "
39087 "is compressed because virt-tar won't detect this on its own."
39088 msgstr ""
39089
39090 #. type: textblock
39091 #: ../tools/virt-tar.pl:98
39092 msgid ""
39093 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39094 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39095 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39096 "the L<libguestfs(3)> API)."
39097 msgstr ""
39098
39099 #. type: =item
39100 #: ../tools/virt-tar.pl:160
39101 #, fuzzy
39102 #| msgid "B<--format>"
39103 msgid "B<--extract>"
39104 msgstr "B<--format>"
39105
39106 #. type: =item
39107 #: ../tools/virt-tar.pl:162
39108 #, fuzzy
39109 #| msgid "download"
39110 msgid "B<--download>"
39111 msgstr "download"
39112
39113 #. type: =item
39114 #: ../tools/virt-tar.pl:164
39115 msgid "B<-u>"
39116 msgstr ""
39117
39118 #. type: =item
39119 #: ../tools/virt-tar.pl:166
39120 #, fuzzy
39121 #| msgid "B<-u> | B<--upload>"
39122 msgid "B<--upload>"
39123 msgstr "B<-u> | B<--upload>"
39124
39125 #. type: textblock
39126 #: ../tools/virt-tar.pl:168
39127 msgid ""
39128 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39129 "local tarball."
39130 msgstr ""
39131
39132 #. type: textblock
39133 #: ../tools/virt-tar.pl:171
39134 msgid ""
39135 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39136 "Please read the L</WARNING> section above before using this option."
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../tools/virt-tar.pl:175
39141 msgid "You must specify exactly one of these options."
39142 msgstr ""
39143
39144 #. type: =item
39145 #: ../tools/virt-tar.pl:181
39146 msgid "B<-z>"
39147 msgstr ""
39148
39149 #. type: =item
39150 #: ../tools/virt-tar.pl:183
39151 #, fuzzy
39152 #| msgid "B<-z> | B<--gzip>"
39153 msgid "B<--gzip>"
39154 msgstr "B<-z> | B<--gzip>"
39155
39156 #. type: textblock
39157 #: ../tools/virt-tar.pl:185
39158 msgid "Specify that the input or output tarball is gzip-compressed."
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../tools/virt-tar.pl:298
39163 msgid ""
39164 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39165 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39166 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39167 "org/>."
39168 msgstr ""
39169 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39170 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39171 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39172 "org/>."
39173
39174 #. type: textblock
39175 #: ../tools/virt-win-reg.pl:37
39176 msgid ""
39177 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39178 msgstr ""
39179
39180 #. type: verbatim
39181 #: ../tools/virt-win-reg.pl:41
39182 #, no-wrap
39183 msgid ""
39184 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39185 "\n"
39186 msgstr ""
39187
39188 #. type: verbatim
39189 #: ../tools/virt-win-reg.pl:43
39190 #, no-wrap
39191 msgid ""
39192 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39193 "\n"
39194 msgstr ""
39195
39196 #. type: verbatim
39197 #: ../tools/virt-win-reg.pl:45
39198 #, no-wrap
39199 msgid ""
39200 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39201 "\n"
39202 msgstr ""
39203
39204 #. type: verbatim
39205 #: ../tools/virt-win-reg.pl:47
39206 #, no-wrap
39207 msgid ""
39208 " virt-win-reg --merge domname [input.reg ...]\n"
39209 "\n"
39210 msgstr ""
39211
39212 #. type: verbatim
39213 #: ../tools/virt-win-reg.pl:49
39214 #, no-wrap
39215 msgid ""
39216 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39217 "\n"
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../tools/virt-win-reg.pl:53
39222 msgid ""
39223 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39224 "virtual machines.  If you do this, you I<will> get irreversible disk "
39225 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39226 "but doesn't catch all cases."
39227 msgstr ""
39228
39229 #. type: textblock
39230 #: ../tools/virt-win-reg.pl:58
39231 msgid ""
39232 "Modifying the Windows Registry is an inherently risky operation.  The format "
39233 "is deliberately obscure and undocumented, and Registry changes can leave the "
39234 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39235 "you have a reliable backup first."
39236 msgstr ""
39237
39238 #. type: textblock
39239 #: ../tools/virt-win-reg.pl:65
39240 msgid ""
39241 "This program can export and merge Windows Registry entries from a Windows "
39242 "guest."
39243 msgstr ""
39244
39245 #. type: textblock
39246 #: ../tools/virt-win-reg.pl:68
39247 msgid ""
39248 "The first parameter is the libvirt guest name or the raw disk image of a "
39249 "Windows guest."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../tools/virt-win-reg.pl:71
39254 msgid ""
39255 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39256 "exported (recursively).  For example:"
39257 msgstr ""
39258
39259 #. type: verbatim
39260 #: ../tools/virt-win-reg.pl:74
39261 #, no-wrap
39262 msgid ""
39263 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39264 "\n"
39265 msgstr ""
39266
39267 #. type: textblock
39268 #: ../tools/virt-win-reg.pl:76
39269 msgid ""
39270 "You can also display single values from within registry keys, for example:"
39271 msgstr ""
39272
39273 #. type: verbatim
39274 #: ../tools/virt-win-reg.pl:79
39275 #, no-wrap
39276 msgid ""
39277 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39278 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39279 " Windows 7 Enterprise\n"
39280 "\n"
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../tools/virt-win-reg.pl:83
39285 msgid ""
39286 "With I<--merge>, you can merge a textual regedit file into the Windows "
39287 "Registry:"
39288 msgstr ""
39289
39290 #. type: verbatim
39291 #: ../tools/virt-win-reg.pl:86
39292 #, no-wrap
39293 msgid ""
39294 " $ virt-win-reg --merge Windows7 changes.reg\n"
39295 "\n"
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../tools/virt-win-reg.pl:90
39300 msgid ""
39301 "This program is only meant for simple access to the registry.  If you want "
39302 "to do complicated things with the registry, we suggest you download the "
39303 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39304 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39305 "L<hivexregedit(1)>."
39306 msgstr ""
39307
39308 #. type: =item
39309 #: ../tools/virt-win-reg.pl:159
39310 msgid "B<--merge>"
39311 msgstr "B<--merge>"
39312
39313 #. type: textblock
39314 #: ../tools/virt-win-reg.pl:161
39315 msgid ""
39316 "In merge mode, this merges a textual regedit file into the Windows Registry "
39317 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39318 "displays or exports Registry entries instead."
39319 msgstr ""
39320
39321 #. type: textblock
39322 #: ../tools/virt-win-reg.pl:165
39323 msgid ""
39324 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39325 "result in disk corruption.  However exporting (without this flag)  is always "
39326 "safe."
39327 msgstr ""
39328
39329 #. type: =item
39330 #: ../tools/virt-win-reg.pl:173
39331 msgid "B<--encoding> UTF-16LE|ASCII"
39332 msgstr ""
39333
39334 #. type: textblock
39335 #: ../tools/virt-win-reg.pl:175
39336 msgid ""
39337 "When merging (only), you may need to specify the encoding for strings to be "
39338 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39339 "(3)/ENCODING STRINGS>."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../tools/virt-win-reg.pl:179
39344 msgid ""
39345 "The default is to use UTF-16LE, which should work with recent versions of "
39346 "Windows."
39347 msgstr ""
39348
39349 #. type: =item
39350 #: ../tools/virt-win-reg.pl:186
39351 msgid "B<--unsafe-printable-strings>"
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../tools/virt-win-reg.pl:188
39356 msgid ""
39357 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39358 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39359 "present."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../tools/virt-win-reg.pl:192
39364 msgid ""
39365 "This is unsafe and does not preserve the fidelity of strings in the original "
39366 "Registry for various reasons:"
39367 msgstr ""
39368
39369 #. type: textblock
39370 #: ../tools/virt-win-reg.pl:199
39371 msgid ""
39372 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39373 "other encodings will be corrupted by this transformation."
39374 msgstr ""
39375
39376 #. type: textblock
39377 #: ../tools/virt-win-reg.pl:204
39378 msgid ""
39379 "Assumes that everything which has type 1 or 2 is really a string and that "
39380 "everything else is not a string, but the type field in real Registries is "
39381 "not reliable."
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../tools/virt-win-reg.pl:210
39386 msgid ""
39387 "Loses information about whether a zero codepoint followed the string in the "
39388 "Registry or not."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../tools/virt-win-reg.pl:215
39393 msgid ""
39394 "This all happens because the Registry itself contains no information about "
39395 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../tools/virt-win-reg.pl:219
39400 msgid ""
39401 "You should only use this option for quick hacking and debugging of the "
39402 "Registry contents, and I<never> use it if the output is going to be passed "
39403 "into another program or stored in another Registry."
39404 msgstr ""
39405
39406 #. type: =head1
39407 #: ../tools/virt-win-reg.pl:556
39408 msgid "SUPPORTED SYSTEMS"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../tools/virt-win-reg.pl:558
39413 msgid ""
39414 "The program currently supports Windows NT-derived guests starting with "
39415 "Windows XP through to at least Windows 7."
39416 msgstr ""
39417
39418 #. type: textblock
39419 #: ../tools/virt-win-reg.pl:561
39420 msgid "The following Registry keys are supported:"
39421 msgstr ""
39422
39423 #. type: =item
39424 #: ../tools/virt-win-reg.pl:565
39425 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39426 msgstr ""
39427
39428 #. type: =item
39429 #: ../tools/virt-win-reg.pl:567
39430 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39431 msgstr ""
39432
39433 #. type: =item
39434 #: ../tools/virt-win-reg.pl:569
39435 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39436 msgstr ""
39437
39438 #. type: =item
39439 #: ../tools/virt-win-reg.pl:571
39440 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39441 msgstr ""
39442
39443 #. type: =item
39444 #: ../tools/virt-win-reg.pl:573
39445 msgid "C<HKEY_USERS\\.DEFAULT>"
39446 msgstr ""
39447
39448 #. type: =item
39449 #: ../tools/virt-win-reg.pl:575
39450 msgid "C<HKEY_USERS\\I<SID>>"
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../tools/virt-win-reg.pl:577
39455 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39456 msgstr ""
39457
39458 #. type: =item
39459 #: ../tools/virt-win-reg.pl:579
39460 msgid "C<HKEY_USERS\\I<username>>"
39461 msgstr ""
39462
39463 #. type: textblock
39464 #: ../tools/virt-win-reg.pl:581
39465 msgid ""
39466 "where I<username> is a local user name (this is a libguestfs extension)."
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../tools/virt-win-reg.pl:585
39471 msgid ""
39472 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39473 "C<HKEY_USERS>."
39474 msgstr ""
39475
39476 #. type: textblock
39477 #: ../tools/virt-win-reg.pl:588
39478 msgid ""
39479 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39480 "supported (there is no \"current user\")."
39481 msgstr ""
39482
39483 #. type: =head1
39484 #: ../tools/virt-win-reg.pl:591
39485 msgid "ENCODING"
39486 msgstr "КОДУВАННЯ"
39487
39488 #. type: textblock
39489 #: ../tools/virt-win-reg.pl:593
39490 msgid ""
39491 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39492 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39493 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39494 "Windows-style line endings, you may need to reencode the whole file before "
39495 "or after processing."
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../tools/virt-win-reg.pl:599
39500 msgid ""
39501 "To reencode a file from Windows format to Linux (before processing it with "
39502 "the I<--merge> option), you would do something like this:"
39503 msgstr ""
39504
39505 #. type: verbatim
39506 #: ../tools/virt-win-reg.pl:602
39507 #, no-wrap
39508 msgid ""
39509 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39510 "\n"
39511 msgstr ""
39512
39513 #. type: textblock
39514 #: ../tools/virt-win-reg.pl:604
39515 msgid ""
39516 "To go in the opposite direction, after exporting and before sending the file "
39517 "to a Windows user, do something like this:"
39518 msgstr ""
39519
39520 #. type: verbatim
39521 #: ../tools/virt-win-reg.pl:607
39522 #, no-wrap
39523 msgid ""
39524 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39525 "\n"
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../tools/virt-win-reg.pl:609
39530 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39531 msgstr ""
39532
39533 #. type: textblock
39534 #: ../tools/virt-win-reg.pl:611
39535 msgid ""
39536 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39537 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39538 "style (CRLF) line endings, like this:"
39539 msgstr ""
39540
39541 #. type: verbatim
39542 #: ../tools/virt-win-reg.pl:615
39543 #, no-wrap
39544 msgid ""
39545 " $ file software.reg\n"
39546 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39547 " with CRLF line terminators\n"
39548 "\n"
39549 msgstr ""
39550
39551 #. type: textblock
39552 #: ../tools/virt-win-reg.pl:619
39553 msgid "This file would need conversion before you could I<--merge> it."
39554 msgstr ""
39555
39556 #. type: =head1
39557 #: ../tools/virt-win-reg.pl:621
39558 msgid "CurrentControlSet etc."
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../tools/virt-win-reg.pl:623
39563 msgid ""
39564 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39565 "Registry at the level of the hive file, and therefore you cannot modify "
39566 "these."
39567 msgstr ""
39568
39569 #. type: textblock
39570 #: ../tools/virt-win-reg.pl:627
39571 msgid ""
39572 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39573 "circumstances it might refer to another control set.  The way to find out is "
39574 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39575 msgstr ""
39576
39577 #. type: verbatim
39578 #: ../tools/virt-win-reg.pl:631
39579 #, no-wrap
39580 msgid ""
39581 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39582 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39583 " \"Current\"=dword:00000001\n"
39584 " \"Default\"=dword:00000001\n"
39585 " \"Failed\"=dword:00000000\n"
39586 " \"LastKnownGood\"=dword:00000002\n"
39587 "\n"
39588 msgstr ""
39589
39590 #. type: textblock
39591 #: ../tools/virt-win-reg.pl:638
39592 msgid "\"Current\" is the one which Windows will choose when it boots."
39593 msgstr ""
39594
39595 #. type: textblock
39596 #: ../tools/virt-win-reg.pl:640
39597 msgid ""
39598 "Similarly, other C<Current...> keys in the path may need to be replaced."
39599 msgstr ""
39600
39601 #. type: =head1
39602 #: ../tools/virt-win-reg.pl:643
39603 msgid "WINDOWS TIPS"
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../tools/virt-win-reg.pl:645
39608 msgid ""
39609 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39610 "be shut off, else you will get disk corruption."
39611 msgstr ""
39612
39613 #. type: =head2
39614 #: ../tools/virt-win-reg.pl:648
39615 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../tools/virt-win-reg.pl:650
39620 msgid ""
39621 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39622 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39623 "is uploaded into C<C:\\>:"
39624 msgstr ""
39625
39626 #. type: verbatim
39627 #: ../tools/virt-win-reg.pl:654
39628 #, no-wrap
39629 msgid ""
39630 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39631 "\n"
39632 msgstr ""
39633
39634 #. type: textblock
39635 #: ../tools/virt-win-reg.pl:656
39636 msgid "Prepare a regedit file containing the registry change:"
39637 msgstr ""
39638
39639 #. type: verbatim
39640 #: ../tools/virt-win-reg.pl:658
39641 #, no-wrap
39642 msgid ""
39643 " cat > test.reg <<'EOF'\n"
39644 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39645 " \"Test\"=\"c:\\\\test.bat\"\n"
39646 " EOF\n"
39647 "\n"
39648 msgstr ""
39649
39650 #. type: textblock
39651 #: ../tools/virt-win-reg.pl:663
39652 msgid ""
39653 "In this example we use the key C<RunOnce> which means that the script will "
39654 "run precisely once when the first user logs in.  If you want it to run every "
39655 "time a user logs in, replace C<RunOnce> with C<Run>."
39656 msgstr ""
39657
39658 #. type: textblock
39659 #: ../tools/virt-win-reg.pl:667
39660 msgid "Now update the registry:"
39661 msgstr ""
39662
39663 #. type: verbatim
39664 #: ../tools/virt-win-reg.pl:669
39665 #, no-wrap
39666 msgid ""
39667 " virt-win-reg --merge WindowsGuest test.reg\n"
39668 "\n"
39669 msgstr ""
39670
39671 #. type: =head2
39672 #: ../tools/virt-win-reg.pl:671
39673 msgid "INSTALLING A SERVICE"
39674 msgstr ""
39675
39676 #. type: textblock
39677 #: ../tools/virt-win-reg.pl:673
39678 msgid ""
39679 "This section assumes you are familiar with Windows services, and you either "
39680 "have a program which handles the Windows Service Control Protocol directly "
39681 "or you want to run any program using a service wrapper like SrvAny or the "
39682 "free RHSrvAny."
39683 msgstr ""
39684
39685 #. type: textblock
39686 #: ../tools/virt-win-reg.pl:678
39687 msgid ""
39688 "First upload the program and optionally the service wrapper.  In this case "
39689 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39690 msgstr ""
39691
39692 #. type: verbatim
39693 #: ../tools/virt-win-reg.pl:682
39694 #, no-wrap
39695 msgid ""
39696 " guestfish -i -d WindowsGuest <<EOF\n"
39697 "   upload rhsrvany.exe /rhsrvany.exe\n"
39698 "   upload test.exe /test.exe\n"
39699 " EOF\n"
39700 "\n"
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../tools/virt-win-reg.pl:687
39705 msgid ""
39706 "Prepare a regedit file containing the registry changes.  In this example, "
39707 "the first registry change is needed for the service itself or the service "
39708 "wrapper (if used).  The second registry change is only needed because I am "
39709 "using the RHSrvAny service wrapper."
39710 msgstr ""
39711
39712 #. type: verbatim
39713 #: ../tools/virt-win-reg.pl:692
39714 #, no-wrap
39715 msgid ""
39716 " cat > service.reg <<'EOF'\n"
39717 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39718 " \"Type\"=dword:00000010\n"
39719 " \"Start\"=dword:00000002\n"
39720 " \"ErrorControl\"=dword:00000001\n"
39721 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39722 " \"DisplayName\"=\"RHSrvAny\"\n"
39723 " \"ObjectName\"=\"NetworkService\"\n"
39724 " \n"
39725 msgstr ""
39726
39727 #. type: verbatim
39728 #: ../tools/virt-win-reg.pl:701
39729 #, no-wrap
39730 msgid ""
39731 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39732 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39733 " \"PWD\"=\"c:\\\\Temp\"\n"
39734 " EOF\n"
39735 "\n"
39736 msgstr ""
39737
39738 #. type: textblock
39739 #: ../tools/virt-win-reg.pl:712
39740 msgid ""
39741 "For use of C<ControlSet001> see the section above in this manual page.  You "
39742 "may need to adjust this according to the control set that is in use by the "
39743 "guest."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../tools/virt-win-reg.pl:718
39748 msgid ""
39749 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39750 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39751 "privileged account."
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../tools/virt-win-reg.pl:724
39756 msgid ""
39757 "For the meaning of the magic numbers, see this Microsoft KB article: "
39758 "L<http://support.microsoft.com/kb/103000>."
39759 msgstr ""
39760
39761 #. type: textblock
39762 #: ../tools/virt-win-reg.pl:729
39763 msgid "Update the registry:"
39764 msgstr ""
39765
39766 #. type: verbatim
39767 #: ../tools/virt-win-reg.pl:731
39768 #, no-wrap
39769 msgid ""
39770 " virt-win-reg --merge WindowsGuest service.reg\n"
39771 "\n"
39772 msgstr ""
39773
39774 #. type: textblock
39775 #: ../tools/virt-win-reg.pl:735
39776 msgid ""
39777 "Be careful when passing parameters containing C<\\> (backslash) in the "
39778 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39779 "(but not both) to protect them from the shell."
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../tools/virt-win-reg.pl:739
39784 msgid "Paths and value names are case-insensitive."
39785 msgstr ""
39786
39787 #. type: textblock
39788 #: ../tools/virt-win-reg.pl:748
39789 msgid ""
39790 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39791 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39792 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39793 msgstr ""
39794
39795 #. type: verbatim
39796 #: ../tools/virt-win-reg.pl:766
39797 #, no-wrap
39798 msgid ""
39799 " export LIBGUESTFS_DEBUG=1\n"
39800 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39801 "\n"
39802 msgstr ""
39803
39804 #. type: textblock
39805 #: ../tools/virt-win-reg.pl:769
39806 msgid ""
39807 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39808 "redhat.com/>"
39809 msgstr ""
39810
39811 #~ msgid "B<-a> | B<--all>"
39812 #~ msgstr "B<-a> | B<--all>"
39813
39814 #~ msgid "B<-x> | B<--extract> | B<--download>"
39815 #~ msgstr "B<-x> | B<--extract> | B<--download>"